GNOME Bugzilla – Bug 353404
Need easy way to query installed providers in configure scripts
Last modified: 2007-02-28 18:04:03 UTC
I'm currently writing an application using libgda that defaults to SQLite storage and I'd like to ensure that the required provider is installed or at least hint that the application will not work without it. I couldn't find a way to do this. This could be done by either of these: - supply a pkg-config file for every provider (libgda-sqlite.pc etc). This is how pango or cairo do it. - supply a m4 macro that runs the required command-line app(s) for you. This is how gstreamer does it, see /usr/share/aclocal/gst-element-check-0.10.m4 for an example - have a very simple command line for this and document that behaviour in lots of places so it's easily found.
I think "supply a pkg-config file for every provider (libgda-sqlite.pc etc). This is how pango or cairo do it" is the obvious choice. Feel free to check this such changes in. Many thanks if you do.
Working on it.
Created attachment 83360 [details] [review] libgda-2.99.5 providers .pc patch Here's a patch for 2.99.5 which should implement this. * configure.in * providers/*/Makefile.am * providers/*/libgda-*-3.0.pc: Provide pkg-config metadata for installed providers. Fixes bug #353404.
Created attachment 83415 [details] [review] libgda providers .pc patch (take 2) Fixed a few issues with the first patch.
Excellent. Many thanks for doing this work. Committed.