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

📄 aclocal.m4

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 M4
📖 第 1 页 / 共 3 页
字号:
        RTEMS_HOST=Linux	;;  i[[34567]]86-*freebsd*)         # unix "simulator" port        RTEMS_HOST=FreeBSD	;;  i[[34567]]86-pc-cygwin*) 	# Cygwin is just enough unix like :)        RTEMS_HOST=Cygwin	;;  sparc-sun-solaris*)           # unix "simulator" port        RTEMS_HOST=Solaris	;;  *) 	;;esacAC_SUBST(RTEMS_HOST)])dnl# 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])dnl $Id: enable-cxx.m4,v 1.5.2.1 2004/08/18 07:23:00 ralf Exp $AC_DEFUN([RTEMS_ENABLE_CXX],[AC_ARG_ENABLE(cxx,[AC_HELP_STRING([--enable-cxx],[enable C++ support and build the rtems++ library])],[case "${enable_cxx}" in  yes) RTEMS_HAS_CPLUSPLUS=yes ;;  no) RTEMS_HAS_CPLUSPLUS=no   ;;  *)  AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;esac], [RTEMS_HAS_CPLUSPLUS=no])])dnl $Id: env-rtemsbsp.m4,v 1.10.2.1 2004/08/18 07:23:00 ralf Exp $dnl Pass a single BSP via an environment variablednl used by per BSP configure scriptsAC_DEFUN([RTEMS_ENV_RTEMSBSP],[dnlAC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnlAC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnlAC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnlAC_ARG_VAR([CPU_CFLAGS],[CFLAGS specifying CPU-dependent features])AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[CFLAGS for building the OPTIMIZE variant])AC_ARG_VAR([CFLAGS_DEBUG_V],[CFLAGS for building the DEBUG variant])AC_ARG_VAR([CFLAGS_PROFILE_V],[CFLAGS for building the PROFILE variant])AC_ARG_VAR([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])AC_ARG_VAR([RTEMS_CPU_MODEL],[RTEMS's cpu model])AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])AC_MSG_CHECKING([for RTEMS_BSP])AC_CACHE_VAL(rtems_cv_RTEMS_BSP,[dnl  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";])dnlif test -z "$rtems_cv_RTEMS_BSP"; then  AC_MSG_ERROR([Missing RTEMS_BSP])fiRTEMS_BSP="$rtems_cv_RTEMS_BSP"AC_MSG_RESULT(${RTEMS_BSP})AC_SUBST(RTEMS_BSP)RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"AC_SUBST(RTEMS_BSP_SPECS)GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"AC_SUBST(GCC_SPECS)PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"AC_SUBST(PROJECT_INCLUDE)PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"   AC_SUBST(PROJECT_RELEASE)RTEMS_ROOT="\$(PROJECT_ROOT)/c/$RTEMS_BSP"AC_SUBST(RTEMS_ROOT)RTEMS_ENABLE_BAREAC_SUBST(BARE_CPU_MODEL)AC_SUBST(BARE_CPU_CFLAGS)AM_CONDITIONAL([MULTILIB],[false])includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"libdir="\${exec_prefix}/${RTEMS_BSP}/lib"bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"AC_SUBST(bsplibdir)])dnl $Id: enable-rtemsbsp.m4,v 1.12.2.1 2004/08/18 07:23:00 ralf Exp $dnl Override the set of BSPs to be built.dnl used by the toplevel configure scriptdnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)AC_DEFUN([RTEMS_ENABLE_RTEMSBSP],[AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])AC_ARG_ENABLE(rtemsbsp,[AC_HELP_STRING([--enable-rtemsbsp="bsp1 bsp2 .."],[BSPs to include in build])],[case "${enableval}" in  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp="bsp1 bsp2"]);;  *) $1=$enableval;;esac],[$1=""])])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: check-custom-bsp.m4,v 1.1.2.1 2004/08/18 07:23:00 ralf Exp $AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[AC_REQUIRE([RTEMS_TOP])AC_MSG_CHECKING([for make/custom/[$]$1.cfg])AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"],  [AC_MSG_RESULT([yes])],  [AC_MSG_ERROR([no])])])AC_DEFUN([RTEMS_ENABLE_BARE],[AC_ARG_ENABLE(bare-cpu-cflags,[AC_HELP_STRING([--enable-bare-cpu-cflags],[specify a particular cpu cflag (bare bsp specific)])],[case "${enableval}" in  no) BARE_CPU_CFLAGS="" ;;  *)    BARE_CPU_CFLAGS="${enableval}" ;;esac],[BARE_CPU_CFLAGS=""])AC_ARG_ENABLE(bare-cpu-model,[AC_HELP_STRING([--enable-bare-cpu-model],[specify a particular cpu model (bare bsp specific)])],[case "${enableval}" in  no)   BARE_CPU_MODEL="" ;;  *)    BARE_CPU_MODEL="${enableval}" ;;esac],[BARE_CPU_MODEL=""])])dnl $Id: check-cpu.m4,v 1.6.2.1 2004/08/18 07:23:00 ralf Exp $dnl check if RTEMS support a cpuAC_DEFUN([RTEMS_CHECK_CPU],[dnlAC_REQUIRE([RTEMS_TOP])AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])# Is this a supported CPU?AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])# FIXME: Temporary hackif test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then  AC_MSG_RESULT(yes)else  AC_MSG_ERROR(no)fi])dnldnl $Id: check-cxx.m4,v 1.4.6.2 2004/08/18 07:23:00 ralf Exp $dnlAC_DEFUN([RTEMS_CHECK_CXX],[dnlAC_REQUIRE([RTEMS_CHECK_CPU])dnlAC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnlAC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnlAC_CACHE_CHECK([whether to build rtems++],  rtems_cv_HAS_CPLUSPLUS,  [ if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then      if test -n "$CXX"; then        rtems_cv_HAS_CPLUSPLUS="yes"      else        rtems_cv_HAS_CPLUSPLUS="no"      fi    else      rtems_cv_HAS_CPLUSPLUS="no"    fi])HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";AC_SUBST(HAS_CPLUSPLUS)dnlif test "$HAS_CPLUSPLUS" = "yes"; thenCPLUS_LD_LIBS='$(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a'fiAC_SUBST(CPLUS_LD_LIBS)])dnldnl $Id: prog-cc.m4,v 1.18.2.2 2004/08/18 07:23:00 ralf Exp $dnl dnl Check for target gccdnlAC_DEFUN([RTEMS_PROG_CC],[AC_BEFORE([$0], [AC_PROG_CPP])dnlAC_BEFORE([$0], [AC_PROG_CC])dnlAC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl_RTEMS_FLAGS([CFLAGS],  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])RTEMS_CHECK_TOOL(CC,gcc)test -z "$CC" && \  AC_MSG_ERROR([no acceptable cc found in \$PATH])AC_PROG_CCAC_PROG_CPPAM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")])AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],[dnl check target ccRTEMS_PROG_CCdnl check if the compiler supports -isystemRTEMS_GCC_ISYSTEMdnl check if the target compiler may use --pipeRTEMS_GCC_PIPEtest "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"dnl check if the compiler supports --specsRTEMS_GCC_SPECSif test "$GCC" = yes; thenRTEMS_CFLAGS="$RTEMS_CFLAGS -Wall"m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"])fiAS_IF([test x"$rtems_cv_gcc_isystem" = x"yes"],[  RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[  RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)"])AC_SUBST(RTEMS_CPPFLAGS)])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*])])dnldnl $Id: prog-cxx.m4,v 1.15.2.1 2004/08/18 07:23:00 ralf Exp $dnl dnl Check for target g++dnl AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],[AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnlAC_REQUIRE([RTEMS_ENABLE_CXX])RTEMS_CHECK_TOOL(CXX,g++)if test "$RTEMS_HAS_CPLUSPLUS" = "yes";then_RTEMS_FLAGS([CXXFLAGS],  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])dnl Only accept g++dnl NOTE: This might be too restrictivetest -z "$CXX" \  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])AC_PROG_CXX  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then    AC_MSG_ERROR([***]     [Inconsistency in compiler configuration:]     [Target C compiler and target C++ compiler]     [must both either be cross compilers or native compilers]     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )  fielseAM_CONDITIONAL([am__fastdepCXX],[false])fi])

⌨️ 快捷键说明

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