* util.c (strstr): Replace crusty OS specific ifdef with configure
authorEzra Peisach <epeisach@mit.edu>
Mon, 10 Jun 1996 02:13:14 +0000 (02:13 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 10 Jun 1996 02:13:14 +0000 (02:13 +0000)
generated one.

* configure.in: Change AC_HAVE_FUNCS to AC_CHECK_FUNCS (newer
naming convention). Check for strstr.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8282 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/edit/ChangeLog
src/admin/edit/configure.in
src/admin/edit/util.c

index 717817b8d8dba3d7ee8944a4905ac0b5fac2016a..22967bf1a33eec1924ce9ca6148e427837ba5843 100644 (file)
@@ -1,3 +1,11 @@
+Sun Jun  9 22:04:50 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * util.c (strstr): Replace crusty OS specific ifdef with configure
+               generated one. 
+
+       * configure.in: Change AC_HAVE_FUNCS to AC_CHECK_FUNCS (newer
+               naming convention). Check for strstr.
+
 Sat Jun  8 09:54:38 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * configure.in: Remove kdb4 library usage.
index be4c128fd14cefc8d4422085d9dc08e30565ceed..8cb6d044ab9bc04a75b3c84ccb18757135d0cf47 100644 (file)
@@ -4,7 +4,7 @@ AC_PROG_INSTALL
 AC_PROG_YACC
 AC_CONST
 AC_HEADER_STDC
-AC_HAVE_FUNCS(getcwd)
+AC_CHECK_FUNCS(getcwd strstr)
 SS_RULES
 USE_KADM_LIBRARY
 USE_KDB5_LIBRARY
index 78de2cd6f906d8cbe49661f2598dc8f6f5e7684b..859689454c5f8685f31878f3b2660db0e04ce2bb 100644 (file)
@@ -33,7 +33,7 @@
 #include "k5-int.h"
 #include "./kdb5_edit.h"
 
-#if defined(sysvimp) || ( defined(mips) && defined(SYSTYPE_BSD43)) || (defined(vax) && !defined(ultrix))
+#if !defined(HAVE_STRSTR)
 char *
 strstr(s1, s2)
 char *s1;