diff options
author | Chase Douglas <chase.douglas@ubuntu.com> | 2011-12-14 11:18:49 -0800 |
---|---|---|
committer | Chase Douglas <chase.douglas@ubuntu.com> | 2011-12-14 11:18:49 -0800 |
commit | c8a4e665b558f2e39b63bfe91a7081fc041887c2 (patch) | |
tree | 467623ca9d8cca2b4234f6465c0b253d20bc3eec | |
parent | 5bbdf9fe259a3bde28192286de2a685457b49a50 (diff) |
Use gtest lib path when checking for gtest library
-rw-r--r-- | m4/gtest.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/gtest.m4 b/m4/gtest.m4 index 6c3fc28..0839ce2 100644 --- a/m4/gtest.m4 +++ b/m4/gtest.m4 @@ -14,11 +14,11 @@ AC_DEFUN([AC_CHECK_GTEST], AC_ARG_WITH([gtest-lib-path], [AS_HELP_STRING([--with-gtest-lib-path], [location of the Google test libraries])], [GTEST_LDFLAGS="-L$withval -lpthread"], - [GTEST_LDFLAGS='-lgtest -lpthread']) + [GTEST_LDFLAGS='-lpthread']) AC_LANG_PUSH(C++) - AC_CHECK_LIB([gtest], [main], [:], [:], [-lpthread]) + AC_CHECK_LIB([gtest], [main], [:], [:], [$GTEST_LDFLAGS]) AC_LANG_POP ]) # AC_CHECK_GTEST |