/hg/icedtea-web: Fix Autoconf warning

omajid at icedtea.classpath.org omajid at icedtea.classpath.org
Mon Mar 31 14:44:03 UTC 2014


changeset da9335e11493 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=da9335e11493
author: Omair Majid <omajid at redhat.com>
date: Mon Mar 31 10:38:55 2014 -0400

	Fix Autoconf warning

	2014-03-31  Omair Majid  <omajid at redhat.com>

	    * acinclude.m4
	    (IT_CHECK_XULRUNNER_MIMEDESCRIPTION_CONSTCHAR),
	    (IT_CHECK_XULRUNNER_REQUIRES_C11): Use AC_LANG_SOURCE with code.


diffstat:

 ChangeLog    |   6 ++++++
 acinclude.m4 |  14 +++++++-------
 2 files changed, 13 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r cfe6aca11b12 -r da9335e11493 ChangeLog
--- a/ChangeLog	Mon Mar 31 16:37:23 2014 +0200
+++ b/ChangeLog	Mon Mar 31 10:38:55 2014 -0400
@@ -1,3 +1,9 @@
+2014-03-31  Omair Majid  <omajid at redhat.com>
+
+	* acinclude.m4
+	(IT_CHECK_XULRUNNER_MIMEDESCRIPTION_CONSTCHAR),
+	(IT_CHECK_XULRUNNER_REQUIRES_C11): Use AC_LANG_SOURCE with code.
+
 2014-03-31  Jiri Vanek  <jvanek at redhat.com>
 
 	Refactored check of heap space. Now recognize g/G and is based on regex
diff -r cfe6aca11b12 -r da9335e11493 acinclude.m4
--- a/acinclude.m4	Mon Mar 31 16:37:23 2014 +0200
+++ b/acinclude.m4	Mon Mar 31 10:38:55 2014 -0400
@@ -527,9 +527,9 @@
   CXXFLAGS_BACKUP="$CXXFLAGS"
   CXXFLAGS="$CXXFLAGS"" ""$MOZILLA_CFLAGS"
   AC_COMPILE_IFELSE([
-    #include <npfunctions.h>]
-    [const  char* NP_GetMIMEDescription ()
-    {return (char*) "yap!";}
+    AC_LANG_SOURCE([[#include <npfunctions.h>
+                     const  char* NP_GetMIMEDescription ()
+                       {return (char*) "yap!";}]])
     ],[
     AC_MSG_RESULT(no)
     ],[
@@ -547,10 +547,10 @@
   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_LANG_SOURCE([[#include <npapi.h>
+                     #include <npruntime.h>
+                     void setnpptr (NPVariant *result)
+                       { VOID_TO_NPVARIANT(*result);}]])
     ],[
     AC_MSG_RESULT(no)
     CXXFLAGS="$CXXFLAGS_BACKUP"


More information about the distro-pkg-dev mailing list