]> granicus.if.org Git - flex/commitdiff
Replaced obsolete macros in configure.in.
authorJohn Millaway <john43@users.sourceforge.net>
Tue, 9 Jul 2002 18:11:50 +0000 (18:11 +0000)
committerJohn Millaway <john43@users.sourceforge.net>
Tue, 9 Jul 2002 18:11:50 +0000 (18:11 +0000)
Modified create-test to handle the above changes in configure.in.
Added support for <stdbool.h>.

configure.in
flexdef.h
tests/create-test

index 467024da4867008f64ae0975f172ce135d2b34a7..1daa5266e87a67044e8dc296342b4e3515f7604f 100644 (file)
@@ -31,18 +31,18 @@ AM_CONFIG_HEADER(config.h:conf.in)
 AC_PROG_YACC
 AC_CHECK_PROG(BISON, bison, bison)
 AM_PROG_LEX
-AC_LN_S
+AC_PROG_LN_S
 AC_PROG_CC
 
 AC_PROG_RANLIB
 AC_PATH_PROG(HELP2MAN, help2man, $srcdir/missing)
 
-AC_CONST
+AC_C_CONST
 AC_TYPE_SIZE_T
 AC_HEADER_STDC
-AC_HAVE_HEADERS(string.h malloc.h sys/types.h unistd.h)
+AC_CHECK_HEADERS(string.h malloc.h sys/types.h unistd.h stdbool.h)
 
-AC_OUTPUT(
+AC_CONFIG_FILES(
 Makefile
 examples/Makefile
 examples/fastwc/Makefile
@@ -75,4 +75,6 @@ tests/test-lineno-nr/Makefile
 tests/test-lineno-r/Makefile
 tests/test-debug-r/Makefile
 tests/test-debug-nr/Makefile
+dnl --new-test-here-- This line is processed by tests/create-test.
 )
+AC_OUTPUT
index 93f7e1013b7fcf74ca62f29e4b5ffc2a76e177cb..9fc642b6587da8ee6be3114767dc3936392e1d0d 100644 (file)
--- a/flexdef.h
+++ b/flexdef.h
 #define isascii(c) ((c) <= 0177)
 #endif
 
-
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#else
+#define bool int
 #define true 1
 #define false 0
+#endif
+
 #define unspecified -1
 
 
index de780ef9bb962a744d85e1906639066b5793ef7e..44c339b0d46bbd54faea0f096c1f00570a65a2f8 100755 (executable)
@@ -25,7 +25,7 @@ done
 echo "$1" >> "$1"/.cvsignore
 
 # Modify top-level configure.in
-sed '$i\
+sed '/--new-test-here--/i\
 tests/'"$1"'/Makefile' < ../configure.in > configure.in.tmp
 
 mv configure.in.tmp ../configure.in