diff options
| author | Paul Eggert | 2011-06-21 10:10:10 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-21 10:10:10 -0700 |
| commit | e92b6c884116d70e224e9cb535ed85a2b05665a5 (patch) | |
| tree | 326b1a79ec5657e8deddc5baaeb5b5e5b8879104 | |
| parent | 8462fc0ce20cc1caf883996d193d1cd2c1629498 (diff) | |
| download | emacs-e92b6c884116d70e224e9cb535ed85a2b05665a5.tar.gz emacs-e92b6c884116d70e224e9cb535ed85a2b05665a5.zip | |
* configure.in: Port alloca to AIX 3.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | configure.in | 15 |
2 files changed, 8 insertions, 10 deletions
| @@ -4,7 +4,8 @@ | |||
| 4 | * .bzrignore: Add lib/alloca.h. | 4 | * .bzrignore: Add lib/alloca.h. |
| 5 | * Makefile.in (GNULIB_MODULES): Add alloca-opt. | 5 | * Makefile.in (GNULIB_MODULES): Add alloca-opt. |
| 6 | * configure.in (AC_FUNC_ALLOCA): Remove almost all the alloca stuff, | 6 | * configure.in (AC_FUNC_ALLOCA): Remove almost all the alloca stuff, |
| 7 | as gnulib now does that for us. Put alloca check after gl_INIT. | 7 | as gnulib now does that for us. Put alloca check in config.h. |
| 8 | Include <alloca.h> before any other include file, for AIX 3. | ||
| 8 | * lib/gnulib.mk, m4/gl-comp.m4: Regenerate. | 9 | * lib/gnulib.mk, m4/gl-comp.m4: Regenerate. |
| 9 | * lib/alloca.in.h, m4/alloca.m4: New files, from gnulib. | 10 | * lib/alloca.in.h, m4/alloca.m4: New files, from gnulib. |
| 10 | 11 | ||
diff --git a/configure.in b/configure.in index e4d2e2e96c8..fdeae8e6152 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -2678,14 +2678,6 @@ gl_ASSERT_NO_GNULIB_POSIXCHECK | |||
| 2678 | gl_ASSERT_NO_GNULIB_TESTS | 2678 | gl_ASSERT_NO_GNULIB_TESTS |
| 2679 | gl_INIT | 2679 | gl_INIT |
| 2680 | 2680 | ||
| 2681 | # Check for alloca. | ||
| 2682 | dnl src/alloca.c has been removed. Could also check if $ALLOCA is set? | ||
| 2683 | dnl FIXME is there an autoconf test that does the right thing, without | ||
| 2684 | dnl needing to call A_M_E afterwards? | ||
| 2685 | if test x"$ac_cv_func_alloca_works" != xyes; then | ||
| 2686 | AC_MSG_ERROR( [a system implementation of alloca is required] ) | ||
| 2687 | fi | ||
| 2688 | |||
| 2689 | # UNIX98 PTYs. | 2681 | # UNIX98 PTYs. |
| 2690 | AC_CHECK_FUNCS(grantpt) | 2682 | AC_CHECK_FUNCS(grantpt) |
| 2691 | 2683 | ||
| @@ -3458,6 +3450,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 3458 | ])dnl | 3450 | ])dnl |
| 3459 | 3451 | ||
| 3460 | AH_BOTTOM([ | 3452 | AH_BOTTOM([ |
| 3453 | /* On AIX 3 this must be included before any other include file. */ | ||
| 3454 | #include <alloca.h> | ||
| 3455 | #if ! HAVE_ALLOCA | ||
| 3456 | # error "alloca not available on this machine" | ||
| 3457 | #endif | ||
| 3458 | |||
| 3461 | /* Define AMPERSAND_FULL_NAME if you use the convention | 3459 | /* Define AMPERSAND_FULL_NAME if you use the convention |
| 3462 | that & in the full name stands for the login id. */ | 3460 | that & in the full name stands for the login id. */ |
| 3463 | /* Turned on June 1996 supposing nobody will mind it. */ | 3461 | /* Turned on June 1996 supposing nobody will mind it. */ |
| @@ -3533,7 +3531,6 @@ AH_BOTTOM([ | |||
| 3533 | 3531 | ||
| 3534 | #include <string.h> | 3532 | #include <string.h> |
| 3535 | #include <stdlib.h> | 3533 | #include <stdlib.h> |
| 3536 | #include <alloca.h> | ||
| 3537 | 3534 | ||
| 3538 | #ifndef HAVE_STRCHR | 3535 | #ifndef HAVE_STRCHR |
| 3539 | #define strchr(a, b) index (a, b) | 3536 | #define strchr(a, b) index (a, b) |