+Sun Jun 2 22:08:17 1996 Tom Yu <tlyu@mit.edu>
+
+ * configure.in, Makefile.in: only link getdtablesize.o if needed
+
Thu Mar 28 21:07:20 1996 Ken Raeburn <raeburn@cygnus.com>
* ftpcmd.y: Define unix for HP-UX.
$(srcdir)../ftp/glob.c \
$(srcdir)../ftp/radix.c \
$(srcdir)../ftp/secure.c \
- $(srcdir)../../bsd/getdtablesize.c $(SETENVSRC)
+ $(GETDTABLESIZESRC) $(SETENVSRC)
OBJS = ftpd.o ftpcmd.o glob.o popen.o logwtmp.o vers.o radix.o \
- secure.o getdtablesize.o $(SETENVOBJ)
+ secure.o $(GETDTABLESIZEOBJ) $(SETENVOBJ)
KLIB = -lgssapi_krb5 -lkrb5 -lcrypto $(COMERRLIB)
DEPKLIB = $(TOPLIBD)/gssapi/libgssapi_krb5.a $(TOPLIBD)/libkrb5.a \
AC_FUNC_VFORK
AC_HEADER_STDARG
AC_CHECK_HEADERS(unistd.h stdlib.h string.h)
+AC_CHECK_FUNC(getdtablesize,,
+[GETDTABLESIZESRC='$(srcdir)/../bsd/getdtablesize.c'
+GETDTABLESIZEOBJ=getdtablesize.o
+AC_SUBST([GETDTABLESIZESRC])
+AC_SUBST([GETDTABLESIZEOBJ])])
AC_REPLACE_FUNCS(getdtablesize)
AC_HAVE_FUNCS(getcwd getusershell seteuid setreuid setresuid)
AC_CHECK_LIB(crypt,crypt) dnl