From 9ab2b3f7496c05091ad2ac31ede2e8e806b85e38 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Tue, 15 Jan 2013 12:52:08 +0800 Subject: [PATCH 1/2] Fix missing AC_PROG_SED on older Autoconfs For pre-2.59b Autoconfs, AC_PROG_SED is not available [1]; on such systems, avoid calling AC_PROG_SED, while providing a sensible SED. This aids backporting to Autoconf 2.59. [1] http://lists.gnu.org/archive/html/autotools-announce/2004-08/msg00002.html --- configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index a69650f6..9904bdb1 100644 --- a/configure.in +++ b/configure.in @@ -35,11 +35,16 @@ esac dnl Checks for programs. AC_PROG_CC AM_PROG_CC_C_O -AC_PROG_SED AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MKDIR_P +# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older +# versions +ifdef([AC_PROG_SED], [AC_PROG_SED], [ +AC_CHECK_PROGS(SED, [gsed sed]) +]) + AC_PROG_GCC_TRADITIONAL # We need to test for at least gcc 2.95 here, because older versions don't From 74d4c44cf2ce266471a2b98cc64f5502ae906019 Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Mon, 3 Jan 2011 15:09:21 -0700 Subject: [PATCH 2/2] Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5) This is a backport of ad03952. --- configure.in | 4 ++-- m4/ac_backport_259_ssizet.m4 | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 m4/ac_backport_259_ssizet.m4 diff --git a/configure.in b/configure.in index 9904bdb1..5cd4786b 100644 --- a/configure.in +++ b/configure.in @@ -6,7 +6,7 @@ dnl See LICENSE for copying information. dnl dnl Original version Dug Song -AC_PREREQ(2.59c) +AC_PREREQ(2.59) AC_INIT(event.c) AC_CONFIG_MACRO_DIR([m4]) @@ -37,7 +37,7 @@ AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL AC_PROG_LN_S -AC_PROG_MKDIR_P +# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older # versions diff --git a/m4/ac_backport_259_ssizet.m4 b/m4/ac_backport_259_ssizet.m4 new file mode 100644 index 00000000..75fde386 --- /dev/null +++ b/m4/ac_backport_259_ssizet.m4 @@ -0,0 +1,3 @@ +AN_IDENTIFIER([ssize_t], [AC_TYPE_SSIZE_T]) +AC_DEFUN([AC_TYPE_SSIZE_T], [AC_CHECK_TYPE(ssize_t, int)]) +