chiark / gitweb /
autogen.sh: moce CFLAGS from to configure.ac; print common ./configure options
[elogind.git] / configure.ac
index abfcb361dd18ae865b99e7ddf2600900720a62ea..b8595664b62039489bcd2d4093d38c5909ac223f 100644 (file)
@@ -201,6 +201,14 @@ AC_ARG_ENABLE([edd],
        [], [enable_edd=no])
 AM_CONDITIONAL([ENABLE_EDD], [test "x$enable_edd" = "xyes"])
 
+my_CFLAGS="-Wall \
+-Wmissing-declarations -Wmissing-prototypes \
+-Wnested-externs -Wpointer-arith \
+-Wpointer-arith -Wsign-compare -Wchar-subscripts \
+-Wstrict-prototypes -Wshadow \
+-Wformat-security -Wtype-limits"
+AC_SUBST([my_CFLAGS])
+
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
        Makefile