/hg/release/icedtea-web-1.4: Make it build with xulrunner 27

jvanek at icedtea.classpath.org jvanek at icedtea.classpath.org
Fri Feb 21 06:48:54 PST 2014


changeset 9eadfcabb570 in /hg/release/icedtea-web-1.4
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.4?cmd=changeset;node=9eadfcabb570
author: Jiri Vanek <jvanek at redhat.com>
date: Fri Feb 21 15:48:43 2014 +0100

	Make it build  with xulrunner 27


diffstat:

 ChangeLog    |   5 +++++
 acinclude.m4 |  21 +++++++++++++++++++++
 configure.ac |   1 +
 3 files changed, 27 insertions(+), 0 deletions(-)

diffs (54 lines):

diff -r 1d4c7bc579d8 -r 9eadfcabb570 ChangeLog
--- a/ChangeLog	Wed Feb 19 15:38:50 2014 +0100
+++ b/ChangeLog	Fri Feb 21 15:48:43 2014 +0100
@@ -1,3 +1,8 @@
+2014-02-21  Jiri Vanek  <jvanek at redhat.com>
+
+	* acinclude.m4:	Added (IT_CHECK_XULRUNNER_API_VERSION_C11) macro
+	* configure.ac: added call of IT_CHECK_XULRUNNER_API_VERSION_C11
+
 2014-02-19  Michal Vyskocil  <mvyskocil at suse.com>
 
 	Put link flags to the end of gcc command line to prevent link failures
diff -r 1d4c7bc579d8 -r 9eadfcabb570 acinclude.m4
--- a/acinclude.m4	Wed Feb 19 15:38:50 2014 +0100
+++ b/acinclude.m4	Fri Feb 21 15:48:43 2014 +0100
@@ -515,6 +515,27 @@
   AC_LANG_POP(C++)
 ])
 
+AC_DEFUN_ONCE([IT_CHECK_XULRUNNER_REQUIRES_C11],
+[
+  AC_MSG_CHECKING([for xulrunner enforcing C++11 standard])
+  AC_LANG_PUSH(C++)
+  CXXFLAGS_BACKUP="$CXXFLAGS"
+  CXXFLAGS="$CXXFLAGS"" ""$MOZILLA_CFLAGS"
+  AC_COMPILE_IFELSE([
+    #include <npapi.h>
+    #include <npruntime.h>]
+    [void setnpptr (NPVariant *result)
+    {VOID_TO_NPVARIANT(*result);}
+    ],[
+    AC_MSG_RESULT(no)
+    CXXFLAGS="$CXXFLAGS_BACKUP"
+    ],[
+    AC_MSG_RESULT(yes)
+    CXXFLAGS="$CXXFLAGS_BACKUP -std=c++11"
+  ])
+  AC_LANG_POP(C++)
+])
+
 AC_DEFUN([IT_CHECK_WITH_GCJ],
 [
   AC_MSG_CHECKING([whether to compile ecj natively])
diff -r 1d4c7bc579d8 -r 9eadfcabb570 configure.ac
--- a/configure.ac	Wed Feb 19 15:38:50 2014 +0100
+++ b/configure.ac	Fri Feb 21 15:48:43 2014 +0100
@@ -83,6 +83,7 @@
 IT_CHECK_FOR_APPLETVIEWERPANEL_HOLE
 IT_CHECK_GLIB_VERSION
 IT_CHECK_XULRUNNER_API_VERSION
+IT_CHECK_XULRUNNER_REQUIRES_C11
 
 #
 # Find optional depedencies


More information about the distro-pkg-dev mailing list