From ed757c6c80b99571715ebd8ce49c6f5f934cbf59 Mon Sep 17 00:00:00 2001 From: Ørjan Malde Date: Apr 08 2024 22:11:35 +0000 Subject: groups.d/241.native_packages_inet.group: curl: bump to v8.7.1 Signed-off-by: Ørjan Malde --- diff --git a/groups.d/241.native_packages_inet.group b/groups.d/241.native_packages_inet.group index 8d2b7e7..a3d4ecb 100644 --- a/groups.d/241.native_packages_inet.group +++ b/groups.d/241.native_packages_inet.group @@ -29,10 +29,11 @@ proxytunnel rsync socat thttpd w3m weechat wget wget2 whois"; : ${PKG_CA_CERTIFICATES_ENV_VARS_EXTRA:="HOST_CC=gcc"}; : ${PKG_CA_CERTIFICATES_VARS_FILE:="vars/ca_certificates.vars"}; : ${PKG_CURL_DEPENDS:="gnutls libpsl libidn2 libz zstd"}; -: ${PKG_CURL_SHA256SUM:=fd17432cf28714a4cf39d89e26b8ace0d8901199fe5d01d75eb0ae3bbfcc731f}; -: ${PKG_CURL_VERSION:=7.88.0}; +: ${PKG_CURL_SHA256SUM:=6fea2aac6a4610fbd0400afb0bcddbe7258a64c63f1f68e5855ebc0c659710cd}; +: ${PKG_CURL_VERSION:=8.7.1}; : ${PKG_CURL_URL:=https://curl.haxx.se/download/curl-${PKG_CURL_VERSION}.tar.xz}; -: ${PKG_CURL_CONFIGURE_ARGS_EXTRA:="--disable-symbol-hiding --enable-shared --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt --with-ca-path=/etc/ssl/certs --with-gnutls --with-libssh --without-openssl --without-librtmp --without-hyper --without-brotli --without-gssapi --disable-socketpair --disable-unix-sockets"}; +: ${PKG_CURL_CONFIGURE_ARGS_EXTRA:="--disable-symbol-hiding --enable-shared --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt --with-ca-path=/etc/ssl/certs --with-gnutls --with-libssh --without-openssl --without-librtmp --without-hyper --without-brotli --without-gssapi --disable-socketpair --disable-unix-sockets --with-libidn2"}; +: ${PKG_CURL_FORCE_AUTORECONF:=1}; : ${PKG_CVS_SHA256SUM:=4734971a59471744e4ad8665c1dca54cb3ebf9fc66ce9c2dff3d04670d3f7312}; : ${PKG_CVS_VERSION:=1.12.13}; : ${PKG_CVS_URL:=https://deb.debian.org/debian/pool/main/c/cvs/cvs_${PKG_CVS_VERSION}+real.orig.tar.gz}; diff --git a/patches/curl-7.88.0.local.patch b/patches/curl-7.88.0.local.patch deleted file mode 100644 index fd02afb..0000000 --- a/patches/curl-7.88.0.local.patch +++ /dev/null @@ -1,3220 +0,0 @@ -diff -ru curl-7.88.0.orig/configure curl-7.88.0/configure ---- curl-7.88.0.orig/configure 2023-02-15 22:15:26.342600801 +0100 -+++ curl-7.88.0/configure 2023-02-15 22:24:01.526208156 +0100 -@@ -15876,6 +15876,16 @@ - version_type=windows - ;; - -+midipix) -+ dynamic_linker='ld' -+ library_names_spec='$libname.lib.a' -+ need_lib_prefix=no -+ need_version=no -+ shlibpath_overrides_runpath=yes -+ shrext_cmds=.so -+ version_type=windows -+ ;; -+ - netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no -@@ -17446,3199 +17456,6 @@ - flags_prefer_cppflags="no" - # - -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 --printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __DECC --CURL_DEF_TOKEN __DECC --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___DECC=no -- -- else -- curl_cv_have_def___DECC=yes -- curl_cv_def___DECC=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __DECC_VER --CURL_DEF_TOKEN __DECC_VER --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___DECC_VER=no -- -- else -- curl_cv_have_def___DECC_VER=yes -- curl_cv_def___DECC_VER=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___DECC" = "yes" && -- test "$curl_cv_have_def___DECC_VER" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="DEC_C" -- flags_dbg_yes="-g2" -- flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" -- flags_opt_yes="-O1" -- flags_opt_off="-O0" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 --printf %s "checking if compiler is HP-UX C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __HP_cc --CURL_DEF_TOKEN __HP_cc --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___HP_cc=no -- -- else -- curl_cv_have_def___HP_cc=yes -- curl_cv_def___HP_cc=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___HP_cc" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="HP_UX_C" -- flags_dbg_yes="-g" -- flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" -- flags_opt_yes="+O2" -- flags_opt_off="+O0" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 --printf %s "checking if compiler is IBM C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __IBMC__ --CURL_DEF_TOKEN __IBMC__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___IBMC__=no -- -- else -- curl_cv_have_def___IBMC__=yes -- curl_cv_def___IBMC__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___IBMC__" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="IBM_C" -- flags_dbg_yes="-g" -- flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" -- flags_opt_all="$flags_opt_all -qnooptimize" -- flags_opt_all="$flags_opt_all -qoptimize=0" -- flags_opt_all="$flags_opt_all -qoptimize=1" -- flags_opt_all="$flags_opt_all -qoptimize=2" -- flags_opt_all="$flags_opt_all -qoptimize=3" -- flags_opt_all="$flags_opt_all -qoptimize=4" -- flags_opt_all="$flags_opt_all -qoptimize=5" -- flags_opt_yes="-O2" -- flags_opt_off="-qnooptimize" -- flags_prefer_cppflags="yes" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 --printf %s "checking if compiler is Intel C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __INTEL_COMPILER --CURL_DEF_TOKEN __INTEL_COMPILER --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___INTEL_COMPILER=no -- -- else -- curl_cv_have_def___INTEL_COMPILER=yes -- curl_cv_def___INTEL_COMPILER=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_num="$curl_cv_def___INTEL_COMPILER" -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __unix__ --CURL_DEF_TOKEN __unix__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = ""; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___unix__=no -- -- else -- curl_cv_have_def___unix__=yes -- curl_cv_def___unix__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___unix__" = "yes"; then -- compiler_id="INTEL_UNIX_C" -- flags_dbg_yes="-g" -- flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" -- flags_opt_yes="-O2" -- flags_opt_off="-O0" -- else -- compiler_id="INTEL_WINDOWS_C" -- flags_dbg_yes="/Zi /Oy-" -- flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" -- flags_opt_yes="/O2" -- flags_opt_off="/Od" -- fi -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 --printf %s "checking if compiler is clang... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __clang__ --CURL_DEF_TOKEN __clang__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___clang__=no -- -- else -- curl_cv_have_def___clang__=yes -- curl_cv_def___clang__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___clang__" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5 --printf %s "checking if compiler is xlclang... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __ibmxl__ --CURL_DEF_TOKEN __ibmxl__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___ibmxl__=no -- -- else -- curl_cv_have_def___ibmxl__=yes -- curl_cv_def___ibmxl__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___ibmxl__" = "yes" ; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="XLCLANG" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- compiler_id="CLANG" -- fi -- fullclangver=`$CC -v 2>&1 | grep version` -- clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'` -- if test -z "$clangver"; then -- if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then -- clangver="3.7" -- else -- clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'` -- fi -- fi -- clangvhi=`echo $clangver | cut -d . -f1` -- clangvlo=`echo $clangver | cut -d . -f2` -- compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` -- flags_dbg_yes="-g" -- flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" -- flags_opt_yes="-O2" -- flags_opt_off="-O0" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 --printf %s "checking if compiler is GNU C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __GNUC__ --CURL_DEF_TOKEN __GNUC__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___GNUC__=no -- -- else -- curl_cv_have_def___GNUC__=yes -- curl_cv_def___GNUC__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___GNUC__" = "yes" && -- test "$compiler_id" = "unknown"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="GNU_C" -- gccver=`$CC -dumpversion` -- gccvhi=`echo $gccver | cut -d . -f1` -- gccvlo=`echo $gccver | cut -d . -f2` -- compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` -- flags_dbg_yes="-g" -- flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast" -- flags_opt_yes="-O2" -- flags_opt_off="-O0" -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef _WIN32 --CURL_DEF_TOKEN _WIN32 --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def__WIN32=no -- -- else -- curl_cv_have_def__WIN32=yes -- curl_cv_def__WIN32=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5 --printf %s "checking if compiler is LCC... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __LCC__ --CURL_DEF_TOKEN __LCC__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___LCC__=no -- -- else -- curl_cv_have_def___LCC__=yes -- curl_cv_def___LCC__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___LCC__" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="LCC" -- flags_dbg_yes="-g" -- flags_opt_all="" -- flags_opt_yes="" -- flags_opt_off="" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 --printf %s "checking if compiler is SGI MIPSpro C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __GNUC__ --CURL_DEF_TOKEN __GNUC__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___GNUC__=no -- -- else -- curl_cv_have_def___GNUC__=yes -- curl_cv_def___GNUC__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef _COMPILER_VERSION --CURL_DEF_TOKEN _COMPILER_VERSION --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def__COMPILER_VERSION=no -- -- else -- curl_cv_have_def__COMPILER_VERSION=yes -- curl_cv_def__COMPILER_VERSION=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef _SGI_COMPILER_VERSION --CURL_DEF_TOKEN _SGI_COMPILER_VERSION --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def__SGI_COMPILER_VERSION=no -- -- else -- curl_cv_have_def__SGI_COMPILER_VERSION=yes -- curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___GNUC__" = "no" && -- (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || -- test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="SGI_MIPSPRO_C" -- flags_dbg_yes="-g" -- flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" -- flags_opt_yes="-O2" -- flags_opt_off="-O0" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 --printf %s "checking if compiler is SGI MIPS C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __GNUC__ --CURL_DEF_TOKEN __GNUC__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___GNUC__=no -- -- else -- curl_cv_have_def___GNUC__=yes -- curl_cv_def___GNUC__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __sgi --CURL_DEF_TOKEN __sgi --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___sgi=no -- -- else -- curl_cv_have_def___sgi=yes -- curl_cv_def___sgi=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___GNUC__" = "no" && -- test "$curl_cv_have_def___sgi" = "yes" && -- test "$compiler_id" = "unknown"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="SGI_MIPS_C" -- flags_dbg_yes="-g" -- flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" -- flags_opt_yes="-O2" -- flags_opt_off="-O0" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 --printf %s "checking if compiler is SunPro C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __SUNPRO_C --CURL_DEF_TOKEN __SUNPRO_C --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___SUNPRO_C=no -- -- else -- curl_cv_have_def___SUNPRO_C=yes -- curl_cv_def___SUNPRO_C=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="SUNPRO_C" -- flags_dbg_yes="-g" -- flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" -- flags_opt_yes="-xO2" -- flags_opt_off="" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 --printf %s "checking if compiler is Tiny C... " >&6; } -- -- OLDCPPFLAGS=$CPPFLAGS -- # CPPPFLAG comes from CURL_CPP_P -- CPPFLAGS="$CPPFLAGS $CPPPFLAG" -- if test -z "$SED"; then -- as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 -- fi -- if test -z "$GREP"; then -- as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 -- fi -- -- tmp_exp="" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --#ifdef __TINYC__ --CURL_DEF_TOKEN __TINYC__ --#endif -- -- --_ACEOF --if ac_fn_c_try_cpp "$LINENO" --then : -- -- tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ -- "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ -- "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ -- "$SED" 's/["][ ]*["]//g' 2>/dev/null` -- if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then -- tmp_exp="" -- fi -- --fi --rm -f conftest.err conftest.i conftest.$ac_ext -- if test -z "$tmp_exp"; then -- curl_cv_have_def___TINYC__=no -- -- else -- curl_cv_have_def___TINYC__=yes -- curl_cv_def___TINYC__=$tmp_exp -- -- fi -- CPPFLAGS=$OLDCPPFLAGS -- -- if test "$curl_cv_have_def___TINYC__" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- compiler_id="TINY_C" -- flags_dbg_yes="-g" -- flags_opt_all="" -- flags_opt_yes="" -- flags_opt_off="" -- else -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- fi -- -- # -- if test "$compiler_id" = "unknown"; then -- cat <<_EOF 1>&2 --*** --*** Warning: This configure script does not have information about the --*** compiler you are using, relative to the flags required to enable or --*** disable generation of debug info, optimization options or warnings. --*** --*** Whatever settings are present in CFLAGS will be used for this run. --*** --*** If you wish to help the curl project to better support your compiler --*** you can report this and the required info on the libcurl development --*** mailing list: https://lists.haxx.selistinfo/curl-library/ --*** --_EOF -- fi -- -- --squeeze() { -- _sqz_result="" -- eval _sqz_input=\$$1 -- for _sqz_token in $_sqz_input; do -- if test -z "$_sqz_result"; then -- _sqz_result="$_sqz_token" -- else -- _sqz_result="$_sqz_result $_sqz_token" -- fi -- done -- eval $1=\$_sqz_result -- return 0 --} -- -- -- # -- if test "$compiler_id" != "unknown"; then -- # -- tmp_save_CPPFLAGS="$CPPFLAGS" -- tmp_save_CFLAGS="$CFLAGS" -- tmp_CPPFLAGS="" -- tmp_CFLAGS="" -- # -- case "$compiler_id" in -- # -- CLANG) -- # -- tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" -- tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion" -- ;; -- # -- DEC_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS -std1" -- tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" -- tmp_CFLAGS="$tmp_CFLAGS -warnprotos" -- tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" -- ;; -- # -- GNU_C) -- # -- if test "$compiler_num" -ge "295"; then -- tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" -- fi -- ;; -- # -- HP_UX_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS -z" -- tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" -- ;; -- # -- IBM_C) -- # -- tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" -- ;; -- # -- INTEL_UNIX_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259" -- ;; -- # -- INTEL_WINDOWS_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS" -- ;; -- # -- LCC) -- # -- tmp_CFLAGS="$tmp_CFLAGS -n" -- ;; -- # -- SGI_MIPS_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS" -- ;; -- # -- SGI_MIPSPRO_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS" -- ;; -- # -- SUNPRO_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS" -- ;; -- # -- TINY_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS" -- ;; -- # -- esac -- # -- squeeze tmp_CPPFLAGS -- squeeze tmp_CFLAGS -- # -- if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 --printf %s "checking if compiler accepts some basic options... " >&6; } -- CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" -- CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" -- squeeze CPPFLAGS -- squeeze CFLAGS -- -- tmp_compiler_works="unknown" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- -- --int main (void) --{ -- -- int i = 1; -- return i; -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_compile "$LINENO" --then : -- -- tmp_compiler_works="yes" -- --else $as_nop -- -- tmp_compiler_works="no" -- echo " " >&6 -- sed 's/^/cc-fail: /' conftest.err >&6 -- echo " " >&6 -- --fi --rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -- if test "$tmp_compiler_works" = "yes"; then -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- -- --int main (void) --{ -- -- int i = 1; -- return i; -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_link "$LINENO" --then : -- -- tmp_compiler_works="yes" -- --else $as_nop -- -- tmp_compiler_works="no" -- echo " " >&6 -- sed 's/^/link-fail: /' conftest.err >&6 -- echo " " >&6 -- --fi --rm -f core conftest.err conftest.$ac_objext conftest.beam \ -- conftest$ac_exeext conftest.$ac_ext -- fi -- if test "x$cross_compiling" != "xyes" && -- test "$tmp_compiler_works" = "yes"; then -- -- case $host_os in -- darwin*) -- if test "$cross_compiling" = yes --then : -- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 --printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} --as_fn_error $? "cannot run test program while cross compiling --See \`config.log' for more details" "$LINENO" 5; } --else $as_nop -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --# ifdef __STDC__ --# include --# endif -- --int main (void) --{ -- -- int i = 0; -- exit(i); -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_run "$LINENO" --then : -- tmp_compiler_works="yes" -- --else $as_nop -- tmp_compiler_works="no" -- echo " " >&6 -- echo "run-fail: test program exited with status $ac_status" >&6 -- echo " " >&6 -- --fi --rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -- conftest.$ac_objext conftest.beam conftest.$ac_ext --fi -- -- ;; -- *) -- old=$LD_LIBRARY_PATH -- LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old -- export LD_LIBRARY_PATH -- if test "$cross_compiling" = yes --then : -- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 --printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} --as_fn_error $? "cannot run test program while cross compiling --See \`config.log' for more details" "$LINENO" 5; } --else $as_nop -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --# ifdef __STDC__ --# include --# endif -- --int main (void) --{ -- -- int i = 0; -- exit(i); -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_run "$LINENO" --then : -- tmp_compiler_works="yes" -- --else $as_nop -- tmp_compiler_works="no" -- echo " " >&6 -- echo "run-fail: test program exited with status $ac_status" >&6 -- echo " " >&6 -- --fi --rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -- conftest.$ac_objext conftest.beam conftest.$ac_ext --fi -- -- LD_LIBRARY_PATH=$old # restore -- ;; -- esac -- -- fi -- if test "$tmp_compiler_works" = "yes"; then -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 --printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} -- -- else -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 --printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} -- CPPFLAGS="$tmp_save_CPPFLAGS" -- CFLAGS="$tmp_save_CFLAGS" -- -- fi -- -- fi -- # -- fi -- -- -- # -- if test "$compiler_id" != "unknown"; then -- # -- tmp_save_CFLAGS="$CFLAGS" -- tmp_save_CPPFLAGS="$CPPFLAGS" -- # -- tmp_options="" -- tmp_CFLAGS="$CFLAGS" -- tmp_CPPFLAGS="$CPPFLAGS" -- # -- if test "$want_debug" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 --printf %s "checking if compiler accepts debug enabling options... " >&6; } -- tmp_options="$flags_dbg_yes" -- fi -- # -- if test "$flags_prefer_cppflags" = "yes"; then -- CPPFLAGS="$tmp_CPPFLAGS $tmp_options" -- CFLAGS="$tmp_CFLAGS" -- else -- CPPFLAGS="$tmp_CPPFLAGS" -- CFLAGS="$tmp_CFLAGS $tmp_options" -- fi -- squeeze CPPFLAGS -- squeeze CFLAGS -- fi -- -- -- # -- if test "$compiler_id" != "unknown"; then -- # -- tmp_save_CFLAGS="$CFLAGS" -- tmp_save_CPPFLAGS="$CPPFLAGS" -- # -- tmp_options="" -- tmp_CFLAGS="$CFLAGS" -- tmp_CPPFLAGS="$CPPFLAGS" -- honor_optimize_option="yes" -- # -- # -- if test "$want_optimize" = "assume_no" || -- test "$want_optimize" = "assume_yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 --printf %s "checking if compiler optimizer assumed setting might be used... " >&6; } -- -- -- ac_var_match_word="no" -- for word1 in $tmp_CFLAGS; do -- for word2 in $flags_opt_all; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "yes"; then -- -- honor_optimize_option="no" -- -- -- fi -- -- -- -- ac_var_match_word="no" -- for word1 in $tmp_CPPFLAGS; do -- for word2 in $flags_opt_all; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "yes"; then -- -- honor_optimize_option="no" -- -- -- fi -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 --printf "%s\n" "$honor_optimize_option" >&6; } -- if test "$honor_optimize_option" = "yes"; then -- if test "$want_optimize" = "assume_yes"; then -- want_optimize="yes" -- fi -- if test "$want_optimize" = "assume_no"; then -- want_optimize="no" -- fi -- fi -- fi -- # -- if test "$honor_optimize_option" = "yes"; then -- -- ac_var_stripped="" -- for word1 in $tmp_CFLAGS; do -- ac_var_strip_word="no" -- for word2 in $flags_opt_all; do -- if test "$word1" = "$word2"; then -- ac_var_strip_word="yes" -- fi -- done -- if test "$ac_var_strip_word" = "no"; then -- ac_var_stripped="$ac_var_stripped $word1" -- fi -- done -- tmp_CFLAGS="$ac_var_stripped" -- squeeze tmp_CFLAGS -- -- -- ac_var_stripped="" -- for word1 in $tmp_CPPFLAGS; do -- ac_var_strip_word="no" -- for word2 in $flags_opt_all; do -- if test "$word1" = "$word2"; then -- ac_var_strip_word="yes" -- fi -- done -- if test "$ac_var_strip_word" = "no"; then -- ac_var_stripped="$ac_var_stripped $word1" -- fi -- done -- tmp_CPPFLAGS="$ac_var_stripped" -- squeeze tmp_CPPFLAGS -- -- if test "$want_optimize" = "yes"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 --printf %s "checking if compiler accepts optimizer enabling options... " >&6; } -- tmp_options="$flags_opt_yes" -- fi -- if test "$want_optimize" = "no"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 --printf %s "checking if compiler accepts optimizer disabling options... " >&6; } -- tmp_options="$flags_opt_off" -- fi -- if test "$flags_prefer_cppflags" = "yes"; then -- CPPFLAGS="$tmp_CPPFLAGS $tmp_options" -- CFLAGS="$tmp_CFLAGS" -- else -- CPPFLAGS="$tmp_CPPFLAGS" -- CFLAGS="$tmp_CFLAGS $tmp_options" -- fi -- squeeze CPPFLAGS -- squeeze CFLAGS -- -- tmp_compiler_works="unknown" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- -- --int main (void) --{ -- -- int i = 1; -- return i; -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_compile "$LINENO" --then : -- -- tmp_compiler_works="yes" -- --else $as_nop -- -- tmp_compiler_works="no" -- echo " " >&6 -- sed 's/^/cc-fail: /' conftest.err >&6 -- echo " " >&6 -- --fi --rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -- if test "$tmp_compiler_works" = "yes"; then -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- -- --int main (void) --{ -- -- int i = 1; -- return i; -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_link "$LINENO" --then : -- -- tmp_compiler_works="yes" -- --else $as_nop -- -- tmp_compiler_works="no" -- echo " " >&6 -- sed 's/^/link-fail: /' conftest.err >&6 -- echo " " >&6 -- --fi --rm -f core conftest.err conftest.$ac_objext conftest.beam \ -- conftest$ac_exeext conftest.$ac_ext -- fi -- if test "x$cross_compiling" != "xyes" && -- test "$tmp_compiler_works" = "yes"; then -- -- case $host_os in -- darwin*) -- if test "$cross_compiling" = yes --then : -- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 --printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} --as_fn_error $? "cannot run test program while cross compiling --See \`config.log' for more details" "$LINENO" 5; } --else $as_nop -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --# ifdef __STDC__ --# include --# endif -- --int main (void) --{ -- -- int i = 0; -- exit(i); -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_run "$LINENO" --then : -- tmp_compiler_works="yes" -- --else $as_nop -- tmp_compiler_works="no" -- echo " " >&6 -- echo "run-fail: test program exited with status $ac_status" >&6 -- echo " " >&6 -- --fi --rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -- conftest.$ac_objext conftest.beam conftest.$ac_ext --fi -- -- ;; -- *) -- old=$LD_LIBRARY_PATH -- LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old -- export LD_LIBRARY_PATH -- if test "$cross_compiling" = yes --then : -- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 --printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} --as_fn_error $? "cannot run test program while cross compiling --See \`config.log' for more details" "$LINENO" 5; } --else $as_nop -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --# ifdef __STDC__ --# include --# endif -- --int main (void) --{ -- -- int i = 0; -- exit(i); -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_run "$LINENO" --then : -- tmp_compiler_works="yes" -- --else $as_nop -- tmp_compiler_works="no" -- echo " " >&6 -- echo "run-fail: test program exited with status $ac_status" >&6 -- echo " " >&6 -- --fi --rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -- conftest.$ac_objext conftest.beam conftest.$ac_ext --fi -- -- LD_LIBRARY_PATH=$old # restore -- ;; -- esac -- -- fi -- if test "$tmp_compiler_works" = "yes"; then -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 --printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;} -- -- else -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 --printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} -- CPPFLAGS="$tmp_save_CPPFLAGS" -- CFLAGS="$tmp_save_CFLAGS" -- -- fi -- -- fi -- # -- fi -- -- -- # -- if test "$compiler_id" != "unknown"; then -- # -- tmp_save_CPPFLAGS="$CPPFLAGS" -- tmp_save_CFLAGS="$CFLAGS" -- tmp_CPPFLAGS="" -- tmp_CFLAGS="" -- # -- case "$compiler_id" in -- # -- CLANG) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS -pedantic" -- -- ac_var_added_warnings="" -- for warning in all extra; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in pointer-arith write-strings; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in shadow; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in inline nested-externs; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in missing-declarations; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in missing-prototypes; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" -- -- ac_var_added_warnings="" -- for warning in float-equal; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in no-multichar sign-compare; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in undef; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" -- -- ac_var_added_warnings="" -- for warning in endif-labels strict-prototypes; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in declaration-after-statement; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in cast-align; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" -- -- ac_var_added_warnings="" -- for warning in shorten-64-to-32; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- # -- if test "$compiler_num" -ge "101"; then -- -- ac_var_added_warnings="" -- for warning in unused; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "208"; then -- -- ac_var_added_warnings="" -- for warning in vla; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "209"; then -- -- ac_var_added_warnings="" -- for warning in shift-sign-overflow; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "302"; then -- case $host_os in -- cygwin* | mingw*) -- ;; -- *) -- -- ac_var_added_warnings="" -- for warning in missing-variable-declarations; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- ;; -- esac -- fi -- # -- if test "$compiler_num" -ge "306"; then -- -- ac_var_added_warnings="" -- for warning in double-promotion; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "309"; then -- -- ac_var_added_warnings="" -- for warning in comma; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- # avoid the varargs warning, fixed in 4.0 -- # https://bugs.llvm.org/show_bug.cgi?id=29140 -- if test "$compiler_num" -lt "400"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs" -- fi -- fi -- if test "$compiler_num" -ge "700"; then -- -- ac_var_added_warnings="" -- for warning in assign-enum; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in extra-semi-stmt; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- fi -- ;; -- # -- DEC_C) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" -- fi -- ;; -- # -- GNU_C) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" -- # -- if test "x$cross_compiling" != "xyes" || -- test "$compiler_num" -ge "300"; then -- tmp_CFLAGS="$tmp_CFLAGS -pedantic" -- fi -- # -- -- ac_var_added_warnings="" -- for warning in all; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -W" -- # -- if test "$compiler_num" -ge "104"; then -- -- ac_var_added_warnings="" -- for warning in pointer-arith write-strings; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- if test "x$cross_compiling" != "xyes" || -- test "$compiler_num" -ge "300"; then -- -- ac_var_added_warnings="" -- for warning in unused shadow; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- fi -- # -- if test "$compiler_num" -ge "207"; then -- -- ac_var_added_warnings="" -- for warning in inline nested-externs; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- if test "x$cross_compiling" != "xyes" || -- test "$compiler_num" -ge "300"; then -- -- ac_var_added_warnings="" -- for warning in missing-declarations; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in missing-prototypes; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- fi -- # -- if test "$compiler_num" -ge "295"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" -- -- ac_var_added_warnings="" -- for warning in bad-function-cast; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "296"; then -- -- ac_var_added_warnings="" -- for warning in float-equal; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar" -- -- ac_var_added_warnings="" -- for warning in sign-compare; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in undef; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "297"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" -- fi -- # -- if test "$compiler_num" -ge "300"; then -- tmp_CFLAGS="$tmp_CFLAGS" -- fi -- # -- if test "$compiler_num" -ge "303"; then -- -- ac_var_added_warnings="" -- for warning in endif-labels strict-prototypes; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "304"; then -- -- ac_var_added_warnings="" -- for warning in declaration-after-statement; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in old-style-definition; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "400"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3" -- fi -- # -- if test "$compiler_num" -ge "402"; then -- -- ac_var_added_warnings="" -- for warning in cast-align; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "403"; then -- -- ac_var_added_warnings="" -- for warning in type-limits old-style-declaration; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in missing-parameter-type empty-body; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in clobbered ignored-qualifiers; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in conversion; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion" -- -- ac_var_added_warnings="" -- for warning in vla; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp" -- fi -- # -- if test "$compiler_num" -ge "405"; then -- if test "$curl_cv_have_def__WIN32" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format" -- fi -- fi -- # -- if test "$compiler_num" -ge "406"; then -- -- ac_var_added_warnings="" -- for warning in double-promotion; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "408"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wformat=2" -- fi -- # -- if test "$compiler_num" -ge "500"; then -- tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2" -- fi -- # -- if test "$compiler_num" -ge "600"; then -- -- ac_var_added_warnings="" -- for warning in shift-negative-value; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2" -- -- ac_var_added_warnings="" -- for warning in null-dereference; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks" -- -- ac_var_added_warnings="" -- for warning in duplicated-cond; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in unused-const-variable; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- if test "$compiler_num" -ge "700"; then -- -- ac_var_added_warnings="" -- for warning in duplicated-branches; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in restrict; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in alloc-zero; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2" -- tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2" -- if test "$compiler_num" -lt "1200"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4" -- fi -- fi -- # -- if test "$compiler_num" -ge "1000"; then -- -- ac_var_added_warnings="" -- for warning in arith-conversion; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in enum-conversion; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- # -- fi -- # -- if test "$compiler_num" -ge "300"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" -- else -- if test "x$cross_compiling" = "xyes"; then -- if test "$compiler_num" -ge "104"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" -- fi -- if test "$compiler_num" -ge "207"; then -- tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" -- tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" -- fi -- fi -- fi -- ;; -- # -- HP_UX_C) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS +w1" -- fi -- ;; -- # -- IBM_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS" -- ;; -- # -- INTEL_UNIX_C) -- # -- if test "$want_warnings" = "yes"; then -- if test "$compiler_num" -gt "600"; then -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" -- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" -- fi -- fi -- tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" -- tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" -- tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" -- ;; -- # -- INTEL_WINDOWS_C) -- # -- tmp_CFLAGS="$tmp_CFLAGS" -- ;; -- # -- LCC) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS" -- fi -- ;; -- # -- SGI_MIPS_C) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS -fullwarn" -- fi -- ;; -- # -- SGI_MIPSPRO_C) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS -fullwarn" -- tmp_CFLAGS="$tmp_CFLAGS -woff 1209" -- fi -- ;; -- # -- SUNPRO_C) -- # -- if test "$want_warnings" = "yes"; then -- tmp_CFLAGS="$tmp_CFLAGS -v" -- fi -- ;; -- # -- TINY_C) -- # -- if test "$want_warnings" = "yes"; then -- -- ac_var_added_warnings="" -- for warning in all; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in write-strings; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- -- ac_var_added_warnings="" -- for warning in unsupported; do -- -- ac_var_match_word="no" -- for word1 in $CFLAGS; do -- for word2 in -Wno-$warning -W$warning; do -- if test "$word1" = "$word2"; then -- ac_var_match_word="yes" -- fi -- done -- done -- -- if test "$ac_var_match_word" = "no"; then -- ac_var_added_warnings="$ac_var_added_warnings -W$warning" -- fi -- done -- tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" -- squeeze tmp_CFLAGS -- -- fi -- ;; -- # -- esac -- # -- squeeze tmp_CPPFLAGS -- squeeze tmp_CFLAGS -- # -- if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 --printf %s "checking if compiler accepts strict warning options... " >&6; } -- CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" -- CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" -- squeeze CPPFLAGS -- squeeze CFLAGS -- -- tmp_compiler_works="unknown" -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- -- --int main (void) --{ -- -- int i = 1; -- return i; -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_compile "$LINENO" --then : -- -- tmp_compiler_works="yes" -- --else $as_nop -- -- tmp_compiler_works="no" -- echo " " >&6 -- sed 's/^/cc-fail: /' conftest.err >&6 -- echo " " >&6 -- --fi --rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -- if test "$tmp_compiler_works" = "yes"; then -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- -- --int main (void) --{ -- -- int i = 1; -- return i; -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_link "$LINENO" --then : -- -- tmp_compiler_works="yes" -- --else $as_nop -- -- tmp_compiler_works="no" -- echo " " >&6 -- sed 's/^/link-fail: /' conftest.err >&6 -- echo " " >&6 -- --fi --rm -f core conftest.err conftest.$ac_objext conftest.beam \ -- conftest$ac_exeext conftest.$ac_ext -- fi -- if test "x$cross_compiling" != "xyes" && -- test "$tmp_compiler_works" = "yes"; then -- -- case $host_os in -- darwin*) -- if test "$cross_compiling" = yes --then : -- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 --printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} --as_fn_error $? "cannot run test program while cross compiling --See \`config.log' for more details" "$LINENO" 5; } --else $as_nop -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --# ifdef __STDC__ --# include --# endif -- --int main (void) --{ -- -- int i = 0; -- exit(i); -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_run "$LINENO" --then : -- tmp_compiler_works="yes" -- --else $as_nop -- tmp_compiler_works="no" -- echo " " >&6 -- echo "run-fail: test program exited with status $ac_status" >&6 -- echo " " >&6 -- --fi --rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -- conftest.$ac_objext conftest.beam conftest.$ac_ext --fi -- -- ;; -- *) -- old=$LD_LIBRARY_PATH -- LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old -- export LD_LIBRARY_PATH -- if test "$cross_compiling" = yes --then : -- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 --printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} --as_fn_error $? "cannot run test program while cross compiling --See \`config.log' for more details" "$LINENO" 5; } --else $as_nop -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ -- -- --# ifdef __STDC__ --# include --# endif -- --int main (void) --{ -- -- int i = 0; -- exit(i); -- -- ; -- return 0; --} -- --_ACEOF --if ac_fn_c_try_run "$LINENO" --then : -- tmp_compiler_works="yes" -- --else $as_nop -- tmp_compiler_works="no" -- echo " " >&6 -- echo "run-fail: test program exited with status $ac_status" >&6 -- echo " " >&6 -- --fi --rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -- conftest.$ac_objext conftest.beam conftest.$ac_ext --fi -- -- LD_LIBRARY_PATH=$old # restore -- ;; -- esac -- -- fi -- if test "$tmp_compiler_works" = "yes"; then -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --printf "%s\n" "yes" >&6; } -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 --printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} -- -- else -- -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 --printf "%s\n" "no" >&6; } -- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 --printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} -- CPPFLAGS="$tmp_save_CPPFLAGS" -- CFLAGS="$tmp_save_CFLAGS" -- -- fi -- -- fi -- # -- fi -- -- --if test "$compiler_id" = "INTEL_UNIX_C"; then -- # -- if test "$compiler_num" -ge "1000"; then -- CFLAGS="$CFLAGS -shared-intel" -- elif test "$compiler_num" -ge "900"; then -- CFLAGS="$CFLAGS -i-dynamic" -- fi -- # --fi -- --CURL_CFLAG_EXTRAS="" --if test X"$want_werror" = Xyes; then -- CURL_CFLAG_EXTRAS="-Werror" -- if test "$compiler_id" = "GNU_C"; then -- if test "$compiler_num" -ge "500"; then -- CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors" -- fi -- fi --fi -- -- -- - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 - printf %s "checking if compiler halts on compilation errors... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext diff --git a/patches/curl-7.88.0_pre.local.patch b/patches/curl-7.88.0_pre.local.patch deleted file mode 100644 index 70ccf04..0000000 --- a/patches/curl-7.88.0_pre.local.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -ru curl-7.88.0.orig/curl-config.in curl-7.88.0/curl-config.in ---- curl-7.88.0.orig/curl-config.in 2023-02-13 08:37:04.000000000 +0100 -+++ curl-7.88.0/curl-config.in 2024-01-17 09:49:08.733319314 +0100 -@@ -152,13 +152,13 @@ - if test "X@includedir@" = "X/usr/include"; then - echo "$CPPFLAG_CURL_STATICLIB" - else -- echo "${CPPFLAG_CURL_STATICLIB}-I@includedir@" -+ echo "$CPPFLAG_CURL_STATICLIB" - fi - ;; - - --libs) - if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then -- CURLLIBDIR="-L@libdir@ " -+ CURLLIBDIR="" - else - CURLLIBDIR="" - fi diff --git a/patches/curl-8.7.1.local.patch b/patches/curl-8.7.1.local.patch new file mode 100644 index 0000000..b350520 --- /dev/null +++ b/patches/curl-8.7.1.local.patch @@ -0,0 +1,108 @@ +diff -ru curl-8.7.1.orig/configure curl-8.7.1/configure +--- curl-8.7.1.orig/configure 2024-04-08 23:55:17.997659030 +0200 ++++ curl-8.7.1/configure 2024-04-09 00:03:10.404057041 +0200 +@@ -15627,6 +15627,16 @@ + hardcode_libdir_flag_spec='-L$libdir' + ;; + ++midipix*) ++ version_type=linux # correct to gnu/linux during the next big refactor ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ++ soname_spec='$libname$release$shared_ext$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++ + # This must be glibc/ELF. + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor +@@ -22595,12 +22605,12 @@ + if test "$PKGCONFIG" != "no" ; then + ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`" + if test -n "$ZLIB_LIBS"; then +- LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`" ++ LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-other zlib`" + else +- ZLIB_LIBS="`$PKGCONFIG --libs zlib`" ++ ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`" + fi + LIBS="$ZLIB_LIBS $LIBS" +- CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`" ++ CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-other zlib`" + OPT_ZLIB="" + HAVE_LIBZ="1" + fi +@@ -23187,8 +23197,8 @@ + + if test "$PKGCONFIG" != "no" ; then + LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd` +- LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd` +- CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd` ++ LD_ZSTD=`$PKGCONFIG --libs-only-other libzstd` ++ CPP_ZSTD=`$PKGCONFIG --cflags-only-other libzstd` + version=`$PKGCONFIG --modversion libzstd` + DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'` + fi +@@ -26242,8 +26252,8 @@ + + if test "$PKGCONFIG" != "no" ; then + addlib=`$PKGCONFIG --libs-only-l gnutls` +- addld=`$PKGCONFIG --libs-only-L gnutls` +- addcflags=`$PKGCONFIG --cflags-only-I gnutls` ++ addld=`$PKGCONFIG --libs-only-other gnutls` ++ addcflags=`$PKGCONFIG --cflags-only-other gnutls` + version=`$PKGCONFIG --modversion gnutls` + gtlslib=`echo $addld | $SED -e 's/^-L//'` + else +@@ -27928,8 +27938,8 @@ + + if test "$PKGCONFIG" != "no" ; then + LIB_PSL=`$PKGCONFIG --libs-only-l libpsl` +- LD_PSL=`$PKGCONFIG --libs-only-L libpsl` +- CPP_PSL=`$PKGCONFIG --cflags-only-I libpsl` ++ LD_PSL=`$PKGCONFIG --libs-only-other libpsl` ++ CPP_PSL=`$PKGCONFIG --cflags-only-other libpsl` + else + LIB_PSL="-lpsl" + fi +@@ -28560,8 +28570,8 @@ + + if test "$PKGCONFIG" != "no" ; then + LIB_SSH=`$PKGCONFIG --libs-only-l libssh` +- LD_SSH=`$PKGCONFIG --libs-only-L libssh` +- CPP_SSH=`$PKGCONFIG --cflags-only-I libssh` ++ LD_SSH=`$PKGCONFIG --libs-only-other libssh` ++ CPP_SSH=`$PKGCONFIG --cflags-only-other libssh` + version=`$PKGCONFIG --modversion libssh` + DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'` + fi +@@ -29395,13 +29405,13 @@ + PKG_CONFIG_LIBDIR="$IDN_PCDIR" + export PKG_CONFIG_LIBDIR + fi +- $PKGCONFIG --libs-only-L libidn2 2>/dev/null` ++ $PKGCONFIG --libs-only-other libidn2 2>/dev/null` + IDN_CPPFLAGS=` + if test -n "$IDN_PCDIR"; then + PKG_CONFIG_LIBDIR="$IDN_PCDIR" + export PKG_CONFIG_LIBDIR + fi +- $PKGCONFIG --cflags-only-I libidn2 2>/dev/null` ++ $PKGCONFIG --cflags-only-other libidn2 2>/dev/null` + IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'` + else + IDN_LIBS="-lidn2" +@@ -29548,8 +29558,8 @@ + + if test "$PKGCONFIG" != "no"; then + IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null` +- IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null` +- IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null` ++ IDN_LDFLAGS=`$PKGCONFIG --libs-only-other libidn2 2>/dev/null` ++ IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-other libidn2 2>/dev/null` + IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'` + else + IDN_LIBS="-lidn2" +Only in curl-8.7.1: configure.orig diff --git a/patches/curl-8.7.1_pre.local.patch b/patches/curl-8.7.1_pre.local.patch new file mode 100644 index 0000000..568e1bd --- /dev/null +++ b/patches/curl-8.7.1_pre.local.patch @@ -0,0 +1,56 @@ +diff -ru curl-8.7.1.orig/curl-config.in curl-8.7.1/curl-config.in +--- curl-8.7.1.orig/curl-config.in 2024-03-06 22:16:03.000000000 +0100 ++++ curl-8.7.1/curl-config.in 2024-04-09 00:07:35.445813553 +0200 +@@ -152,13 +152,13 @@ + if test "X@includedir@" = "X/usr/include"; then + echo "$CPPFLAG_CURL_STATICLIB" + else +- echo "${CPPFLAG_CURL_STATICLIB}-I@includedir@" ++ echo "$CPPFLAG_CURL_STATICLIB" + fi + ;; + + --libs) + if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then +- CURLLIBDIR="-L@libdir@ " ++ CURLLIBDIR="" + else + CURLLIBDIR="" + fi +diff -ru curl-8.7.1.orig/m4/curl-compilers.m4 curl-8.7.1/m4/curl-compilers.m4 +--- curl-8.7.1.orig/m4/curl-compilers.m4 2024-03-25 09:48:59.000000000 +0100 ++++ curl-8.7.1/m4/curl-compilers.m4 2024-04-08 23:23:12.804956865 +0200 +@@ -41,33 +41,6 @@ + flags_opt_off="unknown" + # + flags_prefer_cppflags="no" +- # +- CURL_CHECK_COMPILER_DEC_C +- CURL_CHECK_COMPILER_HPUX_C +- CURL_CHECK_COMPILER_IBM_C +- CURL_CHECK_COMPILER_INTEL_C +- CURL_CHECK_COMPILER_CLANG +- CURL_CHECK_COMPILER_GNU_C +- CURL_CHECK_COMPILER_SGI_MIPSPRO_C +- CURL_CHECK_COMPILER_SGI_MIPS_C +- CURL_CHECK_COMPILER_SUNPRO_C +- CURL_CHECK_COMPILER_TINY_C +- # +- if test "$compiler_id" = "unknown"; then +- cat <<_EOF 1>&2 +-*** +-*** Warning: This configure script does not have information about the +-*** compiler you are using, relative to the flags required to enable or +-*** disable generation of debug info, optimization options or warnings. +-*** +-*** Whatever settings are present in CFLAGS will be used for this run. +-*** +-*** If you wish to help the curl project to better support your compiler +-*** you can report this and the required info on the libcurl development +-*** mailing list: https://lists.haxx.selistinfo/curl-library/ +-*** +-_EOF +- fi + ]) + +