config.guess patch
TAKAHASHI Motonobu
monyo at samba.gr.jp
Fri Oct 26 23:16:02 GMT 2001
There are several problems are found in Samba-JP mailing-list in
current config.guess.
Here is a patch for this.
One is:
- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_S*V:*:*)
This is a kind of typo, we think.
And the other problem is that $dummy.c is removed by set_cc_for_build
but referenced later as the real target file name to compile.
This problem will occur only when neither $CC nor $HOST_CC is not defined.
--- config.guess.org Fri Jul 6 11:01:04 2001
+++ ../../../../tmp/samba-2.2.1a-ja-0.2/source/config.guess Fri Sep 21 11:05:13 2001
@@ -89,21 +89,21 @@
dummy=dummy-$$
-trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
+trap 'rm -f $dummy.c tmp$dummy.c tmp$dummy.o tmp$dummy.rel $dummy; exit 1' 1 2 15
# CC_FOR_BUILD -- compiler used by this script.
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int dummy(){}" > $dummy.c ;
+ ,,) echo "int dummy(){}" > tmp$dummy.c ;
for c in cc gcc c89 ; do
- ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
+ ($c tmp$dummy.c -c -o tmp$dummy.o) >/dev/null 2>&1 ;
if test $? = 0 ; then
CC_FOR_BUILD="$c"; break ;
fi ;
done ;
- rm -f $dummy.c $dummy.o $dummy.rel ;
+ rm -f tmp$dummy.c tmp$dummy.o tmp$dummy.rel ;
if test x"$CC_FOR_BUILD" = x ; then
CC_FOR_BUILD=no_compiler_found ;
fi
@@ -1011,7 +1011,7 @@
news*:NEWS-OS:6*:*)
echo mips-sony-newsos6
exit 0 ;;
- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_S*V:*:*)
if [ -d /usr/nec ]; then
echo mips-nec-sysv${UNAME_RELEASE}
else
-----
TAKAHASHI, Motonobu(monyo) monyo at samba.gr.jp
Samba Team - http://samba.org/ Samba-JP - http://www.samba.gr.jp/
JWNTUG - http://www.jwntug.or.jp/ Analog-JP - http://www.jp.analog.cx/
MCSE+I, MCSE(W2K), SCNA, CCNA, Turbo-CI
More information about the samba-technical
mailing list