]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - configure
ncurses 5.7 - patch 20091017
[ncurses.git] / configure
index b9db2b5aaee50a780706dd7cae01b20ebbfaccfb..7535aa97d207be643328ae4e657b6302a32911ee 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.474 .
+# From configure.in Revision: 1.475 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by Autoconf 2.52.20081225.
 #
@@ -3523,8 +3523,8 @@ echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C
        if test -z "$PKG_CONFIG_LIBDIR" ; then
                PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
        fi
-
-       if test -d "$PKG_CONFIG_LIBDIR" ; then
+       PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
+       if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
 
 # Check whether --enable-pc-files or --disable-pc-files was given.
 if test "${enable_pc_files+set}" = set; then