]> git.saurik.com Git - wxWidgets.git/commitdiff
try just -lpthread in the thread detection code too
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Apr 2002 11:57:12 +0000 (11:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Apr 2002 11:57:12 +0000 (11:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index 1c96cf319fdb6de3b1af7917ef57048ba76ee212..e9b8b69388cf3e24fa5de6133b9cfff76b794260 100755 (executable)
--- a/configure
+++ b/configure
@@ -17133,10 +17133,10 @@ if test "$TOOLKIT" != "MSW"; then
           *-*-aix* )
                                 THREAD_OPTS="pthreads"
                 ;;
           *-*-aix* )
                                 THREAD_OPTS="pthreads"
                 ;;
-          *)
-                                                THREAD_OPTS="$THREAD_OPTS none"
         esac
 
         esac
 
+                                THREAD_OPTS="$THREAD_OPTS -lpthread none"
+
                 THREADS_OK=no
         for flag in $THREAD_OPTS; do
             case $flag in
                 THREADS_OK=no
         for flag in $THREAD_OPTS; do
             case $flag in
index aa76f2176aa6d1bd508648a09a2ad11e1ecf5144..c9d4f2d99704f2d18dcc146a32eab10c18d39f07 100644 (file)
@@ -3176,12 +3176,13 @@ if test "$TOOLKIT" != "MSW"; then
                 dnl AIX calls the library libpthreads - thanks IBM!
                 THREAD_OPTS="pthreads"
                 ;;
                 dnl AIX calls the library libpthreads - thanks IBM!
                 THREAD_OPTS="pthreads"
                 ;;
-          *)
-                dnl the default is ok but if it doesn't work try without it
-                dnl just in case
-                THREAD_OPTS="$THREAD_OPTS none"
         esac
 
         esac
 
+        dnl simply linking with libpthread should make the test below work but
+        dnl it's far from certain that the threaded programs compiled without
+        dnl any special switches actually work, so try it after all the others
+        THREAD_OPTS="$THREAD_OPTS -lpthread none"
+
         dnl now test for all possibilities
         THREADS_OK=no
         for flag in $THREAD_OPTS; do
         dnl now test for all possibilities
         THREADS_OK=no
         for flag in $THREAD_OPTS; do