Bugzilla – Attachment 1832 Details for
Bug 1744
libedit support shouldn't assume -lcurses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openssh-libedit-pkgconfig.patch
openssh-libedit-pkgconfig.patch (text/plain), 1.50 KB, created by
Darren Tucker
on 2010-04-09 11:23:13 AEST
(
hide
)
Description:
openssh-libedit-pkgconfig.patch
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2010-04-09 11:23:13 AEST
Size:
1.50 KB
patch
obsolete
>? build >Index: configure.ac >=================================================================== >RCS file: /var/cvs/openssh/configure.ac,v >retrieving revision 1.446 >diff -u -p -r1.446 configure.ac >--- configure.ac 25 Mar 2010 23:27:33 -0000 1.446 >+++ configure.ac 9 Apr 2010 01:20:50 -0000 >@@ -1254,6 +1254,18 @@ LIBEDIT_MSG="no" > AC_ARG_WITH(libedit, > [ --with-libedit[[=PATH]] Enable libedit support for sftp], > [ if test "x$withval" != "xno" ; then >+ if test "x$withval" = "xyes" ; then >+ AC_PATH_PROG(PKGCONFIG, pkg-config, no) >+ if test "x$PKGCONFIG" != "xno"; then >+ AC_MSG_CHECKING(if $PKGCONFIG knows about libedit) >+ if "$PKGCONFIG" libedit; then >+ AC_MSG_RESULT(yes) >+ use_pkgconfig_for_libedit=yes >+ else >+ AC_MSG_RESULT(no) >+ fi >+ fi >+ fi > if test "x$withval" != "xyes"; then > CPPFLAGS="$CPPFLAGS -I${withval}/include" > if test -n "${need_dash_r}"; then >@@ -1262,14 +1274,19 @@ AC_ARG_WITH(libedit, > LDFLAGS="-L${withval}/lib ${LDFLAGS}" > fi > fi >+ if test "x$use_pkgconfig_for_libedit" == "xyes"; then >+ LIBEDIT=`$PKGCONFIG --libs-only-l libedit` >+ else >+ LIBEDIT="-ledit -lcurses" >+ fi >+ OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` > AC_CHECK_LIB(edit, el_init, > [ AC_DEFINE(USE_LIBEDIT, 1, [Use libedit for sftp]) >- LIBEDIT="-ledit -lcurses" > LIBEDIT_MSG="yes" > AC_SUBST(LIBEDIT) > ], > [ AC_MSG_ERROR(libedit not found) ], >- [ -lcurses ] >+ [ $OTHERLIBS ] > ) > AC_MSG_CHECKING(if libedit version is compatible) > AC_COMPILE_IFELSE(
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1744
:
1824
|
1832
|
1833
|
1834