From: JINMEI Tatuya Date: Wed, 10 Oct 2012 18:02:24 +0000 (-0700) Subject: [2340] corrected the position of closing 'fi' for an 'if GXX = yes'. X-Git-Tag: trac2402_base~15^2~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e2a372012e633d017a97029d13894e743199741;p=thirdparty%2Fkea.git [2340] corrected the position of closing 'fi' for an 'if GXX = yes'. --- diff --git a/configure.ac b/configure.ac index 900ff371be..422681602c 100644 --- a/configure.ac +++ b/configure.ac @@ -166,6 +166,8 @@ if test $with_werror = 1; then CXXFLAGS="$CXXFLAGS_SAVED" fi +fi dnl GXX = yes + AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1) # allow building programs with static link. we need to make it selective @@ -354,10 +356,11 @@ fi # TODO: check for _sqlite3.py module +# (g++ only check) # Python 3.2 has an unused parameter in one of its headers. This # has been reported, but not fixed as of yet, so we check if we need # to set -Wno-unused-parameter. -if test $werror_ok = 1; then +if test "X$GXX" = "Xyes" -a test $werror_ok = 1; then CPPFLAGS_SAVED="$CPPFLAGS" CPPFLAGS=${PYTHON_INCLUDES} CXXFLAGS_SAVED="$CXXFLAGS" @@ -383,8 +386,6 @@ if test $werror_ok = 1; then CPPFLAGS="$CPPFLAGS_SAVED" fi -fi dnl GXX = yes - # produce PIC unless we disable shared libraries. need this for python bindings. if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"