configure: remove obsolete macros
Remove macros marked obsolescent in autoconf 2.69 and
warned as obsolete in autoconf 2.71:
AC_HEADER_STDC()
AC_HEADER_TIME()
AC_TYPE_SIGNAL()
configure: only replace fts_open if required FTS_ flags aren't available
Use system fts_open() if it provides the flags we use:
FTS_COMFOLLOW|FTS_LOGICAL|FTS_NOSTAT|FTS_PHYSICAL|FTS_SEEDOT
configure: only replace glob if required GLOB_ flags aren't available
Use system glob() if it provides the flags we use:
GLOB_BRACE|GLOB_LIMIT|GLOB_NOCHECK|GLOB_TILDE
NetBSD/othersrc F4gmsgC — libexec/tnftpd tnftpd.h configure.ac, libexec/tnftpd/libnetbsd setprogname.c err.c
adapt __progname to setprogname() / getprogname()
Import setprogname() and getprogname() from
othersrc/usr.bin/tnftp/libnetbsd/setprogname.c rev 1.4.
Use getprogname() instead of __progname.
Fixes link error on modern NetBSD which correctly complained
about duplicate definition of __progname.
sync lib/libc/gen/stringlist.c 1.13
Functional changes since upstream 1.8:
- 1.11: Add sl_delete. Change sl_find() to use const char * argument.
- 1.10: Don't update the size of allocated storage until realloc successes.
Note: not updating to upstream 1.15 because that was a refactor to
use reallocarr() which I'm deferring for now.
Comment out other unneeded upstream code to minimise differences.
Update sl_find() and sl_delete() declarations in tnftpd.h
per include/stringlist.h rev 1.6.
NetBSD/othersrc Vxf7ceC — libexec/tnftpd tnftpd.h configure.ac, libexec/tnftpd/libnetbsd explicit_memset.c
provide explicit_memset() from NetBSD
Import NetBSD src/common/lib/libc/string/explicit_memset.c rev 1.4
for explicit_memset(3), because ftpcmd.y now uses that.
Add autoconf AC_REPLACE_FUNCS check for explicit_memset.
provide compat _DIAGASSERT()
define no-op _DIAGASSERT() in tnftpd.h, so that I can perform
less changes from "upstream" NetBSD when I merge code.
remove unnecessary compat define of __attribute__
compat workarounds for __attribute__ and __dead
Rename config.h to tnftpd_config.h
Add support for Tru64 Security Integration Architecture (SIA) authentication.
Patch from Onno van der Linden, with autoconf tests written by me.
NetBSD/othersrc 45e46b5 — libexec/tnftpd ChangeLog configure.ac, libexec/tnftpd/libnetbsd fparseln.c ftpfnmatch.h
consistently use NetBSD as the rcsid
Provide a replacment dirfd() macro if the system doesn't have one,
and if DIR has a dd_fd or __dd_fd member.
May fix fts() portability issue on Solaris.
Search for and #include <sys/resource.h> after <sys/time.h>;
fixes build on OS X 10.3.x.
RCSID consistency
Disable --with-skey by default.
Forbit --with-pam at the same time as --with-skey
Move IPv6 checks from tnftpd.h to configure.ac
Display a "configuration result" at the end of configure.
Remove unnecessary #define
* Add back check for <sys/sysmacros.h> (lost in conversion to autoconf 2.61),
as it's needed on Solaris for major() and minor().
* Provide prototypes for replaced functions: getgrouplist(), inet_net_pton(),
usleep().
Don't use defined() with HAVE_DECL_xxx.
Don't include fts.h if NO_INTERNAL_LS.
Use `LL' instead of `L' suffix for fallback defines of LLONG_MIN and LLONG_MAX.
NetBSD/othersrc d5e8d69 — libexec/tnftpd configure configure.in, libexec/tnftpd/build-aux config.sub config.guess
Overhaul to use autoconf 2.61 instead of autoconf 2.13.
Notable differences:
* --with-pam to enable PAM.
* --with-skey improved.
* build-related auxiliary files now in ./build-aux/
* large-file support should be better detected
* use autoconf 2.61 macros to detect struct members, declarations, types (etc).
* remove support for SOCKS for now (until test systems are available)
* use #if defined(foo) rather that just #if foo.
* always use our arpa_ftp.h rather than trying to detect if FTP_NAMES works.
Change the return value of the replacement gai_strerror()
from "char *" to "const char *", to match the current standards.
Problem noted by Thomas Klausner.
Welcome to tnftpd 20061217.
Replace daemon(3) if it's missing; Solaris doesn't have it.
Add NEWS file.
Prepare for "tnftpd 20061204".
Implement ftpd_poll() using poll(), or select() if poll() isn't available.
Reenable -D, using ftpd_poll().
Include <arpa/nameser.h> if available, and provide fallback #defines.
Update prototype of inet_ntop() for socklen_t change.
Update version to 20040810
BSD/OS 3.0 portability fixes from Jeremy C. Reed:
* Use _POSIX_LOGIN_NAME_MAX if sysconf(_SC_LOGIN_NAME_MAX)
doesn't exist.
* If _POSIX_LOGIN_NAME_MAX is missing, use LOGIN_NAME_MAX.
* Provide definition for missing MAP_FAILED.
* Provide prototype for vsnprintf() if ! HAVE_SNPRINTF.
(We may need to implement separate autoconf test for this.)
* Remove autoconf test and libnetbsd support for vsyslog().
update version for fts_open & LLONG_MIN fixes