Commit f452d983 authored by Per Cederqvist's avatar Per Cederqvist

Check for __attribute__((__noreturn__)). (Bug 57).

parent de2f16e0
dnl $Id: configure.in,v 1.77 2001/11/11 16:47:42 ceder Exp $
dnl $Id: configure.in,v 1.78 2001/12/28 21:21:04 ceder Exp $
dnl Configuration for LysKOM
dnl Copyright (C) 1993-2001 Lysator Academic Computer Association.
dnl
......@@ -18,7 +18,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
dnl Please mail bug reports to bug-lyskom@lysator.liu.se.
dnl
AC_REVISION($Revision: 1.77 $)
AC_REVISION($Revision: 1.78 $)
AC_INIT([lyskom-server], [2.0.5])
AC_CONFIG_SRCDIR([src/server/lyskomd.h])
AM_CONFIG_HEADER(config.h)
......@@ -233,6 +233,16 @@ AC_MSG_RESULT($kom_cv_c_attribute_format_printf)
[if test $kom_cv_c_attribute_format_printf = yes ; then]
AC_DEFINE(HAVE_ATTRIBUTE_FORMAT_PRINTF)
[fi]
AC_MSG_CHECKING([if the compiler understands __attribute__ ((__noreturn__))])
AC_CACHE_VAL([kom_cv_c_attribute_noreturn],
[AC_TRY_COMPILE([extern void log (const char *f, ...)
__attribute__ ((__noreturn__));],,
[kom_cv_c_attribute_noreturn=yes],
[kom_cv_c_attribute_noreturn=no])])
AC_MSG_RESULT($kom_cv_c_attribute_noreturn)
[if test $kom_cv_c_attribute_noreturn = yes ; then]
AC_DEFINE(HAVE_ATTRIBUTE_NORETURN)
[fi]
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_AWK
......
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