Fri Feb 27 18:00:15 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+ * configure.in: Move the regular expression function tests into
+ aclocal.m4, since they also need to be shared by
+ lib/kadm5's configure script.
+
* configure.in: Move tests from all of krb5's subdirectories into
this configure.in, and make it generate makefiles for all
of the subdirectories.
HAS_ANSI_VOLATILE
AC_HEADER_STDARG
AC_CHECK_HEADERS(unistd.h paths.h regex.h regexp.h regexpr.h)
-AC_CHECK_FUNCS(flock fchmod chmod strftime strptime geteuid setenv unsetenv getenv setsid re_comp)
+AC_CHECK_FUNCS(flock fchmod chmod strftime strptime geteuid setenv unsetenv getenv setsid)
AC_REPLACE_FUNCS(vfprintf vsprintf strdup strcasecmp strerror memmove daemon getuid sscanf syslog)
-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)
-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
-AC_CHECK_LIB(gen,compile,SHLIB_GEN=-lgen,SHLIB_GEN='')
-AC_SUBST(SHLIB_GEN)
+KRB5_AC_REGEX_FUNCS
dnl
KRB5_BUILD_LIBRARY_WITH_DEPS
KRB5_BUILD_LIBOBJS