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

📄 configure

📁 MiniWeb 在嵌入式平台上运行的WEB源代码
💻
📖 第 1 页 / 共 5 页
字号:
	if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \		sed -n -e '$s/.* //' -e '$s/\..*//p'`fi	echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6	if test "$ac_cv_lbl_gcc_vers" -gt 1 ; then		V_CCOPT="-O2"	fifiif test -f .devel ; then	V_CCOPT="-g $V_CCOPT -Wall -Wmissing-prototypes -Wstrict-prototypes"fiecho $ac_n "checking how to link static binaries""... $ac_c" 1>&6echo "configure:879: checking how to link static binaries" >&5if eval "test \"`echo '$''{'ac_cv_lbl_static_flag'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_cv_lbl_static_flag=unknown    echo 'main() {}' > conftest.c    if test "$GCC" != yes ; then	    trial_flag="-Bstatic"	    test=`$CC $trial_flag -o conftest conftest.c 2>&1`	    if test -z "$test" ; then		    ac_cv_lbl_static_flag="$trial_flag"	    fi	    rm -f conftest    fi    if test "$ac_cv_lbl_static_flag" = unknown ; then	    trial_flag="-static"	    test=`$CC $trial_flag -o conftest conftest.c 2>&1`	    if test -z "$test" ; then		    ac_cv_lbl_static_flag="$trial_flag"	    fi	    rm -f conftest    fi    rm conftest.cfiecho "$ac_t""$ac_cv_lbl_static_flag" 1>&6if test "$ac_cv_lbl_static_flag" != unknown ; then	V_STATICFLAG="$ac_cv_lbl_static_flag"fiecho $ac_n "checking for __progname""... $ac_c" 1>&6echo "configure:910: checking for __progname" >&5if eval "test \"`echo '$''{'ac_cv_extern__progname'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 915 "configure"#include "confdefs.h"int main() {extern char *__progname; 	puts(__progname); return 0; }EOFif { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  ac_cv_extern__progname=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_extern__progname=nofirm -f conftest*fiif test $ac_cv_extern__progname = yes ; then	cat >> confdefs.h <<\EOF#define HAVE__PROGNAME 1EOF	echo "$ac_t""yes" 1>&6else	echo "$ac_t""no" 1>&6   fiecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:946: 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 961 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:967: \"$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 978 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:984: \"$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 995 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1001: \"$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>&6for ac_hdr in fcntl.h grp.h memory.h paths.h poll.h sys/poll.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1029: checking for $ac_hdr" >&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 1034 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1039: \"$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    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else  echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6echo "configure:1066: checking whether time.h and sys/time.h may both be included" >&5if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1071 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>#include <time.h>int main() {struct tm *tp;; return 0; }EOFif { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_header_time=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_header_time=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_time" 1>&6if test $ac_cv_header_time = yes; then  cat >> confdefs.h <<\EOF#define TIME_WITH_SYS_TIME 1EOFfiac_header_dirent=nofor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6echo "configure:1105: checking for $ac_hdr that defines DIR" >&5if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1110 "configure"#include "confdefs.h"#include <sys/types.h>#include <$ac_hdr>int main() {DIR *dirp = 0;; return 0; }EOFif { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_header_dirent_$ac_safe=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_dirent_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF ac_header_dirent=$ac_hdr; breakelse  echo "$ac_t""no" 1>&6fidone# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.if test $ac_header_dirent = dirent.h; thenecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6echo "configure:1143: checking for opendir in -ldir" >&5ac_lib_var=`echo dir'_'opendir | 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="-ldir  $LIBS"cat > conftest.$ac_ext <<EOF#line 1151 "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 opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1162: \"$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  LIBS="$LIBS -ldir"else  echo "$ac_t""no" 1>&6fielseecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6echo "configure:1184: checking for opendir in -lx" >&5ac_lib_var=`echo x'_'opendir | 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="-lx  $LIBS"cat > conftest.$ac_ext <<EOF#line 1192 "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 opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1203: \"$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  LIBS="$LIBS -lx"else  echo "$ac_t""no" 1>&6fifid="/usr/local/v6/lib"echo $ac_n "checking for $d""... $ac_c" 1>&6echo "configure:1228: checking for $d" >&5if test -d $d; then	echo "$ac_t""yes (Adding -L$d to LDFLAGS)" 1>&6	LDFLAGS="$LDFLAGS -L$d"else	echo "$ac_t""no" 1>&6fiV_NETLIBS=""echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6echo "configure:1238: checking for gethostbyname" >&5if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1243 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char gethostbyname(); 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 gethostbyname();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_gethostbyname) || defined (__stub___gethostbyname)choke me#elsegethostbyname();#endif; return 0; }EOFif { (eval echo configure:1266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_gethostbyname=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_gethostbyname=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then  echo "$ac_t""yes" 1>&6  :else  echo "$ac_t""no" 1>&6# Some OSes (eg. Solaris) place it in libnsl:    echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6echo "configure:1285: checking for gethostbyname in -lnsl" >&5ac_lib_var=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lnsl  $LIBS"

⌨️ 快捷键说明

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