libreplace: fix standalone build on some systems.
[gd/samba/.git] / source / lib / replace / configure.ac
1 AC_PREREQ(2.50)
2 AC_INIT(replace.c)
3 AC_CONFIG_SRCDIR([replace.c])
4 AC_CONFIG_HEADER(config.h)
5
6 CFLAGS="$CFLAGS -I."
7
8 AC_LIBREPLACE_ALL_CHECKS
9
10 if test "$ac_cv_prog_gcc" = yes; then
11    CFLAGS="$CFLAGS -Wall"
12    CFLAGS="$CFLAGS -W"
13    CFLAGS="$CFLAGS -Wshadow"
14    CFLAGS="$CFLAGS -Wstrict-prototypes"
15    CFLAGS="$CFLAGS -Wpointer-arith"
16    CFLAGS="$CFLAGS -Wcast-qual"
17    CFLAGS="$CFLAGS -Wcast-align"
18    CFLAGS="$CFLAGS -Wwrite-strings"
19    CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
20    CFLAGS="$CFLAGS -Wformat=2"
21    CFLAGS="$CFLAGS -Wno-format-y2k"
22 fi
23
24 AC_SUBST(LDFLAGS)
25
26 AC_OUTPUT(Makefile)