summaryrefslogtreecommitdiff
path: root/Build/source/libs/gmp/m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-22 12:57:00 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-22 12:57:00 +0000
commit6a25d658147c100681ee893ce36f28ef9b689995 (patch)
tree25b58b01d4fee263307cfad827fcb09e7a3cfb6f /Build/source/libs/gmp/m4
parent4f62c53b606577c3477d7a1af116a102f07abb71 (diff)
libs/gmp: Added GMP_H_EXTERN_INLINE to configure.ac, hoping to fix a build problem
git-svn-id: svn://tug.org/texlive/trunk@35881 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gmp/m4')
-rw-r--r--Build/source/libs/gmp/m4/gmp-extern-inline.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/Build/source/libs/gmp/m4/gmp-extern-inline.m4 b/Build/source/libs/gmp/m4/gmp-extern-inline.m4
new file mode 100644
index 00000000000..c3dca4137b2
--- /dev/null
+++ b/Build/source/libs/gmp/m4/gmp-extern-inline.m4
@@ -0,0 +1,33 @@
+# Autoconf macros for the GNU MP Library.
+# Copyright (C) 2000-2014 Free Software Foundation, Inc.
+#
+# Copyright (C) 2014 Peter Breitenlohner <tex-live@tug.org>
+# Extracted from gmp-6.0.0/acinclude.m4 and adapted for TeX Live.
+#
+# This file is free software; the copyright holders
+# give unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# GMP_H_EXTERN_INLINE
+# -------------------
+# If the compiler has an "inline" of some sort, check whether the
+# #ifdef's in gmp.h recognise it.
+
+AC_DEFUN([GMP_H_EXTERN_INLINE], [dnl
+AC_REQUIRE([AC_C_INLINE])
+AS_CASE([$ac_cv_c_inline],
+ [no], [],
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#define __GMP_WITHIN_CONFIGURE_INLINE 1
+#include "gmp-tmp.h"
+#ifndef __GMP_EXTERN_INLINE
+die die die
+#endif]],
+ [])],
+ [], [dnl
+AS_CASE([$ac_cv_c_inline],
+ [yes], [tmp_inline=inline],
+ [tmp_inline=$ac_cv_c_inline])
+AC_MSG_WARN([gmp.h doesnt recognise compiler "$tmp_inline", inlines will be unavailable])])])
+])
+
+