From b75fc3aa333298e40c317a335f0b9c722a6b98e6 Mon Sep 17 00:00:00 2001 From: moritz Date: Wed, 8 Aug 2007 13:46:17 +0000 Subject: [PATCH] A few tweaks: * Get ISO C99 from the compiler, if possible. * Check for ssize_t for --enable-debug portability. * Add AC_C_VOLATILE check, because we use it. git-svn-id: https://svn.xiph.org/trunk/ezstream@13462 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- configure.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 5bba81e..63069e7 100644 --- a/configure.in +++ b/configure.in @@ -8,6 +8,7 @@ AC_CONFIG_HEADERS(src/config.h) AC_CONFIG_LIBOBJ_DIR(src) AM_MAINTAINER_MODE AC_USE_SYSTEM_EXTENSIONS +AC_PROG_CC_STDC dnl SETUP @@ -37,7 +38,7 @@ if test -z "$GCC"; then ;; esac else - XIPH_CPPFLAGS="-Wall -Wwrite-strings -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" + XIPH_CPPFLAGS="-fstrict-aliasing -Wall -W -Wno-unused-parameter -Wwrite-strings -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" fi ez_enable_debug=no @@ -73,7 +74,16 @@ else fi AC_C_CONST +AC_C_VOLATILE AC_TYPE_SIZE_T +AC_CHECK_TYPES(ssize_t, , + [AC_DEFINE_UNQUOTED(ssize_t, long, [Define to `long' if does not define.])], +[ +#ifdef HAVE_SYS_TYPES_H +# include +#endif +]) + dnl USEFUL HEADERS