]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
force enable gtest with benchmarks
authorRazvan Becheriu <ravan@isc.org>
Tue, 12 Mar 2019 13:06:36 +0000 (15:06 +0200)
committerTomek Mrugalski <tomek@isc.org>
Fri, 19 Apr 2019 07:55:02 +0000 (03:55 -0400)
configure.ac

index 95bccb85d7a90c9e69a1c6d0086a57e3615d693e..b07b7a1c0e1bbd23794d63ddb2eb1f6deb82e19d 100644 (file)
@@ -1251,6 +1251,11 @@ if test "x$enable_benchmark" = "xyes" ; then
         fi
 
     fi
+
+    if test $enable_gtest = no; then
+        AC_MSG_ERROR([--with-benchmark and --with-benchmark-source requires --with-gtest or --with-gtest-source])
+    fi
+
 fi
 AM_CONDITIONAL(HAVE_BENCHMARK, test $enable_benchmark != "no")
 AM_CONDITIONAL(HAVE_BENCHMARK_SOURCE, test "X$have_benchmark_source" = "Xyes")