diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-20 07:04:13 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-20 07:04:13 +0000 |
commit | a8af4ed87437b2565eb2d098d7b6c30b5a74dd87 (patch) | |
tree | afaebe7c4c0baf5a77bdbb00b7ee57c972a8e910 /configure.in | |
parent | 870988ff0cde7aff6794e9a6a27904562cad9291 (diff) | |
download | monitoring-plugins-a8af4ed87437b2565eb2d098d7b6c30b5a74dd87.tar.gz |
Fixed va_copy problem on AIX by copying samba's configure.in
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@914 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/configure.in b/configure.in index be3a2121..8d8e1e3e 100644 --- a/configure.in +++ b/configure.in | |||
@@ -33,7 +33,7 @@ jm_PREREQ_ERROR | |||
33 | AC_FUNC_ERROR_AT_LINE | 33 | AC_FUNC_ERROR_AT_LINE |
34 | 34 | ||
35 | AC_CONFIG_LIBOBJ_DIR(lib) | 35 | AC_CONFIG_LIBOBJ_DIR(lib) |
36 | AC_FUNC_GETLOADAVG($topdir/lib) | 36 | AC_FUNC_GETLOADAVG([lib]) |
37 | 37 | ||
38 | ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD]) | 38 | ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD]) |
39 | dnl AM_WITH_REGEX | 39 | dnl AM_WITH_REGEX |
@@ -557,12 +557,22 @@ if test x"$ac_cv_compiler_supports_ll" = x"yes"; then | |||
557 | AC_DEFINE(COMPILER_SUPPORTS_LL,1,[Define if compiler support long long]) | 557 | AC_DEFINE(COMPILER_SUPPORTS_LL,1,[Define if compiler support long long]) |
558 | fi | 558 | fi |
559 | 559 | ||
560 | AC_CACHE_CHECK([for __va_copy],ac_cv_HAVE_VA_COPY,[ | 560 | AC_CACHE_CHECK([for va_copy],ac_cv_HAVE_VA_COPY,[ |
561 | AC_TRY_LINK([#include <stdarg.h> | 561 | AC_TRY_LINK([#include <stdarg.h> |
562 | va_list ap1,ap2;], [__va_copy(ap1,ap2);], | 562 | va_list ap1,ap2;], [va_copy(ap1,ap2);], |
563 | ac_cv_HAVE_VA_COPY=yes,ac_cv_HAVE_VA_COPY=no)]) | 563 | ac_cv_HAVE_VA_COPY=yes, |
564 | ac_cv_HAVE_VA_COPY=no)]) | ||
564 | if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then | 565 | if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then |
565 | AC_DEFINE(HAVE_VA_COPY,1,[Define if system has va_copy]) | 566 | AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available]) |
567 | else | ||
568 | AC_CACHE_CHECK([for __va_copy],ac_cv_HAVE___VA_COPY,[ | ||
569 | AC_TRY_LINK([#include <stdarg.h> | ||
570 | va_list ap1,ap2;], [__va_copy(ap1,ap2);], | ||
571 | ac_cv_HAVE___VA_COPY=yes, | ||
572 | ac_cv_HAVE___VA_COPY=no)]) | ||
573 | if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then | ||
574 | AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available]) | ||
575 | fi | ||
566 | fi | 576 | fi |
567 | 577 | ||
568 | AC_CHECK_FUNCS(vsnprintf snprintf asprintf vasprintf) | 578 | AC_CHECK_FUNCS(vsnprintf snprintf asprintf vasprintf) |