Commit 7d619693 authored by Niels Möller's avatar Niels Möller

Added missing LSH_RPATH_FIX between the checks for

gmp and liboop.
Use AH_BOTTOM to define NORETURN, PRINTF_STYLE and UNUSED.

Rev: configure.ac:1.28
parent cb4ce21f
dnl $Id$
dnl Process this file with autoconf to produce a configure script.
AC_INIT([lsh], [1.5], [bug-lsh@gnu.org])
AC_PREREQ(2.52)
......@@ -712,6 +710,8 @@ if test x$lsh_cv_sys_unix98_ptys = xyes; then
fi
# Check for gcc's __attribute__ construction
# FIXME: Move this into acinclude.m4.
AC_CACHE_CHECK(for __attribute__,
lsh_cv_c_attribute,
[ AC_TRY_COMPILE([
......@@ -734,6 +734,18 @@ if test "x$lsh_cv_c_attribute" = "xyes"; then
AC_DEFINE(HAVE_GCC_ATTRIBUTE)
fi
AH_BOTTOM(
[#if __GNUC__ && HAVE_GCC_ATTRIBUTE
# define NORETURN __attribute__ ((__noreturn__))
# define PRINTF_STYLE(f, a) __attribute__ ((__format__ (__printf__, f, a)))
# define UNUSED __attribute__ ((__unused__))
#else
# define NORETURN
# define PRINTF_STYLE(f, a)
# define UNUSED
#endif
])
# Check for gcc's __FUNCTION__ variable
AC_CACHE_CHECK(for __FUNCTION__,
lsh_cv_c_FUNCTION,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment