]> git.saurik.com Git - bison.git/blame_incremental - configure.in
* src/output.c (prepare): Delete insertion of previous muscles,
[bison.git] / configure.in
... / ...
CommitLineData
1# Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.52)
3AC_INIT(bison, 1.28c, bug-bison@gnu.org)
4AC_CONFIG_AUX_DIR(config)
5AM_INIT_AUTOMAKE(bison, 1.28c)
6AM_CONFIG_HEADER(config.h:config.hin)
7
8# Initialize the test suite.
9AT_CONFIG(../src)
10
11# Checks for programs.
12AC_PROG_CC
13AC_MINIX
14AC_ISC_POSIX
15AM_PROG_CC_STDC
16AC_PROG_RANLIB
17# GNU M4 is needed to build the testsuite.
18BISON_AC_PROG_GNU_M4
19if test "$ac_cv_prog_gnu_m4" != yes; then
20 missing_dir=`cd $ac_aux_dir && pwd`
21 M4="$missing_dir/missing m4"
22fi
23
24AC_ARG_ENABLE(gcc-warnings,
25[ --enable-gcc-warnings turn on lots of GCC warnings (not recommended)],
26[case "${enableval}" in
27 yes|no) ;;
28 *) AC_MSG_ERROR([bad value ${enableval} for gcc-warnings option]) ;;
29 esac],
30 [enableval=no])
31if test "${enableval}" = yes; then
32 BISON_WARNING(-Wall)
33 BISON_WARNING(-W)
34 BISON_WARNING(-Wbad-function-cast)
35 BISON_WARNING(-Wcast-align)
36 BISON_WARNING(-Wcast-qual)
37 BISON_WARNING(-Wformat)
38 BISON_WARNING(-Wmissing-declarations)
39 BISON_WARNING(-Wmissing-prototypes)
40 BISON_WARNING(-Wnested-externs)
41 BISON_WARNING(-Wshadow)
42 BISON_WARNING(-Wstrict-prototypes)
43 BISON_WARNING(-Wwrite-strings)
44 CFLAGS="$CFLAGS $WARNING_CFLAGS"
45fi
46
47# Checks for libraries.
48AC_DEFINE([_GNU_SOURCE],1,[Define to 1 for GNU C library extensions.])
49
50# Checks for header files.
51AC_HEADER_STDC
52AC_CHECK_HEADERS(ctype.h locale.h memory.h stdlib.h string.h unistd.h)
53
54# Checks for typedefs.
55
56# Checks for structures.
57
58# Checks for compiler characteristics.
59AC_C_CONST
60AC_C_INLINE
61AM_C_PROTOTYPES
62
63# Checks for library functions.
64AC_FUNC_ALLOCA
65AC_CHECK_FUNCS(mkstemp setlocale)
66AC_CHECK_DECLS([stpcpy, strndup, strnlen, memchr])
67AC_REPLACE_FUNCS(stpcpy strndup strnlen strspn memchr)
68jm_FUNC_MALLOC
69jm_FUNC_REALLOC
70jm_PREREQ_QUOTEARG
71jm_PREREQ_ERROR
72
73ALL_LINGUAS="de es et fr ja nl ru"
74AM_GNU_GETTEXT
75
76# This is necessary so that .o files in LIBOBJS are also built via
77# the ANSI2KNR-filtering rules.
78LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
79AC_SUBST(LIBOBJS)
80
81AC_OUTPUT([Makefile
82 config/Makefile
83 intl/Makefile po/Makefile.in
84 lib/Makefile src/Makefile doc/Makefile
85 m4/Makefile
86 tests/Makefile tests/atconfig])