From c5ce2a90791084af41462c3a261d29779faff3ef Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 11 Feb 2009 17:17:22 +0000 Subject: Fix error when configuring with a custom directory: http://www.inspircd.org/forum/showthread.php?t=5419 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11085 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/utilities.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'make') diff --git a/make/utilities.pm b/make/utilities.pm index cb61755fe..d3716f60e 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -149,7 +149,14 @@ sub pkgconfig_get_include_dirs($$$;$) $headername =~ s/^\///; promptstring("path to the directory containing $headername", $key, "/usr/include",$packagename,"$packagename-includes"); $packagename =~ tr/a-z/A-Z/; - $main::config{$key} = "-I$main::config{$key}" . " $defaults -DVERSION_$packagename=\"$v\""; + if (defined $v) + { + $main::config{$key} = "-I$main::config{$key}" . " $defaults -DVERSION_$packagename=\"$v\""; + } + else + { + $main::config{$key} = "-I$main::config{$key}" . " $defaults -DVERSION_$packagename=\"0.0\""; + } $main::config{$key} =~ s/^\s+//g; $ret = $main::config{$key}; return $ret; -- cgit v1.2.3