1 AC_INIT([libsex], [0.0.0], [<arandes@programmers.at>])
3 AM_INIT_AUTOMAKE([-Wall -Werror])
6 ["2010 Andreas Waidler"],
7 [Copyright information.])
9 #AC_CONFIG_SRCDIR([src/Option])
10 AC_CONFIG_SRCDIR([src])
11 AM_CONFIG_HEADER([src/config.hxx])
16 AC_MSG_CHECKING([whether configure should try to set CXXFLAGS])
17 if test "x${CXXFLAGS+set}" = xset; then
18 enable_cxxflags_setting=no
20 enable_cxxflags_setting=yes
22 AC_MSG_RESULT($enable_cxxflags_setting)
31 [enable debugging output to stderr @<:@default=no@>:@]),
35 if test "x${debug}" = xyes; then
39 [Define to 1 to enable debugging output to stderr])
40 if test "x${enable_cxxflags_setting}" = xyes; then
41 CXXFLAGS="-g -O0" # Debugging information for gdb.
44 if test "x${enable_cxxflags_setting}" = xyes; then
53 [--disable-dot-multi-targets],
54 [disable dot's output to multiple files in one run (make doxygen)
55 @<:@default=use@:>@]),
56 [dot_multi_targets=${withval}],
57 [dot_multi_targets=yes])
66 [do not use dot for graph generation (make doxygen)
67 @<:@default=use@:>@]),
68 [with_dot=${withval}],
76 [enable the htags (GNU GLOBAL) source browser (make doxygen)
78 [with_htags=${withval}],
82 # Checks for programs.
95 AC_CHECK_PROG([have_doxygen], [doxygen], [yes], [no])
96 if test "x${have_doxygen}" = xno; then
98 "-------------------------------------------------
99 Unable to find Doxygen.
100 \"make doxygen\" will not work.
101 -------------------------------------------------"
105 AC_PATH_PROG([perl_path], [perl], [no])
106 if test "x${perl_path}" = xno; then
108 "-------------------------------------------------
110 \"make doxygen\" will not work.
111 -------------------------------------------------"
114 if test "x${have_doxygen}" = xyes -a "x${perl_path}" != xno; then
116 if test "x${with_dot}" = xyes; then
117 AC_CHECK_PROG([with_dot], [dot], [yes], [no])
118 if test "x${with_dot}" = xno; then
120 "-------------------------------------------------
122 \"make doxygen\" will not build powerful graphs.
123 -------------------------------------------------"
125 if test "x${dot_multi_targets}" = xyes; then
126 dot_version=`dot -V 2>&1 | \
127 sed -e 's/.*version //' | sed -e 's/ .*//'`
128 # Requires AX_COMPARE_VERSION from the Autoconf Macro Archive
134 [dot_multi_targets=no])
135 AC_MSG_CHECKING([for dot > 1.8.10])
136 AC_MSG_RESULT([$dot_multi_targets])
137 if test "x${dot_multi_targets}" = xno; then
139 "-------------------------------------------------
140 Unable to find dot > 1.8.10.
141 \"make doxygen\" will not enable dot to output
142 multiple files in one run. Therefore it will run
144 -------------------------------------------------"
153 if test "x${with_htags}" = xyes; then
154 AC_MSG_CHECKING([for htags >= 4.8.6])
155 htags_version=`htags --version |
156 sed -ne 1p | sed -e 's/.* //'`
157 # Requires AX_COMPARE_VERSION from the Autoconf Macro Archive
164 AC_MSG_RESULT([$with_htags])
165 if test "x${with_htags}" = xno; then
167 "-------------------------------------------------
168 Unable to find htags (GNU GLOBAL) >= 4.8.6.
169 \"make doxygen\" will not use htags as the
171 -------------------------------------------------"
181 # Checks for language.
184 # Checks for header files.
187 # Checks for libraries.
194 if test "x${have_cppunit}" = xno; then
196 "-------------------------------------------------
197 Unable to find CppUnit >= 1.12.0.
198 \"make check\" will not work.
199 -------------------------------------------------"
203 # Checks for typedefs, structures, and compiler characteristics.
208 # Checks for library functions.
212 AC_SUBST(dot_multi_targets)
218 AC_SUBST(CPPUNIT_CFLAGS)
219 AC_SUBST(CPPUNIT_LIBS)
222 AM_CONDITIONAL(can_run_tests, test "x${have_cppunit}" = xyes)
229 include/libsex/Makefile
239 "-------------------------------------------------
241 ${PACKAGE_NAME} ${PACKAGE_VERSION}
244 Compiler: '${CXX} ${CXXFLAGS} ${CPPFLAGS}'
249 doxygen (needed) : ${have_doxygen}
250 Perl (needed) : ${perl_path}
252 dot multi targets : ${dot_multi_targets}
253 htags : ${with_htags}
255 cppunit (needed) : ${have_cppunit}
256 pthreads (needed) : ${have_pthreads}
258 Now type 'make @<:@<target>@:>@'
259 where the optional <target> is:
260 all - build all binaries
261 check - run unittests
262 doxygen - build the documentation
263 install - install everything
264 uninstall - uninstall everything
266 -------------------------------------------------"