Commit graph

197 commits

Author SHA1 Message Date
Tollef Fog Heen
d363ba6b86 Mark Changelog as no longer kept up to date. 2010-05-08 22:16:12 +02:00
Tollef Fog Heen
c3ddc0344e Merge 2009-08-15 21:45:10 +02:00
Tollef Fog Heen
39663612a6 2009-06-12 Tor Lillqvist <tml@iki.fi>
* parse.c: On Win32, if the value of a a variable other than the
	"prefix" one starts with the non-overridden value of "prefix",
	then replace that prefix, too, with the run-time one.

	To avoid shadowing warnings, rename a 'p' variable to 'q'.

	* pkg-config.1: Corresponding update.

	* main.c
	* pkg.h: Move the Win32 redefinition of PKG_CONFIG_PC_PATH from
	main.c to pkg.h as it now is needed in pkg.c, too.
2009-06-30 03:47:01 +02:00
Tollef Fog Heen
9b49307cae 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* autogen.sh: Allow not running configure, wanted by cygwin.
2009-03-30 22:06:58 +02:00
Tollef Fog Heen
e4d39435b9 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/check-missing, check/check-libs,
	check/check-requires-private: Handle the case of indirect being
	enabled correctly in checks.
2009-03-30 22:03:38 +02:00
Tollef Fog Heen
f37f04a78a 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common, check/config.sh.in, check/Makefile.am,
	configure.in: Make it possible to check for configure variables in
	the check scripts.  So far, only direct/indirect is exposed.
2009-03-30 21:50:01 +02:00
Tollef Fog Heen
e170895bc6 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.c (add_virtual_pkgconfig_package): Add pc_path as a variable
	which you can use to get at the compiled-in PKG_CONFIG_PC_PATH.
2009-03-30 21:17:43 +02:00
Tollef Fog Heen
daa68e4e1b 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.h: Fix up path to glib.h
2009-03-30 21:16:28 +02:00
Tollef Fog Heen
c5b07b4720 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.c (add_virtual_pkgconfig_package): Fix URL to pkg-config.
2009-03-30 21:04:42 +02:00
Tollef Fog Heen
79f8ef9d51 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* partial-glib.[ch]: Get rid of those, they are no longer in use.
2009-03-30 21:03:10 +02:00
Tollef Fog Heen
2e0493a343 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* poptparse.c, popthelp.c, poptconfig.c, popt.c, pkg.c, findme.c,
	configure.in: Check for malloc.h and use that if it exists.
	Apparently this makes Win32 happier.  Thanks to Carlo Bramini for
	the patch.
2009-03-30 21:00:14 +02:00
Tollef Fog Heen
7e8a4d6c85 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Verbosify the text about Libs.private a bit. Patch
	from Loïc Minier.
2009-03-30 20:53:02 +02:00
Tollef Fog Heen
4edc026776 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Add documentation for --cflags-only-I, patch from
	Loïc Minier.
2009-03-30 20:51:18 +02:00
Tollef Fog Heen
669bfe2e0d 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.[ch], main.c, check/check-missing: Don't recurse Requires at
	all unless we need to.  Add check.  Again, thanks to Loïc Minier
	for most of the idea and the implementation.
2009-03-30 20:49:17 +02:00
Tollef Fog Heen
02d5ae3fb6 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.[ch], parse.[ch], main.c, check/Makefile.am,
	check/check-missing, check/missing-requires-private.pc:
	Skip Requires.private unless we need to look at them for cflags.
	Add test case.  Thanks to Loïc Minier for most of the idea and the
	implementation.  Debian #475031
2009-03-30 20:40:53 +02:00
Tollef Fog Heen
34657e444f 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Run all tests in the C locale
2009-03-30 20:23:04 +02:00
Tollef Fog Heen
4070cc2339 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Add support for non-zero return codes to test
	framework.  Thanks to Loïc Minier for the idea.
2009-03-30 20:14:33 +02:00
Tollef Fog Heen
a25f7e980e 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Add PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR to the list of
	precious directories.  (AC_ARG_VAR)
2009-03-30 20:06:32 +02:00
Tollef Fog Heen
e3fda28e74 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* popthelp.c (poptPrintUsage,poptPrintHelp): Add [LIBRARIES] to
	help output.  Debian #389066
