[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can I use pkg-config in my Makefile.am?
From: |
Erik de Castro Lopo |
Subject: |
Re: can I use pkg-config in my Makefile.am? |
Date: |
Tue, 27 May 2008 07:05:39 +1000 |
eawiggins wrote:
>
> I'm trying to convert to autoconf, automake, and it's a steep learning curve.
> Should I be able to put "$(shell pkg-config ...) lines in my Makefile.am,
> like I have below?
Not recommended.
If for instance you are doing a cross compiled configure, then pkg-config
may be named <cross-compiler-prefix>-pkg-config instead of pkg-config.
See for instance:
http://www.mega-nerd.com/erikd/Blog/CodeHacking/MinGWCross/pkg-config.html
The pkg-config stuff should be done in the configure script.
For quite extensice use of pkg-config, have a look at configure.ac and
Makefile.ams of my project:
http://www.mega-nerd.com/tmp/libsndfile-1.0.18pre22.tar.gz
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"The Internet interprets censorship as damage, and routes around it."
-- John Gilmore