Wow ... thank you very much!! Now it's working! My first baby !! hehehe... thanks again!<br><br><div><span class="gmail_quote">On 8/28/07, <b class="gmail_sendername">Daniel Leidert</b> <<a href="mailto:daniel.leidert.spam@gmx.net">
daniel.leidert.spam@gmx.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Am Dienstag, den 28.08.2007, 14:16 -0300 schrieb Murilo Belluzzo:
<br><br>> I'm using the AutoTools to build a lib for the first time. After many<br>> days of study and work, I finally made my library compile and install<br>> properly with "./configure and make".
<br>><br>> Now, I want to use pkg-config to make it easy for anyone to use my lib<br>> with PKG_CHECK_MODULES(). But, I get stuck on it because I couldn't<br>> find any tutorial or howto that teaches what I have to do to create
<br>> the right .pc files for my lib and install them in the right place<br>> (even when ${prefix} is set to a path that is not the default).<br><br>Many projects create a .pc.in file with the following content:<br>
<br>/------------------ <a href="http://mylib.pc.in">mylib.pc.in</a> ------------------------<br>prefix=@prefix@<br>exec_prefix=@exec_prefix@<br>libdir=@libdir@<br>includedir=@includedir@<br><br>Name: <my library><br>
Description: <library to do something><br>URL: <homepage><br>Version: @VERSION@<br>Requires: <dependencies><br>Libs: <link flags><br>Cflags: <compile flags><br>\-------------------------------------------------------
<br><br>(replace "<...>" with strings, that fit your library, "@VAR@" is<br>replaced by configure)<br><br>then add this file to the list of files in AC_CONFIG_FILES<br>(<a href="http://configure.ac/configure.in">
configure.ac/configure.in</a>), so its processed by configure. I would use<br><a href="http://configure.ac">configure.ac</a> to make sure, exec and exec-prefix cannot be "NONE".<br><br>> Can anyone tell me where I can find such information?
<br><br>Simply look into packages shipping .pc files.<br><br>Regards, Daniel<br><br>_______________________________________________<br>pkg-config mailing list<br><a href="mailto:pkg-config@lists.freedesktop.org">pkg-config@lists.freedesktop.org
</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/pkg-config">http://lists.freedesktop.org/mailman/listinfo/pkg-config</a><br></blockquote></div><br><br clear="all"><br>-- <br>Murilo Pinoti Belluzzo<br>Engenharia de Computação - UNICAMP
<br>Campinas, SP<br><br>"Talk is cheap. Show me the code." Linus Torvalds.