Rev | Line | |
---|
[5200] | 1 | # -*- Autoconf -*- |
---|
| 2 | # Process this file with autoconf to produce a configure script. |
---|
| 3 | |
---|
| 4 | AC_PREREQ([2.56]) |
---|
[5257] | 5 | AC_INIT([ANUGA SWW Visualiser], [0.01], [u4112456@anu.edu.au]) |
---|
| 6 | AM_INIT_AUTOMAKE([foreign -Wall -Werror]) |
---|
[5268] | 7 | AC_CONFIG_SRCDIR([src/anugavis_simple.c]) |
---|
[5200] | 8 | AC_CONFIG_HEADER([config.h]) |
---|
| 9 | |
---|
| 10 | # Checks for programs. |
---|
| 11 | AC_PROG_CC |
---|
[5487] | 12 | AC_PROG_CXX |
---|
[5257] | 13 | AC_PROG_RANLIB |
---|
[5200] | 14 | |
---|
| 15 | # Checks for libraries. |
---|
[5228] | 16 | AX_CHECK_GLU |
---|
[5220] | 17 | AM_PATH_SDL([1.2.12], [], [AC_MSG_ERROR([SDL is required to build.])]) |
---|
[5217] | 18 | AC_SEARCH_LIBS([nc_open], [netcdf], [], |
---|
| 19 | [AC_MSG_ERROR([Can't link the NetCDF library. (LDFLAGS?)])]) |
---|
[5292] | 20 | AC_SEARCH_LIBS([sqrt], [m], [], |
---|
| 21 | [AC_MSG_ERROR([Can't find sqrt.])]) |
---|
| 22 | |
---|
[5200] | 23 | # Checks for header files. |
---|
[5217] | 24 | AC_CHECK_HEADER([netcdf.h], [], |
---|
| 25 | [AC_MSG_ERROR([Can't find the NetCDF header. (CPPFLAGS?)])]) |
---|
[5487] | 26 | AC_CHECK_HEADER([windows.h]) |
---|
| 27 | AX_BOOST_BASE([1.35.0]) |
---|
[5200] | 28 | |
---|
| 29 | # Checks for typedefs, structures, and compiler characteristics. |
---|
[5215] | 30 | AC_C_CONST |
---|
[5487] | 31 | AC_C_INLINE |
---|
[5268] | 32 | AC_TYPE_SIZE_T |
---|
[5487] | 33 | AM_PROG_CC_C_O |
---|
[5200] | 34 | |
---|
| 35 | # Checks for library functions. |
---|
[5257] | 36 | AC_FUNC_MALLOC |
---|
[5292] | 37 | AC_CHECK_FUNCS([strdup sqrt]) |
---|
[5200] | 38 | |
---|
| 39 | AC_CONFIG_FILES([Makefile |
---|
[5257] | 40 | src/Makefile]) |
---|
[5200] | 41 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.