Kwan Hong Lee wrote:
> For some reason, even if I have the new autoconf directory
> added to the beginning of the directory, when I call
> pulseaudio/autogen.sh it uses the older autoconf, currently
> 2.59. I can't modify sb_autoconf_wrapper because it's read only.
>
> What can I do?
Please don't reply to individuals. This is a list for a reason.
[EMAIL PROTECTED]:/scratchbox/tools/bin$ echo *2.50*
autoconf2.50 autoheader2.50 autoreconf2.50
[EMAIL PROTECTED]:/scratchbox/tools/bin$ ls -l autoconf2.50
lrwxrwxrwx 1 root root 38 2008-03-31 18:52 autoconf2.50 ->
../autotools/autoconf2.59/bin/autoconf
[EMAIL PROTECTED]:/scratchbox/tools/bin$ cd ../autotools/
[EMAIL PROTECTED]:/scratchbox/tools/autotools$ ls
autoconf2.13 autoconf2.59 automake-1.4 automake-1.7 automake-1.8
automake-1.9
[EMAIL PROTECTED]:/scratchbox/tools/autotools$ mkdir ~/ac262
[EMAIL PROTECTED]:/scratchbox/tools/autotools$ pushd ~/ac262/
~/ac262 /scratchbox/tools/autotools
[EMAIL PROTECTED]:~/ac262$ wget
http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.bz2 2> /dev/null >
/dev/null
[EMAIL PROTECTED]:~/ac262$ tar jxf autoconf-2.62.tar.bz2
[EMAIL PROTECTED]:~/ac262$ cd autoconf-2.62/
[EMAIL PROTECTED]:~/ac262$ ./configure
--prefix=/scratchbox/tools/autotools/autoconf2.62
[EMAIL PROTECTED]:~/ac262/autoconf-2.62$ make -s
[EMAIL PROTECTED]:~# cd /home/timeless/ac262/autoconf-2.62
[EMAIL PROTECTED]:/home/timeless/ac262/autoconf-2.62# make install 2> /dev/null
> /dev/null
[EMAIL PROTECTED]:/home/timeless/ac262/autoconf-2.62# cd /scratchbox/tools/bin
[EMAIL PROTECTED]:/scratchbox/tools/bin# ls -l autoconf2.50
lrwxrwxrwx 1 root root 38 2008-03-31 18:52 autoconf2.50 ->
../autotools/autoconf2.59/bin/autoconf
[EMAIL PROTECTED]:/scratchbox/tools/bin# ln -s
../autotools/autoconf2.62/bin/autoconf autoconf2.60
[EMAIL PROTECTED]:/scratchbox/tools/bin# ln -s
../autotools/autoconf2.62/bin/autoheader autoheader2.60
[EMAIL PROTECTED]:/scratchbox/tools/bin# ln -s
../autotools/autoconf2.62/bin/autoreconf autoreconf2.60
[EMAIL PROTECTED]:/scratchbox/tools/bin# patch < /dev/stdin
--- sb_autoconf_wrapper 2008-05-05 09:40:45.0 +0300
+++ sb_autoconf_wrapper 2008-05-05 09:42:47.0 +0300
@@ -26,2 +26,4 @@
ac250 ();
+ } elsif ($force eq '2.60' || $force eq '2.62') {
+ ac260 ();
} else {
@@ -158,2 +160,9 @@
-# Default to 2.13.
-ac213 ();
+my $force = $ENV{'SBOX_DEFAULT_AUTOCONF'};
+if ($force eq '2.50' || $force eq '2.59') {
+ac250 ();
+} elsif ($force eq '2.60' || $force eq '2.62') {
+ac260 ();
+} else {
+# Default to 2.13.
+ac213 ();
+}
@@ -222 +223,5 @@
+sub ac260 {
+run_autoconf ("/scratchbox/tools/bin/${mode}2.60");
+}
+
sub run_autoconf {
^D
patching file sb_autoconf_wrapper
Hunk #2 succeeded at 161 (offset 1 line).
Hunk #3 succeeded at 224 with fuzz 1 (offset 1 line).
[EMAIL PROTECTED]:~$ scratchbox
[sbox-test-arm: ~] > SBOX_DEFAULT_AUTOCONF=2.60
[sbox-test-arm: ~] > export SBOX_DEFAULT_AUTOCONF
[sbox-test-arm: ~] > autoconf
autoconf2.60: no input file
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers