public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] search for a <triplet>-pkg-config
@ 2013-06-19 19:20 Matthias Klose
  2013-06-20 13:01 ` Andrew Haley
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Klose @ 2013-06-19 19:20 UTC (permalink / raw)
  To: GCJ-patches; +Cc: classpath-patches

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

This allows libjava to cross build in an environment where <triplet>-pkg-config
is available for the target architecture.  This change is already available in
pkg-config 0.26, so an alternative would be to import this file from a recent
pkg-config release.

Ok for the trunk, and 4.8?

  Matthias

[-- Attachment #2: libjava.diff --]
[-- Type: text/plain, Size: 928 bytes --]

2013-06-19  Matthias Klose  <doko@ubuntu.com>

	* pkg.m4 (PKG_CHECK_MODULES): Use AC_PATH_TOOL to check for pkg-config.
	* classpath/m4/pkg.m4 (PKG_CHECK_MODULES): Likewise.
	* configure: Regenerate.

Index: pkg.m4
===================================================================
--- pkg.m4	(revision 200211)
+++ pkg.m4	(working copy)
@@ -6,7 +6,7 @@
   succeeded=no
 
   if test -z "$PKG_CONFIG"; then
-    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+    AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
   fi
 
   if test "$PKG_CONFIG" = "no" ; then
Index: classpath/m4/pkg.m4
===================================================================
--- classpath/m4/pkg.m4	(revision 200211)
+++ classpath/m4/pkg.m4	(working copy)
@@ -6,7 +6,7 @@
   succeeded=no
 
   if test -z "$PKG_CONFIG"; then
-    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+    AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
   fi
 
   if test "$PKG_CONFIG" = "no" ; then

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] search for a <triplet>-pkg-config
  2013-06-19 19:20 [patch] search for a <triplet>-pkg-config Matthias Klose
@ 2013-06-20 13:01 ` Andrew Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2013-06-20 13:01 UTC (permalink / raw)
  To: Matthias Klose; +Cc: GCJ-patches, classpath-patches

On 06/19/2013 08:19 PM, Matthias Klose wrote:
> Ok for the trunk, and 4.8?

OK, thanks.

Andrew.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-20 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-19 19:20 [patch] search for a <triplet>-pkg-config Matthias Klose
2013-06-20 13:01 ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).