$NetBSD: patch-ad,v 1.2 2000/06/30 16:29:17 danw Exp $ --- configure.orig Tue Sep 14 19:13:41 1999 +++ configure Fri Jun 30 08:05:39 2000 @@ -786,7 +786,16 @@ HostPlatform_CPP='i386_unknown_netbsd' HostArch_CPP='i386' HostVendor_CPP='unknown' - HostOS_CPP='netbsd' + if test "$HASKELL_OBJ_FMT" = "a.out"; then + HostOS_CPP='netbsd' + else + if test "$HASKELL_OBJ_FMT" = "ELF"; then + HostOS_CPP='netbsd_elf' + else + echo bad \$HASKELL_OBJ_FMT = "$HASKELL_OBJ_FMT" + exit 1 + fi + fi ;; i[3456]86-*-solaris2*) HostPlatform=i386-unknown-solaris2 # hack again @@ -3926,24 +3935,24 @@ HaveLibGmp=YES; LibGmp=gmp else echo "$ac_t""no" 1>&6 -echo $ac_n "checking for mpz_fdiv_qr in -lgmp2""... $ac_c" 1>&6 -echo "configure:3931: checking for mpz_fdiv_qr in -lgmp2" >&5 -ac_lib_var=`echo gmp2'_'mpz_fdiv_qr | sed 'y%./+-%__p_%'` +echo $ac_n "checking for __gmpz_fdiv_qr in -lgmp""... $ac_c" 1>&6 +echo "configure:3931: checking for __gmpz_fdiv_qr in -lgmp" >&5 +ac_lib_var=`echo gmp'_'__gmpz_fdiv_qr | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lgmp2 $LIBS" +LIBS="-lgmp $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then @@ -3961,7 +3970,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - HaveLibGmp=YES; LibGmp=gmp2 + HaveLibGmp=YES; LibGmp=gmp else echo "$ac_t""no" 1>&6 HaveLibGmp=No; LibGmp=not-installed