diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-12 21:51:45 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-12 21:51:45 +0100 |
| commit | 906b4d3e90fe76d8be12aded481b98dd81650259 (patch) | |
| tree | a537a29692844e639c8cdf0c0d151c9e6cdf99c7 /configure.ac | |
| parent | a528ab8ce4e9625740e658131e7a60eea5ff4f5e (diff) | |
add configure.ac
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..2476943 --- /dev/null +++ b/configure.ac @@ -0,0 +1,44 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.59) +AC_INIT(pnmlcms, 0.0.1, Johannes.Hofmann@gmx.de) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([src/pnmlcms.c]) +AC_CONFIG_HEADER(config.h) + +CPPFLAGS="-g $CPPFLAGS" +CFLAGS="-g $CFLAGS" +LDFLAGS="-g $LDFLAGS" + +# Checks for programs. +AC_PROG_CC + +AC_LANG_C + +# Checks for libraries. + +# Checks for header files. +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS([stdlib.h string.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_TYPE_OFF_T +AC_TYPE_PID_T + +# Checks for library functions. +AC_FUNC_FORK +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_TYPE_SIGNAL +AC_CHECK_FUNCS([strchr strdup strrchr strstr]) + +# Check for lcms +AC_CHECK_HEADERS([lcms.h], [], [echo "Error: lcms.h not found."; exit 1;]) +AC_CHECK_LIB([lcms], [open], [], [echo "Error: liblcms.so not found."; exit 1;]) + +AC_CONFIG_FILES([Makefile src/Makefile]) +AC_OUTPUT |
