configure
来自「LINUX下的源码工具,可自己分析,或者直接装在系统上作为应用」· 代码 · 共 2,083 行 · 第 1/5 页
TXT
2,083 行
# first and get that path embedded in the installed autoconf and# autoheader scripts.for ac_prog in gm4 gnum4 m4do # Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo "$as_me:$LINENO: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_path_M4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else case $M4 in [\\/]* | ?:[\\/]*) ac_cv_path_M4="$M4" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedone ;;esacfiM4=$ac_cv_path_M4if test -n "$M4"; then echo "$as_me:$LINENO: result: $M4" >&5echo "${ECHO_T}$M4" >&6else echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6fi test -n "$M4" && breakdonetest -n "$M4" || M4="m4"echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6if test "${ac_cv_prog_gnu_m4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_cv_prog_gnu_m4=noif test x"$M4" != x; then case `$M4 --help < /dev/null 2>&1` in *reload-state*) ac_cv_prog_gnu_m4=yes ;; esacfifiecho "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6if test x"$ac_cv_prog_gnu_m4" != xyes; then { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5echo "$as_me: error: GNU M4 1.4 is required" >&2;} { (exit 1); exit 1; }; }fi# Man pages. ac_config_files="$ac_config_files man/Makefile"HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}# We use a path for perl so the #! line in autoscan will work.# Extract the first word of "perl", so it can be a program name with args.set dummy perl; ac_word=$2echo "$as_me:$LINENO: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_path_PERL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedone test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" ;;esacfiPERL=$ac_cv_path_PERLif test -n "$PERL"; then echo "$as_me:$LINENO: result: $PERL" >&5echo "${ECHO_T}$PERL" >&6else echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6fiif test "$PERL" = no; then { { echo "$as_me:$LINENO: error: perl is not found" >&5echo "$as_me: error: perl is not found" >&2;} { (exit 1); exit 1; }; }fi$PERL -e 'require 5.005_03;' || { { { echo "$as_me:$LINENO: error: Perl 5.005_03 or better is required" >&5echo "$as_me: error: Perl 5.005_03 or better is required" >&2;} { (exit 1); exit 1; }; }}# Emacs modes. ac_config_files="$ac_config_files lib/emacs/Makefile"test x"$EMACS" = xt && EMACS=for ac_prog in emacs xemacsdo # Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo "$as_me:$LINENO: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_prog_EMACS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else if test -n "$EMACS"; then ac_cv_prog_EMACS="$EMACS" # Let the user override the test.elseas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_EMACS="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedonefifiEMACS=$ac_cv_prog_EMACSif test -n "$EMACS"; then echo "$as_me:$LINENO: result: $EMACS" >&5echo "${ECHO_T}$EMACS" >&6else echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6fi test -n "$EMACS" && breakdonetest -n "$EMACS" || EMACS="no"# Check whether --with-lispdir or --without-lispdir was given.if test "${with_lispdir+set}" = set; then withval="$with_lispdir" lispdir="$withval" echo "$as_me:$LINENO: checking where .elc files should go" >&5echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $lispdir" >&5echo "${ECHO_T}$lispdir" >&6else # If set to t, that means we are running in a shell under Emacs. # If you have an Emacs named "t", then use the full path. test x"$EMACS" = xt && EMACS= for ac_prog in emacs xemacsdo # Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo "$as_me:$LINENO: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_prog_EMACS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else if test -n "$EMACS"; then ac_cv_prog_EMACS="$EMACS" # Let the user override the test.elseas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_EMACS="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedonefifiEMACS=$ac_cv_prog_EMACSif test -n "$EMACS"; then echo "$as_me:$LINENO: result: $EMACS" >&5echo "${ECHO_T}$EMACS" >&6else echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6fi test -n "$EMACS" && breakdonetest -n "$EMACS" || EMACS="no" if test $EMACS != "no"; then if test x${lispdir+set} != xset; then echo "$as_me:$LINENO: checking where .elc files should go" >&5echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6if test "${am_cv_lispdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly # Some emacsen will start up in interactive mode, requiring C-x C-c to exit, # which is non-obvious for non-emacs users. # Redirecting /dev/null should help a bit; pity we can't detect "broken" # emacsen earlier and avoid running this altogether. { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } am_cv_lispdir=`sed -n \ -e 's,/$,,' \ -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \ -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \ conftest.out` rm conftest.out if test -z "$am_cv_lispdir"; then am_cv_lispdir='${datadir}/emacs/site-lisp' fifiecho "$as_me:$LINENO: result: $am_cv_lispdir" >&5echo "${ECHO_T}$am_cv_lispdir" >&6 lispdir="$am_cv_lispdir" fi fifi; ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile lib/Autom4te/Makefile lib/autoscan/Makefile lib/m4sugar/Makefile lib/autoconf/Makefile lib/autotest/Makefile bin/Makefile"cat >confcache <<\_ACEOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs, see configure's option --config-cache.# It is not useful on other systems. If it contains results you don't# want to keep, you may remove or edit it.## config.status only pays attention to the cache file if you give it# the --recheck option to rerun configure.## `ac_cv_env_foo' variables (set or unset) will be overridden when# loading this file, other *unset* `ac_cv_foo' will be assigned the# following values._ACEOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.{ (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac;} | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcacheif diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fifirm -f confcachetest "x$prefix" = xNONE && prefix=$ac_default_prefix# Let make expand exec_prefix.test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'# VPATH may cause trouble with some makes, so we remove $(srcdir),# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and# trailing colons and then remove the whole line if VPATH becomes empty# (actually we leave an empty line to preserve line numbers).if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{s/:*\$(srcdir):*/:/;s/:*\${srcdir}:*/:/;s/:*@srcdir@:*/:/;s/^\([^=]*=[ ]*\):*/\1/;s/:*$//;s/^[^=]*=[ ]*$//;}'fi# Transform confdefs.h into DEFS.# Protect against shell expansion while executing Makefile rules.# Protect against Makefile macro expansion.## If the first sed substitution is executed (which looks for macros that# take arguments), then we branch to the quote section. Otherwise,# look for a macro that doesn't take arguments.cat >confdef2opt.sed <<\_ACEOFt clear: clears,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,gt quotes,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,gt quoted: quotes,[ `~#$^&*(){}\\|;'"<>?],\\&,gs,\[,\\&,gs,\],\\&,gs,\$,$$,gp_ACEOF# We use echo to avoid assuming a particular line-breaking character.# The extra dot is to prevent the shell from consuming trailing# line-breaks from the sub-command output. A line-break within# single-quotes doesn't work because, if this script is created in a# platform that uses two characters for line-breaks (e.g., DOS), tr# would break.ac_LF_and_DOT=`echo; echo .`DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`rm -f confdef2opt.sedac_libobjs=ac_ltlibobjs=for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'doneLIBOBJS=$ac_libobjsLTLIBOBJS=$ac_ltlibobjs: ${CONFIG_STATUS=./config.status}ac_clean_files_save=$ac_clean_filesac_clean_files="$ac_clean_files $CONFIG_STATUS"{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5echo "$as_me: creating $CONFIG_STATUS" >&6;}cat >$CONFIG_STATUS <<_ACEOF#! $SHELL# Generated by $as_me.# Run this file to recreate the current configuration.# Compiler output produced by configure, useful for debugging# configure, is in config.log if it exists.debug=falseac_cs_recheck=falseac_cs_silent=falseSHELL=\${CONFIG_SHELL-$SHELL}_ACEOFcat >>$CONFIG_STATUS <<\_ACEOF## --------------------- #### M4sh Initialization. #### --------------------- ### Be Bourne compatibleif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?