Browse Source

[master] Merged trac4531 (test -> expr for <)

Francis Dupont 8 years ago
parent
commit
62c9410057
2 changed files with 4 additions and 1 deletions
  1. 3 0
      AUTHORS
  2. 1 1
      configure.ac

+ 3 - 0
AUTHORS

@@ -100,6 +100,9 @@ We have received the following contributions:
  - Razvan Becheriu, Qualitance
    2016-05: Added support for Cassandra
 
+ - Patrik Lundin
+   2016-08: Replace test by expr for < in configure.ac
+
 Kea uses log4cplus (http://sourceforge.net/projects/log4cplus/) for logging,
 Boost (http://www.boost.org/) library for almost everything, and can use Botan
 (http://botan.randombit.net/) or OpenSSL (https://www.openssl.org/) for

+ 1 - 1
configure.ac

@@ -182,7 +182,7 @@ KEA_CXXFLAGS="$KEA_CXXFLAGS -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Wo
 # gcc 4.4 would emit warnings about breaking strict aliasing rules.
 # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41874
 CXX_DUMP_VERSION=`$CXX -dumpversion | cut -f1-2 -d.`
-if test "$CXX_DUMP_VERSION" \< "4.5"; then
+if expr "$CXX_DUMP_VERSION" \< "4.5" > /dev/null; then
        WARNING_GCC_44_STRICT_ALIASING_CFLAG="-fno-strict-aliasing"
 fi
 AC_SUBST(WARNING_GCC_44_STRICT_ALIASING_CFLAG)