+Fri Nov 18 00:34:29 1994 Mark Eichin <eichin@cygnus.com>
+
+ * configure.in: add caching to perror check (from epeisach).
+
Fri Oct 21 21:06:48 1994 (tytso@rsx-11)
* Makefile.in (SED): Don't specify an explicit pathname for sed.
AC_PROG_RANLIB
HAVE_YYLINENO
DECLARE_SYS_ERRLIST
-AC_CHECKING(for perror declaration)
-AC_HEADER_EGREP(perror, errno.h, AC_DEFINE(HDR_HAS_PERROR))
+dnl
+dnl Fancy caching of perror result...
+AC_MSG_CHECKING(for perror declaration)
+AC_CACHE_VAL(krb5_cv_decl_perror,
+[AC_HEADER_EGREP(perror, errno.h,
+ krb5_cv_decl_perror=yes, krb5_cv_decl_perror=no)])dnl
+AC_MSG_RESULT($krb5_cv_decl_perror)
+if test $krb5_cv_decl_perror = yes; then
+ AC_DEFINE(HDR_HAS_PERROR)
+fi
+dnl
CHECK_STDARG
AC_HAVE_HEADERS(stdlib.h)
CopySrcHeader(com_err.h,$(BUILDTOP)/include)