[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.20,1.21

Karl DeBisschop kdebisschop at users.sourceforge.net
Wed Nov 6 23:07:05 CET 2002


Update of /cvsroot/nagiosplug/nagiosplug
In directory usw-pr-cvs1:/tmp/cvs-serv14076

Modified Files:
	configure.in 
Log Message:
test snprintf function family for ifdefs in snprintf.c

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** configure.in	30 Oct 2002 05:07:29 -0000	1.20
--- configure.in	7 Nov 2002 07:06:34 -0000	1.21
***************
*** 13,16 ****
--- 13,27 ----
  AC_PREFIX_DEFAULT(/usr/local/nagios)
  
+ #AC_DEFUN(AC_HAVE_DECL,
+ #[
+ # AC_CACHE_CHECK([for $1 declaration],ac_cv_have_$1_decl,[
+ #    AC_TRY_COMPILE([$2],[int i = (int)$1],
+ #        ac_cv_have_$1_decl=yes,ac_cv_have_$1_decl=no)])
+ # if test x"$ac_cv_have_$1_decl" = x"yes"; then
+ #    AC_DEFINE([HAVE_]translit([$1], [a-z], [A-Z])[_DECL],1,[Whether $1() is available])
+ # fi
+ #])
+ 
+ 
  dnl Figure out how to invoke "install" and what install options to use.
  
***************
*** 346,350 ****
  AC_CHECK_FUNCS(getopt_long_only,,LIBS="$LIBS -lgetopt" DEPLIBS="$DEPLIBS libgetopt.a")
  
! AC_CHECK_FUNC(asprintf,,LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a")
  
  dnl Checks for library functions.
--- 357,374 ----
  AC_CHECK_FUNCS(getopt_long_only,,LIBS="$LIBS -lgetopt" DEPLIBS="$DEPLIBS libgetopt.a")
  
! #AC_HAVE_DECL(asprintf, [#include <stdio.h>])
! #AC_HAVE_DECL(vasprintf, [#include <stdio.h>])
! #AC_HAVE_DECL(vsnprintf, [#include <stdio.h>])
! #AC_HAVE_DECL(snprintf, [#include <stdio.h>])
! 
! AC_CHECK_FUNC(snprintf,AC_DEFINE(HAVE_SNPRINTF,1,[Define if snprintf is present]))
! AC_CHECK_FUNC(vsnprintf,AC_DEFINE(HAVE_VSNPRINTF,1,[Define if vsnprintf is present]))
! AC_CHECK_FUNC(vasprintf,AC_DEFINE(HAVE_VASPRINTF,1,[Define if vasprintf is present]))
! AC_CHECK_FUNC(asprintf,AC_DEFINE(HAVE_ASPRINTF,1,[Define if asprintf is present]))
! 
! if test x"$ac_cv_HAVE_SNPRINTF" = x"no" -o x"$ac_cv_HAVE_VSNPRINTF" = x"no" -o x"$ac_cv_HAVE_VASPRINTF" = x"no" -o x"$ac_cv_HAVE_ASPRINTF" = x"no"; then
!   LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
! fi
! 
  
  dnl Checks for library functions.





More information about the Commits mailing list