autoheader warnings



There are a number of modules with a warning like:
------------------------------------------------
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
------------------------------------------------

libgnome, gal, bonobo, bonobo-activation, etc.

To remove such warning:
	1. remove acconfig.h from CVS
	2. use the third argument in AC_DEFINE[_UNQUOTED], add a comment
	   about what is being defined.


For example for libgnome, the configure.in diff is:

Index: configure.in
===================================================================
RCS file: /cvs/gnome/libgnome/configure.in,v
retrieving revision 1.142
diff -u -r1.142 configure.in
--- configure.in	9 Dec 2002 20:01:52 -0000	1.142
+++ configure.in	10 Dec 2002 15:52:41 -0000
@@ -24,7 +24,7 @@
 
 GETTEXT_PACKAGE=libgnome-2.0
 AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext package])
 
 dnl libtool versioning from libgnome
 
@@ -99,8 +99,8 @@
 AUDIOFILE_MODULE="audiofile >= $AUDIOFILE_REQUIRED_VERSION"
 ESOUND_MODULE="esound >= $ESOUND_REQUIRED_VERSION"
 PKG_CHECK_MODULES(SOUND_TEST, $ESOUND_MODULE $AUDIOFILE_MODULE, [
-	AC_DEFINE(HAVE_LIBAUDIOFILE)
-	AC_DEFINE(HAVE_ESD)
+	AC_DEFINE(HAVE_LIBAUDIOFILE, 1, [Compile with audiofile support])
+	AC_DEFINE(HAVE_ESD, 1, [Compile with esd support])
 ],[
 	AUDIOFILE_MODULE=""
 	ESOUND_MODULE=""
@@ -209,23 +209,23 @@
 dnl = Bzip2, for the help converters
 dnl ====================================
 BZ_LIBS=
-AC_CHECK_LIB(bz2, bzread, [AC_DEFINE(HAVE_LIBBZ2)
+AC_CHECK_LIB(bz2, bzread, [AC_DEFINE(HAVE_LIBBZ2, 1, [Compile with libbz2 suppot])
 			  BZ_LIBS="-lbz2"])
 dnl <= Check for bzip2 > 1.0.0
-    AC_CHECK_LIB(bz2, BZ2_bzread, [AC_DEFINE(HAVE_LIBBZ2)
+    AC_CHECK_LIB(bz2, BZ2_bzread, [AC_DEFINE(HAVE_LIBBZ2, 1, [Compile with libbz2 support])
 		      	  BZ_LIBS="-lbz2"
     dnl <= define the wrapper-functions to get the Bzip2 stuff working .. =>	
-	   AC_DEFINE(bzread,BZ2_bzread)
-	   AC_DEFINE(bzopen,BZ2_bzopen)
-	   AC_DEFINE(bzdopen,BZ2_bzdopen)
-	   AC_DEFINE(bzwrite,BZ2_bzwrite)
-	   AC_DEFINE(bzerror,BZ2_bzerror)
-	   AC_DEFINE(bzclose,BZ2_bzclose)
-	   AC_DEFINE(bzflush,BZ2_bzflush)
-	   AC_DEFINE(bzCompress,BZ2_bzCompress)
-	   AC_DEFINE(bzCompressInit,BZ2_bzCompressInit)
-	   AC_DEFINE(bzDecompress,BZ2_bzDecompress)
-	   AC_DEFINE(bzDecompressInit,BZ2_bzDecompressInit)	
+	   AC_DEFINE(bzread,BZ2_bzread, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzopen,BZ2_bzopen, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzdopen,BZ2_bzdopen, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzwrite,BZ2_bzwrite, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzerror,BZ2_bzerror, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzclose,BZ2_bzclose, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzflush,BZ2_bzflush, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzCompress,BZ2_bzCompress, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzCompressInit,BZ2_bzCompressInit, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzDecompress,BZ2_bzDecompress, [Needed to get Bzip2 working])
+	   AC_DEFINE(bzDecompressInit,BZ2_bzDecompressInit, [Needed to get Bzip2 working])	
 	   ])
     dnl =>
 AC_SUBST(BZ_LIBS)
---------- end of diff ------------

regards,
Chema




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]