73737373$as_echo_n " checking whether pthreads are available without options... " >&6 ; }
73747374if ${ac_cv_pthread_is_default+: } false ; then :
73757375 $as_echo_n " (cached) " >&6
7376- else
7377- if test " $cross_compiling " = yes; then :
7378- ac_cv_pthread_is_default=no
73797376else
73807377 cat confdefs.h - << _ACEOF >conftest.$ac_ext
73817378/* end confdefs.h. */
@@ -7394,7 +7391,7 @@ int main(){
73947391}
73957392
73967393_ACEOF
7397- if ac_fn_c_try_run " $LINENO " ; then :
7394+ if ac_fn_c_try_link " $LINENO " ; then :
73987395
73997396 ac_cv_pthread_is_default=yes
74007397 ac_cv_kthread=no
@@ -7403,10 +7400,8 @@ if ac_fn_c_try_run "$LINENO"; then :
74037400else
74047401 ac_cv_pthread_is_default=no
74057402fi
7406- rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7407- conftest.$ac_objext conftest.beam conftest.$ac_ext
7408- fi
7409-
7403+ rm -f core conftest.err conftest.$ac_objext \
7404+ conftest$ac_exeext conftest.$ac_ext
74107405
74117406fi
74127407
@@ -7421,7 +7416,7 @@ else
74217416# -Kpthread, if available, provides the right #defines
74227417# and linker options to make pthread_create available
74237418# Some compilers won't report that they do not support -Kpthread,
7424- # so we need to run a program to see whether it really made the
7419+ # so we need to link a program to see whether it really made the
74257420# function available.
74267421{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether $CC accepts -Kpthread" >&5
74277422$as_echo_n " checking whether $CC accepts -Kpthread... " >&6 ; }
@@ -7430,10 +7425,7 @@ if ${ac_cv_kpthread+:} false; then :
74307425else
74317426 ac_save_cc=" $CC "
74327427CC=" $CC -Kpthread"
7433- if test " $cross_compiling " = yes; then :
7434- ac_cv_kpthread=no
7435- else
7436- cat confdefs.h - << _ACEOF >conftest.$ac_ext
7428+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
74377429/* end confdefs.h. */
74387430
74397431#include <stdio.h>
@@ -7450,15 +7442,13 @@ int main(){
74507442}
74517443
74527444_ACEOF
7453- if ac_fn_c_try_run " $LINENO " ; then :
7445+ if ac_fn_c_try_link " $LINENO " ; then :
74547446 ac_cv_kpthread=yes
74557447else
74567448 ac_cv_kpthread=no
74577449fi
7458- rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7459- conftest.$ac_objext conftest.beam conftest.$ac_ext
7460- fi
7461-
7450+ rm -f core conftest.err conftest.$ac_objext \
7451+ conftest$ac_exeext conftest.$ac_ext
74627452CC=" $ac_save_cc "
74637453fi
74647454
@@ -7471,7 +7461,7 @@ then
74717461# -Kthread, if available, provides the right #defines
74727462# and linker options to make pthread_create available
74737463# Some compilers won't report that they do not support -Kthread,
7474- # so we need to run a program to see whether it really made the
7464+ # so we need to link a program to see whether it really made the
74757465# function available.
74767466{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether $CC accepts -Kthread" >&5
74777467$as_echo_n " checking whether $CC accepts -Kthread... " >&6 ; }
@@ -7480,10 +7470,7 @@ if ${ac_cv_kthread+:} false; then :
74807470else
74817471 ac_save_cc=" $CC "
74827472CC=" $CC -Kthread"
7483- if test " $cross_compiling " = yes; then :
7484- ac_cv_kthread=no
7485- else
7486- cat confdefs.h - << _ACEOF >conftest.$ac_ext
7473+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
74877474/* end confdefs.h. */
74887475
74897476#include <stdio.h>
@@ -7500,15 +7487,13 @@ int main(){
75007487}
75017488
75027489_ACEOF
7503- if ac_fn_c_try_run " $LINENO " ; then :
7490+ if ac_fn_c_try_link " $LINENO " ; then :
75047491 ac_cv_kthread=yes
75057492else
75067493 ac_cv_kthread=no
75077494fi
7508- rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7509- conftest.$ac_objext conftest.beam conftest.$ac_ext
7510- fi
7511-
7495+ rm -f core conftest.err conftest.$ac_objext \
7496+ conftest$ac_exeext conftest.$ac_ext
75127497CC=" $ac_save_cc "
75137498fi
75147499
@@ -7521,7 +7506,7 @@ then
75217506# -pthread, if available, provides the right #defines
75227507# and linker options to make pthread_create available
75237508# Some compilers won't report that they do not support -pthread,
7524- # so we need to run a program to see whether it really made the
7509+ # so we need to link a program to see whether it really made the
75257510# function available.
75267511{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether $CC accepts -pthread" >&5
75277512$as_echo_n " checking whether $CC accepts -pthread... " >&6 ; }
@@ -7530,10 +7515,7 @@ if ${ac_cv_pthread+:} false; then :
75307515else
75317516 ac_save_cc=" $CC "
75327517CC=" $CC -pthread"
7533- if test " $cross_compiling " = yes; then :
7534- ac_cv_pthread=no
7535- else
7536- cat confdefs.h - << _ACEOF >conftest.$ac_ext
7518+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
75377519/* end confdefs.h. */
75387520
75397521#include <stdio.h>
@@ -7550,15 +7532,13 @@ int main(){
75507532}
75517533
75527534_ACEOF
7553- if ac_fn_c_try_run " $LINENO " ; then :
7535+ if ac_fn_c_try_link " $LINENO " ; then :
75547536 ac_cv_pthread=yes
75557537else
75567538 ac_cv_pthread=no
75577539fi
7558- rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7559- conftest.$ac_objext conftest.beam conftest.$ac_ext
7560- fi
7561-
7540+ rm -f core conftest.err conftest.$ac_objext \
7541+ conftest$ac_exeext conftest.$ac_ext
75627542CC=" $ac_save_cc "
75637543fi
75647544
0 commit comments