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

📄 aclocal.m4

📁 串口调试工具。非常好的串口调试助手
💻 M4
📖 第 1 页 / 共 5 页
字号:
echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then   am__include=include   am__quote=   _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then   echo '.include "confinc"' > confmf   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then      am__include=.include      am__quote="\""      _am_result=BSD   fifiAC_SUBST(am__include)AC_SUBST(am__quote)AC_MSG_RESULT($_am_result)rm -f confinc confmf])# AM_CONDITIONAL                                              -*- Autoconf -*-# Copyright 1997, 2000, 2001 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.# serial 5AC_PREREQ(2.52)# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnlAC_SUBST([$1_TRUE])AC_SUBST([$1_FALSE])if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fiAC_CONFIG_COMMANDS_PRE([if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then  AC_MSG_ERROR([conditional \"$1\" was never defined.Usually this means the macro was only invoked conditionally.])fi])])# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-# Copyright 1996, 1997, 2000, 2001 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_PREREQ([2.52])# serial 6# When config.status generates a header, we must update the stamp-h file.# This file resides in the same directory as the config header# that is generated.  We must strip everything past the first ":",# and everything past the last "/".# _AM_DIRNAME(PATH)# -----------------# Like AS_DIRNAME, only do it during macro expansionAC_DEFUN([_AM_DIRNAME],       [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,	      m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,		    m4_if(regexp([$1], [^/.*]), -1,			  [.],			  patsubst([$1], [^\(/\).*], [\1])),		    patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),	      patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl])# _AM_DIRNAME# The stamp files are numbered to have different names.# We could number them on a directory basis, but that's additional# complications, let's have a unique counter.m4_define([_AM_STAMP_Count], [0])# _AM_STAMP(HEADER)# -----------------# The name of the stamp file for HEADER.AC_DEFUN([_AM_STAMP],[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnlAS_ESCAPE(_AM_DIRNAME(patsubst([$1],                               [:.*])))/stamp-h[]_AM_STAMP_Count])# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)# ------------------------------------------------------------# We used to try to get a real timestamp in stamp-h.  But the fear is that# that will cause unnecessary cvs conflicts.AC_DEFUN([_AM_CONFIG_HEADER],[# Add the stamp file to the list of files AC keeps track of,# along with our hook.AC_CONFIG_HEADERS([$1],                  [# update the timestampecho 'timestamp for $1' >"_AM_STAMP([$1])"$2],                  [$3])])# _AM_CONFIG_HEADER# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)# --------------------------------------------------------------AC_DEFUN([AM_CONFIG_HEADER],[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])])# AM_CONFIG_HEADER# AM_SYS_POSIX_TERMIOS# Copyright 1996, 2000, 2001 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.# From Jim Meyering.# serial 1AC_DEFUN([AM_SYS_POSIX_TERMIOS],[AC_CACHE_CHECK([POSIX termios], am_cv_sys_posix_termios,  [AC_TRY_LINK([#include <sys/types.h>#include <unistd.h>#include <termios.h>],  [/* SunOS 4.0.3 has termios.h but not the library calls.  */   tcgetattr(0, 0);],  am_cv_sys_posix_termios=yes,  am_cv_sys_posix_termios=no)])])# gettext.m4 serial 37 (gettext-0.14.4)dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.dnl Macro to add for using GNU gettext.dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. Thednl    default (if it is not specified or empty) is 'no-libtool'.dnl    INTLSYMBOL should be 'external' for packages with no intl directory,dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.dnl    If INTLSYMBOL is 'use-libtool', then a libtool librarydnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,dnl    depending on --{enable,disable}-{shared,static} and on the presence ofdnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static librarydnl    $(top_builddir)/intl/libintl.a will be created.dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettextdnl    implementations (in libc or libintl) without the ngettext() functiondnl    will be ignored.  If NEEDSYMBOL is specified and isdnl    'need-formatstring-macros', then GNU gettext implementations that don'tdnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored.dnl INTLDIR is used to find the intl libraries.  If empty,dnl    the value `$(top_builddir)/intl/' is used.dnldnl The result of the configuration is one of three cases:dnl 1) GNU gettext, as included in the intl subdirectory, will be compileddnl    and used.dnl    Catalog format: GNU --> install in $(datadir)dnl    Catalog extension: .mo after installation, .gmo in source treednl 2) GNU gettext has been found in the system's C library.dnl    Catalog format: GNU --> install in $(datadir)dnl    Catalog extension: .mo after installation, .gmo in source treednl 3) No internationalization, always use English msgid.dnl    Catalog format: nonednl    Catalog extension: nonednl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.dnl The use of .gmo is historical (it was needed to avoid overwriting thednl GNU format catalogs when building on a platform with an X/Open gettext),dnl but we keep it in order not to force irrelevant filename changes on thednl maintainers.dnlAC_DEFUN([AM_GNU_GETTEXT],[  dnl Argument checking.  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT])])])])])  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT])])])])  define([gt_included_intl], ifelse([$1], [external], [no], [yes]))  define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))  AC_REQUIRE([AM_PO_SUBDIRS])dnl  ifelse(gt_included_intl, yes, [    AC_REQUIRE([AM_INTL_SUBDIR])dnl  ])  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])  AC_REQUIRE([AC_LIB_RPATH])  dnl Sometimes libintl requires libiconv, so first search for libiconv.  dnl Ideally we would do this search only after the  dnl      if test "$USE_NLS" = "yes"; then  dnl        if test "$gt_cv_func_gnugettext_libc" != "yes"; then  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT  dnl the configure script would need to contain the same shell code  dnl again, outside any 'if'. There are two solutions:  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.  dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not  dnl documented, we avoid it.  ifelse(gt_included_intl, yes, , [    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])  ])  dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.  gt_INTL_MACOSX  dnl Set USE_NLS.  AM_NLS  ifelse(gt_included_intl, yes, [    BUILD_INCLUDED_LIBINTL=no    USE_INCLUDED_LIBINTL=no  ])  LIBINTL=  LTLIBINTL=  POSUB=  dnl If we use NLS figure out what method  if test "$USE_NLS" = "yes"; then    gt_use_preinstalled_gnugettext=no    ifelse(gt_included_intl, yes, [      AC_MSG_CHECKING([whether included gettext is requested])      AC_ARG_WITH(included-gettext,        [  --with-included-gettext use the GNU gettext library included here],        nls_cv_force_use_gnu_gettext=$withval,        nls_cv_force_use_gnu_gettext=no)      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then    ])        dnl User does not insist on using GNU NLS library.  Figure out what        dnl to use.  If GNU gettext is available we use this.  Else we have        dnl to fall back to GNU NLS library.        dnl Add a version number to the cache macros.        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,         [AC_TRY_LINK([#include <libintl.h>]ifelse([$2], [need-formatstring-macros],[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)#endifchangequote(,)dnltypedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];changequote([,])dnl], [])[extern int _nl_msg_cat_cntr;extern int *_nl_domain_bindings;],            [bindtextdomain ("", "");return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],            gt_cv_func_gnugettext_libc=yes,            gt_cv_func_gnugettext_libc=no)])        if test "$gt_cv_func_gnugettext_libc" != "yes"; then          dnl Sometimes libintl requires libiconv, so first search for libiconv.          ifelse(gt_included_intl, yes, , [            AM_ICONV_LINK          ])          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])          dnl because that would add "-liconv" to LIBINTL and LTLIBINTL          dnl even if libiconv doesn't exist.          AC_LIB_LINKFLAGS_BODY([intl])          AC_CACHE_CHECK([for GNU gettext in libintl],            gt_cv_func_gnugettext_libintl,           [gt_save_CPPFLAGS="$CPPFLAGS"            CPPFLAGS="$CPPFLAGS $INCINTL"            gt_save_LIBS="$LIBS"            LIBS="$LIBS $LIBINTL"            dnl Now see whether libintl exists and does not depend on libiconv.

⌨️ 快捷键说明

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