7373
7373
$as_echo_n " checking whether pthreads are available without options... " >&6 ; }
7374
7374
if ${ac_cv_pthread_is_default+: } false ; then :
7375
7375
$as_echo_n " (cached) " >&6
7376
- else
7377
- if test " $cross_compiling " = yes; then :
7378
- ac_cv_pthread_is_default=no
7379
7376
else
7380
7377
cat confdefs.h - << _ACEOF >conftest.$ac_ext
7381
7378
/* end confdefs.h. */
@@ -7394,7 +7391,7 @@ int main(){
7394
7391
}
7395
7392
7396
7393
_ACEOF
7397
- if ac_fn_c_try_run " $LINENO " ; then :
7394
+ if ac_fn_c_try_link " $LINENO " ; then :
7398
7395
7399
7396
ac_cv_pthread_is_default=yes
7400
7397
ac_cv_kthread=no
@@ -7403,10 +7400,8 @@ if ac_fn_c_try_run "$LINENO"; then :
7403
7400
else
7404
7401
ac_cv_pthread_is_default=no
7405
7402
fi
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
7410
7405
7411
7406
fi
7412
7407
@@ -7421,7 +7416,7 @@ else
7421
7416
# -Kpthread, if available, provides the right #defines
7422
7417
# and linker options to make pthread_create available
7423
7418
# 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
7425
7420
# function available.
7426
7421
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether $CC accepts -Kpthread" >&5
7427
7422
$as_echo_n " checking whether $CC accepts -Kpthread... " >&6 ; }
@@ -7430,10 +7425,7 @@ if ${ac_cv_kpthread+:} false; then :
7430
7425
else
7431
7426
ac_save_cc=" $CC "
7432
7427
CC=" $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
7437
7429
/* end confdefs.h. */
7438
7430
7439
7431
#include <stdio.h>
@@ -7450,15 +7442,13 @@ int main(){
7450
7442
}
7451
7443
7452
7444
_ACEOF
7453
- if ac_fn_c_try_run " $LINENO " ; then :
7445
+ if ac_fn_c_try_link " $LINENO " ; then :
7454
7446
ac_cv_kpthread=yes
7455
7447
else
7456
7448
ac_cv_kpthread=no
7457
7449
fi
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
7462
7452
CC=" $ac_save_cc "
7463
7453
fi
7464
7454
@@ -7471,7 +7461,7 @@ then
7471
7461
# -Kthread, if available, provides the right #defines
7472
7462
# and linker options to make pthread_create available
7473
7463
# 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
7475
7465
# function available.
7476
7466
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether $CC accepts -Kthread" >&5
7477
7467
$as_echo_n " checking whether $CC accepts -Kthread... " >&6 ; }
@@ -7480,10 +7470,7 @@ if ${ac_cv_kthread+:} false; then :
7480
7470
else
7481
7471
ac_save_cc=" $CC "
7482
7472
CC=" $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
7487
7474
/* end confdefs.h. */
7488
7475
7489
7476
#include <stdio.h>
@@ -7500,15 +7487,13 @@ int main(){
7500
7487
}
7501
7488
7502
7489
_ACEOF
7503
- if ac_fn_c_try_run " $LINENO " ; then :
7490
+ if ac_fn_c_try_link " $LINENO " ; then :
7504
7491
ac_cv_kthread=yes
7505
7492
else
7506
7493
ac_cv_kthread=no
7507
7494
fi
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
7512
7497
CC=" $ac_save_cc "
7513
7498
fi
7514
7499
@@ -7521,7 +7506,7 @@ then
7521
7506
# -pthread, if available, provides the right #defines
7522
7507
# and linker options to make pthread_create available
7523
7508
# 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
7525
7510
# function available.
7526
7511
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether $CC accepts -pthread" >&5
7527
7512
$as_echo_n " checking whether $CC accepts -pthread... " >&6 ; }
@@ -7530,10 +7515,7 @@ if ${ac_cv_pthread+:} false; then :
7530
7515
else
7531
7516
ac_save_cc=" $CC "
7532
7517
CC=" $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
7537
7519
/* end confdefs.h. */
7538
7520
7539
7521
#include <stdio.h>
@@ -7550,15 +7532,13 @@ int main(){
7550
7532
}
7551
7533
7552
7534
_ACEOF
7553
- if ac_fn_c_try_run " $LINENO " ; then :
7535
+ if ac_fn_c_try_link " $LINENO " ; then :
7554
7536
ac_cv_pthread=yes
7555
7537
else
7556
7538
ac_cv_pthread=no
7557
7539
fi
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
7562
7542
CC=" $ac_save_cc "
7563
7543
fi
7564
7544
0 commit comments