summaryrefslogtreecommitdiff
path: root/net-misc/kea/files/kea-1.8.2-gtest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/kea/files/kea-1.8.2-gtest.patch')
-rw-r--r--net-misc/kea/files/kea-1.8.2-gtest.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/net-misc/kea/files/kea-1.8.2-gtest.patch b/net-misc/kea/files/kea-1.8.2-gtest.patch
new file mode 100644
index 000000000000..ae757a2a1a31
--- /dev/null
+++ b/net-misc/kea/files/kea-1.8.2-gtest.patch
@@ -0,0 +1,35 @@
+--- a/m4macros/ax_gtest.m4
++++ b/m4macros/ax_gtest.m4
+@@ -135,20 +135,18 @@ if test "x$enable_gtest" = "xyes" ; then
+ GTEST_FOUND="false"
+ for dir in $GTEST_PATHS; do
+ if test -f "$dir/include/gtest/gtest.h"; then
+- if ! test -f "$dir/lib/libgtest.a"; then
+- AC_MSG_WARN([Found Google Test include but not the library in $dir.])
+- continue
+- fi
+- GTEST_INCLUDES="-I$dir/include"
+- GTEST_LDFLAGS="-L$dir/lib"
+- GTEST_LDADD="-lgtest"
+- GTEST_FOUND="true"
+- break
+- fi
+- done
+- fi
+- if test "${GTEST_FOUND}" != "true"; then
+- AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
++ if test -f "$dir/lib64/libgtest.a" || \
++ test -f "$dir/lib64/libgtest.so"; then
++ GTEST_INCLUDES="-I$dir/include"
++ GTEST_LDFLAGS="-L$dir/lib64"
++ GTEST_LDADD="-lgtest"
++ GTEST_FOUND="true"
++ break
++ else
++ AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
++ fi
++ fi
++ done
+ fi
+
+ fi