On Wed, Sep 4, 2013 at 8:34 PM, Thierry Reding <thierry.red...@gmail.com> wrote: > pkg-config support makes it easier for other software to use the libev > library. > > Signed-off-by: Thierry Reding <thierry.red...@gmail.com> > --- > Makefile.am | 3 +++ > configure.ac | 2 +- > libev.pc.in | 9 +++++++++ > 3 files changed, 13 insertions(+), 1 deletion(-) > create mode 100644 libev.pc.in > > diff --git a/Makefile.am b/Makefile.am > index f3a5eb1..0a1837c 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -17,5 +17,8 @@ lib_LTLIBRARIES = libev.la > libev_la_SOURCES = ev.c event.c > libev_la_LDFLAGS = -version-info $(VERSION_INFO) > > +pkgconfigdir = $(libdir)/pkgconfig > +pkgconfig_DATA = libev.pc > + > ev.3: ev.pod > pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance > full featured event loop" -s3 <$< >$@ > diff --git a/configure.ac b/configure.ac > index 7b240b5..38a61bb 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -23,5 +23,5 @@ AC_PROG_LIBTOOL > > m4_include([libev.m4]) > > -AC_CONFIG_FILES([Makefile]) > +AC_CONFIG_FILES([Makefile libev.pc]) > AC_OUTPUT > diff --git a/libev.pc.in b/libev.pc.in > new file mode 100644 > index 0000000..8ef423f > --- /dev/null > +++ b/libev.pc.in > @@ -0,0 +1,9 @@ > +prefix=@prefix@ > +exec_prefix=@exec_prefix@ > +libdir=@libdir@ > +includedir=@includedir@ > + > +Name: libev > +Description: a full-featured and high-performance event loop > +Version: @VERSION@ > +Libs: -lev > -- > 1.8.4 > > > _______________________________________________ > libev mailing list > libev@lists.schmorp.de > http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
HI Thierry: Please check here [1], [2], [3], why the pkg-config file was rejected.. Dennis Lan (dlan) [1] http://comments.gmane.org/gmane.comp.lib.ev/2089 [2] http://comments.gmane.org/gmane.comp.lib.ev/2102 [3] http://www.mail-archive.com/libev@lists.schmorp.de/msg02102.html _______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev