diff options
author | lloyd <[email protected]> | 2006-11-11 04:02:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-11-11 04:02:03 +0000 |
commit | 47158578e6da8b13a3016f2160c9c34ab8f7632a (patch) | |
tree | 14ee59f58ff80fc71002b0bc4017a464ee192429 /configure.pl | |
parent | 76ef2902e72c641c3cd322380168d9a3fdae4717 (diff) |
The configure script was getting confused if invoked as
'perl configure.pl' rather than 'perl ./configure.pl'; now that works.
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.pl b/configure.pl index 45c46bd14..563da5c88 100755 --- a/configure.pl +++ b/configure.pl @@ -144,7 +144,8 @@ sub main { sub where_am_i { my ($volume,$dir,$file) = File::Spec->splitpath($0); my $src_dir = File::Spec->catpath($volume, $dir, ''); - return $src_dir; + return $src_dir if $src_dir; + return File::Spec->curdir(); } ################################################## |