1 AC_INIT([nobug], [201002.1])
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))
40 # Need to check for pkg-config, otherwise the next line doesn't work.
41 # TODO: output a reasonable error message if not present.
43 # should be some AC_CHECK_PROG check, but configure seems to handle that here:
44 # checking pkg-config is at least version 0.9.0... yes
45 #AC_CHECK_FILE (pkg-config,[],[])
47 PKG_CHECK_MODULES(VALGRIND,[valgrind >= 3.5.0],
48 [AC_DEFINE(VALGRIND_NEWLINE, "\n") AC_DEFINE(HAVE_VALGRIND)]
50 [PKG_CHECK_MODULES(VALGRIND,[valgrind],
51 [ AC_DEFINE(VALGRIND_NEWLINE, "") AC_DEFINE(HAVE_VALGRIND)],
52 [ AC_MSG_NOTICE([Valgrind not available, build without it])])]
55 AC_CONFIG_FILES([nobug.pc nobugmt.pc])
57 AC_CONFIG_FILES(Makefile)