aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-02 21:07:40 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-02 21:07:40 +0000
commitd15f0203a647b0359e66772745549acd6dc3f013 (patch)
treeb0ee85c06087f9736a4df730a022b07bfcb0647f /acinclude.m4
parent88e862db88ee21c5f08dbf27f6604c67c9a39b0c (diff)
From Heikki Vatiainen:
check for GNU "sed", and skip the "bad sed" checks if it's found; check for "/bin/sed" as well as "/usr/bin/sed" on Solaris; put the "sed" checks into a separate section of code with its own test for the host OS, to make it a bit cleaner to add any checks needed on other OSes. svn path=/trunk/; revision=4681
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m418
1 files changed, 17 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e6c9ad8f89..42d7063b21 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2,7 +2,7 @@ dnl Macros that test for specific features.
dnl This file is part of the Autoconf packaging for Ethereal.
dnl Copyright (C) 1998-2000 by Gerald Combs.
dnl
-dnl $Id: acinclude.m4,v 1.40 2002/01/30 08:46:27 guy Exp $
+dnl $Id: acinclude.m4,v 1.41 2002/02/02 21:07:40 guy Exp $
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
@@ -519,3 +519,19 @@ AC_DEFUN(AC_ETHEREAL_RPM_CHECK,
fi
fi
])
+
+#
+# AC_ETHEREAL_GNU_SED_CHECK
+# Checks if GNU sed is the first sed in PATH.
+#
+AC_DEFUN([AC_ETHEREAL_GNU_SED_CHECK],
+[
+ AC_MSG_CHECKING(for GNU sed as first sed in PATH)
+ if ( sh -c "sed --version" </dev/null 2> /dev/null | grep "GNU sed" 2>&1 > /dev/null ) ; then
+ AC_MSG_RESULT(yes)
+ HAVE_GNU_SED=yes
+ else
+ AC_MSG_RESULT(no)
+ HAVE_GNU_SED=no
+ fi
+])