summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-11 02:21:22 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-11 02:21:22 -0600
commit39466b7b95f25a3e0f6da52b156b194b10cbac9d (patch)
tree814eff66572adc2aa9c096e8ed61120dcd202a89
parentc5cef804fe69e65e2e2f76df31fdbc7d4a4650e0 (diff)
downloadadmin-39466b7b95f25a3e0f6da52b156b194b10cbac9d.tar.gz
admin-39466b7b95f25a3e0f6da52b156b194b10cbac9d.zip
Fix Python library detection on multiarch systems
-rw-r--r--acinclude.m4.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/acinclude.m4.in b/acinclude.m4.in
index 950e6dd..001c447 100644
--- a/acinclude.m4.in
+++ b/acinclude.m4.in
@@ -4949,7 +4949,8 @@ fi
PYTHONINC=-I$python_incdir
-python_libdirs="$ac_python_dir/lib$tdelibsuff /usr/lib$tdelibsuff /usr/local /usr/lib$tdelibsuff $kde_extra_libs"
+python_multiarch_libdirs="`find /usr/lib/ -maxdepth 1 -type d | xargs echo`"
+python_libdirs="$ac_python_dir/lib$tdelibsuff /usr/lib$tdelibsuff /usr/local /usr/lib$tdelibsuff $python_multiarch_libdirs $kde_extra_libs"
AC_FIND_FILE(libpython$version.so, $python_libdirs, python_libdir)
if test ! -r $python_libdir/libpython$version.so; then
AC_FIND_FILE(libpython$version.a, $python_libdirs, python_libdir)