~aghuloum/ikarus/ikarus.dev

« back to all changes in this revision

Viewing changes to configure

  • Committer: Abdulaziz Ghuloum
  • Date: 2009-09-02 21:07:09 UTC
  • Revision ID: aghuloum@gmail.com-20090902210709-hl1v9ma4amc62ezv
libpthread is linked to ikarus automatically if the system has 
pthreads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5982
5982
done
5983
5983
 
5984
5984
 
 
5985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
 
5986
$as_echo_n "checking for main in -lpthread... " >&6; }
 
5987
if test "${ac_cv_lib_pthread_main+set}" = set; then :
 
5988
  $as_echo_n "(cached) " >&6
 
5989
else
 
5990
  ac_check_lib_save_LIBS=$LIBS
 
5991
LIBS="-lpthread  $LIBS"
 
5992
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5993
/* end confdefs.h.  */
 
5994
 
 
5995
 
 
5996
int
 
5997
main ()
 
5998
{
 
5999
return main ();
 
6000
  ;
 
6001
  return 0;
 
6002
}
 
6003
_ACEOF
 
6004
if ac_fn_c_try_link "$LINENO"; then :
 
6005
  ac_cv_lib_pthread_main=yes
 
6006
else
 
6007
  ac_cv_lib_pthread_main=no
 
6008
fi
 
6009
rm -f core conftest.err conftest.$ac_objext \
 
6010
    conftest$ac_exeext conftest.$ac_ext
 
6011
LIBS=$ac_check_lib_save_LIBS
 
6012
fi
 
6013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
 
6014
$as_echo "$ac_cv_lib_pthread_main" >&6; }
 
6015
if test "x$ac_cv_lib_pthread_main" = x""yes; then :
 
6016
  cat >>confdefs.h <<_ACEOF
 
6017
#define HAVE_LIBPTHREAD 1
 
6018
_ACEOF
 
6019
 
 
6020
  LIBS="-lpthread $LIBS"
 
6021
 
 
6022
fi
 
6023
 
 
6024
 
5985
6025
for ac_header in gmp.h
5986
6026
do :
5987
6027
  ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"