]> git.eshelyaron.com Git - emacs.git/commitdiff
Move UNIX98_PTYS from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Thu, 12 Jul 2012 19:48:21 +0000 (15:48 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 Jul 2012 19:48:21 +0000 (15:48 -0400)
* configure.ac (UNIX98_PTYS): Move here from src/s.

* src/s/gnu-linux.h (UNIX98_PTYS): Let configure set it.

ChangeLog
configure.ac
src/ChangeLog
src/s/gnu-linux.h

index d111e9f63192a141f8d6710af9001623a58553ea..a7aad6a0734931519ea1deb0053465a2dff7a035 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,7 +8,7 @@
        (BROKEN_SIGPOLL, BROKEN_SIGPTY, FIRST_PTY_LETTER)
        (G_SLICE_ALWAYS_MALLOC, PREFER_VSUSP, PTY_ITERATION, PTY_OPEN)
        (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF, RUN_TIME_REMAP)
-       (SETPGRP_RELEASES_CTTY, TAB3, TABDLY, RUN_TIME_REMAP)
+       (SETPGRP_RELEASES_CTTY, TAB3, TABDLY, RUN_TIME_REMAP, UNIX98_PTYS)
        (XOS_NEEDS_TIME_H): Move here from src/s.
 
 2012-07-11  Glenn Morris  <rgm@gnu.org>
index 191d2ae7e0541f8eaa85b8bab2bb6c5c430371f2..6ac53bbd64d8a18eecf2e86fc07e927254d6a673 100644 (file)
@@ -3340,6 +3340,7 @@ case $opsys in
   gnu-linux | gnu-kfreebsd )
     dnl if HAVE_GRANTPT
     if test "x$ac_cv_func_grantpt" = xyes; then
+      AC_DEFINE(UNIX98_PTYS, 1, [Define if the system has Unix98 PTYs.])
       AC_DEFINE(PTY_ITERATION, [int i; for (i = 0; i < 1; i++)] )
       dnl Note that grantpt and unlockpt may fork.  We must block SIGCHLD
       dnl to prevent sigchld_handler from intercepting the child's death.
index 2d661f2be09a3e62d002d16a05c0e99e46f16ccb..14428f427d5dc79102e9ebb49002844fd63520b3 100644 (file)
@@ -1,3 +1,7 @@
+2012-07-12  Glenn Morris  <rgm@gnu.org>
+
+       * s/gnu-linux.h (UNIX98_PTYS): Let configure set it.
+
 2012-07-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix typos that broke OS X build.
index 626113b119c48c4b58516db512178b4ca84eca74..90725815deab74fed815b734b96ab79b07fbd44d 100644 (file)
@@ -25,10 +25,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define USG
 #define GNU_LINUX
 
-#if defined HAVE_GRANTPT
-#define UNIX98_PTYS
-#endif  /* HAVE_GRANTPT */
-
 /* Here, on a separate page, add any special hacks needed
    to make Emacs work on this system.  For example,
    you might define certain system call names that don't