silence autoconf warnings

This commit is contained in:
Michael Jerris 2014-03-03 13:09:52 -05:00
parent 6ef3f7bde7
commit 3dd36873b5
3 changed files with 7 additions and 7 deletions

View File

@ -93,10 +93,10 @@ dnl Check if extra inc is required
CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/$java_inc_dir"
AC_LANG_SAVE
AC_LANG_C
AC_COMPILE_IFELSE(
AC_COMPILE_IFELSE([
AC_LANG_SOURCE(
[[#include <jni.h>]]
),
)],
passed=`expr $passed + 1`,failed=`expr $failed + 1`
)
AC_LANG_RESTORE
@ -110,10 +110,10 @@ dnl Check if extra inc is required
CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/$java_inc_dir -I$JAVA_HOME/$java_inc_dir/$java_extra_inc"
AC_LANG_SAVE
AC_LANG_C
AC_COMPILE_IFELSE(
AC_COMPILE_IFELSE([
AC_LANG_SOURCE(
[[#include <jni.h>]]
),
)],
passed=`expr $passed + 1`,failed=`expr $failed + 1`
)
AC_LANG_RESTORE

View File

@ -137,7 +137,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
_libcurl_save_libs=$LIBS
LIBS="$LIBCURL $LIBS"
AC_LINK_IFELSE(AC_LANG_PROGRAM([#include <curl/curl.h>],[
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curl/curl.h>],[
/* Try and use a few common options to force a failure if we are
missing symbols or can't link. */
int x;
@ -148,7 +148,7 @@ x=CURLOPT_FILE;
x=CURLOPT_ERRORBUFFER;
x=CURLOPT_STDERR;
x=CURLOPT_VERBOSE;
]),libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
CPPFLAGS=$_libcurl_save_cppflags
LIBS=$_libcurl_save_libs

View File

@ -171,7 +171,7 @@ AC_PROG_CXX
#check if the g++ compiler works
AC_CACHE_CHECK([whether the C++ compiler works], [ac_cv_sys_cxx_works], [
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([int main() { }], [ac_cv_sys_cxx_works=yes],
AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { }])], [ac_cv_sys_cxx_works=yes],
[ac_cv_sys_cxx_works=no])
AC_LANG_POP([C++])
])