|
@ -46,6 +46,9 @@ case $host_os in |
|
|
CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" |
|
|
CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" |
|
|
AC_DEFINE([SPT_TYPE], [SPT_REUSEARGV]) |
|
|
AC_DEFINE([SPT_TYPE], [SPT_REUSEARGV]) |
|
|
;; |
|
|
;; |
|
|
|
|
|
*netbsd*) |
|
|
|
|
|
HOST_OS=netbsd |
|
|
|
|
|
;; |
|
|
*openbsd*) |
|
|
*openbsd*) |
|
|
AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD has __bounded__]) |
|
|
AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD has __bounded__]) |
|
|
AC_DEFINE([HAVE_ATTRIBUTE__DEAD], [1], [OpenBSD has __dead]) |
|
|
AC_DEFINE([HAVE_ATTRIBUTE__DEAD], [1], [OpenBSD has __dead]) |
|
@ -61,6 +64,7 @@ esac |
|
|
AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) |
|
|
AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) |
|
|
AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) |
|
|
AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) |
|
|
AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) |
|
|
AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) |
|
|
|
|
|
AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) |
|
|
AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) |
|
|
AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) |
|
|
|
|
|
|
|
|
AC_CHECK_FUNC([dl_iterate_phdr],, |
|
|
AC_CHECK_FUNC([dl_iterate_phdr],, |
|
@ -139,9 +143,15 @@ AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes]) |
|
|
|
|
|
|
|
|
# overrides for arc4random implementations with known issues |
|
|
# overrides for arc4random implementations with known issues |
|
|
AM_CONDITIONAL([HAVE_ARC4RANDOM], |
|
|
AM_CONDITIONAL([HAVE_ARC4RANDOM], |
|
|
[test "x$HOST_OS" != xdarwin -a "x$HOST_OS" != xfreebsd -a "x$ac_cv_func_arc4random" = xyes]) |
|
|
|
|
|
|
|
|
[test "x$HOST_OS" != xdarwin \ |
|
|
|
|
|
-a "x$HOST_OS" != xfreebsd \ |
|
|
|
|
|
-a "x$HOST_OS" != xnetbsd \ |
|
|
|
|
|
-a "x$ac_cv_func_arc4random" = xyes]) |
|
|
AM_CONDITIONAL([HAVE_ARC4RANDOM_UNIFORM], |
|
|
AM_CONDITIONAL([HAVE_ARC4RANDOM_UNIFORM], |
|
|
[test "x$HOST_OS" != xdarwin -a "x$HOST_OS" != xfreebsd -a "x$ac_cv_func_arc4random_uniform" = xyes]) |
|
|
|
|
|
|
|
|
[test "x$HOST_OS" != xdarwin \ |
|
|
|
|
|
-a "x$HOST_OS" != xfreebsd \ |
|
|
|
|
|
-a "x$HOST_OS" != xnetbsd \ |
|
|
|
|
|
-a "x$ac_cv_func_arc4random_uniform" = xyes]) |
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ |
|
|
AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ |
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
|
|