You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Ah. CentOS 5 clearly defaults to old C. Didn't notice this on the Mac. The alternative is to use a configure test. SMURF does the following:
dnl SMURF requires C99 features, so unless we have GCC attempt
dnl to enable that in the compiler.
iftest"$GCC"!= "yes";then
AC_PROG_CC_C99
fi
dnl Check for GCC, so we can add SMURF compiler warning flags.
dnl Would like to include -fstack-protector, but not all GCC versions
dnl support that, so need to check that. SMURF is using C99 features
dnl so we always ask that they are supported by GCC.
SMURF_CFLAGS="-std=c99 -Wall -Wextra -Wcast-qual -Wcast-align -Wwrite-strings \-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \-Wredundant-decls"iftest"$GCC" = "yes";then
have_fsp=yes
AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
fsp_old_cflags="$CFLAGS"
CFLAGS="$CFLAGS -fstack-protector -pedantic-errors"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[have_fsp=no])
echo$have_fspiftest"$have_fsp" = "no";then
CFLAGS="$fsp_old_cflags$SMURF_CFLAGS"else
CFLAGS="$CFLAGS$SMURF_CFLAGS"fifi
I'm not sure if AC_PROG_CC_C99 will solve the problem all on its own.
4286bb0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. CentOS 5 clearly defaults to old C. Didn't notice this on the Mac. The alternative is to use a configure test. SMURF does the following:
I'm not sure if
AC_PROG_CC_C99
will solve the problem all on its own.