diff options
| author | Glenn Morris | 2012-07-11 21:18:45 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-11 21:18:45 -0400 |
| commit | ea0bbd1767884d08671f0500ba6c8f8b68a7fc4d (patch) | |
| tree | d9f93f7b3ab366382612635cdade8b390096fa27 | |
| parent | c5564388a3d737538a48a202b9668cefa776794d (diff) | |
| download | emacs-ea0bbd1767884d08671f0500ba6c8f8b68a7fc4d.tar.gz emacs-ea0bbd1767884d08671f0500ba6c8f8b68a7fc4d.zip | |
Move some AIX defines from src/s to configure
* configure.ac (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY): Move here from src/s.
* src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
(BROKEN_SIGPOLL): Let configure set them.
* src/s/syssignal.h: Comment fix.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | configure.ac | 18 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 11 | ||||
| -rw-r--r-- | src/syssignal.h | 4 |
5 files changed, 23 insertions, 18 deletions
| @@ -3,7 +3,8 @@ | |||
| 3 | * configure.ac (NO_MATHERR): Unconditionally define for Darwin; | 3 | * configure.ac (NO_MATHERR): Unconditionally define for Darwin; |
| 4 | as src/s/darwin.h used to. | 4 | as src/s/darwin.h used to. |
| 5 | 5 | ||
| 6 | * configure.ac (NARROWPROTO, NO_ABORT): Move here from src/s. | 6 | * configure.ac (NARROWPROTO, NO_ABORT, BROKEN_FIONREAD, BROKEN_SIGAIO): |
| 7 | (BROKEN_SIGPOLL, BROKEN_SIGPTY): Move here from src/s. | ||
| 7 | 8 | ||
| 8 | 2012-07-11 Glenn Morris <rgm@gnu.org> | 9 | 2012-07-11 Glenn Morris <rgm@gnu.org> |
| 9 | 10 | ||
diff --git a/configure.ac b/configure.ac index a6d3851836b..eb29a2621f4 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3152,13 +3152,27 @@ case $opsys in | |||
| 3152 | ;; | 3152 | ;; |
| 3153 | esac | 3153 | esac |
| 3154 | 3154 | ||
| 3155 | dnl SIGIO exists, but the feature doesn't work in the way Emacs needs. | 3155 | |
| 3156 | dnl See eg <http://article.gmane.org/gmane.os.openbsd.ports/46831>. | ||
| 3157 | case $opsys in | 3156 | case $opsys in |
| 3157 | dnl SIGIO exists, but the feature doesn't work in the way Emacs needs. | ||
| 3158 | dnl See eg <http://article.gmane.org/gmane.os.openbsd.ports/46831>. | ||
| 3158 | hpux* | irix6-5 | openbsd | sol2* | unixware ) | 3159 | hpux* | irix6-5 | openbsd | sol2* | unixware ) |
| 3159 | AC_DEFINE(BROKEN_SIGIO, 1, [Define if SIGIO should not be used.]) | 3160 | AC_DEFINE(BROKEN_SIGIO, 1, [Define if SIGIO should not be used.]) |
| 3160 | ;; | 3161 | ;; |
| 3161 | 3162 | ||
| 3163 | aix4-2) | ||
| 3164 | dnl BUILD 9008 - FIONREAD problem still exists in X-Windows. | ||
| 3165 | AC_DEFINE(BROKEN_FIONREAD, 1, [Define if FIONREAD should not be used.]) | ||
| 3166 | dnl As we define BROKEN_FIONREAD, SIGIO will be undefined in systty.h. | ||
| 3167 | dnl But, on AIX, SIGAIO, SIGPTY, and SIGPOLL are defined as SIGIO, | ||
| 3168 | dnl which causes compilation error at init_signals in sysdep.c. | ||
| 3169 | dnl So, we define these macros so that syssignal.h detects them | ||
| 3170 | dnl and undefine SIGAIO, SIGPTY and SIGPOLL. | ||
| 3171 | AC_DEFINE(BROKEN_SIGAIO, 1, [Define if SIGAIO should not be used.]) | ||
| 3172 | AC_DEFINE(BROKEN_SIGPOLL,1, [Define if SIGPOLL should not be used.]) | ||
| 3173 | AC_DEFINE(BROKEN_SIGPTY, 1, [Define if SIGPTY should not be used.]) | ||
| 3174 | ;; | ||
| 3175 | |||
| 3162 | dnl Define the following so emacs symbols will not conflict with those | 3176 | dnl Define the following so emacs symbols will not conflict with those |
| 3163 | dnl in the System framework. Otherwise -prebind will not work. | 3177 | dnl in the System framework. Otherwise -prebind will not work. |
| 3164 | darwin) | 3178 | darwin) |
diff --git a/src/ChangeLog b/src/ChangeLog index f53b9a212c8..9085e91f9ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * s/darwin.h (NO_ABORT, NO_MATHERR): Let configure set it. | 3 | * s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY) |
| 4 | (BROKEN_SIGPOLL): Let configure set them. | ||
| 5 | |||
| 6 | * s/darwin.h (NO_ABORT, NO_MATHERR): Let configure set them. | ||
| 4 | 7 | ||
| 5 | * s/bsd-common.h, s/cygwin.h, s/gnu-linux.h, s/irix6-5.h: | 8 | * s/bsd-common.h, s/cygwin.h, s/gnu-linux.h, s/irix6-5.h: |
| 6 | * s/template.h: Move NARROWPROTO to configure. | 9 | * s/template.h: Move NARROWPROTO to configure. |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 7b7f785954d..ec7a1eeb0b8 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -60,17 +60,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 60 | to avoid a crash just use the Emacs implementation for that function. */ | 60 | to avoid a crash just use the Emacs implementation for that function. */ |
| 61 | #define BROKEN_GET_CURRENT_DIR_NAME 1 | 61 | #define BROKEN_GET_CURRENT_DIR_NAME 1 |
| 62 | 62 | ||
| 63 | /*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/ | ||
| 64 | #define BROKEN_FIONREAD | ||
| 65 | /* As we define BROKEN_FIONREAD, SIGIO will be undefined in systty.h. | ||
| 66 | But, on AIX, SIGAIO, SIGPTY, and SIGPOLL are defined as SIGIO, | ||
| 67 | which causes compilation error at init_signals in sysdep.c. So, we | ||
| 68 | define these macros so that syssignal.h detects them and undefine | ||
| 69 | SIGAIO, SIGPTY and SIGPOLL. */ | ||
| 70 | #define BROKEN_SIGAIO | ||
| 71 | #define BROKEN_SIGPTY | ||
| 72 | #define BROKEN_SIGPOLL | ||
| 73 | |||
| 74 | /* Conservative garbage collection has not been tested, so for now | 63 | /* Conservative garbage collection has not been tested, so for now |
| 75 | play it safe and stick with the old-fashioned way of marking. */ | 64 | play it safe and stick with the old-fashioned way of marking. */ |
| 76 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | 65 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE |
diff --git a/src/syssignal.h b/src/syssignal.h index 5c3683423be..d4578839596 100644 --- a/src/syssignal.h +++ b/src/syssignal.h | |||
| @@ -86,15 +86,13 @@ _Noreturn void croak (char *); | |||
| 86 | #if defined (SIGIO) && defined (BROKEN_SIGIO) | 86 | #if defined (SIGIO) && defined (BROKEN_SIGIO) |
| 87 | # undef SIGIO | 87 | # undef SIGIO |
| 88 | #endif | 88 | #endif |
| 89 | /* Last user: m/ibmrs6000.h */ | 89 | /* These are only used by AIX */ |
| 90 | #if defined (SIGPOLL) && defined (BROKEN_SIGPOLL) | 90 | #if defined (SIGPOLL) && defined (BROKEN_SIGPOLL) |
| 91 | #undef SIGPOLL | 91 | #undef SIGPOLL |
| 92 | #endif | 92 | #endif |
| 93 | /* Last user: m/ibmrs6000.h */ | ||
| 94 | #if defined (SIGAIO) && defined (BROKEN_SIGAIO) | 93 | #if defined (SIGAIO) && defined (BROKEN_SIGAIO) |
| 95 | #undef SIGAIO | 94 | #undef SIGAIO |
| 96 | #endif | 95 | #endif |
| 97 | /* Last user: m/ibmrs6000.h */ | ||
| 98 | #if defined (SIGPTY) && defined (BROKEN_SIGPTY) | 96 | #if defined (SIGPTY) && defined (BROKEN_SIGPTY) |
| 99 | #undef SIGPTY | 97 | #undef SIGPTY |
| 100 | #endif | 98 | #endif |