*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
+if ! test -f config.h; then
+ . ./config_h.SH
+fi
+
warn=''
# Add -Wall for the core modules iff gcc and not already -Wall
case "$gccversion" in
'') ;;
*)
- # If we have -Duse64bitint (or equivalent) in effect and the quadtype
- # has become 'long long', gcc -pedantic becomes unbearable (moreso
- # when combined with -Wall) because long long and LL and %lld|%Ld
- # become warn-worthy. So let's drop the -pedantic in that case.
- case "$quadtype:$sPRId64" in
- "long long"*|*lld*|*Ld*)
- ccflags="`echo $ccflags|sed 's/-pedantic/ /'`"
- warn="`echo $warn|sed 's/-pedantic/ /'`"
- ;;
- esac
- # Using certain features (like the gcc statemanet expressions)
- # require knowing whether -pedantic has been specified.
+ if [ "$gccansipedantic" = "" ]; then
+ # If we have -Duse64bitint (or equivalent) in effect and the quadtype
+ # has become 'long long', gcc -pedantic becomes unbearable (moreso
+ # when combined with -Wall) because long long and LL and %lld|%Ld
+ # become warn-worthy. So let's drop the -pedantic in that case.
+ case "$quadtype:$sPRId64" in
+ "long long"*|*lld*|*Ld*)
+ ccflags="`echo $ccflags|sed 's/-pedantic/ /'`"
+ warn="`echo $warn|sed 's/-pedantic/ /'`"
+ ;;
+ esac
+ fi
+ # Using certain features (like the gcc statement expressions)
+ # requires knowing whether -pedantic has been specified.
case "$warn$ccflags" in
*-pedantic*) warn="$warn -DPERL_GCC_PEDANTIC" ;;
esac