diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2013-09-01 14:00:08 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-09-01 19:40:10 +0400 |
commit | cd6cb8698b6221f67a2b159a3e88635a09044cc5 (patch) | |
tree | 415007c0c8b2def865b9514cd2f17d35a5de968a | |
parent | d73f3883d45c0bcf54e0d50aaa316306cc5e5ef8 (diff) | |
download | bdwgc-cd6cb8698b6221f67a2b159a3e88635a09044cc5.tar.gz |
Replace deprecated [CXX]INCLUDES to AM_C[PP]FLAGS in configure.ac
* configure.ac (INCLUDES): Replace with AM_CFLAGS (as the former is
deprecated in Automake 1.13.4).
* configure.ac (CXXINCLUDES): Replace with AM_CPPFLAGS.
-rw-r--r-- | configure.ac | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 3d439aaa..fb06a33a 100644 --- a/configure.ac +++ b/configure.ac @@ -213,12 +213,12 @@ case "$THREADS" in *-*-openbsd*) AC_DEFINE(GC_OPENBSD_THREADS) THREADDLLIBS=-pthread - INCLUDES="$INCLUDES -pthread" + AM_CFLAGS="$AM_CFLAGS -pthread" ;; *-*-freebsd*) AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.") AC_DEFINE(GC_FREEBSD_THREADS) - INCLUDES="$INCLUDES -pthread" + AM_CFLAGS="$AM_CFLAGS -pthread" if test "${enable_parallel_mark}" = yes; then AC_DEFINE(PARALLEL_MARK) fi @@ -226,7 +226,7 @@ case "$THREADS" in ;; *-*-kfreebsd*-gnu) AC_DEFINE(GC_FREEBSD_THREADS) - INCLUDES="$INCLUDES -pthread" + AM_CFLAGS="$AM_CFLAGS -pthread" THREADDLLIBS=-pthread AC_DEFINE(_REENTRANT) if test "${enable_parallel_mark}" = yes; then @@ -302,7 +302,7 @@ case "$THREADS" in # May want to enable it in other cases, too. # Measurements have not yet been done. fi - INCLUDES="$INCLUDES -pthread" + AM_CFLAGS="$AM_CFLAGS -pthread" THREADDLLIBS="-lpthread -lrt" ;; *) @@ -352,7 +352,7 @@ case "$THREADS" in AC_DEFINE([DGUX_THREADS], 1, [Define to enable support for DB/UX threads.]) # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread - INCLUDES="-pthread $INCLUDES" + AM_CFLAGS="-pthread $AM_CFLAGS" ;; aix) THREADS=posix @@ -486,7 +486,6 @@ TARGET_ECOS="$with_ecos" addobjs= addlibs= -CXXINCLUDES= CXXLIBS= case "$TARGET_ECOS" in @@ -494,7 +493,7 @@ case "$TARGET_ECOS" in ;; *) AC_DEFINE([ECOS], 1, [Define to enable eCos target support.]) - CXXINCLUDES="-I${TARGET_ECOS}/include" + AM_CPPFLAGS="-I${TARGET_ECOS}/include $AM_CPPFLAGS" addobjs="$addobjs ecos.lo" ;; esac @@ -519,9 +518,8 @@ if test "$GCC" = yes; then fi AC_SUBST(CXX) - -AC_SUBST(INCLUDES) -AC_SUBST(CXXINCLUDES) +AC_SUBST(AM_CFLAGS) +AC_SUBST(AM_CPPFLAGS) AC_SUBST(CXXLIBS) # Configuration of shared libraries |