summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-09-10 14:09:07 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-09-10 14:09:07 +1000
commit9bc4d3ecba6395be2dff195fdc1ae74d07155a42 (patch)
tree354e6216080b6e21cdc2ff2e5368ee4a99aa535b /source4/scripting/python
parentba22de3d4fcba466d2829df47fb05c85eda2f98f (diff)
parentce288824bb4a095c5020449a79eb83fad81e8480 (diff)
downloadsamba-9bc4d3ecba6395be2dff195fdc1ae74d07155a42.tar.gz
samba-9bc4d3ecba6395be2dff195fdc1ae74d07155a42.tar.bz2
samba-9bc4d3ecba6395be2dff195fdc1ae74d07155a42.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit ed26195d0eda6dd1ca14508cfd31a48dde79d44f)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/config.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/scripting/python/config.m4 b/source4/scripting/python/config.m4
index b599aaefb0..af13b6ae69 100644
--- a/source4/scripting/python/config.m4
+++ b/source4/scripting/python/config.m4
@@ -50,6 +50,12 @@ if test -z "$PYTHON_CONFIG"; then
else
TRY_LINK_PYTHON([`$PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --includes`])
TRY_LINK_PYTHON([`$PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --cflags`])
+ if x$working_python = xno; then
+ # It seems the library path isn't included on some systems
+ base=`$PYTHON_CONFIG --prefix`
+ TRY_LINK_PYTHON([`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --includes`])
+ TRY_LINK_PYTHON([`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --cflags`])
+ fi
fi
if test x$PYTHON != x