blob: 57dd625789348f6bef510174c986f65b3b1ae4be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.56)
# Autoconf composes the distribution filename like: 4thArg-2ndArg, but we want
# an underscore between the NanoEngineer-1 and its version. The following line
# looks strange but gets us what we want.
AC_INIT(HDF5_SimResults, 0.1.0, support@nanorex.com, HDF5_SimResults)
AM_INIT_AUTOMAKE
AC_COPYRIGHT([Copyright 2008 Nanorex, Inc. See LICENSE file for details.])
AC_CONFIG_SRCDIR([src/HDF5_SimResults.cpp])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LN_S
#
# Check if we're building the CppUnit tests
#
AC_ARG_ENABLE(cppunit-tests,
AC_HELP_STRING([--enable-cppunit-tests],
[build the CppUnit test suites]))
if test -z "$enable_cppunit_tests"; then
enable_cppunit_tests="no"
fi
AM_CONDITIONAL([ENABLE_CPPUNIT_TESTS], [test "$enable_cppunit_tests" = "yes"])
#
# Checks for libraries.
#
CHECK_HDF5()
# CppUnit Tests (CppUnit)
if test "$enable_cppunit_tests" = "yes"; then
CHECK_CPPUNIT([1.10.0])
fi
# Checks for header files.
#AC_HEADER_STDC
#AC_CHECK_HEADERS([limits.h stdlib.h string.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
#AC_C_CONST
#AC_HEADER_STDBOOL
#AC_C_INLINE
#AC_C_RESTRICT
#AC_HEADER_TIME
#AC_STRUCT_TM
#AC_C_VOLATILE
# Checks for library functions.
#AC_FUNC_MALLOC
#AC_FUNC_MEMCMP
#AC_HEADER_MAJOR
#AC_FUNC_REALLOC
#AC_FUNC_SELECT_ARGTYPES
#AC_TYPE_SIGNAL
#AC_FUNC_STAT
#AC_FUNC_STRTOD
#AC_FUNC_VPRINTF
#AC_CHECK_FUNCS([clock_gettime gettimeofday memmove memset pow select sqrt strcasecmp strerror strncasecmp strtol])
# Miscellaneous
AC_SUBST(UNAME_A, "$(uname -a)")
AC_CONFIG_FILES([Makefile src/Makefile src/Testing/Makefile])
AC_OUTPUT
|