1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(fGIS, 0.0.1, dron@remotesensing.org)
3 # AC_CONFIG_HEADERS([config.h])
5 # AC_CONFIG_SRCDIR([include/regex.h])
6 AM_CONFIG_HEADER(include/config.h)
8 dnl Checks for programs.
15 # Checks for libraries.
16 # FIXME: Replace `main' with a function in `-lX11':
17 # AC_CHECK_LIB([X11], [main])
18 # FIXME: Replace `main' with a function in `-ldl':
19 # AC_CHECK_LIB([dl], [main])
20 # FIXME: Replace `main' with a function in `-lefence':
21 # AC_CHECK_LIB([efence], [main])
22 # FIXME: Replace `main' with a function in `-lm':
23 # AC_CHECK_LIB([m], [main])
24 # FIXME: Replace `main' with a function in `-lproj':
25 # AC_CHECK_LIB([proj], [main])
27 # Checks for header files.
31 AC_CHECK_HEADERS([limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h])
33 # Checks for typedefs, structures, and compiler characteristics.
38 # Checks for library functions.
46 AC_CHECK_FUNCS([bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol])
48 dnl ---------------------------------------------------------------------------
49 dnl Handle global configuration file placement
50 dnl ---------------------------------------------------------------------------
52 AC_DEFINE_DIR(FGIS_CONFIG, "$sysconfdir", [Define this to the location of the global config file])
54 dnl ---------------------------------------------------------------------------
55 dnl Handle placement of the engine module (fgis.so)
56 dnl ---------------------------------------------------------------------------
58 AC_SUBST_DIR(FGIS_LIBDIR,"$libdir")
60 dnl ---------------------------------------------------------------------------
61 dnl Check for Tcl/Tk installation
62 dnl ---------------------------------------------------------------------------
65 if test x"$no_tcl" = x"true" ; then
66 echo " ERROR: Can't find Tcl headers or library."
67 echo " See README for information on how to obtain Tcl."
68 echo " If Tcl is installed, see INSTALL on how to tell"
69 echo " configure where Tcl is installed."
74 AC_SUBST(TCL_INC_DIR,$TCL_INC_DIR)
75 AC_SUBST(TCL_PACKAGE_PATH,$TCL_PACKAGE_PATH)
80 AC_SUBST(TK_INC_DIR,$TK_INC_DIR)
81 if [[ $TK_VERSION < "8.4" ]]; then
82 AC_DEFINE([TK_84PREV], [0], [Define this variable if your Tk version less then 8.4])
85 AC_CONFIG_FILES([Makefile