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

📄 aclocal.m4

📁 linux下的jtag调试软件
💻 M4
📖 第 1 页 / 共 3 页
字号:
# generated automatically by aclocal 1.7.8 -*- Autoconf -*-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002# Free Software Foundation, Inc.# This file is free software; the Free Software Foundation# gives unlimited permission to copy and/or distribute it,# with or without modifications, as long as this notice is preserved.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY, to the extent permitted by law; without# even the implied warranty of MERCHANTABILITY or FITNESS FOR A# PARTICULAR PURPOSE.dnl @synopsis AC_PATH_GENERIC(LIBRARY [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])dnldnl Runs a LIBRARY-config script and defines LIBRARY_CFLAGS and LIBRARY_LIBSdnldnl The script must support `--cflags' and `--libs' args.dnl If MINIMUM-VERSION is specified, the script must also support thednl `--version' arg.dnl If the `--with-library-[exec-]prefix' arguments to ./configure are given,dnl it must also support `--prefix' and `--exec-prefix'.dnl (In other words, it must be like gtk-config.)dnldnl For example:dnldnl    AC_PATH_GENERIC(Foo, 1.0.0)dnldnl would run `foo-config --version' and check that it is at least 1.0.0dnldnl If so, the following would then be defined:dnldnl    FOO_CFLAGS to `foo-config --cflags`dnl    FOO_LIBS   to `foo-config --libs`dnldnl At present there is no support for additional "MODULES" (see AM_PATH_GTK)dnl (shamelessly stolen from gtk.m4 and then hacked around a fair amount)dnldnl @author Angus Lees <gusl@cse.unsw.edu.au>dnl @version $Id: ac_path_generic.m4,v 1.1.1.1 2001/07/26 00:46:28 guidod Exp $AC_DEFUN([AC_PATH_GENERIC],[dnldnl we're going to need uppercase, lowercase and user-friendly versions of thednl string `LIBRARY'pushdef([UP], translit([$1], [a-z], [A-Z]))dnlpushdef([DOWN], translit([$1], [A-Z], [a-z]))dnldnldnl Get the cflags and libraries from the LIBRARY-config scriptdnlAC_ARG_WITH(DOWN-prefix,	AC_HELP_STRING([--with-]DOWN[-prefix=PFX],[Prefix where $1 is installed (optional)]),        DOWN[]_config_prefix="$withval", DOWN[]_config_prefix="")AC_ARG_WITH(DOWN-exec-prefix,	AC_HELP_STRING([--with-]DOWN[-exec-prefix=PFX],[Exec prefix where $1 is installed (optional)]),        DOWN[]_config_exec_prefix="$withval", DOWN[]_config_exec_prefix="")  if test x$DOWN[]_config_exec_prefix != x ; then     DOWN[]_config_args="$DOWN[]_config_args --exec-prefix=$DOWN[]_config_exec_prefix"     if test x${UP[]_CONFIG+set} != xset ; then       UP[]_CONFIG=$DOWN[]_config_exec_prefix/bin/DOWN-config     fi  fi  if test x$DOWN[]_config_prefix != x ; then     DOWN[]_config_args="$DOWN[]_config_args --prefix=$DOWN[]_config_prefix"     if test x${UP[]_CONFIG+set} != xset ; then       UP[]_CONFIG=$DOWN[]_config_prefix/bin/DOWN-config     fi  fi  AC_PATH_PROG(UP[]_CONFIG, DOWN-config, no)  ifelse([$2], ,     AC_MSG_CHECKING(for $1),     AC_MSG_CHECKING(for $1 - version >= $2)  )  no_[]DOWN=""  if test "$UP[]_CONFIG" = "no" ; then     no_[]DOWN=yes  else     UP[]_CFLAGS="`$UP[]_CONFIG $DOWN[]_config_args --cflags`"     UP[]_LIBS="`$UP[]_CONFIG $DOWN[]_config_args --libs`"     ifelse([$2], , ,[        DOWN[]_config_major_version=`$UP[]_CONFIG $DOWN[]_config_args \         --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`        DOWN[]_config_minor_version=`$UP[]_CONFIG $DOWN[]_config_args \         --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`        DOWN[]_config_micro_version=`$UP[]_CONFIG $DOWN[]_config_args \         --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`        DOWN[]_wanted_major_version="regexp($2, [\<\([0-9]*\)], [\1])"        DOWN[]_wanted_minor_version="regexp($2, [\<\([0-9]*\)\.\([0-9]*\)], [\2])"        DOWN[]_wanted_micro_version="regexp($2, [\<\([0-9]*\).\([0-9]*\).\([0-9]*\)], [\3])"        # Compare wanted version to what config script returned.        # If I knew what library was being run, i'd probably also compile        # a test program at this point (which also extracted and tested        # the version in some library-specific way)        if test "$DOWN[]_config_major_version" -lt \                        "$DOWN[]_wanted_major_version" \          -o \( "$DOWN[]_config_major_version" -eq \                        "$DOWN[]_wanted_major_version" \            -a "$DOWN[]_config_minor_version" -lt \                        "$DOWN[]_wanted_minor_version" \) \          -o \( "$DOWN[]_config_major_version" -eq \                        "$DOWN[]_wanted_major_version" \            -a "$DOWN[]_config_minor_version" -eq \                        "$DOWN[]_wanted_minor_version" \            -a "$DOWN[]_config_micro_version" -lt \                        "$DOWN[]_wanted_micro_version" \) ; then          # older version found          no_[]DOWN=yes          echo -n "*** An old version of $1 "          echo -n "($DOWN[]_config_major_version"          echo -n ".$DOWN[]_config_minor_version"          echo    ".$DOWN[]_config_micro_version) was found."          echo -n "*** You need a version of $1 newer than "          echo -n "$DOWN[]_wanted_major_version"          echo -n ".$DOWN[]_wanted_minor_version"          echo    ".$DOWN[]_wanted_micro_version."          echo "***"          echo "*** If you have already installed a sufficiently new version, this error"          echo "*** probably means that the wrong copy of the DOWN-config shell script is"          echo "*** being found. The easiest way to fix this is to remove the old version"          echo "*** of $1, but you can also set the UP[]_CONFIG environment to point to the"          echo "*** correct copy of DOWN-config. (In this case, you will have to"          echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"          echo "*** so that the correct libraries are found at run-time)"        fi     ])  fi  if test "x$no_[]DOWN" = x ; then     AC_MSG_RESULT(yes)     ifelse([$3], , :, [$3])  else     AC_MSG_RESULT(no)     if test "$UP[]_CONFIG" = "no" ; then       echo "*** The DOWN-config script installed by $1 could not be found"       echo "*** If $1 was installed in PREFIX, make sure PREFIX/bin is in"       echo "*** your path, or set the UP[]_CONFIG environment variable to the"       echo "*** full path to DOWN-config."     fi     UP[]_CFLAGS=""     UP[]_LIBS=""     ifelse([$4], , :, [$4])  fi  AC_SUBST(UP[]_CFLAGS)  AC_SUBST(UP[]_LIBS)  popdef([UP])  popdef([DOWN])])# Do all the work for Automake.                            -*- Autoconf -*-# This macro actually does too much some checks are only needed if# your package does certain things.  But this isn't really a big deal.# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 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.# serial 10AC_PREREQ([2.54])# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow# the ones we care about.m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])# AM_INIT_AUTOMAKE([OPTIONS])# -----------------------------------------------# The call with PACKAGE and VERSION arguments is the old style# call (pre autoconf-2.50), which is being phased out.  PACKAGE# and VERSION should now be passed to AC_INIT and removed from# the call to AM_INIT_AUTOMAKE.# We support both call styles for the transition.  After# the next Automake release, Autoconf can make the AC_INIT# arguments mandatory, and then we can depend on a new Autoconf# release and drop the old call support.AC_DEFUN([AM_INIT_AUTOMAKE],[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl# test to see if srcdir already configuredif test "`cd $srcdir && pwd`" != "`pwd`" &&   test -f $srcdir/config.status; then  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])fi# test whether we have cygpathif test -z "$CYGPATH_W"; then  if (cygpath --version) >/dev/null 2>/dev/null; then    CYGPATH_W='cygpath -w'  else    CYGPATH_W=echo  fifiAC_SUBST([CYGPATH_W])# Define the identity of the package.dnl Distinguish between old-style and new-style calls.m4_ifval([$2],[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])],[_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl_AM_IF_OPTION([no-define],,[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl# Some tools Automake needs.AC_REQUIRE([AM_SANITY_CHECK])dnlAC_REQUIRE([AC_ARG_PROGRAM])dnlAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})AM_MISSING_PROG(AUTOCONF, autoconf)AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})AM_MISSING_PROG(AUTOHEADER, autoheader)AM_MISSING_PROG(MAKEINFO, makeinfo)AM_MISSING_PROG(AMTAR, tar)AM_PROG_INSTALL_SHAM_PROG_INSTALL_STRIP# We need awk for the "check" target.  The system "awk" is bad on# some platforms.AC_REQUIRE([AC_PROG_AWK])dnlAC_REQUIRE([AC_PROG_MAKE_SET])dnlAC_REQUIRE([AM_SET_LEADING_DOT])dnl_AM_IF_OPTION([no-dependencies],,[AC_PROVIDE_IFELSE([AC_PROG_CC],                  [_AM_DEPENDENCIES(CC)],                  [define([AC_PROG_CC],                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnlAC_PROVIDE_IFELSE([AC_PROG_CXX],                  [_AM_DEPENDENCIES(CXX)],                  [define([AC_PROG_CXX],                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl])])# 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.  The stamp files are numbered to have different names.# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the# loop where config.status creates the headers, so we can generate# our stamp files there.AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],[# Compute $1's index in $config_headers._am_stamp_count=1for _am_header in $config_headers :; do  case $_am_header in    $1 | $1:* )      break ;;    * )      _am_stamp_count=`expr $_am_stamp_count + 1` ;;  esacdoneecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])# Copyright 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# AM_AUTOMAKE_VERSION(VERSION)# ----------------------------# Automake X.Y traces this macro to ensure aclocal.m4 has been# generated from the m4 files accompanying Automake X.Y.AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])# AM_SET_CURRENT_AUTOMAKE_VERSION# -------------------------------# Call AM_AUTOMAKE_VERSION so it can be traced.# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],	 [AM_AUTOMAKE_VERSION([1.7.8])])# Helper functions for option handling.                    -*- Autoconf -*-# Copyright 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.# serial 2# _AM_MANGLE_OPTION(NAME)# -----------------------AC_DEFUN([_AM_MANGLE_OPTION],[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])# _AM_SET_OPTION(NAME)# ------------------------------# Set option NAME.  Presently that only means defining a flag for this option.

⌨️ 快捷键说明

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