1 AC_INIT(Nominatim,1.9.9)
3 dnl Required autoconf version
6 AM_INIT_AUTOMAKE([1.9.6 dist-bzip2 std-options check-news])
8 dnl Additional macro definitions are in here
9 AC_CONFIG_MACRO_DIR([osm2pgsql/m4])
11 dnl Generate configuration header file
12 AC_CONFIG_HEADER(nominatim/config.h)
22 AX_PTHREAD([], [AC_MSG_ERROR([pthread library required])])
24 dnl Check for Geos library
26 if test "x$GEOS_VERSION" = "x"
28 AC_MSG_ERROR([required library not found]);
31 dnl Check for Proj library
33 if test "$HAVE_PROJ" = "no"
35 AC_MSG_ERROR([required library not found]);
39 dnl Check for PostgresSQL client library
40 AX_LIB_POSTGRESQL(8.4)
41 if test "x$POSTGRESQL_VERSION" = "x"
43 AC_MSG_ERROR([postgresql client library not found])
45 if test ! -f "$POSTGRESQL_PGXS"
47 AC_MSG_ERROR([postgresql server development library not found])
50 dnl Check for bzip2 library
52 if test "$HAVE_BZIP2" = "no"
54 AC_MSG_ERROR([required library not found]);
57 dnl Check for libxml2 library
60 AC_CONFIG_SUBDIRS([osm2pgsql])
62 AC_OUTPUT(Makefile nominatim/Makefile module/Makefile)