X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Configure;h=201dedbf6ed76f4122c391c87a409cfb73c563bf;hb=1485817ebf8dde6b1eba1bd4d8bf7c6e2e9fb14b;hp=8e0b9953199206f7b3ecc548457c957034924b16;hpb=04fa0c702a9221c225ba8695a20b08d7da04409f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Configure b/Configure index 8e0b995..201dedb 100755 --- a/Configure +++ b/Configure @@ -7222,7 +7222,7 @@ $grep fprintf libc.tmp > libc.ptf xscan='eval "libc.list"; $echo $n ".$c" >&4' xrun='eval "libc.list"; echo "done." >&4' xxx='[ADTSIW]' -if com="$sed -n -e 's/__IO//' -e 's/^.* $xxx *_[_.]*//p' -e 's/^.* $xxx *//p'";\ +if com="$sed -n -e 's/__IO//' -e 's/^.* $xxx *//p'";\ eval $xscan;\ $contains '^fprintf$' libc.list >/dev/null 2>&1; then eval $xrun @@ -7366,25 +7366,23 @@ true-*) tx=no; eval "tval=\$$4"; case "$tval" in "") tx=yes;; esac;; esac; case "$tx" in yes) - case "$runnm" in - true) - if $contains $tlook $tf >/dev/null 2>&1; - then tval=true; - else tval=false; - fi;; - *) + tval=false; + if $test "$runnm" = "true" && $contains $tlook $tf >/dev/null 2>&1; then + tval=true; + else echo "int main() { extern short $1$tdc; printf(\"%hd\", $1$tc); }" > t.c; - if $cc -o t $optimize $ccflags $ldflags t.c $libs >/dev/null 2>&1; - then tval=true; - else tval=false; + if $cc -o t $optimize $ccflags $ldflags t.c $libs >/dev/null 2>&1; then + tval=true; fi; - $rm -f t t.c;; - esac;; + $rm -f t t.c; + fi; + ;; *) case "$tval" in $define) tval=true;; *) tval=false;; - esac;; + esac; + ;; esac; eval "$2=$tval"'