[xml] Patch: fix for python installation



Hi,

the attached patch fixes python installation for x86-64 (ie new AMD
64bits processor), since libdir = $(prefix)/lib64 for this architecture
instead of $prefix/lib as for other architectures (don't ask me more on
this subject, I'm only forwarding the patch, I'm not the x86-64
specialist :))

If you have comments, please CC: me (I'm not subscribed to the list)..
-- 
Frédéric Crozat
MandrakeSoft
--- libxml2-2.4.22/configure.in.python-libdir   2002-05-27 23:19:44.000000000 +0200
+++ libxml2-2.4.22/configure.in 2002-07-08 00:21:39.000000000 +0200
@@ -230,16 +230,20 @@ if test "$with_python" != "no" ; then
            if test -r $prefix/include/python$PYTHON_VERSION/Python.h
            then
                PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
-               PYTHON_SITE_PACKAGES='$(prefix)/lib/python$(PYTHON_VERSION)/site-packages'
+               PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
            else
                if test -r /usr/include/python$PYTHON_VERSION/Python.h
                then
                    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
-                   PYTHON_SITE_PACKAGES='$(prefix)/lib/python$(PYTHON_VERSION)/site-packages'
+                   PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
                else
                    echo could not find python$PYTHON_VERSION/Python.h
                fi
            fi
+               if ! test -d "$PYTHON_SITE_PACKAGES"
+               then
+                       PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print 
sysconfig.get_python_lib()"`
+               fi
        fi
     fi
 fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]