-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
128 lines (99 loc) · 3.69 KB
/
configure.ac
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Pre-Conf
#-----------------------------------------------------------------------------
AC_PREREQ(2.59)
AC_INIT(libwdbLoad, 2.2.1, [wdb@met.no])
# Config
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([config/m4])
AC_PROG_LIBTOOL
#-----------------------------------------------------------------------------
# Source & Build Directories
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Programs
#-----------------------------------------------------------------------------
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LN_S
#-----------------------------------------------------------------------------
# Checks
#-----------------------------------------------------------------------------
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdio.h stdlib.h sys/time.h unistd.h wordexp.h ctype.h])
AC_CHECK_HEADERS([string vector iterator iosfwd iostream sstream fstream])
AC_CHECK_HEADERS([cmath algorithm memory new stdexcept cstdlib exception])
# string exception sstream
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MEMCMP
# Check for libraries.
AC_CXX_REQUIRE_STL
VL_LIB_READLINE
#-----------------------------------------------------------------------------
# Module Checks
#-----------------------------------------------------------------------------
# wdb
WDB_CHECK
# BOOST
AX_BOOST_BASE([1.40])
AX_BOOST_PROGRAM_OPTIONS
AX_BOOST_SYSTEM
AX_BOOST_UNIT_TEST_FRAMEWORK
CPPFLAGS = $(BOOST_CPPFLAGS)
LDFLAGS = $(BOOST_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIB)
# LOG4CPP
WDB_LOG4CPP_CHECK(1.0)
WDB_PQXX_CHECK(2.6.8)
#-----------------------------------------------------------------------------
# documentation
#-----------------------------------------------------------------------------
# No docbook documentation
# WDB_DOCBOOK_CHECK
#-----------------------------------------------------------------------------
# Automake
#-----------------------------------------------------------------------------
AM_INIT_AUTOMAKE(-Wall -Werror subdir-objects)
AM_PROG_CC_C_O
#-----------------------------------------------------------------------------
# Configure and Exit
#-----------------------------------------------------------------------------
# Configuration Files
AC_CONFIG_FILES([Makefile libwdbLoad.pc])
AC_OUTPUT
# Print Out Summary of Configuration
AC_MSG_RESULT([ ])
AC_MSG_RESULT([$PACKAGE_NAME $PACKAGE_VERSION])
AC_MSG_RESULT([Configuration:])
AC_MSG_RESULT([-------------------------------------------------------------------------])
AC_MSG_RESULT([ ])
AC_MSG_RESULT([ Database Name: $DATABASE_NAME])
AC_MSG_RESULT([ Source Code: $srcdir])
AC_MSG_RESULT([ Host System: $host])
AC_MSG_RESULT([ ])
AC_MSG_RESULT([ Prefix: $prefix])
AC_MSG_RESULT([ Binaries: $exec_prefix])
AC_MSG_RESULT([ Manuals: $mandir])
AC_MSG_RESULT([ Data: $datadir])
AC_MSG_RESULT([ System Config: $sysconfdir])
AC_MSG_RESULT([ ])
AC_MSG_RESULT([ CPPFLAGS: $CPPFLAGS])
AC_MSG_RESULT([ LDFLAGS: $LDFLAGS])
AC_MSG_RESULT([ LIBS: $LIBS])
AC_MSG_RESULT([ ])
AC_MSG_RESULT([-------------------------------------------------------------------------])
AC_MSG_RESULT([ ])