2003-01-02 Yoshinori K. Okuji <okuji@enbug.org>

From Jeremy Katz:
	* configure.in: Support building on x86_64 with gcc -m32.
This commit is contained in:
okuji 2003-01-02 14:51:37 +00:00
parent 6ced081a2d
commit 7c1993fc4c
8 changed files with 22 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2003-01-02 Yoshinori K. Okuji <okuji@enbug.org>
From Jeremy Katz:
* configure.in: Support building on x86_64 with gcc -m32.
2003-01-02 Yoshinori K. Okuji <okuji@enbug.org> 2003-01-02 Yoshinori K. Okuji <okuji@enbug.org>
From Jeremy Katz: From Jeremy Katz:

7
configure vendored
View file

@ -1665,6 +1665,7 @@ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
case "$host_cpu" in case "$host_cpu" in
i[3456]86) host_cpu=i386 ;; i[3456]86) host_cpu=i386 ;;
x86_64) host_cpu=x86_64 ;;
*) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
echo "$as_me: error: unsupported CPU type" >&2;} echo "$as_me: error: unsupported CPU type" >&2;}
{ (exit 1); exit 1; }; } ;; { (exit 1); exit 1; }; } ;;
@ -1752,6 +1753,10 @@ if test "x$CFLAGS" = x; then
default_CFLAGS=yes default_CFLAGS=yes
fi fi
if test "x$host_cpu" = xx86_64; then
CFLAGS="-m32 $CFLAGS"
fi
# #
# Programs # Programs
# #
@ -2912,7 +2917,7 @@ fi
# optimization flags # optimization flags
if test "x$ac_cv_c_compiler_gnu" = xyes; then if test "x$ac_cv_c_compiler_gnu" = xyes; then
if test "x$default_CFLAGS" = xyes; then if test "x$default_CFLAGS" = xyes; then
CFLAGS="-g" CFLAGS="$CFLAGS -g"
# If the user specify the directory for binutils, add the option `-B'. # If the user specify the directory for binutils, add the option `-B'.
if test "x$with_binutils" != x; then if test "x$with_binutils" != x; then
CFLAGS="-B$with_binutils/ $CFLAGS" CFLAGS="-B$with_binutils/ $CFLAGS"

View file

@ -21,6 +21,7 @@ AC_CANONICAL_HOST
case "$host_cpu" in case "$host_cpu" in
i[[3456]]86) host_cpu=i386 ;; i[[3456]]86) host_cpu=i386 ;;
x86_64) host_cpu=x86_64 ;;
*) AC_MSG_ERROR([unsupported CPU type]) ;; *) AC_MSG_ERROR([unsupported CPU type]) ;;
esac esac
@ -44,6 +45,10 @@ if test "x$CFLAGS" = x; then
default_CFLAGS=yes default_CFLAGS=yes
fi fi
if test "x$host_cpu" = xx86_64; then
CFLAGS="-m32 $CFLAGS"
fi
# #
# Programs # Programs
# #
@ -72,7 +77,7 @@ fi
# optimization flags # optimization flags
if test "x$ac_cv_prog_gcc" = xyes; then if test "x$ac_cv_prog_gcc" = xyes; then
if test "x$default_CFLAGS" = xyes; then if test "x$default_CFLAGS" = xyes; then
CFLAGS="-g" CFLAGS="$CFLAGS -g"
# If the user specify the directory for binutils, add the option `-B'. # If the user specify the directory for binutils, add the option `-B'.
if test "x$with_binutils" != x; then if test "x$with_binutils" != x; then
CFLAGS="-B$with_binutils/ $CFLAGS" CFLAGS="-B$with_binutils/ $CFLAGS"

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB-INSTALL "8" "December 2002" "grub-install (GNU GRUB 0.93)" FSF .TH GRUB-INSTALL "8" "January 2003" "grub-install (GNU GRUB 0.93)" FSF
.SH NAME .SH NAME
grub-install \- install GRUB on your drive grub-install \- install GRUB on your drive
.SH SYNOPSIS .SH SYNOPSIS

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB-MD5-CRYPT "8" "December 2002" "grub-md5-crypt (GNU GRUB )" FSF .TH GRUB-MD5-CRYPT "8" "January 2003" "grub-md5-crypt (GNU GRUB )" FSF
.SH NAME .SH NAME
grub-md5-crypt \- Encrypt a password in MD5 format grub-md5-crypt \- Encrypt a password in MD5 format
.SH SYNOPSIS .SH SYNOPSIS

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB-TERMINFO "8" "December 2002" "grub-terminfo (GNU GRUB 0.93)" FSF .TH GRUB-TERMINFO "8" "January 2003" "grub-terminfo (GNU GRUB 0.93)" FSF
.SH NAME .SH NAME
grub-terminfo \- Generate a terminfo command from a terminfo name grub-terminfo \- Generate a terminfo command from a terminfo name
.SH SYNOPSIS .SH SYNOPSIS

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB "8" "December 2002" "grub (GNU GRUB 0.93)" FSF .TH GRUB "8" "January 2003" "grub (GNU GRUB 0.93)" FSF
.SH NAME .SH NAME
grub \- the grub shell grub \- the grub shell
.SH SYNOPSIS .SH SYNOPSIS

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH MBCHK "1" "December 2002" "mbchk (GNU GRUB 0.93)" FSF .TH MBCHK "1" "January 2003" "mbchk (GNU GRUB 0.93)" FSF
.SH NAME .SH NAME
mbchk \- check the format of a Multiboot kernel mbchk \- check the format of a Multiboot kernel
.SH SYNOPSIS .SH SYNOPSIS