[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] longlong: skip, rather than fail, on cross-compilation
From: |
Eric Blake |
Subject: |
[PATCH] longlong: skip, rather than fail, on cross-compilation |
Date: |
Fri, 18 Feb 2011 10:47:15 -0700 |
* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
when cross-compiling; regression from 2011-02-16.
Signed-off-by: Eric Blake <address@hidden>
---
It turned out to be a simple fix (an empty 4th argument is fatal,
so to skip cross-compilation, you have to provide an explicit
no-op argument). Pushing this to gnulib, and the similar patch
to autoconf.
ChangeLog | 6 ++++++
m4/longlong.m4 | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c2c1946..fad8587 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-18 Eric Blake <address@hidden>
+
+ longlong: skip, rather than fail, on cross-compilation
+ * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
+ when cross-compiling; regression from 2011-02-16.
+
2011-02-17 Paul Eggert <address@hidden>
* NEWS: Mention 2011-02-08 change to stdlib.
diff --git a/m4/longlong.m4 b/m4/longlong.m4
index 04c8303..aed816c 100644
--- a/m4/longlong.m4
+++ b/m4/longlong.m4
@@ -1,4 +1,4 @@
-# longlong.m4 serial 15
+# longlong.m4 serial 16
dnl Copyright (C) 1999-2007, 2009-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -45,7 +45,8 @@ AC_DEFUN([AC_TYPE_LONG_LONG_INT],
}
return 0;]])],
[],
- [ac_cv_type_long_long_int=no])
+ [ac_cv_type_long_long_int=no],
+ [:])
fi
fi])
if test $ac_cv_type_long_long_int = yes; then
--
1.7.4