diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-02-11 17:17:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-02-11 17:17:22 +0000 |
commit | c5ce2a90791084af41462c3a261d29779faff3ef (patch) | |
tree | f83a1d95380b145b09980af2cb05512f96bd6059 | |
parent | 6cc0050b4ef753e4c36445ad9757edbb7df7901e (diff) |
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
-rw-r--r-- | make/utilities.pm | 9 |
1 files changed, 8 insertions, 1 deletions
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; |