1 dnl Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(gpiv, 0.1.0)
5 AM_CONFIG_HEADER(config.h)
7 dnl Pick up the Gnome macros.
8 AM_ACLOCAL_INCLUDE(macros)
16 GNOME_COMPILE_WARNINGS
19 dnl Add the languages which your application supports here.
20 ALL_LINGUAS="ca de nl"
22 dnl gnu gettext (intl directory) is old see http://developer.gnome.org/doc/tutorials/import.html
26 dnl Set PACKAGE_LOCALE_DIR in config.h.
27 if test "x${prefix}" = "xNONE"; then
28 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
30 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
33 dnl Subst PACKAGE_PIXMAPS_DIR.
34 PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}"
35 AC_SUBST(PACKAGE_PIXMAPS_DIR)
37 AC_CHECK_LIB(gpiv, gpiv_error, ,
38 AC_MSG_ERROR("libgpiv has not been installed"))
39 dnl AC_CHECK_LIB(gpiv, gpiv_scan_resourcefiles, ,
40 dnl AC_MSG_ERROR("libgpiv has not been installed"))
41 AC_CHECK_LIB(rfftw, rfftw2d_create_plan, ,
42 AC_MSG_ERROR("librfftw not installed"))
43 AC_CHECK_LIB(fftw, fftw_import_wisdom_from_string, ,
44 AC_MSG_ERROR("libfftw not installed"))
47 AC_CHECK_HEADER(gpiv.h,,AC_MSG_ERROR("giv.h is not installed"))
48 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
52 AC_ARG_ENABLE(img-width,
53 [ --enable-img-width=WIDTH maximum image width to \
54 be used (default SVGA)],
55 [OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"]
57 AC_SUBST(OVERRIDE_IMAGE_WIDTH_MAX)
60 AC_ARG_ENABLE(img-height,
61 [ --enable-img-height=HEIGHT maximum image height to \
62 be used (default SVGA)],
63 [OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"]
65 AC_SUBST(OVERRIDE_IMAGE_HEIGHT_MAX)
69 [ --enable-debug debug version (more verbose)],
76 [ --enable-demo behaves as a \"true\" commercial \
77 demonstration program: doesn't allow to save data ;)],
89 doc/C/figures/Makefile