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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@400768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kinsey Moore
2013-10-08 22:27:59 +00:00
parent ae78f04e4f
commit 688f76dffb
2 changed files with 287 additions and 248 deletions

526
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -2417,6 +2417,15 @@ echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
echo echo
fi 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(Package configured for: )
AC_MSG_NOTICE( OS type : $host_os) AC_MSG_NOTICE( OS type : $host_os)
AC_MSG_NOTICE( Host CPU : $host_cpu) AC_MSG_NOTICE( Host CPU : $host_cpu)