f841b79c2e22ffc217df6e6bb747bc82e53d9c88
[feed/telephony.git] / net / freeswitch / patches / 460-remove-python-configure-checks.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -1865,36 +1865,24 @@ then
4 fi
5 AC_MSG_RESULT([$PYTHON3_VER])
6
7 - AC_MSG_CHECKING([for python3 distutils])
8 - python3_result="`$PYTHON3 -c 'import distutils;' 2>&1`"
9 - if test -z "$python3_result" ; then
10 + #AC_MSG_CHECKING([for python3 distutils])
11 + #python3_result="`$PYTHON3 -c 'import distutils;' 2>&1`"
12 + #if test -z "$python3_result" ; then
13 python3_has_distutils="yes"
14 - else
15 - python3_has_distutils="no"
16 - fi
17 - AC_MSG_RESULT([$python3_has_distutils])
18 + #else
19 + # python3_has_distutils="no"
20 + #fi
21 + #AC_MSG_RESULT([$python3_has_distutils])
22
23 if test "$python3_has_distutils" != "no" ; then
24 AC_MSG_CHECKING([location of python3 site-packages])
25
26 - PYTHON3_SITE_DIR="`$PYTHON3 -c 'from distutils import sysconfig; print(sysconfig.get_python_lib(0));'`"
27 -
28 if test -z "$PYTHON3_SITE_DIR" ; then
29 AC_MSG_ERROR([Unable to detect python3 site-packages path])
30 - elif test ! -d "$PYTHON3_SITE_DIR" ; then
31 - AC_MSG_ERROR([Path $PYTHON3_SITE_DIR returned by python3 does not exist!])
32 fi
33 AC_MSG_RESULT([$PYTHON3_SITE_DIR])
34 AC_SUBST([PYTHON3_SITE_DIR], [$PYTHON3_SITE_DIR])
35
36 - #
37 - # python3 distutils found, get settings from python3 directly
38 - #
39 - PYTHON3_CFLAGS="`$PYTHON3 -c 'from distutils import sysconfig; flags = [[\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]]; print(\" \".join(flags));' | sed -e 's/-arch i386//g;s/-arch x86_64//g'`"
40 - PYTHON3_LDFLAGS="`$PYTHON3 -c 'from distutils import sysconfig; ldver = sysconfig.get_config_var(\"LDVERSION\"); libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\" + [[ldver,sysconfig.get_config_var(\"VERSION\")]][[ldver==None]]); print(\" \".join(libs));'`"
41 - PYTHON3_LIB="`$PYTHON3 -c 'from distutils import sysconfig; ldver = sysconfig.get_config_var(\"LDVERSION\"); print(\"python\" + [[ldver,sysconfig.get_config_var(\"VERSION\")]][[ldver==None]]);'`"
42 - PYTHON3_LIBDIR="`$PYTHON3 -c 'from distutils import sysconfig; print(sysconfig.get_config_var(\"LIBDIR\"));'`"
43 -
44 # handle python3 being installed into /usr/local
45 AC_MSG_CHECKING([python3 libdir])
46 if test -z "`echo $PYTHON3_LIBDIR | grep "/usr/lib"`" ; then