From a3e55003451c5e8f753d55a5ff61f07222dbe7dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 22 Apr 2014 07:52:09 +0000 Subject: [PATCH] added libcwd; refs #9 --- configure.in | 11 +++++++---- src/mrw/checkcxx11.hxx | 1 + test/makefile.am | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 0128197..0b30653 100644 --- a/configure.in +++ b/configure.in @@ -99,7 +99,7 @@ AC_SUBST_FILE(README) CHANGE_LOG=ChangeLog AC_SUBST_FILE(CHANGE_LOG) -AM_CPPFLAGS="-DPACKAGEVERSION='\"${VERSION}\"' -DPACKAGENAME='\"${PACKAGENAME}\"'" +AM_CPPFLAGS="-DPACKAGEVERSION='\"${VERSION}\"' -DPACKAGENAME='\"${PACKAGENAME}\"' -I/usr/include/libcwd" # Get rid of that stupid -O2 -g opions! CXXFLAGS="${CXXFLAGS:-}" @@ -200,14 +200,15 @@ if test "$have_stacktrace" = "yes"; then [AC_MSG_WARN([Header "demangle.h" from the binutils not found! - unfortunately, the bintils do not install this header (even though they should) + - if available, install package libcwd (Ubuntu since 13.04 Trusty) - the required symbols are now declared in stacktrace.cxx according to my own binutils version (binutils-2.16.1) it may or may not be compatible to yours])]) - AC_SEARCH_LIBS(cplus_demangle, [demangle iberty_pic iberty], + AC_SEARCH_LIBS(cplus_demangle, [demangle iberty_pic iberty cwd], [AC_MSG_RESULT([OK, found cplus_demangle])], [AC_MSG_ERROR([Function cplus_demangle not found! - - I looked in libdemangle and libiberty - - Try "ls -l /usr/lib/libdemangle* /usr/lib/libiberty*" + - I looked in libdemangle, libiberty and libcwd + - Try "ls -l /usr/lib/libdemangle* /usr/lib/libiberty* /usr/lib/libcwd*" - is one of them installed? - If yes, try: "nm | grep cplus_demangle" -> is the symbol defined? @@ -302,6 +303,8 @@ AC_SUBST(PACKAGENAME) AC_SUBST(AM_CXXFLAGS) AC_SUBST(AM_CPPFLAGS) AC_SUBST(LIBS) +DISTCHECK_CONFIGURE_FLAGS="$(env)" +AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) # create output AC_OUTPUT diff --git a/src/mrw/checkcxx11.hxx b/src/mrw/checkcxx11.hxx index 9306bab..7017ee7 100644 --- a/src/mrw/checkcxx11.hxx +++ b/src/mrw/checkcxx11.hxx @@ -8,6 +8,7 @@ #ifndef __MRW__CHECKCXX11__ #define __MRW__CHECKCXX11__ + // check if code is compiled with a new C++11 compiler // otherwise there is a fallback wich makes everything much more compliacted # ifndef MRW__OLD_PRE11_COMPILER diff --git a/test/makefile.am b/test/makefile.am index 3b2179b..875667b 100644 --- a/test/makefile.am +++ b/test/makefile.am @@ -188,4 +188,5 @@ endif check_PROGRAMS = $(VALGRIND_CHECKS) $(NO_VALGRIND_CHECKS) CLEANFILES = +DISTCLEANFILES = configfile2.ini MAINTAINERCLEANFILES = makefile.in