[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: AC_REQUIRE vs AC_LANG
From: |
Akim Demaille |
Subject: |
FYI: AC_REQUIRE vs AC_LANG |
Date: |
23 Jan 2001 13:53:52 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* configure.in: If this is a beta, dump the core of BUGS.
* tests/base.at (AC_REQUIRE & AC_LANG): New test, currently failing.
Index: BUGS
===================================================================
RCS file: /cvs/autoconf/BUGS,v
retrieving revision 1.4
diff -u -u -r1.4 BUGS
--- BUGS 2001/01/23 09:49:33 1.4
+++ BUGS 2001/01/23 12:52:48
@@ -1,6 +1,6 @@
-*- outline -*-
-This file lists the bugs you must be aware ofBe sure to check this
+This file lists the bugs you must be aware of. Be sure to check this
file before using Autoconf, and especially CVS versions of Autoconf.
Many other bugs are registered on the GNATS server:
@@ -12,9 +12,9 @@
* Status
- /*---------------------------------.
- | Don't use at all, just test it. |
- `---------------------------------*/
+ /*-----------------------------------------------------.
+ | Don't use this version in production, just test it. |
+ `-----------------------------------------------------*/
* Serious bugs
Index: configure
===================================================================
RCS file: /cvs/autoconf/configure,v
retrieving revision 1.105
diff -u -u -r1.105 configure
--- configure 2001/01/23 09:49:34 1.105
+++ configure 2001/01/23 12:53:07
@@ -1999,3 +1999,7 @@
test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; }
+# Report the state of this version of Autoconf if this is a beta.
+case 2.49c in
+ *[a-z]*) sed -n '/^\* Status/,$p' BUGS;;
+esac
Index: configure.in
===================================================================
RCS file: /cvs/autoconf/configure.in,v
retrieving revision 1.37
diff -u -u -r1.37 configure.in
--- configure.in 2001/01/18 09:30:10 1.37
+++ configure.in 2001/01/23 12:53:07
@@ -45,3 +45,8 @@
AC_OUTPUT(Makefile m4/Makefile man/Makefile doc/Makefile
tests/Makefile tests/atconfig)
+
+# Report the state of this version of Autoconf if this is a beta.
+case AC_PACKAGE_VERSION in
+ *[[a-z]]*) sed -n '/^\* Status/,$p' BUGS;;
+esac
Index: tests/base.at
===================================================================
RCS file: /cvs/autoconf/tests/base.at,v
retrieving revision 1.11
diff -u -u -r1.11 base.at
--- tests/base.at 2001/01/17 15:26:43 1.11
+++ tests/base.at 2001/01/23 12:53:08
@@ -158,3 +158,39 @@
AT_CHECK_CONFIGURE
AT_CLEANUP
+
+
+## ---------------------- ##
+## AC_REQUIRE & AC_LANG. ##
+## ---------------------- ##
+
+AT_SETUP([AC_REQUIRE & AC_LANG])
+
+AT_DATA([configure.ac],
+[[AC_DEFUN([AC_F77_1],
+[AC_LANG_PUSH([Fortran 77])
+if test $ac_ext != f; then
+ AC_MSG_ERROR([F77_1: current shell language is $ac_ext, expected Fortran])
+fi
+AC_LANG_POP
+])
+
+
+AC_DEFUN([AC_F77_2],
+[AC_LANG_PUSH([Fortran 77])
+AC_REQUIRE([AC_F77_1])
+if test $ac_ext != f; then
+ AC_MSG_ERROR([F77_2: current shell language is $ac_ext, expected Fortran])
+fi
+AC_LANG_POP
+])
+
+AC_INIT
+AC_F77_2
+AS_EXIT(0)
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE
+
+AT_CLEANUP
- FYI: AC_REQUIRE vs AC_LANG,
Akim Demaille <=