-SUB_LIBRARY_REQ=${SUB_LIBRARY}
-if test $TINFO_NAME = $LIB_NAME ; then
- SUB_LIBRARY_REQ=
-fi
-
-for lib in ../lib/*
-do
- name=`basename $lib`
- if test "$name" = "*" ; then
- break
+CFLAGS="@PKG_CFLAGS@"
+if test "$includedir" != "/usr/include" ; then
+ includetop=`echo "$includedir" | sed -e 's,/include/[^/]*$,/include/,'`
+ test "$includetop" = "/usr/include" && includetop="$includedir"
+ if test "x$includetop" != "$includedir"
+ then
+ CFLAGS="$CFLAGS -I${includetop}"