X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Configure;h=201dedbf6ed76f4122c391c87a409cfb73c563bf;hb=1485817ebf8dde6b1eba1bd4d8bf7c6e2e9fb14b;hp=ceb2d2cfcf25b919f25c47a35d943a399e55d9c9;hpb=381c1bae8770dba0aec64002bf75d6f4d2e0c0f5;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Configure b/Configure index ceb2d2c..201dedb 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sat Apr 26 00:26:09 EET DST 2003 [metaconfig 3.0 PL70] +# Generated on Wed May 7 23:33:48 EET DST 2003 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ < 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 @@ -7361,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"' @@ -9810,7 +9813,7 @@ echo " " echo "Checking whether your compiler can handle __attribute__ ..." >&4 $cat >attrib.c <<'EOCP' #include -void croak (char* pat,...) __attribute__((format(printf,1,2),noreturn)); +void croak (char* pat,...) __attribute__((__format__(__printf__,1,2),noreturn)); EOCP if $cc $ccflags -c attrib.c >attrib.out 2>&1 ; then if $contains 'warning' attrib.out >/dev/null 2>&1; then @@ -14042,6 +14045,10 @@ esac set sqrtl d_sqrtl eval $inlibc +: see if scalbnl exists +set scalbnl d_scalbnl +eval $inlibc + : see if modfl exists set modfl d_modfl eval $inlibc @@ -14115,32 +14122,31 @@ EOCP esac if $test "$uselongdouble" = "$define"; then - message=none - case "$d_sqrtl:$d_modfl" in - $define:$define) - : You have both - ;; - $define:$undef) + message="" + if $test "$d_sqrtl" != "$define"; then + message="$message sqrtl" + fi + if $test "$d_modfl" != "$define"; then if $test "$d_aintl:$d_copysignl" = "$define:$define"; then echo "You have both aintl and copysignl, so I can emulate modfl." else - message="I could not find modfl." + message="$message modfl" fi - ;; - $undef:$define) - message="I could not find sqrtl." - ;; - $undef:$undef) - message="I found neither sqrtl nor modfl." - ;; - esac + fi + if $test "$d_frexpl" != "$define"; then + if $test "$d_ilogbl:$d_scalbnl" = "$define:$define"; then + echo "You have both ilogbl and scalbnl, so I can emulate frexpl." + else + message="$message frexpl" + fi + fi - if $test "$message" != none; then + if $test "$message" != ""; then $cat <&4 *** You requested the use of long doubles but you do not seem to have -*** the mathematic functions for long doubles. -*** ($message) +*** the following mathematical functions needed for long double support: +*** $message *** Please rerun Configure without -Duselongdouble and/or -Dusemorebits. *** Cannot continue, aborting. @@ -15173,10 +15179,6 @@ echo " " set d_sbrkproto sbrk $i_unistd unistd.h eval $hasproto -: see if scalbnl exists -set scalbnl d_scalbnl -eval $inlibc - : see if select exists set select d_select eval $inlibc @@ -17225,9 +17227,9 @@ esac : set the base revision baserev=5.0 -: how do we catenate cpp tokens here? +: how do we concatenate cpp tokens here? echo " " -echo "Checking to see how your cpp does stuff like catenate tokens..." >&4 +echo "Checking to see how your cpp does stuff like concatenate tokens..." >&4 $cat >cpp_stuff.c <<'EOCP' #define RCAT(a,b)a/**/b #define ACAT(a,b)a ## b @@ -17246,8 +17248,8 @@ elif $contains 'Reiser' cpp_stuff.out >/dev/null 2>&1; then cpp_stuff=1 else $cat >&4 <&4 echo "WARNING: The Perl you are building will be quite crippled." >& 4 ;;