Commit ae69fc05 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(HAVE_ATTRIBUTE_FORMAT_PRINTF): Define it if the compiler supports the

	"__attribute__((format (printf, 1, 2)))" construct.
parent 55b597cf
dnl $Id: configure.in,v 1.32 1996/06/14 16:12:40 byers Exp $ dnl $Id: configure.in,v 1.33 1996/07/28 23:28:00 ceder Exp $
dnl Configuration for LysKOM dnl Configuration for LysKOM
dnl Copyright (C) 1993, 1994, 1995 Lysator Academic Computer Association. dnl Copyright (C) 1993, 1994, 1995 Lysator Academic Computer Association.
dnl dnl
...@@ -18,7 +18,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ...@@ -18,7 +18,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl dnl
dnl Please mail bug reports to bug-lyskom@lysator.liu.se. dnl Please mail bug reports to bug-lyskom@lysator.liu.se.
dnl dnl
AC_REVISION($Revision: 1.32 $) AC_REVISION($Revision: 1.33 $)
AC_INIT(src/server/lyskomd.h) AC_INIT(src/server/lyskomd.h)
AC_ARG_WITH([gnu-malloc], AC_ARG_WITH([gnu-malloc],
[ --with-gnu-malloc use GNU malloc], [ --with-gnu-malloc use GNU malloc],
...@@ -71,6 +71,16 @@ AC_MSG_RESULT($kom_cv_sys_hpux_source) ...@@ -71,6 +71,16 @@ AC_MSG_RESULT($kom_cv_sys_hpux_source)
[if test $kom_cv_sys_hpux_source = yes ; then] [if test $kom_cv_sys_hpux_source = yes ; then]
AC_DEFINE(_HPUX_SOURCE) AC_DEFINE(_HPUX_SOURCE)
[fi] [fi]
AC_MSG_CHECKING([if the compiler understands __attribute__ ((format))])
AC_CACHE_VAL([kom_cv_c_attribute_format_printf],
[AC_TRY_COMPILE([extern void log (const char *f, ...)
__attribute__ ((format (printf, 1, 2)));],,
[kom_cv_c_attribute_format_printf=yes],
[kom_cv_c_attribute_format_printf=no])])
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_SUBST(SRCTOPDIR) AC_SUBST(SRCTOPDIR)
[SRCTOPDIR=`cd $srcdir;pwd`] [SRCTOPDIR=`cd $srcdir;pwd`]
AC_SUBST(BUILDTOPDIR) AC_SUBST(BUILDTOPDIR)
......
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