Browse files

Don't crash when no prefix is specified.

  • Loading branch information...
1 parent 65900bf commit ec9772f2a5dc5cd4b60aa4b299c4741312cf8892 @voxik voxik committed Oct 6, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 configure
View
3 configure
@@ -175,7 +175,7 @@ class Configure
end
def set_filesystem_paths
- @prefixdir = expand_install_dir @prefixdir
+ @prefixdir = @prefixdir ? expand_install_dir(@prefixdir) : @sourcedir
if @appdir
dir = expand_install_dir @appdir
@@ -187,7 +187,6 @@ class Configure
@vendordir = dir + "/vendor"
end
- @prefixdir = @sourcedir unless @prefixdir
@bindir = @prefixdir + "/bin" unless @bindir
@librarydir = @prefixdir + "/lib" unless @librarydir
@runtimedir = @prefixdir + "/runtime" unless @runtimedir

0 comments on commit ec9772f

Please sign in to comment.