X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=configure.ac;h=12959c817984ccfffde88f50d7214c9a0ce8e4ce;hp=6f0fbc0c0423190acc9600dd4507afd9ccac5e23;hb=1afc43be9a585ce634de84764f171e4478ec54be;hpb=24758c5f17064273786e704b84ceff56c234e347 diff --git a/configure.ac b/configure.ac index 6f0fbc0c..12959c81 100644 --- a/configure.ac +++ b/configure.ac @@ -153,7 +153,7 @@ client_errlist_objs="client net string fd sched stdin stdout time sideband client_ldflags="" gui_cmdline_objs="add_cmdline(gui)" -gui_errlist_objs="exec signal string stat ringbuffer fd gui gui_theme" +gui_errlist_objs="exec signal string stat ringbuffer fd gui gui_theme time" gui_objs="$gui_cmdline_objs $gui_errlist_objs" play_errlist_objs="play fd sched ggo buffer_tree time string net afh_recv afh_common @@ -483,12 +483,17 @@ fi AC_CHECK_HEADER(curses.h, [], [ have_curses="no" ]) -AC_CHECK_LIB([curses], [initscr], [], [ - have_curses="no" -]) +gui_ldflags="$curses_libs" +AC_CHECK_LIB([ncursesw], [initscr], + [gui_ldflags="$curses_libs -lncursesw"], [ + AC_CHECK_LIB([curses], [initscr], + [gui_ldflags="$curses_libs -lcurses"], + [have_curses="no"] + ) + ] +) if test "$have_curses" = "yes"; then AC_SUBST(curses_cppflags) - AC_DEFINE(HAVE_NCURSES, 1, [define to 1 to turn on curses support]) extras="$extras gui" executables="$executables gui" else @@ -1255,6 +1260,7 @@ AC_DEFINE_UNQUOTED(INIT_AUDIOC_ERRLISTS, objlist_to_errlist($audioc_errlist_objs), errors used by para_audioc) AC_SUBST(gui_objs, add_dot_o($gui_objs)) +AC_SUBST(gui_ldflags, $gui_ldflags) AC_DEFINE_UNQUOTED(INIT_GUI_ERRLISTS, objlist_to_errlist($gui_errlist_objs), errors used by para_gui) @@ -1263,8 +1269,6 @@ AC_SUBST(play_ldflags, $play_ldflags) AC_DEFINE_UNQUOTED(INIT_PLAY_ERRLISTS, objlist_to_errlist($play_errlist_objs), errors used by para_play) -AC_MSG_NOTICE(play objs: $play_objs) - enum="$(for i in $filters; do printf "${i}_FILTER, " | tr '[a-z]' '[A-Z]'; done)" AC_DEFINE_UNQUOTED(FILTER_ENUM, $enum NUM_SUPPORTED_FILTERS, enum of supported filters)