1 AC_INIT([nobug], [201006.1], [nobug@lists.pipapo.org])
2 AC_CONFIG_SRCDIR([src/nobug.h])
3 AC_CONFIG_AUX_DIR([scripts])
4 AC_CONFIG_MACRO_DIR([m4])
9 This file is part of the NoBug debugging library.
12 2007, 2008, 2009, Christian Thaeter <ct@pipapo.org>
13 2009, Benny Lyons <Benny.Lyons@gmx.net>
15 This program is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, contact Christian Thaeter <ct@pipapo.org>.
34 AM_CONDITIONAL([HAVE_THREADING], [test x"$acx_pthread_ok" = xyes])
35 AC_CHECK_HEADER([execinfo.h], AC_DEFINE(HAVE_EXECINFO_H))
39 # provide some extra flags for gcc
40 if test x$GCC = xyes; then
41 CONF_CFLAGS="-Wall -Wextra -Werror"
47 # check if LOG_PERROR is supported
49 AC_LANG_PROGRAM([#include <syslog.h>],
50 [printf("%d\n", LOG_PERROR);]),
51 AC_DEFINE(HAVE_LOG_PERROR),
52 AC_MSG_NOTICE([System does not support LOG_PERROR]))
55 PKG_CHECK_MODULES(VALGRIND,[valgrind >= 3.5.0],
56 [AC_DEFINE(VALGRIND_NEWLINE, "\n") AC_DEFINE(HAVE_VALGRIND)]
58 [PKG_CHECK_MODULES(VALGRIND,[valgrind],
59 [ AC_DEFINE(VALGRIND_NEWLINE, "") AC_DEFINE(HAVE_VALGRIND)],
60 [ AC_MSG_NOTICE([Valgrind not available, build without it])])]
63 AC_CONFIG_FILES([nobug.pc nobugmt.pc])
65 AC_CONFIG_FILES(Makefile)