aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 100c20965..6b6d6072b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,14 +152,19 @@ elif test "x$with_mozilla" != "xmozilla" -a "x$with_mozilla" != "xfirefox" -a "x
AC_MSG_ERROR([unknown mozilla name ($MOZILLA)])
fi
+AC_SUBST(MOZILLA)
+
AC_MSG_RESULT([$MOZILLA])
case "$MOZILLA" in
-mozilla) min_version=1.7 ;;
-firefox) min_version=0.10 ;;
-thunderbird) min_version=0.8 ;;
+mozilla) min_version=1.7 flavour=mozilla ;;
+firefox) min_version=0.10 flavour=toolkit ;;
+thunderbird) min_version=0.8 flavour=toolkit ;;
esac
+MOZILLA_FLAVOUR=$flavour
+AC_SUBST(MOZILLA_FLAVOUR)
+
PKG_CHECK_MODULES(MOZILLA_COMPONENT, $MOZILLA-gtkmozembed >= $min_version $MOZILLA-xpcom >= $min_version)
AC_SUBST(MOZILLA_COMPONENT_CFLAGS)
AC_SUBST(MOZILLA_COMPONENT_LIBS)