Ahhh.... I didn't even see those (and haven't had a chance to do much
testing). Thanks! Now if I only could figure out how to use $prefix,
$libdir, $sysconfdir, etc. in configure.in. Also, is there a way to have
@libdir@ expanded out instead of to the default ${prefix}/lib that it
goes to? Thanks!

Paul Berrevoets wrote:
> 
> Ti Leggett wrote:
> 
> > That's what I want but that's not what I get. When configure does it's
> > substitutions it doesn't seem to expand variables that are used to
> > define other variables. If that worked for you I guess I need to figure
> > out what's different. Thanks!
> 
> This will happen if you use
>     CP_LIBDIR='$CP_PREFIX/lib'
> but not if you use
>     CP_LIBDIR=$CP_PREFIX/lib
> or
>     CP_LIBDIR="$CP_PREFIX/lib"
> --
> Paul
> 
> >
> >
> > Paul Berrevoets wrote:
> > >
> > > From what you gave ...
> > >
> > > configure.in:
> > > AC_INIT(test.in)
> > > PACKAGE=test
> > > CP_PREFIX=/usr/local
> > > CP_LIBDIR=$CP_PREFIX/lib
> > > CP_PKGLIBDIR=$CP_LIBDIR/$PACKAGE
> > > AC_SUBST(CP_PREFIX)
> > > AC_SUBST(CP_LIBDIR)
> > > AC_SUBST(CP_PKGLIBDIR)
> > > AC_OUTPUT(test)
> > >
> > > test.in:
> > > @CP_PREFIX@
> > > @CP_LIBDIR@
> > > @CP_PKGLIBDIR@
> > >
> > > $ ./configure
> > > creating cache ./config.cache
> > > updating cache ./config.cache
> > > creating ./config.status
> > > creating test
> > >
> > > $ cat test
> > > /usr/local
> > > /usr/local/lib
> > > /usr/local/lib/test
> > >
> > > This is what you want isn't it?
> > > --
> > > Paul
> > >
> >
> > --
> > -Ti Leggett
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]

-- 
-Ti Leggett
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Reply via email to