From dc3634dc9410cfdd4c3e4a98e807b0f03d61388b Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 1 Aug 2006 11:31:23 +1000 Subject: Add posix macros in configure.ac, not in Makefile, so that they will be honored by the configure tests darcs-hash:20060801013123-ac50b-0c561ad5afd6e71230e29a25d467ed63c47b9f17.gz --- Makefile.in | 2 +- configure.ac | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index a2a4b20c..c7441e9a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -49,7 +49,7 @@ prefix = @prefix@ optbindirs = @optbindirs@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ -MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\" -D_POSIX_C_SOURCE=200112L +MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\" CFLAGS=@CFLAGS@ $(MACROS) CPPFLAGS=@CPPFLAGS@ LDFLAGS= @LIBS@ @LDFLAGS@ diff --git a/configure.ac b/configure.ac index 0fdc27d3..2e8d4cce 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,8 @@ for i in /usr/pkg /sw /opt /opt/local; do done +CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L" + AC_SUBST( optbindirs, $optbindirs ) # Tell autoconf to create config.h header -- cgit v1.2.3