summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-10-08 09:37:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:39 -0500
commitf210b988049615f3f0caf6344b575e2b8f064edd (patch)
treec8cdb4769692bd7f3d7e0aa97c9e28e32d1ada16 /source4/build/smb_build
parent7d32679e9683c81aca538f0267684332a28a286f (diff)
downloadsamba-f210b988049615f3f0caf6344b575e2b8f064edd.tar.gz
samba-f210b988049615f3f0caf6344b575e2b8f064edd.tar.bz2
samba-f210b988049615f3f0caf6344b575e2b8f064edd.zip
r2858: fix a few SMB_EXT_LIB_FROM_PKGCONFIG() bugs
metze (This used to be commit 285d1ea4b09d4fc325544ad1b98244cc1046759c)
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r--source4/build/smb_build/public.m414
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/build/smb_build/public.m4 b/source4/build/smb_build/public.m4
index 65dd4ed8ca..b03eafe7b4 100644
--- a/source4/build/smb_build/public.m4
+++ b/source4/build/smb_build/public.m4
@@ -352,22 +352,22 @@ AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG],
if $PKG_CONFIG --atleast-pkgconfig-version 0.9.0; then
AC_MSG_CHECKING(for $2)
- if $PKG_CONFIG --exists "$2" ; then
+ if $PKG_CONFIG --exists '$2' ; then
AC_MSG_RESULT(yes)
SMB_EXT_LIB_ENABLE($1, YES)
SMB_EXT_LIB($1,
- [`$PKG_CONFIG --libs-only-l "$2"`],
- [`$PKG_CONFIG --cflags-only-other "$2"`],
- [`$PKG_CONFIG --cflags-only-I "$2"`],
- [`$PKG_CONFIG --libs-only-other "$2"` `$PKG_CONFIG --libs-only-L "$2"`])
+ [`$PKG_CONFIG --libs-only-l '$2'`],
+ [`$PKG_CONFIG --cflags-only-other '$2'`],
+ [`$PKG_CONFIG --cflags-only-I '$2'`],
+ [`$PKG_CONFIG --libs-only-other '$2'` `$PKG_CONFIG --libs-only-L '$2'`])
# FIXME: Dirty hack
- $1_CFLAGS="`$PKG_CONFIG --cflags $2`"
+ $1_CFLAGS="`$PKG_CONFIG --cflags '$2'`"
CFLAGS="$CFLAGS $$1_CFLAGS"
else
AC_MSG_RESULT(no)
- $PKG_CONFIG --errors-to-stdout --print-errors $2
+ $PKG_CONFIG --errors-to-stdout --print-errors '$2'
fi
else
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."