CPPFLAGS += -fno-strict-aliasing
CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F)
CPPFLAGS += @SSL_CPPFLAGS@
-CPPFLAGS += @ncurses_cppflags@
+CPPFLAGS += @curses_cppflags@
CPPFLAGS += @arch_cppflags@
CPPFLAGS += -I/usr/local/include
CPPFLAGS += -I$(cmdline_dir)
para_gui: $(gui_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
- $(Q) $(CC) $(LDFLAGS) -o $@ $(gui_objs) -lncurses
+ $(Q) $(CC) $(LDFLAGS) -o $@ $(gui_objs) -lcurses
para_audiod: audiod_command_list.c audiod_command_list.h $(audiod_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
fi
########################################################################### curses
-have_ncurses="yes"
+have_curses="yes"
OLD_CPPFLAGS="$CPPFLAGS"
OLD_LD_FLAGS="$LDFLAGS"
OLD_LIBS="$LIBS"
-AC_ARG_WITH(ncurses_headers, [AC_HELP_STRING(--with-ncurses-headers=dir,
- [look for ncurses.h also in dir])])
-if test -n "$with_ncurses_headers"; then
- ncurses_cppflags="-I$with_ncurses_headers"
- CPPFLAGS="$CPPFLAGS $ncurses_cppflags"
+AC_ARG_WITH(curses_headers, [AC_HELP_STRING(--with-curses-headers=dir,
+ [look for curses.h also in dir])])
+if test -n "$with_curses_headers"; then
+ curses_cppflags="-I$with_curses_headers"
+ CPPFLAGS="$CPPFLAGS $curses_cppflags"
fi
-AC_ARG_WITH(ncurses_libs, [AC_HELP_STRING(--with-ncurses-libs=dir,
- [look for libncurses also in dir])])
-if test -n "$with_ncurses_libs"; then
- ncurses_libs="-L$with_ncurses_libs"
- LDFLAGS="$LDFLAGS $ncurses_libs"
+AC_ARG_WITH(curses_libs, [AC_HELP_STRING(--with-curses-libs=dir,
+ [look for libcurses also in dir])])
+if test -n "$with_curses_libs"; then
+ curses_libs="-L$with_curses_libs"
+ LDFLAGS="$LDFLAGS $curses_libs"
fi
AC_CHECK_HEADER(curses.h, [], [
- have_ncurses="no"
+ have_curses="no"
])
-AC_CHECK_LIB([ncurses], [initscr], [], [
- have_ncurses="no"
+AC_CHECK_LIB([curses], [initscr], [], [
+ have_curses="no"
])
-if test "$have_ncurses" = "yes"; then
- AC_SUBST(ncurses_cppflags)
- AC_DEFINE(HAVE_NCURSES, 1, [define to 1 to turn on ncurses support])
+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