ie, not when user specifies --with-CC. This corrects a scripting error
that I'm surprised hasn't been reported more often. Moving the macro call
to the earlier point in the script is correct anyway: if -traditional is needed,
it should get added to CFLAGS before we start using the compiler for
other tests.
esac
CC="$withval"
],
- [ AC_PROG_CC])
+ [
+ AC_PROG_CC
+ AC_PROG_GCC_TRADITIONAL
+])
if test "$CC" = "gcc"
then
AC_SUBST(CC_VERSION)
CPPFLAGS="$CPPFLAGS $PGSQL_CPPFLAGS"
-export CPPFLAGS
echo "- setting CPPFLAGS=$CPPFLAGS"
LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
-export LDFLAGS
echo "- setting LDFLAGS=$LDFLAGS"
dnl Checks for programs.
AC_MSG_RESULT(assuming not on target machine))
dnl Checks for library functions.
-AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF