#262: Check for required C libraries during configure
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: enhancement | Status: reopened
Priority: high | Milestone: Cabal-1.6
Component: Cabal library | Version: 1.2.3.0
Severity: normal | Resolution:
Keywords: | Difficulty: easy (<4 hours)
Ghcversion: 6.8.2 | Platform:
----------------------------+-----------------------------------------------
Changes (by duncan):
* status: closed => reopened
* difficulty: very easy (<1 hour) => easy (<4 hours)
* resolution: fixed =>
Comment:
I've built nearly every package on hackage to look for regressions. Two
things need fixing:
We do not look for `.h` files in the root directory of the package. This
breaks `HsPerl5-0.0.6`, `cedict-0.2.5` and `halfs-0.2`.
We do not add the include dirs for dependent packages. This breaks
`hscurses-1.3.0.2`, `plugins-1.4.0` and `unix-compat-0.1.2.1`. Of these
`plugins-1.4.0` is not a good test case because it is broken for other
reasons (the .h file it #includes cannot be included on its own).
The solution to the first issue should be easy. Just add `.` into the list
of include dirs. The second requires copying the code from the pre-
processor module where we do the same thing for hsc2hs. Perhaps it's
possible to share the code.
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/262#comment:15>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects