Blame SOURCES/openchange-2.3-disable-python3.patch

e5b36c
diff -up openchange-openchange-2.3-VULCAN/configure.ac.drop-python openchange-openchange-2.3-VULCAN/configure.ac
e5b36c
--- openchange-openchange-2.3-VULCAN/configure.ac.drop-python	2018-04-17 12:59:29.738652248 +0200
e5b36c
+++ openchange-openchange-2.3-VULCAN/configure.ac	2018-04-17 13:00:36.006651332 +0200
e5b36c
@@ -376,36 +376,42 @@ AC_SUBST(PIDL)
e5b36c
 dnl ---------------------------------------------------------------------------
e5b36c
 dnl Check for Python
e5b36c
 dnl ---------------------------------------------------------------------------
e5b36c
+dnl 
e5b36c
+dnl AC_PATH_PROG(PYTHON, python3)
e5b36c
+dnl if test x"$PYTHON" = x""; then
e5b36c
+dnl	AC_MSG_WARN([No version of python3 was found!])
e5b36c
+dnl	AC_MSG_ERROR([Please install python3])
e5b36c
+dnl fi
e5b36c
+dnl AC_SUBST(PYTHON)
e5b36c
+dnl
e5b36c
+dnl AC_PATH_PROG(PYTHON_CONFIG, python3-config)
e5b36c
+dnl if test x"$PYTHON_CONFIG" = x""; then
e5b36c
+dnl 	AC_MSG_WARN([No version of python3-config was found!])
e5b36c
+dnl 	AC_MSG_ERROR([Please install python3-dev 3.x])
e5b36c
+dnl fi
e5b36c
+dnl AC_SUBST(PYTHON_CONFIG)
e5b36c
+dnl
e5b36c
+dnl AC_MSG_CHECKING(python cflags)
e5b36c
+dnl PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags`
e5b36c
+dnl AC_MSG_RESULT($PYTHON_CFLAGS)
e5b36c
+dnl AC_SUBST(PYTHON_CFLAGS)
e5b36c
+dnl
e5b36c
+dnl AC_MSG_CHECKING(python libs)
e5b36c
+dnl PYTHON_LIBS=`$PYTHON_CONFIG --libs`
e5b36c
+dnl AC_MSG_RESULT($PYTHON_LIBS)
e5b36c
+dnl AC_SUBST(PYTHON_LIBS)
e5b36c
+dnl
e5b36c
+dnl AC_MSG_CHECKING(python library directory)
e5b36c
+dnl pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, '\\${prefix}')"`
e5b36c
+dnl AC_MSG_RESULT($pythondir)
e5b36c
+dnl AC_SUBST(pythondir)
e5b36c
 
e5b36c
-AC_PATH_PROG(PYTHON, python3)
e5b36c
-if test x"$PYTHON" = x""; then
e5b36c
-	AC_MSG_WARN([No version of python3 was found!])
e5b36c
-	AC_MSG_ERROR([Please install python3])
e5b36c
-fi
e5b36c
-AC_SUBST(PYTHON)
e5b36c
-
e5b36c
-AC_PATH_PROG(PYTHON_CONFIG, python3-config)
e5b36c
-if test x"$PYTHON_CONFIG" = x""; then
e5b36c
-	AC_MSG_WARN([No version of python3-config was found!])
e5b36c
-	AC_MSG_ERROR([Please install python3-dev 3.x])
e5b36c
-fi
e5b36c
-AC_SUBST(PYTHON_CONFIG)
e5b36c
-
e5b36c
-AC_MSG_CHECKING(python cflags)
e5b36c
-PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags`
e5b36c
-AC_MSG_RESULT($PYTHON_CFLAGS)
e5b36c
+PYTHON_CFLAGS=
e5b36c
 AC_SUBST(PYTHON_CFLAGS)
e5b36c
 
e5b36c
-AC_MSG_CHECKING(python libs)
e5b36c
-PYTHON_LIBS=`$PYTHON_CONFIG --libs`
e5b36c
-AC_MSG_RESULT($PYTHON_LIBS)
e5b36c
+PYTHON_LIBS=
e5b36c
 AC_SUBST(PYTHON_LIBS)
e5b36c
 
e5b36c
-AC_MSG_CHECKING(python library directory)
e5b36c
-pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, '\\${prefix}')"`
e5b36c
-AC_MSG_RESULT($pythondir)
e5b36c
-AC_SUBST(pythondir)
e5b36c
-
e5b36c
 dnl ----------------------------------------------------------------------------
e5b36c
 dnl Check for MYSQL client libraries
e5b36c
 dnl ----------------------------------------------------------------------------
e5b36c
@@ -759,11 +765,11 @@ AC_SUBST(OC_SERVER_UNINSTALL)
e5b36c
 dnl ##########################################################################
e5b36c
 dnl mapiproxy server
e5b36c
 dnl ##########################################################################
e5b36c
-if test x$PYTHON != x; then
e5b36c
-	if test "x$SAMDB_LIBS" != x -a "x$SAMBASERVER_LIBS" != x ; then
e5b36c
-		mapiproxy=1
e5b36c
-	fi
e5b36c
-fi
e5b36c
+dnl if test x$PYTHON != x; then
e5b36c
+dnl	if test "x$SAMDB_LIBS" != x -a "x$SAMBASERVER_LIBS" != x ; then
e5b36c
+dnl		mapiproxy=1
e5b36c
+dnl	fi
e5b36c
+dnl fi
e5b36c
 OC_RULE_ADD(mapiproxy, SERVER)
e5b36c
 
e5b36c
 AC_ARG_WITH(modulesdir, 
e5b36c
@@ -780,14 +786,15 @@ AC_ARG_ENABLE(pyopenchange, AC_HELP_STRI
e5b36c
 			   [build Python bindings for libmapi]),
e5b36c
 			   enable_pyopenchange="$enableval",
e5b36c
 			   enable_pyopenchange=no)
e5b36c
-PYCDIR=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, prefix='\\$(prefix)')"`
e5b36c
-AC_SUBST(PYCDIR)
e5b36c
 
e5b36c
 PYOPENCHANGEALL=
e5b36c
 PYOPENCHANGEINSTALL=
e5b36c
 PYOPENCHANGEUNINSTALL=
e5b36c
 
e5b36c
 if test x$enable_pyopenchange = xyes ; then
e5b36c
+	PYCDIR=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, prefix='\\$(prefix)')"`
e5b36c
+	AC_SUBST(PYCDIR)
e5b36c
+
e5b36c
 	dnl Enable pyopenchange by default
e5b36c
 	PYOPENCHANGEALL="$PYOPENCHANGEALL pyopenchange"
e5b36c
 	PYOPENCHANGEINSTALL="$PYOPENCHANGEALLINSTALL pyopenchange-install"