From: Ken Raeburn Date: Sun, 3 Apr 2011 23:21:52 +0000 (+0000) Subject: Don't check for stdarg.h X-Git-Tag: krb5-1.10-alpha1~491 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=19ee523a592c3532b1ab309a4b27630695d3cf0c;p=krb5.git Don't check for stdarg.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24832 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 408035aae..390a747fb 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -726,49 +726,6 @@ AC_DEFUN(KRB5_AC_NEED_DAEMON, [ KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H #include #endif],daemon,1)])dnl -dnl -dnl Check if stdarg or varargs is available *and compiles*; prefer stdarg. -dnl (This was sent to djm for incorporation into autoconf 3/12/1996. KR) -dnl -AC_DEFUN(AC_HEADER_STDARG, [ - -AC_MSG_CHECKING([for stdarg.h]) -AC_CACHE_VAL(ac_cv_header_stdarg_h, -[AC_TRY_COMPILE([#include ], [ - } /* ac_try_compile will have started a function body */ - int aoeu (char *format, ...) { - va_list v; - int i; - va_start (v, format); - i = va_arg (v, int); - va_end (v); -],ac_cv_header_stdarg_h=yes,ac_cv_header_stdarg_h=no)])dnl -AC_MSG_RESULT($ac_cv_header_stdarg_h) -if test $ac_cv_header_stdarg_h = yes; then - AC_DEFINE(HAVE_STDARG_H, 1, [Define if stdarg available and compiles]) -else - -AC_MSG_CHECKING([for varargs.h]) -AC_CACHE_VAL(ac_cv_header_varargs_h, -[AC_TRY_COMPILE([#include ],[ - } /* ac_try_compile will have started a function body */ - int aoeu (va_alist) va_dcl { - va_list v; - int i; - va_start (v); - i = va_arg (v, int); - va_end (v); -],ac_cv_header_varargs_h=yes,ac_cv_header_varargs_h=no)])dnl -AC_MSG_RESULT($ac_cv_header_varargs_h) -if test $ac_cv_header_varargs_h = yes; then - AC_DEFINE(HAVE_VARARGS_H, 1, [Define if varargs available and compiles]) -else - AC_MSG_ERROR(Neither stdarg nor varargs compile?) -fi - -fi dnl stdarg test failure - -])dnl dnl dnl KRB5_AC_NEED_LIBGEN --- check if libgen needs to be linked in for diff --git a/src/configure.in b/src/configure.in index 8bb6a10e3..5ddaef20d 100644 --- a/src/configure.in +++ b/src/configure.in @@ -67,7 +67,7 @@ LIBUTIL=-lutil ]) AC_SUBST(LIBUTIL) # for kdc -AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h sys/sockio.h ifaddrs.h unistd.h) +AC_CHECK_HEADERS(syslog.h sys/select.h sys/sockio.h ifaddrs.h unistd.h) AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf vasprintf vsnprintf) AC_CHECK_FUNCS(strlcpy) EXTRA_SUPPORT_SYMS= @@ -209,7 +209,6 @@ AC_SUBST(MKSTEMP_OBJ) AC_SUBST(MKSTEMP_ST_OBJ) AC_SUBST(EXTRA_SUPPORT_SYMS) -AC_HEADER_STDARG DECLARE_SYS_ERRLIST AC_CHECK_HEADERS(unistd.h paths.h regex.h regexpr.h fcntl.h memory.h ifaddrs.h sys/filio.h byteswap.h machine/endian.h machine/byte_order.h sys/bswap.h endian.h pwd.h arpa/inet.h alloca.h dlfcn.h limits.h pthread.h semaphore.h) AC_CHECK_HEADER(regexp.h, [], [], @@ -477,7 +476,6 @@ AC_CHECK_HEADER(termios.h, KRB5_SIGTYPE AC_CHECK_HEADERS(stdlib.h string.h stddef.h sys/types.h sys/file.h sys/param.h sys/stat.h sys/time.h netinet/in.h sys/uio.h sys/filio.h sys/select.h time.h paths.h errno.h) -AC_HEADER_STDARG KRB5_AC_INET6 # If compiling with IPv6 support, test if in6addr_any functions.