aboutsummaryrefslogtreecommitdiff
path: root/lang/perl-www-curl/patches/100-perl-www-curl_disable_curl-config_hack.patch
blob: 568b65c2a6791b5ed6c15911b50d69b022395188 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -12,31 +12,31 @@ no_index		directory => 'template';
 repository		'http://github.com/szbalint/WWW--Curl';
 # This is a hack. If you have libcurl installed, just specify curl.h below
 # and comment out this line.
-if ($^O ne 'MSWin32') {
-    if (!$ENV{CURL_CONFIG}) {
-	    requires_external_bin	'curl-config';
-    }
-} else {
-	print	"Sorry, no automated install is available on Windows,\n".
-		"please see the README.Win32 file on instructions for a manual install.\n";
-	exit(0);
-}
-
-my $curl_config = $ENV{CURL_CONFIG} || 'curl-config';
-
-my $vernum = `${curl_config} --vernum`; chomp $vernum;
-my $version = `${curl_config} --version`; chomp $version; 
-
-my $minimum_ver = hex("070a08");
-
-if ($vernum && hex($vernum) <= $minimum_ver) {
-	print	"Your currently installed libcurl version - $version - is too old.\n".
-		"This module doesn't seek compatibility with versions older than 7.10.8\n".
-		"Proceed manually if you know what you're doing.\n";
-	exit(0);
-}
-
-print "The version is $version\n";
+#if ($^O ne 'MSWin32') {
+#    if (!$ENV{CURL_CONFIG}) {
+#	    requires_external_bin	'curl-config';
+#    }
+#} else {
+#	print	"Sorry, no automated install is available on Windows,\n".
+#		"please see the README.Win32 file on instructions for a manual install.\n";
+#	exit(0);
+#}
+#
+#my $curl_config = $ENV{CURL_CONFIG} || 'curl-config';
+#
+#my $vernum = `${curl_config} --vernum`; chomp $vernum;
+#my $version = `${curl_config} --version`; chomp $version; 
+#
+#my $minimum_ver = hex("070a08");
+#
+#if ($vernum && hex($vernum) <= $minimum_ver) {
+#	print	"Your currently installed libcurl version - $version - is too old.\n".
+#		"This module doesn't seek compatibility with versions older than 7.10.8\n".
+#		"Proceed manually if you know what you're doing.\n";
+#	exit(0);
+#}
+#
+#print "The version is $version\n";
 
 my @includes = qw();
 my ($cflags,$lflags, $ldflags) = ('','','');
@@ -58,10 +58,10 @@ if ($^O ne 'MSWin32') {
 # Get curl to tell us where it is, if we can.
 #
 
-if ($^O ne 'MSWin32') {
-	$cflags = `${curl_config} --cflags`;
-	$lflags = `${curl_config} --libs`;
-}
+#if ($^O ne 'MSWin32') {
+#	$cflags = `${curl_config} --cflags`;
+#	$lflags = `${curl_config} --libs`;
+#}
 
 # can't find link flags, make some guesses
 if (!defined($lflags)) {