[Libvir] Problems installing libvir

Karel Zak kzak at redhat.com
Tue Apr 25 16:24:22 UTC 2006


On Tue, Apr 25, 2006 at 09:08:02AM -0400, Daniel Veillard wrote:

> > PS. Didn't Jim Fehlig mention that he has already fixed this?

 I don't remember too.

>   Hum, I don't remember that, maybe I missed a patch, right now there is
> only 
>    AC_CHECK_LIB(curses, initscr,
>      ...
> in the CVS configure.in so that's not fixed here,

 Possible fix (not tested):

AC_CHECK_LIB(curses, initscr, [VIRSH_LIBS="$VIRSH_LIBS -lcurses"], 
    [ AC_CHECK_LIB(ncurses, initscr, [VIRSH_LIBS="$VIRSH_LIBS -lncurses"], 
        [AC_MSG_ERROR([curses/ncurses library not found])], [$VIRSH_LIBS])
    ], [$VIRSH_LIBS])


 ... nice explosion of [([])].. .. :-)

    Karel


-- 
 Karel Zak  <kzak at redhat.com>




More information about the libvir-list mailing list