[libgda] configure: m4 macros: Use AC_LANG_SOURCE to avoid warnings.



commit cd162318c2f781c7a8ebd232f636bf1174ac9010
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Jul 2 15:24:57 2011 +0200

    configure: m4 macros: Use AC_LANG_SOURCE to avoid warnings.
    
    Source code should now be surrounded by an AC_LANG_SOURCE() call.
    This avoids several annoying warnings such as this:
    AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body

 m4/bdb.m4        |    4 ++--
 m4/java.m4       |   12 ++++++------
 m4/ldap.m4       |    4 ++--
 m4/mdbtools.m4   |   12 ++++++------
 m4/mysql.m4      |    4 ++--
 m4/oracle.m4     |    4 ++--
 m4/postgresql.m4 |    4 ++--
 7 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/m4/bdb.m4 b/m4/bdb.m4
index f481dad..78b228d 100644
--- a/m4/bdb.m4
+++ b/m4/bdb.m4
@@ -151,13 +151,13 @@ m4_define([_BDB_CHECK_INTERNAL],
 	                CFLAGS="$CFLAGS -I$d/include"
   	                save_LIBS="$LIBS"
 	                LIBS="$LIBS -L$d/$bdb_loclibdir $db_lib"
-   	                AC_LINK_IFELSE([[
+   	                AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <${db_hdr}>
 int main() {
     printf("%p", db_create);
     return 0;
 }
-]],
+])],
 	                             bdbdir=$d)
 	                CFLAGS="$save_CFLAGS"
   	                LIBS="$save_LIBS"
diff --git a/m4/java.m4 b/m4/java.m4
index 0372910..c1f5e66 100644
--- a/m4/java.m4
+++ b/m4/java.m4
@@ -277,12 +277,12 @@ m4_define([_JAVA_CHECK_INTERNAL],
 	CFLAGS="${CFLAGS} ${JAVA_CFLAGS} ${JAVA_CFLAGS}"
 
 	AC_MSG_CHECKING([whether JNI programs can be compiled])
-	AC_LINK_IFELSE([
+	AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <jni.h>
 int main(void) {
     jobject o;
     return 0;
-}],
+}])],
 	               [AC_MSG_RESULT(yes)],
 	      	       [AC_MSG_ERROR([Cannot compile a simple JNI program. See config.log for details.])])
 
@@ -290,21 +290,21 @@ int main(void) {
 	export LD_LIBRARY_PATH
 
 	AC_MSG_CHECKING([whether JNI programs can be run])
-	AC_RUN_IFELSE([
+	AC_RUN_IFELSE([AC_LANG_SOURCE([
 #include <jni.h>
 int main(void) {
     jobject o;
     return 0;
-}],
+}])],
 	              [AC_MSG_RESULT(yes)],
 	      	      [AC_MSG_ERROR([Cannot run a simple JNI program - probably your jvm library is in non-standard location or JVM is unsupported. See config.log for details.])])
 
 	AC_MSG_CHECKING([JNI data types])
-	AC_RUN_IFELSE([AC_LANG_SOURCE([[
+	AC_RUN_IFELSE([AC_LANG_SOURCE([
 #include <jni.h>
 int main(void) {
   return (sizeof(int)==sizeof(jint) && sizeof(long)==sizeof(long) && sizeof(jbyte)==sizeof(char) && sizeof(jshort)==sizeof(short) && sizeof(jfloat)==sizeof(float) && sizeof(jdouble)==sizeof(double))?0:1;
-}]])],
+}])],
 	              [AC_MSG_RESULT([ok])],
 		      [AC_MSG_ERROR([One or more JNI types differ from the corresponding native type. You may need to use non-standard compiler flags or a different compiler in order to fix this.])],[])
 
diff --git a/m4/ldap.m4 b/m4/ldap.m4
index 09da463..0325331 100644
--- a/m4/ldap.m4
+++ b/m4/ldap.m4
@@ -120,7 +120,7 @@ m4_define([_LDAP_CHECK_INTERNAL],
 	        CFLAGS="$CFLAGS -I$d/include"
   	        save_LIBS="$LIBS"
 	        LIBS="$LIBS -L$d/$ldap_loclibdir -lldap -llber"
-   	        AC_LINK_IFELSE([[
+   	        AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <ldap.h>
 #include <lber.h>
 #include <ldap_schema.h>
@@ -129,7 +129,7 @@ int main() {
     printf("%p", ber_free);
     return 0;
 }
-]],
+])],
 	                     ldapdir=$d)
 	        CFLAGS="$save_CFLAGS"
   	        LIBS="$save_LIBS"
