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

📄 configure

📁 zlib压缩原码
💻
📖 第 1 页 / 共 5 页
字号:
fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.# Find a good install program.  We prefer a C program (faster),# so one script is as good as another.  But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:927: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"  for ac_dir in $PATH; do    # Account for people who put trailing slashes in PATH elements.    case "$ac_dir/" in    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;    *)      # OSF1 and SCO ODT 3.0 have their own names for install.      # Don't use installbsd from OSF since it installs stuff as root      # by default.      for ac_prog in ginstall scoinst install; do        if test -f $ac_dir/$ac_prog; then	  if test $ac_prog = install &&            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then	    # AIX install.  It has an incompatible calling convention.	    :	  else	    ac_cv_path_install="$ac_dir/$ac_prog -c"	    break 2	  fi	fi      done      ;;    esac  done  IFS="$ac_save_IFS"fi  if test "${ac_cv_path_install+set}" = set; then    INSTALL="$ac_cv_path_install"  else    # As a last resort, use the slow shell script.  We don't cache a    # path for INSTALL within a source directory, because that will    # break other packages using the cache if that directory is    # removed, or if the path is relative.    INSTALL="$ac_install_sh"  fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6echo "configure:980: checking whether ln -s works" >&5if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  rm -f conftestdataif ln -s X conftestdata 2>/dev/nullthen  rm -f conftestdata  ac_cv_prog_LN_S="ln -s"else  ac_cv_prog_LN_S=lnfifiLN_S="$ac_cv_prog_LN_S"if test "$ac_cv_prog_LN_S" = "ln -s"; then  echo "$ac_t""yes" 1>&6else  echo "$ac_t""no" 1>&6fi# Extract the first word of "install-info", so it can be a program name with args.set dummy install-info; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1003: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$INSTALL_INFO" in  /*)  ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.  ;;  ?:/*)			   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.  ;;  *)  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_path_INSTALL_INFO="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=""""  ;;esacfiINSTALL_INFO="$ac_cv_path_INSTALL_INFO"if test -n "$INSTALL_INFO"; then  echo "$ac_t""$INSTALL_INFO" 1>&6else  echo "$ac_t""no" 1>&6fifor ac_prog in gzip compress compactdo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1043: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_XGZIP'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$XGZIP" in  /*)  ac_cv_path_XGZIP="$XGZIP" # Let the user override the test with a path.  ;;  ?:/*)			   ac_cv_path_XGZIP="$XGZIP" # Let the user override the test with a dos path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/local/gnu/bin:/usr/gnu/bin"  for ac_dir in $ac_dummy; do     test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_path_XGZIP="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  ;;esacfiXGZIP="$ac_cv_path_XGZIP"if test -n "$XGZIP"; then  echo "$ac_t""$XGZIP" 1>&6else  echo "$ac_t""no" 1>&6fitest -n "$XGZIP" && breakdonetest -n "$XGZIP" || XGZIP="gzip"echo $ac_n "checking for AIX""... $ac_c" 1>&6echo "configure:1083: checking for AIX" >&5cat > conftest.$ac_ext <<EOF#line 1085 "configure"#include "confdefs.h"#ifdef _AIX  yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF#define _ALL_SOURCE 1EOFelse  rm -rf conftest*  echo "$ac_t""no" 1>&6firm -f conftest*echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6echo "configure:1107: checking for POSIXized ISC" >&5if test -d /etc/conf/kconfig.d &&  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1then  echo "$ac_t""yes" 1>&6  ISC=yes # If later tests want to check for ISC.  cat >> confdefs.h <<\EOF#define _POSIX_SOURCE 1EOF  if test "$GCC" = yes; then    CC="$CC -posix"  else    CC="$CC -Xp"  fielse  echo "$ac_t""no" 1>&6  ISC=fiac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6echo "configure:1129: checking for minix/config.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 1134 "configure"#include "confdefs.h"#include <minix/config.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1139: \"$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  MINIX=yeselse  echo "$ac_t""no" 1>&6MINIX=fiif test "$MINIX" = yes; then  cat >> confdefs.h <<\EOF#define _POSIX_SOURCE 1EOF  cat >> confdefs.h <<\EOF#define _POSIX_1_SOURCE 2EOF  cat >> confdefs.h <<\EOF#define _MINIX 1EOFfi# Do some error checking and defaulting for the host and target type.# The inputs are:#    configure --host=HOST --target=TARGET --build=BUILD NONOPT## The rules are:# 1. You are not allowed to specify --host, --target, and nonopt at the#    same time.# 2. Host defaults to nonopt.# 3. If nonopt is not specified, then host defaults to the current host,#    as determined by config.guess.# 4. Target and build default to nonopt.# 5. If nonopt is not specified, then target and build default to host.# The aliases save the names the user supplied, while $host etc.# will get canonicalized.case $host---$target---$nonopt inNONE---*---* | *---NONE---* | *---*---NONE) ;;*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;esac# Make sure we can run config.sub.if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }fiecho $ac_n "checking host system type""... $ac_c" 1>&6echo "configure:1204: checking host system type" >&5host_alias=$hostcase "$host_alias" inNONE)  case $nonopt in  NONE)    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }    fi ;;  *) host_alias=$nonopt ;;  esac ;;esachost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$host" 1>&6echo $ac_n "checking target system type""... $ac_c" 1>&6echo "configure:1225: checking target system type" >&5target_alias=$targetcase "$target_alias" inNONE)  case $nonopt in  NONE) target_alias=$host_alias ;;  *) target_alias=$nonopt ;;  esac ;;esactarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$target" 1>&6echo $ac_n "checking build system type""... $ac_c" 1>&6echo "configure:1243: checking build system type" >&5build_alias=$buildcase "$build_alias" inNONE)  case $nonopt in  NONE) build_alias=$host_alias ;;  *) build_alias=$nonopt ;;  esac ;;esacbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$build" 1>&6test "$host_alias" != "$target_alias" &&  test "$program_prefix$program_suffix$program_transform_name" = \    NONENONEs,x,x, &&  program_prefix=${target_alias}-echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6echo "configure:1268: checking for getpwnam in -lsun" >&5ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lsun  $LIBS"cat > conftest.$ac_ext <<EOF#line 1276 "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 getpwnam();int main() {getpwnam(); return 0; }EOFif { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lsun $LIBS"else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6echo "configure:1315: checking for dlsym in -ldl" >&5ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-ldl  $LIBS"cat > conftest.$ac_ext <<EOF#line 1323 "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 dlsym();int main() {dlsym(); return 0; }EOFif { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-ldl $LIBS"else  echo "$ac_t""no" 1>&6fiac_header_dirent=no

⌨️ 快捷键说明

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