1 dnl Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(bison, 1.28a)
5 AM_CONFIG_HEADER(config.h:config.hin)
6 AC_DEFINE_UNQUOTED(VERSION_STRING, "GNU Bison version ${VERSION}",
9 ALL_LINGUAS="de es et fr ja nl ru"
11 dnl Checks for programs.
19 AC_ARG_ENABLE(gcc-warnings,
20 [ --enable-gcc-warnings turn on lots of GCC warnings (not recommended)],
21 [case "${enableval}" in
23 *) AC_MSG_ERROR([bad value ${enableval} for gcc-warnings option]) ;;
28 if test "${enableval}" = yes; then
31 BISON_WARNING(-Wbad-function-cast)
32 BISON_WARNING(-Wcast-align)
33 BISON_WARNING(-Wcast-qual)
34 BISON_WARNING(-Wmissing-declarations)
35 BISON_WARNING(-Wmissing-prototypes)
36 BISON_WARNING(-Wnested-externs)
37 BISON_WARNING(-Wno-char-subscripts)
38 BISON_WARNING(-Wstrict-prototypes)
39 BISON_WARNING(-Wwrite-strings)
42 dnl Checks for libraries.
44 dnl Checks for header files.
46 AC_CHECK_HEADERS(ctype.h locale.h memory.h stdlib.h string.h unistd.h)
48 dnl Checks for typedefs.
50 dnl Checks for structures.
52 dnl Checks for compiler characteristics.
56 dnl Checks for library functions.
58 AC_CHECK_FUNCS(mkstemp setlocale)
59 BISON_NEED_DECLARATIONS(calloc realloc)
64 # This is necessary so that .o files in LIBOBJS are also built via
65 # the ANSI2KNR-filtering rules.
66 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
70 intl/Makefile po/Makefile.in
71 lib/Makefile src/Makefile doc/Makefile m4/Makefile])