mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-03 02:00:36 +08:00
ba3b08af20
* Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2. (AMTAR): Help automake define it. (INSTALL, install-data-hook): The INSTALL.txt trick is no longer needed, 1.5 can have a macro and a target with the same name. * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4, * m4/strip.m4: New. * m4/init.m4, m4/sanity.m4: Update. * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files. * lib/autoconf/Makefile.am, lib/autotest/Makefile.am, * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am, * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
27 lines
587 B
Plaintext
27 lines
587 B
Plaintext
# serial 3
|
|
|
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
# -------------------------------------
|
|
# Define a conditional.
|
|
#
|
|
# FIXME: Once using 2.50, use this:
|
|
# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
AC_DEFUN([AM_CONDITIONAL],
|
|
[ifelse([$1], [TRUE],
|
|
[errprint(__file__:__line__: [$0: invalid condition: $1
|
|
])dnl
|
|
m4exit(1)])dnl
|
|
ifelse([$1], [FALSE],
|
|
[errprint(__file__:__line__: [$0: invalid condition: $1
|
|
])dnl
|
|
m4exit(1)])dnl
|
|
AC_SUBST([$1_TRUE])
|
|
AC_SUBST([$1_FALSE])
|
|
if $2; then
|
|
$1_TRUE=
|
|
$1_FALSE='#'
|
|
else
|
|
$1_TRUE='#'
|
|
$1_FALSE=
|
|
fi])
|