[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
doc bug
From: |
Bruno Haible |
Subject: |
doc bug |
Date: |
Mon, 22 Oct 2001 11:10:59 +0200 (CEST) |
Hi,
In libtool-1.4.2 documentation, node "Autoconf .o macros", recommends
the following code for use with autoconf-2.13:
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
AC_SUBST(LTLIBOBJS)
LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
AC_SUBST(LTALLOCA)
AC_OUTPUT(...)
This doesn't work because the brackets are omitted by autoconf (they are
the quoting characters). The correct code should read as follows:
changequote(,)dnl
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
changequote([, ])dnl
AC_SUBST(LTLIBOBJS)
changequote(,)dnl
LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
changequote([, ])dnl
AC_SUBST(LTALLOCA)
AC_OUTPUT(...)
Note that the "obvious" simplification
changequote(,)dnl
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
AC_SUBST(LTLIBOBJS)
LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
changequote([, ])dnl
AC_SUBST(LTALLOCA)
AC_OUTPUT(...)
does _not_ work, because then LTLIBOBJS doesn't appear in config.status.
(Apparently in autoconf-2.13, AC_SUBST doesn't work right when invoked
while the brackets are not the quote characters.)
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |