| @@ -1,15 +1,25 @@ | | | @@ -1,15 +1,25 @@ |
1 | $NetBSD: patch-configure,v 1.1 2015/12/21 06:46:04 dbj Exp $ | | 1 | $NetBSD: patch-configure,v 1.2 2017/09/09 22:52:55 dholland Exp $ |
2 | | | 2 | |
3 | Recognize solaris, dragonfly, and darwin. | | 3 | Recognize more clang versions. |
| | | 4 | Recognize solaris, dragonfly, bitrig, and darwin. |
4 | | | 5 | |
5 | --- configure.orig 2015-04-22 14:11:11.000000000 +0000 | | 6 | --- configure.orig 2016-11-21 19:22:17.000000000 +0000 |
6 | +++ configure | | 7 | +++ configure |
7 | @@ -497,7 +497,7 @@ else | | 8 | @@ -392,7 +392,7 @@ if test "$have_clang" = yes; then |
| | | 9 | fi |
| | | 10 | |
| | | 11 | case $cxx_version in |
| | | 12 | - [3].[4-9]|[3].[4-9].[0-9]|[3].[4-9].[0-9][-.]*|[4].[0-9].[0-9]) |
| | | 13 | + [3].[4-9]|[3].[4-9].[0-9]|[3-6].[4-9].[0-9][-.]*) |
| | | 14 | _cxx_major=`echo $cxx_version | cut -d '.' -f 1` |
| | | 15 | _cxx_minor=`echo $cxx_version | cut -d '.' -f 2` |
| | | 16 | cxx_version="$cxx_version, ok" |
| | | 17 | @@ -515,7 +515,7 @@ else |
8 | echo_n "Checking hosttype... " | | 18 | echo_n "Checking hosttype... " |
9 | echo $_host_os | | 19 | echo $_host_os |
10 | case $_host_os in | | 20 | case $_host_os in |
11 | - linux* | openbsd* | freebsd* | kfreebsd* | netbsd* | bsd* | gnu0.* | sunos* | hpux* | beos*) | | 21 | - linux* | openbsd* | freebsd* | kfreebsd* | netbsd* | bsd* | gnu0.* | sunos* | hpux* | beos*) |
12 | + linux* | openbsd* | freebsd* | kfreebsd* | netbsd* | bsd* | gnu0.* | sunos* | hpux* | beos* | solaris* | dragonfly* | darwin*) | | 22 | + linux* | openbsd* | freebsd* | kfreebsd* | netbsd* | bsd* | gnu0.* | sunos* | hpux* | beos* | solaris* | dragonfly* | bitrig* | darwin*) |
13 | DEFINES="$DEFINES -DUNIX" | | 23 | DEFINES="$DEFINES -DUNIX" |
14 | _host_os=unix | | 24 | _host_os=unix |
15 | ;; | | 25 | ;; |