From 248efce3eb8bc0a5182028c046b6185c884c8571 Mon Sep 17 00:00:00 2001 From: jmarcus Date: Fri, 8 Feb 2002 16:30:16 +0000 Subject: [PATCH] Add support for detecting ps and grep needed for cnid_maint. --- configure.in | 4 +++- macros/grep-check.m4 | 10 ++++++++++ macros/ps-check.m4 | 10 ++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 macros/grep-check.m4 create mode 100644 macros/ps-check.m4 diff --git a/configure.in b/configure.in index db2d428a..8202d358 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -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) @@ -19,6 +19,8 @@ AC_PROG_MAKE_SET 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 diff --git a/macros/grep-check.m4 b/macros/grep-check.m4 new file mode 100644 index 00000000..f1cdd19c --- /dev/null +++ b/macros/grep-check.m4 @@ -0,0 +1,10 @@ +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) diff --git a/macros/ps-check.m4 b/macros/ps-check.m4 new file mode 100644 index 00000000..5cd0bd5c --- /dev/null +++ b/macros/ps-check.m4 @@ -0,0 +1,10 @@ +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) -- 2.39.2