summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@ubuntu.com>2011-12-13 16:48:37 -0800
committerChase Douglas <chase.douglas@ubuntu.com>2011-12-13 16:48:37 -0800
commit0ada1132294813196503527124d321093cb36e7f (patch)
tree44057c00982f36ec11ec0f856910ddb74ee569ec
parent4ee62b348d2346e03b6cbbfd94f710eda499d011 (diff)
Make gtest a requirement for successful configuration
And switch to the non-deprecated AC_CHECK_LIB.
-rw-r--r--m4/gtest.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/m4/gtest.m4 b/m4/gtest.m4
index 459d1f5..69b8867 100644
--- a/m4/gtest.m4
+++ b/m4/gtest.m4
@@ -16,9 +16,10 @@ AC_DEFUN([AC_CHECK_GTEST],
[GTEST_LDFLAGS="-L$withval -lpthread"],
[GTEST_LDFLAGS='-lgtest -lpthread'])
- AC_HAVE_LIBRARY( [gtest],
- [have_gtest=yes],
- AC_MSG_WARN([package 'gtest' not found: tests disabled]))
+ AC_LANG_CPLUSPLUS
+
+ AC_CHECK_LIB([gtest], [main], [have_gtest=yes],
+ AC_MSG_ERROR([package 'gtest' not found]))
]) # AC_CHECK_GTEST