diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-07-08 20:47:12 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-07-08 20:47:12 +0000 |
commit | ef504c5311dfd441dcb73be64e90f6e7a530b61c (patch) | |
tree | 50b53a484974c03004222824942e1c9401064dbb | |
parent | 3ff8db61b901a4d6236a0e4fa40fe5f1b7afcf78 (diff) |
add -D_XOPEN_SOURCE for linux builds; others might need it too
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a2787b0..dbea88c 100644 --- a/configure.ac +++ b/configure.ac @@ -158,7 +158,16 @@ if test "x$GCC" = "xyes"; then CFLAGS="$GCC_WARNINGS $CFLAGS" fi -CFLAGS="$CFLAGS $XFONT_CFLAGS" +case $host_os in + linux*) + OS_CFLAGS="-D_XOPEN_SOURCE" + ;; + *) + OS_CFLAGS= + ;; +esac + +CFLAGS="$CFLAGS $XFONT_CFLAGS $OS_CFLAGS" LIBS="$LIBS $XFONT_LIBS" AC_OUTPUT([Makefile |