Make benchmarks optional and dependent on hopscotch_map.

This commit is contained in:
Davi de Castro Reis
2017-06-01 12:44:37 -03:00
parent 6e9f152f92
commit 9209046797
4 changed files with 20 additions and 6 deletions

View File

@@ -5,3 +5,11 @@ AC_DEFUN([AC_ENABLE_CXXMPH], [AC_ARG_ENABLE([cxxmph],
no) cxxmph=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-cxxmph]) ;;
esac],[cxxmph=false])])
AC_DEFUN([AC_ENABLE_BENCHMARKS], [AC_ARG_ENABLE([benchmarks],
[ --enable-benchmarks enable cxxmph benchmarks against other libs ],
[case "${enableval}" in
yes) benchmarks=true ;;
no) benchmarks=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmarks]) ;;
esac],[benchmarks=false])])