configure.ac   configure.ac 
# -*- Autoconf -*- # -*- Autoconf -*-
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59) AC_PREREQ(2.59)
m4_define([sidx_version_major], [1]) m4_define([sidx_version_major], [1])
m4_define([sidx_version_minor], [6]) m4_define([sidx_version_minor], [7])
m4_define([sidx_version_micro], [1]) m4_define([sidx_version_micro], [0])
m4_define([sidx_version], m4_define([sidx_version],
[sidx_version_major.sidx_version_minor.sidx_version_micro]) [sidx_version_major.sidx_version_minor.sidx_version_micro])
AC_INIT([spatialindex], [sidx_version], [mhadji@gmail.com], [spatialindex-s rc]) AC_INIT([spatialindex], [sidx_version], [mhadji@gmail.com], [spatialindex-s rc])
AC_CANONICAL_BUILD AC_CANONICAL_BUILD
debug_default="no" debug_default="no"
CXXFLAGS="$CXXFLAGS"
CFLAGS="-Wall -Wno-long-long -pedantic $CFLAGS"
CXXFLAGS="-Wall -Wno-long-long -pedantic -std=c++98 $CXXFLAGS"
# Checks for programs. # Checks for programs.
AC_PROG_CXX AC_PROG_CXX
AC_PROG_CXXCPP AC_PROG_CXXCPP
AC_PROG_INSTALL AC_PROG_INSTALL
AC_PROG_LN_S AC_PROG_LN_S
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects]) AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects])
# Checks for header files. # Checks for header files.
AC_CHECK_HEADERS(fcntl.h,, [AC_MSG_ERROR([cannot find fcntl.h, bailing out] )]) AC_CHECK_HEADERS(fcntl.h,, [AC_MSG_ERROR([cannot find fcntl.h, bailing out] )])
AC_CHECK_HEADERS(unistd.h,, [AC_MSG_ERROR([cannot find unistd.h, bailing ou t])]) AC_CHECK_HEADERS(unistd.h,, [AC_MSG_ERROR([cannot find unistd.h, bailing ou t])])
AC_CHECK_HEADERS(sys/types.h,, [AC_MSG_ERROR([cannot find sys/types.h, bail ing out])]) AC_CHECK_HEADERS(sys/types.h,, [AC_MSG_ERROR([cannot find sys/types.h, bail ing out])])
AC_CHECK_HEADERS(sys/stat.h,, [AC_MSG_ERROR([cannot find sys/stat.h, bailin g out])]) AC_CHECK_HEADERS(sys/stat.h,, [AC_MSG_ERROR([cannot find sys/stat.h, bailin g out])])
AC_CHECK_HEADERS(pthread.h, [LIBS="$LIBS -lpthread"]) AC_CHECK_HEADERS(pthread.h, [LIBS="$LIBS -lpthread"])
AC_CHECK_HEADERS(sys/resource.h,, [AC_MSG_ERROR([cannot find sys/resource.h , bailing out])]) AC_CHECK_HEADERS(sys/resource.h,, [AC_MSG_ERROR([cannot find sys/resource.h , bailing out])])
AC_CHECK_HEADERS(sys/time.h,, [AC_MSG_ERROR([cannot find sys/time.h, bailin g out])]) AC_CHECK_HEADERS(sys/time.h,, [AC_MSG_ERROR([cannot find sys/time.h, bailin g out])])
AC_CHECK_HEADERS(stdint.h,, [AC_MSG_ERROR([cannot find stdint.h, bailing ou t])]) AC_CHECK_HEADERS(stdint.h,, [AC_MSG_ERROR([cannot find stdint.h, bailing ou t])])
AC_CHECK_HEADERS(features.h)
#MH_CXX_HEADER_TOOLS #MH_CXX_HEADER_TOOLS
LIBS="$LIBS" LIBS="$LIBS"
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default= $debug_default]],, enable_debug=$debug_default) AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default= $debug_default]],, enable_debug=$debug_default)
if test "x$enable_debug" = "xyes"; then if test "x$enable_debug" = "xyes"; then
CXXFLAGS="$CXXFLAGS -g -DDEBUG" CXXFLAGS="$CXXFLAGS -g -DDEBUG"
AC_MSG_RESULT(checking wether debug information is enabled... yes) AC_MSG_RESULT(checking wether debug information is enabled... yes)
else else
CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG" CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
AC_MSG_RESULT(checking wether debug information is enabled... no) AC_MSG_RESULT(checking wether debug information is enabled... no)
fi fi
# Checks for library functions. # Checks for library functions.
AC_CHECK_FUNCS([gettimeofday bzero memset memcpy bcopy]) AC_CHECK_FUNCS([gettimeofday bzero memset memcpy bcopy srand48])
AM_CONDITIONAL([RAND_IS_CONFIG], [test "x$HAVE_SRAND48" = xtrue])
AC_CONFIG_FILES([ Makefile AC_CONFIG_FILES([ Makefile
include/Makefile include/Makefile
include/capi/Makefile
include/tools/Makefile
src/Makefile src/Makefile
src/libspatialindex.pc
src/capi/Makefile src/capi/Makefile
src/spatialindex/Makefile src/spatialindex/Makefile
src/storagemanager/Makefile src/storagemanager/Makefile
src/rtree/Makefile src/rtree/Makefile
src/mvrtree/Makefile src/mvrtree/Makefile
src/tprtree/Makefile src/tprtree/Makefile
src/tools/Makefile src/tools/Makefile
regressiontest/Makefile test/Makefile
regressiontest/rtree/Makefile test/rtree/Makefile
regressiontest/mvrtree/Makefile test/mvrtree/Makefile
regressiontest/tprtree/Makefile]) test/tprtree/Makefile])
AC_OUTPUT AC_OUTPUT
 End of changes. 7 change blocks. 
10 lines changed or deleted 15 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/