+2006-05-07 Bruno Haible <bruno@clisp.org>
+
+ * gettext.m4 (gt_INTL_SUBDIR_CORE): Fix test of __builtin_expect so
+ that it works correctly with non-gcc compilers.
+
2006-04-17 Bruno Haible <bruno@clisp.org>
* nls.m4 (AM_MKINSTALLDIRS): Remove macro.
-# gettext.m4 serial 46 (gettext-0.15)
+# gettext.m4 serial 47 (gettext-0.15)
dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gt_INTTYPES_PRI])dnl
AC_REQUIRE([gl_LOCK])dnl
- AC_TRY_COMPILE(
+ AC_TRY_LINK(
[int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],
[],
[AC_DEFINE([HAVE_BUILTIN_EXPECT], 1,