diff options
| author | Kalev Lember <kalevlember@gmail.com> | 2013-07-10 19:58:58 (GMT) | 
|---|---|---|
| committer | Kalev Lember <kalevlember@gmail.com> | 2013-07-10 19:58:58 (GMT) | 
| commit | df6528300807a0d82870c5c27d411b7a93ee71a6 (patch) | |
| tree | 416eabb0973cdc604735d1cb9368c69c83577371 /configure.in | |
| parent | b4be52e83452f530bee54c4889363f3da8317607 (diff) | |
| download | powwow-df6528300807a0d82870c5c27d411b7a93ee71a6.zip powwow-df6528300807a0d82870c5c27d411b7a93ee71a6.tar.gz powwow-df6528300807a0d82870c5c27d411b7a93ee71a6.tar.bz2 | |
build: Error out if curses libraries weren't found
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 8 | 
1 files changed, 7 insertions, 1 deletions
| 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) | 
