📄 configure
字号:
#include "confdefs.h"$ac_progEOFeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then rm -rf conftest* ac_need_trad=1firm -f conftest* if test -z "$ac_need_trad"; then ac_prog='#include <termio.h>Autoconf TCGETA' cat > conftest.${ac_ext} <<EOF#include "confdefs.h"$ac_progEOFeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then rm -rf conftest* ac_need_trad=1firm -f conftest* fi test -n "$ac_need_trad" && CC="$CC -traditional"fiac_save_LIBS="${LIBS}"LIBS="${LIBS} -lseq"ac_have_lib=""test -n "$silent" || echo "checking for -lseq"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"int main() { return 0; }int t() { main();; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_have_lib="1"firm -f conftest*LIBS="${ac_save_LIBS}"if test -n "${ac_have_lib}"; then :; LIBS="$LIBS -lseq"else :; fiac_save_LIBS="${LIBS}"LIBS="${LIBS} -lsun"ac_have_lib=""test -n "$silent" || echo "checking for -lsun"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"int main() { return 0; }int t() { main();; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_have_lib="1"firm -f conftest*LIBS="${ac_save_LIBS}"if test -n "${ac_have_lib}"; then :; LIBS="$LIBS -lsun"else :; fitest -n "$silent" || echo "checking for directory library header"ac_dir_header=if test -z "$ac_dir_header"; then test -n "$silent" || echo "checking for dirent.h"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/types.h>#include <dirent.h>int main() { return 0; }int t() { DIR *dirp = 0;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining DIRENT"echo "#define" DIRENT "1" >> confdefs.hDEFS="$DEFS -DDIRENT=1"} ac_dir_header=dirent.hfirm -f conftest*fiif test -z "$ac_dir_header"; then test -n "$silent" || echo "checking for sys/ndir.h"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/types.h>#include <sys/ndir.h>int main() { return 0; }int t() { DIR *dirp = 0;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining SYSNDIR"echo "#define" SYSNDIR "1" >> confdefs.hDEFS="$DEFS -DSYSNDIR=1"} ac_dir_header=sys/ndir.hfirm -f conftest*fiif test -z "$ac_dir_header"; then test -n "$silent" || echo "checking for sys/dir.h"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/types.h>#include <sys/dir.h>int main() { return 0; }int t() { DIR *dirp = 0;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining SYSDIR"echo "#define" SYSDIR "1" >> confdefs.hDEFS="$DEFS -DSYSDIR=1"} ac_dir_header=sys/dir.hfirm -f conftest*fiif test -z "$ac_dir_header"; then test -n "$silent" || echo "checking for ndir.h"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/types.h>#include <ndir.h>int main() { return 0; }int t() { DIR *dirp = 0;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining NDIR"echo "#define" NDIR "1" >> confdefs.hDEFS="$DEFS -DNDIR=1"} ac_dir_header=ndir.hfirm -f conftest*fitest -n "$silent" || echo "checking for closedir return value"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/types.h>#include <$ac_dir_header>int closedir(); main() { exit(closedir(opendir(".")) != 0); }EOFeval $ac_compileif test -s conftest && (./conftest; exit) 2>/dev/null; then :else {test -n "$verbose" && \echo " defining VOID_CLOSEDIR"echo "#define" VOID_CLOSEDIR "1" >> confdefs.hDEFS="$DEFS -DVOID_CLOSEDIR=1"}firm -fr conftest*test -n "$silent" || echo "checking for Xenix"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#if defined(M_XENIX) && !defined(M_UNIX) yes#endifEOFeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"if egrep "yes" conftest.out >/dev/null 2>&1; then rm -rf conftest* XENIX=1firm -f conftest*if test -n "$XENIX"; then LIBS="$LIBS -lx" case "$DEFS" in *SYSNDIR*) ;; *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx. esacfiac_save_LIBS="${LIBS}"LIBS="${LIBS} -lintl"ac_have_lib=""test -n "$silent" || echo "checking for -lintl"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"int main() { return 0; }int t() { main();; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_have_lib="1"firm -f conftest*LIBS="${ac_save_LIBS}"if test -n "${ac_have_lib}"; then :; LIBS="$LIBS -lintl"else :; fifor ac_hdr in strings.h string.h stdlib.h time.h sys/termio.hdoac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`test -n "$silent" || echo "checking for ${ac_hdr}"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <${ac_hdr}>EOF# Some shells (Coherent) do redirections in the wrong order, so need# the parens.ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`if test -z "$ac_err"; then rm -rf conftest* {test -n "$verbose" && \echo " defining ${ac_tr_hdr}"echo "#define" ${ac_tr_hdr} "1" >> confdefs.hDEFS="$DEFS -D${ac_tr_hdr}=1"}firm -f conftest*doneecho '#include "confdefs.h"#include <sys/termio.h>' > conftest.${ac_ext}eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"if egrep "tcflag_t" conftest.out >/dev/null 2>&1; then rm -rf conftest* DEFS="$DEFS -DHAVE_TCFLAG_T=1"firm -f conftest*test -n "$silent" || echo "checking for which method to use to turn keyboard echo on/off"cat > conftest.${ac_ext} <<EOF#include "confdefs.h" #include <sys/termio.h> #include <sgtty.h> int main() { return 0; }int t() { CBREAK ; return 0; }EOFif eval $ac_compile; then rm -rf conftest* DEFS="$DEFS -DBSD_ECHO=1"else rm -rf conftest* firm -f conftest*ac_save_LIBS="${LIBS}"LIBS="${LIBS} -lsocket"ac_have_lib=""test -n "$silent" || echo "checking for -lsocket"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"int main() { return 0; }int t() { main();; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_have_lib="1"firm -f conftest*LIBS="${ac_save_LIBS}"if test -n "${ac_have_lib}"; then :; LIBS="$LIBS -lsocket"else :; fiac_save_LIBS="${LIBS}"LIBS="${LIBS} -lnsl"ac_have_lib=""test -n "$silent" || echo "checking for -lnsl"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"int main() { return 0; }int t() { main();; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_have_lib="1"firm -f conftest*LIBS="${ac_save_LIBS}"if test -n "${ac_have_lib}"; then :; LIBS="$LIBS -lnsl"else :; fifor ac_func in bcopydoac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`test -n "$silent" || echo "checking for ${ac_func}"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <ctype.h>int main() { return 0; }int t() { /* 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/* Override any gcc2 internal prototype to avoid an error. */extern char ${ac_func}(); ${ac_func}();#endif; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining ${ac_tr_func}"echo "#define" ${ac_tr_func} "1" >> confdefs.hDEFS="$DEFS -D${ac_tr_func}=1"}firm -f conftest*done# The preferred way to propogate these variables is regular @ substitutions.if test -n "$prefix"; then ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"else prefix=/usr/localfiif test -n "$exec_prefix"; then ac_prsub="$ac_prsubs%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"else exec_prefix='${prefix}' # Let make expand it.fi# Any assignment to VPATH causes Sun make to only execute# the first set of double-colon rules, so remove it if not needed.# If there is a colon in the path, we need to keep it.if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'fi# Quote sed substitution magic chars in DEFS.cat >conftest.def <<EOF$DEFSEOFac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`rm -f conftest.def# Substitute for predefined variables.trap 'rm -f config.status; exit 1' 1 2 15echo creating config.statusrm -f config.statuscat > config.status <<EOF#!/bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:## $0 $configure_argsac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"for ac_optiondo case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "config.status generated by autoconf version 1.11" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esacdonetrap 'rm -f Makefile; exit 1' 1 2 15CC='$CC'CPP='$CPP'PIPE='$PIPE'LIBS='$LIBS'srcdir='$srcdir'top_srcdir='$top_srcdir'prefix='$prefix'exec_prefix='$exec_prefix'DEFS='$DEFS'ac_prsub='$ac_prsub'ac_vpsub='$ac_vpsub'extrasub='$extrasub'EOFcat >> config.status <<\EOFac_given_srcdir=$srcdirCONFIG_FILES=${CONFIG_FILES-"Makefile"}for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/$ac_dir" else ac_dir_suffix= fi # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dir_suffix"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac echo creating "$ac_file" rm -f "$ac_file" comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure." case "$ac_file" in *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;; * ) echo "# $comment_str" > "$ac_file" ;; esac sed -e "$ac_prsub$ac_vpsub$extrasubs%@CC@%$CC%gs%@CPP@%$CPP%gs%@PIPE@%$PIPE%gs%@LIBS@%$LIBS%gs%@srcdir@%$srcdir%gs%@top_srcdir@%$top_srcdir%gs%@prefix@%$prefix%gs%@exec_prefix@%$exec_prefix%gs%@DEFS@%$DEFS%" $ac_given_srcdir/${ac_file}.in >> $ac_filefi; doneexit 0EOFchmod +x config.status# Some shells look in PATH for config.status without the "./".test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -