Fri Feb 1 15:32:36 CET 2002 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Fri, 1 Feb 2002 10:41:25 +0000 (10:41 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Fri, 1 Feb 2002 10:41:25 +0000 (10:41 -0000)
* configure.in: allow PKG_CONFIG_PATH for the build-platform
pkg-config invocation.

svn path=/trunk/mono/; revision=2221

ChangeLog
configure.in

index dc6b6edddfab1659bd44d68848fd6ac02c0faac5..81acce163c8828ab5f05d7775b1bacd8a7066bde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
 
+Fri Feb 1 15:32:36 CET 2002 Paolo Molaro <lupus@ximian.com>
+
+       * configure.in: allow PKG_CONFIG_PATH for the build-platform
+       pkg-config invocation.
+
 Fri Feb 1 15:13:25 CET 2002 Paolo Molaro <lupus@ximian.com>
 
        * configure.in: add some support/fixes for cross-compilation.
index 7b06a4bb49185876874ffcf799cf2a9409852dcd..70a3a1bad7a981d5f66d6fca6a52d74aa6680738 100644 (file)
@@ -33,6 +33,18 @@ AC_CHECK_SIZEOF(void *, 4)
 
 CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations'
 
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+if test "x$PKG_CONFIG" = "xno"; then
+       AC_MSG_ERROR([You need to install pkg-config])
+fi
+
+dnl for use on the build system
+dnl pkg-config is stupid
+BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
+BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
+AC_SUBST(BUILD_GLIB_CFLAGS)
+AC_SUBST(BUILD_GLIB_LIBS)
+
 PKG_PATH=
 AC_ARG_WITH(crosspkgdir, [  --with-crosspkgdir=/path/to/pkg-config/dir],
        if test x$with_crosspkgdir = "x"; then
@@ -61,16 +73,6 @@ AC_SUBST(GLIB_LIBS)
 AC_SUBST(GMODULE_CFLAGS)
 AC_SUBST(GMODULE_LIBS)
 
-dnl for use on the build system
-dnl we disable support for PKG_CONFIG_PATH
-dnl pkg-config is stupid
-PKG_CONFIG_PATH=
-export PKG_CONFIG_PATH
-BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
-BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
-AC_SUBST(BUILD_GLIB_CFLAGS)
-AC_SUBST(BUILD_GLIB_LIBS)
-
 dnl ****************************************
 dnl *** Check if we're building on win32 ***
 dnl ****************************************