bug-bison
[Top][All Lists]
Advanced

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

[PATCH] Replace a few AM_ macros with AC_ equivalents


From: Art Haas
Subject: [PATCH] Replace a few AM_ macros with AC_ equivalents
Date: Sat, 19 Oct 2002 19:09:08 -0500
User-agent: Mutt/1.4i

Hi.

Here's a small patch that switches two AM_* macros to their AC_*
counterparts ...

AM_PROG_LEX ==> AC_PROG_LEX
AM_C_PROTOTYPES ==> AC_C_PROTOTYPES

I also added the AC_HELP_STRING macro as it seemed worthwhile.

Art Haas

2002-10-19  Art Haas  <address@hidden>

        * configure.ac: Replace AM_PROG_LEX with AC_PROG_LEX,
        AM_C_PROTOTYPES with AC_C_PROTOTYPES, and format the
        --enable-gcc-warnings flag with AC_HELP_STRING.


Index: configure.ac
===================================================================
RCS file: /cvsroot/bison/bison/configure.ac,v
retrieving revision 1.14
diff -u -r1.14 configure.ac
--- configure.ac        16 Oct 2002 06:32:07 -0000      1.14
+++ configure.ac        19 Oct 2002 23:48:15 -0000
@@ -33,8 +33,9 @@
 AC_GNU_SOURCE
 AC_MINIX
 AM_PROG_CC_STDC
-AC_ARG_ENABLE(gcc-warnings,
-[  --enable-gcc-warnings   turn on lots of GCC warnings (not recommended)],
+AC_ARG_ENABLE([gcc-warnings],
+             AC_HELP_STRING([--enable-gcc-warnings],
+                            [turn on lots of GCC warnings (not recommended)]),
 [case "${enableval}" in
    yes|no) ;;
    *)      AC_MSG_ERROR([bad value ${enableval} for gcc-warnings option]) ;;
@@ -59,7 +60,7 @@
 fi
 
 # Checks for programs.
-AM_PROG_LEX
+AC_PROG_LEX
 AC_PROG_YACC
 AC_PROG_RANLIB
 BISON_PROG_GNU_M4
@@ -75,7 +76,7 @@
 # Checks for compiler characteristics.
 AC_C_CONST
 AC_C_INLINE
-AM_C_PROTOTYPES
+AC_C_PROTOTYPES
 
 # Checks for library functions.
 AC_FUNC_ALLOCA
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759




reply via email to

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