pkgsrc/math/udunits/patches/patch-ac
2010-11-26 11:29:07 +00:00

36 lines
1 KiB
Text

$NetBSD: patch-ac,v 1.4 2010/11/26 11:29:08 obache Exp $
--- configure.orig 2003-08-29 11:53:25.000000000 -0400
+++ configure 2008-08-17 02:59:48.000000000 -0400
@@ -2094,8 +2094,9 @@ echo "configure:2093: checking for (void
#line 2095 "configure"
#include "confdefs.h"
+double val;
int main() {
-(void)sin(0.0);
+return sin(val);
; return 0; }
EOF
if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -2141,8 +2142,9 @@ echo "configure:2140: checking for (void
#line 2142 "configure"
#include "confdefs.h"
+double val;
int main() {
-(void)sin(0.0);
+return sin(val);
; return 0; }
EOF
if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -5398,6 +5400,9 @@ echo "configure:5396: checking for posit
HP-UX)
picflag=+z
;;
+ NetBSD|FreeBSD|OpenBSD|DragonFly|Linux|SunOS)
+ picflag=-fPIC
+ ;;
esac
case "$picflag" in
'')