]> arthur.barton.de Git - netatalk.git/commitdiff
Add support for detecting ps and grep needed for cnid_maint.
authorjmarcus <jmarcus>
Fri, 8 Feb 2002 16:30:16 +0000 (16:30 +0000)
committerjmarcus <jmarcus>
Fri, 8 Feb 2002 16:30:16 +0000 (16:30 +0000)
configure.in
macros/grep-check.m4 [new file with mode: 0644]
macros/ps-check.m4 [new file with mode: 0644]

index db2d428a6c5423b92c03f8d04fe9fb2b9c2d7dc3..8202d358e8a047939488bdbb76141a7136107476 100644 (file)
@@ -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 (file)
index 0000000..f1cdd19
--- /dev/null
@@ -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 (file)
index 0000000..5cd0bd5
--- /dev/null
@@ -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)