 +			AC_CHECK_LIB(curses, tgetent, [LIBEDIT="-ledit -lcurses"], AC_CHECK_LIB(ncurses, tgetent, [LIBEDIT="-ledit -lncurses"]))
  		fi
  		OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
- 		AC_CHECK_LIB(edit, el_init,
+ 		AC_CHECK_LIB([edit], [el_init],
 diff -urN openssh-6.2p1/pathnames.h openssh-6.2p1-haiku/pathnames.h
---- openssh-6.2p1/pathnames.h
-+++ openssh-6.2p1-haiku/pathnames.h
+--- openssh-6.2p1/pathnames.h	2011-05-29 11:39:38.057409536 +0000
++++ openssh-6.2p1-haiku/pathnames.h	2013-04-04 09:11:10.076283904 +0000
 @@ -12,7 +12,14 @@
   * called by a name other than "ssh" or "Secure Shell".
   */

 
 /*
  * Configuration file in user's home directory.  This file need not be
@@ -84,7 +92,7 @@
  * particularly secret.  If the user's home directory resides on an NFS
  * volume where root is mapped to nobody, this may need to be world-readable.
  */

-#define ASKPASS_PROGRAM         "/usr/lib/ssh/ssh-askpass"
+#define ASKPASS_PROGRAM         HAIKU_COMMON_BIN_DIRECTORY "/ssh/ssh-askpass"
 #endif /* ASKPASS_PROGRAM */
diff -urN openssh-6.2p1/sshd_config openssh-6.2p1-haiku/sshd_config
--- openssh-6.2p1/sshd_config	2013-02-12 00:02:09.066846720 +0000
+++ openssh-6.2p1-haiku/sshd_config	2013-04-04 09:02:19.284426240 +0000
@@ -47,7 +47,7 @@
 
 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
 # but this is overridden so installations will only check .ssh/authorized_keys
-AuthorizedKeysFile	.ssh/authorized_keys
+AuthorizedKeysFile	config/settings/ssh
 
 #AuthorizedPrincipalsFile none
 
