wins: fix null pointer crash in nss_wins module.
[Samba.git] / source / lib / replace / configure.ac
blob02dc08bf72c269e58ed15c6891347fbc1dd716aa
1 AC_PREREQ(2.50)
2 AC_INIT(replace.c)
3 AC_CONFIG_SRCDIR([replace.c])
4 AC_CONFIG_HEADER(config.h)
6 CFLAGS="$CFLAGS -I$srcdir"
8 AC_LIBREPLACE_ALL_CHECKS
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"
24 LIBS="${LIBREPLACE_NETWORK_LIBS}"
25 AC_SUBST(LIBS)
27 AC_SUBST(LDFLAGS)
29 AC_OUTPUT(Makefile)