?? aclocal.m4
字號:
F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fifi])# _LT_AC_TAGCONFIG# AC_LIBTOOL_DLOPEN# -----------------# enable checks for dlopen supportAC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])# AC_LIBTOOL_DLOPEN# AC_LIBTOOL_WIN32_DLL# --------------------# declare package support for building win32 dll'sAC_DEFUN([AC_LIBTOOL_WIN32_DLL],[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])# AC_LIBTOOL_WIN32_DLL# AC_ENABLE_SHARED([DEFAULT])# ---------------------------# implement the --enable-shared flag# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.AC_DEFUN([AC_ENABLE_SHARED],[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnlAC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT)])# AC_ENABLE_SHARED# AC_DISABLE_SHARED# -----------------#- set the default shared flag to --disable-sharedAC_DEFUN([AC_DISABLE_SHARED],[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnlAC_ENABLE_SHARED(no)])# AC_DISABLE_SHARED# AC_ENABLE_STATIC([DEFAULT])# ---------------------------# implement the --enable-static flag# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.AC_DEFUN([AC_ENABLE_STATIC],[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnlAC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT)])# AC_ENABLE_STATIC# AC_DISABLE_STATIC# -----------------# set the default static flag to --disable-staticAC_DEFUN([AC_DISABLE_STATIC],[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnlAC_ENABLE_STATIC(no)])# AC_DISABLE_STATIC# AC_ENABLE_FAST_INSTALL([DEFAULT])# ---------------------------------# implement the --enable-fast-install flag# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.AC_DEFUN([AC_ENABLE_FAST_INSTALL],[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnlAC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)])# AC_ENABLE_FAST_INSTALL# AC_DISABLE_FAST_INSTALL# -----------------------# set the default to --disable-fast-installAC_DEFUN([AC_DISABLE_FAST_INSTALL],[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnlAC_ENABLE_FAST_INSTALL(no)])# AC_DISABLE_FAST_INSTALL# AC_LIBTOOL_PICMODE([MODE])# --------------------------# implement the --with-pic flag# MODE is either `yes' or `no'. If omitted, it defaults to `both'.AC_DEFUN([AC_LIBTOOL_PICMODE],[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnlpic_mode=ifelse($#,1,$1,default)])# AC_LIBTOOL_PICMODE# AC_PROG_EGREP# -------------# This is predefined starting with Autoconf 2.54, so this conditional# definition can be removed once we require Autoconf 2.54 or later.m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP])])])# AC_PATH_TOOL_PREFIX# -------------------# find a file program which can recognise shared libraryAC_DEFUN([AC_PATH_TOOL_PREFIX],[AC_REQUIRE([AC_PROG_EGREP])dnlAC_MSG_CHECKING([for $1])AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,[case $MAGIC_CMD in[[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;;*) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATORdnl $ac_dummy forces splitting on constant user-supplied paths.dnl POSIX.2 word splitting is done only on the output of word expansions,dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<EOF 1>&2*** Warning: the command libtool uses to detect shared libraries,*** $file_magic_cmd, produces output that libtool cannot recognize.*** The result is that libtool may fail to recognize shared libraries*** as such. This will affect the creation of libtool libraries that*** depend on shared libraries, but programs linked with such libtool*** libraries will work regardless of this problem. Nevertheless, you*** may want to report the problem to your system manager and/or to*** bug-libtool@gnu.orgEOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;;esac])MAGIC_CMD="$lt_cv_path_MAGIC_CMD"if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD)else AC_MSG_RESULT(no)fi])# AC_PATH_TOOL_PREFIX# AC_PATH_MAGIC# -------------# find a file program which can recognise a shared libraryAC_DEFUN([AC_PATH_MAGIC],[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fifi])# AC_PATH_MAGIC# AC_PROG_LD# ----------# find the pathname to the GNU or non-GNU linkerAC_DEFUN([AC_PROG_LD],[AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])AC_REQUIRE([LT_AC_PROG_SED])dnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([AC_CANONICAL_BUILD])dnlac_prog=ldif test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esacelif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld])else AC_MSG_CHECKING([for non-GNU ld])fiAC_CACHE_VAL(lt_cv_path_LD,[if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs"else lt_cv_path_LD="$LD" # Let the user override the test with a path.fi])LD="$lt_cv_path_LD"if test -n "$LD"; then AC_MSG_RESULT($LD)else AC_MSG_RESULT(no)fitest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])AC_PROG_LD_GNU])# AC_PROG_LD# AC_PROG_LD_GNU# --------------AC_DEFUN([AC_PROG_LD_GNU],[AC_REQUIRE([AC_PROG_EGREP])dnlAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,[# I'd rather use --version here, but apparently some GNU ld's only accept -v.case `$LD -v 2>&1 </dev/null` in*GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;;*) lt_cv_prog_gnu_ld=no ;;esac])with_gnu_ld=$lt_cv_prog_gnu_ld])# AC_PROG_LD_GNU# AC_PROG_LD_RELOAD_FLAG# ----------------------# find reload flag for linker# -- PORTME Some linkers may need a different reload flag.AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, [lt_cv_ld_reload_flag='-r'])reload_flag=$lt_cv_ld_reload_flagcase $reload_flag in"" | " "*) ;;*) reload_flag=" $reload_flag" ;;esacreload_cmds='$LD$reload_flag -o $output$reload_objs'])# AC_PROG_LD_RELOAD_FLAG# AC_DEPLIBS_CHECK_METHOD# -----------------------# how to check for library dependencies# -- PORTME fill in with the dynamic library characteristicsAC_DEFUN([AC_DEPLIBS_CHECK_METHOD],[AC_CACHE_CHECK([how to recognise dependent libraries],lt_cv_deplibs_check_method,[lt_cv_file_magic_cmd='$MAGIC_CMD'lt_cv_file_magic_test_file=lt_cv_deplibs_check_method='unknown'# Need to set the preceding variable on all platforms that support# interlibrary dependencies.# 'none' -- dependencies not supported.# `unknown' -- same as none, but documents that we really don't know.# 'pass_all' -- all dependencies passed with no checks.# 'test_compile' -- check by making test program.# 'file_magic [[regex]]' -- check by
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -