 +			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".
   */

 #define _PATH_SSH_SYSTEM_RC		SSHDIR "/sshrc"
 
 /*
@@ -149,17 +157,16 @@
 
 /* for sftp */
 #ifndef _PATH_SFTP_SERVER

 #endif
 
 /*
@@ -58,25 +65,25 @@
  * The directory in user's home directory in which the files reside. The
  * directory should be world-readable (though not all files are).
  */
