This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Unbreak program transformation name `configure' options
On 04/27/2012 04:46 PM, Maciej W. Rozycki wrote:
> On Fri, 27 Apr 2012, Pedro Alves wrote:
>
>> It indeed removed AC_ARG_PROGRAM. It also does this though:
>>
>> -AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
>> +AC_CONFIG_AUX_DIR(..)
>>
>> I wonder if we need to restore that bit as well.
>
> I built out of the source directory so perhaps not? This looks weird to
> me, autoconf should handle that just fine:
>
> "-- Macro: AC_CONFIG_AUX_DIR (DIR)
> Use the auxiliary build tools (e.g., `install-sh', `config.sub',
> `config.guess', Cygnus `configure', Automake and Libtool scripts,
> etc.) that are in directory DIR. These are auxiliary files used
> in configuration. DIR can be either absolute or relative to
> `SRCDIR'. The default is `SRCDIR' or `SRCDIR/..' or
> `SRCDIR/../..', whichever is the first that contains `install-sh'."
>
> -- perhaps this was a left-over from times when autoconf was more fragile?
> I bet we have more places where we have some work-around logic left from
> the old days.
Yeah, sounds like at some point AC_CONFIG_AUX_DIR didn't handle
relative paths to srcdir. Thanks.
--
Pedro Alves