From: Andrew Borodin Date: Wed, 14 Nov 2012 06:07:06 +0000 (+0400) Subject: Ticket #2926: fail to check ncurses library X-Git-Tag: 4.8.7~13^2~3 X-Git-Url: https://repo.or.cz/w/midnight-commander.git/commitdiff_plain/49a0b83adf76575bd4037faa656b00b2840e0f3d Ticket #2926: fail to check ncurses library ...if --with-ncurses-inc and --with-ncurses-libs options are used. m4.include/mc-with-screen-ncurses.m4: clarify usage of LDFLAGS in ncurses library checking: add $ac_curses_lib_path. Signed-off-by: Andrew Borodin --- diff --git a/m4.include/mc-with-screen-ncurses.m4 b/m4.include/mc-with-screen-ncurses.m4 index 14be9ed73..1df7df93d 100644 --- a/m4.include/mc-with-screen-ncurses.m4 +++ b/m4.include/mc-with-screen-ncurses.m4 @@ -13,7 +13,9 @@ AC_DEFUN([MC_CHECK_NCURSES_BY_PATH], [ fi saved_CPPFLAGS="$CPPFLAGS" + saved_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $ac_ncurses_inc_path" + LDFLAGS="$LDFLAGS $ac_ncurses_lib_path" dnl Check for the headers dnl Both headers should be in the same directory @@ -56,6 +58,7 @@ AC_DEFUN([MC_CHECK_NCURSES_BY_PATH], [ MCLIBS="$MCLIBS $ac_ncurses_lib_path" else CPPFLAGS="$saved_CPPFLAGS" + LDFLAGS="$saved_LDPFLAGS" AC_MSG_ERROR([$error_msg_ncurses]) fi ])