03b646
--- libgphoto2-2.4.1/gphoto2-config.in.pkgcfg	2007-07-27 02:36:23.000000000 +0200
03b646
+++ libgphoto2-2.4.1/gphoto2-config.in	2007-07-31 12:21:14.000000000 +0200
03b646
@@ -1,11 +1,5 @@
03b646
 #! /bin/sh
03b646
 
03b646
-# leave these definitions here
03b646
-# they are required for correct interpolation of
03b646
-# @libdir@ and @includedir@ later on
03b646
-prefix="@prefix@"
03b646
-exec_prefix="@exec_prefix@"
03b646
-
03b646
 usage()
03b646
 {
03b646
     cat <
03b646
@@ -13,7 +7,7 @@ Usage: gphoto2-config [OPTION]
03b646
 
03b646
 Known values for OPTION are:
03b646
 
03b646
-  --prefix=DIR		change libgphoto2 prefix [default ${prefix}]
03b646
+  --prefix		print libgphoto2 prefix
03b646
   --libs		print library linking information
03b646
   --cflags		print pre-processor and compiler flags
03b646
   --help		display this help and exit
03b646
@@ -55,11 +49,11 @@ while test $# -gt 0; do
03b646
 	;;
03b646
 
03b646
     --cflags)
03b646
-       	echo "-I@includedir@/gphoto2"
03b646
+       	pkg-config --cflags libgphoto2
03b646
        	;;
03b646
 
03b646
     --libs)
03b646
-        echo "-L@libdir@" -lgphoto2 -lgphoto2_port -lm
03b646
+        pkg-config --libs libgphoto2
03b646
        	;;
03b646
 
03b646
     *)
03b646
--- libgphoto2-2.4.1/libgphoto2_port/gphoto2-port-config.in.pkgcfg	2007-07-27 02:36:16.000000000 +0200
03b646
+++ libgphoto2-2.4.1/libgphoto2_port/gphoto2-port-config.in	2007-07-31 12:21:14.000000000 +0200
03b646
@@ -1,11 +1,5 @@
03b646
 #! /bin/sh
03b646
 
03b646
-# leave these definitions here
03b646
-# they are required for correct interpolation of
03b646
-# @libdir@ and @includedir@ later on
03b646
-prefix="@prefix@"
03b646
-exec_prefix="@exec_prefix@"
03b646
-
03b646
 usage()
03b646
 {
03b646
     cat <
03b646
@@ -13,7 +7,7 @@ Usage: gphoto2-port-config [OPTION]
03b646
 
03b646
 Known values for OPTION are:
03b646
 
03b646
-  --prefix=DIR		change libgphoto2-port prefix [default ${prefix}]
03b646
+  --prefix		print libgphoto2-port prefix
03b646
   --libs		print library linking information
03b646
   --cflags		print pre-processor and compiler flags
03b646
   --help		display this help and exit
03b646
@@ -55,11 +49,11 @@ while test $# -gt 0; do
03b646
 	;;
03b646
 
03b646
     --cflags)
03b646
-       	echo "-I@includedir@/gphoto2"
03b646
+       	pkg-config --cflags libgphoto2_port
03b646
        	;;
03b646
 
03b646
     --libs)
03b646
-       	echo "-L@libdir@" -lgphoto2_port
03b646
+       	pkg-config --libs libgphoto2_port
03b646
        	;;
03b646
 
03b646
     *)