2009-03-30 19:52:01 +02:00
Tollef Fog Heen
6d2f77a219 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* parse.c Add my name to the copyright header, mainly to prevent
	emacs from being stupid and updating RH's copyright year.
2008-04-28 21:25:51 +02:00
Tollef Fog Heen
d5d6a8f8a7 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* parse.c (_do_parse_libs): Special-case "-lib:" in the Libs
	field; it's not an -l.  Yes, this breaks if your library is called
	libib:$something, in which case you lose.  Gnome #142952
2008-04-28 21:19:02 +02:00
Tollef Fog Heen
5998a08da4 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Make sure log is initialized to prevent
	segfaults.
2008-04-28 20:58:36 +02:00
Tollef Fog Heen
69dafea1c8 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-conflicts, check/conflicts-test.pc: New test,
       testing that conflicts work as they should.

       * pkg.c (verify_package): Make the conflicts check not only check
       package versions, but also package names.  This makes conflicts
       functional, something they were not before.
2008-03-23 21:39:07 +01:00
Tollef Fog Heen
15e72cef72 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-requires-private: Remove unnecessary set -x
2008-03-23 21:11:25 +01:00
Tollef Fog Heen
3954a7ee3e 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-cflags, check/check-define-variable,
	check/check-includedir, check/check-libs,
	check/check-libs-private, check/check-requires-private: Replace
	the crazy -d ~root check with a more proper way to just make sure
	we are running under a POSIX shell.  Thanks to Kjetil Torgrim
	Homme for the tip about using getconf PATH.
2008-03-23 21:07:39 +01:00
Tollef Fog Heen
cebb308ce4 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Add logging support from NetBSD.  Thanks to Julio
       M. Merino Vidal for forwarding the patch from ages ago.
2008-03-23 20:51:50 +01:00
Tollef Fog Heen
53abbad201 2008-03-23 Stepan Kasal <skasal@redhat.com>
* pkg-config.1: Document "Requires.private" and recommend it
      for libraries.  Freedesktop #13188
2008-03-23 20:46:08 +01:00
Tollef Fog Heen
a3701dc44f 2008-03-23 Stepan Kasal <skasal@redhat.com>
* pkg-config.1: Fix a few typos--add two omitted .TP tags and two
	omitted full stops; and empty lines do influence the formatting in
	nroff.
2008-03-23 20:26:14 +01:00
Tollef Fog Heen
dce0339076 2008-02-19 Tor Lillqvist <tml@novell.com>
* main.c: Remove the possibility to have a default PKG_CONFIG_PATH
	in the Registry. It is much more flexible to just use environment
	variables. In general the Registry is not used in the ports of
	GTK+ or GNOME libraries and software to Windows.

	* parse.c (parse_line): On Windows, handle also .pc files found in
	a share/pkgconfig folder when automatically redefining a prefix
	variable for the package.

	* pkg-config.1: Corresponding changes.

2008-02-18  Tor Lillqvist  <tml@novell.com>

	* main.c: Fix some bitrot: On Windows, don't use the compile-time
	PKG_CONFIG_PC_PATH, but deduce a default one at run-time based on
	the location of the executable. This was originally what
	pkg-config did on Windows, but it had bit-rotted.
2008-03-23 20:00:00 +01:00
Tollef Fog Heen
89932ecfcf 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Fix small portability problem by defining all the
	variables in main that are used in the static initialiser as
	static variables.  This makes the IRIX/mipseb compiler happier.
	Thanks to Roland Illig of NetBSD for the patch.  This doesn't
	apply to some of the Win32 variables, but I don't believe that is
	a problem with the existing compilers there.
2008-03-23 17:34:33 +01:00
Tollef Fog Heen
b4cdd18165 configure.in: If prefix is unset, add /usr/lib/pkgconfig and
/usr/share/pkgconfig to default search path.  Based on patch by Damjan
Jovanovic.

