gcc -ansi -pedantic issued a few warnings about C90 not supporting the
"ll" printf length modifier. Ralph pointed out that
http://www.unix.org/version4/overview.html says:
The following source code portability standards lie at the core of
the Single UNIX Specification:
POSIX.1-2008
(This is technically identical to the Base Specifications, Issue 7;
they are one and the same document.)
The ISO/IEC 9899:1999 standard
So perhaps we're wrong to expect modern POSIX code to compile as C90.
if cc -dM -E - </dev/null 2>&1 | grep __GNUC__ >/dev/null; then
#### configure will supply -g -O2 with gcc, but only if CFLAGS
#### isn't defined.
- CFLAGS='-g -ansi -pedantic'
+ CFLAGS='-g -std=c99 -pedantic'
if [ "$config_debug" = n ]; then
CFLAGS="$CFLAGS -O2"
else