]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-09-23 Akim Demaille <akim@epita.fr>
authorAkim Demaille <akim@epita.fr>
Thu, 23 Sep 1999 09:59:57 +0000 (09:59 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 23 Sep 1999 09:59:57 +0000 (09:59 +0000)
* NEWS: Document AC_ARG_VAR.

* acspecific.m4 (AC_C_LONG_DOUBLE): Avoid a needed execution by
using a pure compilation test.  Excellent for cross compilation.
From Kaveh R. Ghazi.

ChangeLog
NEWS
acspecific.m4
lib/autoconf/specific.m4

index 1b1135daa56c34b719d66664fa2a41883ae0bfd4..55a1190d21e2460cc688d2ee97e6a8428bbbba90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1999-09-23  Akim Demaille  <akim@epita.fr>
+
+       * NEWS: Document AC_ARG_VAR.
+
+       * acspecific.m4 (AC_C_LONG_DOUBLE): Avoid a needed execution by
+       using a pure compilation test.  Excellent for cross compilation.
+       From Kaveh R. Ghazi.
+
 1999-09-22  Akim Demaille  <akim@epita.fr>
 
        * install.texi: Give emore details on envvar handling.
diff --git a/NEWS b/NEWS
index 50c81f3b786a557cd4824556c72bedaaa3863c9e..4193bf15a66a59cc6dc732367d7aceac4d3e55e6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ Major changes in release 2.15:
   - AC_HELP_STRING
     To format an Autoconf macro's help string so that it looks pretty
     when the user executes `configure --help'.
+  - AC_ARG_VAR
+    Document and ask for the registration of an envvar.
 * Environment variables are kept when reconfiguring.
   The previous scheme to set envvar before running configure was
     ENV=VAL ./configure
@@ -18,7 +20,8 @@ Major changes in release 2.15:
   it was run, therefore --recheck was run in an inconsistent environment.
   Now, one runs
     ./configure ENV=VAR
-  and the --recheck works correctly.
+  and the --recheck works correctly.  Variable declared with AC_ARG_VAR
+  are also preserved.
 * Support for automatically determining a Fortran 77 compilers
   name-mangling scheme.  New CPP macros F77_FUNC and F77_FUNC_ are
   provided to wrap C/C++ identifiers, thus making it easier and more
index 8045651a27565a69c172aaa4a9e816b410ae4bd7..27f4cb28ebd0103aa626b94cdb3f6d9b572a55ab 100644 (file)
@@ -1978,11 +1978,11 @@ AC_DEFUN(AC_C_LONG_DOUBLE,
 [if test "$GCC" = yes; then
   ac_cv_c_long_double=yes
 else
-AC_TRY_RUN([int main() {
-/* The Stardent Vistra knows sizeof(long double), but does not support it.  */
+AC_TRY_COMPILE(,
+[/* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 long double foo = 0.0;
 /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
-exit(sizeof(long double) < sizeof(double)); }],
+switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;],
 ac_cv_c_long_double=yes, ac_cv_c_long_double=no)
 fi])
 if test $ac_cv_c_long_double = yes; then
index 8045651a27565a69c172aaa4a9e816b410ae4bd7..27f4cb28ebd0103aa626b94cdb3f6d9b572a55ab 100644 (file)
@@ -1978,11 +1978,11 @@ AC_DEFUN(AC_C_LONG_DOUBLE,
 [if test "$GCC" = yes; then
   ac_cv_c_long_double=yes
 else
-AC_TRY_RUN([int main() {
-/* The Stardent Vistra knows sizeof(long double), but does not support it.  */
+AC_TRY_COMPILE(,
+[/* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 long double foo = 0.0;
 /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
-exit(sizeof(long double) < sizeof(double)); }],
+switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;],
 ac_cv_c_long_double=yes, ac_cv_c_long_double=no)
 fi])
 if test $ac_cv_c_long_double = yes; then