root/Multipole/branches/Multipole-1.0.0/configure.ac

Revision 1, 1.0 KB (checked in by cristy, 3 months ago)


Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.62])
5AC_INIT([Multipole], [1.0.0], [http://www.multipole.org], [Multipole])
6AC_CONFIG_SRCDIR([multipole.h])
7AC_CONFIG_HEADERS([config/config.h])
8
9AC_CANONICAL_TARGET([])
10
11# Ensure that make can run correctly
12AM_SANITY_CHECK
13
14AM_INIT_AUTOMAKE([1.10.1 subdir-objects dist-zip dist-bzip2 dist-lzma foreign])
15
16# Checks for programs.
17AC_PROG_CXX
18AC_PROG_CC
19AC_PROG_CPP
20AC_PROG_INSTALL
21AC_PROG_LN_S
22AC_PROG_MAKE_SET
23AC_PROG_RANLIB
24
25# Checks for libraries.
26
27# Checks for header files.
28AC_CHECK_HEADERS([limits.h malloc.h memory.h stdlib.h string.h unistd.h])
29
30# Checks for typedefs, structures, and compiler characteristics.
31
32#
33# Find math library
34#
35LIB_MATH=''
36AC_CHECK_LIB(m,sqrt,LIB_MATH="-lm",,)
37LIBS="$LIB_MATH $LIBS"
38
39# Checks for library functions.
40AC_FUNC_MALLOC
41AC_CHECK_FUNCS([floor pow sqrt])
42
43AC_CONFIG_FILES([Makefile])
44AC_OUTPUT
Note: See TracBrowser for help on using the browser.