summaryrefslogtreecommitdiff
path: root/dev-util/cscope/files/cscope-15.8a-pkgconfig.patch
blob: 665b7169761e17dcbefc3a1032d795be4d86bcff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/configure.in
+++ b/configure.in
@@ -22,6 +22,7 @@ if test "x$LEX" = "xlex" ; then AC_DEFINE(USING_LEX, 1,
    [Define this if the scanner is run through lex, not flex])
 fi
 AC_PROG_YACC
+PKG_PROG_PKG_CONFIG
 
 dnl === BEGIN CURSES CHECK
 dnl Curses detection: Munged from Midnight Commander's configure.in
@@ -363,7 +364,7 @@ dnl Check for a GNOME installation
 AC_DEFUN([AC_CHECK_GNOME],[
 	has_gnome=false
 	AC_CHECK_PROG(gnome1, gnome-config, true)	
-	AC_CHECK_PROG(gnome2, pkg-config, true)
+	AC_CHECK_PROG(gnome2, $PKG_CONFIG, true)
 
 	if test x$gnome1 = xtrue; then
 	  has_gnome=true
@@ -373,7 +374,7 @@ AC_DEFUN([AC_CHECK_GNOME],[
 	  has_gnome=true
 	fi
 	
-	AM_CONDITIONAL(USING_GNOME2, pkg-config --exists gtk+-2.0)
+	AM_CONDITIONAL(USING_GNOME2, $PKG_CONFIG --exists gtk+-2.0)
 	AM_CONDITIONAL(HAS_GNOME, test "$has_gnome" = true)
 	AM_CONDITIONAL(GNOME_LINUX, test "$host_os" = Linux)
 ])