⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acgeneral.m4

📁 创建一个符合iso-9660标准的iso文件系统
💻 M4
📖 第 1 页 / 共 5 页
字号:
dnl              ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_EGREP_CPP,[AC_REQUIRE_CPP()dnlcat > conftest.$ac_ext <<EOF[#]line __oline__ "configure"#include "confdefs.h"[$2]EOFdnl eval is necessary to expand ac_cpp.dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |dnl Prevent m4 from eating character classes:changequote(, )dnl  egrep "$1" >/dev/null 2>&1; thenchangequote([, ])dnl  ifelse([$3], , :, [rm -rf conftest*  $3])ifelse([$4], , , [else  rm -rf conftest*  $4])dnlfirm -f conftest*])dnl ### Examining syntaxdnl AC_TRY_COMPILE(INCLUDES, FUNCTION-BODY,dnl             [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_TRY_COMPILE,[cat > conftest.$ac_ext <<EOFifelse(AC_LANG, [FORTRAN77],[      program main[$2]      end],[dnl This sometimes fails to find confdefs.h, for some reason.dnl [#]line __oline__ "[$]0"[#]line __oline__ "configure"#include "confdefs.h"[$1]int main() {[$2]; return 0; }])EOFif AC_TRY_EVAL(ac_compile); then  ifelse([$3], , :, [rm -rf conftest*  $3])else  echo "configure: failed program was:" >&AC_FD_CC  cat conftest.$ac_ext >&AC_FD_CCifelse([$4], , , [  rm -rf conftest*  $4])dnlfirm -f conftest*])dnl ### Examining librariesdnl AC_COMPILE_CHECK(ECHO-TEXT, INCLUDES, FUNCTION-BODY,dnl                  ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])AC_DEFUN(AC_COMPILE_CHECK,[AC_OBSOLETE([$0], [; instead use AC_TRY_COMPILE or AC_TRY_LINK, and AC_MSG_CHECKING and AC_MSG_RESULT])dnlifelse([$1], , , [AC_CHECKING([for $1])])dnlAC_TRY_LINK([$2], [$3], [$4], [$5])])dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY,dnl             [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_TRY_LINK,[cat > conftest.$ac_ext <<EOFifelse(AC_LANG, [FORTRAN77],[      program main      call [$2]      end],[dnl This sometimes fails to find confdefs.h, for some reason.dnl [#]line __oline__ "[$]0"[#]line __oline__ "configure"#include "confdefs.h"[$1]int main() {[$2]; return 0; }])EOFif AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then  ifelse([$3], , :, [rm -rf conftest*  $3])else  echo "configure: failed program was:" >&AC_FD_CC  cat conftest.$ac_ext >&AC_FD_CCifelse([$4], , , [  rm -rf conftest*  $4])dnlfirm -f conftest*])dnl ### Checking for run-time featuresdnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSEdnl            [, ACTION-IF-CROSS-COMPILING]]])AC_DEFUN(AC_TRY_RUN,[if test "$cross_compiling" = yes; then  ifelse([$4], ,    [errprint(__file__:__line__: warning: [AC_TRY_RUN] called without default to allow cross compiling)dnl  AC_MSG_ERROR(can not run test program while cross compiling)],  [$4])else  AC_TRY_RUN_NATIVE([$1], [$2], [$3])fi])dnl Like AC_TRY_RUN but assumes a native-environment (non-cross) compiler.dnl AC_TRY_RUN_NATIVE(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE]])AC_DEFUN(AC_TRY_RUN_NATIVE,[cat > conftest.$ac_ext <<EOF[#]line __oline__ "configure"#include "confdefs.h"ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplusextern "C" void exit(int);#endif])dnl[$1]EOFif AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthendnl Don't remove the temporary files here, so they can be examined.  ifelse([$2], , :, [$2])else  echo "configure: failed program was:" >&AC_FD_CC  cat conftest.$ac_ext >&AC_FD_CCifelse([$3], , , [  rm -fr conftest*  $3])dnlfirm -fr conftest*])dnl ### Checking for header filesdnl AC_CHECK_HEADER(HEADER-FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_CHECK_HEADER,[dnl Do the transliteration at runtime so arg 1 can be a shell variable.ac_safe=`echo "$1" | sed 'y%./+-%__p_%'`AC_MSG_CHECKING([for $1])AC_CACHE_VAL(ac_cv_header_$ac_safe,[AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_safe=yes",  eval "ac_cv_header_$ac_safe=no")])dnlif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  AC_MSG_RESULT(yes)  ifelse([$2], , :, [$2])else  AC_MSG_RESULT(no)ifelse([$3], , , [$3])dnlfi])dnl AC_CHECK_HEADERS(HEADER-FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_CHECK_HEADERS,[for ac_hdr in $1doAC_CHECK_HEADER($ac_hdr,[changequote(, )dnl  ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`changequote([, ])dnl  AC_DEFINE_UNQUOTED($ac_tr_hdr) $2], $3)dnldone])dnl ### Checking for the existence of filesdnl AC_CHECK_FILE(FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_CHECK_FILE,[AC_REQUIRE([AC_PROG_CC])dnl Do the transliteration at runtime so arg 1 can be a shell variable.ac_safe=`echo "$1" | sed 'y%./+-%__p_%'`AC_MSG_CHECKING([for $1])AC_CACHE_VAL(ac_cv_file_$ac_safe,[if test "$cross_compiling" = yes; then  errprint(__file__:__line__: warning: Cannot check for file existence when cross compiling)dnl  AC_MSG_ERROR(Cannot check for file existence when cross compiling)else  if test -r $1; then    eval "ac_cv_file_$ac_safe=yes"  else    eval "ac_cv_file_$ac_safe=no"  fifi])dnlif eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then  AC_MSG_RESULT(yes)  ifelse([$2], , :, [$2])else  AC_MSG_RESULT(no)ifelse([$3], , , [$3])fi])dnl AC_CHECK_FILES(FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_CHECK_FILES,[for ac_file in $1doAC_CHECK_FILE($ac_file,[changequote(, )dnl  ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`changequote([, ])dnl  AC_DEFINE_UNQUOTED($ac_tr_file) $2], $3)dnldone])dnl ### Checking for library functionsdnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_CHECK_FUNC,[AC_MSG_CHECKING([for $1])AC_CACHE_VAL(ac_cv_func_$1,[AC_TRY_LINK(dnl Don't include <ctype.h> because on OSF/1 3.0 it includes <sys/types.h>dnl which includes <sys/select.h> which contains a prototype fordnl select.  Similarly for bzero.[/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $1(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  */]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplusextern "C"#endif])dnl[/* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char $1();], [/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$1) || defined (__stub___$1)choke me#else$1();#endif], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then  AC_MSG_RESULT(yes)  ifelse([$2], , :, [$2])else  AC_MSG_RESULT(no)ifelse([$3], , , [$3])dnlfi])dnl AC_CHECK_FUNCS(FUNCTION... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(AC_CHECK_FUNCS,[for ac_func in $1doAC_CHECK_FUNC($ac_func,[changequote(, )dnl  ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`changequote([, ])dnl  AC_DEFINE_UNQUOTED($ac_tr_func) $2], $3)dnldone])dnl AC_REPLACE_FUNCS(FUNCTION...)AC_DEFUN(AC_REPLACE_FUNCS,[AC_CHECK_FUNCS([$1], , [LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"])AC_SUBST(LIBOBJS)dnl])dnl ### Checking compiler characteristicsdnl AC_CHECK_SIZEOF(TYPE [, CROSS-SIZE])AC_DEFUN(AC_CHECK_SIZEOF,[changequote(<<, >>)dnldnl The name to #define.define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnldnl The cache variable name.define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnlchangequote([, ])dnlAC_MSG_CHECKING(size of $1)AC_CACHE_VAL(AC_CV_NAME,[AC_TRY_RUN([#include <stdio.h>main(){  FILE *f=fopen("conftestval", "w");  if (!f) exit(1);  fprintf(f, "%d\n", sizeof($1));  exit(0);}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnlAC_MSG_RESULT($AC_CV_NAME)AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)undefine([AC_TYPE_NAME])dnlundefine([AC_CV_NAME])dnl])dnl ### Checking for typedefsdnl AC_CHECK_TYPE(TYPE, DEFAULT)AC_DEFUN(AC_CHECK_TYPE,[AC_REQUIRE([AC_HEADER_STDC])dnlAC_MSG_CHECKING(for $1)AC_CACHE_VAL(ac_cv_type_$1,[AC_EGREP_CPP(dnlchangequote(<<,>>)dnl<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnlchangequote([,]), [#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnlAC_MSG_RESULT($ac_cv_type_$1)if test $ac_cv_type_$1 = no; then  AC_DEFINE($1, $2)fi])dnl ### Creating output filesdnl AC_CONFIG_HEADER(HEADER-TO-CREATE ...)AC_DEFUN(AC_CONFIG_HEADER,[define(AC_LIST_HEADER, $1)])dnl Link each of the existing files SOURCE... to the correspondingdnl link name in DEST...dnl AC_LINK_FILES(SOURCE..., DEST...)AC_DEFUN(AC_LINK_FILES,[dnldefine([AC_LIST_FILES], ifdef([AC_LIST_FILES], [AC_LIST_FILES ],)[$1])dnldefine([AC_LIST_LINKS], ifdef([AC_LIST_LINKS], [AC_LIST_LINKS ],)[$2])])dnl Add additional commands for AC_OUTPUT to put into config.status.dnl Use diversions instead of macros so we can be robust in thednl presence of commas in $1 and/or $2.dnl AC_OUTPUT_COMMANDS(EXTRA-CMDS, INIT-CMDS)AC_DEFUN(AC_OUTPUT_COMMANDS,[AC_DIVERT_PUSH(AC_DIVERSION_CMDS)dnl[$1]AC_DIVERT_POP()dnlAC_DIVERT_PUSH(AC_DIVERSION_ICMDS)dnl[$2]AC_DIVERT_POP()])dnl AC_CONFIG_SUBDIRS(DIR ...)AC_DEFUN(AC_CONFIG_SUBDIRS,[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnldefine([AC_LIST_SUBDIRS], ifdef([AC_LIST_SUBDIRS], [AC_LIST_SUBDIRS ],)[$1])dnlsubdirs="AC_LIST_SUBDIRS"AC_SUBST(subdirs)dnl])dnl The big finish.dnl Produce config.status, config.h, and links; and configure subdirs.dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS] [, INIT-CMDS])define(AC_OUTPUT,[trap '' 1 2 15AC_CACHE_SAVEtrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15test "x$prefix" = xNONE && prefix=$ac_default_prefix# Let make expand exec_prefix.test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'# Any assignment to VPATH causes Sun make to only execute# the first set of double-colon rules, so remove it if not needed.# If there is a colon in the path, we need to keep it.if test "x$srcdir" = x.; thenchangequote(, )dnl  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'changequote([, ])dnlfitrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15ifdef([AC_LIST_HEADER], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()])# Without the "./", some shells look in PATH for config.status.: ${CONFIG_STATUS=./config.status}echo creating $CONFIG_STATUSrm -f $CONFIG_STATUScat > $CONFIG_STATUS <<EOF#! /bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,dnl hostname on some systems (SVR3.2, Linux) returns a bogus exit status,dnl so uname gets run too.# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:#[#] [$]0 [$]ac_configure_args## Compiler output produced by configure, useful for debugging# configure, is in ./config.log if it exists.changequote(, )dnlac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"changequote([, ])dnlfor ac_optiondo  case "[\$]ac_option" in  -recheck | --r

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -