?? status.m4
字號(hào):
m4_ifval([$1], [AC_CONFIG_FILES([$1])])dnlm4_ifval([$2$3], [AC_CONFIG_COMMANDS(default, [$2], [$3])])dnlm4_ifval([$1$2$3], [AC_DIAGNOSE([obsolete], [$0 should be used without arguments.You should run autoupdate.])])dnlAC_CACHE_SAVEtest "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/^[^=]*=[ ]*$//;}']fim4_ifset([AC_LIST_HEADERS], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()])dnl Commands to run before creating config.status.AC_OUTPUT_COMMANDS_PRE()dnl: ${CONFIG_STATUS=./config.status}ac_clean_files_save=$ac_clean_filesac_clean_files="$ac_clean_files $CONFIG_STATUS"_AC_OUTPUT_CONFIG_STATUS()dnlac_clean_files=$ac_clean_files_savednl Commands to run after config.status was createdAC_OUTPUT_COMMANDS_POST()dnl# configure is writing to config.log, and then calls config.status.# config.status does its own redirection, appending to config.log.# Unfortunately, on DOS this fails, as config.log is still kept open# by configure, so config.status won't be able to write to it; its# output is simply discarded. So we exec the FD to /dev/null,# effectively closing config.log, so it can be properly (re)opened and# appended to by config.status. When coming back to configure, we# need to make the FD available again.if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec AS_MESSAGE_LOG_FD>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || AS_EXIT([1])fidnl config.status should not do recursion.AC_PROVIDE_IFELSE([AC_CONFIG_SUBDIRS], [_AC_OUTPUT_SUBDIRS()])dnl])# AC_OUTPUT# _AC_OUTPUT_CONFIG_STATUS# ------------------------# Produce config.status. Called by AC_OUTPUT.# Pay special attention not to have too long here docs: some old# shells die. Unfortunately the limit is not known precisely...m4_define([_AC_OUTPUT_CONFIG_STATUS],[AC_MSG_NOTICE([creating $CONFIG_STATUS])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 <<\_ACEOFAS_SHELL_SANITIZEdnl Watch out, this is directly the initializations, do not usednl AS_PREPARE, otherwise you'd get it output in the initializationdnl of configure, not config.status._AS_PREPAREexec AS_MESSAGE_FD>&1# Open the log real soon, to keep \$[0] and so on meaningful, and to# report actual input values of CONFIG_FILES etc. instead of their# values after options handling. Logging --version etc. is OK.exec AS_MESSAGE_LOG_FD>>config.log{ echo AS_BOX([Running $as_me.])} >&AS_MESSAGE_LOG_FDcat >&AS_MESSAGE_LOG_FD <<_CSEOFThis file was extended by m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])dnl$as_me[]m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]), which wasgenerated by m4_PACKAGE_STRING. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $[0] $[@]_CSEOFecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&AS_MESSAGE_LOG_FDecho >&AS_MESSAGE_LOG_FD_ACEOF# Files that config.status was made for.if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUSfiif test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUSfiif test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUSfiif test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUSficat >>$CONFIG_STATUS <<\_ACEOFac_cs_usage="\\`$as_me' instantiates files from templates according to thecurrent configuration.Usage: $[0] [[OPTIONS]] [[FILE]]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditionsm4_ifset([AC_LIST_FILES],[[ --file=FILE[:TEMPLATE] instantiate the configuration file FILE]])dnlm4_ifset([AC_LIST_HEADERS],[[ --header=FILE[:TEMPLATE] instantiate the configuration header FILE]])dnlm4_ifset([AC_LIST_FILES],[Configuration files:$config_files])dnlm4_ifset([AC_LIST_HEADERS],[Configuration headers:$config_headers])dnlm4_ifset([AC_LIST_LINKS],[Configuration links:$config_links])dnlm4_ifset([AC_LIST_COMMANDS],[Configuration commands:$config_commands])dnlReport bugs to <bug-autoconf@gnu.org>."_ACEOFcat >>$CONFIG_STATUS <<_ACEOFac_cs_version="\\m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.status[]dnlm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])configured by $[0], generated by m4_PACKAGE_STRING, with options \\"`echo "$ac_configure_args" | sed 's/[[\\""\`\$]]/\\\\&/g'`\\"Copyright (C) 2003 Free Software Foundation, Inc.This config.status script is free software; the Free Software Foundationgives unlimited permission to copy, distribute and modify it."srcdir=$srcdirAC_PROVIDE_IFELSE([AC_PROG_INSTALL],[dnl Leave those double quotes here: this $INSTALL is evaluated in adnl here document, which might result in `INSTALL=/bin/install -c'.INSTALL="$INSTALL"])dnl_ACEOFcat >>$CONFIG_STATUS <<\_ACEOF# If no file are specified by the user, then we need to provide default# value. By we need to know if files were specified by the user.ac_need_defaults=:while test $[#] != 0do case $[1] in --*=*) ac_option=`expr "x$[1]" : 'x\([[^=]]*\)='` ac_optarg=`expr "x$[1]" : 'x[[^=]]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$[1] ac_optarg=$[2] ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$[1] ac_need_defaults=false;; esac case $ac_option in # Handling of the options._ACEOFcat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header AC_MSG_ERROR([ambiguous option: $[1]Try `$[0] --help' for more information.]);; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) AC_MSG_ERROR([unrecognized option: $[1]Try `$[0] --help' for more information.]) ;; *) ac_config_targets="$ac_config_targets $[1]" ;; esac shiftdoneac_configure_extra_args=if $ac_cs_silent; then exec AS_MESSAGE_FD>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent"fi_ACEOFcat >>$CONFIG_STATUS <<_ACEOFif \$ac_cs_recheck; then echo "running $SHELL $[0] " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&AS_MESSAGE_FD exec $SHELL $[0] $ac_configure_args \$ac_configure_extra_args --no-create --no-recursionfi_ACEOFdnl We output the INIT-CMDS first for obvious reasons :)m4_ifset([_AC_OUTPUT_COMMANDS_INIT],[cat >>$CONFIG_STATUS <<_ACEOF## INIT-COMMANDS section.#_AC_OUTPUT_COMMANDS_INIT()_ACEOF])dnl Issue this section only if there were actually config files.dnl This checks if one of AC_LIST_HEADERS, AC_LIST_FILES, AC_LIST_COMMANDS,dnl or AC_LIST_LINKS is set.m4_ifval(AC_LIST_HEADERS()AC_LIST_LINKS()AC_LIST_FILES()AC_LIST_COMMANDS(),[cat >>$CONFIG_STATUS <<\_ACEOFfor ac_config_target in $ac_config_targetsdo case "$ac_config_target" in # Handling of arguments.AC_FOREACH([AC_File], AC_LIST_FILES,[ "m4_bpatsubst(AC_File, [:.*])" )dnl CONFIG_FILES="$CONFIG_FILES AC_File" ;;])dnlAC_FOREACH([AC_File], AC_LIST_LINKS,[ "m4_bpatsubst(AC_File, [:.*])" )dnl CONFIG_LINKS="$CONFIG_LINKS AC_File" ;;])dnlAC_FOREACH([AC_File], AC_LIST_COMMANDS,[ "m4_bpatsubst(AC_File, [:.*])" )dnl CONFIG_COMMANDS="$CONFIG_COMMANDS AC_File" ;;])dnlAC_FOREACH([AC_File], AC_LIST_HEADERS,[ "m4_bpatsubst(AC_File, [:.*])" )dnl CONFIG_HEADERS="$CONFIG_HEADERS AC_File" ;;])dnl *) AC_MSG_ERROR([invalid argument: $ac_config_target]);; esacdone# If the user did not use the arguments to specify the items to instantiate,# then the envvar interface is used. Set only those that are not.# We use the long form for the default assignment because of an extremely# bizarre bug on SunOS 4.1.3.if $ac_need_defaults; thenm4_ifset([AC_LIST_FILES],[ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files])dnlm4_ifset([AC_LIST_HEADERS],[ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers])dnlm4_ifset([AC_LIST_LINKS],[ test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links])dnlm4_ifset([AC_LIST_COMMANDS],[ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands])dnlfi# Have a temporary directory for convenience. Make it in the build tree# simply because there is no reason to put it here, and in addition,# creating and moving files from /tmp can sometimes cause problems.AS_TMPDIR([confstat], [.])_ACEOF])[]dnl m4_ifvaldnl The following four sections are in charge of their own herednl documenting into $CONFIG_STATUS.m4_ifset([AC_LIST_FILES], [_AC_OUTPUT_FILES()])dnlm4_ifset([AC_LIST_HEADERS], [_AC_OUTPUT_HEADERS()])dnlm4_ifset([AC_LIST_LINKS], [_AC_OUTPUT_LINKS()])dnlm4_ifset([AC_LIST_COMMANDS], [_AC_OUTPUT_COMMANDS()])dnlcat >>$CONFIG_STATUS <<\_ACEOFAS_EXIT(0)_ACEOFchmod +x $CONFIG_STATUS])# _AC_OUTPUT_CONFIG_STATUS# AC_OUTPUT_MAKE_DEFS# -------------------# Set the DEFS variable to the -D options determined earlier.# This is a subroutine of AC_OUTPUT.# It is called inside configure, outside of config.status.# Using a here document instead of a string reduces the quoting nightmare.m4_define([AC_OUTPUT_MAKE_DEFS],[[# 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.sed]])# AC_OUTPUT_MAKE_DEFS
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -