Code

keyboard: call wgetch() on main window
[ncmpc.git] / configure.ac
index cbd3989de985d45eb8f82df69448d31ac88f1f6a..6273a09ed0a6b0ab52d39e75d9226996ddd83b28 100644 (file)
@@ -149,6 +149,27 @@ else
   AM_PO_SUBDIRS
 fi
 
+dnl Networking
+
+AC_ARG_ENABLE(tcp,
+       AS_HELP_STRING([--disable-tcp],
+               [Disable TCP support @<:@default=enabled@:>@]),,
+       [enable_tcp=$disable_mini])
+if test "x$enable_tcp" = xyes; then
+       AC_DEFINE([ENABLE_TCP], 1, [Define to enable TCP support])
+       AC_SEARCH_LIBS([gethostbyname], [nsl])
+       AC_CHECK_FUNCS([getaddrinfo])
+fi
+
+AC_ARG_ENABLE([async-connect],
+       AS_HELP_STRING([--enable-async-connect],
+               [Disable asynchronous connect @<:@default=yes@:>@]),,
+               [enable_async_connect=$disable_mini])
+AM_CONDITIONAL(ENABLE_ASYNC_CONNECT, test x$enable_async_connect = xyes)
+if test "x$enable_async_connect" = xyes; then
+       AC_DEFINE([ENABLE_ASYNC_CONNECT], [1], [Enable asynchronous connect?])
+fi
+
 dnl enable colors
 AC_ARG_ENABLE([colors],
        AS_HELP_STRING([--enable-colors],
@@ -206,11 +227,10 @@ AM_CONDITIONAL(ENABLE_HELP_SCREEN, test x$enable_help_screen = xyes)
 
 dnl Optional - curses getmouse support
 
-dnl AC_CHECK_LIB depends on being able to prepend a '-l', remove the '-l' from CURSES_LIB first
-AC_CHECK_LIB([$(expr substr $CURSES_LIB 3 99)],
-               [getmouse],
+MPD_WITH_LIBRARY([CURSES],
+       [AC_CHECK_FUNC([getmouse],
                [ax_cv_curses_mouse=yes],
-               [ax_cv_curses_mouse=no])
+               [ax_cv_curses_mouse=no])])
 
 AC_ARG_ENABLE([mouse], 
        AS_HELP_STRING([--enable-mouse],