From 147630c7c76bd9b947524ef140d21b9e81967c6e Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sun, 6 Dec 2015 17:06:41 +0100 Subject: Tweak use of AC_USE_SYSTEM_EXTENSIONS This is a follow-up tweak to 5740003e06f0c585460501514f3352f5e105c98c It's better to move AC_USE_SYSTEM_EXTENSIONS after `AC_PROG_CC` as this avoids triggering edundant tests --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8738680..2c1b1ab 100644 --- a/configure.ac +++ b/configure.ac @@ -1,16 +1,17 @@ -AC_INIT([Haskell unix package], [2.0], [libraries@haskell.org], [unix]) AC_PREREQ([2.60]) +AC_INIT([Haskell unix package], [2.0], [libraries@haskell.org], [unix]) # Safety check: Ensure that we are in the correct source directory. AC_CONFIG_SRCDIR([include/HsUnix.h]) -AC_USE_SYSTEM_EXTENSIONS - AC_ARG_WITH([cc], [C compiler], [CC=$withval]) AC_PROG_CC() +dnl make extensions visible to allow feature-tests to detect them lateron +AC_USE_SYSTEM_EXTENSIONS + AC_CONFIG_HEADERS([include/HsUnixConfig.h]) # Is this a Unix system? -- cgit v1.2.3