diff --git a/Makefile.in b/Makefile.in index 9918b0b91..365df018f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -4,12 +4,13 @@ bindir=@bindir@ sbindir=@sbindir@ libdir=@libdir@ mandir=@mandir@ +sysconfdir=@sysconfdir@ SSH_PROGRAM=@bindir@/ssh ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass CC=@CC@ -PATHS=-DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\" +PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\" CFLAGS=@CFLAGS@ $(PATHS) @DEFS@ EXTRA_TARGETS=@GNOME_ASKPASS@ TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS) @@ -89,6 +90,12 @@ install: all fi ; \ fi + if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \ + install -d $(sysconfdir); \ + install -m644 ssh_config $(sysconfdir)/ssh_config; \ + install -m644 sshd_config $(sysconfdir)/sshd_config; \ + fi + distclean: clean rm -f Makefile config.h core *~