# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.56]) AC_INIT([ANUGA SWW Visualiser], [0.01], [u4112456@anu.edu.au]) AM_INIT_AUTOMAKE([foreign -Wall -Werror]) AC_CONFIG_SRCDIR([src/anugavis_simple.c]) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_CXX AC_PROG_RANLIB # Checks for libraries. AX_CHECK_GLU AM_PATH_SDL([1.2.12], [], [AC_MSG_ERROR([SDL is required to build.])]) AC_SEARCH_LIBS([nc_open], [netcdf], [], [AC_MSG_ERROR([Can't link the NetCDF library. (LDFLAGS?)])]) AC_SEARCH_LIBS([sqrt], [m], [], [AC_MSG_ERROR([Can't find sqrt.])]) # Checks for header files. AC_CHECK_HEADER([netcdf.h], [], [AC_MSG_ERROR([Can't find the NetCDF header. (CPPFLAGS?)])]) AC_CHECK_HEADER([windows.h]) AX_BOOST_BASE([1.35.0]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AM_PROG_CC_C_O # Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([strdup sqrt]) AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT