This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2 of 2] companion_tools/autoconf: add autoconf tool


Yann E. MORIN wrote:
+ mkdir -p "${CT_BUILD_DIR}/build-autoconf"
+ CT_Pushd "${CT_BUILD_DIR}/build-autoconf"
+ CT_DoExecLog ALL ${CONFIG_SHELL} \

Directly call ./configure, do not use CT_CONFIG_SHELL. It's the
responsibility of ./configure to use CONFIG_SHELL (note there's
no leading CT_) internally. CONFIG_SHELL is correctly set and
exported.

I know this is how it is supposed to work, but CONFIG_SHELL actually seems to cause problems on my system.
I am using Ubuntu 9.04 where /bin/sh points to dash and SHELL=/bin/bash. When CONFIG_SHELL=/bin/bash then autoconf configure fails on my system with the error "configure: error: no acceptable m4 could be found in $PATH.". When CONFIG_SHELL is not set, or configure is explicitly called with bash then this problem goes away!


I don't experience this issue when building any of the other packages in crosstool-ng. :(

I have attached a text file with output from my shell with an example of what happens.

Regards,

Richard Strand

richard@richard-laptop:/tmp$ tar jxf ~/src/autoconf-2.65.tar.bz2 
richard@richard-laptop:/tmp$ cd autoconf-2.65/
richard@richard-laptop:/tmp/autoconf-2.65$ export CONFIG_SHELL=/bin/bash
richard@richard-laptop:/tmp/autoconf-2.65$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.13 is recommended
richard@richard-laptop:/tmp/autoconf-2.65$ unset CONFIG_SHELL
richard@richard-laptop:/tmp/autoconf-2.65$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... /usr/bin/m4
checking whether /usr/bin/m4 accepts --gnu... no
configure: WARNING: The version of M4 that was found does not support -g.
configure: WARNING: Using it with POSIXLY_CORRECT set may cause problems.
checking how m4 supports trace files... --debugfile
checking for perl... /usr/bin/perl
checking whether /usr/bin/perl Fcntl::flock is implemented... yes
checking for emacs... no
checking for xemacs... no
checking for emacs... no
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking whether make is case sensitive... yes
configure: creating ./config.status
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating man/Makefile
config.status: creating lib/emacs/Makefile
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating lib/Autom4te/Makefile
config.status: creating lib/autoscan/Makefile
config.status: creating lib/m4sugar/Makefile
config.status: creating lib/autoconf/Makefile
config.status: creating lib/autotest/Makefile
config.status: creating bin/Makefile
config.status: executing tests/atconfig commands


--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]