summaryrefslogtreecommitdiff
path: root/net-misc/kea/files/kea-1.8.2-gtest.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-11 07:02:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-11 07:02:28 +0100
commit068424b26532f3551a81421a9be67ed206e5c11a (patch)
tree583b8d979899a463a4ef5b26d3d49e85df987623 /net-misc/kea/files/kea-1.8.2-gtest.patch
parentd162ba1860a88062f4cd61f8b52fc303ba0b2991 (diff)
gentoo resync : 11.08.2021
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