diff options
author | Yang Tse <yangsita@gmail.com> | 2010-11-13 04:15:48 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-11-13 04:15:48 +0100 |
commit | 465865c3cb316907ca1c1ea813cf426a2366dce4 (patch) | |
tree | cf3adf945fad49d668b878e79dbaff60108a6432 | |
parent | c539b83138b08a0c764c83a2ad9cd9dbb4e33d11 (diff) |
configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body
-rw-r--r-- | configure.ac | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac index d24090849..a400cad5d 100644 --- a/configure.ac +++ b/configure.ac @@ -955,16 +955,19 @@ dnl Check if the operating system allows programs to write to their own argv[] dnl ********************************************************************** AC_MSG_CHECKING([if argv can be written to]) -AC_CACHE_VAL(curl_cv_writable_argv, [ -AC_RUN_IFELSE([[ +AC_RUN_IFELSE([ + AC_LANG_SOURCE([[ int main(int argc, char ** argv) { - argv[0][0] = ' '; - return (argv[0][0] == ' ')?0:1; + argv[0][0] = ' '; + return (argv[0][0] == ' ')?0:1; } - ]], - curl_cv_writable_argv=yes, - curl_cv_writable_argv=no, - curl_cv_writable_argv=cross) + ]]) +],[ + curl_cv_writable_argv=yes +],[ + curl_cv_writable_argv=no +],[ + curl_cv_writable_argv=cross ]) case $curl_cv_writable_argv in yes) @@ -2278,11 +2281,17 @@ AC_CHECK_TYPE(long long, if test "xyes" = "x$longlong"; then AC_MSG_CHECKING([if numberLL works]) - AC_COMPILE_IFELSE([long long val = 1000LL;], - [AC_DEFINE(HAVE_LL, 1, [if your compiler supports LL])] - AC_MSG_RESULT(yes), - AC_MSG_RESULT(no) - ) + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[ + ]],[[ + long long val = 1000LL; + ]]) + ],[ + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_LL, 1, [if your compiler supports LL]) + ],[ + AC_MSG_RESULT([no]) + ]) fi |