📄 aclocal.m4
字号:
# 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])])dnldnl $Id: canonical-target-name.m4,v 1.12.4.2 2004/08/18 07:23:00 ralf Exp $dnldnl canonicalize target cpudnl NOTE: Most rtems targets do not fullfil autoconf'sdnl target naming conventions "processor-vendor-os"dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for themdnl and we have to fix it for rtems ourselves AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],[AC_CANONICAL_TARGETAC_MSG_CHECKING(rtems target cpu)case "${target}" in # hpux unix port should go here i[[34567]]86-*linux*) # unix "simulator" port RTEMS_CPU=unix ;; i[[34567]]86-*freebsd*) # unix "simulator" port RTEMS_CPU=unix ;; i[[34567]]86-pc-cygwin*) # Cygwin is just enough unix like :) RTEMS_CPU=unix ;; no_cpu-*rtems*) RTEMS_CPU=no_cpu ;; sparc-sun-solaris*) # unix "simulator" port RTEMS_CPU=unix ;; tic4x-*rtems*) # gcc changed the name RTEMS_CPU=c4x ;; *) RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'` ;;esacAC_SUBST(RTEMS_CPU)AC_MSG_RESULT($RTEMS_CPU)])# Add --enable-maintainer-mode option to configure.# From Jim Meyering# Copyright 1996, 1998, 2000, 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 2AC_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])AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])AC_DEFUN([RTEMS_TOOLPATHS],[# tooldir='$(exec_prefix)/'$target_alias# Temporary work-around until building in source tree is supportedAC_REQUIRE([RTEMS_PROJECT_ROOT])tooldir='$(PROJECT_ROOT)'AC_SUBST(tooldir)project_includedir='$(tooldir)'/includeAC_SUBST(project_includedir)project_libdir='$(tooldir)/lib$(MULTISUBDIR)'AC_SUBST(project_libdir)project_bindir='$(tooldir)/bin'AC_SUBST(project_bindir)rtems_bspdir='$(prefix)/${RTEMS_BSP}'AC_SUBST(rtems_bspdir)rtems_makedir='$(prefix)/make'AC_SUBST(rtems_makedir)])dnldnl $Id: project-root.m4,v 1.6.4.1 2004/08/18 07:23:00 ralf Exp $dnl dnldnl PROJECT_TOPdir .. relative path to the top of the build-treednl PROJECT_ROOT .. relative path to the top of the temporarydnl installation directory inside the build-treednl RTEMS_TOPdir .. relative path of a subpackage's configure.in to thednl toplevel configure.in of the source-treednl RTEMS_ROOT .. path to the top of a bsp's build directorydnl [Applied by custom/*.cfg, depredicated otherwise]dnlAC_DEFUN([RTEMS_PROJECT_ROOT],[dnlAC_REQUIRE([RTEMS_TOP])PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"AC_SUBST(PACKHEX)])dnl $Id: target.m4,v 1.12.2.2 2004/08/18 07:38:49 ralf Exp $AC_DEFUN([RTEMS_CONFIG_BUILD_SUBDIRS],[AC_REQUIRE([_RTEMS_OUTPUT_BUILD_SUBDIRS])RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS [$1]"])dnl Derived from automake-1.4's AC_OUTPUT_SUBDIRSAC_DEFUN([_RTEMS_OUTPUT_BUILD_SUBDIRS],[AC_CONFIG_COMMANDS([bsp-tools],[# HACK: This is a blantant hack and breaks Canadian crossesbuild_alias="$build_alias"host_alias="$build_alias"if test "$no_recursion" != yes; then if test x"$build_alias" != x"$host_alias"; then target_subdir="$host_alias" else target_subdir="." fi RTEMS_CONFIGURE_ARGS_QUOTE([ac_sub_configure_args], [ -host* | --host* ) ;; --host ) ac_prev=host_alias;; -target* | --target* ) ;; -target ) ac_prev=target_alias ;; -build* | --build* ) ;; -build ) ac_prev_build_alias ;; *_alias=* ) ;; # HACK: Workaround to autoconf passing *_alias ], [rtems_configure_args]) for rtems_config_dir in $RTEMS_BUILD_SUBDIRS; do # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. if test ! -d $srcdir/$rtems_config_dir; then continue fi _RTEMS_PUSH_BUILDDIR([$rtems_config_dir]) _RTEMS_SUB_SRCDIR([$rtems_config_dir]) # The recursion is here. if test -n "$ac_sub_configure"; then# ac_sub_cache_file=./config.cache ac_sub_cache_file=/dev/null _RTEMS_GIVEN_INSTALL echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir" # The eval makes quoting arguments work. if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \ $ac_sub_configure_args \ --srcdir=$ac_sub_srcdir \ --with-target-subdir=$target_subdir \ --cache-file=$ac_sub_cache_file then : else AC_MSG_ERROR([$ac_sub_configure failed for $rtems_config_dir]) fi fi _RTEMS_POP_BUILDDIR donefi],[RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS"rtems_configure_args="$ac_configure_args"])])AU_DEFUN([RTEMS_OUTPUT_BUILD_SUBDIRS],[])dnldnl Misc utility macros for subdir handling to work around missing abilitiesdnl in autoconf, automake and structural issues with RTEMSdnldnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'dnl configure.in.dnldnldnl _RTEMS_PUSH_BUILDDIR(SUBDIR)dnlAC_DEFUN([_RTEMS_PUSH_BUILDDIR],[# _RTEMS_PUSH_BUILDDIR echo configuring in $1 case "$srcdir" in .) ;; *) AS_MKDIR_P([$1]) ;; esac ac_popdir=`pwd` cd $1])dnldnl _RTEMS_POP_BUILDDIRdnlAC_DEFUN([_RTEMS_POP_BUILDDIR],[ cd "$ac_popdir"])dnldnl _RTEMS_GIVEN_INSTALLdnlAC_DEFUN([_RTEMS_GIVEN_INSTALL],[ifdef([AC_PROVIDE_AC_PROG_INSTALL],[ case "$ac_given_INSTALL" in [[\\/]]* | ?:[[\\/]]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac])dnl])dnldnl _RTEMS_SUB_SRCDIR(AC_CONFIG_DIR[,TARGET_SUBDIR])dnlAC_DEFUN([_RTEMS_SUB_SRCDIR],[# _RTEMS_SUB_SRCDIR _RTEMS_ADJUST_SRCDIR(ac_sub_srcdir,$1,$2) # Check for configure if test -f $ac_sub_srcdir/configure; then ac_sub_configure=$ac_sub_srcdir/configure else AC_MSG_WARN([no configuration information is in $1]) ac_sub_configure= fi])dnl RTEMS_CONFIGURE_ARGS_QUOTE(dnl RETURN_VAR, [ADDITIONAL_CASES], [VAR_TO_PROCESS]])dnl AC_DEFUN([_RTEMS_CONFIGURE_ARGS_QUOTE],[$1_prune(){ # Remove --cache-file and --srcdir arguments so they do not pile up. $1= ac_prev= for ac_arg do if test -n "$ac_prev"; then ac_prev= continue fi case $ac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; m4_if([$2],,,[$2]) *) $1="$$1 '$ac_arg'" ;; esac done export $1}])AC_DEFUN([RTEMS_CONFIGURE_ARGS_QUOTE],[m4_expand_once([_RTEMS_CONFIGURE_ARGS_QUOTE([$1],[$2])])eval $1_prune m4_if([$3],,[$ac_configure_args],[[$]$3])])dnl $Id: config-subdirs.m4,v 1.6.4.1 2004/08/18 07:23:00 ralf Exp $dnldnl Misc utility macros for subdir handling to work around missing abilitiesdnl in autoconf, automake and structural issues with RTEMSdnldnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'dnl configure.in.dnldnldnl _AC_DOTS(PATH)dnlAC_DEFUN([_AC_DOTS],[# A "../" for each directory in $1. ac_dots=`echo $1 | \ sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`])dnldnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])dnlAC_DEFUN([_RTEMS_ADJUST_SRCDIR],[ _AC_DOTS(ifelse([$3], ,[$2],[$3/$2])) case "$srcdir" in .) # No --srcdir option. We are building in place. $1=$srcdir ;; [[\\/]]* | ?:[[\\/]]*) # Absolute path. $1=$srcdir/$2 ;; *) # Relative path. $1=$ac_dots$srcdir/$2 ;; esac])AC_DEFUN([_RTEMS_CPU_SUBDIR],[$1 ) if test -d ${srcdir}/ifelse([$2],,[$1],[$2/$1]) ; then AC_CONFIG_SUBDIRS(ifelse([$2],,[$1],[$2/$1])) fi])AC_DEFUN([RTEMS_CPU_SUBDIRS],[case $RTEMS_CPU in_RTEMS_CPU_SUBDIR([a29k],[$1]);;_RTEMS_CPU_SUBDIR([arm],[$1]);;_RTEMS_CPU_SUBDIR([c4x],[$1]);;_RTEMS_CPU_SUBDIR([h8300],[$1]);;_RTEMS_CPU_SUBDIR([hppa1.1],[$1]);;_RTEMS_CPU_SUBDIR([i386],[$1]);;_RTEMS_CPU_SUBDIR([i960],[$1]);;_RTEMS_CPU_SUBDIR([m68k],[$1]);;_RTEMS_CPU_SUBDIR([mips],[$1]);;_RTEMS_CPU_SUBDIR([mips64orion],[$1]);;_RTEMS_CPU_SUBDIR([no_cpu],[$1]);;_RTEMS_CPU_SUBDIR([or32],[$1]);;_RTEMS_CPU_SUBDIR([powerpc],[$1]);;_RTEMS_CPU_SUBDIR([sh],[$1]);;_RTEMS_CPU_SUBDIR([sparc],[$1]);;_RTEMS_CPU_SUBDIR([unix],[$1]);;*) AC_MSG_ERROR([Invalid RTEMS_CPU <[$]{RTEMS_CPU}>])esac])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -