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

📄 configure

📁 同时支持IPv4和IPv6的BGP协议实现
💻
📖 第 1 页 / 共 4 页
字号:
if test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else    # This must be in double quotes, not single quotes, because CPP may get  # substituted into the Makefile and "${CC-cc}" will confuse make.  CPP="${CC-cc} -E"  # On the NeXT, cc -E runs the code through the compiler's parser,  # not just through cpp.  cat > conftest.$ac_ext <<EOF#line 810 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:816: \"$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  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP="${CC-cc} -E -traditional-cpp"  cat > conftest.$ac_ext <<EOF#line 827 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:833: \"$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  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP="${CC-cc} -nologo -E"  cat > conftest.$ac_ext <<EOF#line 844 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:850: \"$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  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest*  ac_cv_prog_CPP="$CPP"fi  CPP="$ac_cv_prog_CPP"else  ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6# 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:886: 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'# Extract the first word of "shlicc2", so it can be a program name with args.set dummy shlicc2; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:945: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_bgp_cv_shlicc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$bgp_cv_shlicc"; then  ac_cv_prog_bgp_cv_shlicc="$bgp_cv_shlicc" # 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_bgp_cv_shlicc="shlicc2"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_prog_bgp_cv_shlicc" && ac_cv_prog_bgp_cv_shlicc="$CC"fifibgp_cv_shlicc="$ac_cv_prog_bgp_cv_shlicc"if test -n "$bgp_cv_shlicc"; then  echo "$ac_t""$bgp_cv_shlicc" 1>&6else  echo "$ac_t""no" 1>&6fiif test "$bgp_cv_shlicc" \!= "shlicc2"; then	# Extract the first word of "shlicc", so it can be a program name with args.set dummy shlicc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:976: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_bgp_cv_shlicc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$bgp_cv_shlicc"; then  ac_cv_prog_bgp_cv_shlicc="$bgp_cv_shlicc" # 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_bgp_cv_shlicc="shlicc"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_prog_bgp_cv_shlicc" && ac_cv_prog_bgp_cv_shlicc="$CC"fifibgp_cv_shlicc="$ac_cv_prog_bgp_cv_shlicc"if test -n "$bgp_cv_shlicc"; then  echo "$ac_t""$bgp_cv_shlicc" 1>&6else  echo "$ac_t""no" 1>&6fifiLDCC=$bgp_cv_shliccecho $ac_n "checking for inet6 library""... $ac_c" 1>&6echo "configure:1007: checking for inet6 library" >&5bgp_cv_lib6_dir="no"for bgp_lib6_dir in /usr/local/v6/lib $srcdir/../libinet6; do	if test -d $bgp_lib6_dir -a -f $bgp_lib6_dir/libinet6.a; then		bgp_cv_lib6_dir=$bgp_lib6_dir;		LDFLAGS="-L$bgp_lib6_dir $LDFLAGS"	fidoneecho "$ac_t""$bgp_cv_lib6_dir" 1>&6for ac_func in if_nameindexdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1019: 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 1024 "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:1047: \"$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>&6echo $ac_n "checking for if_nameindex in -linet6""... $ac_c" 1>&6echo "configure:1069: checking for if_nameindex in -linet6" >&5ac_lib_var=`echo inet6'_'if_nameindex | 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="-linet6  $LIBS"cat > conftest.$ac_ext <<EOF#line 1077 "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 if_nameindex();int main() {if_nameindex(); return 0; }EOFif { (eval echo configure:1088: \"$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  LDFLAGS="-linet6 $LDFLAGS"else  echo "$ac_t""no" 1>&6	echo Fatal: no inet6 library found. cannot continue;	echo You need to fetch libinet6.a from kit and compile beforehand.	exit 1fifidoneecho $ac_n "checking for rfc2292bis support""... $ac_c" 1>&6echo "configure:1116: checking for rfc2292bis support" >&5cat > conftest.$ac_ext <<EOF#line 1118 "configure"#include "confdefs.h"#include <sys/types.h>#include <netinet/in.h>int main() {int x = IPV6_RECVPKTINFO;; return 0; }EOFif { (eval echo configure:1126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  cat >> confdefs.h <<\EOF#define USE_RFC2292BIS 1EOF	echo "$ac_t""yes" 1>&6else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  echo "$ac_t""no" 1>&6firm -f conftest*v6type=unknownecho $ac_n "checking for v6 stack type from defines""... $ac_c" 1>&6echo "configure:1143: checking for v6 stack type from defines" >&5if test "$v6type" = "unknown"; then	cat > conftest.$ac_ext <<EOF#line 1146 "configure"#include "confdefs.h"#include <sys/param.h>	#ifdef _TOSHIBA_INET6	yes	#endif	EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  v6type=toshibafirm -f conftest*fiif test "$v6type" = "unknown"; then	cat > conftest.$ac_ext <<EOF#line 1164 "configure"#include "confdefs.h"#include <sys/param.h>	#ifdef _ZETA_MINAMI_INET6	yes	#endif	EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  v6type=globefirm -f conftest*fiecho "$ac_t""$v6type" 1>&6if test "$v6type" = "toshiba"; then	OPTFLAGS="-DTOSHIBA_INET6 $OPTFLAGS"fiecho $ac_n "checking for ipv6 support""... $ac_c" 1>&6echo "configure:1187: checking for ipv6 support" >&5if eval "test \"`echo '$''{'bgp_cv_ipv6'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1192 "configure"#include "confdefs.h"#define INET6#include <sys/types.h>#include <netinet/in.h>int main() {int x = IPPROTO_IPV6; struct in6_addr a;

⌨️ 快捷键说明

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