mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Only try with -LPYTHONDIR/lib when python-config output didn't work.
This commit is contained in:
parent
59b62280d2
commit
62d76356c1
@ -48,9 +48,14 @@ fi
|
||||
if test -z "$PYTHON_CONFIG"; then
|
||||
AC_MSG_WARN([No python-config found])
|
||||
else
|
||||
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`])
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user