X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2Fconfigure-bin.ac;h=783c1f1680a83281e6503b76dfc102493bfd2236;hb=7bb3d1fc79521d591cd9f824893963141a7997b6;hp=62562b864b5ea59daa243355040bbfffdea2db4a;hpb=34cc75e1a62638f2833815746ebce0a9114dc26b;p=ghc-hetmet.git diff --git a/distrib/configure-bin.ac b/distrib/configure-bin.ac index 62562b8..783c1f1 100644 --- a/distrib/configure-bin.ac +++ b/distrib/configure-bin.ac @@ -105,6 +105,25 @@ AC_SUBST(exeext) FP_FIND_ROOT +dnl-------------------------------------------------------------------- +dnl * Deal with arguments telling us gmp is somewhere odd +dnl-------------------------------------------------------------------- + +FP_ARG_GMP + +GMP_INCLUDE_DIRS= +GMP_LIB_DIRS= +if test "x$gmp_libraries" != "xNONE"; then + LDFLAGS="-L$gmp_libraries $LDFLAGS" + GMP_LIB_DIRS=$gmp_libraries +fi +if test "x$gmp_includes" != "xNONE"; then + CPPFLAGS="-I$gmp_includes $CPPFLAGS" + GMP_INCLUDE_DIRS=$gmp_includes +fi +AC_SUBST(GMP_INCLUDE_DIRS) +AC_SUBST(GMP_LIB_DIRS) + # dnl ** Check Perl installation ** #