repair message text closing buffer
[gpiv.git] / configure.in
blob7bcce6c9fc2efed1854dbedc5197598b4e8a5d98
1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(configure.in)
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)
10 GNOME_INIT
11 AC_ISC_POSIX
12 AC_PROG_CC
13 AM_PROG_CC_STDC
14 AC_HEADER_STDC
16 GNOME_COMPILE_WARNINGS
17 GNOME_X_CHECKS
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
23 AM_GNU_GETTEXT
24 dnl AM_GNOME_GETTEXT
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")
29 else
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"] 
56         )
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"] 
64         )
65 AC_SUBST(OVERRIDE_IMAGE_HEIGHT_MAX)
68 AC_ARG_ENABLE(debug, 
69         [  --enable-debug               debug version (more verbose)],
70         [DEBUG="-DDEBUG"] 
71         )
72 AC_SUBST(DEBUG)
75 AC_ARG_ENABLE(demo, 
76         [  --enable-demo                behaves as a \"true\" commercial \
77 demonstration program: doesn't allow to save data ;)],
78         [DEMO="-DDEMO"] 
79         )
80 AC_SUBST(DEMO)
84 AC_OUTPUT([
85         Makefile
86         macros/Makefile
87         doc/Makefile
88         doc/C/Makefile
89         doc/C/figures/Makefile
90         src/Makefile
91         intl/Makefile
92         po/Makefile.in