[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Eager mind wants to understand
From: |
Bob Friesenhahn |
Subject: |
Re: Eager mind wants to understand |
Date: |
Sun, 26 Sep 2004 18:38:08 -0500 (CDT) |
On Sun, 26 Sep 2004, Bob Friesenhahn wrote:
+ eval objext=NONE objext=NONE
+ eval /usr/local/bin/grep "^objext=" + /usr/local/bin/grep ^objext= + eval
../libtool --config + ../libtool --config : : cannot open
+ eval + eval test x"$objext" = xNONE + test xNONE = xNONE + func_error
objext not set in `../libtool --config' + echo link.test: objext not set in
`../libtool --config' link.test: objext not set in `../libtool --config'
+ : my_exitp=:
+ : + exit 1 FAIL: link.test
After drilling down a bit more, I see that the generated libtool fails
to run:
+ unset CDPATH
+ test X--config = X--no-reexec
+ test X--config = X--fallback-echo
+ 2> /dev/null
+ test X = X\t
+ exec /bin/sh --no-reexec --config
: : cannot open
which has to do with the following code in the generated libtool:
6665 # This environment variable determines our operation mode.
6666 if test \"\$libtool_install_magic\" = \"$magic\"; then
6667 # install mode needs the following variable:
6668 notinst_deplibs='$notinst_deplibs'
6669 else
6670 # When we are sourced in execute mode, \$file and \$ECHO are already
set.
6671 if test \"\$libtool_execute_magic\" != \"$magic\"; then
6672 ECHO=\"$qecho\"
6673 file=\"\$0\"
6674 # Make sure echo works.
6675 if test \"X\$1\" = X--no-reexec; then
6676 # Discard the --no-reexec flag, and continue.
6677 shift
6678 elif test \"X\`(\$ECHO '\t') 2>/dev/null\`\" = 'X\t'; then
6679 # Yippee, \$ECHO works!
6680 :
6681 else
6682 # Restart under the correct shell, and then maybe \$ECHO will
work.
6683 exec $SHELL \"\$0\" --no-reexec \${1+\"address@hidden"}
6684 fi
6685 fi\
So apparently \"\$0\" expands to nada.
Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen