aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorGravatar Holger Weiss <hweiss@users.sourceforge.net> 2008-04-29 14:54:09 +0000
committerGravatar Holger Weiss <hweiss@users.sourceforge.net> 2008-04-29 14:54:09 +0000
commit6f2ee45c932dfec9d9a1e651b39d18f98b2ef009 (patch)
treee508f422e7efc6583b8a8041615d9e630f262ce2 /configure.in
parentdbd7b90170929a078bfcb62d6fce09569312d050 (diff)
downloadmonitoring-plugins-6f2ee45c932dfec9d9a1e651b39d18f98b2ef009.tar.gz
Support "--without-pgsql" (reported by Alex Songe via IRC).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1987 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 418b597b..8ba09cb6 100644
--- a/configure.in
+++ b/configure.in
@@ -181,7 +181,7 @@ AC_ARG_WITH(pgsql,
[sets path to pgsql installation]),
PGSQL=$withval,)
AC_CHECK_LIB(crypt,main)
-if test "$ac_cv_lib_crypt_main" = "yes"; then
+if test "$ac_cv_lib_crypt_main" = "yes" -a "x$PGSQL" != "xno"; then
if test -n "$PGSQL"; then
LDFLAGS="$LDFLAGS -L$PGSQL/lib"
CPPFLAGS="$CPPFLAGS -I$PGSQL/include"