On Thu, Apr 17, 2008 at 7:33 PM, Jonas Karlsson <[EMAIL PROTECTED]> wrote: > On Fri, 18 Apr 2008 00:18:45 +0200, <[EMAIL PROTECTED]> wrote: > > > Author: lucasvr > > Date: 2008-04-17 15:18:45 -0700 (Thu, 17 Apr 2008) > > New Revision: 3222 > > > > Modified: > > trunk/Scripts/bin/PrepareProgram > > Log: > > Added config_accepts_sysconfdir to automatically pass --sysconfigdir when > a non-autoconf configure scripts accepts it. > > > > Modified: trunk/Scripts/bin/PrepareProgram > > =================================================================== > > --- trunk/Scripts/bin/PrepareProgram 2008-04-17 22:18:05 UTC (rev 3221) > > +++ trunk/Scripts/bin/PrepareProgram 2008-04-17 22:18:45 UTC (rev 3222) > > > @@ -261,12 +265,18 @@ > > ) > > cp -f ${goboSettings}/Compile/Cross/$cross_cache_file . > > fi > > -elif config_accepts_prefix > > +elif config_accepts_prefix && config_accepts_sysconfdir > > then > > Log_Normal "Non-autoconf configure script detected (accepts --prefix)." > > configure_options=( > > --prefix="$configureprefix" > > + --sysconfdir="$configuresettings" > > ) > > +elif config_accepts_prefix > > +then > > + configure_options=( > > + "[EMAIL PROTECTED]" > > + ) > > else > > configure_options=() > > fi > > > If configure script accepts --prefix but not --sysconfdir the elif will fail > and neither will be passed.
Yes, true. My bad, sorry. I'll fix that. > Btw, was this a fix? It was supposed to be an improvement :-) There are situations where a non-autoconf configure script provides both --prefix and --sysconfdir, but the latter was never caught by PrepareProgram. A few recipes have workarounds specifying sysconfdir in their configure_options array to overcome that. Cheers, -- Lucas powered by /dev/dsp _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel