source: trunk/FACT++/configure.ac @ 10192

Last change on this file since 10192 was 10192, checked in by tbretz, 9 years ago
Cleanup, added new MYSQL m4-macros
File size: 6.7 KB
Line 
1# autoreconf --force --install
2
3AC_INIT([FACT++],[1.0],[thomas.bretz@epfl.ch],[FACTpp],[http://hello.example.com/])
4AC_PREREQ([2.67])
5AC_CONFIG_FILES([Makefile])   # causes x/Makefile.in to be created if x/Makefile.am exists
6#AC_CONFIG_HEADERS([config.h])
7AC_CONFIG_MACRO_DIR([.macro_dir])
8AC_CONFIG_AUX_DIR([.aux_dir])
9AC_PROG_CC([colorgcc gcc])
10 #If output variable CXXFLAGS was not already set, set it to -g -O2
11AC_PROG_CXX([colorgcc g++])
12LT_INIT([disable-static])
13AC_LANG(C++)
14#AC_PATH_XTRA
15
16
17
18
19AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests parallel-tests silent-rules])
20AM_SILENT_RULES([yes])
21AM_PROG_CC_C_O
22
23######################################################################
24# DOXYGEN SUPPORT
25######################################################################
26
27### FIXME: Need a configure commandline switch
28DX_ENV_APPEND(EXTRACT_ALL, YES)
29DX_ENV_APPEND(RECURSIVE,   YES)
30DX_ENV_APPEND(ALL_GRAPHS,  NO)  # change to yet to switch on call(er) graphs
31
32#DX_DOXYGEN_FEATURE(ON)
33#DX_DOT_FEATURE(ON)               # sets HAVE_DOT
34#DX_HTML_FEATURE(ON)              # sets GENERATE_HTML (default)
35#DX_CHM_FEATURE(ON|OFF)           # sets GENERATE_HTMLHELP
36#DX_CHI_FEATURE(ON|OFF)           # sets GENERATE_CHI
37#DX_MAN_FEATURE(ON)               # sets GENERATE_MAN (segfaults)
38#DX_RTF_FEATURE(ON|OFF)           # sets GENERATE_RTF
39#DX_XML_FEATURE(ON|OFF)           # sets GENERATE_XML
40#DX_PDF_FEATURE(ON|OFF)           # sets GENERATE_PDF (default)
41DX_PS_FEATURE(OFF)                # sets GENERATE_PS  (default)
42DX_INIT_DOXYGEN($PACKAGE_NAME)#, DOXYFILE-PATH, [OUTPUT-DIR])
43
44#USE_HTAGS              = $(USE_HTAGS)
45
46######################################################################
47# Readline/NCurses
48######################################################################
49
50AC_LANG_PUSH(C)
51
52AC_CHECK_LIB(readline, readline, [],
53   [
54      echo "Error! libreadline not found in default libarary paths."
55      exit -1
56   ]
57)
58AC_CHECK_HEADERS(readline/readline.h, [],
59   [
60      echo "Error! readline/readline.h not properly installed in default include path (maybe readline-dev missing)."
61      exit -1
62   ]
63)
64
65
66AC_CHECK_HEADERS(panel.h, [],
67   [
68      echo "Error! Ncurses panel.h not properly installed in default include paths."
69      exit -1
70   ]
71)
72AC_CHECK_LIB(panel, update_panels, [],
73   [
74      echo "Error! Ncurses libpanel not properly installed in the default libarary paths."
75      exit -1
76   ]
77)
78
79AC_LANG_POP
80
81######################################################################
82# pthread support
83######################################################################
84
85#AX_PTHREAD
86#
87#AC_CHECK_LIB(pthread,  pthread_create,
88#   [],
89#   [
90#      echo "Error! libpthread not found in default libarary paths."
91#      exit -1
92#   ]
93#)
94#AC_CHECK_HEADERS(pthread.h, [],
95#   [
96#      echo "Error! pthread.h not properly installed in default include paths."
97#      exit -1
98#   ]
99#)
100
101######################################################################
102# Xm.h (lesstif/motif)
103######################################################################
104
105AC_LANG_PUSH(C)
106
107AC_CHECK_HEADERS([Mrm/MrmAppl.h Xm/Xm.h], [],
108   [
109      echo "Error! Mrm/MrmAppl.h, Xm/Xm.h not properly installed, needed to compile did (you need most probably lesstif2-dev)."
110      exit -1
111   ]
112)
113
114AC_CHECK_LIB(Xm, XtToolkitInitialize, [],
115   [
116      echo "Error! libXm (lesstif2) not properly installed in the default library path (needed by dim to link did)."
117      exit -1
118   ]
119)
120
121AC_LANG_POP
122
123######################################################################
124# MySQL(++) SUPPORT
125######################################################################
126
127MYSQL_DEVEL
128MYSQLPP_DEVEL
129
130######################################################################
131# BOOST SUPPORT
132######################################################################
133
134AX_BOOST_BASE([1.42], [],
135   [
136      echo "Error! The boost C++ libraries are not properly installed."
137      exit -1
138   ]
139)
140
141AX_BOOST_ASIO
142AX_BOOST_DATE_TIME
143AX_BOOST_FILESYSTEM
144AX_BOOST_PROGRAM_OPTIONS
145AX_BOOST_REGEX
146AX_BOOST_SYSTEM
147AX_BOOST_THREAD
148#ax_boost_iostreams
149#ax_boost_python
150#ax_boost_serialization
151#ax_boost_signals
152#ax_boost_test_exec_monitor
153#ax_boost_unit_test_framework
154#ax_boost_wave
155#ax_boost_wserialization
156
157#AC_CHECK_HEADERS(
158#   [\
159#      boost/bind.hpp \
160#      boost/lexical_cast.hpp \
161#      boost/filesystem.hpp \
162#      boost/thread.hpp \
163#      boost/function.hpp \
164#      boost/regex.hpp \
165#      boost/asio.hpp \
166#      boost/enable_shared_from_this.hpp \
167#      boost/asio/deadline_timer.hpp \
168#      boost/date_time/posix_time/posix_time.hpp \
169#      boost/date_time/local_time/local_time.hpp \
170#      boost/date_time/gregorian/gregorian.hpp
171#   ], [],
172#   [
173#      echo "Error! At least one needed header of the boost C++ libararies is missing."
174#      exit -1
175#   ]
176#)
177
178######################################################################
179# ROOT SUPPORT
180######################################################################
181
182# ROOT_PATH([5.12/00, [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]])
183# ROOT_PATH([5.12/00])
184# ROOT_PATH(3.03/05, , AC_MSG_ERROR(Your ROOT version is too old))
185# ROOT_PATH(, AC_DEFINE([HAVE_ROOT]))
186
187# ROOTCONF           full path to root-config
188# ROOTEXEC           full path to root
189# ROOTCINT           full path to rootcint
190# ROOTLIBDIR         Where the ROOT libraries are
191# ROOTINCDIR         Where the ROOT headers are
192# ROOTETCDIR         Where the ROOT configuration is
193# ROOTCFLAGS         Extra compiler flags
194# ROOTLIBS           ROOT basic libraries
195# ROOTGLIBS          ROOT basic + GUI libraries
196# ROOTAUXLIBS        Auxilary libraries and linker flags for ROOT
197# ROOTAUXCFLAGS      Auxilary compiler flags
198# ROOTRPATH          Same as ROOTLIBDIR
199
200
201###########################################################################
202
203
204#AC_C_CONST
205#AC_TYPE_PID_T
206#AC_HEADER_STDC
207
208##########################################################################
209# debug compilation support
210##########################################################################
211#
212#AC_MSG_CHECKING([whether to build with debug information])
213#AC_ARG_ENABLE([debug],
214#    [AS_HELP_STRING([--enable-debug],
215#        [enable debug data generation (def=no)])],
216#    [debugit="$enableval"],
217#    [debugit=no])
218#AC_MSG_RESULT([$debugit])
219#
220#if test x"$debugit" = x"yes"; then
221#    AC_DEFINE([DEBUG],[],[Debug Mode])
222#    AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Werror -Wno-uninitialized -O0"
223#else
224#    AC_DEFINE([NDEBUG],[],[No-debug Mode])
225#    AM_CXXFLAGS="$AM_CXXFLAGS -O3"
226#fi
227#
228###########################################################################
229#To get the changed compiler flags distributed among your final Makefiles you have to add the following line somewhere afterwards:
230#
231#AC_SUBST([AM_CXXFLAGS])
232
233
234
235AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.