From: Maurice L. <mj...@ga...> - 2002-12-23 06:46:17
|
Maurice LeBrun writes: > Maurice LeBrun writes: > > Maurice LeBrun writes: > > > Alan W. Irwin writes: > > > > On Sun, 22 Dec 2002, Maurice LeBrun wrote: > > > > > albeit with the following > > > > > messages: > > > > > > > > > > ged$ ./bootstrap.sh > > > > > 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. > > [...] > > > But I *do* know how to make these (harmless warnings) go away, in theory. > > Just need to use that third argument. > > After initially thinking, sure, why not do it their way, my second reaction > is: stop telling me what to do! I'm perfectly happy with the current way we > do it; with our AC_DEFINE's scattered far and wide in the configure script > it's kinda nice having them nicely organized in acconfig.h (was > plConfig.h.in). I dunno, maybe I'll look at the docs, but then again maybe > I'll switch to modified versions of AC_DEFINE* that shut up this irritating > message. Grr... it's in autoheader: | # Preach. | my $config_h_top = find_file ("config.h.top?", | reverse (@prepend_include), @include); | my $config_h_bot = find_file ("config.h.bot?", | reverse (@prepend_include), @include); | my $acconfig_h = find_file ("acconfig.h?", | reverse (@prepend_include), @include); | if ($config_h_top || $config_h_bot || $acconfig_h) ^ here need to add "$IF_I_FEEL_LIKE_BEING_PREACHED_TO &&" | { | my $msg = << "END"; | Using auxiliary files such as \`acconfig.h\', \`config.h.bot\' | and \`config.h.top\', to define templates for \`config.h.in\' | is deprecated and discouraged. | | Using the third argument of \`AC_DEFINE\' and | \`AC_DEFINE_UNQUOTED\' allows to define a template without | \`acconfig.h\': | | AC_DEFINE([NEED_MAIN], 1, | [Define if a function \`main\' is needed.]) | | More sophisticated templates can also be produced, see the | documentation. | END | $msg =~ s/^ /WARNING: /gm; | print STDERR $msg; | } Grr... -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |