📄 configure
字号:
LD="$ac_cv_path_LD"if test -n "$LD"; then echo "$ac_t""$LD" 1>&6else echo "$ac_t""no" 1>&6fitest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6echo "configure:1675: checking if the linker ($LD) is GNU ld" >&5if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # I'd rather use --version here, but apparently some GNU ld's only accept -v.if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then ac_cv_prog_gnu_ld=yeselse ac_cv_prog_gnu_ld=nofifiecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6echo "configure:1691: checking for BSD-compatible nm" >&5if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$NM"; then # Let the user override the test. ac_cv_path_NM="$NM"else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -B" break elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -p" break else ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_NM" && ac_cv_path_NM=nmfifiNM="$ac_cv_path_NM"echo "$ac_t""$NM" 1>&6case "$target" inNONE) lt_target="$host" ;;*) lt_target="$target" ;;esac# Check for any special flags to pass to ltconfig.libtool_flags="--cache-file=$cache_file"test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"# Check whether --enable-libtool-lock or --disable-libtool-lock was given.if test "${enable_libtool_lock+set}" = set; then enableval="$enable_libtool_lock" :fitest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"# Some flags need to be propagated to the compiler or linker for good# libtool support.case "$lt_target" in*-*-irix6*) # Find out which ABI we are using. echo '#line 1755 "configure"' > conftest.$ac_ext if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi rm -rf conftest* ;;*-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6echo "configure:1777: checking whether the C compiler needs -belf" >&5if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1782 "configure"#include "confdefs.h"int main() {; return 0; }EOFif { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lt_cv_cc_needs_belf=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* lt_cv_cc_needs_belf=nofirm -f conftest*fiecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6 if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;;esac# Save cache, so that ltconfig can load itcat > confcache <<\EOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs. It is not useful on other systems.# If it contains results you don't want to keep, you may remove or edit it.## By default, configure uses ./config.cache as the cache file,# creating it if it does not exist already. You can give configure# the --cache-file=FILE option to use a different cache file; that is# what configure does when it calls configure scripts in# subdirectories, so they share the cache.# Giving --cache-file=/dev/null disables caching, for debugging configure.# config.status only pays attention to the cache file if you give it the# --recheck option to rerun configure.#EOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.(set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcacheif cmp -s $cache_file confcache; then :else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fifirm -f confcache# Actually configure libtool. ac_aux_dir is where install-sh is found.CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }# Reload cache, that may have been modified by ltconfigif test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_fileelse echo "creating cache $cache_file" > $cache_filefi# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'# Redirect the config.log output again, so that the ltconfig log is not# clobbered by the next message.exec 5>>./config.log# Check whether --with-sfs or --without-sfs was given.if test "${with_sfs+set}" = set; then withval="$with_sfs" :fiif test "$with_sfs" = yes -o "$with_sfs" = ""; then for dir in "$prefix" /usr/local /usr; do if test -f $dir/lib/sfs/libasync.la; then with_sfs=$dir break fi doneficase "$with_sfs" in /*) ;; *) with_sfs="$PWD/$with_sfs" ;;esacif test -f ${with_sfs}/Makefile -a -f ${with_sfs}/autoconf.h; then if egrep -q '#define DMALLOC' ${with_sfs}/autoconf.h > /dev/null; then test -z "$with_dmalloc" -o "$with_dmalloc" = no && with_dmalloc=yes elif test "$with_dmalloc" -a "$with_dmalloc" != no; then { echo "configure: error: "SFS libraries not compiled with dmalloc"" 1>&2; exit 1; } fi sfssrcdir=`sed -ne 's/^srcdir *= *//p' ${with_sfs}/Makefile` case "$sfssrcdir" in /*) ;; *) sfssrcdir="${with_sfs}/${sfssrcdir}" ;; esac CPPFLAGS="$CPPFLAGS -I${with_sfs}" for lib in async arpc crypt sfsmisc; do CPPFLAGS="$CPPFLAGS -I${sfssrcdir}/$lib" done CPPFLAGS="$CPPFLAGS -I${with_sfs}/svc" LIBASYNC=${with_sfs}/async/libasync.la LIBARPC=${with_sfs}/arpc/libarpc.la LIBSFSCRYPT=${with_sfs}/crypt/libsfscrypt.la LIBSFSMISC=${with_sfs}/sfsmisc/libsfsmisc.la LIBSVC=${with_sfs}/svc/libsvc.la MALLOCK=${with_sfs}/sfsmisc/mallock.o RPCC=${with_sfs}/rpcc/rpccelif test -f ${with_sfs}/include/sfs/autoconf.h \ -a -f ${with_sfs}/lib/sfs/libasync.la; then sfsincludedir="${with_sfs}/include/sfs" sfslibdir=${with_sfs}/lib/sfs if egrep '#define DMALLOC' ${sfsincludedir}/autoconf.h > /dev/null; then test -z "$with_dmalloc" -o "$with_dmalloc" = no && with_dmalloc=yes else with_dmalloc=no fi CPPFLAGS="$CPPFLAGS -I${sfsincludedir}" LIBASYNC=${sfslibdir}/libasync.la LIBARPC=${sfslibdir}/libarpc.la LIBSFSCRYPT=${sfslibdir}/libsfscrypt.la LIBSFSMISC=${sfslibdir}/libsfsmisc.la LIBSVC=${sfslibdir}/libsvc.la MALLOCK=${sfslibdir}/mallock.o RPCC=${with_sfs}/bin/rpccelse { echo "configure: error: "Can\'t find SFS libraries"" 1>&2; exit 1; }fiif test "$enable_static" = yes -a -z "${NOPAGING+set}"; then case "$host_os" in openbsd*) test "$ac_cv_prog_gcc" = yes && NOPAGING="-Wl,-Bstatic,-N" MALLOCK= # mallock.o panics the OpenBSD kernel ;; freebsd*) test "$ac_cv_prog_gcc" = yes && NOPAGING="-Wl,-Bstatic" ;; esacfisfslibdir='$(libdir)/sfs'sfsincludedir='$(libdir)/include'# Check whether --with-gmp or --without-gmp was given.if test "${with_gmp+set}" = set; then withval="$with_gmp" :fiecho $ac_n "checking for GMP library""... $ac_c" 1>&6echo "configure:1990: checking for GMP library" >&5test "$with_gmp" = "no" && unset with_gmpif test -z "$with_gmp"; then if test -z "$GMP_DIR"; then for dir in `cd $srcdir && echo gmp*`; do if test -d "$srcdir/$dir"; then GMP_DIR=$dir break fi done fi if test "${with_gmp+set}" != set \ -a "$GMP_DIR" -a -d "$srcdir/$GMP_DIR"; then GMP_DIR=`echo $GMP_DIR | sed -e 's!/$!!'` CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)/'"$GMP_DIR" #LDFLAGS="$LDFLAGS "'-L$(top_builddir)/'"$GMP_DIR" else GMP_DIR= for dir in "$prefix" /usr/local /usr; do if test \( -f $dir/lib/libgmp.a -o -f $dir/lib/libgmp.la \) \ -a \( -f $dir/include/gmp.h -o -f $dir/include/gmp3/gmp.h \ -o -f $dir/include/gmp2/gmp.h \); then with_gmp=$dir break fi done if test -z "$with_gmp"; then { echo "configure: error: Could not find GMP library" 1>&2; exit 1; } fi test "$with_gmp" = /usr -a -f /usr/include/gmp.h && unset with_gmp fifiif test "$with_gmp"; then unset GMP_DIR if test -f ${with_gmp}/include/gmp.h; then CPPFLAGS="$CPPFLAGS -I${with_gmp}/include" elif test -f ${with_gmp}/include/gmp3/gmp.h; then CPPFLAGS="$CPPFLAGS -I${with_gmp}/include/gmp3" elif test -f ${with_gmp}/include/gmp2/gmp.h; then CPPFLAGS="$CPPFLAGS -I${with_gmp}/include/gmp2" else { echo "configure: error: Could not find gmp.h header" 1>&2; exit 1; } fi #LDFLAGS="$LDFLAGS -L${with_gmp}/lib" #LIBGMP=-lgmp if test -f "${with_gmp}/lib/libgmp.la"; then LIBGMP="${with_gmp}/lib/libgmp.la" else LIBGMP="${with_gmp}/lib/libgmp.a" fi echo "$ac_t""$LIBGMP" 1>&6elif test "$GMP_DIR"; then export GMP_DIR echo "$ac_t""using distribution in $GMP_DIR subdirectory" 1>&6 LIBGMP='$(top_builddir)/'"$GMP_DIR/libgmp.la"else echo "$ac_t""yes" 1>&6 if test -f /usr/lib/libgmp.la; then LIBGMP=/usr/lib/libgmp.la elif test -f /usr/lib/libgmp.a; then # FreeBSD (among others) has a broken gmp shared library LIBGMP=/usr/lib/libgmp.a else LIBGMP=-lgmp fifisubdirs="$GMP_DIR"ac_save_CFLAGS="$CFLAGS"test "$GMP_DIR" && CFLAGS="$CFLAGS -I${srcdir}/${GMP_DIR}"echo $ac_n "checking for mpz_xor""... $ac_c" 1>&6echo "configure:2065: checking for mpz_xor" >&5if eval "test \"`echo '$''{'sfs_cv_have_mpz_xor'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else unset sfs_cv_have_mpz_xorif test "$GMP_DIR"; then sfs_cv_have_mpz_xor=yeselse cat > conftest.$ac_ext <<EOF#line 2074 "configure"#include "confdefs.h"#include <gmp.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "mpz_xor" >/dev/null 2>&1; then rm -rf conftest*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -