📄 autoconf.m4f
字号:
# 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_STATUST14,831AC_HEADER_STAT_m4_defun_pro([AC_HEADER_STAT])AC_CACHE_CHECK(whether stat file-mode macros are broken, ac_cv_header_stat_broken,[AC_EGREP_CPP([You lose], [#include <sys/types.h>#include <sys/stat.h>#if defined(S_ISBLK) && defined(S_IFDIR)# if S_ISBLK (S_IFDIR)You lose.# endif#endif#if defined(S_ISBLK) && defined(S_IFCHR)# if S_ISBLK (S_IFCHR)You lose.# endif#endif#if defined(S_ISLNK) && defined(S_IFREG)# if S_ISLNK (S_IFREG)You lose.# endif#endif#if defined(S_ISSOCK) && defined(S_IFREG)# if S_ISSOCK (S_IFREG)You lose.# endif#endif], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])if test $ac_cv_header_stat_broken = yes; then AC_DEFINE(STAT_MACROS_BROKEN, 1, [Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly.])fi[]_m4_defun_epi([AC_HEADER_STAT])T24,23m4_location(AC_MEMORY_H)autoconf/headers.m4:769T16,570_AS_LN_S_PREPARE_m4_defun_pro([_AS_LN_S_PREPARE])rm -f conf$$ conf$$.exe conf$$.fileecho >conf$$.fileif ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fielif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=lnelse as_ln_s='cp -p'firm -f conf$$ conf$$.exe conf$$.file[]_m4_defun_epi([_AS_LN_S_PREPARE])T22,2448AC_F77_LIBRARY_LDFLAGS_m4_defun_pro([AC_F77_LIBRARY_LDFLAGS])AC_LANG_PUSH(Fortran 77)dnl_AC_PROG_F77_VAC_CACHE_CHECK([for Fortran 77 libraries], ac_cv_flibs,[if test "x$FLIBS" != "x"; then ac_cv_flibs="$FLIBS" # Let the user override the test.else_AC_PROG_F77_V_OUTPUTac_cv_flibs=# Save positional arguments (if any)ac_save_positional="$[@]"set X $ac_f77_v_outputwhile test $[@%:@] != 1; do shift ac_arg=$[1] case $ac_arg in [[\\/]]*.a | ?:[[\\/]]*.a) _AC_LIST_MEMBER_IF($ac_arg, $ac_cv_flibs, , ac_cv_flibs="$ac_cv_flibs $ac_arg") ;; -bI:*) _AC_LIST_MEMBER_IF($ac_arg, $ac_cv_flibs, , [_AC_LINKER_OPTION([$ac_arg], ac_cv_flibs)]) ;; # Ignore these flags. -lang* | -lcrt0.o | -lc | -lgcc | -libmil | -LANG:=*) ;; -lkernel32) test x"$CYGWIN" != xyes && ac_cv_flibs="$ac_cv_flibs $ac_arg" ;; -[[LRuY]]) # These flags, when seen by themselves, take an argument. # We remove the space between option and argument and re-iterate # unless we find an empty arg or a new option (starting with -) case $[2] in "" | -*);; *) ac_arg="$ac_arg$[2]" shift; shift set X $ac_arg "$[@]" ;; esac ;; -YP,*) for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do _AC_LIST_MEMBER_IF($ac_j, $ac_cv_flibs, , [ac_arg="$ac_arg $ac_j" ac_cv_flibs="$ac_cv_flibs $ac_j"]) done ;; -[[lLR]]*) _AC_LIST_MEMBER_IF($ac_arg, $ac_cv_flibs, , ac_cv_flibs="$ac_cv_flibs $ac_arg") ;; # Ignore everything else. esacdone# restore positional argumentsset X $ac_save_positional; shift# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,# then we insist that the "run path" must be an absolute path (i.e. it# must begin with a "/").case `(uname -sr) 2>/dev/null` in "SunOS 5"*) ac_ld_run_path=`echo $ac_f77_v_output | sed -n 's,^.*LD_RUN_PATH *= *\(/[[^ ]]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && _AC_LINKER_OPTION([$ac_ld_run_path], ac_cv_flibs) ;;esacfi # test "x$FLIBS" = "x"])FLIBS="$ac_cv_flibs"AC_SUBST(FLIBS)AC_LANG_POP(Fortran 77)dnl[]_m4_defun_epi([AC_F77_LIBRARY_LDFLAGS])T29,23m4_location(AC_HEADER_DIRENT)autoconf/headers.m4:408T33,24m4_location(AC_CHECK_TOOL_PREFIX)autoconf/programs.m4:188T27,24m4_location(AC_ARG_PROGRAM)autoconf/general.m4:1526T15,923_AC_INIT_SRCDIRm4_divert_push([PARSE_ARGS])dnl# Find the source files, if location was not specified.if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`AS_DIRNAME(["$[0]"])` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fielse ac_srcdir_defaulted=nofiif test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $ac_confdir or ..]) else AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $srcdir]) fifi(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || AC_MSG_ERROR([sources are in $srcdir, but `cd $srcdir' does not work])dnl Double slashes in pathnames in object file debugging infodnl mess up M-x gdb in Emacs.srcdir=`echo "$srcdir" | sed 's%\([[^\\/]]\)[[\\/]]*$%\1%'`m4_divert_pop([PARSE_ARGS])dnlT10,54m4_includem4_include_unique([$1])dnlm4_builtin([include], [$1])T22,23m4_location(AC_INLINE)autoconf/oldnames.m4:82T37,1413AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK_m4_defun_pro([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])AC_CACHE_CHECK( [whether lstat dereferences a symlink specified with a trailing slash], [ac_cv_func_lstat_dereferences_slashed_symlink],[rm -f conftest.sym conftest.fileecho >conftest.fileif test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);])], [ac_cv_func_lstat_dereferences_slashed_symlink=yes], [ac_cv_func_lstat_dereferences_slashed_symlink=no], [ac_cv_func_lstat_dereferences_slashed_symlink=no])else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=nofirm -f conftest.sym conftest.file])test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1, [Define to 1 if `lstat' dereferences a symlink specified with a trailing slash.])if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then AC_LIBOBJ(lstat)fi[]_m4_defun_epi([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])T21,1_m4_divert(M4SH-INIT)4T18,385_AC_CHECK_TYPE_NEWAS_VAR_PUSHDEF([ac_Type], [ac_cv_type_$1])dnlAC_CACHE_CHECK([for $1], ac_Type,[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])],[if (($1 *) 0) return 0;if (sizeof ($1)) return 0;])], [AS_VAR_SET(ac_Type, yes)], [AS_VAR_SET(ac_Type, no)])])AS_IF([test AS_VAR_GET(ac_Type) = yes], [$2], [$3])[]dnlAS_VAR_POPDEF([ac_Type])dnlT17,121AC_PREPROC_IFELSE_m4_defun_pro([AC_PREPROC_IFELSE])AC_LANG_PREPROC_REQUIRE()dnl_AC_PREPROC_IFELSE($@)[]_m4_defun_epi([AC_PREPROC_IFELSE])T14,1594AC_HEADER_STDC_m4_defun_pro([AC_HEADER_STDC])AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc,[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>]])], [ac_cv_header_stdc=yes], [ac_cv_header_stdc=no])if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. AC_EGREP_HEADER(memchr, string.h, , ac_cv_header_stdc=no)fiif test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. AC_EGREP_HEADER(free, stdlib.h, , ac_cv_header_stdc=no)fiif test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>#if ((' ' & 0x0FF) == 0x020)# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#else# define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z'))# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))#endif#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))intmain (){ int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0);}]])], , ac_cv_header_stdc=no, :)fi])if test $ac_cv_header_stdc = yes; then AC_DEFINE(STDC_HEADERS, 1, [Define to 1 if you have the ANSI C header files.])fi[]_m4_defun_epi([AC_HEADER_STDC])T8,164AC_FD_CC_m4_defun_pro([AC_FD_CC])AC_DIAGNOSE([obsolete], [The macro `AC_FD_CC' is obsolete.You should run autoupdate.])dnlAS_MESSAGE_LOG_FD($@)[]_m4_defun_epi([AC_FD_CC])T30,23m4_location(_AC_LINKER_OPTION)autoconf/fortran.m4:114T28,56m4_location(AS_BASENAME_SED)/prjz/msys/dtk/src/autoconf-2.56/lib/m4sugar/m4sh.m4:470T12,10m4_cr_digits0123456789T8,159AC_VFORK_m4_defun_pro([AC_VFORK])AC_DIAGNOSE([obsolete], [The macro `AC_VFORK' is obsolete.You should run autoupdate.])dnlAC_FUNC_FORK($@)[]_m4_defun_epi([AC_VFORK])T33,23m4_location(AC_HEADER_TIOCGWINSZ)autoconf/headers.m4:719T29,17m4_location(AC_C_BACKSLASH_A)autoconf/c.m4:837T14,181ac_cv_prog_gcc_m4_defun_pro([ac_cv_prog_gcc])AC_DIAGNOSE([obsolete], [The macro `ac_cv_prog_gcc' is obsolete.You should run autoupdate.])dnlac_cv_c_compiler_gnu[]_m4_defun_epi([ac_cv_prog_gcc])T15,121AC_LANG_PROGRAM_m4_defun_pro([AC_LANG_PROGRAM])AC_LANG_SOURCE([_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])[]_m4_defun_epi([AC_LANG_PROGRAM])T28,22m4_location(AC_CONFIG_LINKS)autoconf/status.m4:711F5,5ifdefifdefT7,184AC_WITH_m4_defun_pro([AC_WITH])AC_DIAGNOSE([obsolete], [The macro `AC_WITH' is obsolete.You should run autoupdate.])dnlAC_ARG_WITH([$1], [ --with-$1], [$2], [$3])[]_m4_defun_epi([AC_WITH])T7,78m4_signm4_bmatch([$1], [^-], -1, [^0+], 0, 1)T24,20m4_location(AC_LANG_POP)autoconf/lang.m4:156T24,17m4_location(AC_PROG_CPP)autoconf/c.m4:385T11,17m4_location__file__:__line__T19,989AC_CANONICAL_TARGETm4_provide_if([AC_CANONICAL_TARGET], [m4_warn([syntax], [AC_CANONICAL_TARGET invoked multiple times])], [_m4_defun_pro([AC_CANONICAL_TARGET])AC_REQUIRE([AC_CANONICAL_HOST])dnlAC_BEFORE([$0], [AC_ARG_PROGRAM])dnlm4_divert_text([HELP_CANON],[[ --target=TARGET configure for building compilers for TARGET [HOST]]])dnlAC_CACHE_CHECK([target system type], [ac_cv_target],[dnl Set target_alias.ac_cv_target_alias=$target_aliastest "x$ac_cv_target_alias" = "x" && ac_cv_target_alias=$ac_cv_host_aliasac_cv_target=`$ac_config_sub $ac_cv_target_alias` || AC_MSG_ERROR([$ac_config_sub $ac_cv_target_alias failed])])_AC_CANONICAL_SPLIT([target])# The aliases save the names the user supplied, while $host etc.# will get canonicalized.test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}-[]dnl[]_m4_defun_epi([AC_CANONICAL_TARGET])])T16,184AC_PROGRAMS_PATH_m4_defun_pro([AC_PROGRAMS_PATH])AC_DIAGNOSE([obsolete], [The macro `AC_PROGRAMS_PATH' is obsolete.You should run autoupdate.])dnlAC_PATH_PROGS($@)[]_m4_defun_epi([AC_PROGRAMS_PATH])T23,3_m4_divert(HELP_ENABLE)102T23,91_AC_CONFIG_DEPENDENCIESAC_FOREACH([AC_File], [$1], [_AC_CONFIG_DEPENDENCY(m4_bpatsubst(AC_File, [:], [,]))])dnlT7,30AS_WARNAS_MESSAGE([WARNING: $1], [2])T29,23m4_location(AC_CONFIG_SRCDIR)autoconf/general.m4:512T10,112AS_VAR_GETAS_LITERAL_IF([$1], [$$1], [`eval echo '${'m4_bpatsubst($1, [[\\`]], [\\\&])'}'`])T21,56m4_location(AS_TR_SH)/prjz/msys/dtk/src/autoconf-2.56/lib/m4sugar/m4sh.m4:897T22,20m4_location(AC_PATH_X)autoconf/libs.m4:363T27,23
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -