[Fedora-directory-commits] ldapserver/m4 db.m4,1.8,1.9

Nathan Kinder (nkinder) fedora-directory-commits at redhat.com
Mon Aug 20 17:49:20 UTC 2007


Author: nkinder

Update of /cvs/dirsec/ldapserver/m4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6373/m4

Modified Files:
	db.m4 
Log Message:
Resolves: 253582
Summary: Check if pkgconfig is available before trying to use it.



Index: db.m4
===================================================================
RCS file: /cvs/dirsec/ldapserver/m4/db.m4,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- db.m4	30 Mar 2007 18:20:06 -0000	1.8
+++ db.m4	20 Aug 2007 17:49:17 -0000	1.9
@@ -84,8 +84,12 @@
 # last resort
 # Although the other db_* variables are correctly assigned at this point,
 # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
-if $PKG_CONFIG --exists db; then
-  db_bindir=`$PKG_CONFIG --variable=bindir db`
+if  test -n "$PKG_CONFIG"; then
+  if $PKG_CONFIG --exists db; then
+    db_bindir=`$PKG_CONFIG --variable=bindir db`
+  else
+    db_bindir=/usr/bin
+  fi
 else
   db_bindir=/usr/bin
 fi




More information about the Fedora-directory-commits mailing list