Checking dependencies from C packages in cabal

Hi, all, When pkg-config info is not available for a library (when I could use pkgconfig-depends), what should I use to check if needed libraries are installed and to give the compiler all needed info about include files and library location? Also, is it possible to do that without configure and make files? I have no experience with them. I also tried reading the Distribution module, but wasn't able to recognize what could be a natural way to handle this problem. Thanks, Maurício

Hi Maurício,
When pkg-config info is not available for a library (when I could Until you get the perfect answer you may want to have a look at the cabal definitions of
zlib digest OpenGLRaw GLUT readline GLFW wxcore terminfo berkeleydb BerkeleyDB hubris pcre-light HDBC-mysql HDBC-sqlite3 HDBC-odbc HDBC-postgresql They all require additional C libraries to built. Also make sure to search the Cabal mailinglist and maybe even move this thread to the Cabal mailinglist. Eg just typing pkg-config and cabal into google revealed: http://markmail.org/message/aumw5ustnyrishvw There is a also a bug tracker for Cabal. Marc Weber

Until you get the perfect answer you may want to have a look at the cabal definitions of
zlib digest OpenGLRaw GLUT readline GLFW wxcore terminfo berkeleydb BerkeleyDB hubris pcre-light HDBC-mysql HDBC-sqlite3 HDBC-odbc HDBC-postgresql
I do know them. But they just include needed .h and .c files with Haskell package, mark required libraries but do no version check, or delegate the task to configure scripts or external programs. HDBC-mysql Setup program gave me a start, thought. Thanks.
Also make sure to search the Cabal mailinglist and maybe even move this thread to the Cabal mailinglist.
Cabal page sugests Haskell libraries mailing list for questions. I should have used that. Thanks. Best, Maurício
participants (2)
-
Marc Weber
-
Maurício CA