aboutsummaryrefslogtreecommitdiff
path: root/devel/swig20/files/patch-configure
blob: d4c694cd014285c2323fb562b6d626f426c12d91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- configure.orig	Sat Sep 23 02:14:04 2000
+++ configure	Sat Jun  9 12:08:08 2001
@@ -2684,7 +2684,7 @@
 echo $ac_n "checking for Ruby header files""... $ac_c" 1>&6
 echo "configure:2686: checking for Ruby header files" >&5
 if test -n "$RUBY"; then
-	RUBYDIR=`($RUBY -rmkmf -e 'print $archdir') 2>/dev/null`
+	RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG["archdir"] || $archdir') 2>/dev/null`
 	if test "$RUBYDIR" != ""; then
 		dirs="$RUBYDIR"
 		RUBYINCLUDE=none
--- configure.in.orig	Sat Sep 23 02:14:03 2000
+++ configure.in	Sat Jun  9 11:55:20 2001
@@ -631,7 +631,7 @@
 fi
 AC_MSG_CHECKING(for Ruby header files)
 if test -n "$RUBY"; then
-	RUBYDIR=`($RUBY -rmkmf -e 'print $archdir') 2>/dev/null`
+	RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG[["archdir"]] || $archdir') 2>/dev/null`
 	if test "$RUBYDIR" != ""; then
 		dirs="$RUBYDIR"
 		RUBYINCLUDE=none