How can I get autoconf to automatically find header files that are not
part of the standard include path, but for which *.pc files exist?

I want to check for non-standard headers, such as, pango/pango.h,
glib.h, and others.  AC_CHECK_HEADER seems to work only for standard
headers, i.e. headers that can be found in the standard include path. 
How can I augment the include path for other headers?  

I am calling "PKG_CHECK_MODULES(MODULES, pango glib-2.0)" to set
MODULES_CFLAGS, but don't know how to append this info to the include
path used by autoconf.


#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

#libLASi provides a C++ output stream interface for writing multi-language Postscript 
documents.
#Copyright (C) 2003  Larry Siden

AC_PREREQ(2.57)
AC_INIT(LASi, 0.1.2, [EMAIL PROTECTED])
AC_CONFIG_SRCDIR([src/psDoc.cpp])
#AC_CONFIG_HEADER([config.h])
AC_DEFINE(PANGO_ENABLE_BACKEND)

# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB

PKG_CHECK_MODULES(MODULES, pango glib-2.0)

# Checks for libraries.
AC_CHECK_LIB([glib-2.0], [g_list_free])
AC_CHECK_LIB([freetype], [FT_Load_Glyph])
AC_CHECK_LIB([pangoft2-1.0], [pango_itemize])

# Checks for header files.
AC_CHECK_HEADER([pango/pango.h])
AC_CHECK_HEADER([glib.h])
AC_CHECK_HEADER([glibconfig.h])
AC_CHECK_HEADER([freetype/freetype.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE

# Checks for library functions.

AM_INIT_AUTOMAKE
AC_CONFIG_FILES([lasi.pc Makefile src/Makefile])
AC_OUTPUT

Reply via email to