From: John Gilmore Date: Fri, 17 Mar 1995 04:53:15 +0000 (+0000) Subject: * configure.in: Replace CHECK_STDARG with AC_CHECK_HEADERS. X-Git-Tag: krb5-1.0-beta5~550 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce2c38e41c226b9135c581208433c0b53b48ebc7;p=krb5.git * configure.in: Replace CHECK_STDARG with AC_CHECK_HEADERS. * main.c (print_status): Use HAVE_STDARG_H to control whether to declare with ", ..."; not STDARG_PROTOTYPES. * ksu.h: Don't include or , since they are already included by "com_err.h". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5138 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index b1a0a288d..730d0c0a0 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,11 @@ +Thu Mar 16 20:50:32 1995 John Gilmore (gnu at toad.com) + + * configure.in: Replace CHECK_STDARG with AC_CHECK_HEADERS. + * main.c (print_status): Use HAVE_STDARG_H to control whether to + declare with ", ..."; not STDARG_PROTOTYPES. + * ksu.h: Don't include or , since they + are already included by "com_err.h". + Thu Mar 2 12:32:17 1995 Theodore Y. Ts'o * Makefile.in (ISODELIB): Remove reference to $(ISODELIB). diff --git a/src/clients/ksu/configure.in b/src/clients/ksu/configure.in index 12a3773e4..9cb2ab837 100644 --- a/src/clients/ksu/configure.in +++ b/src/clients/ksu/configure.in @@ -8,5 +8,5 @@ AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE WITH_KRB5ROOT -CHECK_STDARG +AC_CHECK_HEADERS(stdarg.h) V5_AC_OUTPUT_MAKEFILE diff --git a/src/clients/ksu/ksu.h b/src/clients/ksu/ksu.h index 8fa0acc21..5fd836e61 100644 --- a/src/clients/ksu/ksu.h +++ b/src/clients/ksu/ksu.h @@ -34,11 +34,7 @@ #include #include #include -#ifdef STDARG_PROTOTYPES -#include -#else -#include -#endif +/* or is already included by com_err.h. */ #define NO_TARGET_FILE '.' #define SOURCE_USER_LOGIN "." diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 0a756d495..e4f426c25 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -41,7 +41,7 @@ int set_env_var(); void sweep_up(); char * ontty(); void init_auth_names(); -#ifdef STDARG_PROTOTYPES +#ifdef HAVE_STDARG_H void print_status( const char *fmt, ...); #else void print_status(); @@ -946,7 +946,7 @@ return 0; } -#ifdef STDARG_PROTOTYPES +#ifdef HAVE_STDARG_H void print_status( const char *fmt, ...) #else void print_status (va_alist) @@ -954,7 +954,7 @@ void print_status (va_alist) #endif { va_list ap; -#ifndef STDARG_PROTOTYPES +#ifndef HAVE_STDARG_H char *fmt; va_start (ap); fmt = va_arg (ap, char*);