From 0426a24b8f0a804331e2a7cc4cebd7267b081d5e Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Tue, 19 Jul 2011 14:02:05 +0200 Subject: Don't copy *.pc files if they don't exist. --- configure | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'configure') diff --git a/configure b/configure index ff1256f2a8..5ca1c51bc8 100755 --- a/configure +++ b/configure @@ -173,10 +173,12 @@ create_local_config () # Copy the .pc file to local-config, and set the base lib directory mkdir -p local-config builddir=`pwd`/$path/build - for f in `ls $1/*.pc.in` ; do - pcfile=`echo $f | sed s,.*/,, | sed s/\.in$//` - sed -e s,libdir=.*,libdir=$builddir, -e s/@VERSION@/$ver/g $f> local-config/$pcfile - done + if test -a $1/*.pc.in; then + for f in `ls $1/*.pc.in` ; do + pcfile=`echo $f | sed s,.*/,, | sed s/\.in$//` + sed -e s,libdir=.*,libdir=$builddir, -e s/@VERSION@/$ver/g $f> local-config/$pcfile + done + fi # Generate the .addins file for the package addins=local-config/`echo $path | sed s,/,_,`.addins -- cgit v1.2.3