pkgsrc/math/ocaml-zarith/patches/patch-configure
markd 7eeababab9 Add ocaml-zarith 1.4.1
The Zarith library implements arithmetic and logical operations over
arbitrary precision numbers.  It uses GMP to efficiently implement
arithmetic over large numbers.  Small integers are represented as Caml
unboxed integers for speed and space economy.
2016-02-07 21:43:03 +00:00

28 lines
824 B
Text

$NetBSD: patch-configure,v 1.1 2016/02/07 21:43:03 markd Exp $
--- configure.orig 2013-06-12 07:13:59.000000000 +0000
+++ configure
@@ -304,6 +304,14 @@ case $host in
arch='i686'
fi
;;
+ i386-*freebsd* | i386-*netbsd* | i386-*dragonfly*)
+ ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
+ arch='i686'
+ ;;
+ amd64-*freebsd* | amd64-*netbsd* | x86_64-*dragonfly*)
+ ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
+ arch='x86_64'
+ ;;
i386-*darwin* | x86_64-*darwin*)
ccdef="-DZ_UNDERSCORE_PREFIX -DZ_MACOS $ccdef"
if test "x$wordsize" = "x64"; then
@@ -401,7 +409,7 @@ CFLAGS=$ccinc $ccdef $ccopt
ASFLAGS=$ccdef $asopt
LIBS=$cclib
ARCH=$arch
-INSTALLDIR=$installdir
+INSTALLDIR=${DESTDIR}$installdir
AR=$ar
INSTALL=install
OCAMLFIND=ocamlfind