diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-10 18:18:39 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-10 18:18:39 +0000 |
commit | b47dcc9b8b743bca30cb84de47a1a1a0b4e0c626 (patch) | |
tree | ac749be46d6aef121436501fb70741110efa43b2 /configure.ac | |
parent | 9c57a0c429e4668ad531e673dae23776d86b98f4 (diff) |
Merged revisions 217638 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r217638 | tilghman | 2009-09-10 13:17:14 -0500 (Thu, 10 Sep 2009) | 4 lines
Verify support for wide ODBC character types before using them.
(closes issue #15870)
Reported by: nic_bellamy
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@217642 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0397ef1ee..773ab9b48 100644 --- a/configure.ac +++ b/configure.ac @@ -1545,6 +1545,20 @@ else fi AC_SUBST(EDITLINE_LIB) +if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then + # Does ODBC support wide characters? + AC_MSG_CHECKING(whether ODBC has support for Unicode types) + AC_LINK_IFELSE( + AC_LANG_PROGRAM( + [#include <sql.h> +#include <sqlext.h>], + [int foo = SQL_WCHAR]), + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_ODBC_WCHAR], [1], [Define to 1 if your ODBC library has wide (Unicode) types.]), + AC_MSG_RESULT(no) + ) +fi + AC_CHECK_HEADER([h323.h], [PBX_H323=1], [PBX_H323=0]) AC_SUBST(PBX_H323) |