m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/configure.ac,v [branch-1_4]


From: Eric Blake
Subject: Changes to m4/configure.ac,v [branch-1_4]
Date: Thu, 29 Jun 2006 13:41:50 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      06/06/29 13:41:49

Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.36.2.17
retrieving revision 1.36.2.18
diff -u -b -r1.36.2.17 -r1.36.2.18
--- configure.ac        24 Jun 2006 22:53:35 -0000      1.36.2.17
+++ configure.ac        29 Jun 2006 13:41:49 -0000      1.36.2.18
@@ -29,6 +29,8 @@
 AC_CONFIG_SRCDIR([src/m4.h])
 AC_CONFIG_HEADERS([config.h:config-h.in])
 
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
 AC_PROG_CC
 M4_EARLY
 
@@ -50,14 +52,16 @@
 
 M4_INIT
 
-AC_MSG_CHECKING([ecvt declaration])
-AC_EGREP_HEADER([ecvt], [stdlib.h],
-  [AC_MSG_RESULT([yes])
+AC_CACHE_CHECK([ecvt declaration], [M4_cv_have_efgcvt],
+[AC_EGREP_HEADER([ecvt], [stdlib.h],
+  [M4_cv_have_efgcvt=yes], [M4_cv_have_efgcvt=no])])
+if test $M4_cv_have_efgcvt = yes ; then
    AC_DEFINE([HAVE_EFGCVT], [2],
      [Define to 1 if you have ecvt(3), fcvt(3) and gcvt(3).  Define to 2 if
 they are declared in stdlib.h])
-  ],
-  [AC_MSG_RESULT([no]); AC_CHECK_FUNCS([ecvt])])
+else
+  AC_CHECK_FUNCS([ecvt])
+fi
 
 
 # Code from Jim Avera <address@hidden>.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]