dnl***************************************************************************
-dnl Copyright (c) 2003-2015,2016 Free Software Foundation, Inc. *
+dnl Copyright (c) 2003-2016,2017 Free Software Foundation, Inc. *
dnl *
dnl Permission is hereby granted, free of charge, to any person obtaining a *
dnl copy of this software and associated documentation files (the *
dnl authorization. *
dnl***************************************************************************
dnl
-dnl $Id: aclocal.m4,v 1.135 2016/09/10 22:09:38 tom Exp $
+dnl $Id: aclocal.m4,v 1.137 2017/01/21 22:18:40 tom Exp $
dnl
dnl Author: Thomas E. Dickey
dnl
fi
])
dnl ---------------------------------------------------------------------------
-dnl CF_ENABLE_STRING_HACKS version: 4 updated: 2016/09/10 15:33:21
+dnl CF_ENABLE_STRING_HACKS version: 5 updated: 2016/10/08 17:34:11
dnl ----------------------
dnl On a few platforms, the compiler and/or loader nags with untruthful
dnl comments stating that "most" uses of strcat/strcpy/sprintf are incorrect,
if test "x$with_string_hacks" = "xyes"; then
AC_DEFINE(USE_STRING_HACKS,1,[Define to 1 to work around bogus compiler/loader warnings])
AC_MSG_WARN(enabling string-hacks to work around bogus compiler/loader warnings)
- AC_CHECK_FUNC(strlcat,,[
+ AC_CHECK_FUNC(strlcat,[
+ AC_DEFINE(HAVE_STRLCAT,1,[Define to 1 if we have strlcat function])
+ ],[
AC_CHECK_LIB(bsd,strlcat,[
CF_ADD_LIB(bsd)
AC_CHECK_HEADERS(bsd/string.h)
AC_SUBST(MAKE_LOWER_TAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_MATH_LIB version: 8 updated: 2010/05/29 16:31:02
+dnl CF_MATH_LIB version: 9 updated: 2017/01/21 11:06:25
dnl -----------
dnl Checks for libraries. At least one UNIX system, Apple Macintosh
dnl Rhapsody 5.5, does not have -lm. We cannot use the simpler
cf_cv_need_libm,[
AC_TRY_LINK([
#include <stdio.h>
+ #include <stdlib.h>
#include <math.h>
],
[double x = rand(); printf("result = %g\n", ]ifelse([$2],,sin(x),$2)[)],