diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-02 00:23:09 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-02 00:23:09 +0000 |
commit | 5d7cffa3cc8ce127e5bb8f14e549ce83ce628c26 (patch) | |
tree | 474e97bda5f11b609714c1450a2483d4756cb74b /configure.ac | |
parent | a6fb36f5395bb39701cec6182f4a0c29a6355c17 (diff) |
Merged revisions 145692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r145692 | seanbright | 2008-10-01 18:48:16 -0500 (Wed, 01 Oct 2008) | 7 lines
Try a test compile using the GMime library. Some distros install gmime-config
in the base package instead of the -devel package. Now we print a notice and
disable GMime support instead of bombing during the main compilation.
(closes issue #13583)
Reported by: arkadia
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@145697 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 33b40a2af..64ee7fed2 100644 --- a/configure.ac +++ b/configure.ac @@ -1397,6 +1397,34 @@ fi AST_EXT_TOOL_CHECK([GMIME], [gmime]) +if test "$PBX_GMIME" = "1"; +then + saved_libs="${LIBS}" + saved_cflags="${CFLAGS}" + LIBS="${LIBS} ${GMIME_LIB}" + CFLAGS="${CFLAGS} ${GMIME_INCLUDE}" + AC_MSG_CHECKING(for g_mime_check_version) + AC_LINK_IFELSE( + [ + AC_LANG_PROGRAM( + [#include <gmime/gmime.h>], + [gboolean q = g_mime_check_version(0,0,0);]) + ], + [ AC_MSG_RESULT(yes) + PBX_GMIME=1 + ], + [ AC_MSG_RESULT(no) + AC_MSG_NOTICE([***]) + AC_MSG_NOTICE([*** It appears that you do not have the gmime development package installed.]) + AC_MSG_NOTICE([*** Please install it to include ${GMIME_DESCRIP} support.]) + AC_MSG_NOTICE([***]) + PBX_GMIME=0 + ] + ) + LIBS="${saved_libs}" + CFLAGS="${saved_cflags}" +fi + AST_EXT_LIB_CHECK([FREETDS], [sybdb], [dbinit], [sybdb.h]) AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], []) |