~drizzle-trunk/drizzle/development

1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
dnl This file is free software; Sun Microsystems, Inc.
1192.3.46 by Monty Taylor
pandora-build v0.76
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
5
6
dnl Check for all of the headers and libs that Drizzle needs. We check all
7
dnl of these for plugins too, to ensure that all of the appropriate defines
8
dnl are set.
9
10
AC_DEFUN([PANDORA_CXX_DEMANGLE],[
11
  AC_LANG_PUSH([C++])
1241.11.1 by Monty Taylor
pandora-build v0.85 - Fixed C++ standard setting.
12
  save_CXXFLAGS="${CXXFLAGS}"
13
  CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
1192.3.46 by Monty Taylor
pandora-build v0.76
14
  AC_CHECK_HEADERS(cxxabi.h)
15
  AC_CACHE_CHECK([checking for abi::__cxa_demangle], pandora_cv_cxa_demangle,
16
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cxxabi.h>]], [[
17
    char *foo= 0; int bar= 0;
18
    foo= abi::__cxa_demangle(foo, foo, 0, &bar);
19
  ]])],[pandora_cv_cxa_demangle=yes],[pandora_cv_cxa_demangle=no])])
1241.11.1 by Monty Taylor
pandora-build v0.85 - Fixed C++ standard setting.
20
  CXXFLAGS="${save_CXXFLAGS}"
1192.3.46 by Monty Taylor
pandora-build v0.76
21
  AC_LANG_POP()
22
23
  AS_IF([test "x$pandora_cv_cxa_demangle" = xyes],[
24
    AC_DEFINE(HAVE_ABI_CXA_DEMANGLE, 1,
25
              [Define to 1 if you have the `abi::__cxa_demangle' function.])
26
  ])
27
])