Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3272 in orxonox.OLD for orxonox/branches/updater/configure


Ignore:
Timestamp:
Dec 24, 2004, 8:41:18 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: using pthread as Threader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/configure

    r3271 r3272  
    69696969
    69706970
    6971 #checking for pthread libs
    6972 # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
    6973 # if test "$FOUND_pthread" = "yes" ; then
    6974 #    LIBS="$LIBS -lpthread"
    6975 # fi
     6971checking for pthread libs
     6972echo "$as_me:$LINENO: checking for main in -lpthread" >&5
     6973echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
     6974if test "${ac_cv_lib_pthread_main+set}" = set; then
     6975  echo $ECHO_N "(cached) $ECHO_C" >&6
     6976else
     6977  ac_check_lib_save_LIBS=$LIBS
     6978LIBS="-lpthread  $LIBS"
     6979cat >conftest.$ac_ext <<_ACEOF
     6980/* confdefs.h.  */
     6981_ACEOF
     6982cat confdefs.h >>conftest.$ac_ext
     6983cat >>conftest.$ac_ext <<_ACEOF
     6984/* end confdefs.h.  */
     6985
     6986
     6987int
     6988main ()
     6989{
     6990main ();
     6991  ;
     6992  return 0;
     6993}
     6994_ACEOF
     6995rm -f conftest.$ac_objext conftest$ac_exeext
     6996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6997  (eval $ac_link) 2>conftest.er1
     6998  ac_status=$?
     6999  grep -v '^ *+' conftest.er1 >conftest.err
     7000  rm -f conftest.er1
     7001  cat conftest.err >&5
     7002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7003  (exit $ac_status); } &&
     7004         { ac_try='test -z "$ac_c_werror_flag"
     7005                         || test ! -s conftest.err'
     7006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7007  (eval $ac_try) 2>&5
     7008  ac_status=$?
     7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7010  (exit $ac_status); }; } &&
     7011         { ac_try='test -s conftest$ac_exeext'
     7012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7013  (eval $ac_try) 2>&5
     7014  ac_status=$?
     7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7016  (exit $ac_status); }; }; then
     7017  ac_cv_lib_pthread_main=yes
     7018else
     7019  echo "$as_me: failed program was:" >&5
     7020sed 's/^/| /' conftest.$ac_ext >&5
     7021
     7022ac_cv_lib_pthread_main=no
     7023fi
     7024rm -f conftest.err conftest.$ac_objext \
     7025      conftest$ac_exeext conftest.$ac_ext
     7026LIBS=$ac_check_lib_save_LIBS
     7027fi
     7028echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
     7029echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
     7030if test $ac_cv_lib_pthread_main = yes; then
     7031  FOUND_pthread=yes
     7032fi
     7033
     7034 if test "$FOUND_pthread" = "yes" ; then
     7035    LIBS="$LIBS -lpthread"
     7036 fi
    69767037
    69777038
Note: See TracChangeset for help on using the changeset viewer.