From cfeda5f4b8710b6ba14131df8e287021b729b784 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 24 May 2013 16:07:00 -0400 Subject: configure: try pkg-config ncurses first When probing for ncurses, try pkg-config first rather than after explicit -lncurses and -lcurses. This fixes static linking in the case that ncurses has additional dependencies, such as -ltinfo (as on FreeBSD). Signed-off-by: Ed Maste Signed-off-by: Michael Tokarev --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index e17281ea6b..08ceb437be 100755 --- a/configure +++ b/configure @@ -2157,7 +2157,7 @@ if test "$curses" != "no" ; then if test "$mingw32" = "yes" ; then curses_list="-lpdcurses" else - curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)" + curses_list="$($pkg_config --libs ncurses 2>/dev/null):-lncurses:-lcurses" fi curses_found=no cat > $TMPC << EOF -- cgit v1.2.3