ENSC_PATHPROG(RMMOD, rmmod)
ENSC_PATHPROG(VCONFIG, vconfig,, [See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution])
ENSC_PATHPROG(WGET, wget)
-ENSC_PATHPROG(IONICE, ionice)
+ENSC_PATHPROG(IONICE, ionice,, [This is usually shipped in the 'util-linux(-ng)' or 'schedutils' package])
ENSC_PATHPROG(FILE, file, [file])
ENSC_PATHPROG(GZIP, gzip, [gzip])
ENSC_PATHPROG(BZIP2, bzip2, [bzip2])
AM_CONDITIONAL(HAVE_SYSV_INIT, test x"$ensc_with_init" = xsysv)
+dnl ########################
+dnl Check for Python
+
+AM_PATH_PYTHON(,, [:])
+ensc_python_config=python-config
+AC_ARG_WITH(python, AC_HELP_STRING([--with-python=FILE], [use FILE to query Python build details (default: python-config)]), [
+ case "$withval" in
+ (no) PYTHON=:;;
+ (yes) ;;
+ (*) ensc_python_config="$withval";;
+ esac])
+if $ensc_python_config --cflags > /dev/null 2>&1; then
+ PYTHON_CFLAGS=`$ensc_python_config --cflags`
+ PYTHON_LDFLAGS=`$ensc_python_config --ldflags`
+ AC_SUBST(PYTHON_CFLAGS)
+ AC_SUBST(PYTHON_LDFLAGS)
+else
+ PYTHON=:
+fi
+AM_CONDITIONAL([HAVE_PYTHON], [test "x$PYTHON" != x:])
+
+dnl Python stuff ends here
+dnl ########################
+
+
dnl BIG HACK! Do some autodetection here!
AC_DEFINE(UTMP_GID, [22], [The utmp gid-number])