* Test release 2.11.1.
- * acgeneral.m4 (AC_TRY_LIB): Remove an erroneous dnl.
- (AC_TRY_COMPILE, AC_TRY_LINK): Make the final newline consistent
- with the other AC_TRY_* macros.
+ * acgeneral.m4 (AC_TRY_COMPILE, AC_TRY_LINK): Make the final
+ newline consistent with the other AC_TRY_* macros: no final dnl
+ is needed to avoid extraneous blank lines.
+ (AC_CHECK_LIB, AC_HAVE_LIBRARY, AC_COMPILE_CHECK): Remove
+ extraneous dnl's.
(AC_DIVERSION_CMDS, AC_DIVERSION_ICMDS): New macros.
(AC_OUTPUT_COMMANDS, AC_OUTPUT): Use them instead of appending to
list macros.
AC_CACHE_VAL(AC_CV_NAME,
[ac_save_LIBS="$LIBS"
LIBS="-l[]AC_LIB_NAME[] $4 $LIBS"
-AC_TRY_LINK( , [main()], AC_CV_NAME=yes, AC_CV_NAME=no)dnl
+AC_TRY_LINK( , [main()], AC_CV_NAME=yes, AC_CV_NAME=no)
LIBS="$ac_save_LIBS"
])dnl
AC_MSG_RESULT($AC_CV_NAME)
[AC_OBSOLETE([$0], [; instead use AC_TRY_COMPILE or AC_TRY_LINK, and AC_MSG_CHECKING and AC_MSG_RESULT])dnl
ifelse([$1], , , [AC_CHECKING([for $1])
])dnl
-AC_TRY_LINK([$2], [$3], [$4], [$5])dnl
+AC_TRY_LINK([$2], [$3], [$4], [$5])
])
dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY,
#else
$1();
#endif
-], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])dnl
+], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])
if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
be omitted if it does not apply.
@end table
-Like their names, the values that may be assigned to cache variables
-have a few restrictions. The values may not contain single quotes or
-curly braces. Usually, their values will be boolean (@samp{yes} or
-@samp{no}) or the names of files or functions; so this is not an
-important restriction.
+The values assigned to cache variables may not contain newlines.
+Usually, their values will be boolean (@samp{yes} or @samp{no}) or the
+names of files or functions; so this is not an important restriction.
@node Cache Files, , Cache Variable Names, Caching Results
@subsection Cache Files
be omitted if it does not apply.
@end table
-Like their names, the values that may be assigned to cache variables
-have a few restrictions. The values may not contain single quotes or
-curly braces. Usually, their values will be boolean (@samp{yes} or
-@samp{no}) or the names of files or functions; so this is not an
-important restriction.
+The values assigned to cache variables may not contain newlines.
+Usually, their values will be boolean (@samp{yes} or @samp{no}) or the
+names of files or functions; so this is not an important restriction.
@node Cache Files, , Cache Variable Names, Caching Results
@subsection Cache Files
AC_CACHE_VAL(AC_CV_NAME,
[ac_save_LIBS="$LIBS"
LIBS="-l[]AC_LIB_NAME[] $4 $LIBS"
-AC_TRY_LINK( , [main()], AC_CV_NAME=yes, AC_CV_NAME=no)dnl
+AC_TRY_LINK( , [main()], AC_CV_NAME=yes, AC_CV_NAME=no)
LIBS="$ac_save_LIBS"
])dnl
AC_MSG_RESULT($AC_CV_NAME)
[AC_OBSOLETE([$0], [; instead use AC_TRY_COMPILE or AC_TRY_LINK, and AC_MSG_CHECKING and AC_MSG_RESULT])dnl
ifelse([$1], , , [AC_CHECKING([for $1])
])dnl
-AC_TRY_LINK([$2], [$3], [$4], [$5])dnl
+AC_TRY_LINK([$2], [$3], [$4], [$5])
])
dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY,
#else
$1();
#endif
-], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])dnl
+], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])
if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
return 0
}
+ # Check whether m4 processing left any icky residue.
+ # The autoconf script does this already, pretty much.
+ # catch "exec sed -n -e /dnl/p -e /AC_/p $args" exec_output
+ # if $verbose>1 then {
+ # send_user "Checked $args for unexpanded m4 macros\n"
+ # }
+ # if ![string match "" $exec_output] then {
+ # fail "$args, unexpanded m4 macros"
+ # send_log "$exec_output\n"
+ # return 0
+ # }
+
# Capture only stderr in exec_output, not "creating Makefile" etc.
catch "exec ./$args --cache=/dev/null >/dev/null" exec_output
if $verbose>1 then {