1
0
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:
Jelmer Vernooij 2008-09-09 23:49:07 +02:00
parent 59b62280d2
commit 62d76356c1

View File

@ -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