<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39849 >

Oops.  Your AC_GNU_SOURCE macro works and compiles fine but some time
later I notice the cryptic warning

+ running aclocal ...
configure.ac:168: warning: AC_COMPILE_IFELSE was called before AC_GNU_SOURCE
../../lib/autoconf/specific.m4:331: AC_GNU_SOURCE is expanded from...
configure.ac:168: the top level

during autogen.

I'm not sure what this refers to as AC_COMPILE_IFELSE is not called
directly anywhere in there.

However I'm going to commit this patch to move the AC_GNU_SOURCE call up
to the top with the other base platform checks.

-jason

Index: configure.ac
===================================================================
--- configure.ac	(revision 14085)
+++ configure.ac	(working copy)
@@ -8,6 +8,7 @@
 AC_CONFIG_AUX_DIR(bootstrap) # This can't be quoted or automake will fail
 AM_CONFIG_HEADER(config.h)
 AC_CANONICAL_HOST
+AC_GNU_SOURCE
 
 PACKAGE=freeciv
 
@@ -164,9 +165,6 @@
 	WITH_EFENCE=1
 )
 
-dnl Check for GNU libc
-AC_GNU_SOURCE
-
 dnl Checks for programs.
 AC_PROG_AWK
 AC_PROG_CC
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to