?? status.m4
字號:
done_ACEOF])# _AC_OUTPUT_LINKS## --------------------- #### Configuration files. #### --------------------- ### _AC_CONFIG_FILE(FILE..., [COMMANDS])# ------------------------------------# See below.m4_define([_AC_CONFIG_FILE],[_AC_CONFIG_UNIQUE([$1])dnlm4_append([AC_LIST_FILES], [ $1])dnl_AC_CONFIG_DEPENDENCIES([$1])dnldnl Register the commands.m4_ifval([$2],[m4_append([AC_LIST_FILES_COMMANDS],[ ]m4_bpatsubst([$1], [:.*])[ ) $2 ;;])])dnl])# AC_CONFIG_FILES(FILE..., [COMMANDS], [INIT-CMDS])# -------------------------------------------------# Specify output files, as with AC_OUTPUT, i.e., files that are# configured with AC_SUBST. Associate the COMMANDS to each FILE,# i.e., when config.status creates FILE, run COMMANDS afterwards.## The commands are stored in a growing string AC_LIST_FILES_COMMANDS# which should be used like this:## case $ac_file in# AC_LIST_FILES_COMMANDS# esacAC_DEFUN([AC_CONFIG_FILES],[AC_FOREACH([AC_File], [$1], [_AC_CONFIG_FILE(m4_defn([AC_File]), [$2])])dnl_AC_CONFIG_COMMANDS_INIT([$3])dnlac_config_files="$ac_config_files m4_normalize([$1])"])# Initialize the lists.m4_define([AC_LIST_FILES])m4_define([AC_LIST_FILES_COMMANDS])# _AC_OUTPUT_FILES# ----------------# Do the variable substitutions to create the Makefiles or whatever.# This is a subroutine of AC_OUTPUT.## It has to send itself into $CONFIG_STATUS (eg, via here documents).# Upon exit, no here document shall be opened.m4_define([_AC_OUTPUT_FILES],[cat >>$CONFIG_STATUS <<_ACEOF## CONFIG_FILES section.## No need to generate the scripts if there are no CONFIG_FILES.# This happens for instance when ./config.status config.hif test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status.dnl Please, pay attention that this sed code depends a lot on the shapednl of the sed commands issued by AC_SUBST. So if you change one, changednl the other too.[ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF]dnl These here document variables are unquoted when configure runsdnl but quoted when config.status runs, so variables are expanded once.dnl Insert the sed substitutions of variables.m4_ifdef([_AC_SUBST_VARS], [AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_VARS]),[s,@AC_Var@,$AC_Var,;t t])])dnlm4_ifdef([_AC_SUBST_FILES], [AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_FILES]),[/@AC_Var@/r $AC_Vars,@AC_Var@,,;t t])])dnlCEOF_ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX.dnl One cannot portably go further than 100 commands because of HP-UX.dnl Here, there are 2 cmd per line, and two cmd are added later. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo [':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b'] && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fifi # test -n "$CONFIG_FILES"_ACEOFcat >>$CONFIG_STATUS <<\_ACEOFfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[[^:]]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[[^:]]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`AS_DIRNAME(["$ac_file"])` AS_MKDIR_P(["$ac_dir"]) _AC_SRCPATHS(["$ac_dir"])AC_PROVIDE_IFELSE([AC_PROG_INSTALL],[ case $INSTALL in [[\\/$]]* | ?:[[\\/]]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac])dnl if test x"$ac_file" != x-; then AC_MSG_NOTICE([creating $ac_file]) rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [[\\/$]]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || AC_MSG_ERROR([cannot find input file: $f]) echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$srcdir/$f"; then # Source tree echo $srcdir/$f else # /dev/null tree AC_MSG_ERROR([cannot find input file: $f]) fi;; esac done` || AS_EXIT([1])_ACEOFcat >>$CONFIG_STATUS <<_ACEOFdnl Neutralize VPATH when `$srcdir' = `.'. sed "$ac_vpsubdnl Shell code in configure.ac might set extrasub.dnl FIXME: do we really want to maintain this feature?$extrasub_ACEOFcat >>$CONFIG_STATUS <<\_ACEOF:t[/@[a-zA-Z_][a-zA-Z_0-9]*@/!b]s,@configure_input@,$configure_input,;t ts,@srcdir@,$ac_srcdir,;t ts,@abs_srcdir@,$ac_abs_srcdir,;t ts,@top_srcdir@,$ac_top_srcdir,;t ts,@abs_top_srcdir@,$ac_abs_top_srcdir,;t ts,@builddir@,$ac_builddir,;t ts,@abs_builddir@,$ac_abs_builddir,;t ts,@top_builddir@,$ac_top_builddir,;t ts,@abs_top_builddir@,$ac_abs_top_builddir,;t tAC_PROVIDE_IFELSE([AC_PROG_INSTALL], [s,@INSTALL@,$ac_INSTALL,;t t])dnldnl The parens around the eval prevent an "illegal io" in Ultrix sh." $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdindnl This would break Makefile dependencies.dnl if diff $ac_file $tmp/out >/dev/null 2>&1; thendnl echo "$ac_file is unchanged"dnl elsednl rm -f $ac_filednl mv $tmp/out $ac_filednl fi if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fim4_ifset([AC_LIST_FILES_COMMANDS],[ # Run the commands associated with the file. case $ac_file inAC_LIST_FILES_COMMANDS()dnl esac])dnldone_ACEOF])# _AC_OUTPUT_FILES## ----------------------- #### Configuration subdirs. #### ----------------------- ### AC_CONFIG_SUBDIRS(DIR ...)# --------------------------# We define two variables:# - ac_subdirs_all# is built in the `default' section, and should contain *all*# the arguments of AC_CONFIG_SUBDIRS. It is used for --help=recursive.# It makes no sense for arguments which are sh variables.# - subdirs# which is built at runtime, so some of these dirs might not be# included, if for instance the user refused a part of the tree.# This is used in _AC_OUTPUT_SUBDIRS.# _AC_LIST_SUBDIRS is used only for _AC_CONFIG_UNIQUE.AC_DEFUN([AC_CONFIG_SUBDIRS],[_AC_CONFIG_UNIQUE([$1])dnlAC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnlm4_append([_AC_LIST_SUBDIRS], [ $1])dnlAS_LITERAL_IF([$1], [], [AC_DIAGNOSE(syntax, [$0: you should use literals])])m4_divert_text([DEFAULTS], [ac_subdirs_all="$ac_subdirs_all m4_normalize([$1])"])AC_SUBST(subdirs, "$subdirs $1")dnl])# Initialize the list.m4_define([_AC_LIST_SUBDIRS])# _AC_OUTPUT_SUBDIRS# ------------------# This is a subroutine of AC_OUTPUT, but it does not go into# config.status, rather, it is called after running config.status.m4_define([_AC_OUTPUT_SUBDIRS],[## CONFIG_SUBDIRS section.#if test "$no_recursion" != yes; then # Remove --cache-file and --srcdir arguments so they do not pile up. ac_sub_configure_args= ac_prev= for ac_arg in $ac_configure_args; do if test -n "$ac_prev"; then ac_prev= continue fi case $ac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d $srcdir/$ac_dir || continue AC_MSG_NOTICE([configuring in $ac_dir]) AS_MKDIR_P(["$ac_dir"]) _AC_SRCPATHS(["$ac_dir"]) cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" elif test -f $ac_srcdir/configure; then ac_sub_configure="$SHELL '$ac_srcdir/configure'" elif test -f $ac_srcdir/configure.in; then ac_sub_configure=$ac_configure else AC_MSG_WARN([no configuration information is in $ac_dir]) ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case $cache_file in [[\\/]]* | ?:[[\\/]]* ) ac_sub_cache_file=$cache_file ;; *) # Relative path. ac_sub_cache_file=$ac_top_builddir$cache_file ;; esac AC_MSG_NOTICE([running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir]) # The eval makes quoting arguments work. eval $ac_sub_configure $ac_sub_configure_args \ --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || AC_MSG_ERROR([$ac_sub_configure failed for $ac_dir]) fi cd $ac_popdir donefi])# _AC_OUTPUT_SUBDIRS## -------------------------- #### Outputting config.status. #### -------------------------- ### autoupdate::AC_OUTPUT([CONFIG_FILES...], [EXTRA-CMDS], [INIT-CMDS])# -------------------------------------------------------------------## If there are arguments given to AC_OUTPUT, dispatch them to the# proper modern macros.AU_DEFUN([AC_OUTPUT],[m4_ifvaln([$1], [AC_CONFIG_FILES([$1])])dnlm4_ifvaln([$2$3], [AC_CONFIG_COMMANDS(default, [[$2]], [[$3]])])dnl[AC_OUTPUT]])# AC_OUTPUT([CONFIG_FILES...], [EXTRA-CMDS], [INIT-CMDS])# -------------------------------------------------------# The big finish.# Produce config.status, config.h, and links; and configure subdirs.# The CONFIG_HEADERS are defined in the m4 variable AC_LIST_HEADERS.# 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],[dnl Dispatch the extra arguments to their native macros.m4_ifval([$1], [AC_CONFIG_FILES([$1])])dnlm4_ifval([$2$3], [AC_CONFIG_COMMANDS(default, [$2], [$3])])dnl
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -