pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/28925



I'm an autoconf neophyte, I realized my earlier suggested patch wasn't too hot, 
this one's better.

Dave

--- configure.in.orig   Sun Jan  9 19:32:17 2005
+++ configure.in        Wed Mar 30 22:06:02 2005
@@ -37,12 +37,11 @@
 
 dnl Checks for libraries.
 dnl
-AC_CHECK_LIB(util, fparseln)
+AC_CHECK_LIB(util, fparseln, ,
+       AC_MSG_ERROR([no util library was found to link against.]))
 if test $opt_editcomplete = yes; then
-       AC_CHECK_LIB(tinfo, tgetent, ,
-           AC_CHECK_LIB(termcap, tgetent, ,
-           AC_CHECK_LIB(curses, tgetent, ,  
-           AC_CHECK_LIB(ncurses, tgetent))))
+       AC_SEARCH_LIBS(tgetent, [termcap termlib curses ncurses tinfo], ,
+               AC_MSG_ERROR([no relevant curses library was found to link 
against.]))
        AC_SEARCH_LIBS(el_init, edit, have_libedit=yes, have_libedit=no)
 fi
 AC_LIBRARY_NET

Attachment: replyAll
Description: null



Home | Main Index | Thread Index | Old Index