[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AFS support in autoconf
From: |
Martin MOKREJŠ |
Subject: |
AFS support in autoconf |
Date: |
Wed, 29 Jan 2003 17:33:21 +0100 (CET) |
Hi,
I have a problem with configure generated for mozilla sources
and I suspect it has to do with autoconf:
The problematic piece of code is (I've added few echo lines) from
mozilla-source-1.3a/configure:
echo ""
echo "\$2=$2"
echo ""
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:3595: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
echo "\$ac_make=$ac_make"
echo "\$ac_cv_prog_make_${ac_make}_set=$ac_cv_prog_make_${ac_make}_set"
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftestmake <<\EOF
all:
@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
eval ac_cv_prog_make_${ac_make}_set=yes
else
eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
The output from configure is (normally it just said "bad substitution"
of course:
$2=make
checking whether /software/@sys/usr/bin/make sets ${MAKE}... address@hidden
address@hidden@sys_usr_bin_make_set
./configure: bad substitution
----------------^ two underscores?
I suspect it has to do with the `@' sign, actually address@hidden'. This
variable is AFS variable,
expanded by kernel and NOT by a shell. I don't understand why the forward
slahes, dots, plus and
minues signs have to transliterated using sed to underscores, but I'd like to
know what happens
if the path would be ..../alpha_dux51/... The @sys is actually expanded by
kernel to alpha_dux51.
In any case, the configure script break on the line with if condition. Does
someone have a clue why?
I've found that exactly same code works for example in configure under
gimp-1.2.4-rc2:
$2=
checking whether make sets ${MAKE}... $ac_make=make
$ac_cv_prog_make_make_set=make_set
yes
Any help?
--
Martin Mokrejs <address@hidden>, <address@hidden>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- AFS support in autoconf,
Martin MOKREJŠ <=