]> arthur.barton.de Git - netatalk.git/commitdiff
Add macros to check for grep and ps.
authorjmarcus <jmarcus>
Thu, 7 Feb 2002 05:09:01 +0000 (05:09 +0000)
committerjmarcus <jmarcus>
Thu, 7 Feb 2002 05:09:01 +0000 (05:09 +0000)
macros/grep-check.m4 [new file with mode: 0644]
macros/ps-check.m4 [new file with mode: 0644]

diff --git a/macros/grep-check.m4 b/macros/grep-check.m4
new file mode 100644 (file)
index 0000000..35b3375
--- /dev/null
@@ -0,0 +1,10 @@
+dnl Autoconf macro to check for the existence of Perl
+dnl $Id: grep-check.m4,v 1.1 2002-02-07 05:09:01 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..b433079
--- /dev/null
@@ -0,0 +1,10 @@
+dnl Autoconf macro to check for the existence of Perl
+dnl $Id: ps-check.m4,v 1.1 2002-02-07 05:09:01 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)