git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15160
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
*-*-aix* )
THREAD_OPTS="pthreads"
;;
*-*-aix* )
THREAD_OPTS="pthreads"
;;
- *)
- THREAD_OPTS="$THREAD_OPTS none"
+ 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
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"
+ 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