+Wed Jul 20 00:00:00 1994 Tom Yu (tlyu at dragons-lair)
+
+ * Makefile.in (in all relevant subdirs):
+ * configure.in (in all relevant subdirs): changes to fix make
+ install
+ * aclocal.m4: make changes to look for install.sh in the right
+ places
+
Mon Jul 11 23:32:51 1994 Tom Yu (tlyu at dragons-lair)
* aclocal.m4: cleaning up stuff to not echo things like "if
dnl
define(ISODE_DEFS,
[AC_ENABLE([isode],[ADD_DEF(KRB5_USE_ISODE)],)])dnl
+undefine([AC_PROG_INSTALL])dnl
+define(AC_PROG_INSTALL,
+[# Make sure to not get the incompatible SysV /etc/install and
+# /usr/sbin/install, which might be in PATH before a BSD-like install,
+# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
+# or the AFS install, which mishandles nonexistent args, or
+# /usr/ucb/install on SVR4, which tries to use the nonexistent group
+# `staff', or /sbin/install on IRIX which has incompatible command-line
+# syntax. Sigh.
+#
+# On most BSDish systems install is in /usr/bin, not /usr/ucb
+# anyway.
+# This turns out not to be true, so the mere pathname isn't an indication
+# of whether the program works. What we really need is a set of tests for
+# the install program to see if it actually works in all the required ways.
+#
+# Avoid using ./install, which might have been erroneously created
+# by make from ./install.sh.
+if test -z "${INSTALL}"; then
+ AC_CHECKING(for a BSD compatible install)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ for ac_dir in $PATH; do
+ case "$ac_dir" in
+ ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ for ac_prog in installbsd scoinst install; do
+ if test -f $ac_dir/$ac_prog; then
+ if test $ac_prog = install &&
+ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ # OSF/1 installbsd also uses dspmsg, but is usable.
+ :
+ else
+ INSTALL="$ac_dir/$ac_prog -c"
+ break 2
+ fi
+ fi
+ done
+ ;;
+ esac
+ done
+ IFS="$ac_save_ifs"
+fi
+
+if test -z "$INSTALL"; then
+ # As a last resort, use the slow shell script.
+ for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../.. ${srcdir}/AC_TOPDIR/util/autoconf; do
+ if test -f $ac_dir/install.sh; then
+ INSTALL="$ac_dir/install.sh -c"; break
+ fi
+ done
+fi
+if test -z "$INSTALL"; then
+ AC_ERROR([can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.. ${srcdir}/AC_TOPDIR/util/autoconf])
+fi
+AC_SUBST(INSTALL)dnl
+AC_VERBOSE(setting INSTALL to $INSTALL)
+
+# Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+AC_SUBST(INSTALL_PROGRAM)dnl
+AC_VERBOSE(setting INSTALL_PROGRAM to $INSTALL_PROGRAM)
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+AC_SUBST(INSTALL_DATA)dnl
+AC_VERBOSE(setting INSTALL_DATA to $INSTALL_DATA)
+])dnl
$(CC) $(CFLAGS) -o kdb5_anadd kdb5_anadd.o $(LOCAL_LIBRARIES) $(LIBS)
install::
- cp kdb5_anadd $(DESTDIR)$(ADMIN_BINDIR)/kdb5_anadd
- cp kdb5_anadd.M $(DESTDIR)$(ADMIN_MANDIR)/kdb5_anadd.8
+ $(INSTALL_PROGRAM) kdb5_anadd $(DESTDIR)$(ADMIN_BINDIR)/kdb5_anadd
+ $(INSTALL_DATA) kdb5_anadd.M $(DESTDIR)$(ADMIN_MANDIR)/kdb5_anadd.8
clean::
$(RM) kdb5_anadd kdb5_anadd.o
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(-lndbm)
$(CC) $(CFLAGS) -o kdb5_convert kdb5_convert.o $(LOCAL_LIBRARIES) $(LIBS)
install::
- cp kdb5_convert ${DESTDIR}$(ADMIN_BINDIR)/kdb5_convert
- cp kdb5_convert.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_convert.8
+ $(INSTALL_PROGRAM) kdb5_convert ${DESTDIR}$(ADMIN_BINDIR)/kdb5_convert
+ $(INSTALL_DATA) kdb5_convert.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_convert.8
clean::
$(RM) kdb5_convert kdb5_convert.o
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(-lndbm)
CONFIG_RULES
WITH_KRB5ROOT
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(-lndbm)
$(CC) $(CFLAGS) -o kdb5_destroy kdb5_destroy.o $(LOCAL_LIBRARIES) $(LIBS)
install::
- cp kdb5_destroy ${DESTDIR}$(ADMIN_BINDIR)/kdb5_destroy
- cp kdb5_destroy.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_destroy.8
+ $(INSTALL_PROGRAM) kdb5_destroy ${DESTDIR}$(ADMIN_BINDIR)/kdb5_destroy
+ $(INSTALL_DATA) kdb5_destroy.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_destroy.8
clean::
$(RM) kdb5_destroy kdb5_destroy.o
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(-lndbm)
$(CC) $(CFLAGS) -o kdb5_edit $(OBJS) $(LOCAL_LIBRARIES) $(LIBS)
install::
- cp kdb5_edit ${DESTDIR}$(ADMIN_BINDIR)/kdb5_edit
- cp kdb5_edit.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_edit.8
+ $(INSTALL_PROGRAM) kdb5_edit ${DESTDIR}$(ADMIN_BINDIR)/kdb5_edit
+ $(INSTALL_DATA) kdb5_edit.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_edit.8
# needed until we run makedepend
kdb5_ed_ct.c: kdb5_ed_ct.ct
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(-lndbm)
$(CC) $(CFLAGS) -o kdb5_stash kdb5_stash.o $(LOCAL_LIBRARIES) $(LIBS)
install::
- cp kdb5_stash ${DESTDIR}$(ADMIN_BINDIR)/kdb5_stash
- cp kdb5_stash.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_stash.8
+ $(INSTALL_PROGRAM) kdb5_stash ${DESTDIR}$(ADMIN_BINDIR)/kdb5_stash
+ $(INSTALL_DATA) kdb5_stash.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_stash.8
clean::
$(RM) kdb5_stash kdb5_stash.o
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(-lndbm)
+Wed Jul 20 00:10:30 1994 Tom Yu (tlyu at dragons-lair)
+
+ * configure.in: autoconf'ing gss-sample
+
Thu Jul 14 02:04:07 1994 Tom Yu (tlyu at dragons-lair)
* configure.in: suck in bsd now
$(CC) $(CFLAGS) -o rsh krsh.o kcmd.o forward.o $(KLIB) $(LIBS)
install::
- cp rsh $(DESTDIR)$(CLIENT_BINDIR)/rsh
+ $(INSTALL_PROGRAM) rsh $(DESTDIR)$(CLIENT_BINDIR)/rsh
rcp: krcp.o kcmd.o forward.o
$(CC) $(CFLAGS) -o rcp krcp.o kcmd.o forward.o $(KLIB) $(LIBS)
install::
- cp rcp $(DESTDIR)$(CLIENT_BINDIR)/rcp
+ $(INSTALL_PROGRAM) rcp $(DESTDIR)$(CLIENT_BINDIR)/rcp
rlogin: krlogin.o kcmd.o forward.o
$(CC) $(CFLAGS) -o rlogin krlogin.o kcmd.o forward.o $(KLIB) $(LIBS)
install::
- cp rlogin $(DESTDIR)$(CLIENT_BINDIR)/rlogin
+ $(INSTALL_PROGRAM) rlogin $(DESTDIR)$(CLIENT_BINDIR)/rlogin
krshd: krshd.o kcmd.o logutil.o forward.o
$(CC) $(CFLAGS) -o krshd krshd.o kcmd.o logutil.o forward.o $(KLIB) $(K4LIB) $(LIBS)
install::
- cp krshd $(DESTDIR)$(SERVER_BINDIR)/krshd
+ $(INSTALL_PROGRAM) krshd $(DESTDIR)$(SERVER_BINDIR)/krshd
krlogind: krlogind.o logutil.o kcmd.o forward.o
$(CC) $(CFLAGS) -o krlogind krlogind.o logutil.o kcmd.o forward.o $(KLIB) $(K4LIB) $(LIBS)
install::
- cp krlogind $(DESTDIR)$(SERVER_BINDIR)/krlogind
+ $(INSTALL_PROGRAM) krlogind $(DESTDIR)$(SERVER_BINDIR)/krlogind
login.krb5: login.o logutil.o $(SETENVOBJ)
$(CC) $(CFLAGS) -o login.krb5 login.o logutil.o $(SETENVOBJ) $(KLIB) $(LIBS)
install::
- cp login.krb5 $(DESTDIR)$(SERVER_BINDIR)/login.krb5
+ $(INSTALL_PROGRAM) login.krb5 $(DESTDIR)$(SERVER_BINDIR)/login.krb5
ISODE_INCLUDE
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_FUNC_CHECK(utimes,AC_DEFINE(HAS_UTIMES))
AC_INIT(configure.in)
WITH_CCOPTS
AC_SET_BUILDTOP
-CONFIG_DIRS(sample simple user_user bsd)
+CONFIG_DIRS(sample simple user_user bsd gss-sample)
MAKE_SUBDIRS("making",all)
MAKE_SUBDIRS("cleaning",clean)
MAKE_SUBDIRS("installing",install)
$(RM) sclient.o sclient
install::
- cp sclient ${DESTDIR}$(CLIENT_BINDIR)/sclient
- cp sclient.M ${DESTDIR}$(CLIENT_MANDIR)/sclient.1
+ $(INSTALL_PROGRAM) sclient ${DESTDIR}$(CLIENT_BINDIR)/sclient
+ $(INSTALL_DATA) sclient.M ${DESTDIR}$(CLIENT_MANDIR)/sclient.1
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
KRB_INCLUDE
$(RM) sserver.o sserver
install::
- cp sserver ${DESTDIR}$(SERVER_BINDIR)/sserver
- cp sserver.M ${DESTDIR}$(SERVER_MANDIR)/sserver.8
+ $(INSTALL_PROGRAM) sserver ${DESTDIR}$(SERVER_BINDIR)/sserver
+ $(INSTALL_DATA) sserver.M ${DESTDIR}$(SERVER_MANDIR)/sserver.8
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
KRB_INCLUDE
all:: sim_client
install::
- cp sim_client $(DESTDIR)$(CLIENT_BINDIR)/sim_client
+ $(INSTALL_PROGRAM) sim_client $(DESTDIR)$(CLIENT_BINDIR)/sim_client
clean::
$(RM) sim_client.o sim_client
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
KRB_INCLUDE
all:: sim_server
install::
- cp sim_server $(DESTDIR)$(SERVER_BINDIR)/sim_server
+ $(INSTALL_PROGRAM) sim_server $(DESTDIR)$(SERVER_BINDIR)/sim_server
clean::
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
KRB_INCLUDE
all:: uuserver
install::
- cp uuclient $(DESTDIR)$(CLIENT_BINDIR)/uuclient
- cp uuserver $(DESTDIR)$(SERVER_BINDIR)/uusrever
+ $(INSTALL_PROGRAM) uuclient $(DESTDIR)$(CLIENT_BINDIR)/uuclient
+ $(INSTALL_PROGRAM) uuserver $(DESTDIR)$(SERVER_BINDIR)/uusrever
clean::
$(RM) server.o uuserver
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
KRB_INCLUDE
$(RM) kdestroy.o kdestroy
install::
- cp kdestroy ${DESTDIR}$(CLIENT_BINDIR)/kdestroy
- cp kdestroy.M ${DESTDIR}$(CLIENT_MANDIR)/kdestroy.1
+ $(INSTALL_PROGRAM) kdestroy ${DESTDIR}$(CLIENT_BINDIR)/kdestroy
+ $(INSTALL_DATA) kdestroy.M ${DESTDIR}$(CLIENT_MANDIR)/kdestroy.1
AC_INIT(kdestroy.c)
WITH_CCOPTS
AC_SET_BUILDTOP
+AC_PROG_INSTALL
CONFIG_RULES
KRB_INCLUDE
ISODE_INCLUDE
$(RM) kinit.o kinit
install::
- cp kinit ${DESTDIR}$(CLIENT_BINDIR)/kinit
- cp kinit.M ${DESTDIR}$(CLIENT_MANDIR)/kinit.1
+ $(INSTALL_PROGRAM) kinit ${DESTDIR}$(CLIENT_BINDIR)/kinit
+ $(INSTALL_DATA) kinit.M ${DESTDIR}$(CLIENT_MANDIR)/kinit.1
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
KRB_INCLUDE
$(RM) klist.o klist
install::
- cp klist ${DESTDIR}$(CLIENT_BINDIR)/klist
- cp klist.M ${DESTDIR}$(CLIENT_MANDIR)/klist.1
+ $(INSTALL_PROGRAM) klist ${DESTDIR}$(CLIENT_BINDIR)/klist
+ $(INSTALL_DATA) klist.M ${DESTDIR}$(CLIENT_MANDIR)/klist.1
AC_INIT(klist.c)
WITH_CCOPTS
AC_SET_BUILDTOP
+AC_PROG_INSTALL
CONFIG_RULES
KRB_INCLUDE
ISODE_INCLUDE
LIBS = @LIBS@
KRB5ROOT= @KRB5ROOT@
KRB4=@KRB4@
+INSTALL=@INSTALL@
+INSTALL_PROGRAM=@INSTALL_PROGRAM@
+INSTALL_DATA=@INSTALL_DATA@
KRB5MANROOT = $(KRB5ROOT)/man
ADMIN_BINDIR = $(KRB5ROOT)/admin
$(CC) $(CFLAGS) -o kadmin $(OBJS) $(KLIB) $(LIBS)
install::
- cp kadmin ${DESTDIR}$(CLIENT_BINDIR)/kadmin
- cp kadmin.M ${DESTDIR}$(CLIENT_MANDIR)/kadmin.1
+ $(INSTALL_PROGRAM) kadmin ${DESTDIR}$(CLIENT_BINDIR)/kadmin
+ $(INSTALL_DATA) kadmin.M ${DESTDIR}$(CLIENT_MANDIR)/kadmin.1
clean::
$(RM) kadmin
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
ET_RULES
$(CC) $(CFLAGS) -o kpasswd $(OBJS) $(KLIB) $(LIBS)
install::
- cp kpasswd ${DESTDIR}$(CLIENT_BINDIR)/kpasswd
- cp kpasswd.M ${DESTDIR}$(CLIENT_MANDIR)/kpasswd.1
+ $(INSTALL_PROGRAM) kpasswd ${DESTDIR}$(CLIENT_BINDIR)/kpasswd
+ $(INSTALL_DATA) kpasswd.M ${DESTDIR}$(CLIENT_MANDIR)/kpasswd.1
clean::
$(RM) kpasswd
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
ET_RULES
$(CC) $(CFLAGS) -o krb5kdc $(OBJS) $(KDBLIB) $(KLIB) $(K4LIB) $(LIBS)
install::
- cp krb5kdc ${DESTDIR}$(SERVER_BINDIR)/krb5kdc
- cp krb5kdc.M ${DESTDIR}$(SERVER_MANDIR)/krb5kdc.8
+ $(INSTALL_PROGRAM) krb5kdc ${DESTDIR}$(SERVER_BINDIR)/krb5kdc
+ $(INSTALL_DATA) krb5kdc.M ${DESTDIR}$(SERVER_MANDIR)/krb5kdc.8
clean::
$(RM) kdc5_err.h kdc5_err.c
CONFIG_RULES
ISODE_DEFS
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(-lndbm)
$(CC) $(CFLAGS) -o kprop $(CLIENTOBJS) $(LOCAL_LIBRARIES) $(LIBS)
install::
- cp kprop ${DESTDIR}$(SERVER_BINDIR)/kprop
- cp kprop.M ${DESTDIR}$(SERVER_MANDIR)/kprop.8
+ $(INSTALL_PROGRAM) kprop ${DESTDIR}$(SERVER_BINDIR)/kprop
+ $(INSTALL_DATA) kprop.M ${DESTDIR}$(SERVER_MANDIR)/kprop.8
kpropd: $(SERVEROBJS) $(DEPLIBS)
$(CC) $(CFLAGS) -o kpropd $(SERVEROBJS) $(LOCAL_LIBRARIES) $(LIBS)
install::
- cp kpropd ${DESTDIR}$(SERVER_BINDIR)/kpropd
- cp kpropd.M ${DESTDIR}$(SERVER_MANDIR)/kpropd.8
+ $(INSTALL_PROGRAM) kpropd ${DESTDIR}$(SERVER_BINDIR)/kpropd
+ $(INSTALL_DATA) kpropd.M ${DESTDIR}$(SERVER_MANDIR)/kpropd.8
clean::
$(RM) $(CLIENTOBJS) $(SERVEROBJS)
WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
+AC_PROG_INSTALL
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(util)