📄 aclocal.m4
字号:
_LT_DECL([], [build_os], [0])dnldnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([LT_PATH_LD])dnlAC_REQUIRE([LT_PATH_NM])dnldnlAC_REQUIRE([AC_PROG_LN_S])dnltest -z "$LN_S" && LN_S="ln -s"_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnldnlAC_REQUIRE([LT_CMD_MAX_LEN])dnl_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnldnlm4_require([_LT_FILEUTILS_DEFAULTS])dnlm4_require([_LT_CHECK_SHELL_FEATURES])dnlm4_require([_LT_CMD_RELOAD])dnlm4_require([_LT_CHECK_MAGIC_METHOD])dnlm4_require([_LT_CMD_OLD_ARCHIVE])dnlm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl_LT_CONFIG_LIBTOOL_INIT([# See if we are running on zsh, and set the options which allow our# commands through without removal of \ escapes INIT.if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBSTfi])if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBSTfi_LT_CHECK_OBJDIRm4_require([_LT_TAG_COMPILER])dnl_LT_PROG_ECHO_BACKSLASHcase $host_os inaix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;;esac# Sed substitution that helps us do robust quoting. It backslashifies# metacharacters that are still active within double-quoted strings.sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'# Same as above, but do not quote variable references.double_quote_subst='s/\([["`\\]]\)/\\\1/g'# Sed substitution to delay expansion of an escaped shell variable in a# double_quote_subst'ed string.delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'# Sed substitution to delay expansion of an escaped single quote.delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'# Sed substitution to avoid accidental globbing in evaled expressionsno_glob_subst='s/\*/\\\*/g'# Global variables:ofile=libtoolcan_build_shared=yes# All known linkers require a `.a' archive for static linking (except MSVC,# which needs '.lib').libext=awith_gnu_ld="$lt_cv_prog_gnu_ld"old_CC="$CC"old_CFLAGS="$CFLAGS"# Set sane defaults for various variablestest -z "$CC" && CC=cctest -z "$LTCC" && LTCC=$CCtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGStest -z "$LD" && LD=ldtest -z "$ac_objext" && ac_objext=o_LT_CC_BASENAME([$compiler])# Only perform the check for file, if the check method requires ittest -z "$MAGIC_CMD" && MAGIC_CMD=filecase $deplibs_check_method infile_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;;esac# Use C for the default configuration in the libtool scriptLT_SUPPORTED_TAG([CC])_LT_LANG_C_CONFIG_LT_LANG_DEFAULT_CONFIG_LT_CONFIG_COMMANDS])# _LT_SETUP# _LT_PROG_LTMAIN# ---------------# Note that this code is called both from `configure', and `config.status'# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,# `config.status' has no value for ac_aux_dir unless we are using Automake,# so we pass a copy along to make sure it has a sensible value anyway.m4_defun([_LT_PROG_LTMAIN],[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])ltmain="$ac_aux_dir/ltmain.sh"])# _LT_PROG_LTMAIN# So that we can recreate a full libtool script including additional# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS# in macros and then make a single call at the end using the `libtool'# label.# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])# ----------------------------------------# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.m4_define([_LT_CONFIG_LIBTOOL_INIT],[m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1])])])# Initialize.m4_define([_LT_OUTPUT_LIBTOOL_INIT])# _LT_CONFIG_LIBTOOL([COMMANDS])# ------------------------------# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.m4_define([_LT_CONFIG_LIBTOOL],[m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1])])])# Initialize.m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])# -----------------------------------------------------m4_defun([_LT_CONFIG_SAVE_COMMANDS],[_LT_CONFIG_LIBTOOL([$1])_LT_CONFIG_LIBTOOL_INIT([$2])])# _LT_FORMAT_COMMENT([COMMENT])# -----------------------------# Add leading comment marks to the start of each line, and a trailing# full-stop to the whole comment if one is not present already.m4_define([_LT_FORMAT_COMMENT],[m4_ifval([$1], [m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]))])# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])# -------------------------------------------------------------------# CONFIGNAME is the name given to the value in the libtool script.# VARNAME is the (base) name used in the configure script.# VALUE may be 0, 1 or 2 for a computed quote escaped value based on# VARNAME. Any other value will be used directly.m4_define([_LT_DECL],[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])])])# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])# --------------------------------------------------------m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])# ------------------------------------------------m4_define([lt_decl_tag_varnames],[_lt_decl_filter([tagged?], [yes], $@)])# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])# ---------------------------------------------------------m4_define([_lt_decl_filter],[m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl])# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])# --------------------------------------------------m4_define([lt_decl_quote_varnames],[_lt_decl_filter([value], [1], $@)])# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])# ---------------------------------------------------m4_define([lt_decl_dquote_varnames],[_lt_decl_filter([value], [2], $@)])# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])# ---------------------------------------------------m4_define([lt_decl_varnames_tagged],[_$0(m4_quote(m4_default([$1], [[, ]])), m4_quote(m4_if([$2], [], m4_quote(lt_decl_tag_varnames), m4_quote(m4_shift($@)))), m4_split(m4_normalize(m4_quote(_LT_TAGS))))])m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])# ------------------------------------------------m4_define([lt_decl_all_varnames],[_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl])m4_define([_lt_decl_all_varnames],[lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl])# _LT_CONFIG_STATUS_DECLARE([VARNAME])# ------------------------------------# Quote a variable value, and forward it to `config.status' so that its# declaration there will have the same value as in `configure'. VARNAME# must have a single quote delimited value for this to work.m4_define([_LT_CONFIG_STATUS_DECLARE],[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])# _LT_CONFIG_STATUS_DECLARATIONS# ------------------------------# We delimit libtool config variables with single quotes, so when# we write them to config.status, we have to be sure to quote all# embedded single quotes properly. In configure, this macro expands# each variable declared with _LT_DECL (and _LT_TAGDECL) into:## <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])# _LT_LIBTOOL_TAGS# ----------------# Output comment and list of tags supported by the scriptm4_defun([_LT_LIBTOOL_TAGS],[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnlavailable_tags="_LT_TAGS"dnl])# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])# -----------------------------------# Extract the dictionary values for VARNAME (optionally with TAG) and# expand to a commented shell variable setting:## # Some comment about what VAR is for.# visible_name=$lt_internal_namem4_define([_LT_LIBTOOL_DECLARE],[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnlm4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnlm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnlm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl])# _LT_LIBTOOL_CONFIG_VARS# -----------------------# Produce commented declarations of non-tagged libtool config variables# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'# script. Tagged libtool config variables (even for the LIBTOOL CONFIG# section) are produced by _LT_LIBTOOL_TAG_VARS.m4_defun([_LT_LIBTOOL_CONFIG_VARS],[m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])# _LT_LIBTOOL_TAG_VARS(TAG)# -------------------------m4_define([_LT_LIBTOOL_TAG_VARS],[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])# _LT_TAGVAR(VARNAME, [TAGNAME])# ------------------------------m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])# _LT_CONFIG_COMMANDS# -------------------# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of# variables for single and double quote escaping we saved from calls# to _LT_DECL, we can put quote escaped variables declarations# into `config.status', and then the shell code to quote escape them in# for loops in `config.status'. Finally, any additional code accumulated# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.m4_defun([_LT_CONFIG_COMMANDS],[AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])])#_LT_CONFIG_COMMANDS# Initialize.m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],[# The HP-UX ksh and POSIX shell print the target directory to stdout# if CDPATH is set.(unset CDPATH) >/dev/null 2>&1 && unset CDPATHsed_quote_subst='$sed_quote_subst'double_quote_subst='$double_quote_subst'delay_variable_subst='$delay_variable_subst'_LT_CONFIG_STATUS_DECLARATIONSLTCC='$LTCC'LTCFLAGS='$LTCFLAGS'compiler='$compiler_DEFAULT'# Quote evaled strings.for var in lt_decl_all_varnames([[ \]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esacdone# Double-quote double-evaled strings.for var in lt_decl_all_varnames([[ \]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -