diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-06-12 05:57:22 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-06-12 05:57:22 +0000 |
commit | 040e70a04f5a23f5f80e320ab0f9fbcd14878f1f (patch) | |
tree | 3fe6be834eba990428ebfb045549b8e674e408f7 /aclocal | |
parent | 2003-06-10 Phil Torre <ptorre@zetron.com> (diff) | |
download | rtems-040e70a04f5a23f5f80e320ab0f9fbcd14878f1f.tar.bz2 |
2003-06-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove "BLEEDING EDGE" warning.
Put docs into RTEMS_BUILD_CONFIG_SUBDIRS.
* acinclude.m4: Add AC_PREREQ(2.57).
Major overhaul (PR 412).
* aclocal/prog-cc.m4: Add RTEMS_GCC_ISYSTEM.
* aclocal/gcc-isystem.m4: New.
* Makefile.am: Add aclocal/gcc-isystem.m4.
Diffstat (limited to 'aclocal')
-rw-r--r-- | aclocal/gcc-isystem.m4 | 25 | ||||
-rw-r--r-- | aclocal/prog-cc.m4 | 13 |
2 files changed, 36 insertions, 2 deletions
diff --git a/aclocal/gcc-isystem.m4 b/aclocal/gcc-isystem.m4 new file mode 100644 index 0000000000..c230508208 --- /dev/null +++ b/aclocal/gcc-isystem.m4 @@ -0,0 +1,25 @@ +dnl +dnl $Id$ +dnl +dnl Check whether the gcc accepts -isystem +dnl + +AC_DEFUN(RTEMS_GCC_ISYSTEM, +[AC_REQUIRE([RTEMS_PROG_CC]) +AC_CACHE_CHECK(whether $CC accepts -isystem,rtems_cv_gcc_isystem, +[ +rtems_cv_gcc_isystem=no +if test x"$GCC" = x"yes"; then +cat << EOF > conftest.h +int conftest123(); +EOF +cat << 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 + fi +fi +rm -f conftest* +])]) diff --git a/aclocal/prog-cc.m4 b/aclocal/prog-cc.m4 index 4ed2f5730c..24a9d842a1 100644 --- a/aclocal/prog-cc.m4 +++ b/aclocal/prog-cc.m4 @@ -26,14 +26,23 @@ AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET, [ dnl check target cc RTEMS_PROG_CC -dnl check if the compiler supports --specs -RTEMS_GCC_SPECS +dnl check if the compiler supports -isystem +RTEMS_GCC_ISYSTEM dnl check if the target compiler may use --pipe RTEMS_GCC_PIPE test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" +dnl check if the compiler supports --specs +RTEMS_GCC_SPECS + if test "$GCC" = yes; then RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall" m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"]) fi + +AS_IF([test x"$rtems_cv_gcc_isystem" = x"yes"],[ + RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[ + RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)" +]) +AC_SUBST(RTEMS_CPPFLAGS) ]) |