From: wolfgang.thaller@gmx.net Date: Thu, 26 Jan 2006 07:15:04 +0000 (+0000) Subject: Check for GMP.framework on all Darwin platforms, not just PPC X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=bfd03f0e261b7cb73eef653b36a8051066e496d5 Check for GMP.framework on all Darwin platforms, not just PPC --- diff --git a/configure.ac b/configure.ac index 6f7ff38..67f8e18 100644 --- a/configure.ac +++ b/configure.ac @@ -1081,17 +1081,19 @@ AC_SUBST(LibGmp) dnl ** (Mac OS X only: check for GMP.framework) HaveFrameworkGMP=NO -if test $HostPlatform = "powerpc-apple-darwin"; then - AC_MSG_CHECKING([for GMP.framework]) - save_libs="$LIBS" - LIBS="-framework GMP" - AC_TRY_LINK_FUNC(__gmpz_fdiv_qr, HaveFrameworkGMP=YES,) - if test $HaveFrameworkGMP = YES; then - AC_DEFINE([HAVE_FRAMEWORK_GMP], [1], [Define to 1 if GMP.framework is installed (Mac OS X only).]) - fi; - LIBS="$save_libs" - AC_MSG_RESULT([$HaveFrameworkGMP]) -fi; +case $HostPlatform in +*-apple-darwin) + AC_MSG_CHECKING([for GMP.framework]) + save_libs="$LIBS" + LIBS="-framework GMP" + AC_TRY_LINK_FUNC(__gmpz_fdiv_qr, HaveFrameworkGMP=YES,) + if test $HaveFrameworkGMP = YES; then + AC_DEFINE([HAVE_FRAMEWORK_GMP], [1], [Define to 1 if GMP.framework is installed (Mac OS X only).]) + fi; + LIBS="$save_libs" + AC_MSG_RESULT([$HaveFrameworkGMP]) + ;; +esac AC_SUBST(HaveFrameworkGMP) dnl ** check for mingwex library