On Thu, Aug 31, 2000 at 01:45:30AM -0300, Alexandre Oliva wrote:
> On Aug 29, 2000, Harlan Stenn <[EMAIL PROTECTED]> wrote:
> 
> > The docs for AC_LIBOBJ say (in part):
> >     Technically, it adds 'FUNCTION.$ac_objext' to ...
> 
> > If this is true, it may still be a bug.  Perhaps it should add:
> 
> >     'FUNCTION$U.$ac_objext'
> 
> > because some folks will be using the ansi2knr stuff.
> 
> Isn't it automake that adjusts LIBOBJS to work with ansi2knr?

Nope.  The user has to add a sed script snippet to their configure.in
if they use LIBOBJS in conjunction with either LTLIBRARIES or ansi2knr.

According to the excellent `Autoconf, Automake and Libtool' [New Riders
Publishing; ISBN: 1578701902 =)O| =)O| ]:

  # This is necessary so that .o files in LIBOBJS are also built via
  # the ANSI2KNR-filtering rules.
  Xsed='sed -e "s/^X//"'
  LIBOBJS=`echo X"$LIBOBJS"|\
       $Xsed 's/\.[^.]* /.\$U& /g;s/\.[^.]*$/.\$U&/'`

  # LTLIBOBJS requires objects with .lo suffixes.       
  LTLIBOBJS=echo X"$LIBOBJS" | \
       $Xsed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'
  AC_SUBST(LTLIBOBJS)
                     
Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: [EMAIL PROTECTED]
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       [EMAIL PROTECTED] 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc

Reply via email to