📄 configure
字号:
if test x$s_linting = xt; then LINT_TRUE= LINT_FALSE='#'else LINT_TRUE='#' LINT_FALSE=fiecho $ac_n "checking whether libwrap should be disabled""... $ac_c" 1>&6echo "configure:1791: checking whether libwrap should be disabled" >&5# Check whether --enable-libwrap or --disable-libwrap was given.if test "${enable_libwrap+set}" = set; then enableval="$enable_libwrap" if test x$enableval = xno; then no_libwrap=t echo "$ac_t""yes" 1>&6else echo "$ac_t""no" 1>&6fielse echo "$ac_t""no" 1>&6fi#add /usr/local/include to directories to include path if tcpd.h#can be found there)for dir in /local/include /usr/local/include; do if test -f $dir/tcpd.h; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I${dir}" break fidonefor ac_prog in 'bison -y' byaccdo# 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:1820: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog" break fi done IFS="$ac_save_ifs"fifiYACC="$ac_cv_prog_YACC"if test -n "$YACC"; then echo "$ac_t""$YACC" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$YACC" && breakdonetest -n "$YACC" || YACC="yacc"for ac_prog in mawk gawk nawk awkdo# 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:1855: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog" break fi done IFS="$ac_save_ifs"fifiAWK="$ac_cv_prog_AWK"if test -n "$AWK"; then echo "$ac_t""$AWK" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$AWK" && breakdoneecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:1885: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif 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 1900 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1906: \"$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 1917 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1923: \"$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 1934 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1940: \"$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>&6missing_dir=`cd $ac_aux_dir && pwd`for ac_prog in flex lexdo# 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:1970: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog" break fi done IFS="$ac_save_ifs"fifiLEX="$ac_cv_prog_LEX"if test -n "$LEX"; then echo "$ac_t""$LEX" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$LEX" && breakdonetest -n "$LEX" || LEX=""$missing_dir/missing flex""# Extract the first word of "flex", so it can be a program name with args.set dummy flex; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2003: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # 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_LEX="flex" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"fifiLEX="$ac_cv_prog_LEX"if test -n "$LEX"; then echo "$ac_t""$LEX" 1>&6else echo "$ac_t""no" 1>&6fiif test -z "$LEXLIB"then case "$LEX" in flex*) ac_lib=fl ;; *) ac_lib=l ;; esac echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6echo "configure:2037: checking for yywrap in -l$ac_lib" >&5ac_lib_var=`echo $ac_lib'_'yywrap | 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="-l$ac_lib $LIBS"cat > conftest.$ac_ext <<EOF#line 2045 "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 yywrap();int main() {yywrap(); return 0; }EOFif { (eval echo configure:2056: \"$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 LEXLIB="-l$ac_lib"else echo "$ac_t""no" 1>&6fifiecho $ac_n "checking lex output file root""... $ac_c" 1>&6echo "configure:2079: checking lex output file root" >&5if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # The minimal lex program is just a single line: %%. But some broken lexes# (Solaris, I think it was) want two %% lines, so accommodate them.echo '%%%%' | $LEXif test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yyelif test -f lexyy.c; then ac_cv_prog_lex_root=lexyyelse { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }fifiecho "$ac_t""$ac_cv_prog_lex_root" 1>&6LEX_OUTPUT_ROOT=$ac_cv_prog_lex_rootecho $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6echo "configure:2100: checking whether yytext is a pointer" >&5if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # POSIX says lex can declare yytext either as a pointer or an array; the# default is implementation-dependent. Figure out which it is, since# not all implementations provide the %pointer and %array declarations.ac_cv_prog_lex_yytext_pointer=noecho 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.cac_save_LIBS="$LIBS"LIBS="$LIBS $LEXLIB"cat > conftest.$ac_ext <<EOF#line 2112 "configure"#include "confdefs.h"`cat $LEX_OUTPUT_ROOT.c`int main() {; return 0; }EOFif { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_prog_lex_yytext_pointer=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*LIBS="$ac_save_LIBS"rm -f "${LEX_OUTPUT_ROOT}.c"fiecho "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6if test $ac_cv_prog_lex_yytext_pointer = yes; then cat >> confdefs.h <<\EOF#define YYTEXT_POINTER 1EOFfiecho $ac_n "checking size of char""... $ac_c" 1>&6echo "configure:2142: checking size of char" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }else cat > conftest.$ac_ext <<EOF#line 2150 "configure"#include "confdefs.h"#include <stdio.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(char)); exit(0);}EOFif { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_char=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_char=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_char" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_CHAR $ac_cv_sizeof_charEOFecho $ac_n "checking size of short""... $ac_c" 1>&6echo "configure:2181: checking size of short" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }else cat > conftest.$ac_ext <<EOF#line 2189 "configure"#include "confdefs.h"#include <stdio.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(short)); exit(0);}EOFif { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_short=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_short=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_short" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_SHORT $ac_cv_sizeof_shortEOFecho $ac_n "checking size of int""... $ac_c" 1>&6echo "configure:2220: checking size of int" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then echo $ac_n "(ca
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -