summaryrefslogtreecommitdiffstats
path: root/comms/gfax/files/patch-configure
blob: b9e7f09875b81e7f26761ec805d3209ed73bb70f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- configure.orig  Mon Feb 28 17:13:10 2005
+++ configure   Tue Jun 14 21:58:56 2005
@@ -21024,8 +21024,8 @@
 
 # SET THE DIRECTORY PATH FOR GNOME_PRINT_DATA_DIR
 if test "x$GNOME_PRINT_DATA_DIR" = "x" ; then
-   gpver=`ls ${prefix}/lib/pkgconfig/ | grep libgnomeprint`
-   GNOME_PRINT_VERSION=`grep Version: ${prefix}/lib/pkgconfig/${gpver} | cut -f2 -d' '`
+   gpver=`pkg-config --list-all|grep libgnomeprint- | cut -f1 -d' '`
+   GNOME_PRINT_VERSION=`pkg-config --modversion ${gpver}`
    GNOME_PRINT_DATA_DIR="${datadir}/libgnomeprint/${GNOME_PRINT_VERSION}"
    echo $GNOME_PRINT_DATA_DIR
 fi