[vserver] [PATCH] build: fix warnings AC_LANG_SOURCE warnings for automake

From: Natanael Copa <natanael.copa_at_gmail.com>
Date: Wed 29 Feb 2012 - 10:14:35 GMT
Message-Id: <1330510475-15541-1-git-send-email-ncopa@alpinelinux.org>

Clean up various warnings like:
warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body

Explanation of the warning is found here:
http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html#idp291296

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>

---
 m4/ensc_cxxcompiler.m4 |    8 ++++----
 m4/ensc_dietlibc.m4    |   10 +++++-----
 m4/ensc_e2fscheck.m4   |    6 +++---
 m4/ensc_syscall.m4     |    4 ++--
 m4/ensc_syscallnr.m4   |    4 ++--
 5 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/m4/ensc_cxxcompiler.m4 b/m4/ensc_cxxcompiler.m4
index e831b66..25fdd56 100644
--- a/m4/ensc_cxxcompiler.m4
+++ b/m4/ensc_cxxcompiler.m4
@@ -23,9 +23,9 @@ AC_DEFUN([ENSC_CXXCOMPILER],
 	AC_CACHE_CHECK([whether $CXX is a C++ compiler], [ensc_cv_cxx_cxxcompiler],
 	[
 		AC_LANG_PUSH(C++)
-		AC_COMPILE_IFELSE([
+		AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 		    #include <ostream>
-		],
+		])],
 		[ensc_cv_cxx_cxxcompiler=yes],
 		[ensc_cv_cxx_cxxcompiler=no])
 		AC_LANG_POP(C++)
@@ -46,13 +46,13 @@ AC_DEFUN([ENSC_C99COMPILER],
 	AC_CACHE_CHECK([whether $CC is a C99 compiler], [ensc_cv_c99_c99compiler],
 	[
 		AC_LANG_PUSH(C)
-		AC_COMPILE_IFELSE([
+		AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 int main(int argc, char *argv[]) {
   struct { int x; }   a = { .x = argc };
   if (0) return 0;
   int b;
 }
-		],
+		])],
 		[ensc_cv_c99_c99compiler=yes],
 		[ensc_cv_c99_c99compiler=no])
 		AC_LANG_POP(C)
diff --git a/m4/ensc_dietlibc.m4 b/m4/ensc_dietlibc.m4
index 62e6641..4a3688d 100644
--- a/m4/ensc_dietlibc.m4
+++ b/m4/ensc_dietlibc.m4
@@ -28,15 +28,15 @@ AC_DEFUN([_ENSC_DIETLIBC_C99],
 		CC="${DIET:-diet} $CC"
 
 		AC_LANG_PUSH(C)
-		AC_COMPILE_IFELSE([/* */],[
-			AC_COMPILE_IFELSE([
+		AC_COMPILE_IFELSE([AC_LANG_SOURCE([/* */])],[
+			AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 				#include <stdint.h>
 				#include <sys/cdefs.h>
 				#if defined(inline)
 				#  error 'inline' badly defined
 				#endif
 				volatile uint64_t	a;
-			],
+			])],
 			[ensc_cv_c_dietlibc_c99=yes],
 			[ensc_cv_c_dietlibc_c99=no])],
 			[ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'])
@@ -61,10 +61,10 @@ AC_DEFUN([_ENSC_DIETLIBC_SYSCALL],
 		CC="${DIET:-diet} $CC"
 
 		AC_LANG_PUSH(C)
-		AC_COMPILE_IFELSE([
+		AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 			#include <sys/syscall.h>
 			long int syscall(long int __sysno, ...);
-		],
+		])],
 		[ensc_cv_c_dietlibc_syscall=no],
 		[ensc_cv_c_dietlibc_syscall=yes])
 		AC_LANG_POP
diff --git a/m4/ensc_e2fscheck.m4 b/m4/ensc_e2fscheck.m4
index 5ef288c..59aad49 100644
--- a/m4/ensc_e2fscheck.m4
+++ b/m4/ensc_e2fscheck.m4
@@ -19,13 +19,13 @@ AC_DEFUN([ENSC_CHECK_EXT2FS_HEADER],
 [
     AC_LANG_PUSH(C)
     AC_CACHE_CHECK([for ext2fs-headers], [ensc_cv_test_ext2fs_header],[
-	AC_COMPILE_IFELSE(AC_LANG_SOURCE([#include <ext2fs/ext2_fs.h>
+	AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <ext2fs/ext2_fs.h>
 					  int main() { return 0; }]),
 			  [ensc_cv_test_ext2fs_header=e2fsprogs],[
-	AC_COMPILE_IFELSE(AC_LANG_SOURCE([#include <linux/ext2_fs.h>
+	AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <linux/ext2_fs.h>
 					  int main() { return 0; }]),
 			  [ensc_cv_test_ext2fs_header=kernel],[
-	ensc_cv_test_ext2fs_header=none])])])
+	ensc_cv_test_ext2fs_header=none]])]])])
 
     case x"$ensc_cv_test_ext2fs_header" in
 	(xe2fsprogs)
diff --git a/m4/ensc_syscall.m4 b/m4/ensc_syscall.m4
index e8e6173..d4d2c86 100644
--- a/m4/ensc_syscall.m4
+++ b/m4/ensc_syscall.m4
@@ -55,7 +55,7 @@ AC_DEFUN([ENSC_SYSCALL],
 		AC_CACHE_CHECK([which syscall(2) invocation works], [ensc_cv_test_syscall],
 			       [
 				AC_LANG_PUSH(C)
-				AC_COMPILE_IFELSE(AC_LANG_SOURCE([
+				AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 #include "$srcdir/lib/syscall-wrap.h"
 #include <errno.h>
 
@@ -82,7 +82,7 @@ int main() {
 }
 				]),
 				[ensc_cv_test_syscall=fast],
-				[ensc_cv_test_syscall=traditional])
+				[ensc_cv_test_syscall=traditional]])
 
 				AC_LANG_POP
 		])
diff --git a/m4/ensc_syscallnr.m4 b/m4/ensc_syscallnr.m4
index 189c75f..323b4c9 100644
--- a/m4/ensc_syscallnr.m4
+++ b/m4/ensc_syscallnr.m4
@@ -26,7 +26,7 @@ AC_DEFUN([ENSC_SYSCALLNR],
 	AC_CACHE_CHECK([for number of syscall '$1'], [ensc_cv_value_syscall_$1],
 	[
 		AC_LANG_PUSH(C)
-		AC_LANG_CONFTEST([
+		AC_LANG_CONFTEST([AC_LANG_SOURCE([
 #ifdef ENSC_SYSCALL_FALLBACK
 #  include ENSC_SYSCALL_FALLBACK
 #else
@@ -36,7 +36,7 @@ AC_DEFUN([ENSC_SYSCALLNR],
 ensc_syscall_tmp_nr=__NR_$1;
 ensc_syscall_tmp_src=ENSC_MARK
 #endif
-])
+])])
 		ensc_syscall_tmp_nr=
 		ensc_syscall_tmp_src=
 		test x"$ensc_syscall_tmp_nr" != x || \
-- 
1.7.9.2
Received on Wed Feb 29 10:14:54 2012
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 29 Feb 2012 - 10:14:54 GMT by hypermail 2.1.8