⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 hmmer源程序
💻
📖 第 1 页 / 共 5 页
字号:
  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_PTHREAD_CC="cc_r"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"fifiPTHREAD_CC="$ac_cv_prog_PTHREAD_CC"if test -n "$PTHREAD_CC"; then  echo "$ac_t""$PTHREAD_CC" 1>&6else  echo "$ac_t""no" 1>&6fielse        PTHREAD_CC="$CC"fi# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:if test x"$acx_pthread_ok" = xyes; then        MDEFS="${MDEFS} -DHMMER_THREADS"        :else        acx_pthread_ok=no        fi	;;   no)  echo "POSIX threads support disabled"        ;;   *)   echo "Ignoring unknown argument to --disable-threads: $enable_threads"	;;esacelse     echo "   Trying to enable default POSIX threads support"   acx_pthread_ok=no# First, check if the POSIX threads header, pthread.h, is available.# If it isn't, don't bother looking for the threads libraries.ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for pthread.h""... $ac_c" 1>&6echo "configure:1309: checking for pthread.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1314 "configure"#include "confdefs.h"#include <pthread.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6  :else  echo "$ac_t""no" 1>&6acx_pthread_ok=noheaderfi# We must check for the threads library under a number of different# names; the ordering is very important because some systems# (e.g. DEC) have both -lpthread and -lpthreads, where one of the# libraries is broken (non-POSIX).# First of all, check if the user has set any of the PTHREAD_LIBS,# etcetera environment variables, and if threads linking works using# them:if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then        save_CFLAGS="$CFLAGS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        save_LIBS="$LIBS"        LIBS="$PTHREAD_LIBS $LIBS"        echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6echo "configure:1356: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5        cat > conftest.$ac_ext <<EOF#line 1358 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char pthread_join();int main() {pthread_join(); return 0; }EOFif { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  acx_pthread_ok=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*        echo "$ac_t""$acx_pthread_ok" 1>&6        if test x"$acx_pthread_ok" = xno; then       PTHREAD_LIBS=""       PTHREAD_CFLAGS=""        fi        LIBS="$save_LIBS"        CFLAGS="$save_CFLAGS"fi# Create a list of thread flags to try.  Items starting with a "-" are# C compiler flags, and other items are library names, except for "none"# which indicates that we try without any flags at all.acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"# The ordering *is* (sometimes) important.  Some notes on the# individual items follow:# pthreads: AIX (must check this before -lpthread)# none: in case threads are in libc; should be tried before -Kthread and#       other compiler flags to prevent continual compiler warnings# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)# -pthreads: Solaris/gcc# -mthreads: Mingw32/gcc, Lynx/gcc# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it#      doesn't hurt to check since this sometimes defines pthreads too;#      also defines -D_REENTRANT)# pthread: Linux, etcetera# --thread-safe: KAI C++case "${host_cpu}-${host_os}" in        *solaris*)        # On Solaris (at least, for some versions), libc contains stubbed        # (non-functional) versions of the pthreads routines, so link-based        # tests will erroneously succeed.  (We need to link with -pthread or        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather        # a function called by this macro, so we could check for that, but        # who knows whether they'll stub that too in a future libc.)  So,        # we'll just look for -pthreads and -lpthread first:        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"        ;;esacif test x"$acx_pthread_ok" = xno; thenfor flag in $acx_pthread_flags; do        case $flag in       none)       echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6echo "configure:1431: checking whether pthreads work without any flags" >&5       ;;       -*)       echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6echo "configure:1436: checking whether pthreads work with $flag" >&5       PTHREAD_CFLAGS="$flag"       ;;       *)       echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6echo "configure:1442: checking for the pthreads library -l$flag" >&5       PTHREAD_LIBS="-l$flag"       ;;        esac        save_LIBS="$LIBS"        save_CFLAGS="$CFLAGS"        LIBS="$PTHREAD_LIBS $LIBS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        # Check for various functions.  We must include pthread.h,        # since some functions may be macros.  (On the Sequent, we        # need a special flag -Kthread to make this header compile.)        # We check for pthread_join because it is in -lpthread on IRIX        # while pthread_create is in libc.  We check for pthread_attr_init        # due to DEC craziness with -lpthreads.  We check for        # pthread_cleanup_push because it is one of the few pthread        # functions on Solaris that doesn't have a non-functional libc stub.        # We try pthread_create on general principles.        cat > conftest.$ac_ext <<EOF#line 1462 "configure"#include "confdefs.h"#include <pthread.h>int main() {pthread_t th; pthread_join(th, 0);   pthread_attr_init(0); pthread_cleanup_push(0, 0);   pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; }EOFif { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  acx_pthread_ok=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*        LIBS="$save_LIBS"        CFLAGS="$save_CFLAGS"        echo "$ac_t""$acx_pthread_ok" 1>&6        if test "x$acx_pthread_ok" = xyes; then       break;        fi        PTHREAD_LIBS=""        PTHREAD_CFLAGS=""donefi# Various other checks:if test "x$acx_pthread_ok" = xyes; then        save_LIBS="$LIBS"        LIBS="$PTHREAD_LIBS $LIBS"        save_CFLAGS="$CFLAGS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        # Detect AIX lossage: threads are created detached by default        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).        echo $ac_n "checking for joinable pthread attribute""... $ac_c" 1>&6echo "configure:1503: checking for joinable pthread attribute" >&5        cat > conftest.$ac_ext <<EOF#line 1505 "configure"#include "confdefs.h"#include <pthread.h>int main() {int attr=PTHREAD_CREATE_JOINABLE;; return 0; }EOFif { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  ok=PTHREAD_CREATE_JOINABLEelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ok=unknownfirm -f conftest*        if test x"$ok" = xunknown; then       cat > conftest.$ac_ext <<EOF#line 1524 "configure"#include "confdefs.h"#include <pthread.h>int main() {int attr=PTHREAD_CREATE_UNDETACHED;; return 0; }EOFif { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  ok=PTHREAD_CREATE_UNDETACHEDelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ok=unknownfirm -f conftest*        fi        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then       cat >> confdefs.h <<\EOF#define PTHREAD_CREATE_JOINABLE $okEOF        fi        echo "$ac_t""${ok}" 1>&6        if test x"$ok" = xunknown; then       echo "configure: warning: we do not know how to create joinable pthreads" 1>&2        fi        echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6echo "configure:1554: checking if more special flags are required for pthreads" >&5        flag=no        case "${host_cpu}-${host_os}" in       *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;       *solaris* | alpha*-osf*) flag="-D_REENTRANT";;        esac        echo "$ac_t""${flag}" 1>&6        if test "x$flag" != xno; then       PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"        fi        LIBS="$save_LIBS"        CFLAGS="$save_CFLAGS"        # More AIX lossage: must compile with cc_r        # Extract the first word of "cc_r", so it can be a program name with args.set dummy cc_r; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1572: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_PTHREAD_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$PTHREAD_CC"; then  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_PTHREAD_CC="cc_r"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"fifiPTHREAD_CC="$ac_cv_prog_PTHREAD_CC"if test -n "$PTHREAD_CC"; then  echo "$ac_t""$PTHREAD_CC" 1>&6else  echo "$ac_t""no" 1>&6fielse        PTHREAD_CC="$CC"fi# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:if test x"$acx_pthread_ok" = xyes; then        MDEFS="${MDEFS} -DHMMER_THREADS"        :else        acx_pthread_ok=no        fififor ac_func in pthread_setconcurrencydoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1625: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1630 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char $ac_func();int main() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -