+Fri May 12 16:04:01 EDT 1995 Paul Park (pjpark@mit.edu)
+ * configure.in - Check for regex.h.
+ * kadmin5.c - Use regex.h only if present. Correctly calculate
+ length of argument string to build when command is
+ on command line.
+
+
Thu May 11 12:18:27 EDT 1995 Paul Park (pjpark@mit.edu)
* kadmin5.c - Change "programname" to be the last component of
argv[0]. Also correctly terminate generated
AC_SET_BUILDTOP
AC_PROG_INSTALL
AC_PROG_YACC
-AC_HAVE_HEADERS(pwd.h)
+AC_HAVE_HEADERS(pwd.h regex.h)
AC_HAVE_FUNCS(strptime re_comp regcomp getcwd)
AC_CONST
WITH_NETLIB
#if HAVE_PWD_H
#include <pwd.h>
#endif /* HAVE_PWD_H */
-#if HAVE_RE_COMP || HAVE_REGCOMP
+#if HAVE_REGEX_H
#include <regex.h>
-#endif /* HAVE_RE_COMP || HAVE_REGCOMP */
+#endif /* HAVE_REGEX_H */
/*
* Global storage.
for (i=optind; i<argc; i++)
n2alloc += strlen(argv[i]) + 1;
+ n2alloc++;
if (action = (char *) malloc(n2alloc)) {
for (i=optind; i<argc; i++) {
strcat(action, argv[i]);