diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-10-08 22:33:31 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-10-08 22:33:31 +0000 |
commit | 8021958099dae267d8752a27de9be39b3df21ef0 (patch) | |
tree | 95e0bcc4a534b3600732a8d094ede9881125a571 | |
parent | 478c88991e5f5712b810c0ee29e7226231e360f2 (diff) |
Add warning when compiling with iODBC support
When running configure, libiodbc2 development headers will fulfill the
requirement for ODBC development headers, but will not function
properly. This adds a warning when libiodbc2 development headers are
detected instead of unixodbc development headers.
(closes issue ASTERISK-22459)
Reported by: Patrick Maille
Tested by: Walter Doekes
Patches:
issueA22459_warn_when_using_iodbc.patch uploaded by Walter Doekes (License 5674)
........
Merged revisions 400767 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 400768 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 400769 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | configure | 11 | ||||
-rw-r--r-- | configure.ac | 9 |
2 files changed, 19 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 400186 . +# From configure.ac Revision: 400385 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for asterisk trunk. # @@ -32871,6 +32871,15 @@ echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. " echo fi +if test "x${AST_IODBC_FOUND}" = "xyes"; then + echo "WARNING: iodbc libs/headers found!" + echo + echo " If you plan to use ODBC functionality, you should consider" + echo " switching to unixodbc instead." + echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459" + echo +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5 $as_echo "$as_me: Package configured for: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5 diff --git a/configure.ac b/configure.ac index f67832731..4ba3b247d 100644 --- a/configure.ac +++ b/configure.ac @@ -2452,6 +2452,15 @@ echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. " echo fi +if test "x${AST_IODBC_FOUND}" = "xyes"; then + echo "WARNING: iodbc libs/headers found!" + echo + echo " If you plan to use ODBC functionality, you should consider" + echo " switching to unixodbc instead." + echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459" + echo +fi + AC_MSG_NOTICE(Package configured for: ) AC_MSG_NOTICE( OS type : $host_os) AC_MSG_NOTICE( Host CPU : $host_cpu) |