id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,difficulty,ghcversion,platform
51,--with-hc screws up finding ghc-pkg? (hsc2hs),Peter Gammie <peteg42   gmail.com>,ijones,"Isaac,

When trying to compile c2hs 0.14.5:
{{{
%:/tmp_amd/kamen/import/1/peteg/src/c2hs-0.14.5$ ./a.out
configure --prefix=$HOME --with-hc=/home/pls/bin/ghc-6.4.1 --user
--verbose
Configuring c2hs-0.14.5...
configure: searching for ghc in path.
configure: found ghc at /home/pls/bin/ghc
""/home/pls/bin/ghc"" --version >tmp25570
configure: Using install prefix: /import/kamen/1/peteg
configure: Using compiler: /home/pls/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.4.1
configure: Using package tool: /home/pls/bin/ghc-6.4.1
configure: Using haddock: /home/pls/bin/haddock
configure: Using happy: /home/pls/bin/happy
configure: Using alex: /home/pls/bin/alex
configure: Using hsc2hs: /home/pls/bin/hsc2hs
configure: No c2hs found
configure: Using cpphs: /home/pls/bin/cpphs
configure: Using greencard: /home/pls/bin/greencard
configure: Reading installed packages...
""/home/pls/bin/ghc-6.4.1"" --user list >tmp25570
ghc-6.4.1: unrecognised flags: --user
Usage: For basic information, try the `--help' option.
a.out: cannot get package list

%:/tmp_amd/kamen/import/1/peteg/src/c2hs-0.14.5$
ghc-pkg-6.4.1 --user list
/home/pls/lib/ghc-6.4.1/package.conf:
    rts-1.0, base-1.0, haskell98-1.0, template-haskell-1.0, unix-1.0,
    (Cabal-1.0), parsec-1.0, haskell-src-1.0, network-1.0,
    QuickCheck-1.0, HUnit-1.1, mtl-1.0, fgl-5.2, X11-1.1, HGL-3.1,
    OpenGL-2.0, GLUT-2.0, stm-1.0, readline-1.0, (lang-1.0),
    (concurrent-1.0), (posix-1.0), (util-1.0), (data-1.0), (text-1.0),
    (net-1.0), (hssource-1.0), Cabal-1.1.3
}}}
In short: using --with-hc screws up the package command. Leaving it
out gets things working. Also it shouldn't ""find"" ghc in my path if I
specify it.

Could you consider expanding the help text so that these options are
documented? One way to do that is to simply invoke {{{./configure --help}}}
if that's around, and otherwise fall back to something generic.

Thanks for your efforts.

cheers
peter",defect,closed,normal,,Cabal library,1.1.3,normal,fixed,,,normal,6.2.1,Linux
