+Fri Feb 27 21:43:41 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * aclocal.m4 (KRB5_AC_REGEX_FUNCS): Take the regular expression
+ function code from lib/krb5/os/configure.in and turn it
+ into a generalized regular expression function tester.
+
Wed Feb 18 15:23:08 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in (thisconfigdir): Remove trailing slash from
])dnl
+dnl
+dnl KRB5_AC_REGEX_FUNCS --- check for different regular expression
+dnl support functions
+dnl
+AC_DEFUN(KRB5_AC_REGEX_FUNCS,[
+AC_CHECK_FUNCS(re_comp re_exec regexec)
+dnl
+dnl regcomp is present but non-functional on Solaris 2.4
+dnl
+AC_C_CROSS
+AC_MSG_CHECKING(for working regcomp)
+AC_CACHE_VAL(ac_cv_func_regcomp,[
+AC_TRY_RUN([
+#include <sys/types.h>
+#include <regex.h>
+regex_t x; regmatch_t m;
+int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); }
+], ac_cv_func_regcomp=yes, ac_cv_func_regcomp=no)])
+AC_MSG_RESULT($ac_cv_func_regcomp)
+test $ac_cv_func_regcomp = yes && AC_DEFINE(HAVE_REGCOMP)
+dnl
+dnl Check for the compile and step functions
+dnl
+save_LIBS="$LIBS"
+LIBS=-lgen
+dnl this will fail if there's no compile/step in -lgen, or if there's
+dnl no -lgen. This is fine.
+AC_CHECK_FUNCS(compile step)
+LIBS="$save_LIBS"
+dnl
+dnl Set GEN_LIB if necessary
+dnl
+AC_CHECK_LIB(gen, compile, GEN_LIB=-lgen, GEN_LIB=)
+AC_SUBST(GEN_LIB)
+])dnl
dnl
dnl AC_KRB5_TCL - determine if the TCL library is present on system
dnl