From cb9042fbada40ebbd55f44a4b19b13ddee1c145e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sat, 8 Sep 2012 00:57:34 +0000 Subject: [PATCH] [GB.MIME] * NEW: Try to detect gmime-2.4 if gmime-2.6 is not available. git-svn-id: svn://localhost/gambas/trunk@5142 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.mime/configure.ac | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gb.mime/configure.ac b/gb.mime/configure.ac index b38695b93..2ea8bcf8a 100644 --- a/gb.mime/configure.ac +++ b/gb.mime/configure.ac @@ -4,11 +4,35 @@ AC_INIT(configure.ac) AC_CONFIG_MACRO_DIR([m4]) GB_INIT(gb.mime) AC_PROG_LIBTOOL + +gb_in_component_search=yes + GB_COMPONENT_PKG_CONFIG( mime, MIME, gb.mime, [src], gmime-2.6) -AC_OUTPUT( Makefile src/Makefile ) + +gb_in_component_search=no + +if test "$have_mime" = "no"; then + + rm -f DISABLED DISABLED.gb.mime + + GB_COMPONENT_PKG_CONFIG( + mime, + MIME, + gb.mime, + [src], + gmime-2.4) + + if test "$have_mime" = "yes"; then + GB_WARNING([But gmime 2.4 has been detected!]) + fi + +fi + +AC_OUTPUT(Makefile src/Makefile) + GB_PRINT_MESSAGES