firehol/m4/ax_need_egrep.m4
Phil Whineray e723f3ba19 fireqos now has same command detection as firehol
Update pre-commit script to detect entries missing from configure script
Update unittest to run fireqos without a PATH set
Update unittest with a view to running code coverage check
2015-10-27 21:35:21 +00:00

30 lines
868 B
Plaintext

# SYNOPSIS
#
# AX_NEED_EGREP
#
# DESCRIPTION
#
# Check if an egrep implementation is available. Bail-out if not found.
#
# This work is heavily based upon ax_need_awk.m4 script by
# Francesco Salvestrini <salvestrini@users.sourceforge.net>, here
# http://www.gnu.org/software/autoconf-archive/ax_need_awk.html
#
# LICENSE
#
# Copyright (c) 2015 Phil Whineray <phil@sanewall.org>
# Copyright (c) 2009 Francesco Salvestrini <salvestrini@users.sourceforge.net>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
AC_DEFUN([AX_NEED_EGREP],[
AC_REQUIRE([AC_PROG_EGREP])
AS_IF([test "x$EGREP" = "x"],[
AC_MSG_ERROR([cannot find egrep, bailing out])
])
])