if test "${with_python+set}" = set; then :
withval=$with_python; use_python="$withval"
else
- use_python="unspec"
+ use_python="yes"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
;;
- unspec|yes|*)
+ yes|*)
case "$use_python" in
- unspec|yes|'')
+ yes|'')
for p in $python
do
for ac_prog in $p
unset PYTHON
fi
done
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5
+$as_echo_n "checking for python support... " >&6; }
if test "X$PYTHON" != "X"
then
- case "$use_python_install_dir" in
- unspec)
- PYTHON_INSTALL_DIR=""
- PYTHON_INSTALL_LIB=""
- ;;
- *)
- PYTHON_INSTALL_DIR="$use_python_install_dir"
- PYTHON_INSTALL_LIB="--install-lib=$use_python_install_dir"
- ;;
- esac
+ PYTHON_INSTALL_DIR="$use_python_install_dir"
+ PYTHON_INSTALL_LIB="--install-lib=$use_python_install_dir"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5
-$as_echo_n "checking for python support... " >&6; }
- case "$use_python" in
- unspec)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
-$as_echo "disabled" >&6; }
- ;;
- yes)
- as_fn_error $? "missing python" "$LINENO" 5
- ;;
- esac
+ as_fn_error $? "no; python required for dnssec-keymgr" "$LINENO" 5
fi
;;
*)
AC_ARG_WITH(python,
AS_HELP_STRING([--with-python=PATH],
[specify path to python interpreter]),
- use_python="$withval", use_python="unspec")
+ use_python="$withval", use_python="yes")
AC_ARG_WITH(python-install-dir,
AS_HELP_STRING([--with-python-install-dir=PATH],
[installation directory for Python modules]),
case "$use_python" in
no)
AC_MSG_CHECKING([for python support])
- AC_MSG_RESULT(disabled)
+ AC_MSG_RESULT([disabled])
;;
- unspec|yes|*)
+ yes|*)
case "$use_python" in
- unspec|yes|'')
+ yes|'')
for p in $python
do
AC_PATH_PROGS(PYTHON, $p)
unset PYTHON
fi
done
+ AC_MSG_CHECKING([for python support])
if test "X$PYTHON" != "X"
then
- case "$use_python_install_dir" in
- unspec)
- PYTHON_INSTALL_DIR=""
- PYTHON_INSTALL_LIB=""
- ;;
- *)
- PYTHON_INSTALL_DIR="$use_python_install_dir"
- PYTHON_INSTALL_LIB="--install-lib=$use_python_install_dir"
- ;;
- esac
+ PYTHON_INSTALL_DIR="$use_python_install_dir"
+ PYTHON_INSTALL_LIB="--install-lib=$use_python_install_dir"
+ AC_MSG_RESULT([yes])
else
- AC_MSG_CHECKING([for python support])
- case "$use_python" in
- unspec)
- AC_MSG_RESULT(disabled)
- ;;
- yes)
- AC_MSG_ERROR([missing python])
- ;;
- esac
+ AC_MSG_ERROR([no; python required for dnssec-keymgr])
fi
;;
*)