Fix the $(GMP_DIR) path that we remove
[packages/integer-gmp.git] / configure.ac
index af75ede..b6a8003 100644 (file)
@@ -51,13 +51,15 @@ case $target_os in
     save_libs="$LIBS"
     LIBS="-framework GMP"
     AC_TRY_LINK_FUNC(__gmpz_fdiv_qr,
-      [HaveFrameworkGMP=yes; GMP_FRAMEWORK=GMP; GMP_LIBS=],
-      [HaveFrameworkGMP=no])
+      [HaveFrameworkGMP=YES; GMP_FRAMEWORK=GMP; GMP_LIBS=],
+      [HaveFrameworkGMP=NO])
     LIBS="$save_libs"
     AC_MSG_RESULT([$HaveFrameworkGMP])
     ;;
 esac
 
+AC_CHECK_HEADER([gmp.h], , [HaveFrameworkGMP=NO; HaveLibGmp=NO; GMP_LIBS=])
+
 dnl--------------------------------------------------------------------
 dnl * Make sure we got some form of gmp
 dnl--------------------------------------------------------------------