aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-02 15:12:24 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-02 15:12:24 +0200
commitd8a48784795cf71730717717f6b9f75be0b80d16 (patch)
treed1b6a2c6eb7012e3152b73aaa2d21816e3f60264
parente62ff546b24b28ce7fc2d155cbbf52b06cc7844c (diff)
downloadlibpam-freerdp2-d8a48784795cf71730717717f6b9f75be0b80d16.tar.gz
libpam-freerdp2-d8a48784795cf71730717717f6b9f75be0b80d16.tar.bz2
libpam-freerdp2-d8a48784795cf71730717717f6b9f75be0b80d16.zip
Make building tests optional.
-rw-r--r--Makefile.am7
-rw-r--r--configure.ac3
2 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 9477c1c..ce8de5e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,8 @@
+SUBDIRS = src
-SUBDIRS = \
- src \
- tests
+if HAVE_GTEST
+SUBDIRS += tests
+endif
DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
diff --git a/configure.ac b/configure.ac
index 05d66b9..6ac02c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,8 +42,9 @@ AC_SUBST(PAMMODULEDIR)
m4_include([m4/gtest.m4])
CHECK_GTEST
if test "x$have_gtest" != "xyes"; then
- AC_MSG_ERROR([tests were requested but gtest is not installed.])
+ AC_MSG_WARN([tests were requested but gtest is not installed.])
fi
+AM_CONDITIONAL([HAVE_GTEST], [test "$have_gtest" != "no"])
###########################
# gcov coverage reporting