summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Eichin <eichin@mit.edu>1994-11-18 19:22:25 +0000
committerMark Eichin <eichin@mit.edu>1994-11-18 19:22:25 +0000
commit6b4e2cc592066e9d1f8fe93f2401d8482d6922b9 (patch)
tree7452227e050db701d598151cfa974550014a676a /src
parent480ea7ac0527387ae1b8c84949c7152ddfdc9b6a (diff)
downloadkrb5-6b4e2cc592066e9d1f8fe93f2401d8482d6922b9.tar.gz
krb5-6b4e2cc592066e9d1f8fe93f2401d8482d6922b9.tar.xz
krb5-6b4e2cc592066e9d1f8fe93f2401d8482d6922b9.zip
* configure.in: add caching to perror check (from epeisach).
[from 0954] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4686 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/et/ChangeLog4
-rw-r--r--src/util/et/configure.in13
2 files changed, 15 insertions, 2 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog
index 19e0b931b..2e7f1eb04 100644
--- a/src/util/et/ChangeLog
+++ b/src/util/et/ChangeLog
@@ -1,3 +1,7 @@
+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.
diff --git a/src/util/et/configure.in b/src/util/et/configure.in
index 8b0b695b5..c74139a03 100644
--- a/src/util/et/configure.in
+++ b/src/util/et/configure.in
@@ -10,8 +10,17 @@ AC_PROG_ARCHIVE
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)