From f0bcadfb033c78c78631c4430288a60aa639100f Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Apr 18 2018 19:08:09 +0000 Subject: CONFIGURE: drop unused check Related to: https://pagure.io/SSSD/sssd/issue/3656 Reviewed-by: Sumit Bose --- diff --git a/configure.ac b/configure.ac index 725c28f..36c10e1 100644 --- a/configure.ac +++ b/configure.ac @@ -329,7 +329,6 @@ them please use argument --without-python2-bindings when running configure.])]) AM_PYTHON_CONFIG([python2]) AM_CHECK_PYTHON_HEADERS([], AC_MSG_ERROR([Could not find python2 headers])) - AM_CHECK_PYTHON_COMPAT AC_SUBST([py2execdir], [$pyexecdir]) AC_SUBST([python2dir], [$pythondir]) @@ -356,7 +355,6 @@ them please use argument --without-python3-bindings when running configure.])]) AM_PYTHON_CONFIG([python3]) AM_CHECK_PYTHON_HEADERS([], AC_MSG_ERROR([Could not find python3 headers])) - AM_CHECK_PYTHON_COMPAT AC_SUBST([py3execdir], [$pyexecdir]) AC_SUBST([python3dir], [$pythondir]) diff --git a/src/external/python.m4 b/src/external/python.m4 index 691e600..be4e3b2 100644 --- a/src/external/python.m4 +++ b/src/external/python.m4 @@ -39,23 +39,6 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS], CPPFLAGS="$save_CPPFLAGS" ]) - -dnl Checks for a couple of functions we use that may not be defined -dnl in some older python (< 2.6) versions used e.g. on RHEL6 -AC_DEFUN([AM_CHECK_PYTHON_COMPAT], -[ - AC_REQUIRE([AM_CHECK_PYTHON_HEADERS]) - save_CPPFLAGS="$CPPFLAGS" - save_LIBS="$LIBS" - CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" - LIBS="$LIBS $PYTHON_LIBS" - - AC_CHECK_FUNCS([PyErr_NewExceptionWithDoc]) - - CPPFLAGS="$save_CPPFLAGS" - LIBS="$save_LIBS" -]) - dnl Clean variables after detection of python AC_DEFUN([SSS_CLEAN_PYTHON_VARIABLES], [