126 |
## -------------- ## |
## -------------- ## |
127 |
|
|
128 |
mktmpdir ('ah'); |
mktmpdir ('ah'); |
129 |
|
switch_warning 'obsolete'; |
130 |
parse_args; |
parse_args; |
131 |
|
|
132 |
# Preach. |
# Preach. |
147 |
\`AC_DEFINE_UNQUOTED\' allows to define a template without |
\`AC_DEFINE_UNQUOTED\' allows to define a template without |
148 |
\`acconfig.h\': |
\`acconfig.h\': |
149 |
|
|
150 |
AC_DEFINE([NEED_MAIN], 1, |
AC_DEFINE([NEED_FUNC_MAIN], 1, |
151 |
[Define if a function \`main\' is needed.]) |
[Define if a function \`main\' is needed.]) |
152 |
|
|
153 |
More sophisticated templates can also be produced, see the |
More sophisticated templates can also be produced, see the |
154 |
documentation. |
documentation. |
155 |
END |
END |
156 |
$msg =~ s/^ /WARNING: /gm; |
$msg =~ s/^ /WARNING: /gm; |
157 |
print STDERR $msg; |
msg 'obsolete', $msg; |
158 |
} |
} |
159 |
|
|
160 |
# Set up autoconf. |
# Set up autoconf. |
266 |
} |
} |
267 |
foreach (sort keys %symbol) |
foreach (sort keys %symbol) |
268 |
{ |
{ |
269 |
print STDERR "$me: missing template: $_\n"; |
msg 'syntax', "warning: missing template: $_"; |
270 |
if ($suggest_ac_define) |
if ($suggest_ac_define) |
271 |
{ |
{ |
272 |
print STDERR "Use AC_DEFINE([$_], [], [Description])\n"; |
msg 'syntax', "Use AC_DEFINE([$_], [], [Description])"; |
273 |
$suggest_ac_define = 0; |
$suggest_ac_define = 0; |
274 |
} |
} |
275 |
|
|