Bug 9708

Summary: [pending] allow build against installed Glib 2.x on non-Win32 systems
Product: pkg-config Reporter: Peter Breitenlohner <peb>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: fix configure.in for autoreconf (from automake-1.10)
fix glib-1.2.8/Makefile.am to avoid automake (1.10) warnings
fix glib-1.2.8/configure.in to avoid autoconf (2.61a) warning
don't distribute files that are removed by "make distclean"
introduce the configure option --with-installed-glib

Description Peter Breitenlohner 2007-01-19 07:21:04 UTC
Due to the mutual dependence between glib and pkg-config, there ought to be a
way to build pkg-config against the bundled glib-1.2.8.

This should, however, by no means imply the pkg-config cannot by built against
an installed glib-2.x (if this library and thus pkg-config -- presumably some
older version -- are present).

Attached is a sequence of 5 patches, introducing a configure option
--with-installed-glib, allowing to do this.

Since this requires to run autoreconf (automake, autoconf, etc.) the first four
patches are required to upgrade the input files for automake-1.10 and
autoconf-2.61a; the final fifth patch introduces then the new configure option.
Comment 1 Peter Breitenlohner 2007-01-19 07:22:13 UTC
Created attachment 8446 [details] [review]
fix configure.in for autoreconf (from automake-1.10)
Comment 2 Peter Breitenlohner 2007-01-19 07:23:51 UTC
Created attachment 8447 [details] [review]
fix glib-1.2.8/Makefile.am to avoid automake (1.10) warnings
Comment 3 Peter Breitenlohner 2007-01-19 07:25:24 UTC
Created attachment 8448 [details] [review]
fix glib-1.2.8/configure.in to avoid autoconf (2.61a) warning
Comment 4 Peter Breitenlohner 2007-01-19 07:26:43 UTC
Created attachment 8449 [details] [review]
don't distribute files that are removed by "make distclean"
Comment 5 Peter Breitenlohner 2007-01-19 07:29:42 UTC
Created attachment 8450 [details] [review]
introduce the configure option --with-installed-glib

This patch is to be applied after #8446, and #8449 is to be applied after
#8446.
Comment 6 Tollef Fog Heen 2007-02-25 02:06:03 UTC
2007-02-25  Tollef Fog Heen  <tfheen@err.no>

	* Makefile.am: Add support for using the system glib.  Thanks to
	Peter Breitenlohner for the bug and the patch.  Freedesktop #9708

	* configure.in: Add support for using the system glib.

	* glib-patches/no-dist-distclean-files.diff,
	glib-patches/automake-warning.diff,
	glib-patches/autoconf-warning.diff:  Get rid of some warnings when
	configuring glib.

Comment 7 Tollef Fog Heen 2009-12-06 13:47:35 UTC
This got fixed for 0.23

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.