
#262: Check for required C libraries during configure
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: enhancement | Status: new
Priority: high | Milestone: Cabal-1.6
Component: Cabal library | Version: 1.2.3.0
Severity: normal | Resolution:
Keywords: | Difficulty: very easy (<1 hour)
Ghcversion: 6.8.2 | Platform:
----------------------------+-----------------------------------------------
Changes (by duncan):
* difficulty: easy (<4 hours) => very easy (<1 hour)
Comment:
Thanks! Works great.
For example:
{{{
$ setup configure -O0
Configuring foo-1.0...
Warning: Required C header not found: foo.h
Warning: Required C library not found: bar
Warning: Required C library not found: baz
}}}
And adding `--extra-include-dirs=./test/ --extra-lib-dirs=./test/` makes
it work fine (with the test headers and lib files in `./test/` obviously).
{{{
Mon Jan 26 18:58:32 GMT 2009 gleb.alexeev@gmail.com
* Warn if C dependencies not found (kind of fixes #262)
This is just a basic check - generate a sample program and check if it
compiles and links with relevant flags. Error messages (warning messages,
actually) could use some improvement.
Fri Jan 30 12:02:28 GMT 2009 Gleb Alexeyev