sed -e 's/HP-//' -e 1q`;
selecttype='int *'
fi
+ # For some strange reason, the u32align test from Configure hangs in
+ # HP-UX 10.20 since the December 2001 patches. So hint it to avoid
+ # the test.
+ if [ "$xxOsRevMajor" -le 10 ]; then
+ d_u32align=$define
+ fi
echo "Archname is $archname"
;;
*) ccisgcc=''
ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'`
- ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings"
+ case "$ccflags" in
+ "-Ae "*) ;;
+ *) ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" ;;
+ esac
# Needed because cpp does only support -Aa (not -Ae)
cpplast='-'
cppminus='-'
EOF
$cc -o try $ccflags $ldflags try.c
maxdsiz=`try`
+rm -f try try.c core
if [ $maxdsiz -le 64 ]; then
# 64 Mb is probably not enough to optimize toke.c
# and regexp.c with -O2
# but we cheat for now. (Keep that in the left margin.)
ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
- ccflags="$ccflags $ccflags_uselargefiles"
+ case "$ccflags" in
+ *" $ccflags_uselargefiles") ;;
+ *) ccflags="$ccflags $ccflags_uselargefiles" ;;
+ esac
if test -z "$ccisgcc" -a -z "$gccversion"; then
# The strict ANSI mode (-Aa) doesn't like large files.