X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=misc%2Fgen-pkgconfig.in;h=62d09ff61905b8ccfee6443dcd37efdb354065f0;hp=4e60ff2c4b6c23c6c428f9c825e10bb3efc11c0f;hb=16fea43a5003e094f1f7eee30bdd0ef2f2c51dba;hpb=027d0c57c4c4d6690e8d8727888d3282dbe9aa86 diff --git a/misc/gen-pkgconfig.in b/misc/gen-pkgconfig.in index 4e60ff2c..62d09ff6 100644 --- a/misc/gen-pkgconfig.in +++ b/misc/gen-pkgconfig.in @@ -1,5 +1,5 @@ #!@SHELL@ -# $Id: gen-pkgconfig.in,v 1.28 2015/05/16 20:04:42 tom Exp $ +# $Id: gen-pkgconfig.in,v 1.29 2015/07/04 20:37:01 tom Exp $ ############################################################################## # Copyright (c) 2009-2014,2015 Free Software Foundation, Inc. # # # @@ -66,9 +66,9 @@ FORM_LIBRARY="${FORM_NAME}@USE_ARG_SUFFIX@" CFLAGS="@PKG_CFLAGS@" if test "$includedir" != "/usr/include" ; then - includetop=`echo "$includedir" | sed -e 's,/include/[^/]*$,/include/,'` + includetop=`echo "$includedir" | sed -e 's,/include/[^/]*$,/include,'` test "$includetop" = "/usr/include" && includetop="$includedir" - if test "x$includetop" != "$includedir" + if test "x$includetop" != "x$includedir" then CFLAGS="$CFLAGS -I${includetop}" fi