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

Last change on this file since 10183 was 10183, checked in by tbretz, 10 years ago
New import.
File size: 7.0 KB
Line 
1# autoreconf --force --install
2
3AC_INIT([FACT++], [1.0], [thomas.bretz@epfl.ch], [FACTpp], [http://hello.example.com/])
4AC_PREREQ([2.59])
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])
10AC_PROG_CXX([colorgcc g++])
11AC_PROG_LIBTOOL
12AC_LANG(C++)
13#AC_PATH_XTRA
14
15
16LT_INIT([disable-static])
17
18
19AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests dist-tarZ parallel-tests silent-rules])
20AM_SILENT_RULES([yes])
21AM_PROG_CC_C_O
22
23
24DX_INIT_DOXYGEN([FACT++])#, DOXYFILE-PATH, [OUTPUT-DIR])
25#DX_DOXYGEN_FEATURE(ON)
26#DX_DOT_FEATURE(ON)
27#DX_HTML_FEATURE(ON)
28#DX_CHM_FEATURE(ON|OFF)
29#DX_CHI_FEATURE(ON|OFF)
30DX_MAN_FEATURE(ON)
31#DX_RTF_FEATURE(ON|OFF)
32#DX_XML_FEATURE(ON|OFF)
33#DX_PDF_FEATURE(ON|OFF)
34DX_PS_FEATURE(OFF)
35DX_ENV_APPEND(EXTRACT_ALL, YES)
36DX_ENV_APPEND(RECURSIVE,   YES)
37DX_ENV_APPEND(ALL_GRAPHS,  NO)  # change to yet to switch on call(er) graphs
38
39#USE_HTAGS              = $(USE_HTAGS)
40
41AX_BOOST_BASE([1.42], [],
42   [
43      echo "Error! The boost C++ libraries are not properly installed."
44      exit -1
45   ]
46)
47
48AX_BOOST_ASIO
49AX_BOOST_DATE_TIME
50AX_BOOST_FILESYSTEM
51AX_BOOST_PROGRAM_OPTIONS
52AX_BOOST_REGEX
53AX_BOOST_SYSTEM
54AX_BOOST_THREAD
55#ax_boost_iostreams
56#ax_boost_python
57#ax_boost_serialization
58#ax_boost_signals
59#ax_boost_test_exec_monitor
60#ax_boost_unit_test_framework
61#ax_boost_wave
62#ax_boost_wserialization
63
64
65AC_LANG_PUSH(C)
66
67AC_CHECK_LIB(pthread,  pthread_create,
68   [],
69   [
70      echo "Error! libpthread not found in default libarary paths."
71      exit -1
72   ]
73)
74AC_CHECK_HEADERS(pthread.h, [],
75   [
76      echo "Error! pthread.h not properly installed in default include paths."
77      exit -1
78   ]
79)
80
81
82AC_CHECK_LIB(readline, readline, [],
83   [
84      echo "Error! libreadline not found in default libarary paths."
85      exit -1
86   ]
87)
88AC_CHECK_HEADERS(readline/readline.h, [],
89   [
90      echo "Error! readline/readline.h not properly installed in default include path (maybe readline-dev missing)."
91      exit -1
92   ]
93)
94
95
96AC_CHECK_HEADERS(panel.h, [],
97   [
98      echo "Error! Ncurses panel.h not properly installed in default include paths."
99      exit -1
100   ]
101)
102AC_CHECK_LIB(panel, update_panels, [],
103   [
104      echo "Error! Ncurses libpanel not properly installed in the default libarary paths."
105      exit -1
106   ]
107)
108
109
110AC_CHECK_HEADERS([Mrm/MrmAppl.h Xm/Xm.h], [],
111   [
112      echo "Error! Mrm/MrmAppl.h, Xm/Xm.h not properly installed, needed to compile did (you need most probably lesstif2-dev)."
113      exit -1
114   ]
115)
116
117AC_CHECK_LIB(Xm, XtToolkitInitialize, [],
118   [
119      echo "Error! libXm (lesstif2) not properly installed in the default library path (needed by dim to link did)."
120      exit -1
121   ]
122)
123
124AC_LANG_POP()
125
126#AC_CHECK_HEADERS(
127#   [\
128#      boost/bind.hpp \
129#      boost/lexical_cast.hpp \
130#      boost/filesystem.hpp \
131#      boost/thread.hpp \
132#      boost/function.hpp \
133#      boost/regex.hpp \
134#      boost/asio.hpp \
135#      boost/enable_shared_from_this.hpp \
136#      boost/asio/deadline_timer.hpp \
137#      boost/date_time/posix_time/posix_time.hpp \
138#      boost/date_time/local_time/local_time.hpp \
139#      boost/date_time/gregorian/gregorian.hpp
140#   ], [],
141#   [
142#      echo "Error! At least one needed header of the boost C++ libararies is missing."
143#      exit -1
144#   ]
145#)
146
147#AC_ARG_WITH([dim],
148#   [
149#      AS_HELP_STRING([--with-dim],
150#         [location of the Dim headers, defaults to dim_v19r15])
151#   ],
152#   [DIM_PATH="$withval"],
153#   [DIM_PATH="dim_v19r15"]
154#)
155#
156#AC_SUBST([DIM_PATH])
157#
158#CFLAGS="$CFLAGS -I$DIM_PATH/dim"
159#CPPFLAGS="$CPPFLAGS -I$DIM_PATH/dim"
160#INCLUDEPATH="$INCLUDEPATH -I$DIM_PATH/dim"
161#AC_CHECK_HEADERS([dis.hxx dic.hxx], [],
162#  [
163#      echo "Error! Dim headers (dis.hxx, dic.hxx) not found in $DIM_PATH/dim."
164#      exit -1
165#   ]
166#)
167
168## ============>   boost header and boost libraries
169
170##########################################################################
171#AC_ARG_WITH([dim-include-path],
172#   [
173#      AS_HELP_STRING([--with-dim-include-path],
174#         [location of the Dim headers, defaults to ${HOME}/FACT/dim_v19r11/dim])
175#   ],
176#   [DIM_INCLUDE_PATH="$withval"],
177#   [DIM_INCLUDE_PATH="${HOME}/Software/Dim/dim_v19r11/dim"]
178#)
179#DIM_CFLAGS="-I$DIM_INCLUDE_PATH"
180##AC_SUBST([DIM_CFLAGS])
181#
182#CFLAGS="$CFLAGS $DIM_CFLAGS"
183#CPPFLAGS="$CPPFLAGS $DIM_CFLAGS"
184##INCLUDEPATH="$INCLUDEPATH $DIM_INCLUDE_PATH"
185#AC_CHECK_HEADERS([dis.hxx dic.hxx], [],
186#   [
187#      echo "Error! Dim headers (dis.hxx, dic.hxx) not found in $DIM_INCLUDE_PATH."
188#      exit -1
189#   ]
190#)
191##########################################################################
192
193
194
195###########################################################################
196#AC_ARG_WITH([dim-lib-path],
197#  [
198#     AS_HELP_STRING([--with-dim-lib-path],
199#        [location of the Dim libraries, defaults to ${HOME}/FACT/dim_v19r11/linux])
200#  ],
201#  [DIM_LIB_PATH="$withval"],
202#  [DIM_LIB_PATH="${HOME}/Software/Dim/dim_v19r11/linux"]
203#)
204#DIM_LIBS="-L$DIM_LIB_PATH -ldim"
205##AC_SUBST([DIM_LIBS])
206#
207#LDFLAGS="$LDFLAGS $DIM_LIBS"
208#AC_CHECK_LIB(dim, [get_dns_port_number], [],
209#   [
210#      echo "Error! libdim.so file not found in $DIM_LIB_PATH."
211#      exit -1
212#   ]
213#)
214###########################################################################
215
216
217
218# Get MySQL++ library and include locations
219#AC_ARG_WITH([mysqlpp-include-path],
220#   [
221#      AS_HELP_STRING([--with-mysqlpp-include-path],
222#         [location of the MySQL++ librarary headers, defaults to /usr/include/mysql++])
223#   ],
224#   [MYSQLPP_INCLUDE_PATH="$withval"],
225#   [MYSQLPP_INCLUDE_PATH=""]
226##)
227#MYSQLPP_CFLAGS="-I$MYSQLPP_INCLUDE_PATH"
228##AC_SUBST([DIM_CFLAGS])
229#
230#CFLAGS="$CFLAGS $MYSQLPP_CFLAGS"
231#CPPFLAGS="$CPPFLAGS $MYSQLPP_CFLAGS"
232##INCLUDEPATH="$INCLUDEPATH $DIM_INCLUDE_PATH"
233#AC_CHECK_HEADERS([mysql++/mysql++.h],
234#   [],
235#   [
236#      echo "Error! mysql++/mysql++.h not found in default include path."
237#      exit -1
238#   ]
239#)
240#### LAST ARGUMENT IS "OTHER LIBRARIES"
241
242
243
244#AC_ARG_WITH([mysql-lib-path],
245#  [
246#     AS_HELP_STRING([--with-mysql-lib-path],
247#        [location of the MySQL library, defaults to /usr/lib])
248#  ],
249#  [MYSQL_LIB_PATH="$withval"],
250#  [MYSQL_LIB_PATH="/usr/lib"]
251#)
252#MYSQL_LIBS="-L$MYSQL_LIB_PATH -lmysql"
253##AC_SUBST([DIM_LIBS])
254#
255#LDFLAGS="$LDFLAGS $MYSQL_LIBS"
256#AC_CHECK_LIB(mysql, [mysql_errno],
257#   [],
258#   [
259#      echo "Error! mysql libarary file not found in $MYSQL_LIB_PATH."
260#      exit -1
261#   ]
262#)
263
264
265
266
267AC_ARG_WITH([mysqlpp-lib-path],
268  [
269     AS_HELP_STRING([--with-mysqlpp-lib-path],
270        [location of the MySQL++ library, defaults to /usr/lib])
271  ],
272  [MYSQLPP_LIB_PATH="$withval"],
273  [MYSQLPP_LIB_PATH="/usr/lib"]
274)
275MYSQLPP_LIBS="-L$MYSQLPP_LIB_PATH -lmysqlpp"
276#AC_SUBST([DIM_LIBS])
277
278#LDFLAGS="$LDFLAGS $MYSQLPP_LIBS"
279#AC_CHECK_LIB(mysql++, [mysql_errno],
280#   [],
281#   [
282#      echo "Error! mysql++ libarary file not found in $MYSQL_LIB_PATH."
283#      exit -1
284#   ]
285#)
286
287
288
289
290
291#CPPFLAGS="$CPPFLAGS -std=c++0x"
292
293CPPFLAGS="$CPPFLAGS -I/usr/include/mysql"
294
295
296
297
298#AC_CHECK_HEADERS_ONCE(dim.h)
299
300#AC_C_CONST
301#AC_TYPE_PID_T
302#AC_HEADER_STDC
303
304AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.