[project @ 2001-02-12 13:13:29 by sebc]
authorsebc <unknown>
Mon, 12 Feb 2001 13:13:29 +0000 (13:13 +0000)
committersebc <unknown>
Mon, 12 Feb 2001 13:13:29 +0000 (13:13 +0000)
Add support for MacOS X.

ghc/rts/gmp/configure
ghc/rts/gmp/configure.in

index 0142caf..10d1af6 100644 (file)
@@ -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"
index bdbac68..18f610f 100644 (file)
@@ -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"