1 --- libxml2-2.9.2.orig/configure.ac 2014-10-15 23:06:15.000000000 -0500
2 +++ libxml2-2.9.2/configure.ac 2015-02-11 12:53:35.494162888 -0600
3 @@ -837,62 +837,13 @@ if test "$with_python" != "no" ; then
4 echo Found python in environment PYTHON=$PYTHON
5 with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
7 - AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)
12 - if test "$PYTHON" != ""
14 - PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
15 - PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc())"`
16 -# does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
18 -# PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
19 - echo Found Python version $PYTHON_VERSION
21 - if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
23 - if test -r $with_python/include/python$PYTHON_VERSION/Python.h
25 - PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
27 - if test -r $prefix/include/python$PYTHON_VERSION/Python.h
29 - PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
31 - if test -r /usr/include/python$PYTHON_VERSION/Python.h
33 - PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
35 - if test -r $with_python/include/Python.h
37 - PYTHON_INCLUDES=$with_python/include
39 - echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
41 + AC_PATH_PROG(PYTHON, python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)
46 - if test "$with_python_install_dir" != ""
48 - PYTHON_SITE_PACKAGES="$with_python_install_dir"
50 - if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
52 - if test -d $libdir/python$PYTHON_VERSION/site-packages
54 - PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
56 - if test -d $with_python/lib/site-packages
58 - PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
60 - PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
64 + PYTHON_INCLUDES=`python$PYTHON_VERSION-config --includes`
65 + PYTHON_SITE_PACKAGES=${prefix}/lib/python$PYTHON_VERSION/site-packages
66 pythondir='$(PYTHON_SITE_PACKAGES)'
67 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
69 @@ -1065,26 +1016,7 @@ else
70 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
73 - if test "${GCC}" = "yes" ; then
74 - GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
75 - GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
76 - GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[[0-9]]*\.++' | sed 's+\..*++'`
77 - if test "${THREAD_LIBS}" = "-lpthread" ; then
78 - if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
81 - BASE_THREAD_LIBS="-lpthread"
83 - if expr ${GCC_MAJOR} \> 3 > /dev/null
86 - BASE_THREAD_LIBS="-lpthread"
88 - echo old GCC disabling weak symbols for pthread
93 + THREAD_LIBS="-lpthread"
96 if test "$WITH_THREADS" = "1" ; then