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

📄 aclocal.m4

📁 minicom的源码,linux下常用的串口程序.
💻 M4
📖 第 1 页 / 共 5 页
字号:
dnl From Bruno Haible.dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, anddnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn'tdnl require excessive bracketing.ifdef([AC_HELP_STRING],[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are neededdnl to access previously installed libraries. The basic assumption is thatdnl a user will want packages to use other packages he previously installeddnl with the same --prefix option.dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locatednl libraries, but is otherwise very convenient.AC_DEFUN([AC_LIB_PREFIX],[  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])  AC_REQUIRE([AC_PROG_CC])  AC_REQUIRE([AC_CANONICAL_HOST])  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])  dnl By default, look in $includedir and $libdir.  use_additional=yes  AC_LIB_WITH_FINAL_PREFIX([    eval additional_includedir=\"$includedir\"    eval additional_libdir=\"$libdir\"  ])  AC_LIB_ARG_WITH([lib-prefix],[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib  --without-lib-prefix    don't search for libraries in includedir and libdir],[    if test "X$withval" = "Xno"; then      use_additional=no    else      if test "X$withval" = "X"; then        AC_LIB_WITH_FINAL_PREFIX([          eval additional_includedir=\"$includedir\"          eval additional_libdir=\"$libdir\"        ])      else        additional_includedir="$withval/include"        additional_libdir="$withval/lib"      fi    fi])  if test $use_additional = yes; then    dnl Potentially add $additional_includedir to $CPPFLAGS.    dnl But don't add it    dnl   1. if it's the standard /usr/include,    dnl   2. if it's already present in $CPPFLAGS,    dnl   3. if it's /usr/local/include and we are using GCC on Linux,    dnl   4. if it doesn't exist as a directory.    if test "X$additional_includedir" != "X/usr/include"; then      haveit=      for x in $CPPFLAGS; do        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])        if test "X$x" = "X-I$additional_includedir"; then          haveit=yes          break        fi      done      if test -z "$haveit"; then        if test "X$additional_includedir" = "X/usr/local/include"; then          if test -n "$GCC"; then            case $host_os in              linux* | gnu* | k*bsd*-gnu) haveit=yes;;            esac          fi        fi        if test -z "$haveit"; then          if test -d "$additional_includedir"; then            dnl Really add $additional_includedir to $CPPFLAGS.            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"          fi        fi      fi    fi    dnl Potentially add $additional_libdir to $LDFLAGS.    dnl But don't add it    dnl   1. if it's the standard /usr/lib,    dnl   2. if it's already present in $LDFLAGS,    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,    dnl   4. if it doesn't exist as a directory.    if test "X$additional_libdir" != "X/usr/lib"; then      haveit=      for x in $LDFLAGS; do        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])        if test "X$x" = "X-L$additional_libdir"; then          haveit=yes          break        fi      done      if test -z "$haveit"; then        if test "X$additional_libdir" = "X/usr/local/lib"; then          if test -n "$GCC"; then            case $host_os in              linux*) haveit=yes;;            esac          fi        fi        if test -z "$haveit"; then          if test -d "$additional_libdir"; then            dnl Really add $additional_libdir to $LDFLAGS.            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"          fi        fi      fi    fi  fi])dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,dnl acl_final_exec_prefix, containing the values to which $prefix anddnl $exec_prefix will expand at the end of the configure script.AC_DEFUN([AC_LIB_PREPARE_PREFIX],[  dnl Unfortunately, prefix and exec_prefix get only finally determined  dnl at the end of configure.  if test "X$prefix" = "XNONE"; then    acl_final_prefix="$ac_default_prefix"  else    acl_final_prefix="$prefix"  fi  if test "X$exec_prefix" = "XNONE"; then    acl_final_exec_prefix='${prefix}'  else    acl_final_exec_prefix="$exec_prefix"  fi  acl_save_prefix="$prefix"  prefix="$acl_final_prefix"  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"  prefix="$acl_save_prefix"])dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with thednl variables prefix and exec_prefix bound to the values they will havednl at the end of the configure script.AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],[  acl_save_prefix="$prefix"  prefix="$acl_final_prefix"  acl_save_exec_prefix="$exec_prefix"  exec_prefix="$acl_final_exec_prefix"  $1  exec_prefix="$acl_save_exec_prefix"  prefix="$acl_save_prefix"])# nls.m4 serial 2 (gettext-0.14.3)dnl Copyright (C) 1995-2003, 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.AC_PREREQ(2.50)AC_DEFUN([AM_NLS],[  AC_MSG_CHECKING([whether NLS is requested])  dnl Default is enabled NLS  AC_ARG_ENABLE(nls,    [  --disable-nls           do not use Native Language Support],    USE_NLS=$enableval, USE_NLS=yes)  AC_MSG_RESULT($USE_NLS)  AC_SUBST(USE_NLS)])AC_DEFUN([AM_MKINSTALLDIRS],[  dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).  dnl Try to locate it.  MKINSTALLDIRS=  if test -n "$ac_aux_dir"; then    case "$ac_aux_dir" in      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;    esac  fi  if test -z "$MKINSTALLDIRS"; then    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"  fi  AC_SUBST(MKINSTALLDIRS)])# po.m4 serial 7 (gettext-0.14.3)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.AC_PREREQ(2.50)dnl Checks for all prerequisites of the po subdirectory.AC_DEFUN([AM_PO_SUBDIRS],[  AC_REQUIRE([AC_PROG_MAKE_SET])dnl  AC_REQUIRE([AC_PROG_INSTALL])dnl  AC_REQUIRE([AM_MKINSTALLDIRS])dnl  AC_REQUIRE([AM_NLS])dnl  dnl Perform the following tests also if --disable-nls has been given,  dnl because they are needed for "make dist" to work.  dnl Search for GNU msgfmt in the PATH.  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.  dnl The second test excludes FreeBSD msgfmt.  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,    [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],    :)  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)  dnl Search for GNU xgettext 0.12 or newer in the PATH.  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.  dnl The second test excludes FreeBSD xgettext.  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],    :)  dnl Remove leftover from FreeBSD xgettext call.  rm -f messages.po  dnl Search for GNU msgmerge 0.11 or newer in the PATH.  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,    [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.  dnl Test whether we really found GNU msgfmt.  if test "$GMSGFMT" != ":"; then    dnl If it is no GNU msgfmt we define it as : so that the    dnl Makefiles still can work.    if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then      : ;    else      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`      AC_MSG_RESULT(        [found $GMSGFMT program is not GNU msgfmt; ignore it])      GMSGFMT=":"    fi  fi  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.  dnl Test whether we really found GNU xgettext.  if test "$XGETTEXT" != ":"; then    dnl If it is no GNU xgettext we define it as : so that the    dnl Makefiles still can work.    if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then      : ;    else      AC_MSG_RESULT(        [found xgettext program is not GNU xgettext; ignore it])      XGETTEXT=":"    fi    dnl Remove leftover from FreeBSD xgettext call.    rm -f messages.po  fi  AC_OUTPUT_COMMANDS([    for ac_file in $CONFIG_FILES; do      # Support "outfile[:infile[:infile...]]"      case "$ac_file" in        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;      esac      # PO directories have a Makefile.in generated from Makefile.in.in.      case "$ac_file" in */Makefile.in)        # Adjust a relative srcdir.        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`        # In autoconf-2.13 it is called $ac_given_srcdir.        # In autoconf-2.50 it is called $srcdir.        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"        case "$ac_given_srcdir" in          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;          /*) top_srcdir="$ac_given_srcdir" ;;          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;        esac        # Treat a directory as a PO directory if and only if it has a        # POTFILES.in file. This allows packages to have multiple PO        # directories under different names or in different locations.        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then          rm -f "$ac_dir/POTFILES"          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"          POMAKEFILEDEPS="POTFILES.in"          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend          # on $ac_dir but don't depend on user-specified configuration          # parameters.          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then            # The LINGUAS file contains the set of available languages.            if test -n "$OBSOLETE_ALL_LINGUAS"; then              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"            fi            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`            # Hide the ALL_LINGUAS assigment from automake.            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"          else            # The set of available languages was give

⌨️ 快捷键说明

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