diff options
| author | Glenn Morris | 2010-04-27 23:43:38 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-04-27 23:43:38 -0700 |
| commit | 44e3d510df92cc32bc682a874b978608075ffad2 (patch) | |
| tree | ceaed40c2bab4527d78dcd1554fe0bdd2865bca0 | |
| parent | 17818d715235dafd82625fb6d739dddaf60c2701 (diff) | |
| download | emacs-44e3d510df92cc32bc682a874b978608075ffad2.tar.gz emacs-44e3d510df92cc32bc682a874b978608075ffad2.zip | |
Move test for 64-bit kernel with 32-bit userland to configure.
See discussion in bug#5655.
* configure.in (machine, canonical): On amdx86-64, check for a 32-bit
userland and maybe change values to i386 (move test from s/amdx86-64.h).
* src/m/amdx86-64.h [i386]: Move this test to configure.in.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.in | 14 | ||||
| -rw-r--r-- | src/m/amdx86-64.h | 10 |
3 files changed, 19 insertions, 10 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-04-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in (machine, canonical): On amdx86-64, check for a 32-bit | ||
| 4 | userland and maybe change values to i386 (move test from s/amdx86-64.h). | ||
| 5 | |||
| 1 | 2010-04-27 Glenn Morris <rgm@gnu.org> | 6 | 2010-04-27 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * configure.in (LIBXTR6): New output variable. Move unixware special | 8 | * configure.in (LIBXTR6): New output variable. Move unixware special |
diff --git a/configure.in b/configure.in index 281d06995d7..6233b7fe730 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -761,6 +761,20 @@ AC_PROG_INSTALL | |||
| 761 | if test "x$RANLIB" = x; then | 761 | if test "x$RANLIB" = x; then |
| 762 | AC_PROG_RANLIB | 762 | AC_PROG_RANLIB |
| 763 | fi | 763 | fi |
| 764 | |||
| 765 | ## Although we're running on an amd64 kernel, we're actually compiling for | ||
| 766 | ## the x86 architecture. The user should probably have provided an | ||
| 767 | ## explicit --build to `configure', but if everything else than the kernel | ||
| 768 | ## is running in i386 mode, we can help them out. | ||
| 769 | if test "$machine" = "amdx86-64"; then | ||
| 770 | AC_CHECK_DECL([i386]) | ||
| 771 | if test "$ac_cv_have_decl_i386" = "yes"; then | ||
| 772 | canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` | ||
| 773 | machine=intel386 | ||
| 774 | machfile="m/${machine}.h" | ||
| 775 | fi | ||
| 776 | fi | ||
| 777 | |||
| 764 | AC_PATH_PROG(INSTALL_INFO, install-info) | 778 | AC_PATH_PROG(INSTALL_INFO, install-info) |
| 765 | AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) | 779 | AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) |
| 766 | AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin) | 780 | AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin) |
diff --git a/src/m/amdx86-64.h b/src/m/amdx86-64.h index f7dfb126e6e..b2e6cae48c7 100644 --- a/src/m/amdx86-64.h +++ b/src/m/amdx86-64.h | |||
| @@ -17,15 +17,6 @@ GNU General Public License for more details. | |||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | #ifdef i386 | ||
| 21 | /* Although we're running on an amd64 kernel, we're actually compiling for | ||
| 22 | the x86 architecture. The user should probably have provided an | ||
| 23 | explicit --build to `configure', but if everything else than the kernel | ||
| 24 | is running in i386 mode, then the bug is really ours: we should have | ||
| 25 | guessed better. */ | ||
| 26 | #include "m/intel386.h" | ||
| 27 | #else | ||
| 28 | |||
| 29 | /* The following line tells the configuration script what sort of | 20 | /* The following line tells the configuration script what sort of |
| 30 | operating system this machine is likely to run. | 21 | operating system this machine is likely to run. |
| 31 | USUAL-OPSYS="linux" */ | 22 | USUAL-OPSYS="linux" */ |
| @@ -90,7 +81,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 90 | #define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtn.o | 81 | #define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtn.o |
| 91 | 82 | ||
| 92 | #endif /* SOLARIS2 */ | 83 | #endif /* SOLARIS2 */ |
| 93 | #endif /* !i386 */ | ||
| 94 | 84 | ||
| 95 | /* arch-tag: 8a5e001d-e12e-4692-a3a6-0b15ba271c6e | 85 | /* arch-tag: 8a5e001d-e12e-4692-a3a6-0b15ba271c6e |
| 96 | (do not change this comment) */ | 86 | (do not change this comment) */ |