Fix CLS detection on systems that have getconf, but don't support the LEVEL1_DCACHE_LINESIZE option.

pull/350/head
Victor Julien 12 years ago
parent 724ad9e8e7
commit 0ddd57cb05

@ -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

Loading…
Cancel
Save