X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure.ac;h=5d9fc1dd4348175b8b8512bb7e08b51c6cb779d5;hb=06f3812d79d84c9116ce2f966aca8208ea171cbf;hp=ac35de229b682dbbefdbfdc68e00bbc97078a967;hpb=538ce85eaed7a4a741c2ff96b477f2cfc81ad814;p=platform%2Fupstream%2Fflac.git diff --git a/configure.ac b/configure.ac index ac35de2..5d9fc1d 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,7 @@ # instead of FLAC__ since autoconf triggers off 'AC_' in strings AC_PREREQ(2.60) -AC_INIT([flac], [1.3.0pre1], [flac-dev@xiph.org], [flac], [https://www.xiph.org/flac/]) +AC_INIT([flac], [1.3.0pre2], [flac-dev@xiph.org], [flac], [https://www.xiph.org/flac/]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_SRCDIR([src/flac/main.c]) AC_CONFIG_MACRO_DIR([m4]) @@ -357,19 +357,40 @@ fi XIPH_GCC_VERSION if test x$ac_cv_c_compiler_gnu = xyes ; then + CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Winline -Wconversion + CXXFLAGS="$CXXFLAGS -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations + + if test x$enable_gcc_werror = "xyes" ; then - CFLAGS="-Wall -Wextra -Werror $CFLAGS" - CXXFLAGS="-Wall -Wextra -Werror $CXXFLAGS" - fi + CFLAGS="$CFLAGS -Wall -Wextra -Werror " + CXXFLAGS="$CXXFLAGS -Wall -Wextra -Werror " + fi if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf; then CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR" CFLAGS="$CFLAGS -fvisibility=hidden" CXXFLAGS="$CXXFLAGS -fvisibility=hidden" + fi + + if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then + XIPH_ADD_CFLAGS([-fgnu89-inline]) + fi fi -fi +XIPH_ADD_CFLAGS([-Wextra]) +XIPH_ADD_CFLAGS([-Wdeclaration-after-statement]) +XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2]) + +case "$host_os" in + mingw32msvc | mingw32 | freebsd* ) + # Stack protector not working on these platforms 2013/03/09. + ;; + *) + XIPH_ADD_CFLAGS([-fstack-protector --param ssp-buffer-size=4]) + ;; + esac + #@@@ AM_CONDITIONAL(FLaC__HAS_AS__TEMPORARILY_DISABLED, test "yes" = "no") AM_CONDITIONAL(FLaC__HAS_GAS__TEMPORARILY_DISABLED, test "yes" = "no")