From df6528300807a0d82870c5c27d411b7a93ee71a6 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 10 Jul 2013 21:58:58 +0200 Subject: build: Error out if curses libraries weren't found diff --git a/configure.in b/configure.in index 43d737f..c55310c 100644 --- a/configure.in +++ b/configure.in @@ -78,10 +78,16 @@ AC_PROG_CC AC_PROG_LN_S # Checks for libraries. -AC_SEARCH_LIBS(initscr,[ncurses curses]) AC_CHECK_FUNC(regcomp,AC_DEFINE(USE_REGEXP)) AC_CHECK_FUNC(lrand48,,AC_DEFINE(USE_RANDOM)) +if test "x${enable_vt100}" != "xyes"; then + AC_SEARCH_LIBS(initscr,[ncurses curses], [], [ + if test "x${enable_vt100}" = "xno" ; then + AC_MSG_ERROR([*** curses libraries not found]) + fi]) +fi + # Dynamic modules AC_SEARCH_LIBS(dlopen,[dl],[ AC_DEFINE(HAVE_LIBDL) -- cgit v0.10.2