[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_REQUIRE_CPP should fail with Fortran
From: |
Pavel Roskin |
Subject: |
AC_REQUIRE_CPP should fail with Fortran |
Date: |
Fri, 27 Oct 2000 16:17:19 -0400 (EDT) |
Hello!
The following configure.in tests C++ for no reason:
AC_INIT
AC_LANG(Fortran 77)
AC_CHECK_HEADER(unistd.h)
AC_OUTPUT
ChangeLog:
* aclang.m4 (AC_REQUIRE_CPP): Don't default to C++ - call AC_FATAL
for unsupported languages.
______________________
Index: aclang.m4
--- aclang.m4 Tue Oct 24 13:49:58 2000
+++ aclang.m4 Fri Oct 27 16:13:30 2000
@@ -512,7 +512,8 @@
# current language.
AC_DEFUN([AC_REQUIRE_CPP],
[AC_LANG_CASE(C, [AC_REQUIRE([AC_PROG_CPP])],
- [AC_REQUIRE([AC_PROG_CXXCPP])])])
+ C++, [AC_REQUIRE([AC_PROG_CXXCPP])],
+ [AC_FATAL([No preprocessor defined for ]_AC_LANG)])])
# _AC_LANG_COMPILER_WORKS
______________________
Regards,
Pavel Roskin
- AC_REQUIRE_CPP should fail with Fortran,
Pavel Roskin <=