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

📄 aclocal.m4

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 M4
📖 第 1 页 / 共 4 页
字号:
dnldnl $Id: canonicalize-tools.m4,v 1.16.2.1 2004/08/18 07:23:00 ralf Exp $dnldnl Set target toolsdnlAC_DEFUN([RTEMS_CANONICALIZE_TOOLS],[AC_REQUIRE([RTEMS_PROG_CC])dnldnl FIXME: What shall be done if these tools are not available?  RTEMS_CHECK_TOOL(AR,ar,no)  RTEMS_CHECK_TOOL(AS,as,no)  RTEMS_CHECK_TOOL(LD,ld,no)  RTEMS_CHECK_TOOL(NM,nm,no)dnl special treatment of ranlib  RTEMS_CHECK_TOOL(RANLIB,ranlib,:)dnl NOTE: These may not be available if not using gnutools  RTEMS_CHECK_TOOL(OBJCOPY,objcopy,no)  RTEMS_CHECK_TOOL(SIZE,size,no)  RTEMS_CHECK_TOOL(STRIP,strip,:)])dnl $Id: check-tool.m4,v 1.2.4.1 2004/08/18 07:23:00 ralf Exp $dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]])AC_DEFUN([RTEMS_CHECK_TOOL],[  AS_IF([test "x$build_alias" != "x$host_alias"],    [rtems_tool_prefix=${ac_tool_prefix}])  AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4)])AC_DEFUN([_RTEMS_FLAGS],[AS_IF([test -n "[$]{$1}"],  [RTEMS_$1=[$]{$1}],  [RTEMS_$1=$2])AC_SUBST([RTEMS_$1])])dnldnl $Id: gcc-isystem.m4,v 1.1.2.2 2004/08/18 07:23:00 ralf Exp $dnldnl Check whether the gcc accepts -isystemdnlAC_DEFUN([RTEMS_GCC_ISYSTEM],[AC_REQUIRE([RTEMS_PROG_CC])AC_CACHE_CHECK(whether $CC accepts -isystem,rtems_cv_gcc_isystem,[rtems_cv_gcc_isystem=noif test x"$GCC" = x"yes"; thencat << EOF > conftest.hint conftest123();EOFcat << EOF > conftest.c#include <conftest.h>int conftest123() {}EOF  if test -z "`${CC} -isystem./ -c conftest.c 2>&1`";then    rtems_cv_gcc_isystem=yes  fifirm -f conftest*])])dnldnl $Id: gcc-pipe.m4,v 1.8.6.1 2004/08/18 07:23:00 ralf Exp $dnldnl Check whether the target compiler accepts -pipednlAC_DEFUN([RTEMS_GCC_PIPE],[AC_REQUIRE([RTEMS_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST])AC_CACHE_CHECK(whether $CC accepts --pipe,rtems_cv_gcc_pipe,[rtems_cv_gcc_pipe=noif test x"$GCC" = x"yes"; then    echo 'void f(){}' >conftest.c    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then      rtems_cv_gcc_pipe=yes    fi    rm -f conftest*fi])])dnldnl $Id: gcc-specs.m4,v 1.5.6.1 2004/08/18 07:23:00 ralf Exp $dnldnl Check whether the target compiler accepts -specsdnlAC_DEFUN([RTEMS_GCC_SPECS],[AC_REQUIRE([RTEMS_PROG_CC])AC_CACHE_CHECK(whether $CC accepts -specs,rtems_cv_gcc_specs,[rtems_cv_gcc_specs=noif test x"$GCC" = x"yes"; then  touch confspec  echo 'void f(){}' >conftest.c  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then    rtems_cv_gcc_specs=yes  fifirm -f confspec conftest*])])dnl $Id: check-networking.m4,v 1.4.6.1 2004/08/18 07:23:00 ralf Exp $dnlAC_DEFUN([RTEMS_CHECK_NETWORKING],[dnlAC_REQUIRE([RTEMS_CHECK_CPU])dnlAC_REQUIRE([RTEMS_ENABLE_NETWORKING])dnlAC_CACHE_CHECK([whether BSP supports networking],  rtems_cv_HAS_NETWORKING,  [dnl    case "$RTEMS_CPU" in    unix*)      rtems_cv_HAS_NETWORKING="no"      ;;    *)      if test "${RTEMS_HAS_NETWORKING}" = "yes"; then        rtems_cv_HAS_NETWORKING="yes";      else        rtems_cv_HAS_NETWORKING="disabled";      fi      ;;    esac])if test "$rtems_cv_HAS_NETWORKING" = "yes"; then  HAS_NETWORKING="yes";else  HAS_NETWORKING="no";fiAC_SUBST(HAS_NETWORKING)dnl])dnl $Id: enable-networking.m4,v 1.7.2.1 2004/08/18 07:23:00 ralf Exp $AC_DEFUN([RTEMS_ENABLE_NETWORKING],[AC_ARG_ENABLE(networking,[AC_HELP_STRING([--enable-networking],[enable TCP/IP stack])],[case "${enableval}" in  yes) RTEMS_HAS_NETWORKING=yes ;;  no) RTEMS_HAS_NETWORKING=no ;;  *)  AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;esac],[RTEMS_HAS_NETWORKING=yes])AC_SUBST(RTEMS_HAS_NETWORKING)dnl])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])dnl $Id: bspopts.m4,v 1.1 2001/11/14 18:57:26 joel Exp $dnldnl RTEMS_BSPOPTS_* - some autoconf voodoo to handle default values anddnl help-strings for per-BSP-environment variables.dnl To be used in bsp-configure scriptsdnl Example:dnldnl RTEMS_BSPOPTS_SET([foo],[bar],[0])dnl RTEMS_BSPOPTS_SET([foo],[baz*],[hello])dnl RTEMS_BSPOPTS_SET([foo],[*],[])dnl RTEMS_BSPOPTS_HELP([foo],[env. variable foo])dnl -> Add "0" as default value of variable "foo" for BSP "bar"dnl -> Add "hello" as default value of variable "foo" for all BSPs startingdnl with "baz" in their name.dnl -> Undefine foo as default clause for all BSP's.dnldnl All this basically expands to a /bin/shell "case"-statement withdnl accompanying autoconf magic to propagate VAR to bspopts.h.dnl RTEMS_BSPOPTS_HELP(VAR,HELP-STRING)dnl Set up printing the HELP-STRING for bspopts.h's variable VAR and adddnl appropriate /bin/sh-magic to "configure" to have VAR set up.AC_DEFUN([RTEMS_BSPOPTS_HELP],[RTEMS_ARG_VAR([$1],[$2])m4_ifdef([_$1],[case ${RTEMS_BSP} in_$1[]dnlesac],[])if test -n "[$]{$1}"; then[]dnlAC_DEFINE_UNQUOTED([$1],  [[$]$1],  [$2])dnlfi])dnl RTEMS_BSPOPTS_SET(VAR,BSP,DEFAULT)dnl Set up a value DEFAULT to be used as default value for variable VAR fordnl BSP in RTEMS_BSPOPTS_HELP.dnl MUST be use in front of exactly _one_ corresponding RTEMS_BSPOPTS_HELPAC_DEFUN([RTEMS_BSPOPTS_SET],[dnlm4_append([_$1],[$2 )  $1=[$]{$1-$3} ;;])])dnl RTEMS_ARG_VAR(VAR,HELP-STRING)dnl An internal macros to have RTEMS_BSPOPTS_HELP's help string prettydnl printed with configure --help.dnl Stripped down version of autoconf-2.52's AC_ARG_VAR.AC_DEFUN([RTEMS_ARG_VAR],[m4_expand_once([m4_divert_once([HELP_VAR],[AC_HELP_STRING([$1], [$2], [              ])])],      [$0($1)])dnl])

⌨️ 快捷键说明

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