that support it.
* configure.in (LOGINLIBS): Test for crypt() in crypt library only
modifies LOGINLIBS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12553
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-07-18 Ezra Peisach <epeisach@mit.edu>
+
+ * krcp.c: Provide format attribute for error() for versions of gcc
+ that support it.
+
+ * configure.in (LOGINLIBS): Test for crypt() in crypt library only
+ modifies LOGINLIBS.
+
2000-07-03 Ezra Peisach <epeisach@mit.edu>
* Makefile.in: Remove linking of krb5util library from
AC_PROG_INSTALL
dnl dbm libs for use of an_to_ln
AC_CHECK_LIB(util,main)
-AC_CHECK_LIB(crypt,crypt)
+save_LIBS="$LIBS"
+ LIBS=
+ AC_CHECK_LIB(crypt,crypt)
+ LOGINLIBS="$LOGINLIBS $LIBS"
+LIBS="$save_LIBS"
dnl
dnl AIX has them all; SCO might too
AC_CHECK_LIB(odm,main,
#define NULLBUF (struct buffer *) 0
#ifdef HAVE_STDARG_H
-void error KRB5_STDARG_P((char *fmt, ...));
+void error KRB5_STDARG_P((char *fmt, ...))
+#if !defined (__cplusplus) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7))
+ __attribute__ ((__format__ (__printf__, 1, 2)))
+#endif
+ ;
#else
/*VARARGS*/
void error KRB5_STDARG_P((char *, va_list));