Skip to content

Commit

Permalink
When use --user option, wxhaskell should install .cabal location.
Browse files Browse the repository at this point in the history
darcs-hash:20081128133122-c1071-d7f91ebe1cb93e4b797f5a56d360da6011ca0fa8.gz
  • Loading branch information
shelarcy committed Nov 28, 2008
1 parent 0ed1b40 commit d9cb0c5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions configure
Expand Up @@ -345,14 +345,15 @@ process_args ()
-package-conf=*|--package-conf=*)
hcpkglocal="$arg";;
-user|--user)
hcpkgopt="--user";;
# I don't know why macosx-app doesn't work when use .cabal location.
# if test -d "$HOME/.cabal"; then
# prefix="$HOME/.cabal/lib/wxhaskell"
# execprefix="$prefix"
# libprefix="$prefix"
# sharedprefix="$prefix/share"
# fi;;
hcpkgopt="--user"
if test -d "$HOME/.cabal"; then
prefix="$HOME/.cabal/lib/wxhaskell-$version"
execprefix="$prefix"
libprefix="$prefix"
# TODO: sharedprefix means shared library's directory currently. This is confusing point.
# sharedprefix="$prefix/share"
sharedprefix="$prefix/lib"
fi;;
-version=*|--version=*)
version="$arg";;
-release=*|--release=*)
Expand Down

0 comments on commit d9cb0c5

Please sign in to comment.