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 `-lepp':
23 # AC_CHECK_LIB([epp], [main])
24 # FIXME: Replace `main' with a function in `-lm':
25 # AC_CHECK_LIB([m], [main])
26 # FIXME: Replace `main' with a function in `-lproj':
27 # AC_CHECK_LIB([proj], [main])
29 # Checks for header files.
33 AC_CHECK_HEADERS([limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h])
35 # Checks for typedefs, structures, and compiler characteristics.
40 # Checks for library functions.
48 AC_CHECK_FUNCS([bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol])
50 AC_DEFINE_UNQUOTED(FGIS_CONFIG, "$sysconfdir", [Define this to the location of the global config file])
52 dnl ---------------------------------------------------------------------------
53 dnl Check for Tcl/Tk installation
54 dnl ---------------------------------------------------------------------------
56 AC_ARG_WITH(tcl,[ --with-tcl[=ARG] Include Tcl support (ARG=yes or path)],,)
57 if test "$with_tcl" = "yes" -o "$with_tcl" = "" ; then
59 AC_CHECK_LIB(tcl8.3,Tcl_CreateCommand,HAVE_TCL83=yes,HAVE_TCL83=no,$LIBS)
61 if test "HAVE_TCL83"="yes"; then
63 if test -r /usr/include/tcl8.3/tcl.h ; then
66 TCL_INCLUDE="-I/usr/include/tcl8.3"
75 AC_SUBST(TCL_INCLUDE,$TCL_INCLUDE)
77 AC_CONFIG_FILES([Makefile