mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-12 10:35:06 +08:00
more fixups
This commit is contained in:
parent
85669bdcb1
commit
65bcd04475
@ -7,9 +7,11 @@ Wed Nov 20 13:00:21 1996 David J MacKenzie <djm@catapult.va.pubnix.com>
|
||||
|
||||
* 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.
|
||||
|
@ -1528,7 +1528,7 @@ AC_MSG_CHECKING([for -l[]AC_LIB_NAME])
|
||||
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)
|
||||
@ -1649,7 +1649,7 @@ AC_DEFUN(AC_COMPILE_CHECK,
|
||||
[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,
|
||||
@ -1786,7 +1786,7 @@ choke me
|
||||
#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])
|
||||
|
@ -3487,11 +3487,9 @@ For example, @samp{broken} or @samp{set}. This part of the name may
|
||||
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
|
||||
|
@ -3487,11 +3487,9 @@ For example, @samp{broken} or @samp{set}. This part of the name may
|
||||
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
|
||||
|
@ -1528,7 +1528,7 @@ AC_MSG_CHECKING([for -l[]AC_LIB_NAME])
|
||||
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)
|
||||
@ -1649,7 +1649,7 @@ AC_DEFUN(AC_COMPILE_CHECK,
|
||||
[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,
|
||||
@ -1786,7 +1786,7 @@ choke me
|
||||
#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])
|
||||
|
@ -88,6 +88,18 @@ proc autoconf_load { args } {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user