-dnl $Id: configure.in,v 1.126.2.14 2002-02-07 23:50:21 srittau Exp $
+dnl $Id: configure.in,v 1.126.2.15 2002-02-08 16:30:16 jmarcus Exp $
dnl configure.in for netatalk
AC_INIT(bin/adv1tov2/adv1tov2.c)
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL
NETATALK_PROG_PERL
+AC_PROG_GREP
+AC_PROG_PS
dnl *********************************************************************
dnl FIXME! FIXME! These should be selectable properly, and should produce
--- /dev/null
+dnl Autoconf macro to check for the existence of Perl
+dnl $Id: grep-check.m4,v 1.1.2.1 2002-02-08 16:30:17 jmarcus Exp $
+
+AC_DEFUN([AC_PROG_GREP], [
+AC_REQUIRE([AC_EXEEXT])dnl
+test x$GREP = x && AC_PATH_PROG(GREP, grep$EXEEXT, grep$EXEEXT)
+test x$GREP = x && AC_MSG_ERROR([no acceptable grep found in \$PATH])
+])
+
+AC_SUBST(GREP)
--- /dev/null
+dnl Autoconf macro to check for the existence of Perl
+dnl $Id: ps-check.m4,v 1.1.2.1 2002-02-08 16:30:17 jmarcus Exp $
+
+AC_DEFUN([AC_PROG_PS], [
+AC_REQUIRE([AC_EXEEXT])dnl
+test x$PS = x && AC_PATH_PROG(PS, ps$EXEEXT, ps$EXEEXT)
+test x$PS = x && AC_MSG_ERROR([no acceptable ps found in \$PATH])
+])
+
+AC_SUBST(PS)