diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 9ff76394a..b841aedcc 100644 --- a/configure.in +++ b/configure.in @@ -169,6 +169,36 @@ if test "$ac_cv_have_usable_wchar_option" != "yes"; then fi AC_LANG_POP(C++) +AC_MSG_CHECKING(for mozilla version) +MOZILLA_VERSION="`$PKG_CONFIG --modversion mozilla-gtkmozembed`" + +dnl allow user to override the autodetected mozilla version +dnl - without arguments for cvs head +AC_ARG_WITH(mozilla-snapshot, + AC_HELP_STRING([--with-mozilla-snapshot@<:@=1.3|1.4a|trunk@:>@], + [Whether to try building against mozilla 1.3|1.4a|trunk + snapshot. @<:@guessed@:>@]), + [autodetect=" (guessed: $MOZILLA_VERSION)"; MOZILLA_VERSION="$withval"]) + +AC_MSG_RESULT($MOZILLA_VERSION$autodetect) + +case "$MOZILLA_VERSION" in + 1.3) MOZILLA_SNAPSHOT=6 ;; + "") MOZILLA_SNAPSHOT=7 ;; + 1.4a) MOZILLA_SNAPSHOT=7 ;; + 1.4b) MOZILLA_SNAPSHOT=7 ;; +trunk) MOZILLA_SNAPSHOT=7 ;; + *) AC_ERROR([ +***************************************************************************** +Epiphany can be built using mozilla 1.3, 1.4a, 1.4b or trunk snapshot, but the +version available is $MOZILLA_VERSION. + +When using mozilla trunk snapshot successful build is not guaranteed due to +the frequently changing state of the mozilla interfaces and the limited +resources of the galeon team to support non-release mozilla snapshots. +*****************************************************************************]) +esac + dnl ******************************* dnl Internationalization dnl ******************************* |