Module Name: othersrc
Committed By: lukem
Date: Fri May 22 01:09:45 UTC 2009
Modified Files:
othersrc/usr.bin/tnftp: configure.ac
Log Message:
Add the time.h headers to accheck_includes, for the strptime check.
Remove the check for el_init in libedit; we're always replacing the
library and the presence of strvis() in some versions confuses other checks.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 othersrc/usr.bin/tnftp/configure.ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/usr.bin/tnftp/configure.ac
diff -u othersrc/usr.bin/tnftp/configure.ac:1.17 othersrc/usr.bin/tnftp/configure.ac:1.18
--- othersrc/usr.bin/tnftp/configure.ac:1.17 Wed May 20 13:28:20 2009
+++ othersrc/usr.bin/tnftp/configure.ac Fri May 22 01:09:45 2009
@@ -1,10 +1,10 @@
-# $NetBSD: configure.ac,v 1.17 2009/05/20 13:28:20 lukem Exp $
+# $NetBSD: configure.ac,v 1.18 2009/05/22 01:09:45 lukem Exp $
#
# Process this file with autoconf to produce a configure script.
AC_INIT([tnftp], [20090520], [[email protected]])
AC_PREREQ([2.61])
-AC_REVISION([$Revision: 1.17 $])
+AC_REVISION([$Revision: 1.18 $])
AS_SHELL_SANITIZE
@@ -88,9 +88,7 @@
[],
[AC_MSG_ERROR(
[no relevant library found containing tgetent])])
- AC_SEARCH_LIBS([el_init],
- [edit],
- [have_libedit=yes], [have_libedit=no])])
+ ])
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([socket],
@@ -137,6 +135,16 @@
# include <stdlib.h>
# include <string.h>
#endif
+#if defined(TIME_WITH_SYS_TIME)
+# include <sys/time.h>
+# include <time.h>
+#else
+# if defined(HAVE_SYS_TIME_H)
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
#if defined(HAVE_LIBGEN_H)
# include <libgen.h>
#endif