diff options
author | Nathan Kinder <nkinder@redhat.com> | 2007-08-20 17:49:17 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2007-08-20 17:49:17 +0000 |
commit | eff443f6307425aa37b56ca19ee32ab21db204d7 (patch) | |
tree | f73d117ac69062d8f5c5b2a2281c109e7b10c9c2 /m4 | |
parent | 7afaf4974625c0d80d81cfbedbfe9635f21d5a57 (diff) | |
download | ds-eff443f6307425aa37b56ca19ee32ab21db204d7.tar.gz ds-eff443f6307425aa37b56ca19ee32ab21db204d7.tar.xz ds-eff443f6307425aa37b56ca19ee32ab21db204d7.zip |
Resolves: 253582
Summary: Check if pkgconfig is available before trying to use it.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/db.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -84,8 +84,12 @@ LDFLAGS="$save_ldflags" # 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 |