~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_cxx_demangle.m4

  • Committer: Monty Taylor
  • Date: 2009-12-14 22:00:27 UTC
  • mto: (1241.9.10 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091214220027-kpmfbl452nctzc0g
pandora-build v0.85 - Fixed C++ standard setting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
AC_DEFUN([PANDORA_CXX_DEMANGLE],[
11
11
  AC_LANG_PUSH([C++])
 
12
  save_CXXFLAGS="${CXXFLAGS}"
 
13
  CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
12
14
  AC_CHECK_HEADERS(cxxabi.h)
13
15
  AC_CACHE_CHECK([checking for abi::__cxa_demangle], pandora_cv_cxa_demangle,
14
16
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cxxabi.h>]], [[
15
17
    char *foo= 0; int bar= 0;
16
18
    foo= abi::__cxa_demangle(foo, foo, 0, &bar);
17
19
  ]])],[pandora_cv_cxa_demangle=yes],[pandora_cv_cxa_demangle=no])])
 
20
  CXXFLAGS="${save_CXXFLAGS}"
18
21
  AC_LANG_POP()
19
22
 
20
23
  AS_IF([test "x$pandora_cv_cxa_demangle" = xyes],[