]> granicus.if.org Git - gc/commitdiff
Do not match kFreeBSD by FreeBSD host string pattern (CMake/configure)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 6 Apr 2018 05:30:50 +0000 (08:30 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 6 Apr 2018 05:30:50 +0000 (08:30 +0300)
(code refactoring of commit 686a66731)

Issue #174 (bdwgc).

* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && enable_handle_fork]:
Replace ".*-.*-.*freebsd.*" to ".*-.*-freebsd.*".
* configure.ac [$enable_handle_fork=auto && $THREADS=posix]: Replace
"*-*-*freebsd*" to "*-*-freebsd*".

CMakeLists.txt
configure.ac

index d4ce7823c39a8bab2b3a66a10a8869be79940965..214fa3b7e26a370564643602e9bfd971758599a5 100644 (file)
@@ -106,7 +106,7 @@ IF(CMAKE_USE_PTHREADS_INIT)
                 MESSAGE("Only on NetBSD 2.0 or later.")
                 ADD_DEFINITIONS("-D_PTHREADS")
         ENDIF()
-        IF( HOST MATCHES .*-.*-aix.*|.*-.*-cygwin.*|.*-.*-.*freebsd.*|.*-.*-haiku.*|.*-.*-hpux11.*|.*-.*-irix.*|.*-.*-kfreebsd.*-gnu|.*-.*-.*linux.*|.*-.*-netbsd.*|.*-.*-openbsd.*|.*-.*-osf.*|.*-.*-solaris.*)
+        IF( HOST MATCHES .*-.*-aix.*|.*-.*-cygwin.*|.*-.*-freebsd.*|.*-.*-haiku.*|.*-.*-hpux11.*|.*-.*-irix.*|.*-.*-kfreebsd.*-gnu|.*-.*-.*linux.*|.*-.*-netbsd.*|.*-.*-openbsd.*|.*-.*-osf.*|.*-.*-solaris.*)
                 IF(enable_handle_fork)
                     ADD_DEFINITIONS("-DHANDLE_FORK")
                 ENDIF(enable_handle_fork)
index 56630ad17ad6654665e23bc09de4354b998c3dbc..e392b9781e5988d602547e7d54a4b808ae18fd3e 100644 (file)
@@ -865,7 +865,7 @@ elif test "${enable_handle_fork}" != manual -a x$THREADS = xposix; then
           AC_DEFINE(HANDLE_FORK)
         fi
         ;;
-      *-*-aix* | *-*-cygwin* | *-*-*freebsd* | *-*-haiku* | \
+      *-*-aix* | *-*-cygwin* | *-*-freebsd* | *-*-haiku* | \
       *-*-hpux11* | *-*-irix* | *-*-kfreebsd*-gnu | \
       *-*-*linux* | *-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris*)
         AC_DEFINE(HANDLE_FORK)