[Gc]: Dependency tracking for configuration macros

Petter Urkedal urkedal at nbi.dk
Fri Sep 25 00:14:08 PDT 2009


On 2009-09-25, Ivan Maidanski wrote:
> Hi!
> 
> Hans Boehm <Hans.Boehm at hp.com> wrote:
> > This looks fine to me.  I suspect Petter knows appreciably more about
> > autotools than I do.
> > 
> > I did not test it.  I just looked at the patch.
> > 
> > Hans
> 
> I checked in this one. Needs testing (since configure.ac has been changed recently).

Thanks!  Some minor updates:

* configure.ac: Add documentation for GC_THREADS and
EMPTY_GETENV_RESULTS.
* libatomic_ops-1.2/configure.ac: Request AM_PROG_CC_C_O due to compiler
flags on test case.

I'm omitting generated files, so this works after "autoreconf -vif".
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 5985c3a..d55f47e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,6 +87,7 @@ AH_TEMPLATE([GC_LINUX_THREADS],     [Define to support pthreads on Linux.])
 AH_TEMPLATE([GC_NETBSD_THREADS],    [Define to support NetBSD pthreads.])
 AH_TEMPLATE([GC_OSF1_THREADS],      [Define to support Tru64 pthreads.])
 AH_TEMPLATE([GC_SOLARIS_THREADS],   [Define to support Solaris pthreads.])
+AH_TEMPLATE([GC_THREADS],	    [Define to support threads.])
 AH_TEMPLATE([GC_WIN32_THREADS],     [Define to support win32 threads.])
 
 dnl System header feature requests.
@@ -222,8 +223,8 @@ case "$THREADS" in
       AC_DEFINE(THREAD_LOCAL_ALLOC)
     fi
     win32_threads=true
-    dnl Wine getenv may not return NULL for missing entry
-    AC_DEFINE(EMPTY_GETENV_RESULTS)
+    AC_DEFINE([EMPTY_GETENV_RESULTS], [1],
+	      [Wine getenv may not return NULL for missing entry])
     ;;
  dgux386)
     THREADS=dgux386
diff --git a/libatomic_ops-1.2/configure.ac b/libatomic_ops-1.2/configure.ac
index 3d0efe7..3eb67b4 100644
--- a/libatomic_ops-1.2/configure.ac
+++ b/libatomic_ops-1.2/configure.ac
@@ -8,7 +8,7 @@ AC_PROG_RANLIB
 AM_CONFIG_HEADER(src/config.h)
 
 # Checks for programs.
-AC_PROG_CC
+AM_PROG_CC_C_O
 AM_PROG_AS
 
 # Checks for functions.


More information about the Gc mailing list