From 9f300df6ee45c0c6a76a18c6e2efc24daffc3f23 Mon Sep 17 00:00:00 2001 From: sebc Date: Mon, 12 Feb 2001 13:13:29 +0000 Subject: [PATCH] [project @ 2001-02-12 13:13:29 by sebc] Add support for MacOS X. --- ghc/rts/gmp/configure | 5 ++++- ghc/rts/gmp/configure.in | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ghc/rts/gmp/configure b/ghc/rts/gmp/configure index 0142caf..10d1af6 100644 --- a/ghc/rts/gmp/configure +++ b/ghc/rts/gmp/configure @@ -1295,6 +1295,9 @@ case "$target" in #define _LONG_LONG_LIMB 1 EOF ;; + powerpc-apple-darwin* | powerpc-apple-macosx*) + gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc -traditional-cpp" + ;; powerpc*-*-*) gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc" ;; @@ -4357,7 +4360,7 @@ case "$target" in ;; power*-*-*) case "$target" in - *-*-mach* | *-*-rhapsody* | *-*-nextstep*) + *-*-mach* | *-*-rhapsody* | *-*-nextstep* | *-*-darwin* | *-*-macosx*) ;; # these use non-conventional assembly syntax. powerpc64-*-aix*) gmp_m4postinc="powerpc32/regmap.m4 powerpc64/aix.m4" diff --git a/ghc/rts/gmp/configure.in b/ghc/rts/gmp/configure.in index bdbac68..18f610f 100644 --- a/ghc/rts/gmp/configure.in +++ b/ghc/rts/gmp/configure.in @@ -21,7 +21,7 @@ dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, dnl MA 02111-1307, USA. -AC_REVISION($Revision: 1.7 $)dnl +AC_REVISION($Revision: 1.8 $)dnl AC_PREREQ(2.14)dnl AC_INIT(gmp-impl.h) @@ -258,6 +258,9 @@ case "$target" in gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc64" AC_DEFINE(_LONG_LONG_LIMB) dnl FIXME: Remove. ;; + powerpc-apple-darwin* | powerpc-apple-macosx*) + gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc -traditional-cpp" + ;; powerpc*-*-*) gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc" ;; @@ -784,7 +787,7 @@ case "$target" in ;; power*-*-*) case "$target" in - *-*-mach* | *-*-rhapsody* | *-*-nextstep*) + *-*-mach* | *-*-rhapsody* | *-*-nextstep* | *-*-darwin* | *-*-macosx*) ;; # these use non-conventional assembly syntax. powerpc64-*-aix*) gmp_m4postinc="powerpc32/regmap.m4 powerpc64/aix.m4" -- 1.7.10.4