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

📄 aclocal.m4

📁 移植到WLIT项目的redboot源代码
💻 M4
📖 第 1 页 / 共 2 页
字号:
dnl --------------------------------------------------------------------dnl Convert a cygwin pathname to something acceptable to VC++ (butdnl still invoked from bash and cygwin's make). This means usingdnl the cygpath utility and then translating any backslashes intodnl forward slashes to avoid confusing make.AC_DEFUN(CYG_AC_MSVC_PATH, [    AC_REQUIRE([CYG_AC_PROG_MSVC])    ifelse($#, 1, , AC_MSG_ERROR("Invalid number of arguments passed to CYG AC_MSVC_PATH"))    if test "${MSVC}" = "yes" ; then      $1=`cygpath -w ${$1} | tr \\\\\\\\ /`    fi])dnl --------------------------------------------------------------------dnl Work out details of the Tcl installation that should be used.dnl This adds two command-line options, --with-tcl=<prefix> todnl specify the Tcl install directory, and --with-tcl-version=<vsn>dnl to control which version of Tcl should be used.dnldnl On Unix systems and under cygwin there should be a filednl $(tcl_prefix)/lib/tclConfig.sh containing all the informationdnl needed for Tcl. This file are consulted and the appropriatednl variables extracted.dnldnl To confuse matters, subtly different naming conventions are useddnl under Unix and NT. Under Unix the Tcl library will be calleddnl libtcl8.0.a, libtcl8.1.a, etc. with a dot between the major anddnl minor version. Under NT (including cygwin) the library will bednl called tcl80.lib, dnl tcl81.lib, libtcl80.a, libtcl81.a, etc.dnl without a dot.dnldnl The macro should really assume that it is running inside devo,dnl with tcl and tcl8.1 directories present and already configured.dnl This is tricky for a number of reasons, including confusion aboutdnl the meaning of top_srcdir.dnldnl This macro defines four new shell variables which will bednl substituted (typically into Makefile.in):dnldnl    cyg_ac_tcl_version	- the version of Tcl that is to be useddnl    cyg_ac_tcl_incdir	- location of <tcl.h> etc aldnl    cyg_ac_tcl_libdir	- location of libtcl.a/tcl.lib etc.dnl    cyg_ac_tcl_libs		- all of the libraries that are needed for TclAC_DEFUN(CYG_AC_PATH_TCL, [AC_REQUIRE([CYG_AC_PROG_MSVC])AC_REQUIRE([AC_CYGWIN])dnl Look for the version of Tcl. If none is specified, default todnl 8.0 under VC++ and cygwin, nothing under Unix. A version has to bednl specified under NT because there is no symbolic link from libtcl.adnl to whatever happens to be the most recent installed version.AC_MSG_CHECKING(for Tcl version)AC_ARG_WITH(tcl-version,[ --with-tcl-version=<vsn> version of Tcl to be used],[  cyg_ac_tcl_version=${with_tcl_version}],[  if test "${MSVC}" = "yes" ; then    cyg_ac_tcl_version=80  else    if test "${ac_cv_cygwin}" = "yes" ; then      cyg_ac_tcl_version=80    else      cyg_ac_tcl_version=""    fi  fi])AC_MSG_RESULT(${cyg_ac_tcl_version})AC_SUBST(cyg_ac_tcl_version)dnl Where is the Tcl installation? By default assume Tcl is alreadydnl installed in the same place as the eCos host-side.AC_ARG_WITH(tcl,[ --with-tcl-header=<path>        location of Tcl header])AC_ARG_WITH(tcl,[ --with-tcl-lib=<path>        location of Tcl libraries])AC_MSG_CHECKING(for Tcl installation)AC_ARG_WITH(tcl,[ --with-tcl=<path>        location of Tcl header and libraries],[  cyg_ac_tcl_incdir=${with_tcl}/include  cyg_ac_tcl_libdir=${with_tcl}/lib],[  if test "${with_tcl_header}" = "no"; then    cyg_ac_tcl_incdir=${prefix}/include  else    with_tcl=yes    cyg_ac_tcl_incdir=${with_tcl_header}/include  fi  if test "${with_tcl_lib}" = "no"; then    cyg_ac_tcl_libdir=${prefix}/lib  else    with_tcl=yes    cyg_ac_tcl_libdir=${with_tcl_lib}/lib  fi])AC_MSG_RESULT(${cyg_ac_tcl_libdir})dnl Sanity check, make sure that there is a tcl.h header file.dnl If not then there is no point in proceeding.if test \! -r ${cyg_ac_tcl_incdir}/tcl.h ; then  AC_MSG_ERROR(unable to locate Tcl header file tcl.h)fidnl If using VC++ then there is no tclConfig.sh file, so thednl library information has to be hard-wired. Otherwise therdnl should be a tclConfig.sh file containing the necessary information.if test "${MSVC}" = "yes" ; then  cyg_ac_tcl_libs="tcl${cyg_ac_tcl_version}.lib"  CYG_AC_MSVC_PATH(cyg_ac_tcl_incdir)  CYG_AC_MSVC_PATH(cyg_ac_tcl_libdir)else  if test \! -r ${cyg_ac_tcl_libdir}/tclConfig.sh ; then    AC_MSG_ERROR(unable to locate Tcl config file tclConfig.sh)  else    . ${cyg_ac_tcl_libdir}/tclConfig.sh    cyg_ac_tcl_libs="-ltcl${cyg_ac_tcl_version} ${TCL_LIBS}"  fifiAC_SUBST(cyg_ac_tcl_incdir)AC_SUBST(cyg_ac_tcl_libdir)AC_SUBST(cyg_ac_tcl_libs)AC_SUBST(cyg_ac_tk_libs)])# Do all the work for Automake.  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.# serial 1dnl Usage:dnl AM_INIT_AUTOMAKE(package,version, [no-define])AC_DEFUN(AM_INIT_AUTOMAKE,[AC_REQUIRE([AC_PROG_INSTALL])PACKAGE=[$1]AC_SUBST(PACKAGE)VERSION=[$2]AC_SUBST(VERSION)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])fiifelse([$3],,AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))AC_REQUIRE([AM_SANITY_CHECK])AC_REQUIRE([AC_ARG_PROGRAM])dnl FIXME This is truly gross.missing_dir=`cd $ac_aux_dir && pwd`AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)AC_REQUIRE([AC_PROG_MAKE_SET])])## Check to make sure that the build environment is sane.#AC_DEFUN(AM_SANITY_CHECK,[AC_MSG_CHECKING([whether build environment is sane])# Just in casesleep 1echo timestamp > conftestfile# Do `set' in a subshell so we don't clobber the current shell's# arguments.  Must try -L first in case configure is actually a# symlink; some systems play weird games with the mod time of symlinks# (eg FreeBSD returns the mod time of the symlink's containing# directory).if (   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`   if test "[$]*" = "X"; then      # -L didn't work.      set X `ls -t $srcdir/configure conftestfile`   fi   if test "[$]*" != "X $srcdir/configure conftestfile" \      && test "[$]*" != "X conftestfile $srcdir/configure"; then      # If neither matched, then we have a broken ls.  This can happen      # if, for instance, CONFIG_SHELL is bash and it inherits a      # broken ls alias from the environment.  This has actually      # happened.  Such a system could not be considered "sane".      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a brokenalias in your environment])   fi   test "[$]2" = conftestfile   )then   # Ok.   :else   AC_MSG_ERROR([newly created file is older than distributed files!Check your system clock])firm -f conftest*AC_MSG_RESULT(yes)])dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)dnl The program must properly implement --version.AC_DEFUN(AM_MISSING_PROG,[AC_MSG_CHECKING(for working $2)# Run test in a subshell; some versions of sh will print an error if# an executable is not found, even if stderr is redirected.# Redirect stdin to placate older versions of autoconf.  Sigh.if ($2 --version) < /dev/null > /dev/null 2>&1; then   $1=$2   AC_MSG_RESULT(found)else   $1="$3/missing $2"   AC_MSG_RESULT(missing)fiAC_SUBST($1)])# Define a conditional.AC_DEFUN(AM_CONDITIONAL,[AC_SUBST($1_TRUE)AC_SUBST($1_FALSE)if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fi])# Add --enable-maintainer-mode option to configure.# From Jim Meyering# serial 1AC_DEFUN(AM_MAINTAINER_MODE,[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])  dnl maintainer-mode is disabled by default  AC_ARG_ENABLE(maintainer-mode,[  --enable-maintainer-mode enable make rules and dependencies not useful                          (and sometimes confusing) to the casual installer],      USE_MAINTAINER_MODE=$enableval,      USE_MAINTAINER_MODE=no)  AC_MSG_RESULT($USE_MAINTAINER_MODE)  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)  MAINT=$MAINTAINER_MODE_TRUE  AC_SUBST(MAINT)dnl])

⌨️ 快捷键说明

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