PACKAGE=freeradius
+dnl #
+dnl # check for AIX, to allow us to use some BSD functions
+dnl # must be before macros that call the compiler.
+dnl #
+AC_AIX
+
dnl Find GNU Make.
AC_CHECK_PROG(GMAKE, gmake, yes, no)
if test $GMAKE = no; then
dnl #
dnl #############################################################
+CHECKRAD=checkrad.pl
AC_PATH_PROG(PERL, perl, /usr/local/bin/perl)
if test ! -x $ac_cv_path_PERL; then
- AC_MSG_ERROR(perl not found - fatal)
+ AC_MSG_WARN(perl not found - Simultaneous-Use and checkrad.pl may not work)
+fi
+AC_PATH_PROG(SNMPGET, snmpget)
+
+if test ! -x $ac_cv_path_SNMPGET; then
+ AC_MSG_WARN(snmpget not found - Simultaneous-Use and checkrad.pl may not work)
fi
+
+AC_PATH_PROG(SNMPWALK, snmpwalk)
+if test ! -x $ac_cv_path_SNMPWALK; then
+ AC_MSG_WARN(snmpwalk not found - Simultaneous-Use and checkrad.pl may not work)
+fi
+
AC_PATH_PROG(RUSERS, rusers, /usr/bin/rusers)
dnl FIXME This is truly gross.
AC_PATH_PROG(DIRNAME,dirname)
AC_PATH_PROG(GREP,grep)
-dnl #
-dnl # check for AIX, to allow us to use some BSD functions
-dnl # must be before macros that call the compiler.
-dnl #
-AC_AIX
-
dnl #############################################################
dnl #
dnl # 2. Checks for libraries
AC_SUBST(LIBLTDL)
AC_SUBST(INCLTDL)
top_builddir=`pwd`
+top_srcdir="$top_builddir"
AC_SUBST(top_builddir)
+AC_SUBST(top_srcdir)
dnl import libtool stuff