summaryrefslogtreecommitdiff
path: root/databases/sqlrelay/patches/patch-configure
blob: 1f6d3a0ab8d4bf6cca34aa9142ce70840a475ce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-configure,v 1.7 2019/09/28 08:42:07 adam Exp $

Cripple iODBC check, we're using UnixODBC and it was getting in the way.
Fix Python 3 lookup.
Fix Ruby support.

--- configure.orig	2016-12-20 08:40:38.000000000 +0000
+++ configure
@@ -26775,7 +26775,7 @@ fi
 
 
 
-SEARCHPATH=$ODBCPATH
+SEARCHPATH=OFF_$ODBCPATH
 NAME=iodbc
 HEADER=sql.h
 LIBNAME=iodbc
@@ -32424,14 +32424,14 @@ then
 		if ( test -n "$PYTHON3PATH" )
 		then
 
-			for i in "3.9" "3.8" "3.7" "3.6" "3.5" "3.4" "3.3" "3.2" "3.1" "3.0"
+			for i in "${PYVERSSUFFIX}"
 			do
-				if ( test -d "$PYTHON3PATH/include/python$i" -a -d "$PYTHON3PATH/lib64/python$i/config" )
+				if ( test -d "$PYTHON3PATH/include/python$i" -a -d "$PYTHON3PATH/lib64/python$i/config-$i" )
 				then
 					PYTHON3INCLUDES="-I$PYTHON3PATH/include/python$i"
 					PYTHON3DIR="$PYTHON3PATH/lib64/python$i"
 				else
-					if ( test -d "$PYTHON3PATH/include/python$i" -a -d "$PYTHON3PATH/lib/python$i/config" )
+					if ( test -d "$PYTHON3PATH/include/python$i" -a -d "$PYTHON3PATH/lib/python$i/config-$i" )
 					then
 						PYTHON3INCLUDES="-I$PYTHON3PATH/include/python$i"
 						PYTHON3DIR="$PYTHON3PATH/lib/python$i"
@@ -32938,7 +32938,7 @@ print CONFIG["arch"]
 print "\n"
 print "ruby_version = "
 begin
-print Config::CONFIG["ruby_version"]
+print RbConfig::CONFIG["ruby_version"]
 rescue
 print CONFIG["ruby_version"]
 end