From: Victor Julien Date: Wed, 8 May 2013 10:41:10 +0000 (+0200) Subject: Fix CLS detection on systems that have getconf, but don't support the LEVEL1_DCACHE_L... X-Git-Tag: suricata-2.0beta1~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ddd57cb05749c41879ce4eb003dc5ce7fac1d42;p=thirdparty%2Fsuricata.git Fix CLS detection on systems that have getconf, but don't support the LEVEL1_DCACHE_LINESIZE option. --- diff --git a/configure.ac b/configure.ac index 843ab97725..977f12db01 100644 --- a/configure.ac +++ b/configure.ac @@ -1486,7 +1486,9 @@ AC_INIT(configure.ac) AC_PATH_PROG(HAVE_GETCONF_CMD, getconf, "no") if test "$HAVE_GETCONF_CMD" != "no"; then CLS=$(getconf LEVEL1_DCACHE_LINESIZE) - AC_DEFINE_UNQUOTED([CLS],[${CLS}],[L1 cache line size]) + if test "$CLS" != ""; then + AC_DEFINE_UNQUOTED([CLS],[${CLS}],[L1 cache line size]) + fi fi # get revision