Config::Config is missing on CentOS 6 by default. sigh. fixed it by using ":" regardless the current OS.

This commit is contained in:
agentzh (章亦春) 2011-07-11 18:19:26 +08:00
parent 092b2f6b83
commit ca408fc450
2 changed files with 5 additions and 2 deletions

5
util/configure vendored
View File

@ -615,7 +615,10 @@ sub can_run {
my $_cmd = $cmd;
return $_cmd if -x $_cmd;
for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
# FIXME: this is a hack; MSWin32 is not supported anyway
my $path_sep = ':';
for my $dir ((split /$path_sep/, $ENV{PATH}), '.') {
next if $dir eq '';
my $abs = File::Spec->catfile($dir, $_[0]);
return $abs if -x $abs;

View File

@ -1,7 +1,7 @@
#!/bin/bash
main_ver=1.0.4
minor_ver=0rc3
minor_ver=0rc4
version=$main_ver.$minor_ver
echo $version