changeset 10899:3a5b73f13a99

Avoid an error when autoconf 2.59 is used.
author Bruno Haible <bruno@clisp.org>
date Thu, 18 Dec 2008 03:23:14 +0100
parents c6a367263f52
children 7bc71464d757
files ChangeLog m4/errno_h.m4
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
+	* m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
+
 2008-12-17  Bruno Haible  <bruno@clisp.org>
 
 	* lib/mbsinit.c: Include verify.h. Verify an assumption.
--- a/m4/errno_h.m4
+++ b/m4/errno_h.m4
@@ -1,4 +1,4 @@
-# errno_h.m4 serial 1
+# errno_h.m4 serial 2
 dnl Copyright (C) 2004, 2006, 2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -111,3 +111,9 @@
     AC_SUBST($1[_VALUE])
   fi
 ])
+
+dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.
+dnl Remove this when we can assume autoconf >= 2.61.
+m4_ifdef([AC_COMPUTE_INT], [], [
+  AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])])
+])