[commit: packages/unix] master: Tweak use of AC_USE_SYSTEM_EXTENSIONS (147630c)
git at git.haskell.org
git at git.haskell.org
Tue Apr 19 21:37:19 UTC 2016
Repository : ssh://git@git.haskell.org/unix
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/147630c7c76bd9b947524ef140d21b9e81967c6e/unix
>---------------------------------------------------------------
commit 147630c7c76bd9b947524ef140d21b9e81967c6e
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sun Dec 6 17:06:41 2015 +0100
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
>---------------------------------------------------------------
147630c7c76bd9b947524ef140d21b9e81967c6e
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 at haskell.org], [unix])
AC_PREREQ([2.60])
+AC_INIT([Haskell unix package], [2.0], [libraries at 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?
More information about the ghc-commits
mailing list