]> code.delx.au - gnu-emacs/commitdiff
Move NO_TERMIO, BROKEN_SIGIO from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Tue, 12 Jun 2012 17:43:09 +0000 (13:43 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 12 Jun 2012 17:43:09 +0000 (13:43 -0400)
* configure.in (NO_TERMIO, BROKEN_SIGIO): New AC_DEFINEs.

* src/s/bsd-common.h, src/s/darwin.h, src/s/gnu-kfreebsd.h, src/s/hpux10-20.h:
Remove NO_TERMIO.

* src/s/hpux10-20.h, src/s/openbsd.h, src/s/usg5-4-common.h:
Remove BROKEN_SIGIO.

ChangeLog
configure.in
src/ChangeLog
src/s/bsd-common.h
src/s/darwin.h
src/s/gnu-kfreebsd.h
src/s/hpux10-20.h
src/s/openbsd.h
src/s/usg5-4-common.h

index 5f19b1cba44575db2b8d4914bef1fc3b1f1c7eb7..da39ee2e48dc4215849eff50540a2430fdfabad5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
 
 2012-06-12  Glenn Morris  <rgm@gnu.org>
 
+       * configure.in (NO_TERMIO, BROKEN_SIGIO): Move here from src/s.
+
        * configure.in: Anticipate platforms with no src/s file.
 
 2012-06-12  Chong Yidong  <cyd@gnu.org>
index 3ba3e184579984d7610f5ca6e8e5e7e827b4b17d..2750ccdcd5475179f47a65fae04730b42f29fe7a 100644 (file)
@@ -3111,6 +3111,20 @@ dnl                                and macros for terminal control.])
 dnl    AC_DEFINE(HAVE_TCATTR, 1, [Define to 1 if you have tcgetattr and tcsetattr.])
 dnl fi
 
+case $opsys in
+  darwin | gnu | hpux* | *bsd )
+    AC_DEFINE(NO_TERMIO, 1, [Define if termio.h should not be included.])
+  ;;
+esac
+
+dnl SIGIO exists, but the feature doesn't work in the way Emacs needs.
+dnl See eg <http://article.gmane.org/gmane.os.openbsd.ports/46831>. 
+case $opsys in
+  hpux* | irix6-5 | openbsd | sol2* | unixware )
+    AC_DEFINE(BROKEN_SIGIO, 1, [Define if SIGIO should not be used.])
+  ;;
+esac
+
 # Set up the CFLAGS for real compilation, so we can substitute it.
 CFLAGS="$REAL_CFLAGS"
 CPPFLAGS="$REAL_CPPFLAGS"
index 3a011fc7432707f725e2daa5b0be46907f8073b2..2c5bf632bdb3b5c62d162b839648a46ec54d2506 100644 (file)
@@ -1,3 +1,11 @@
+2012-06-12  Glenn Morris  <rgm@gnu.org>
+
+       * s/hpux10-20.h, s/openbsd.h, s/usg5-4-common.h:
+       Move BROKEN_SIGIO to configure.
+
+       * s/bsd-common.h, s/darwin.h, s/gnu-kfreebsd.h, s/hpux10-20.h:
+       Move NO_TERMIO to configure.
+
 2012-06-12  Chong Yidong  <cyd@gnu.org>
 
        * image.c (imagemagick_load_image): Use MagickFlattenImage if
index ce3d63bb49fe3dcbf91f51bc6eb36be0a9c0c368..ce67dd7b9afbd3dfa680d0cdc3a0dc3eb6a783ec 100644 (file)
@@ -37,8 +37,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define TABDLY OXTABS
 #define TAB3 OXTABS
 
-#define NO_TERMIO
-
 /* If the system's imake configuration file defines `NeedWidePrototypes'
    as `NO', we must define NARROWPROTO manually.  Such a define is
    generated in the Makefile generated by `xmkmf'.  If we don't
index 5033f91813dce3c4d683873604fee21361bb767b..ce86bc5f5787d86bcb43bb84dfa4273e0dff32ec 100644 (file)
@@ -58,8 +58,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
   if system supports pty's.  'a' means it is /dev/ptya0  */
 #define FIRST_PTY_LETTER 'p'
 
-#define NO_TERMIO
-
 /* Define HAVE_PTYS if the system supports pty devices.
    Note: PTYs are broken on darwin <6.  Use at your own risk.  */
 #define HAVE_PTYS
index f32e6faccd2057aa70a57dee3c16c34885aa2b83..c1e5de5c7a7f567ed038cdb55dc927a6b6fe1b42 100644 (file)
@@ -1,3 +1,2 @@
 #include "gnu-linux.h"
 
-#define NO_TERMIO               /* use only <termios.h> */
index 36227b6ba7b24f4d3ede8472cb8721a4fbf0ac5b..683837891f42dc65bbf11eedf9333a133fcd1149 100644 (file)
@@ -30,8 +30,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    if system supports pty's.  'p' means it is /dev/ptym/ptyp0  */
 #define FIRST_PTY_LETTER 'p'
 
-#define NO_TERMIO
-
 /* Define HAVE_PTYS if the system supports pty devices.  */
 #define HAVE_PTYS
 
@@ -45,10 +43,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 /* Special hacks needed to make Emacs run on this system.  */
 
-/* In hpux, the symbol SIGIO is defined, but the feature
-   doesn't work in the way Emacs needs it to.  */
-#define BROKEN_SIGIO
-
 /* Some additional system facilities exist.  */
 #define HAVE_PERROR  /* Delete this line for version 6.  */
 
index 0a8bab2290fa8e27fa19afd098efbfa893bbda54..8c44cf65cc61540ff85f59b56b667ce604b2ff30 100644 (file)
@@ -3,7 +3,3 @@
 /* Nearly the same as NetBSD.  Note there are differences in configure.  */
 #include "netbsd.h"
 
-/* The symbol SIGIO is defined, but the feature doesn't work in the
-   way Emacs needs it to.  See
-   <http://article.gmane.org/gmane.os.openbsd.ports/46831>.  */
-#define BROKEN_SIGIO
index d2f3b5d77f5ead8a99492a616853401de4143ef7..02c43814678e592fe969f623b5f84c20b8011ad1 100644 (file)
@@ -35,8 +35,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define HAVE_SYSV_SIGPAUSE
 
 /* Get FIONREAD from <sys/filio.h>.  Get <sys/ttold.h> to get struct tchars.
-   But get <termio.h> first to make sure ttold.h doesn't interfere.
-   And don't try to use SIGIO yet.  */
+   But get <termio.h> first to make sure ttold.h doesn't interfere.  */
 #include <sys/wait.h>
 
 #ifdef emacs
@@ -47,7 +46,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <sys/stream.h>
 #include <sys/stropts.h>
 #include <sys/termios.h>
-#define BROKEN_SIGIO
 #endif
 
 /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;