pkgsrc/audio/rsynth/patches/patch-ab
joerg 977f71db1f Let's assume for a moment you want to test for a function in a library.
Does it make sense that the test program should actually be compilable?
GCC 3.4 rejects atan called with no arguments after all.
2005-12-11 21:10:29 +00:00

28 lines
554 B
Text

$NetBSD: patch-ab,v 1.3 2005/12/11 21:10:29 joerg Exp $
--- configure.orig 2005-12-11 20:56:09.000000000 +0000
+++ configure
@@ -1329,9 +1329,10 @@ cat > conftest.$ac_ext <<EOF
#line 1330 "configure"
#include "confdefs.h"
+double val;
int main() { return 0; }
int t() {
-atan()
+atan(val)
; return 0; }
EOF
if eval $ac_link; then
@@ -1368,9 +1369,10 @@ cat > conftest.$ac_ext <<EOF
#line 1369 "configure"
#include "confdefs.h"
+double val;
int main() { return 0; }
int t() {
-atan()
+atan(val)
; return 0; }
EOF
if eval $ac_link; then