I'm sorry to be such a pain, but this just isn't working. Here's what I
have.
--configure.in
AC_INIT(test.in)
PACKAGE=test
AC_PREFIX_DEFAULT(/usr/foo)
AC_DEFINE_DIR(CP_PREFIX, prefix)
AC_DEFINE_DIR(CP_LIBDIR, libdir)
CP_PKGLIBDIR=$CP_LIBDIR/$PACKAGE
AC_SUBST(CP_PREFIX)
AC_SUBST(CP_LIBDIR)
AC_SUBST(CP_PKGLIBDIR)
AC_OUTPUT(test)
--end
--test.in
1 @CP_PREFIX@
2 @CP_LIBDIR@
3 @CP_PKGLIBDIR@
4 @prefix@
--end
And here's what I get:
--test
1
2
3 /test
4 /usr/foo
--end
Am I doing things in the wrong order. I see that @prefix@ gets
substituted correctly in test.in, but prefix doesn't get evaulated in
configure.in. Thanks!
Akim Demaille wrote:
>
> >>>>> "Ti" == Ti Leggett <[EMAIL PROTECTED]> writes:
>
> Ti> Also, is there a way to have @libdir@ expanded out instead of to
> Ti> the default ${prefix}/lib that it goes to? Thanks!
>
> http://research.cys.de/autoconf-archive/Miscellaneous/ac_define_dir.html
--
-Ti Leggett
[EMAIL PROTECTED]
[EMAIL PROTECTED]