Explorar el Código

build: Break if ncurses is requested but unavailable

If building dselect is requested (the default), ncurses is requested
through DPKG_LIB_CURSES, but if it isn't found, only AC_MSG_WARN is
used, leading to a successful configure and a failure to build
dselect/*. Use AC_MSG_ERROR instead to make configure bail out.

Reported-by: Michael Schmidt <michael.schmidt.dangel@gmail.com>
Signed-off-by: Guillem Jover <guillem@debian.org>
Cyril Brulebois hace 15 años
padre
commit
e338748e9f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      m4/dpkg-libs.m4

+ 1 - 1
m4/dpkg-libs.m4

@@ -96,7 +96,7 @@ AC_CHECK_LIB([ncurses], [initscr],
   [CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"],
   [CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"],
   [AC_CHECK_LIB([curses], [initscr],
   [AC_CHECK_LIB([curses], [initscr],
      [CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"],
      [CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"],
-     [AC_MSG_WARN([no curses library found])])])])
+     [AC_MSG_ERROR([no curses library found])])])])
 ])# DPKG_CHECK_LIB_CURSES_NARROW
 ])# DPKG_CHECK_LIB_CURSES_NARROW
 
 
 # DPKG_LIB_CURSES
 # DPKG_LIB_CURSES