Author: biurrun Date: Sun Aug 1 23:53:59 2010 New Revision: 2334 Log: Convert repeated system checks into a case pattern. Modified: trunk/configure.ac Modified: trunk/configure.ac ============================================================================== --- trunk/configure.ac Sun Aug 1 23:27:38 2010 (r2333) +++ trunk/configure.ac Sun Aug 1 23:53:59 2010 (r2334) @@ -85,13 +85,14 @@ # Set the preprocessor flags for the entire project AC_SUBST(AM_CPPFLAGS, "-D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600") -if test "$(uname -s)" = "Darwin"; then +case "$(uname -s)" in + "Darwin") AC_SUBST(AM_CPPFLAGS, "$AM_CPPFLAGS -D_DARWIN_C_SOURCE") -fi - -if test "$(uname -s)" = "FreeBSD"; then + ;; + "FreeBSD") AC_SUBST(AM_CPPFLAGS, "$AM_CPPFLAGS -D__BSD_VISIBLE") -fi + ;; +esac # Set default AM_CFLAGS for the complete project. AC_SUBST(AM_CFLAGS, "-std=c99 -Werror -Wall -Wextra -Winline -Wredundant-decls -Wstrict-prototypes -Wdisabled-optimization -Wpointer-arith -Wundef -Wno-deprecated-declarations -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wshadow") -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa