pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/apache2 Check if a variable is defined before matc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f83a20f5b5e0
branches:  trunk
changeset: 493568:f83a20f5b5e0
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Mon May 09 21:57:05 2005 +0000

description:
Check if a variable is defined before matching against it in .if
Noted by kristerw.

diffstat:

 www/apache2/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 911539b9b05f -r f83a20f5b5e0 www/apache2/Makefile
--- a/www/apache2/Makefile      Mon May 09 21:29:52 2005 +0000
+++ b/www/apache2/Makefile      Mon May 09 21:57:05 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2005/04/25 09:13:14 adam Exp $
+# $NetBSD: Makefile,v 1.72 2005/05/09 21:57:05 dillo Exp $
 
 .include "Makefile.common"
 
@@ -51,7 +51,7 @@
 DFLT_APACHE_MODULES+=  ssl deflate
 
 # LDAP support
-.if !empty(PKG_OPTIONS.apr:Mldap)
+.if defined(PKG_OPTIONS.apr) && !empty(PKG_OPTIONS.apr:Mldap)
 DFLT_APACHE_MODULES+=  ldap auth_ldap
 .endif
 



Home | Main Index | Thread Index | Old Index