Also, make configure always print the path it is defaulting to.
2008-01-31 02:43:41 +01:00
Tollef Fog Heen
3e6c5da35a pkg.c (string_list_to_string): Patch from Paul Bender so flags other
than -I and -L are passed through (with mangling) when
PKG_CONFIG_SYSROOT_DIR is set.
2008-01-31 02:27:33 +01:00
Tollef Fog Heen
515745885f 2008-01-16 Tollef Fog Heen <tfheen@err.no>
* NEWS, configure.in: Release 0.23
2008-01-16 23:50:03 +01:00
Tollef Fog Heen
9e5bcc26f2 2008-01-16 Tollef Fog Heen <tfheen@err.no>
* check/check-requires-private: Fix up test case.  We want to get
	the private -I option in all cases.
2008-01-16 23:46:58 +01:00
Tollef Fog Heen
ed75a7dd4b 2008-01-16 Tollef Fog Heen <tfheen@err.no>
* pkg.h, pkg.c (string_list_to_string), pkg-config.1, main.c
             (main): Add sysroot support and document same.  Triggered by
             setting PKG_CONFIG_SYSROOT_DIR in the environment.
2008-01-16 23:10:25 +01:00
Tollef Fog Heen
138f9219b4 * pkg.c (internal_get_package): Don't add the internal-only
pkg-config package twice.
2007-12-29 17:49:50 +01:00
Tollef Fog Heen
a376c715ea * pkg.c (verify_package): Apply patch from Matthias Clasen of
RedHat to prevent segfaults if a Conflicts line is encountered.
2007-12-29 16:46:25 +01:00
Tollef Fog Heen
6f5620089e * popthelp.c: Apply patch from Tom Tromey <tromey@redhat.com> to
make pkg-config --help print to stdout, not stderr.  Gnome
	#127314.
2007-12-29 16:06:00 +01:00
Tollef Fog Heen
d251a97fa6 2007-12-29 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Don't use --errors-to-stdout in pkg.m4, but rather
	redirect stderr to stdout.  This makes pkg.m4 with old (pre 0.15)
	pkg-config look good, and it makes newer pkg-config with ancient
	pkg.m4 work well.  Gnome #111054
2007-12-29 16:00:37 +01:00
Tollef Fog Heen
4fe6610368 2007-12-29 Tollef Fog Heen <tfheen@err.no>
* Update to glib 1.2.10, adjust lots of the glib patches.  Gnome
	#81847.
2007-12-29 14:40:41 +01:00
Tollef Fog Heen
5a6ff5c704 Add attribution to last fix 2007-06-19 15:58:48 +02:00
Tollef Fog Heen
e297a4b57f * pkg.m4: Fix bug so it's possible to override variables in case
pkg-config is not installed.
2007-06-19 15:56:48 +02:00
Tollef Fog Heen
5e137d3932 * configure.in: Release 0.22 2007-06-18 23:31:42 +02:00
Tollef Fog Heen
73b84105a4 * NEWS: Update for 0.22 2007-06-18 23:30:14 +02:00
Tollef Fog Heen
b07d45d839 * configure.in: Fix expansion of default pc_path as per GNU coding
standards.  Thanks to Andreas Hanke for the fix.  Freedesktop #10326
2007-06-18 23:26:01 +02:00
Tollef Fog Heen
8ac159cd5e * pkg.c (recursive_fill_list): Make sure to act recursively with
Requires.private, making them much more useful.  Special thanks to
Matthias Clasen for lots and lots of nagging.  Freedesktop #8788
2007-06-18 23:19:27 +02:00
Tollef Fog Heen
ce499699bc * glib-patches/remove-strsignal-prototype.diff: define _GNU_SOURCE
there to get strsignal prototype, addresses the rest of
Freedesktop 10652.
2007-06-18 22:53:52 +02:00
Tollef Fog Heen
163d95c5b9 * popt.c: Remove code calling setresuid and setreuid, pkg-config
should not ever be suid.  Partially addresses Freedesktop #10652
2007-06-18 22:09:41 +02:00
Tollef Fog Heen
1224c055d2 * glib-patches/no-dist-distclean-files.diff: Fix prefix. 2007-06-18 22:03:46 +02:00
Tollef Fog Heen
cfd3a3dd1c Fix automake-warning.diff to not patch on top of another patch from
glib-patches.
2007-06-18 22:01:32 +02:00