]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/blob - patches/patch-aa
9304dc9f4eb7e8a3bf54c7b094a99ab11042dd92
[pkgsrc-ghc.git] / patches / patch-aa
1 $NetBSD$
2
3 --- libraries/integer-gmp/configure.orig        2010-10-05 12:46:12.000000000 +0000
4 +++ libraries/integer-gmp/configure
5 @@ -2961,68 +2961,6 @@ fi
6  fi
7  
8  
9 -case $target_os in
10 -  darwin*)
11 -    { echo "$as_me:$LINENO: checking for GMP.framework" >&5
12 -echo $ECHO_N "checking for GMP.framework... $ECHO_C" >&6; }
13 -    save_libs="$LIBS"
14 -    LIBS="-framework GMP"
15 -    cat >conftest.$ac_ext <<_ACEOF
16 -/* confdefs.h.  */
17 -_ACEOF
18 -cat confdefs.h >>conftest.$ac_ext
19 -cat >>conftest.$ac_ext <<_ACEOF
20 -/* end confdefs.h.  */
21 -
22 -/* Override any GCC internal prototype to avoid an error.
23 -   Use char because int might match the return type of a GCC
24 -   builtin and then its argument prototype would still apply.  */
25 -#ifdef __cplusplus
26 -extern "C"
27 -#endif
28 -char __gmpz_fdiv_qr ();
29 -int
30 -main ()
31 -{
32 -return __gmpz_fdiv_qr ();
33 -  ;
34 -  return 0;
35 -}
36 -_ACEOF
37 -rm -f conftest.$ac_objext conftest$ac_exeext
38 -if { (ac_try="$ac_link"
39 -case "(($ac_try" in
40 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41 -  *) ac_try_echo=$ac_try;;
42 -esac
43 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44 -  (eval "$ac_link") 2>conftest.er1
45 -  ac_status=$?
46 -  grep -v '^ *+' conftest.er1 >conftest.err
47 -  rm -f conftest.er1
48 -  cat conftest.err >&5
49 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50 -  (exit $ac_status); } && {
51 -        test -z "$ac_c_werror_flag" ||
52 -        test ! -s conftest.err
53 -       } && test -s conftest$ac_exeext &&
54 -       $as_test_x conftest$ac_exeext; then
55 -  HaveFrameworkGMP=YES; GMP_FRAMEWORK=GMP; GMP_LIBS=
56 -else
57 -  echo "$as_me: failed program was:" >&5
58 -sed 's/^/| /' conftest.$ac_ext >&5
59 -
60 -       HaveFrameworkGMP=NO
61 -fi
62 -
63 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64 -      conftest$ac_exeext conftest.$ac_ext
65 -    LIBS="$save_libs"
66 -    { echo "$as_me:$LINENO: result: $HaveFrameworkGMP" >&5
67 -echo "${ECHO_T}$HaveFrameworkGMP" >&6; }
68 -    ;;
69 -esac
70 -
71  ac_ext=c
72  ac_cpp='$CPP $CPPFLAGS'
73  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'