Browse Source

* configure.in: Enable X11 support by default, use --without-x
to disable.

Pavel Roskin 22 years ago
parent
commit
001cb449d0
4 changed files with 22 additions and 16 deletions
  1. 5 0
      ChangeLog
  2. 5 4
      INSTALL
  3. 1 0
      NEWS
  4. 11 12
      configure.in

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2002-12-23  Pavel Roskin  <proski@gnu.org>
+
+	* configure.in: Enable X11 support by default, use --without-x
+	to disable.
+
 2002-12-19  Pavel Roskin  <proski@gnu.org>
 
 	* syntax/perl.syntax: Add separate context for function

+ 5 - 4
INSTALL

@@ -96,13 +96,14 @@ incomplete, use `configure --help' to get the full list):
      =optional parameter, then the subshell support is turned off by
      default.  To turn it on, specify the `-U' option to the program.
 
-`--with-tm-x-support'
-     This option enables minimal support for X Window System events.
-     It enables MC to query the status of the keyboard modifiers, such
+`--without-x'
+     By default, the Midnight Commander tries to connect to the X Window
+     System events to query the status of the keyboard modifiers, such
      as Control, Shift and Alt, when invoked in a terminal emulator
      under X11.  This is necessary (but not always sufficient) to
      recognize some optional but handy key combinations like Ctrl-Home
-     and Shift-Cursor keys.
+     and Shift-Cursor keys.  Use `--without-x' if the dependency on
+     X11 libraries is not desired.
 
 `--without-vfs'
      This option disables the Virtual File System switch code in the

+ 1 - 0
NEWS

@@ -20,6 +20,7 @@ Changes made after 4.6.0-pre1.
   parent shell, "mc" is now an alias in all shells, not a function.
 - Behavior of Alt-O is more intuitive now.
 - Internal editor now saves the cursor position in the file.
+- X11 support is now enabled by default, use --without-x to disable.
 
 
 Version 4.6.0-pre1.

+ 11 - 12
configure.in

@@ -207,20 +207,19 @@ AC_FUNC_STRCOLL
 
 dnl
 dnl X11 support.
+dnl Used to read keyboard modifiers when running under X11.
 dnl
 
-textmode_x11_support="no"
-AC_ARG_WITH(tm-x-support,
-	[  --with-tm-x-support      Get keyboard events from X Window System [[no]]],
-	[if test x$withval = xyes; then
-		AC_PATH_XTRA
-		CPPFLAGS="$CPPFLAGS $X_CFLAGS"
-		MCLIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
-		AC_DEFINE(HAVE_TEXTMODE_X11_SUPPORT, 1,
-			  [Define to enable getting events from X Window System])
-		textmode_x11_support="yes"
-	fi
-])
+AC_PATH_XTRA
+if test "x$no_x" == xyes; then
+    textmode_x11_support="no"
+else
+    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
+    MCLIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
+    AC_DEFINE(HAVE_TEXTMODE_X11_SUPPORT, 1,
+	      [Define to enable getting events from X Window System])
+    textmode_x11_support="yes"
+fi
 
 dnl
 dnl Network related functions