diff --git a/m4/mdbtools.m4 b/m4/mdbtools.m4
index 5b4a5b5..cef6562 100644
--- a/m4/mdbtools.m4
+++ b/m4/mdbtools.m4
@@ -142,13 +142,13 @@ m4_define([_MDBTOOLS_CHECK_INTERNAL],
 	            CFLAGS="$CFLAGS -I$d/include $mdb_glib_cflags"
   	            save_LIBS="$LIBS"
 	            LIBS="$LIBS -L$d/$mdb_loclibdir -lmdb $mdb_glib_libs"
-   	            AC_LINK_IFELSE([[
+   	            AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <mdbtools.h>
 int main() {
     printf("%p", mdb_open);
     return 0;
 }
-]],
+])],
 	                         mdbdir=$d)
 	            CFLAGS="$save_CFLAGS"
   	            LIBS="$save_LIBS"
@@ -177,14 +177,14 @@ int main() {
 	    CFLAGS="$CFLAGS $MDB_CFLAGS $mdb_glib_cflags"
 
 	    AC_MSG_CHECKING([whether mdb_open takes one or two arguments])
-   	    AC_COMPILE_IFELSE([[
+   	    AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 #include <mdbtools.h>
 int main() {
     const char *filename;
     mdb_open(filename, MDB_WRITABLE);
     return 0;
 }
-]],
+])],
 	                     mdb_open_args=two, mdb_open_args=one)
 
 	    AC_MSG_RESULT($mdb_open_args)
@@ -193,7 +193,7 @@ int main() {
 	    fi
 
 	    AC_MSG_CHECKING([whether mdb_bind_column takes three or four arguments])
-	    AC_COMPILE_IFELSE([[
+	    AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 #include <mdbtools.h>
 int main() {
 	MdbHandle *mdb;
@@ -203,7 +203,7 @@ int main() {
 	mdb_bind_column(mdb, c, bound_data[c], &len);
 	return 0;
 }
-]],
+])],
 	                      mdb_bind_column_args=four, mdb_bind_column_args=three)
 
 	    AC_MSG_RESULT($mdb_bind_column_args)
diff --git a/m4/mysql.m4 b/m4/mysql.m4
index a0a505b..0b8e017 100644
--- a/m4/mysql.m4
+++ b/m4/mysql.m4
@@ -130,14 +130,14 @@ m4_define([_MYSQL_CHECK_INTERNAL],
 	                CFLAGS="$CFLAGS -I$d/include"
   	                save_LIBS="$LIBS"
 	                LIBS="$LIBS -L$d/$mysql_loclibdir -lmysql"
-   	                AC_LINK_IFELSE([[
+   	                AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <winsock.h>
 #include <mysql.h>
 int main() {
     printf("%p", mysql_real_connect);
     return 0;
 }
-]],
+])],
 	                             mysql_found=yes)
 	                CFLAGS="$save_CFLAGS"
   	                LIBS="$save_LIBS"
diff --git a/m4/oracle.m4 b/m4/oracle.m4
index e46662f..25461c2 100644
--- a/m4/oracle.m4
+++ b/m4/oracle.m4
@@ -129,13 +129,13 @@ m4_define([_ORACLE_CHECK_INTERNAL],
 	            CFLAGS="$CFLAGS -I$d/include -I$d/include/oracle/client -I$d/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I$d/network/public"
 	            LIBS="$LIBS -L$d/$oracle_loclibdir -lm -ldl -lclntsh"
 		fi
-   	        AC_LINK_IFELSE([[
+   	        AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <oci.h>
 int main() {
     printf("%p", OCIInitialize);
     return 0;
 }
-]],
+])],
 	                     oracledir=$d)
 	        CFLAGS="$save_CFLAGS"
   	        LIBS="$save_LIBS"
diff --git a/m4/postgresql.m4 b/m4/postgresql.m4
index 9492122..252d905 100644
--- a/m4/postgresql.m4
+++ b/m4/postgresql.m4
@@ -131,13 +131,13 @@ m4_define([_POSTGRES_CHECK_INTERNAL],
 	                CFLAGS="$CFLAGS -I$d/include"
   	                save_LIBS="$LIBS"
 	                LIBS="$LIBS -L$d/$pg_loclibdir -lpq"
-   	                AC_LINK_IFELSE([[
+   	                AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <libpq-fe.h>
 int main() {
     printf("%p", PQconnectdb);
     return 0;
 }
-]],
+])],
 	                             postgres_found=yes)
 	                CFLAGS="$save_CFLAGS"
   	                LIBS="$save_LIBS"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]