summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac13
1 files changed, 7 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index ba1a83ea..22b8c451 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,13 @@ AC_ARG_WITH(gtest,
[with_gtest=no]
)
+AM_CONDITIONAL([HAVE_GMOCK], false)
+AC_ARG_WITH(gmock,
+ [AC_HELP_STRING([--with-gmock=DIR], [(optional) path to Google Mock library])],
+ [with_gmock=$withval],
+ [with_gmock=no]
+ )
+
if test "x$with_gtest" != 'xno'
then
gtest_CPPFLAGS="-I${with_gtest}/include"
@@ -132,12 +139,6 @@ then
AC_SUBST(AS_TR_CPP([GTEST_LDFLAGS]), ["$gtest_LDFLAGS"])
AC_SUBST(AS_TR_CPP([GTEST_LIBS]), ["$gtest_LIBS"])
- AM_CONDITIONAL([HAVE_GMOCK], false)
- AC_ARG_WITH(gmock,
- [AC_HELP_STRING([--with-gmock=DIR], [(optional) path to Google Mock library])],
- [with_gmock=$withval],
- [with_gmock=no]
- )
if test "x$with_gmock" != 'xno'
then