GIMP-Print - autoconf

Go to the first, previous, next, last section, table of contents.

## 3.3 @command{autoconf}

The @command{autoconf} program produces a Bourne shell script called ``configure'` from a template file called ``configure.in'`. ``configure.in'` contains both Bourne shell script, and @command{m4} macros. @command{autoconf} expands the @command{m4} macros into `real' shell script. The resulting ``configure'` script performs various checks for installed programs, compiler characteristics and other system information such as available headers and libraries. See Info file `autoconf', node `Top', for more information.

GIMP-Print provides an @command{m4} macro, `AM_PATH_GIMPPRINT`, suitable for use in a ``configure.in'`. It defines the environment variables @env{GIMPPRINT_CFLAGS}, @env{GIMPPRINT_LIBS} and @env{GIMPPRINT_CONFIG}. You can optionally specify a minimum version of the library to use, and shell script to run if the test suceeds or fails.

Macro: AM_PATH_GIMPPRINT ([minimum-version [, action-if-found [, action-if-not-found]]])
  Check for an installed version of GIMP-Print greater than or equal to minimum-version.

  action-if-found is a list of shell commands to run if the check for the library succeeds; action-if-not-found is a list of shell commands to run if the check fails.

  The macro sets the following environment variables: @env{GIMPPRINT_CFLAGS}, @env{GIMPPRINT_LIBS} and @env{GIMPPRINT_CONFIG}. It also will substitute them into any ``Makefile.in'` you specify in `AC_OUTPUT` because it calls `AC_SUBST` for each of them. However, you will probably be using @command{automake} to generate your ``Makefile.in'` files (see section 3.4 @command{automake}).

Go to the first, previous, next, last section, table of contents.