[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_PREFIX_DEFAULT and AC_CONFIG_SUBDIRS
From: |
Ralf Corsepius |
Subject: |
Re: AC_PREFIX_DEFAULT and AC_CONFIG_SUBDIRS |
Date: |
03 Aug 2001 15:24:18 +0200 |
Am 22 Jul 2001 03:47:38 +0200 schrieb Ralf Corsepius:
> Hi,
>
> With autoconf-2.52, the prefix set with AC_PREFIX_DEFAULT does not
> get propagated down to subdir-configure (AC_CONFIG_SUBDIRS) scripts.
>
> This renders AC_PREFIX_DEFAULT pretty much useless if using a common
> toplevel configure-script to configure a collection of packages in
> subdirectories.
Below is a patch, which is supposed to fix this issue.
It filters out --prefix from ac_configure_args and explicitly prepends
--prefix=$ac_prefix to ac_sub_configure_args.
This ensures that the prefix used in a toplevel configure script will
always be passed down to subdir configure scripts,
i.e
* If a toplevel configure.in applies AC_PREFIX_DEFAULT, this value will
also be used in subdirs.
* If a user explicitly passed --prefix to the toplevel configure script,
this value will be appled to subdir configures, too.
* If a subdir-configure.in applies AC_PREFIX_DEFAULT, the value from the
toplevel configure will override it.
Ralf
autoconf-rc-20010803-1.diff
Description: Text document
- Re: AC_PREFIX_DEFAULT and AC_CONFIG_SUBDIRS,
Ralf Corsepius <=