mc-with-x.m4 636 B

1234567891011121314151617181920212223
  1. dnl X11 support.
  2. dnl Used to read keyboard modifiers when running under X11.
  3. AC_DEFUN([mc_WITH_X], [
  4. AC_PATH_XTRA
  5. if test x"$no_x" = xyes; then
  6. textmode_x11_support="no"
  7. else
  8. AC_DEFINE([HAVE_TEXTMODE_X11_SUPPORT], [1],
  9. [Define to enable getting events from X Window System])
  10. textmode_x11_support="yes"
  11. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  12. if test x"$g_module_supported" = x; then
  13. MCLIBS="$MCLIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  14. fi
  15. fi
  16. AM_CONDITIONAL([HAVE_TEXTMODE_X11_SUPPORT], [test x"$textmode_x11_support" = x"yes"])
  17. ])