📄 aclocal.m4
字号:
dnl function.dnl Autoconf version 2.57 or newer is recommended.AC_PREREQ(2.54)# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of# AC_CHECK_HEADERS(HEADER1 HEADER2 ...).AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ : AC_FOREACH([gl_HEADER_NAME], [$1], [ AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(m4_defn([gl_HEADER_NAME]), [-./], [___])), [ AC_CHECK_HEADERS(gl_HEADER_NAME) ]) AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, [-./], [___]))) ])])# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of# AC_CHECK_FUNCS(FUNC1 FUNC2 ...).AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ : AC_FOREACH([gl_FUNC_NAME], [$1], [ AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ AC_CHECK_FUNCS(m4_defn([gl_FUNC_NAME])) ]) AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) ])])# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of# AC_CHECK_DECLS(DECL1, DECL2, ...).AC_DEFUN([AC_CHECK_DECLS_ONCE], [ : AC_FOREACH([gl_DECL_NAME], [$1], [ AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) ]) AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) ])])# quote.m4 serial 1dnl Copyright (C) 2002 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License. As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.AC_DEFUN([gl_QUOTE],[ dnl Prerequisites of lib/quote.c. AC_CHECK_HEADERS_ONCE(stddef.h)])# quotearg.m4 serial 1dnl Copyright (C) 2002 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License. As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.AC_DEFUN([gl_QUOTEARG],[ dnl Prerequisites of lib/quotearg.c. AC_CHECK_HEADERS_ONCE(wchar.h wctype.h) AC_CHECK_FUNCS_ONCE(iswprint mbsinit) AC_TYPE_MBSTATE_T jm_FUNC_MBRTOWC])# realloc.m4 serial 7dnl Copyright (C) 2002 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License. As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.dnl From Jim Meyering.dnl Determine whether realloc works when both arguments are 0.dnl If it doesn't, arrange to use the replacement function.AC_DEFUN([jm_FUNC_REALLOC],[ AC_REQUIRE([AC_FUNC_REALLOC]) dnl autoconf < 2.57 used the symbol ac_cv_func_realloc_works. if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then gl_PREREQ_REALLOC fi])# Prerequisites of lib/realloc.c.AC_DEFUN([gl_PREREQ_REALLOC], [ :])# rmdir.m4 serial 1dnl Copyright (C) 2002 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License. As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.AC_DEFUN([gl_FUNC_RMDIR],[ AC_REPLACE_FUNCS(rmdir) if test $ac_cv_func_rmdir = no; then gl_PREREQ_RMDIR fi])# Prerequisites of lib/rmdir.c.AC_DEFUN([gl_PREREQ_RMDIR], [ AC_REQUIRE([AC_HEADER_STAT]) :])# Check for setmode, DOS style.# Copyright (C) 2001, 2002 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.AC_DEFUN([AC_FUNC_SETMODE_DOS], [AC_CHECK_HEADERS(fcntl.h unistd.h) AC_CACHE_CHECK([for DOS-style setmode], [ac_cv_func_setmode_dos], [AC_TRY_LINK( [#include <io.h> #if HAVE_FCNTL_H # include <fcntl.h> #endif #if HAVE_UNISTD_H # include <unistd.h> #endif], [int ret = setmode && setmode (1, O_BINARY);], [ac_cv_func_setmode_dos=yes], [ac_cv_func_setmode_dos=no])]) if test $ac_cv_func_setmode_dos = yes; then AC_DEFINE(HAVE_SETMODE_DOS, 1, [Define to 1 if you have the DOS-style `setmode' function.]) fi])# Check for stdbool.h that conforms to C99.# Copyright (C) 2002-2003 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# Prepare for substituting <stdbool.h> if it is not supported.AC_DEFUN([AM_STDBOOL_H],[ AC_REQUIRE([AC_HEADER_STDBOOL]) # Define two additional variables used in the Makefile substitution. if test "$ac_cv_header_stdbool_h" = yes; then STDBOOL_H='' else STDBOOL_H='stdbool.h' fi AC_SUBST([STDBOOL_H]) if test "$ac_cv_type__Bool" = yes; then HAVE__BOOL=1 else HAVE__BOOL=0 fi AC_SUBST([HAVE__BOOL])])# This macro is only needed in autoconf <= 2.54. Newer versions of autoconf# have this macro built-in.AC_DEFUN([AC_HEADER_STDBOOL], [AC_CACHE_CHECK([for stdbool.h that conforms to C99], [ac_cv_header_stdbool_h], [AC_TRY_COMPILE( [ #include <stdbool.h> #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: false is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) -0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) -0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; ], [ return !a + !b + !c + !d + !e + !f + !g + !h + !i; ], [ac_cv_header_stdbool_h=yes], [ac_cv_header_stdbool_h=no])]) AC_CHECK_TYPES([_Bool]) if test $ac_cv_header_stdbool_h = yes; then AC_DEFINE(HAVE_STDBOOL_H, 1, [Define to 1 if stdbool.h conforms to C99.]) fi])#serial 7 -*- autoconf -*-dnl From Jim Meyering.dnldnl See if the glibc *_unlocked I/O macros or functions are available.dnl Use only those *_unlocked macros or functions that are declareddnl (because some of them were declared in Solaris 2.5.1 but were removeddnl in Solaris 2.6, whereas we want binaries built on Solaris 2.5.1 to rundnl on Solaris 2.6).AC_DEFUN([jm_FUNC_GLIBC_UNLOCKED_IO],[ dnl Persuade glibc <stdio.h> to declare fgets_unlocked(), fputs_unlocked() dnl etc. AC_REQUIRE([AC_GNU_SOURCE]) AC_CHECK_DECLS_ONCE( [clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked])])#serial 5dnl From Jim Meyeringdnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared --dnl usually in <utime.h>.dnl Some systems have utime.h but don't declare the struct anywhere.AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF],[ AC_CHECK_HEADERS_ONCE(sys/time.h utime.h) AC_REQUIRE([AC_HEADER_TIME]) AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, [AC_TRY_COMPILE( [#ifdef TIME_WITH_SYS_TIME# include <sys/time.h># include <time.h>#else# ifdef HAVE_SYS_TIME_H# include <sys/time.h># else# include <time.h># endif#endif#ifdef HAVE_UTIME_H# include <utime.h>#endif ], [static struct utimbuf x; x.actime = x.modtime;], fu_cv_sys_struct_utimbuf=yes, fu_cv_sys_struct_utimbuf=no) ]) if test $fu_cv_sys_struct_utimbuf = yes; then AC_DEFINE(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in <utime.h>. Some systems have utime.h but don't declare the struct anywhere. ]) fi])# xalloc.m4 serial 1dnl Copyright (C) 2002 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License. As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.AC_DEFUN([gl_XALLOC],[ gl_PREREQ_XMALLOC gl_PREREQ_XSTRDUP])# Prerequisites of lib/xmalloc.c.AC_DEFUN([gl_PREREQ_XMALLOC], [ AC_REQUIRE([AC_HEADER_STDC]) AC_REQUIRE([jm_FUNC_MALLOC]) AC_REQUIRE([jm_FUNC_REALLOC])])# Prerequisites of lib/xstrdup.c.AC_DEFUN([gl_PREREQ_XSTRDUP], [ AC_REQUIRE([AC_HEADER_STDC]) AC_CHECK_HEADERS_ONCE(string.h)])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -