diff options
author | nalin <nalin> | 2002-11-19 00:05:07 +0000 |
---|---|---|
committer | nalin <nalin> | 2002-11-19 00:05:07 +0000 |
commit | c4ec4f73fed10624c2cb4a9d7f83ba1a5da89128 (patch) | |
tree | 18b5bf41268c3c26791657f1d413e32a06fc5def /configure.ac | |
parent | 8a360c32bd3350b6be9df7cc8cbdd2da3ab92432 (diff) | |
download | nss_directories-c4ec4f73fed10624c2cb4a9d7f83ba1a5da89128.tar.gz nss_directories-c4ec4f73fed10624c2cb4a9d7f83ba1a5da89128.tar.xz nss_directories-c4ec4f73fed10624c2cb4a9d7f83ba1a5da89128.zip |
- Use more compiler warnings if we're using gcc.
- Declare external parsers so that everything agrees on their signatures.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 383940d..42ddcfa 100644 --- a/configure.ac +++ b/configure.ac @@ -21,8 +21,26 @@ AC_SUBST(moduledir) nss_files=`ls -1 "$moduledir"/libnss_files-*.so | head -1` GLIBC_VERSION=`basename "$nss_files" .so | cut -f2 -d-` +if test -z "$GLIBC_VERSION" +then + GLIBC_VERSION=$PACKAGE_VERSION +fi AC_SUBST(GLIBC_VERSION) +if test x$GCC = xyes ; then + CFLAGS="${CFLAGS} -std=c99" + CFLAGS="${CFLAGS} -D_GNU_SOURCE" + CFLAGS="${CFLAGS} -Wall" + CFLAGS="${CFLAGS} -Waggregate-return" + CFLAGS="${CFLAGS} -Wcast-align" + CFLAGS="${CFLAGS} -Wimplicit" + CFLAGS="${CFLAGS} -Wmissing-declarations" + CFLAGS="${CFLAGS} -Wmissing-prototypes" + CFLAGS="${CFLAGS} -Wpointer-arith" + CFLAGS="${CFLAGS} -Wstrict-prototypes" + CFLAGS="${CFLAGS} -Wuninitialized" +fi + AM_CONFIG_HEADER(config.h) AC_OUTPUT(Makefile src/Makefile) |