[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
84-ac-prog-cxxcpp.patch
From: |
Akim Demaille |
Subject: |
84-ac-prog-cxxcpp.patch |
Date: |
Tue, 19 Dec 2000 21:00:27 +0100 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* aclang.m4: `dnl' the AC_LANG_PUSH and AC_LANG_POP.
(AC_PROG_CXXCPP, AC_PROG_CPP): Set the current language instead of
just asserting it, since these macros can be called directly.
Index: aclang.m4
--- aclang.m4 Fri, 15 Dec 2000 20:41:04 +0100 akim (ace/b/32_aclang.m4 1.5.3.59
644)
+++ aclang.m4 Tue, 19 Dec 2000 20:24:34 +0100 akim (ace/b/32_aclang.m4 1.5.3.59
644)
@@ -800,8 +800,8 @@ AC_DEFUN([_AC_PROG_PREPROC_WORKS],
# between the AC_LANG_COMPILER_REQUIRE family and that of AC_PROG_CC.
AC_DEFUN([AC_PROG_CPP],
[AC_REQUIRE([AC_PROG_CC])dnl
+AC_LANG_PUSH(C)dnl
AC_MSG_CHECKING([how to run the C preprocessor])
-AC_LANG_ASSERT(C)dnl
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -829,6 +829,7 @@ AC_DEFUN([AC_PROG_CPP],
AC_MSG_ERROR([C preprocessor "$CPP" fails sanity check])
fi
AC_SUBST(CPP)dnl
+AC_LANG_POP()dnl
])# AC_PROG_CPP
@@ -1005,8 +1006,8 @@ AC_DEFUN([AC_LANG_PREPROC(C++)],
# between the AC_LANG_COMPILER_REQUIRE family and that of AC_PROG_CXX.
AC_DEFUN([AC_PROG_CXXCPP],
[AC_REQUIRE([AC_PROG_CXX])dnl
+AC_LANG_PUSH(C++)dnl
AC_MSG_CHECKING([how to run the C++ preprocessor])
-AC_LANG_ASSERT(C++)dnl
if test -z "$CXXCPP"; then
AC_CACHE_VAL(ac_cv_prog_CXXCPP,
[dnl
@@ -1030,6 +1031,7 @@ AC_DEFUN([AC_PROG_CXXCPP],
AC_MSG_ERROR([C++ preprocessor "$CXXCPP" fails sanity check])
fi
AC_SUBST(CXXCPP)dnl
+AC_LANG_POP()dnl
])# AC_PROG_CXXCPP
@@ -1059,7 +1061,7 @@ AC_DEFUN([AC_LANG_COMPILER(C++)],
# xlC_r AIX C Set++ (with support for reentrant code)
# xlC AIX C Set++
AC_DEFUN([AC_PROG_CXX],
-[AC_LANG_PUSH(C++)
+[AC_LANG_PUSH(C++)dnl
AC_ARG_VAR([CXX], [C++ compiler command])
AC_ARG_VAR([CXXFLAGS], [C++ compiler flags])
AC_CHECK_TOOLS(CXX,
@@ -1154,7 +1156,7 @@ AC_DEFUN([AC_LANG_COMPILER(Fortran 77)],
# pgf77 is the Portland Group f77 compiler.
# lf95 is the Lahey-Fujitsu compiler.
AC_DEFUN([AC_PROG_F77],
-[AC_LANG_PUSH(Fortran 77)
+[AC_LANG_PUSH(Fortran 77)dnl
AC_ARG_VAR([F77], [Fortran 77 compiler command])
AC_ARG_VAR([FFLAGS], [Fortran 77 compiler flags])
AC_CHECK_TOOLS(F77,
@@ -1594,7 +1596,7 @@ AC_DEFUN([AC_C_PROTOTYPES],
# space-separated items.
AC_DEFUN([_AC_PROG_F77_V_OUTPUT],
[AC_REQUIRE([AC_PROG_F77])dnl
-AC_LANG_PUSH(Fortran 77)
+AC_LANG_PUSH(Fortran 77)dnl
AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
@@ -1788,7 +1790,7 @@ AC_DEFUN([_AC_F77_NAME_MANGLING],
[AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl
AC_CACHE_CHECK([for Fortran 77 name-mangling scheme],
ac_cv_f77_mangling,
-[AC_LANG_PUSH(Fortran 77)
+[AC_LANG_PUSH(Fortran 77)dnl
AC_COMPILE_IFELSE(
[ subroutine foobar()
return
@@ -1798,7 +1800,7 @@ AC_DEFUN([_AC_F77_NAME_MANGLING],
end],
[mv conftest.$ac_objext cf77_test.$ac_objext
- AC_LANG_PUSH(C)
+ AC_LANG_PUSH(C)dnl
ac_save_LIBS=$LIBS
LIBS="cf77_test.$ac_objext $FLIBS $LIBS"
- 84-ac-prog-cxxcpp.patch,
Akim Demaille <=