From d141d823d65a01575de5f4d509055e4ed033bc4e Mon Sep 17 00:00:00 2001 From: Tom Barbette <tom.barbette@uclouvain.be> Date: Sat, 27 May 2023 14:32:28 +0200 Subject: [PATCH] SSE/AVX: Add flag On github actions, and only there apparently, even with -march=native we need to explicitely enable the individual flags. --- configure | 10099 +++++++++++++++++++++++++++---------------------- configure.in | 8 + 2 files changed, 5649 insertions(+), 4458 deletions(-) diff --git a/configure b/configure index 67f9561e8..d82cfba3a 100755 --- a/configure +++ b/configure @@ -1,9 +1,10 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for click 2.1. +# Generated by GNU Autoconf 2.71 for click 2.1. # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -14,14 +15,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -31,46 +34,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi +if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -79,13 +82,6 @@ if test "${PATH_SEPARATOR+set}" != set; then fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -94,8 +90,12 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -107,30 +107,10 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -152,20 +132,22 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + as_bourne_compatible="as_nop=: +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else +else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( @@ -185,42 +167,53 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : -else +else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : + if (eval "$as_required") 2>/dev/null +then : as_have_required=yes -else +else $as_nop as_have_required=no fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : -else +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base + as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : break 2 fi fi @@ -228,14 +221,21 @@ fi esac as_found=false done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi +fi - if test "x$CONFIG_SHELL" != x; then : + if test "x$CONFIG_SHELL" != x +then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -253,18 +253,19 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." @@ -291,6 +292,7 @@ as_fn_unset () } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -308,6 +310,14 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -322,7 +332,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -331,7 +341,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -370,12 +380,13 @@ as_fn_executable_p () # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -387,18 +398,27 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -410,9 +430,9 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -439,7 +459,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -483,7 +503,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -497,6 +517,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits exit } + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -510,6 +534,13 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -583,43 +614,40 @@ PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="click-buildtool.in" -ac_header_list= # Factoring default headers for most tests. ac_includes_default="\ -#include <stdio.h> -#ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif -#ifdef HAVE_SYS_STAT_H -# include <sys/stat.h> +#include <stddef.h> +#ifdef HAVE_STDIO_H +# include <stdio.h> #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include <stdlib.h> -# include <stddef.h> -#else -# ifdef HAVE_STDLIB_H -# include <stdlib.h> -# endif #endif #ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include <memory.h> -# endif # include <string.h> #endif -#ifdef HAVE_STRINGS_H -# include <strings.h> -#endif #ifdef HAVE_INTTYPES_H # include <inttypes.h> #endif #ifdef HAVE_STDINT_H # include <stdint.h> #endif +#ifdef HAVE_STRINGS_H +# include <strings.h> +#endif +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif #ifdef HAVE_UNISTD_H # include <unistd.h> #endif" +ac_header_c_list= +ac_header_cxx_list= +ac_func_c_list= ac_subst_vars='LTLIBOBJS provisions clickbuild_clickdir @@ -714,6 +742,8 @@ USE_CTX USE_FLOW POSIX_CLOCK_LIBS HAVE_CXX17 +EGREP +GREP LIBOBJS freebsd_includedir freebsd_srcdir @@ -746,8 +776,6 @@ KERNEL_CC CXXCPP ac_ct_CXX CXXFLAGS -EGREP -GREP CPP DEPDIRFLAG DEPCFLAGS @@ -998,8 +1026,6 @@ do *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -1040,9 +1066,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1066,9 +1092,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1279,9 +1305,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1295,9 +1321,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1341,9 +1367,9 @@ Try \`$0 --help' for more information" *) # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -1359,7 +1385,7 @@ if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1423,7 +1449,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | +printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1738,9 +1764,9 @@ if test "$ac_init_help" = "recursive"; then case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -1768,7 +1794,8 @@ esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -1776,7 +1803,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1786,9 +1813,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF click configure 2.1 -generated by GNU Autoconf 2.69 +generated by GNU Autoconf 2.71 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1805,14 +1832,14 @@ fi ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1820,14 +1847,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1844,26 +1872,28 @@ fi ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -1880,7 +1910,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1888,14 +1918,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1905,62 +1936,20 @@ fi } # ac_fn_c_try_cpp -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1968,14 +1957,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1991,14 +1981,14 @@ fi ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2006,17 +1996,18 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2043,7 +2034,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2051,14 +2042,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2070,8 +2062,8 @@ fi # ac_fn_cxx_try_run LINENO # ------------------------ -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that +# executables *can* be run. ac_fn_cxx_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack @@ -2081,25 +2073,26 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } +then : ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: program exited with status $ac_status" >&5 + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status @@ -2110,112 +2103,61 @@ fi } # ac_fn_cxx_try_run -# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES +# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES # --------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_cxx_check_header_mongrel () +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_cxx_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no +if ac_fn_cxx_try_compile "$LINENO" +then : + eval "$3=yes" +else $as_nop + eval "$3=no" fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_cxx_check_header_mongrel +} # ac_fn_cxx_check_header_compile -# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES -# ----------------------------------------------- +# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR +# ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_cxx_check_decl () +# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. +ac_fn_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +printf %s "checking whether $as_decl_name is declared... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + eval ac_save_FLAGS=\$$6 + as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { #ifndef $as_decl_name #ifdef __cplusplus @@ -2229,19 +2171,22 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + eval $6=\$ac_save_FLAGS + fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_cxx_check_decl +} # ac_fn_check_decl # ac_fn_c_try_link LINENO # ----------------------- @@ -2249,14 +2194,14 @@ $as_echo "$ac_res" >&6; } ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2264,17 +2209,18 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2295,11 +2241,12 @@ fi ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case <limits.h> declares $2. @@ -2307,16 +2254,9 @@ else #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif + which can conflict with char $2 (); below. */ +#include <limits.h> #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2334,24 +2274,25 @@ choke me #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2370,7 +2311,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; @@ -2380,14 +2321,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2397,9 +2339,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_hi=$ac_mid; break -else +else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= @@ -2407,14 +2350,14 @@ else fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; @@ -2424,14 +2367,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; @@ -2441,9 +2385,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_lo=$ac_mid; break -else +else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= @@ -2451,14 +2396,14 @@ else fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop ac_lo= ac_hi= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val @@ -2466,7 +2411,7 @@ while test "x$ac_lo" != "x$ac_hi"; do /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2476,12 +2421,13 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_hi=$ac_mid -else +else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; @@ -2491,12 +2437,12 @@ esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } +static long int longval (void) { return $2; } +static unsigned long int ulongval (void) { return $2; } #include <stdio.h> #include <stdlib.h> int -main () +main (void) { FILE *f = fopen ("conftest.val", "w"); @@ -2524,9 +2470,10 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_run "$LINENO"; then : +if ac_fn_cxx_try_run "$LINENO" +then : echo >>conftest.val; read $3 <conftest.val; ac_retval=0 -else +else $as_nop ac_retval=1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -2546,17 +2493,18 @@ rm -f conftest.val ac_fn_cxx_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof ($2)) return 0; @@ -2564,12 +2512,13 @@ if (sizeof ($2)) return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof (($2))) return 0; @@ -2577,18 +2526,19 @@ if (sizeof (($2))) return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else +else $as_nop eval "$3=yes" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_type @@ -2599,11 +2549,12 @@ $as_echo "$ac_res" >&6; } ac_fn_cxx_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case <limits.h> declares $2. @@ -2611,16 +2562,9 @@ else #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif + which can conflict with char $2 (); below. */ +#include <limits.h> #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2638,28 +2582,72 @@ choke me #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_func +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that +# executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } +then : + ac_retval=0 +else $as_nop + printf "%s\n" "$as_me: program exited with status $ac_status" >&5 + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes @@ -2674,7 +2662,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; @@ -2684,14 +2672,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2701,9 +2690,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid; break -else +else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= @@ -2711,14 +2701,14 @@ else fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; @@ -2728,14 +2718,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; @@ -2745,9 +2736,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=$ac_mid; break -else +else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= @@ -2755,14 +2747,14 @@ else fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop ac_lo= ac_hi= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val @@ -2770,7 +2762,7 @@ while test "x$ac_lo" != "x$ac_hi"; do /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2780,12 +2772,13 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid -else +else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; @@ -2795,12 +2788,12 @@ esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } +static long int longval (void) { return $2; } +static unsigned long int ulongval (void) { return $2; } #include <stdio.h> #include <stdlib.h> int -main () +main (void) { FILE *f = fopen ("conftest.val", "w"); @@ -2828,9 +2821,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : echo >>conftest.val; read $3 <conftest.val; ac_retval=0 -else +else $as_nop ac_retval=1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -2842,150 +2836,37 @@ rm -f conftest.val as_fn_set_status $ac_retval } # ac_fn_c_compute_int +ac_configure_args_raw= +for ac_arg +do + case $ac_arg in + *\'*) + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_configure_args_raw " '$ac_arg'" +done -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; +case $ac_configure_args_raw in + *$as_nl*) + ac_safe_unquote= ;; + *) + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. + ac_unsafe_a="$ac_unsafe_z#~" + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_c_check_header_mongrel +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by click $as_me 2.1, which was +generated by GNU Autoconf 2.71. Invocation command line was -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES -# --------------------------------------------- -# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_c_check_decl () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - as_decl_name=`echo $2|sed 's/ *(.*//'` - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -#ifndef $as_decl_name -#ifdef __cplusplus - (void) $as_decl_use; -#else - (void) $as_decl_name; -#endif -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_decl -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by click $as_me 2.1, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log + $ $0$ac_configure_args_raw + +_ACEOF +exec 5>>config.log { cat <<_ASUNAME ## --------- ## @@ -3015,8 +2896,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS @@ -3051,7 +2936,7 @@ do | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -3086,11 +2971,13 @@ done # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? + # Sanitize IFS. + IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - $as_echo "## ---------------- ## + printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -3101,8 +2988,8 @@ trap 'exit_status=$? case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -3126,7 +3013,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -3134,14 +3021,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## + printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -3149,15 +3036,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - $as_echo "## ----------- ## + printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -3165,8 +3052,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -3180,63 +3067,48 @@ ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -$as_echo "/* confdefs.h */" > confdefs.h +printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac + ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" + +for ac_site_file in $ac_site_files do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + || { { 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 $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi @@ -3246,48 +3118,674 @@ if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi -as_fn_append ac_header_list " sys/types.h" -as_fn_append ac_header_list " unistd.h" -as_fn_append ac_header_list " stdint.h" -as_fn_append ac_header_list " inttypes.h" -as_fn_append ac_header_list " endian.h" -as_fn_append ac_header_list " machine/endian.h" -as_fn_append ac_header_list " byteswap.h" -as_fn_append ac_header_list " strings.h" -as_fn_append ac_header_list " time.h" -as_fn_append ac_header_list " dlfcn.h" -as_fn_append ac_header_list " termio.h" -as_fn_append ac_header_list " netdb.h" -as_fn_append ac_header_list " sys/event.h" -as_fn_append ac_header_list " pwd.h" -as_fn_append ac_header_list " grp.h" -as_fn_append ac_header_list " execinfo.h" -as_fn_append ac_header_list " poll.h" -as_fn_append ac_header_list " sys/mman.h" -as_fn_append ac_header_list " stdlib.h" -as_fn_append ac_header_list " sys/param.h" -as_fn_append ac_header_list " ifaddrs.h" -as_fn_append ac_header_list " linux/if_tun.h" -as_fn_append ac_header_list " linux/if_packet.h" -as_fn_append ac_header_list " net/if_dl.h" -as_fn_append ac_header_list " net/if_tap.h" -as_fn_append ac_header_list " net/if_tun.h" -as_fn_append ac_header_list " net/if_types.h" -as_fn_append ac_header_list " net/bpf.h" -as_fn_append ac_header_list " netpacket/packet.h" +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif + +#include <stddef.h> +#include <stdarg.h> +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not \xHH hex character constants. + These do not provoke an error unfortunately, instead are silently treated + as an "x". The following induces an error, until -std is added to get + proper ANSI mode. Curiously \x00 != x always comes out true, for an + array size at least. It is necessary to write \x00 == 0 to get something + that is true only with -std. */ +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) '\''x'\'' +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), + int, int);' + +# Test code for whether the C compiler supports C89 (body of main). +ac_c_conftest_c89_main=' +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); +' + +# Test code for whether the C compiler supports C99 (global declarations) +ac_c_conftest_c99_globals=' +// Does the compiler advertise C99 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L +# error "Compiler does not advertise C99 conformance" +#endif + +#include <stdbool.h> +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +// dprintf is used instead of fprintf to avoid needing to declare +// FILE and stderr. +#define debug(...) dprintf (2, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + #error "your preprocessor is broken" +#endif +#if BIG_OK +#else + #error "your preprocessor is broken" +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ + int datasize; + double data[]; +}; + +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static bool +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str = ""; + int number = 0; + float fnumber = 0; + + while (*format) + { + switch (*format++) + { + case '\''s'\'': // string + str = va_arg (args_copy, const char *); + break; + case '\''d'\'': // int + number = va_arg (args_copy, int); + break; + case '\''f'\'': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); + + return *str && number && fnumber; +} +' + +# Test code for whether the C compiler supports C99 (body of main). +ac_c_conftest_c99_main=' + // Check bool. + _Bool success = false; + success |= (argc != 0); + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' + +# Test code for whether the C compiler supports C11 (global declarations) +ac_c_conftest_c11_globals=' +// Does the compiler advertise C11 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L +# error "Compiler does not advertise C11 conformance" +#endif + +// Check _Alignas. +char _Alignas (double) aligned_as_double; +char _Alignas (0) no_special_alignment; +extern char aligned_as_int; +char _Alignas (0) _Alignas (int) aligned_as_int; + +// Check _Alignof. +enum +{ + int_alignment = _Alignof (int), + int_array_alignment = _Alignof (int[100]), + char_alignment = _Alignof (char) +}; +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); + +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } + +// Check _Static_assert. +struct test_static_assert +{ + int x; + _Static_assert (sizeof (int) <= sizeof (long int), + "_Static_assert does not work in struct"); + long int y; +}; + +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; + +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; + +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. +struct anonymous +{ + union { + struct { int i; int j; }; + struct { int k; long int l; } w; + }; + int m; +} v1; +' + +# Test code for whether the C compiler supports C11 (body of main). +ac_c_conftest_c11_main=' + _Static_assert ((offsetof (struct anonymous, i) + == offsetof (struct anonymous, w.k)), + "Anonymous union alignment botch"); + v1.i = 2; + v1.w.k = 5; + ok |= v1.i != 5; +' + +# Test code for whether the C compiler supports C11 (complete). +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} +${ac_c_conftest_c11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + ${ac_c_conftest_c11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C99 (complete). +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" + +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" + +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" +# Test code for whether the C++ compiler supports C++98 (global declarations) +ac_cxx_conftest_cxx98_globals=' +// Does the compiler advertise C++98 conformance? +#if !defined __cplusplus || __cplusplus < 199711L +# error "Compiler does not advertise C++98 conformance" +#endif + +// These inclusions are to reject old compilers that +// lack the unsuffixed header files. +#include <cstdlib> +#include <exception> + +// <cassert> and <cstring> are *not* freestanding headers in C++98. +extern void assert (int); +namespace std { + extern int strcmp (const char *, const char *); +} + +// Namespaces, exceptions, and templates were all added after "C++ 2.0". +using std::exception; +using std::strcmp; + +namespace { + +void test_exception_syntax() +{ + try { + throw "test"; + } catch (const char *s) { + // Extra parentheses suppress a warning when building autoconf itself, + // due to lint rules shared with more typical C programs. + assert (!(strcmp) (s, "test")); + } +} + +template <typename T> struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template <typename U> T add(U u) { return static_cast<T>(u) + val; } +}; + +} // anonymous namespace +' + +# Test code for whether the C++ compiler supports C++98 (body of main) +ac_cxx_conftest_cxx98_main=' + assert (argc); + assert (! argv[0]); +{ + test_exception_syntax (); + test_template<double> tt (2.0); + assert (tt.add (4) == 6.0); + assert (true && !false); +} +' + +# Test code for whether the C++ compiler supports C++11 (global declarations) +ac_cxx_conftest_cxx11_globals=' +// Does the compiler advertise C++ 2011 conformance? +#if !defined __cplusplus || __cplusplus < 201103L +# error "Compiler does not advertise C++11 conformance" +#endif + +namespace cxx11test +{ + constexpr int get_val() { return 20; } + + struct testinit + { + int i; + double d; + }; + + class delegate + { + public: + delegate(int n) : n(n) {} + delegate(): delegate(2354) {} + + virtual int getval() { return this->n; }; + protected: + int n; + }; + + class overridden : public delegate + { + public: + overridden(int n): delegate(n) {} + virtual int getval() override final { return this->n * 2; } + }; + + class nocopy + { + public: + nocopy(int i): i(i) {} + nocopy() = default; + nocopy(const nocopy&) = delete; + nocopy & operator=(const nocopy&) = delete; + private: + int i; + }; + + // for testing lambda expressions + template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) + { + return f(v); + } + + // for testing variadic templates and trailing return types + template <typename V> auto sum(V first) -> V + { + return first; + } + template <typename V, typename... Args> auto sum(V first, Args... rest) -> V + { + return first + sum(rest...); + } +} +' + +# Test code for whether the C++ compiler supports C++11 (body of main) +ac_cxx_conftest_cxx11_main=' +{ + // Test auto and decltype + auto a1 = 6538; + auto a2 = 48573953.4; + auto a3 = "String literal"; + + int total = 0; + for (auto i = a3; *i; ++i) { total += *i; } + + decltype(a2) a4 = 34895.034; +} +{ + // Test constexpr + short sa[cxx11test::get_val()] = { 0 }; +} +{ + // Test initializer lists + cxx11test::testinit il = { 4323, 435234.23544 }; +} +{ + // Test range-based for + int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, + 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; + for (auto &x : array) { x += 23; } +} +{ + // Test lambda expressions + using cxx11test::eval; + assert (eval ([](int x) { return x*2; }, 21) == 42); + double d = 2.0; + assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); + assert (d == 5.0); + assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); + assert (d == 5.0); +} +{ + // Test use of variadic templates + using cxx11test::sum; + auto a = sum(1); + auto b = sum(1, 2); + auto c = sum(1.0, 2.0, 3.0); +} +{ + // Test constructor delegation + cxx11test::delegate d1; + cxx11test::delegate d2(); + cxx11test::delegate d3(45); +} +{ + // Test override and final + cxx11test::overridden o1(55464); +} +{ + // Test nullptr + char *c = nullptr; +} +{ + // Test template brackets + test_template<::test_template<int>> v(test_template<int>(12)); +} +{ + // Unicode literals + char const *utf8 = u8"UTF-8 string \u2500"; + char16_t const *utf16 = u"UTF-8 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; +} +' + +# Test code for whether the C compiler supports C++11 (complete). +ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} +${ac_cxx_conftest_cxx11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + ${ac_cxx_conftest_cxx11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C++98 (complete). +ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + return ok; +} +" + +as_fn_append ac_header_cxx_list " endian.h endian_h HAVE_ENDIAN_H" +as_fn_append ac_header_cxx_list " machine/endian.h machine_endian_h HAVE_MACHINE_ENDIAN_H" +as_fn_append ac_header_cxx_list " byteswap.h byteswap_h HAVE_BYTESWAP_H" +as_fn_append ac_header_cxx_list " time.h time_h HAVE_TIME_H" +as_fn_append ac_header_cxx_list " dlfcn.h dlfcn_h HAVE_DLFCN_H" +as_fn_append ac_header_cxx_list " termio.h termio_h HAVE_TERMIO_H" +as_fn_append ac_header_cxx_list " netdb.h netdb_h HAVE_NETDB_H" +as_fn_append ac_header_cxx_list " sys/event.h sys_event_h HAVE_SYS_EVENT_H" +as_fn_append ac_header_cxx_list " pwd.h pwd_h HAVE_PWD_H" +as_fn_append ac_header_cxx_list " grp.h grp_h HAVE_GRP_H" +as_fn_append ac_header_cxx_list " execinfo.h execinfo_h HAVE_EXECINFO_H" +as_fn_append ac_header_cxx_list " poll.h poll_h HAVE_POLL_H" +as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H" +as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" +as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" +as_fn_append ac_header_cxx_list " ifaddrs.h ifaddrs_h HAVE_IFADDRS_H" +as_fn_append ac_header_cxx_list " linux/if_tun.h linux_if_tun_h HAVE_LINUX_IF_TUN_H" +as_fn_append ac_header_cxx_list " linux/if_packet.h linux_if_packet_h HAVE_LINUX_IF_PACKET_H" +as_fn_append ac_header_cxx_list " net/if_dl.h net_if_dl_h HAVE_NET_IF_DL_H" +as_fn_append ac_header_cxx_list " net/if_tap.h net_if_tap_h HAVE_NET_IF_TAP_H" +as_fn_append ac_header_cxx_list " net/if_tun.h net_if_tun_h HAVE_NET_IF_TUN_H" +as_fn_append ac_header_cxx_list " net/if_types.h net_if_types_h HAVE_NET_IF_TYPES_H" +as_fn_append ac_header_cxx_list " net/bpf.h net_bpf_h HAVE_NET_BPF_H" +as_fn_append ac_header_cxx_list " netpacket/packet.h netpacket_packet_h HAVE_NETPACKET_PACKET_H" + +# Auxiliary files required by this configure script. +ac_aux_files="install-sh config.guess config.sub" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." + +# Search for a directory containing all of the required auxiliary files, +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. +# If we don't find one directory that contains all the files we need, +# we report the set of missing files from the *first* directory in +# $ac_aux_dir_candidates and give up. +ac_missing_aux_files="" +ac_first_candidate=: +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in $ac_aux_dir_candidates +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: + + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 + ac_aux_dir_found=yes + ac_install_sh= + for ac_aux in $ac_aux_files + do + # As a special case, if "install-sh" is required, that requirement + # can be satisfied by any of "install-sh", "install.sh", or "shtool", + # and $ac_install_sh is set appropriately for whichever one is found. + if test x"$ac_aux" = x"install-sh" + then + if test -f "${as_dir}install-sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 + ac_install_sh="${as_dir}install-sh -c" + elif test -f "${as_dir}install.sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 + ac_install_sh="${as_dir}install.sh -c" + elif test -f "${as_dir}shtool"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 + ac_install_sh="${as_dir}shtool install -c" + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} install-sh" + else + break + fi + fi + else + if test -f "${as_dir}${ac_aux}"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" + else + break + fi + fi + fi + done + if test "$ac_aux_dir_found" = yes; then + ac_aux_dir="$as_dir" + break + fi + ac_first_candidate=false + + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +fi + + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +if test -f "${ac_aux_dir}config.guess"; then + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" +fi +if test -f "${ac_aux_dir}config.sub"; then + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" +fi +if test -f "$ac_aux_dir/configure"; then + ac_configure="$SHELL ${ac_aux_dir}configure" +fi + # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -3298,12 +3796,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3312,24 +3810,24 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in @@ -3339,11 +3837,12 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## @@ -3382,16 +3881,12 @@ CLICK_VERSION=$PACKAGE_VERSION tabchar=' ' -cat >>confdefs.h <<_ACEOF -#define CLICK_VERSION "$CLICK_VERSION" -_ACEOF +printf "%s\n" "#define CLICK_VERSION \"$CLICK_VERSION\"" >>confdefs.h click_version_code_in=`echo "$CLICK_VERSION" | sed -e 's/[a-z].*//' | sed -e 's/$/.0/' | tr . , | sed -e 's/^\([0-9]*,[0-9]*,[0-9]\).*/\1/'` -cat >>confdefs.h <<_ACEOF -#define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE($click_version_code_in) -_ACEOF +printf "%s\n" "#define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE($click_version_code_in)" >>confdefs.h @@ -3414,55 +3909,30 @@ _ACEOF -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -fi -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; @@ -3481,21 +3951,22 @@ IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; @@ -3514,21 +3985,22 @@ IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 -$as_echo_n "checking target system type... " >&6; } -if ${ac_cv_target+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else - ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 -$as_echo "$ac_cv_target" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; @@ -3558,11 +4030,12 @@ test -n "$target_alias" && if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3570,11 +4043,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3585,11 +4062,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3598,11 +4075,12 @@ if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -3610,11 +4088,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3625,11 +4107,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -3637,8 +4119,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -3650,11 +4132,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. set dummy ${ac_tool_prefix}g++; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -3662,11 +4145,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="${ac_tool_prefix}g++" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3677,11 +4164,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3690,11 +4177,12 @@ if test -z "$ac_cv_prog_CXX"; then ac_ct_CXX=$CXX # Extract the first word of "g++", so it can be a program name with args. set dummy g++; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else @@ -3702,11 +4190,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="g++" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3717,11 +4209,11 @@ fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CXX" = x; then @@ -3729,8 +4221,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -3740,6 +4232,15 @@ else fi + + + + + + + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3748,11 +4249,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3760,11 +4262,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3775,11 +4281,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3788,11 +4294,12 @@ if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -3800,11 +4307,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3815,11 +4326,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -3827,8 +4338,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -3841,11 +4352,12 @@ if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3853,11 +4365,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3868,11 +4384,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3881,11 +4397,12 @@ fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3894,15 +4411,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3918,18 +4439,18 @@ if test $ac_prog_rejected = yes; then # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3940,11 +4461,12 @@ if test -z "$CC"; then do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3952,11 +4474,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3967,11 +4493,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3984,11 +4510,12 @@ if test -z "$CC"; then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -3996,11 +4523,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4011,11 +4542,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4027,34 +4558,138 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi +else + CC="$ac_cv_prog_CC" fi fi -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { 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 $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -for ac_option in --version -v -V -qversion; do +for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -4064,7 +4699,7 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done @@ -4072,7 +4707,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -4084,9 +4719,9 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" @@ -4107,11 +4742,12 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, @@ -4128,7 +4764,7 @@ do # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -4144,44 +4780,46 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else +else $as_nop ac_file='' fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { 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 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with @@ -4195,15 +4833,15 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { 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 compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -4212,7 +4850,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdio.h> int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; @@ -4224,8 +4862,8 @@ _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in @@ -4233,10 +4871,10 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -4244,39 +4882,40 @@ $as_echo "$ac_try_echo"; } >&5 *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. + { { 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 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -4290,11 +4929,12 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -4303,31 +4943,32 @@ $as_echo "$ac_try_echo"; } >&5 break;; esac done -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { 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 compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -4337,29 +4978,33 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi -ac_test_CFLAGS=${CFLAGS+set} +ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no @@ -4368,57 +5013,60 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes -else +else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -4433,232 +5081,144 @@ else CFLAGS= fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <stdarg.h> -#include <stdio.h> -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} +$ac_c_conftest_c11_program _ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - Syntax error +$ac_c_conftest_c99_program _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC fi -rm -f conftest.err conftest.i conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <ac_nonexistent.h> +$ac_c_conftest_c89_program _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c89=$ac_arg fi -rm -f conftest.err conftest.i conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c89" != "xno" && break done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP +rm -f conftest.$ac_ext +CC=$ac_save_CC fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : -else - # Broken: fails on valid input. -continue +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <ac_nonexistent.h> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -4668,286 +5228,35 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +ac_header= ac_cache= +for ac_item in $ac_header_c_list do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <string.h> - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <stdlib.h> - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <ctype.h> -#include <stdlib.h> -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - done - for ac_header in $ac_header_list -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h +fi @@ -4962,60 +5271,64 @@ done save_cflags="$CFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -W -Wall" >&5 -$as_echo_n "checking whether the C compiler accepts -W -Wall... " >&6; } -if ${ac_cv_c_w_wall+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -W -Wall" >&5 +printf %s "checking whether the C compiler accepts -W -Wall... " >&6; } +if test ${ac_cv_c_w_wall+y} +then : + printf %s "(cached) " >&6 +else $as_nop CFLAGS="$CFLAGS -W -Wall" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int f(int x) { return x; } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_w_wall=yes -else +else $as_nop ac_cv_c_w_wall=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_w_wall" >&5 -$as_echo "$ac_cv_c_w_wall" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -Werror" >&5 -$as_echo_n "checking whether the C compiler accepts -Werror... " >&6; } -if ${ac_cv_c_werror+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_w_wall" >&5 +printf "%s\n" "$ac_cv_c_w_wall" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -Werror" >&5 +printf %s "checking whether the C compiler accepts -Werror... " >&6; } +if test ${ac_cv_c_werror+y} +then : + printf %s "(cached) " >&6 +else $as_nop CFLAGS="$CFLAGS -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int f(int x) { return x; } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_werror=yes -else +else $as_nop ac_cv_c_werror=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_werror" >&5 -$as_echo "$ac_cv_c_werror" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_werror" >&5 +printf "%s\n" "$ac_cv_c_werror" >&6; } CFLAGS="$save_cflags" WARNING_CFLAGS= @@ -5032,40 +5345,36 @@ ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif +#include <limits.h> Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -5077,10 +5386,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -5090,7 +5400,8 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -5102,29 +5413,24 @@ fi else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif +/* end confdefs.h. */ +#include <limits.h> Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -5136,10 +5442,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -5149,11 +5456,12 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { 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 $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -5164,32 +5472,34 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +printf %s "checking for inline... " >&6; } +if test ${ac_cv_c_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } +static $ac_kw foo_t static_foo (void) {return 0; } +$ac_kw foo_t foo (void) {return 0; } #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_inline=$ac_kw fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +printf "%s\n" "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -5207,6 +5517,12 @@ _ACEOF esac + + + + + + ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5217,15 +5533,16 @@ if test -z "$CXX"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -5233,11 +5550,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5248,11 +5569,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5261,15 +5582,16 @@ fi fi if test -z "$CXX"; then ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else @@ -5277,11 +5599,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5292,11 +5618,11 @@ fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5308,8 +5634,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -5319,7 +5645,7 @@ fi fi fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -5329,7 +5655,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -5339,20 +5665,21 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 +printf %s "checking whether the compiler supports GNU C++... " >&6; } +if test ${ac_cv_cxx_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -5362,29 +5689,33 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi -ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +printf %s "checking whether $CXX accepts -g... " >&6; } +if test ${ac_cv_prog_cxx_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no @@ -5393,57 +5724,60 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes -else +else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else +else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } +if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then @@ -5458,6 +5792,100 @@ else CXXFLAGS= fi fi +ac_prog_cxx_stdcxx=no +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 +printf %s "checking for $CXX option to enable C++11 features... " >&6; } +if test ${ac_cv_prog_cxx_11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_11=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx11_program +_ACEOF +for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx11" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx11" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 +fi +fi +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 +printf %s "checking for $CXX option to enable C++98 features... " >&6; } +if test ${ac_cv_prog_cxx_98+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_98=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx98_program +_ACEOF +for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx98=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx98" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx98" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx98" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx98" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 +fi +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5474,7 +5902,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi if test -z "$GXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ========================================= Your C++ compiler ($CXX) is not a GNU C++ compiler! @@ -5484,7 +5912,7 @@ a GNU C++ compiler is, or compile at your own risk. and Linux header files are GCC-specific.) =========================================" >&5 -$as_echo "$as_me: WARNING: +printf "%s\n" "$as_me: WARNING: ========================================= Your C++ compiler ($CXX) is not a GNU C++ compiler! @@ -5504,17 +5932,18 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <new> works" >&5 -$as_echo_n "checking whether <new> works... " >&6; } -if ${ac_cv_good_new_hdr+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <new> works" >&5 +printf %s "checking whether <new> works... " >&6; } +if test ${ac_cv_good_new_hdr+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <new> int -main () +main (void) { int a; @@ -5525,32 +5954,34 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_good_new_hdr=yes -else +else $as_nop ac_cv_good_new_hdr=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_good_new_hdr" >&5 -$as_echo "$ac_cv_good_new_hdr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_good_new_hdr" >&5 +printf "%s\n" "$ac_cv_good_new_hdr" >&6; } if test "$ac_cv_good_new_hdr" = yes; then -$as_echo "#define HAVE_NEW_HDR 1" >>confdefs.h +printf "%s\n" "#define HAVE_NEW_HDR 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <new.h> works" >&5 -$as_echo_n "checking whether <new.h> works... " >&6; } -if ${ac_cv_good_new_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <new.h> works" >&5 +printf %s "checking whether <new.h> works... " >&6; } +if test ${ac_cv_good_new_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <new.h> int -main () +main (void) { int a; @@ -5561,236 +5992,250 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_good_new_h=yes -else +else $as_nop ac_cv_good_new_h=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_good_new_h" >&5 -$as_echo "$ac_cv_good_new_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_good_new_h" >&5 +printf "%s\n" "$ac_cv_good_new_h" >&6; } if test "$ac_cv_good_new_h" = yes; then -$as_echo "#define HAVE_NEW_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_NEW_H 1" >>confdefs.h fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands 'auto'" >&5 -$as_echo_n "checking whether the C++ compiler understands 'auto'... " >&6; } -if ${ac_cv_cxx_auto+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands 'auto'" >&5 +printf %s "checking whether the C++ compiler understands 'auto'... " >&6; } +if test ${ac_cv_cxx_auto+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct s { int a; }; int f(s x) { auto &y = x; return y.a; } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_auto=yes -else +else $as_nop ac_cv_cxx_auto=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5 -$as_echo "$ac_cv_cxx_auto" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5 +printf "%s\n" "$ac_cv_cxx_auto" >&6; } if test "$ac_cv_cxx_auto" != yes -a -z "$ac_user_cxx"; then CXX="${CXX} -std=gnu++0x" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler with -std=gnu++0x understands 'auto'" >&5 -$as_echo_n "checking whether the C++ compiler with -std=gnu++0x understands 'auto'... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler with -std=gnu++0x understands 'auto'" >&5 +printf %s "checking whether the C++ compiler with -std=gnu++0x understands 'auto'... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct s { int a; }; int f(s x) { auto &y = x; return y.a; } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_auto=yes -else +else $as_nop ac_cv_cxx_auto=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5 -$as_echo "$ac_cv_cxx_auto" >&6; } +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5 +printf "%s\n" "$ac_cv_cxx_auto" >&6; } fi save_cxxflags="$CXXFLAGS" test -n "$ac_cv_c_w_wall" && CXXFLAGS="$CXXFLAGS -W -Wall" test -n "$ac_cv_c_werror" && CXXFLAGS="$CXXFLAGS -Werror" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands constexpr" >&5 -$as_echo_n "checking whether the C++ compiler understands constexpr... " >&6; } -if ${ac_cv_cxx_constexpr+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands constexpr" >&5 +printf %s "checking whether the C++ compiler understands constexpr... " >&6; } +if test ${ac_cv_cxx_constexpr+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ constexpr int f(int x) { return x + 1; } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_constexpr=yes -else +else $as_nop ac_cv_cxx_constexpr=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_constexpr" >&5 -$as_echo "$ac_cv_cxx_constexpr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_constexpr" >&5 +printf "%s\n" "$ac_cv_cxx_constexpr" >&6; } if test "$ac_cv_cxx_constexpr" = yes; then -$as_echo "#define HAVE_CXX_CONSTEXPR 1" >>confdefs.h +printf "%s\n" "#define HAVE_CXX_CONSTEXPR 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands rvalue references" >&5 -$as_echo_n "checking whether the C++ compiler understands rvalue references... " >&6; } -if ${ac_cv_cxx_rvalue_references+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands rvalue references" >&5 +printf %s "checking whether the C++ compiler understands rvalue references... " >&6; } +if test ${ac_cv_cxx_rvalue_references+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int f(int &) { return 1; } int f(int &&) { return 0; } int -main () +main (void) { return f(int()); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_rvalue_references=yes -else +else $as_nop ac_cv_cxx_rvalue_references=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_rvalue_references" >&5 -$as_echo "$ac_cv_cxx_rvalue_references" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_rvalue_references" >&5 +printf "%s\n" "$ac_cv_cxx_rvalue_references" >&6; } if test "$ac_cv_cxx_rvalue_references" = yes; then -$as_echo "#define HAVE_CXX_RVALUE_REFERENCES 1" >>confdefs.h +printf "%s\n" "#define HAVE_CXX_RVALUE_REFERENCES 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands static_assert" >&5 -$as_echo_n "checking whether the C++ compiler understands static_assert... " >&6; } -if ${ac_cv_cxx_static_assert+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands static_assert" >&5 +printf %s "checking whether the C++ compiler understands static_assert... " >&6; } +if test ${ac_cv_cxx_static_assert+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ const int f = 2; int -main () +main (void) { static_assert(f == 2, "f should be 2"); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_static_assert=yes -else +else $as_nop ac_cv_cxx_static_assert=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_assert" >&5 -$as_echo "$ac_cv_cxx_static_assert" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_assert" >&5 +printf "%s\n" "$ac_cv_cxx_static_assert" >&6; } if test "$ac_cv_cxx_static_assert" = yes; then -$as_echo "#define HAVE_CXX_STATIC_ASSERT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CXX_STATIC_ASSERT 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands template alias" >&5 -$as_echo_n "checking whether the C++ compiler understands template alias... " >&6; } -if ${ac_cv_cxx_template_alias+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands template alias" >&5 +printf %s "checking whether the C++ compiler understands template alias... " >&6; } +if test ${ac_cv_cxx_template_alias+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template <typename T> struct X { typedef T type; }; template <typename T> using Y = X<T>; int f(int x) { return x; } int -main () +main (void) { return f(Y<int>::type()); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_template_alias=yes -else +else $as_nop ac_cv_cxx_template_alias=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_alias" >&5 -$as_echo "$ac_cv_cxx_template_alias" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_alias" >&5 +printf "%s\n" "$ac_cv_cxx_template_alias" >&6; } if test "$ac_cv_cxx_template_alias" = yes; then -$as_echo "#define HAVE_CXX_TEMPLATE_ALIAS 1" >>confdefs.h +printf "%s\n" "#define HAVE_CXX_TEMPLATE_ALIAS 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands #pragma interface" >&5 -$as_echo_n "checking whether the C++ compiler understands #pragma interface... " >&6; } -if ${ac_cv_cxx_pragma_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands #pragma interface" >&5 +printf %s "checking whether the C++ compiler understands #pragma interface... " >&6; } +if test ${ac_cv_cxx_pragma_interface+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #pragma interface "foo.c" #pragma implementation "foo.c" int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_pragma_interface=yes -else +else $as_nop ac_cv_cxx_pragma_interface=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_pragma_interface" >&5 -$as_echo "$ac_cv_cxx_pragma_interface" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_pragma_interface" >&5 +printf "%s\n" "$ac_cv_cxx_pragma_interface" >&6; } if test "$ac_cv_cxx_pragma_interface" = yes; then -$as_echo "#define HAVE_CXX_PRAGMA_INTERFACE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CXX_PRAGMA_INTERFACE 1" >>confdefs.h fi @@ -5808,36 +6253,32 @@ ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif +#include <limits.h> Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -5849,10 +6290,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -5862,7 +6304,8 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -5874,29 +6317,24 @@ fi else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif +#include <limits.h> Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -5908,10 +6346,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -5921,11 +6360,12 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { 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 $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -5937,11 +6377,12 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Winconsistent-missing-override" >&5 -$as_echo_n "checking whether C++ compiler accepts -Winconsistent-missing-override... " >&6; } -if ${ax_cv_check_cxxflags__Werror__Winconsistent_missing_override+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Winconsistent-missing-override" >&5 +printf %s "checking whether C++ compiler accepts -Winconsistent-missing-override... " >&6; } +if test ${ax_cv_check_cxxflags__Werror__Winconsistent_missing_override+y} +then : + printf %s "(cached) " >&6 +else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS -Werror -Winconsistent-missing-override" @@ -5949,36 +6390,39 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_check_cxxflags__Werror__Winconsistent_missing_override=yes -else +else $as_nop ax_cv_check_cxxflags__Werror__Winconsistent_missing_override=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__Winconsistent_missing_override" >&5 -$as_echo "$ax_cv_check_cxxflags__Werror__Winconsistent_missing_override" >&6; } -if test "x$ax_cv_check_cxxflags__Werror__Winconsistent_missing_override" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__Winconsistent_missing_override" >&5 +printf "%s\n" "$ax_cv_check_cxxflags__Werror__Winconsistent_missing_override" >&6; } +if test "x$ax_cv_check_cxxflags__Werror__Winconsistent_missing_override" = xyes +then : CXXFLAGS="$CXXFLAGS -Wno-inconsistent-missing-override" -else +else $as_nop : fi -if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +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 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <new> @@ -5990,8 +6434,9 @@ int main() { return (a == nullptr?1:0); } _ACEOF -if ac_fn_cxx_try_run "$LINENO"; then : - $as_echo "#define HAVE_ALIGNED_NEW 1" >>confdefs.h +if ac_fn_cxx_try_run "$LINENO" +then : + printf "%s\n" "#define HAVE_ALIGNED_NEW 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -6024,11 +6469,12 @@ ac_preset_ar="$AR" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -6036,11 +6482,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="${ac_tool_prefix}ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6051,11 +6501,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6064,11 +6514,12 @@ if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -6076,11 +6527,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6091,11 +6546,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_AR" = x; then @@ -6103,8 +6558,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -6116,11 +6571,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. set dummy ${ac_tool_prefix}ld; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else @@ -6128,11 +6584,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LD="${ac_tool_prefix}ld" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6143,11 +6603,11 @@ fi fi LD=$ac_cv_prog_LD if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6156,11 +6616,12 @@ if test -z "$ac_cv_prog_LD"; then ac_ct_LD=$LD # Extract the first word of "ld", so it can be a program name with args. set dummy ld; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_LD"; then ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. else @@ -6168,11 +6629,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LD="ld" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6183,11 +6648,11 @@ fi fi ac_ct_LD=$ac_cv_prog_ac_ct_LD if test -n "$ac_ct_LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 -$as_echo "$ac_ct_LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 +printf "%s\n" "$ac_ct_LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LD" = x; then @@ -6195,8 +6660,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LD=$ac_ct_LD @@ -6208,11 +6673,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. set dummy ${ac_tool_prefix}nm; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_NM+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NM"; then ac_cv_prog_NM="$NM" # Let the user override the test. else @@ -6220,11 +6686,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NM="${ac_tool_prefix}nm" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6235,11 +6705,11 @@ fi fi NM=$ac_cv_prog_NM if test -n "$NM"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 -$as_echo "$NM" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 +printf "%s\n" "$NM" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6248,11 +6718,12 @@ if test -z "$ac_cv_prog_NM"; then ac_ct_NM=$NM # Extract the first word of "nm", so it can be a program name with args. set dummy nm; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_NM+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_NM"; then ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. else @@ -6260,11 +6731,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NM="nm" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6275,11 +6750,11 @@ fi fi ac_ct_NM=$ac_cv_prog_ac_ct_NM if test -n "$ac_ct_NM"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 -$as_echo "$ac_ct_NM" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 +printf "%s\n" "$ac_ct_NM" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NM" = x; then @@ -6287,8 +6762,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NM=$ac_ct_NM @@ -6300,11 +6775,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. set dummy ${ac_tool_prefix}objcopy; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJCOPY+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJCOPY+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OBJCOPY"; then ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. else @@ -6312,11 +6788,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6327,11 +6807,11 @@ fi fi OBJCOPY=$ac_cv_prog_OBJCOPY if test -n "$OBJCOPY"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 -$as_echo "$OBJCOPY" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 +printf "%s\n" "$OBJCOPY" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6340,11 +6820,12 @@ if test -z "$ac_cv_prog_OBJCOPY"; then ac_ct_OBJCOPY=$OBJCOPY # Extract the first word of "objcopy", so it can be a program name with args. set dummy objcopy; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJCOPY+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OBJCOPY"; then ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. else @@ -6352,11 +6833,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJCOPY="objcopy" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6367,11 +6852,11 @@ fi fi ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY if test -n "$ac_ct_OBJCOPY"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 -$as_echo "$ac_ct_OBJCOPY" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 +printf "%s\n" "$ac_ct_OBJCOPY" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJCOPY" = x; then @@ -6379,8 +6864,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJCOPY=$ac_ct_OBJCOPY @@ -6392,11 +6877,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -6404,11 +6890,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6419,11 +6909,11 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6432,11 +6922,12 @@ if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -6444,11 +6935,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6459,11 +6954,11 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -6471,8 +6966,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -6484,11 +6979,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. set dummy ${ac_tool_prefix}readelf; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_READELF+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_READELF+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$READELF"; then ac_cv_prog_READELF="$READELF" # Let the user override the test. else @@ -6496,11 +6992,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_READELF="${ac_tool_prefix}readelf" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6511,11 +7011,11 @@ fi fi READELF=$ac_cv_prog_READELF if test -n "$READELF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 -$as_echo "$READELF" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 +printf "%s\n" "$READELF" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6524,11 +7024,12 @@ if test -z "$ac_cv_prog_READELF"; then ac_ct_READELF=$READELF # Extract the first word of "readelf", so it can be a program name with args. set dummy readelf; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_READELF+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_READELF+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_READELF"; then ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. else @@ -6536,11 +7037,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_READELF="readelf" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6551,11 +7056,11 @@ fi fi ac_ct_READELF=$ac_cv_prog_ac_ct_READELF if test -n "$ac_ct_READELF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 -$as_echo "$ac_ct_READELF" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 +printf "%s\n" "$ac_ct_READELF" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_READELF" = x; then @@ -6563,8 +7068,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac READELF=$ac_ct_READELF @@ -6576,11 +7081,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else @@ -6588,11 +7094,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6603,11 +7113,11 @@ fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6616,11 +7126,12 @@ if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else @@ -6628,11 +7139,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6643,11 +7158,11 @@ fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -6655,8 +7170,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -6681,39 +7196,43 @@ LIBS_LLVM= # Check whether --enable-userlevel was given. -if test "${enable_userlevel+set}" = set; then : +if test ${enable_userlevel+y} +then : enableval=$enable_userlevel; : -else +else $as_nop enable_userlevel=yes fi # Check whether --enable-user-multithread was given. -if test "${enable_user_multithread+set}" = set; then : +if test ${enable_user_multithread+y} +then : enableval=$enable_user_multithread; : -else +else $as_nop enable_user_multithread=yes fi # Check whether --enable-fullpush-nonatomic was given. -if test "${enable_fullpush_nonatomic+set}" = set; then : +if test ${enable_fullpush_nonatomic+y} +then : enableval=$enable_fullpush_nonatomic; : -else +else $as_nop enable_fullpush_nonatomic=yes fi if test "x$enable_fullpush_nonatomic" = "xyes"; then - $as_echo "#define HAVE_FULLPUSH_NONATOMIC 1" >>confdefs.h + printf "%s\n" "#define HAVE_FULLPUSH_NONATOMIC 1" >>confdefs.h fi # Check whether --enable-batch was given. -if test "${enable_batch+set}" = set; then : +if test ${enable_batch+y} +then : enableval=$enable_batch; : -else +else $as_nop enable_batch=$enable_userlevel fi @@ -6727,29 +7246,31 @@ if test "x$enable_batch" = "xyes"; then =========================================" "$LINENO" 5 fi - $as_echo "#define HAVE_BATCH 1" >>confdefs.h + printf "%s\n" "#define HAVE_BATCH 1" >>confdefs.h HAVE_BATCH=yes fi # Check whether --enable-verbose-batch was given. -if test "${enable_verbose_batch+set}" = set; then : +if test ${enable_verbose_batch+y} +then : enableval=$enable_verbose_batch; : -else +else $as_nop enable_verbose_batch=yes fi if test "x$enable_verbose_batch" = "xyes"; then - $as_echo "#define HAVE_VERBOSE_BATCH 1" >>confdefs.h + printf "%s\n" "#define HAVE_VERBOSE_BATCH 1" >>confdefs.h fi # Check whether --enable-auto-batch was given. -if test "${enable_auto_batch+set}" = set; then : +if test ${enable_auto_batch+y} +then : enableval=$enable_auto_batch; : -else +else $as_nop enable_auto_batch=no fi @@ -6759,15 +7280,15 @@ if test "x$enable_auto_batch" = "xno" ; then : elif test "x$enable_auto_batch" = "xyes" -o "x$enable_auto_batch" = "xport"; then -$as_echo "#define HAVE_AUTO_BATCH AUTO_BATCH_PORT" >>confdefs.h +printf "%s\n" "#define HAVE_AUTO_BATCH AUTO_BATCH_PORT" >>confdefs.h elif test "x$enable_auto_batch" = "xlist"; then -$as_echo "#define HAVE_AUTO_BATCH AUTO_BATCH_LIST" >>confdefs.h +printf "%s\n" "#define HAVE_AUTO_BATCH AUTO_BATCH_LIST" >>confdefs.h elif test "x$enable_auto_batch" = "xjump"; then -$as_echo "#define HAVE_AUTO_BATCH AUTO_BATCH_JUMP" >>confdefs.h +printf "%s\n" "#define HAVE_AUTO_BATCH AUTO_BATCH_JUMP" >>confdefs.h else as_fn_error $? " @@ -6779,9 +7300,10 @@ else fi # Check whether --enable-netmap-pool was given. -if test "${enable_netmap_pool+set}" = set; then : +if test ${enable_netmap_pool+y} +then : enableval=$enable_netmap_pool; : -else +else $as_nop enable_netmap_pool=no fi @@ -6791,94 +7313,171 @@ PTHREAD_LIBS="" if test "x$enable_user_multithread" = xyes; then SAVE_LIBS="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 -$as_echo_n "checking for library containing pthread_create... " >&6; } -if ${ac_cv_search_pthread_create+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 +printf %s "checking for library containing pthread_create... " >&6; } +if test ${ac_cv_search_pthread_create+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_create (); +namespace conftest { + extern "C" int pthread_create (); +} int -main () +main (void) { -return pthread_create (); +return conftest::pthread_create (); ; return 0; } _ACEOF -for ac_lib in '' pthread; do +for ac_lib in '' pthread +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_pthread_create=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_pthread_create+:} false; then : + if test ${ac_cv_search_pthread_create+y} +then : break fi done -if ${ac_cv_search_pthread_create+:} false; then : +if test ${ac_cv_search_pthread_create+y} +then : -else +else $as_nop ac_cv_search_pthread_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 -$as_echo "$ac_cv_search_pthread_create" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 +printf "%s\n" "$ac_cv_search_pthread_create" >&6; } ac_res=$ac_cv_search_pthread_create -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_libpthread=yes -else +else $as_nop ac_have_libpthread=no fi - -for ac_header in pthread.h + for ac_header in pthread.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PTHREAD_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes +then : + printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h ac_have_pthread_h=yes -else +else $as_nop ac_have_pthread_h=no fi done - if test "$ac_have_libpthread$ac_have_pthread_h" = yesyes; then - $as_echo "#define HAVE_USER_MULTITHREAD 1" >>confdefs.h + printf "%s\n" "#define HAVE_USER_MULTITHREAD 1" >>confdefs.h + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5 +printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_cxx_undeclared_builtin_options+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_CFLAGS=$CFLAGS + ac_cv_cxx_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ +(void) strchr; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : + +else $as_nop + # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <float.h> +#include <limits.h> +#include <stdarg.h> +#include <stddef.h> +extern void ac_decl (int, char *); + +int +main (void) +{ +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_cxx_undeclared_builtin_options='none needed' +else $as_nop + ac_cv_cxx_undeclared_builtin_options=$ac_arg +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; } + case $ac_cv_cxx_undeclared_builtin_options in #( + 'cannot detect') : + { { 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 make $CXX report undeclared builtins +See \`config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_cxx_undeclared_builtin_options='' ;; #( + *) : + ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;; +esac - ac_fn_cxx_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" "#define _GNU_SOURCE +ac_fn_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" "#define _GNU_SOURCE #include <pthread.h> -" -if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl" >>confdefs.h if echo "$LIBS" | grep -e -lpthread >/dev/null 2>&1; then PTHREAD_LIBS="-lpthread" @@ -6899,81 +7498,81 @@ save_cpp="$CPPFLAGS" save_libs="$LIBS" CPPFLAGS="$CPPFLAGS -I/usr/local/include/mbglib/" LIBS="$LIBS -lmbgdevio" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mbg_open_device" >&5 -$as_echo_n "checking for library containing mbg_open_device... " >&6; } -if ${ac_cv_search_mbg_open_device+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mbg_open_device" >&5 +printf %s "checking for library containing mbg_open_device... " >&6; } +if test ${ac_cv_search_mbg_open_device+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char mbg_open_device (); +namespace conftest { + extern "C" int mbg_open_device (); +} int -main () +main (void) { -return mbg_open_device (); +return conftest::mbg_open_device (); ; return 0; } _ACEOF -for ac_lib in '' mbgdevio; do +for ac_lib in '' mbgdevio +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_mbg_open_device=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_mbg_open_device+:} false; then : + if test ${ac_cv_search_mbg_open_device+y} +then : break fi done -if ${ac_cv_search_mbg_open_device+:} false; then : +if test ${ac_cv_search_mbg_open_device+y} +then : -else +else $as_nop ac_cv_search_mbg_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mbg_open_device" >&5 -$as_echo "$ac_cv_search_mbg_open_device" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mbg_open_device" >&5 +printf "%s\n" "$ac_cv_search_mbg_open_device" >&6; } ac_res=$ac_cv_search_mbg_open_device -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_libmbdevio=yes -else +else $as_nop ac_have_libmbdevio=no fi -for ac_header in mbgdevio.h + for ac_header in mbgdevio.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "mbgdevio.h" "ac_cv_header_mbgdevio_h" "$ac_includes_default" -if test "x$ac_cv_header_mbgdevio_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MBGDEVIO_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "mbgdevio.h" "ac_cv_header_mbgdevio_h" "$ac_includes_default" +if test "x$ac_cv_header_mbgdevio_h" = xyes +then : + printf "%s\n" "#define HAVE_MBGDEVIO_H 1" >>confdefs.h ac_have_mbgdevio_h=yes -else +else $as_nop ac_have_mbgdevio_h=no fi done - #if test "$ac_have_libpthread$ac_have_pthread_h" = yesyes; then if test "$ac_have_mbgdevio_h" = yes; then - $as_echo "#define HAVE_MBGLIB 1" >>confdefs.h + printf "%s\n" "#define HAVE_MBGLIB 1" >>confdefs.h else CPPFLAGS="$save_cpp" @@ -6981,88 +7580,89 @@ else fi # Check whether --enable-bpf was given. -if test "${enable_bpf+set}" = set; then : +if test ${enable_bpf+y} +then : enableval=$enable_bpf; : -else +else $as_nop enable_bpf=yes fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bpf_prog_load_xattr" >&5 -$as_echo_n "checking for library containing bpf_prog_load_xattr... " >&6; } -if ${ac_cv_search_bpf_prog_load_xattr+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bpf_prog_load_xattr" >&5 +printf %s "checking for library containing bpf_prog_load_xattr... " >&6; } +if test ${ac_cv_search_bpf_prog_load_xattr+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char bpf_prog_load_xattr (); +namespace conftest { + extern "C" int bpf_prog_load_xattr (); +} int -main () +main (void) { -return bpf_prog_load_xattr (); +return conftest::bpf_prog_load_xattr (); ; return 0; } _ACEOF -for ac_lib in '' bpf; do +for ac_lib in '' bpf +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_bpf_prog_load_xattr=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_bpf_prog_load_xattr+:} false; then : + if test ${ac_cv_search_bpf_prog_load_xattr+y} +then : break fi done -if ${ac_cv_search_bpf_prog_load_xattr+:} false; then : +if test ${ac_cv_search_bpf_prog_load_xattr+y} +then : -else +else $as_nop ac_cv_search_bpf_prog_load_xattr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bpf_prog_load_xattr" >&5 -$as_echo "$ac_cv_search_bpf_prog_load_xattr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bpf_prog_load_xattr" >&5 +printf "%s\n" "$ac_cv_search_bpf_prog_load_xattr" >&6; } ac_res=$ac_cv_search_bpf_prog_load_xattr -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_libbpf=yes -else +else $as_nop ac_have_libbpf=no fi -for ac_header in bpf/bpf.h + for ac_header in bpf/bpf.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "bpf/bpf.h" "ac_cv_header_bpf_bpf_h" "$ac_includes_default" -if test "x$ac_cv_header_bpf_bpf_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BPF_BPF_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "bpf/bpf.h" "ac_cv_header_bpf_bpf_h" "$ac_includes_default" +if test "x$ac_cv_header_bpf_bpf_h" = xyes +then : + printf "%s\n" "#define HAVE_BPF_BPF_H 1" >>confdefs.h ac_have_libbpf_h=yes -else +else $as_nop ac_have_libbpf_h=no fi done - if test "x$ac_have_libbpf$ac_have_libbpf_h$enable_bpf" = "xyesyesyes"; then - $as_echo "#define HAVE_BPF 1" >>confdefs.h + printf "%s\n" "#define HAVE_BPF 1" >>confdefs.h have_libbpf=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -7071,21 +7671,22 @@ if test "x$ac_have_libbpf$ac_have_libbpf_h$enable_bpf" = "xyesyesyes"; then enum bpf_stats_type test; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_bpf_has_bpf_stats_type=yes -else +else $as_nop ac_cv_bpf_has_bpf_stats_type=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "x$ac_cv_bpf_has_bpf_stats_type" = "xyes"; then - $as_echo "#define HAVE_BPF_STATS_TYPE 1" >>confdefs.h + printf "%s\n" "#define HAVE_BPF_STATS_TYPE 1" >>confdefs.h fi else @@ -7093,497 +7694,503 @@ else enable_bpf=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing curl_global_init" >&5 -$as_echo_n "checking for library containing curl_global_init... " >&6; } -if ${ac_cv_search_curl_global_init+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing curl_global_init" >&5 +printf %s "checking for library containing curl_global_init... " >&6; } +if test ${ac_cv_search_curl_global_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char curl_global_init (); +namespace conftest { + extern "C" int curl_global_init (); +} int -main () +main (void) { -return curl_global_init (); +return conftest::curl_global_init (); ; return 0; } _ACEOF -for ac_lib in '' curl; do +for ac_lib in '' curl +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_curl_global_init=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_curl_global_init+:} false; then : + if test ${ac_cv_search_curl_global_init+y} +then : break fi done -if ${ac_cv_search_curl_global_init+:} false; then : +if test ${ac_cv_search_curl_global_init+y} +then : -else +else $as_nop ac_cv_search_curl_global_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_curl_global_init" >&5 -$as_echo "$ac_cv_search_curl_global_init" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_curl_global_init" >&5 +printf "%s\n" "$ac_cv_search_curl_global_init" >&6; } ac_res=$ac_cv_search_curl_global_init -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_curl=yes -else +else $as_nop ac_have_curl=no fi -for ac_header in curl/curl.h + for ac_header in curl/curl.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" -if test "x$ac_cv_header_curl_curl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CURL_CURL_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" +if test "x$ac_cv_header_curl_curl_h" = xyes +then : + printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h ac_have_curl_h=yes -else +else $as_nop ac_have_curl_h=no fi done - if test "$ac_have_curl$ac_have_curl_h" = yesyes; then - $as_echo "#define HAVE_CURL 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing elf_version" >&5 -$as_echo_n "checking for library containing elf_version... " >&6; } -if ${ac_cv_search_elf_version+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing elf_version" >&5 +printf %s "checking for library containing elf_version... " >&6; } +if test ${ac_cv_search_elf_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char elf_version (); +namespace conftest { + extern "C" int elf_version (); +} int -main () +main (void) { -return elf_version (); +return conftest::elf_version (); ; return 0; } _ACEOF -for ac_lib in '' elf; do +for ac_lib in '' elf +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_elf_version=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_elf_version+:} false; then : + if test ${ac_cv_search_elf_version+y} +then : break fi done -if ${ac_cv_search_elf_version+:} false; then : +if test ${ac_cv_search_elf_version+y} +then : -else +else $as_nop ac_cv_search_elf_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_elf_version" >&5 -$as_echo "$ac_cv_search_elf_version" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_elf_version" >&5 +printf "%s\n" "$ac_cv_search_elf_version" >&6; } ac_res=$ac_cv_search_elf_version -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_elf=yes -else +else $as_nop ac_have_elf=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MHD_start_daemon" >&5 -$as_echo_n "checking for library containing MHD_start_daemon... " >&6; } -if ${ac_cv_search_MHD_start_daemon+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MHD_start_daemon" >&5 +printf %s "checking for library containing MHD_start_daemon... " >&6; } +if test ${ac_cv_search_MHD_start_daemon+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char MHD_start_daemon (); +namespace conftest { + extern "C" int MHD_start_daemon (); +} int -main () +main (void) { -return MHD_start_daemon (); +return conftest::MHD_start_daemon (); ; return 0; } _ACEOF -for ac_lib in '' microhttpd; do +for ac_lib in '' microhttpd +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_MHD_start_daemon=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_MHD_start_daemon+:} false; then : + if test ${ac_cv_search_MHD_start_daemon+y} +then : break fi done -if ${ac_cv_search_MHD_start_daemon+:} false; then : +if test ${ac_cv_search_MHD_start_daemon+y} +then : -else +else $as_nop ac_cv_search_MHD_start_daemon=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MHD_start_daemon" >&5 -$as_echo "$ac_cv_search_MHD_start_daemon" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MHD_start_daemon" >&5 +printf "%s\n" "$ac_cv_search_MHD_start_daemon" >&6; } ac_res=$ac_cv_search_MHD_start_daemon -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_libmicrohttpd=yes -else +else $as_nop ac_have_libmicrohttpd=no fi -for ac_header in microhttpd.h + for ac_header in microhttpd.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "$ac_includes_default" -if test "x$ac_cv_header_microhttpd_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MICROHTTPD_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "$ac_includes_default" +if test "x$ac_cv_header_microhttpd_h" = xyes +then : + printf "%s\n" "#define HAVE_MICROHTTPD_H 1" >>confdefs.h ac_have_microhttpd_h=yes -else +else $as_nop ac_have_microhttpd_h=no fi done - if test "x$ac_have_libmicrohttpd$ac_have_microhttpd_h" = "xyesyes"; then have_httpd=yes - $as_echo "#define HAVE_MICROHTTPD 1" >>confdefs.h + printf "%s\n" "#define HAVE_MICROHTTPD 1" >>confdefs.h else have_httpd=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lre2" >&5 -$as_echo_n "checking for main in -lre2... " >&6; } -if ${ac_cv_lib_re2_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lre2" >&5 +printf %s "checking for main in -lre2... " >&6; } +if test ${ac_cv_lib_re2_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lre2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - +namespace conftest { + extern "C" int main (); +} int -main () +main (void) { -return main (); +return conftest::main (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_re2_main=yes -else +else $as_nop ac_cv_lib_re2_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_re2_main" >&5 -$as_echo "$ac_cv_lib_re2_main" >&6; } -if test "x$ac_cv_lib_re2_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_re2_main" >&5 +printf "%s\n" "$ac_cv_lib_re2_main" >&6; } +if test "x$ac_cv_lib_re2_main" = xyes +then : ac_have_re2=yes -else +else $as_nop ac_have_re2=no fi -for ac_header in re2/re2.h + for ac_header in re2/re2.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "re2/re2.h" "ac_cv_header_re2_re2_h" "$ac_includes_default" -if test "x$ac_cv_header_re2_re2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_RE2_RE2_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "re2/re2.h" "ac_cv_header_re2_re2_h" "$ac_includes_default" +if test "x$ac_cv_header_re2_re2_h" = xyes +then : + printf "%s\n" "#define HAVE_RE2_RE2_H 1" >>confdefs.h ac_have_re2_h=yes -else +else $as_nop ac_have_re2_h=no fi done - if test "x$ac_have_re2$ac_have_re2_h" = "xyesyes"; then have_re2=yes LIBS="$LIBS -lre2" - $as_echo "#define HAVE_RE2 1" >>confdefs.h + printf "%s\n" "#define HAVE_RE2 1" >>confdefs.h else have_re2=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hs_compile_multi in -lhs" >&5 -$as_echo_n "checking for hs_compile_multi in -lhs... " >&6; } -if ${ac_cv_lib_hs_hs_compile_multi+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hs_compile_multi in -lhs" >&5 +printf %s "checking for hs_compile_multi in -lhs... " >&6; } +if test ${ac_cv_lib_hs_hs_compile_multi+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lhs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char hs_compile_multi (); +namespace conftest { + extern "C" int hs_compile_multi (); +} int -main () +main (void) { -return hs_compile_multi (); +return conftest::hs_compile_multi (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_hs_hs_compile_multi=yes -else +else $as_nop ac_cv_lib_hs_hs_compile_multi=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hs_hs_compile_multi" >&5 -$as_echo "$ac_cv_lib_hs_hs_compile_multi" >&6; } -if test "x$ac_cv_lib_hs_hs_compile_multi" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hs_hs_compile_multi" >&5 +printf "%s\n" "$ac_cv_lib_hs_hs_compile_multi" >&6; } +if test "x$ac_cv_lib_hs_hs_compile_multi" = xyes +then : ac_have_hyperscan=yes -else +else $as_nop ac_have_hyperscan=no fi -for ac_header in hs/hs.h + for ac_header in hs/hs.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "hs/hs.h" "ac_cv_header_hs_hs_h" "$ac_includes_default" -if test "x$ac_cv_header_hs_hs_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_HS_HS_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "hs/hs.h" "ac_cv_header_hs_hs_h" "$ac_includes_default" +if test "x$ac_cv_header_hs_hs_h" = xyes +then : + printf "%s\n" "#define HAVE_HS_HS_H 1" >>confdefs.h ac_have_hyperscan_h=yes -else +else $as_nop ac_have_hyperscan_h=no fi done - if test "x$ac_have_hyperscan$ac_have_hyperscan_h" = "xyesyes"; then have_hyperscan=yes LIBS="$LIBS -lhs" - $as_echo "#define HAVE_HYPERSCAN 1" >>confdefs.h + printf "%s\n" "#define HAVE_HYPERSCAN 1" >>confdefs.h else have_hyperscan=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PAPI_start_counters" >&5 -$as_echo_n "checking for library containing PAPI_start_counters... " >&6; } -if ${ac_cv_search_PAPI_start_counters+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing PAPI_start_counters" >&5 +printf %s "checking for library containing PAPI_start_counters... " >&6; } +if test ${ac_cv_search_PAPI_start_counters+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char PAPI_start_counters (); +namespace conftest { + extern "C" int PAPI_start_counters (); +} int -main () +main (void) { -return PAPI_start_counters (); +return conftest::PAPI_start_counters (); ; return 0; } _ACEOF -for ac_lib in '' papi; do +for ac_lib in '' papi +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_PAPI_start_counters=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_PAPI_start_counters+:} false; then : + if test ${ac_cv_search_PAPI_start_counters+y} +then : break fi done -if ${ac_cv_search_PAPI_start_counters+:} false; then : +if test ${ac_cv_search_PAPI_start_counters+y} +then : -else +else $as_nop ac_cv_search_PAPI_start_counters=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PAPI_start_counters" >&5 -$as_echo "$ac_cv_search_PAPI_start_counters" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PAPI_start_counters" >&5 +printf "%s\n" "$ac_cv_search_PAPI_start_counters" >&6; } ac_res=$ac_cv_search_PAPI_start_counters -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_papi=yes -else +else $as_nop ac_have_papi=no fi -for ac_header in papi.h + for ac_header in papi.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default" -if test "x$ac_cv_header_papi_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PAPI_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default" +if test "x$ac_cv_header_papi_h" = xyes +then : + printf "%s\n" "#define HAVE_PAPI_H 1" >>confdefs.h ac_have_papi_h=yes -else +else $as_nop ac_have_papi_h=no fi done - if test "x$ac_have_papi_h$ac_have_papi" = "xyesyes"; then - $as_echo "#define HAVE_PAPI 1" >>confdefs.h + printf "%s\n" "#define HAVE_PAPI 1" >>confdefs.h have_papi=yes else have_papi=no fi -$as_echo "#define HAVE_JSON 1" >>confdefs.h +printf "%s\n" "#define HAVE_JSON 1" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpci" >&5 -$as_echo_n "checking for main in -lpci... " >&6; } -if ${ac_cv_lib_pci_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpci" >&5 +printf %s "checking for main in -lpci... " >&6; } +if test ${ac_cv_lib_pci_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpci $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - +namespace conftest { + extern "C" int main (); +} int -main () +main (void) { -return main (); +return conftest::main (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_pci_main=yes -else +else $as_nop ac_cv_lib_pci_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pci_main" >&5 -$as_echo "$ac_cv_lib_pci_main" >&6; } -if test "x$ac_cv_lib_pci_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pci_main" >&5 +printf "%s\n" "$ac_cv_lib_pci_main" >&6; } +if test "x$ac_cv_lib_pci_main" = xyes +then : ac_have_pci=yes -else +else $as_nop ac_have_pci=no fi -for ac_header in pci/pci.h + for ac_header in pci/pci.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default" -if test "x$ac_cv_header_pci_pci_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PCI_PCI_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default" +if test "x$ac_cv_header_pci_pci_h" = xyes +then : + printf "%s\n" "#define HAVE_PCI_PCI_H 1" >>confdefs.h ac_have_pci_h=yes -else +else $as_nop ac_have_pci_h=no fi done - if test "x$ac_have_pci$ac_have_pci_h" = "xyesyes"; then have_pci=yes LIBS="$LIBS -lpci" - $as_echo "#define HAVE_PCI 1" >>confdefs.h + printf "%s\n" "#define HAVE_PCI 1" >>confdefs.h else have_pci=no fi # Check whether --enable-rand-align was given. -if test "${enable_rand_align+set}" = set; then : +if test ${enable_rand_align+y} +then : enableval=$enable_rand_align; : -else +else $as_nop enable_rand_align=no fi if test "x$enable_rand_align" = "xyes"; then - $as_echo "#define HAVE_RAND_ALIGN 1" >>confdefs.h + printf "%s\n" "#define HAVE_RAND_ALIGN 1" >>confdefs.h DO_RAND_ALIGN=1 @@ -7593,23 +8200,26 @@ else fi # Check whether --enable-select was given. -if test "${enable_select+set}" = set; then : +if test ${enable_select+y} +then : enableval=$enable_select; : -else +else $as_nop enable_select="select poll kqueue" fi # Check whether --enable-poll was given. -if test "${enable_poll+set}" = set; then : +if test ${enable_poll+y} +then : enableval=$enable_poll; : -else +else $as_nop enable_poll=yes fi # Check whether --enable-kqueue was given. -if test "${enable_kqueue+set}" = set; then : +if test ${enable_kqueue+y} +then : enableval=$enable_kqueue; : -else +else $as_nop enable_kqueue=yes fi @@ -7621,146 +8231,160 @@ elif test "$enable_select" = no; then fi if echo "$enable_select" | grep select >/dev/null 2>&1; then -$as_echo "#define HAVE_ALLOW_SELECT 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOW_SELECT 1" >>confdefs.h fi if echo "$enable_select" | grep poll >/dev/null 2>&1 && test "$enable_poll" = yes; then -$as_echo "#define HAVE_ALLOW_POLL 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOW_POLL 1" >>confdefs.h fi if echo "$enable_select" | grep kqueue >/dev/null 2>&1 && test "$enable_kqueue" = yes; then -$as_echo "#define HAVE_ALLOW_KQUEUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOW_KQUEUE 1" >>confdefs.h fi # Check whether --enable-dpdk was given. -if test "${enable_dpdk+set}" = set; then : +if test ${enable_dpdk+y} +then : enableval=$enable_dpdk; : -else +else $as_nop enable_dpdk=no fi # Check whether --enable-dpdk-pool was given. -if test "${enable_dpdk_pool+set}" = set; then : +if test ${enable_dpdk_pool+y} +then : enableval=$enable_dpdk_pool; : -else +else $as_nop enable_dpdk_pool=no fi # Check whether --enable-dpdk-xchg was given. -if test "${enable_dpdk_xchg+set}" = set; then : +if test ${enable_dpdk_xchg+y} +then : enableval=$enable_dpdk_xchg; : -else +else $as_nop enable_dpdk_xchg=no fi # Check whether --enable-dpdk-packet was given. -if test "${enable_dpdk_packet+set}" = set; then : +if test ${enable_dpdk_packet+y} +then : enableval=$enable_dpdk_packet; : -else +else $as_nop enable_dpdk_packet=no fi # Check whether --enable-dpdk-softqueue was given. -if test "${enable_dpdk_softqueue+set}" = set; then : +if test ${enable_dpdk_softqueue+y} +then : enableval=$enable_dpdk_softqueue; : -else - $as_echo "#define HAVE_IQUEUE 1" >>confdefs.h +else $as_nop + printf "%s\n" "#define HAVE_IQUEUE 1" >>confdefs.h fi # Check whether --enable-flow-api was given. -if test "${enable_flow_api+set}" = set; then : +if test ${enable_flow_api+y} +then : enableval=$enable_flow_api; : -else +else $as_nop enable_flow_api=no fi # Check whether --enable-click-pool was given. -if test "${enable_click_pool+set}" = set; then : +if test ${enable_click_pool+y} +then : enableval=$enable_click_pool; : -else - enable_click_pool=yes;$as_echo "#define ALLOW_CLICK_PACKET_POOL 1" >>confdefs.h +else $as_nop + enable_click_pool=yes;printf "%s\n" "#define ALLOW_CLICK_PACKET_POOL 1" >>confdefs.h fi # Check whether --enable-pool-inlining was given. -if test "${enable_pool_inlining+set}" = set; then : +if test ${enable_pool_inlining+y} +then : enableval=$enable_pool_inlining; : -else - $as_echo "#define POOL_INLINING 1" >>confdefs.h +else $as_nop + printf "%s\n" "#define POOL_INLINING 1" >>confdefs.h fi # Check whether --enable-inlined-allanno was given. -if test "${enable_inlined_allanno+set}" = set; then : +if test ${enable_inlined_allanno+y} +then : enableval=$enable_inlined_allanno; : -else +else $as_nop enable_inlined_allanno=no fi if test "x$enable_inlined_allanno" = "xyes"; then - $as_echo "#define INLINED_ALLANNO 1" >>confdefs.h + printf "%s\n" "#define INLINED_ALLANNO 1" >>confdefs.h fi # Check whether --enable-zerocopy was given. -if test "${enable_zerocopy+set}" = set; then : +if test ${enable_zerocopy+y} +then : enableval=$enable_zerocopy; : -else +else $as_nop enable_zerocopy=yes fi if test "x$enable_zerocopy" = xyes; then - $as_echo "#define HAVE_ZEROCOPY 1" >>confdefs.h + printf "%s\n" "#define HAVE_ZEROCOPY 1" >>confdefs.h fi # Check whether --enable-clone was given. -if test "${enable_clone+set}" = set; then : - enableval=$enable_clone; $as_echo "#define CLICK_NOINDIRECT 1" >>confdefs.h +if test ${enable_clone+y} +then : + enableval=$enable_clone; printf "%s\n" "#define CLICK_NOINDIRECT 1" >>confdefs.h -else +else $as_nop : fi # Check whether --enable-rsspp was given. -if test "${enable_rsspp+set}" = set; then : +if test ${enable_rsspp+y} +then : enableval=$enable_rsspp; : -else +else $as_nop enable_rsspp=yes fi # Check whether --enable-linuxmodule was given. -if test "${enable_linuxmodule+set}" = set; then : +if test ${enable_linuxmodule+y} +then : enableval=$enable_linuxmodule; : -else +else $as_nop enable_linuxmodule=no; enable_linuxmodule_default=no fi # Check whether --enable-fixincludes was given. -if test "${enable_fixincludes+set}" = set; then : +if test ${enable_fixincludes+y} +then : enableval=$enable_fixincludes; : -else +else $as_nop enable_fixincludes=yes fi @@ -7771,21 +8395,18 @@ fi # Check whether --enable-multithread was given. -if test "${enable_multithread+set}" = set; then : +if test ${enable_multithread+y} +then : enableval=$enable_multithread; : -else +else $as_nop enable_multithread=no fi if test "$enable_multithread" != no -a "$enable_multithread" != 1; then - cat >>confdefs.h <<_ACEOF -#define __MTCLICK__ 1 -_ACEOF + printf "%s\n" "#define __MTCLICK__ 1" >>confdefs.h - cat >>confdefs.h <<_ACEOF -#define HAVE_LINUXMODULE_MULTITHREAD 1 -_ACEOF + printf "%s\n" "#define HAVE_LINUXMODULE_MULTITHREAD 1" >>confdefs.h saveflags="$CPPFLAGS" CPPFLAGS="$saveflags -D__MTCLICK__" @@ -7794,48 +8415,52 @@ else fi # Check whether --enable-warp9 was given. -if test "${enable_warp9+set}" = set; then : +if test ${enable_warp9+y} +then : enableval=$enable_warp9; : -else +else $as_nop enable_warp9=no fi if test "x$enable_warp9" = xyes; then - $as_echo "#define CLICK_WARP9 1" >>confdefs.h + printf "%s\n" "#define CLICK_WARP9 1" >>confdefs.h fi -$as_echo "#define HAVE_CLICKFS 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLICKFS 1" >>confdefs.h # Check whether --enable-kassert was given. -if test "${enable_kassert+set}" = set; then : +if test ${enable_kassert+y} +then : enableval=$enable_kassert; : -else +else $as_nop enable_kassert=no fi if test $enable_kassert = yes; then - $as_echo "#define HAVE_KERNEL_ASSERT 1" >>confdefs.h + printf "%s\n" "#define HAVE_KERNEL_ASSERT 1" >>confdefs.h fi # Check whether --enable-adaptive was given. -if test "${enable_adaptive+set}" = set; then : +if test ${enable_adaptive+y} +then : enableval=$enable_adaptive; : -else +else $as_nop enable_adaptive=no fi if test "x$enable_adaptive" = xyes; then - $as_echo "#define HAVE_ADAPTIVE_SCHEDULER 1" >>confdefs.h + printf "%s\n" "#define HAVE_ADAPTIVE_SCHEDULER 1" >>confdefs.h fi # Check whether --enable-linux-symbols was given. -if test "${enable_linux_symbols+set}" = set; then : +if test ${enable_linux_symbols+y} +then : enableval=$enable_linux_symbols; : -else +else $as_nop enable_linux_symbols=yes fi @@ -7848,31 +8473,34 @@ fi # Check whether --enable-bsdmodule was given. -if test "${enable_bsdmodule+set}" = set; then : +if test ${enable_bsdmodule+y} +then : enableval=$enable_bsdmodule; : -else +else $as_nop enable_bsdmodule=no fi # Check whether --enable-netisr was given. -if test "${enable_netisr+set}" = set; then : +if test ${enable_netisr+y} +then : enableval=$enable_netisr; : -else +else $as_nop enable_netisr=yes fi if test $enable_netisr = yes; then - $as_echo "#define BSD_NETISRSCHED 1" >>confdefs.h + printf "%s\n" "#define BSD_NETISRSCHED 1" >>confdefs.h fi # Check whether --enable-nsclick was given. -if test "${enable_nsclick+set}" = set; then : +if test ${enable_nsclick+y} +then : enableval=$enable_nsclick; : -else +else $as_nop enable_nsclick=no fi @@ -7880,42 +8508,47 @@ fi # Check whether --enable-minios was given. -if test "${enable_minios+set}" = set; then : +if test ${enable_minios+y} +then : enableval=$enable_minios; : -else +else $as_nop enable_minios=no fi # Check whether --with-xen was given. -if test "${with_xen+set}" = set; then : +if test ${with_xen+y} +then : withval=$with_xen; xenpath=$withval -else +else $as_nop xenpath=NONE fi # Check whether --with-minios was given. -if test "${with_minios+set}" = set; then : +if test ${with_minios+y} +then : withval=$with_minios; miniospath=$withval -else +else $as_nop miniospath=NONE fi # Check whether --with-newlib was given. -if test "${with_newlib+set}" = set; then : +if test ${with_newlib+y} +then : withval=$with_newlib; newlibpath=$withval -else +else $as_nop newlibpath=NONE fi # Check whether --with-lwip was given. -if test "${with_lwip+set}" = set; then : +if test ${with_lwip+y} +then : withval=$with_lwip; lwippath=$withval -else +else $as_nop lwippath=NONE fi @@ -7989,9 +8622,10 @@ fi # Check whether --with-linux was given. -if test "${with_linux+set}" = set; then : +if test ${with_linux+y} +then : withval=$with_linux; linuxpath=$withval -else +else $as_nop linuxpath=NONE fi @@ -7999,9 +8633,10 @@ test -z "$linuxpath" -o "$linuxpath" = yes && linuxpath=yes # Check whether --with-linux-map was given. -if test "${with_linux_map+set}" = set; then : +if test ${with_linux_map+y} +then : withval=$with_linux_map; linux_system_map=$withval; if test -z "$withval" -o "$withval" = yes; then linux_system_map=NONE; fi -else +else $as_nop linux_system_map=NONE fi @@ -8094,16 +8729,15 @@ fi -cat >>confdefs.h <<_ACEOF -#define LINUX_SRCDIR "${linux_srcdir}" -_ACEOF +printf "%s\n" "#define LINUX_SRCDIR \"${linux_srcdir}\"" >>confdefs.h # Check whether --enable-all-elements was given. -if test "${enable_all_elements+set}" = set; then : +if test ${enable_all_elements+y} +then : enableval=$enable_all_elements; fi @@ -8113,9 +8747,10 @@ element_groups="" # Check whether --enable-analysis was given. -if test "${enable_analysis+set}" = set; then : +if test ${enable_analysis+y} +then : enableval=$enable_analysis; -else +else $as_nop enable_analysis=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_analysis" = xNO -o "x$enable_analysis" = x \) && enable_analysis=yes @@ -8124,9 +8759,10 @@ if test "x$enable_analysis" = xyes; then fi # Check whether --enable-app was given. -if test "${enable_app+set}" = set; then : +if test ${enable_app+y} +then : enableval=$enable_app; -else +else $as_nop enable_app=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_app" = xNO -o "x$enable_app" = x \) && enable_app=yes @@ -8135,9 +8771,10 @@ if test "x$enable_app" = xyes; then fi # Check whether --enable-aqm was given. -if test "${enable_aqm+set}" = set; then : +if test ${enable_aqm+y} +then : enableval=$enable_aqm; -else +else $as_nop enable_aqm=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_aqm" = xNO -o "x$enable_aqm" = x \) && enable_aqm=yes @@ -8146,9 +8783,10 @@ if test "x$enable_aqm" = xyes; then fi # Check whether --enable-ethernet was given. -if test "${enable_ethernet+set}" = set; then : +if test ${enable_ethernet+y} +then : enableval=$enable_ethernet; -else +else $as_nop enable_ethernet=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_ethernet" = xNO -o "x$enable_ethernet" = x \) && enable_ethernet=yes @@ -8157,9 +8795,10 @@ if test "x$enable_ethernet" = xyes; then fi # Check whether --enable-etherswitch was given. -if test "${enable_etherswitch+set}" = set; then : +if test ${enable_etherswitch+y} +then : enableval=$enable_etherswitch; -else +else $as_nop enable_etherswitch=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_etherswitch" = xNO -o "x$enable_etherswitch" = x \) && enable_etherswitch=yes @@ -8168,9 +8807,10 @@ if test "x$enable_etherswitch" = xyes; then fi # Check whether --enable-flow was given. -if test "${enable_flow+set}" = set; then : +if test ${enable_flow+y} +then : enableval=$enable_flow; -else +else $as_nop enable_flow=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_flow" = xNO -o "x$enable_flow" = x \) -a "x$enable_batch" = xyes && enable_flow=yes @@ -8179,9 +8819,10 @@ if test "x$enable_flow" = xyes; then enable_flow=yes fi # Check whether --enable-ctx was given. -if test "${enable_ctx+set}" = set; then : +if test ${enable_ctx+y} +then : enableval=$enable_ctx; -else +else $as_nop enable_ctx=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_ctx" = xNO -o "x$enable_ctx" = x \) -a "x$enable_flow" = xyes && enable_ctx=yes @@ -8190,9 +8831,10 @@ if test "x$enable_ctx" = xyes; then enable_ctx=yes fi # Check whether --enable-grid was given. -if test "${enable_grid+set}" = set; then : +if test ${enable_grid+y} +then : enableval=$enable_grid; -else +else $as_nop enable_grid=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_grid" = xNO -o "x$enable_grid" = x \) && enable_grid=yes @@ -8201,9 +8843,10 @@ if test "x$enable_grid" = xyes; then fi # Check whether --enable-icmp was given. -if test "${enable_icmp+set}" = set; then : +if test ${enable_icmp+y} +then : enableval=$enable_icmp; -else +else $as_nop enable_icmp=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_icmp" = xNO -o "x$enable_icmp" = x \) && enable_icmp=yes @@ -8212,9 +8855,10 @@ if test "x$enable_icmp" = xyes; then fi # Check whether --enable-ip was given. -if test "${enable_ip+set}" = set; then : +if test ${enable_ip+y} +then : enableval=$enable_ip; -else +else $as_nop enable_ip=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_ip" = xNO -o "x$enable_ip" = x \) && enable_ip=yes @@ -8223,33 +8867,36 @@ if test "x$enable_ip" = xyes; then fi # Check whether --enable-ip6 was given. -if test "${enable_ip6+set}" = set; then : +if test ${enable_ip6+y} +then : enableval=$enable_ip6; -else +else $as_nop enable_ip6=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_ip6" = xNO -o "x$enable_ip6" = x \) && enable_ip6=yes if test "x$enable_ip6" = xyes; then : - $as_echo "#define HAVE_IP6 1" >>confdefs.h + printf "%s\n" "#define HAVE_IP6 1" >>confdefs.h fi # Check whether --enable-ipsec was given. -if test "${enable_ipsec+set}" = set; then : +if test ${enable_ipsec+y} +then : enableval=$enable_ipsec; -else +else $as_nop enable_ipsec=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_ipsec" = xNO -o "x$enable_ipsec" = x \) && enable_ipsec=yes if test "x$enable_ipsec" = xyes; then : - $as_echo "#define HAVE_IPSEC 1" >>confdefs.h + printf "%s\n" "#define HAVE_IPSEC 1" >>confdefs.h fi # Check whether --enable-local was given. -if test "${enable_local+set}" = set; then : +if test ${enable_local+y} +then : enableval=$enable_local; -else +else $as_nop enable_local=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_local" = xNO -o "x$enable_local" = x \) && enable_local=yes @@ -8258,9 +8905,10 @@ if test "x$enable_local" = xyes; then fi # Check whether --enable-radio was given. -if test "${enable_radio+set}" = set; then : +if test ${enable_radio+y} +then : enableval=$enable_radio; -else +else $as_nop enable_radio=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_radio" = xNO -o "x$enable_radio" = x \) && enable_radio=yes @@ -8269,9 +8917,10 @@ if test "x$enable_radio" = xyes; then fi # Check whether --enable-research was given. -if test "${enable_research+set}" = set; then : +if test ${enable_research+y} +then : enableval=$enable_research; -else +else $as_nop enable_research=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_research" = xNO -o "x$enable_research" = x \) && enable_research=yes @@ -8280,9 +8929,10 @@ if test "x$enable_research" = xyes; then fi # Check whether --enable-simple was given. -if test "${enable_simple+set}" = set; then : +if test ${enable_simple+y} +then : enableval=$enable_simple; -else +else $as_nop enable_simple=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_simple" = xNO -o "x$enable_simple" = x \) && enable_simple=yes @@ -8291,9 +8941,10 @@ if test "x$enable_simple" = xyes; then fi # Check whether --enable-standard was given. -if test "${enable_standard+set}" = set; then : +if test ${enable_standard+y} +then : enableval=$enable_standard; -else +else $as_nop enable_standard=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_standard" = xNO -o "x$enable_standard" = x \) && enable_standard=yes @@ -8302,9 +8953,10 @@ if test "x$enable_standard" = xyes; then fi # Check whether --enable-tcpudp was given. -if test "${enable_tcpudp+set}" = set; then : +if test ${enable_tcpudp+y} +then : enableval=$enable_tcpudp; -else +else $as_nop enable_tcpudp=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_tcpudp" = xNO -o "x$enable_tcpudp" = x \) && enable_tcpudp=yes @@ -8313,9 +8965,10 @@ if test "x$enable_tcpudp" = xyes; then fi # Check whether --enable-test was given. -if test "${enable_test+set}" = set; then : +if test ${enable_test+y} +then : enableval=$enable_test; -else +else $as_nop enable_test=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_test" = xNO -o "x$enable_test" = x \) && enable_test=yes @@ -8324,9 +8977,10 @@ if test "x$enable_test" = xyes; then fi # Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then : +if test ${enable_threads+y} +then : enableval=$enable_threads; -else +else $as_nop enable_threads=yes fi test "x$enable_all_elements" = xyes -a \( "x$enable_threads" = xNO -o "x$enable_threads" = x \) && enable_threads=yes @@ -8335,9 +8989,10 @@ if test "x$enable_threads" = xyes; then fi # Check whether --enable-tunnel was given. -if test "${enable_tunnel+set}" = set; then : +if test ${enable_tunnel+y} +then : enableval=$enable_tunnel; -else +else $as_nop enable_tunnel=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_tunnel" = xNO -o "x$enable_tunnel" = x \) && enable_tunnel=yes @@ -8346,9 +9001,10 @@ if test "x$enable_tunnel" = xyes; then fi # Check whether --enable-wifi was given. -if test "${enable_wifi+set}" = set; then : +if test ${enable_wifi+y} +then : enableval=$enable_wifi; -else +else $as_nop enable_wifi=NO fi test "x$enable_all_elements" = xyes -a \( "x$enable_wifi" = xNO -o "x$enable_wifi" = x \) && enable_wifi=yes @@ -8357,16 +9013,18 @@ if test "x$enable_wifi" = xyes; then fi # Check whether --enable-experimental was given. -if test "${enable_experimental+set}" = set; then : +if test ${enable_experimental+y} +then : enableval=$enable_experimental; : -else +else $as_nop enable_experimental=no fi # Check whether --enable-skip-elements was given. -if test "${enable_skip_elements+set}" = set; then : +if test ${enable_skip_elements+y} +then : enableval=$enable_skip_elements; : -else +else $as_nop enable_skip_elements=no fi @@ -8390,9 +9048,10 @@ fi # Check whether --with-freebsd was given. -if test "${with_freebsd+set}" = set; then : +if test ${with_freebsd+y} +then : withval=$with_freebsd; freebsddir=$withval; if test -z "$withval" -o "$withval" = yes; then freebsddir=/usr/src/sys,/usr/include; fi -else +else $as_nop freebsddir=NONE fi @@ -8401,14 +9060,14 @@ if test "x$freebsddir" = xNONE; then if test -d /usr/src/sys -a -d /usr/include; then freebsddir=/usr/src/sys,/usr/include elif test "x$enable_bsdmodule" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ========================================= Can't find /usr/src/sys and/or /usr/include, so I'm not compiling the bsdmodule driver. (You may need the --with-freebsd=DIR option.) =========================================" >&5 -$as_echo "$as_me: WARNING: +printf "%s\n" "$as_me: WARNING: ========================================= Can't find /usr/src/sys and/or /usr/include, so I'm not compiling @@ -8447,23 +9106,22 @@ and $freebsd_includedir contain FreeBSD kernel source? -cat >>confdefs.h <<_ACEOF -#define FREEBSD_INCLUDEDIR "${freebsd_includedir}" -_ACEOF +printf "%s\n" "#define FREEBSD_INCLUDEDIR \"${freebsd_includedir}\"" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are compiling for Linux" >&5 -$as_echo_n "checking whether we are compiling for Linux... " >&6; } -if ${ac_cv_under_linux+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are compiling for Linux" >&5 +printf %s "checking whether we are compiling for Linux... " >&6; } +if test ${ac_cv_under_linux+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __linux__ #error "fuckers! fuckers!" @@ -8473,15 +9131,16 @@ return 0; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_under_linux=yes -else +else $as_nop ac_cv_under_linux=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_under_linux" >&5 -$as_echo "$ac_cv_under_linux" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_under_linux" >&5 +printf "%s\n" "$ac_cv_under_linux" >&6; } @@ -8492,10 +9151,11 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" -if test "x$ac_cv_func_strerror" = xyes; then : - $as_echo "#define HAVE_STRERROR 1" >>confdefs.h +if test "x$ac_cv_func_strerror" = xyes +then : + printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h -else +else $as_nop case " $LIBOBJS " in *" strerror.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strerror.$ac_objext" @@ -8504,18 +9164,60 @@ esac fi +ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" +if test "x$ac_cv_func_random" = xyes +then : + printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h -for ac_func in random snprintf strnlen strtof strtold strtoul tcgetpgrp vsnprintf aligned_alloc -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" +if test "x$ac_cv_func_snprintf" = xyes +then : + printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" +if test "x$ac_cv_func_strnlen" = xyes +then : + printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" +if test "x$ac_cv_func_strtof" = xyes +then : + printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold" +if test "x$ac_cv_func_strtold" = xyes +then : + printf "%s\n" "#define HAVE_STRTOLD 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" +if test "x$ac_cv_func_strtoul" = xyes +then : + printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp" +if test "x$ac_cv_func_tcgetpgrp" = xyes +then : + printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" +if test "x$ac_cv_func_vsnprintf" = xyes +then : + printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "aligned_alloc" "ac_cv_func_aligned_alloc" +if test "x$ac_cv_func_aligned_alloc" = xyes +then : + printf "%s\n" "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h fi -done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -8527,22 +9229,24 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Check whether --enable-smaller-code was given. -if test "${enable_smaller_code+set}" = set; then : +if test ${enable_smaller_code+y} +then : enableval=$enable_smaller_code; : -else +else $as_nop enable_smaller_code=no fi if test "x$enable_smaller_code" = xyes; then -$as_echo "#define CLICK_OPTIMIZE_SIZE 1" >>confdefs.h +printf "%s\n" "#define CLICK_OPTIMIZE_SIZE 1" >>confdefs.h fi # Check whether --enable-int64 was given. -if test "${enable_int64+set}" = set; then : +if test ${enable_int64+y} +then : enableval=$enable_int64; : -else +else $as_nop enable_int64=yes fi @@ -8551,17 +9255,19 @@ fi # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if ${ac_cv_sizeof_int+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +printf %s "checking size of int... " >&6; } +if test ${ac_cv_sizeof_int+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_int" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (int) See \`config.log' for more details" "$LINENO" 5; } else @@ -8570,31 +9276,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +printf "%s\n" "$ac_cv_sizeof_int" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF +printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (long) See \`config.log' for more details" "$LINENO" 5; } else @@ -8603,31 +9309,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 -$as_echo_n "checking size of size_t... " >&6; } -if ${ac_cv_sizeof_size_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +printf %s "checking size of size_t... " >&6; } +if test ${ac_cv_sizeof_size_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_size_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (size_t) See \`config.log' for more details" "$LINENO" 5; } else @@ -8636,31 +9342,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 -$as_echo "$ac_cv_sizeof_size_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t -_ACEOF +printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 -$as_echo_n "checking size of ptrdiff_t... " >&6; } -if ${ac_cv_sizeof_ptrdiff_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 +printf %s "checking size of ptrdiff_t... " >&6; } +if test ${ac_cv_sizeof_ptrdiff_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_ptrdiff_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (ptrdiff_t) See \`config.log' for more details" "$LINENO" 5; } else @@ -8669,31 +9375,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 -$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 +printf "%s\n" "$ac_cv_sizeof_ptrdiff_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t -_ACEOF +printf "%s\n" "#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 -$as_echo_n "checking size of void *... " >&6; } -if ${ac_cv_sizeof_void_p+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 +printf %s "checking size of void *... " >&6; } +if test ${ac_cv_sizeof_void_p+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_void_p" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (void *) See \`config.log' for more details" "$LINENO" 5; } else @@ -8702,31 +9408,169 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 -$as_echo "$ac_cv_sizeof_void_p" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 +printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p -_ACEOF +printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 -$as_echo_n "checking whether char is unsigned... " >&6; } -if ${ac_cv_c_char_unsigned+:} false; then : - $as_echo_n "(cached) " >&6 + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 +printf %s "checking whether char is unsigned... " >&6; } +if test ${ac_cv_c_char_unsigned+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { static int test_array [1 - 2 * !(((char) -1) < 0)]; test_array [0] = 0; @@ -8736,72 +9580,77 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_c_char_unsigned=no -else +else $as_nop ac_cv_c_char_unsigned=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 -$as_echo "$ac_cv_c_char_unsigned" >&6; } -if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then - $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 +printf "%s\n" "$ac_cv_c_char_unsigned" >&6; } +if test $ac_cv_c_char_unsigned = yes; then + printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h fi if test x$ac_cv_header_inttypes_h = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t typedefs" >&5 -$as_echo_n "checking for uintXX_t typedefs... " >&6; } -if ${ac_cv_uint_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintXX_t typedefs" >&5 +printf %s "checking for uintXX_t typedefs... " >&6; } +if test ${ac_cv_uint_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <sys/types.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : + $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1 +then : ac_cv_uint_t=yes -else +else $as_nop ac_cv_uint_t=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_uint_t" >&5 -$as_echo "$ac_cv_uint_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_uint_t" >&5 +printf "%s\n" "$ac_cv_uint_t" >&6; } fi if test x$ac_cv_header_inttypes_h = xno -a "$ac_cv_uint_t" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t typedefs" >&5 -$as_echo_n "checking for u_intXX_t typedefs... " >&6; } -if ${ac_cv_u_int_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t typedefs" >&5 +printf %s "checking for u_intXX_t typedefs... " >&6; } +if test ${ac_cv_u_int_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <sys/types.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : + $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1 +then : ac_cv_u_int_t=yes -else +else $as_nop ac_cv_u_int_t=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u_int_t" >&5 -$as_echo "$ac_cv_u_int_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u_int_t" >&5 +printf "%s\n" "$ac_cv_u_int_t" >&6; } fi if test x$ac_cv_header_inttypes_h = xyes -o "$ac_cv_uint_t" = yes; then : elif test "$ac_cv_u_int_t" = yes; then -$as_echo "#define HAVE_U_INT_TYPES 1" >>confdefs.h +printf "%s\n" "#define HAVE_U_INT_TYPES 1" >>confdefs.h else as_fn_error $? " @@ -8813,16 +9662,18 @@ Neither uint32_t nor u_int32_t defined by <inttypes.h> or <sys/types.h>! fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether machine is indifferent to alignment" >&5 -$as_echo_n "checking whether machine is indifferent to alignment... " >&6; } -if ${ac_cv_alignment_indifferent+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether machine is indifferent to alignment" >&5 +printf %s "checking whether machine is indifferent to alignment... " >&6; } +if test ${ac_cv_alignment_indifferent+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$ac_cv_header_inttypes_h" = xyes; then inttypes_hdr='inttypes.h'; else inttypes_hdr='sys/types.h'; fi - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_alignment_indifferent=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$inttypes_hdr> @@ -8846,9 +9697,10 @@ int main(int argc, char *argv[]) { exit(0); } _ACEOF -if ac_fn_cxx_try_run "$LINENO"; then : +if ac_fn_cxx_try_run "$LINENO" +then : ac_cv_alignment_indifferent=yes -else +else $as_nop ac_cv_alignment_indifferent=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -8856,11 +9708,11 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignment_indifferent" >&5 -$as_echo "$ac_cv_alignment_indifferent" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignment_indifferent" >&5 +printf "%s\n" "$ac_cv_alignment_indifferent" >&6; } if test "x$ac_cv_alignment_indifferent" = xyes; then -$as_echo "#define HAVE_INDIFFERENT_ALIGNMENT 1" >>confdefs.h +printf "%s\n" "#define HAVE_INDIFFERENT_ALIGNMENT 1" >>confdefs.h fi if test "x$enable_int64" = xyes; then @@ -8868,17 +9720,19 @@ if test "x$enable_int64" = xyes; then # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 -$as_echo_n "checking size of long long... " >&6; } -if ${ac_cv_sizeof_long_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +printf %s "checking size of long long... " >&6; } +if test ${ac_cv_sizeof_long_long+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_long_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (long long) See \`config.log' for more details" "$LINENO" 5; } else @@ -8887,14 +9741,12 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 -$as_echo "$ac_cv_sizeof_long_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h @@ -8906,38 +9758,35 @@ _ACEOF fi ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" -if test "x$ac_cv_type_long_long" = xyes; then : +if test "x$ac_cv_type_long_long" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_LONG_LONG 1 -_ACEOF +printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h fi ac_fn_cxx_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "#include <$inttypes_hdr> " -if test "x$ac_cv_type_int64_t" = xyes; then : +if test "x$ac_cv_type_int64_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_INT64_T 1 -_ACEOF +printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h ac_cv_int64_t=yes -else +else $as_nop ac_cv_int64_t=no fi ac_fn_cxx_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <$inttypes_hdr> " -if test "x$ac_cv_type_uint64_t" = xyes; then : +if test "x$ac_cv_type_uint64_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_UINT64_T 1 -_ACEOF +printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h ac_cv_uint64_t=yes -else +else $as_nop ac_cv_uint64_t=no fi @@ -8953,15 +9802,16 @@ Compile with '--disable-int64'. =========================================" "$LINENO" 5 else -$as_echo "#define HAVE_INT64_TYPES 1" >>confdefs.h +printf "%s\n" "#define HAVE_INT64_TYPES 1" >>confdefs.h have_int64_types=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long and int64_t are the same type" >&5 -$as_echo_n "checking whether long and int64_t are the same type... " >&6; } -if ${ac_cv_long_64+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long and int64_t are the same type" >&5 +printf %s "checking whether long and int64_t are the same type... " >&6; } +if test ${ac_cv_long_64+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8976,33 +9826,35 @@ void f1(long) { void f1(int64_t) { // will fail if long and int64_t are the same type } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_long_64=no -else +else $as_nop ac_cv_long_64=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_64" >&5 -$as_echo "$ac_cv_long_64" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_64" >&5 +printf "%s\n" "$ac_cv_long_64" >&6; } if test $ac_cv_long_64 = yes; then -$as_echo "#define HAVE_INT64_IS_LONG_USERLEVEL 1" >>confdefs.h +printf "%s\n" "#define HAVE_INT64_IS_LONG_USERLEVEL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long and int64_t are the same type" >&5 -$as_echo_n "checking whether long long and int64_t are the same type... " >&6; } -if ${ac_cv_long_long_64+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long long and int64_t are the same type" >&5 +printf %s "checking whether long long and int64_t are the same type... " >&6; } +if test ${ac_cv_long_long_64+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9017,42 +9869,55 @@ void f1(long long) { void f1(int64_t) { // will fail if long long and int64_t are the same type } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_long_long_64=no -else +else $as_nop ac_cv_long_long_64=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long_64" >&5 -$as_echo "$ac_cv_long_long_64" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long_64" >&5 +printf "%s\n" "$ac_cv_long_long_64" >&6; } if test $ac_cv_long_long_64 = yes; then -$as_echo "#define HAVE_INT64_IS_LONG_LONG_USERLEVEL 1" >>confdefs.h +printf "%s\n" "#define HAVE_INT64_IS_LONG_LONG_USERLEVEL 1" >>confdefs.h fi fi fi +ac_header= ac_cache= +for ac_item in $ac_header_cxx_list +do + if test $ac_cache; then + ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi +done - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -9063,7 +9928,8 @@ else typedef int dummy; _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. @@ -9087,7 +9953,7 @@ if ac_fn_cxx_try_compile "$LINENO"; then : fi done fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -9096,7 +9962,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include <sys/param.h> int -main () +main (void) { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ @@ -9108,7 +9974,8 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9116,7 +9983,7 @@ if ac_fn_cxx_try_compile "$LINENO"; then : #include <sys/param.h> int -main () +main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian @@ -9126,14 +9993,15 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else +else $as_nop ac_cv_c_bigendian=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). @@ -9142,7 +10010,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include <limits.h> int -main () +main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros @@ -9152,14 +10020,15 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <limits.h> int -main () +main (void) { #ifndef _BIG_ENDIAN not big endian @@ -9169,31 +10038,33 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else +else $as_nop ac_cv_c_bigendian=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -short int ascii_mm[] = +unsigned short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - short int ascii_ii[] = + unsigned short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } - short int ebcdic_ii[] = + unsigned short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - short int ebcdic_mm[] = + unsigned short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; @@ -9201,14 +10072,15 @@ short int ascii_mm[] = extern int foo; int -main () +main (void) { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi @@ -9221,13 +10093,13 @@ if ac_fn_cxx_try_compile "$LINENO"; then : fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { /* Are we little or big endian? From Harbison&Steele. */ @@ -9243,9 +10115,10 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_run "$LINENO"; then : +if ac_fn_cxx_try_run "$LINENO" +then : ac_cv_c_bigendian=no -else +else $as_nop ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -9254,8 +10127,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) endian=CLICK_BIG_ENDIAN;; #( @@ -9269,40 +10142,40 @@ $as_echo "$ac_cv_c_bigendian" >&6; } esac -cat >>confdefs.h <<_ACEOF -#define CLICK_BYTE_ORDER $endian -_ACEOF +printf "%s\n" "#define CLICK_BYTE_ORDER $endian" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signed right shift is arithmetic" >&5 -$as_echo_n "checking whether signed right shift is arithmetic... " >&6; } -if ${ac_cv_arithmetic_right_shift+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether signed right shift is arithmetic" >&5 +printf %s "checking whether signed right shift is arithmetic... " >&6; } +if test ${ac_cv_arithmetic_right_shift+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int f(int x[((int) -1) >> 15]) { return x[0]; } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_arithmetic_right_shift=no -else +else $as_nop ac_cv_arithmetic_right_shift=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arithmetic_right_shift" >&5 -$as_echo "$ac_cv_arithmetic_right_shift" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arithmetic_right_shift" >&5 +printf "%s\n" "$ac_cv_arithmetic_right_shift" >&6; } if test $ac_cv_arithmetic_right_shift = yes; then -$as_echo "#define HAVE_ARITHMETIC_RIGHT_SHIFT 1" >>confdefs.h +printf "%s\n" "#define HAVE_ARITHMETIC_RIGHT_SHIFT 1" >>confdefs.h fi @@ -9312,11 +10185,12 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addressable va_list type" >&5 -$as_echo_n "checking for addressable va_list type... " >&6; } -if ${ac_cv_va_list_addr+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addressable va_list type" >&5 +printf %s "checking for addressable va_list type... " >&6; } +if test ${ac_cv_va_list_addr+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdarg.h> @@ -9332,409 +10206,439 @@ void h(int a, ...) { va_end(val); } int -main () +main (void) { h(2, 3, 4); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_va_list_addr=yes -else +else $as_nop ac_cv_va_list_addr=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_va_list_addr" >&5 -$as_echo "$ac_cv_va_list_addr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_va_list_addr" >&5 +printf "%s\n" "$ac_cv_va_list_addr" >&6; } if test "x$ac_cv_va_list_addr" = xyes; then -$as_echo "#define HAVE_ADDRESSABLE_VA_LIST 1" >>confdefs.h +printf "%s\n" "#define HAVE_ADDRESSABLE_VA_LIST 1" >>confdefs.h fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5 -$as_echo_n "checking for __builtin_ctz... " >&6; } -if ${ac_cv_have___builtin_ctz+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5 +printf %s "checking for __builtin_ctz... " >&6; } +if test ${ac_cv_have___builtin_ctz+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile int x = 11; int -main () +main (void) { int y = __builtin_ctz(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_ctz=yes -else +else $as_nop ac_cv_have___builtin_ctz=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ctz" >&5 -$as_echo "$ac_cv_have___builtin_ctz" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ctz" >&5 +printf "%s\n" "$ac_cv_have___builtin_ctz" >&6; } if test $ac_cv_have___builtin_ctz = yes; then -$as_echo "#define HAVE___BUILTIN_CTZ 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_CTZ 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 -$as_echo_n "checking for __builtin_clz... " >&6; } -if ${ac_cv_have___builtin_clz+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 +printf %s "checking for __builtin_clz... " >&6; } +if test ${ac_cv_have___builtin_clz+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile int x = 11; int -main () +main (void) { int y = __builtin_clz(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_clz=yes -else +else $as_nop ac_cv_have___builtin_clz=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5 -$as_echo "$ac_cv_have___builtin_clz" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5 +printf "%s\n" "$ac_cv_have___builtin_clz" >&6; } if test $ac_cv_have___builtin_clz = yes; then -$as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5 -$as_echo_n "checking for __builtin_clzl... " >&6; } -if ${ac_cv_have___builtin_clzl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5 +printf %s "checking for __builtin_clzl... " >&6; } +if test ${ac_cv_have___builtin_clzl+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile long x = 11; int -main () +main (void) { int y = __builtin_clzl(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_clzl=yes -else +else $as_nop ac_cv_have___builtin_clzl=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzl" >&5 -$as_echo "$ac_cv_have___builtin_clzl" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzl" >&5 +printf "%s\n" "$ac_cv_have___builtin_clzl" >&6; } if test $ac_cv_have___builtin_clzl = yes; then -$as_echo "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 -$as_echo_n "checking for __builtin_clzll... " >&6; } -if ${ac_cv_have___builtin_clzll+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 +printf %s "checking for __builtin_clzll... " >&6; } +if test ${ac_cv_have___builtin_clzll+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile long long x = 11; int -main () +main (void) { int y = __builtin_clzll(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_clzll=yes -else +else $as_nop ac_cv_have___builtin_clzll=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzll" >&5 -$as_echo "$ac_cv_have___builtin_clzll" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzll" >&5 +printf "%s\n" "$ac_cv_have___builtin_clzll" >&6; } if test $ac_cv_have___builtin_clzll = yes; then -$as_echo "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5 -$as_echo_n "checking for __builtin_ffs... " >&6; } -if ${ac_cv_have___builtin_ffs+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5 +printf %s "checking for __builtin_ffs... " >&6; } +if test ${ac_cv_have___builtin_ffs+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile int x = 11; int -main () +main (void) { int y = __builtin_ffs(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_ffs=yes -else +else $as_nop ac_cv_have___builtin_ffs=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffs" >&5 -$as_echo "$ac_cv_have___builtin_ffs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffs" >&5 +printf "%s\n" "$ac_cv_have___builtin_ffs" >&6; } if test $ac_cv_have___builtin_ffs = yes; then -$as_echo "#define HAVE___BUILTIN_FFS 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_FFS 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffsl" >&5 -$as_echo_n "checking for __builtin_ffsl... " >&6; } -if ${ac_cv_have___builtin_ffsl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffsl" >&5 +printf %s "checking for __builtin_ffsl... " >&6; } +if test ${ac_cv_have___builtin_ffsl+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile long x = 11; int -main () +main (void) { int y = __builtin_ffsl(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_ffsl=yes -else +else $as_nop ac_cv_have___builtin_ffsl=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffsl" >&5 -$as_echo "$ac_cv_have___builtin_ffsl" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffsl" >&5 +printf "%s\n" "$ac_cv_have___builtin_ffsl" >&6; } if test $ac_cv_have___builtin_ffsl = yes; then -$as_echo "#define HAVE___BUILTIN_FFSL 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_FFSL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffsll" >&5 -$as_echo_n "checking for __builtin_ffsll... " >&6; } -if ${ac_cv_have___builtin_ffsll+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffsll" >&5 +printf %s "checking for __builtin_ffsll... " >&6; } +if test ${ac_cv_have___builtin_ffsll+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile long long x = 11; int -main () +main (void) { int y = __builtin_ffsll(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_ffsll=yes -else +else $as_nop ac_cv_have___builtin_ffsll=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffsll" >&5 -$as_echo "$ac_cv_have___builtin_ffsll" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffsll" >&5 +printf "%s\n" "$ac_cv_have___builtin_ffsll" >&6; } if test $ac_cv_have___builtin_ffsll = yes; then -$as_echo "#define HAVE___BUILTIN_FFSLL 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_FFSLL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5 -$as_echo_n "checking for __builtin_popcount... " >&6; } -if ${ac_cv_have___builtin_popcount+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5 +printf %s "checking for __builtin_popcount... " >&6; } +if test ${ac_cv_have___builtin_popcount+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ volatile int x = 11; int -main () +main (void) { int y = __builtin_popcount(x); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___builtin_popcount=yes -else +else $as_nop ac_cv_have___builtin_popcount=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_popcount" >&5 -$as_echo "$ac_cv_have___builtin_popcount" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_popcount" >&5 +printf "%s\n" "$ac_cv_have___builtin_popcount" >&6; } if test $ac_cv_have___builtin_popcount = yes; then -$as_echo "#define HAVE___BUILTIN_POPCOUNT 1" >>confdefs.h +printf "%s\n" "#define HAVE___BUILTIN_POPCOUNT 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_synchronize" >&5 -$as_echo_n "checking for __sync_synchronize... " >&6; } -if ${ac_cv_have___sync_synchronize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __sync_synchronize" >&5 +printf %s "checking for __sync_synchronize... " >&6; } +if test ${ac_cv_have___sync_synchronize+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long x = 11; int -main () +main (void) { long *y = &x; __sync_synchronize(); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___sync_synchronize=yes -else +else $as_nop ac_cv_have___sync_synchronize=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_synchronize" >&5 -$as_echo "$ac_cv_have___sync_synchronize" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_synchronize" >&5 +printf "%s\n" "$ac_cv_have___sync_synchronize" >&6; } if test $ac_cv_have___sync_synchronize = yes; then -$as_echo "#define HAVE___SYNC_SYNCHRONIZE 1" >>confdefs.h +printf "%s\n" "#define HAVE___SYNC_SYNCHRONIZE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __sync_synchronize supports arguments" >&5 -$as_echo_n "checking whether __sync_synchronize supports arguments... " >&6; } -if ${ac_cv_have___sync_synchronize_args+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __sync_synchronize supports arguments" >&5 +printf %s "checking whether __sync_synchronize supports arguments... " >&6; } +if test ${ac_cv_have___sync_synchronize_args+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long x = 11; int -main () +main (void) { long *y = &x; __sync_synchronize(*y); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___sync_synchronize_args=yes -else +else $as_nop ac_cv_have___sync_synchronize_args=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_synchronize_args" >&5 -$as_echo "$ac_cv_have___sync_synchronize_args" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_synchronize_args" >&5 +printf "%s\n" "$ac_cv_have___sync_synchronize_args" >&6; } if test $ac_cv_have___sync_synchronize_args = yes; then -$as_echo "#define HAVE___SYNC_SYNCHRONIZE_ARGUMENTS 1" >>confdefs.h +printf "%s\n" "#define HAVE___SYNC_SYNCHRONIZE_ARGUMENTS 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __has_trivial_copy" >&5 -$as_echo_n "checking for __has_trivial_copy... " >&6; } -if ${ac_cv_have___has_trivial_copy+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __has_trivial_copy" >&5 +printf %s "checking for __has_trivial_copy... " >&6; } +if test ${ac_cv_have___has_trivial_copy+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { long x = 1; if (__has_trivial_copy(long)) x = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___has_trivial_copy=yes -else +else $as_nop ac_cv_have___has_trivial_copy=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___has_trivial_copy" >&5 -$as_echo "$ac_cv_have___has_trivial_copy" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___has_trivial_copy" >&5 +printf "%s\n" "$ac_cv_have___has_trivial_copy" >&6; } if test $ac_cv_have___has_trivial_copy = yes; then -$as_echo "#define HAVE___HAS_TRIVIAL_COPY 1" >>confdefs.h +printf "%s\n" "#define HAVE___HAS_TRIVIAL_COPY 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread storage class support" >&5 -$as_echo_n "checking for __thread storage class support... " >&6; } -if ${ac_cv_have___thread+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __thread storage class support" >&5 +printf %s "checking for __thread storage class support... " >&6; } +if test ${ac_cv_have___thread+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ __thread long x; int -main () +main (void) { x == 1; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_have___thread=yes -else +else $as_nop ac_cv_have___thread=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___thread" >&5 -$as_echo "$ac_cv_have___thread" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___thread" >&5 +printf "%s\n" "$ac_cv_have___thread" >&6; } if test $ac_cv_have___thread = yes; then -$as_echo "#define HAVE___THREAD_STORAGE_CLASS 1" >>confdefs.h +printf "%s\n" "#define HAVE___THREAD_STORAGE_CLASS 1" >>confdefs.h fi - for ac_func in ffs ffsl ffsll -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_cxx_check_func "$LINENO" "ffs" "ac_cv_func_ffs" +if test "x$ac_cv_func_ffs" = xyes +then : + printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h + +fi +ac_fn_cxx_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl" +if test "x$ac_cv_func_ffsl" = xyes +then : + printf "%s\n" "#define HAVE_FFSL 1" >>confdefs.h + +fi +ac_fn_cxx_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll" +if test "x$ac_cv_func_ffsll" = xyes +then : + printf "%s\n" "#define HAVE_FFSLL 1" >>confdefs.h fi -done @@ -9746,11 +10650,12 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_success=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5 -$as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; } -if ${ax_cv_cxx_compile_cxx17+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5 +printf %s "checking whether $CXX supports C++17 features by default... " >&6; } +if test ${ax_cv_cxx_compile_cxx17+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -10544,15 +11449,16 @@ namespace cxx17 _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx17=yes -else +else $as_nop ax_cv_cxx_compile_cxx17=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 -$as_echo "$ax_cv_cxx_compile_cxx17" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; } if test x$ax_cv_cxx_compile_cxx17 = xyes; then ac_success=yes fi @@ -10560,12 +11466,13 @@ $as_echo "$ax_cv_cxx_compile_cxx17" >&6; } if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do switch="-std=gnu++${alternative}" - cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 +printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -11361,17 +12268,18 @@ namespace cxx17 _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -11386,12 +12294,13 @@ $as_echo "$ac_res" >&6; } if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 +printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12187,17 +13096,18 @@ namespace cxx17 _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -12225,12 +13135,12 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test x$ac_success = xno; then HAVE_CXX17=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 -$as_echo "$as_me: No compiler with C++17 support was found" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 +printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;} else HAVE_CXX17=1 -$as_echo "#define HAVE_CXX17 1" >>confdefs.h +printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h fi @@ -12240,22 +13150,23 @@ $as_echo "#define HAVE_CXX17 1" >>confdefs.h - # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct timeval" >&5 -$as_echo_n "checking size of struct timeval... " >&6; } -if ${ac_cv_sizeof_struct_timeval+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (struct timeval))" "ac_cv_sizeof_struct_timeval" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct timeval" >&5 +printf %s "checking size of struct timeval... " >&6; } +if test ${ac_cv_sizeof_struct_timeval+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (struct timeval))" "ac_cv_sizeof_struct_timeval" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_struct_timeval" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (struct timeval) See \`config.log' for more details" "$LINENO" 5; } else @@ -12264,14 +13175,12 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timeval" >&5 -$as_echo "$ac_cv_sizeof_struct_timeval" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timeval" >&5 +printf "%s\n" "$ac_cv_sizeof_struct_timeval" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_STRUCT_TIMEVAL $ac_cv_sizeof_struct_timeval -_ACEOF +printf "%s\n" "#define SIZEOF_STRUCT_TIMEVAL $ac_cv_sizeof_struct_timeval" >>confdefs.h ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default @@ -12279,14 +13188,13 @@ ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ # include <time.h> #endif " -if test "x$ac_cv_type_struct_timespec" = xyes; then : +if test "x$ac_cv_type_struct_timespec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_TIMESPEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h have_timespec=yes -else +else $as_nop have_timespec=no fi @@ -12295,17 +13203,19 @@ if test "x$have_timespec" = xyes; then # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct timespec" >&5 -$as_echo_n "checking size of struct timespec... " >&6; } -if ${ac_cv_sizeof_struct_timespec+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (struct timespec))" "ac_cv_sizeof_struct_timespec" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct timespec" >&5 +printf %s "checking size of struct timespec... " >&6; } +if test ${ac_cv_sizeof_struct_timespec+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (struct timespec))" "ac_cv_sizeof_struct_timespec" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_struct_timespec" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (struct timespec) See \`config.log' for more details" "$LINENO" 5; } else @@ -12314,89 +13224,87 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timespec" >&5 -$as_echo "$ac_cv_sizeof_struct_timespec" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timespec" >&5 +printf "%s\n" "$ac_cv_sizeof_struct_timespec" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_STRUCT_TIMESPEC $ac_cv_sizeof_struct_timespec -_ACEOF +printf "%s\n" "#define SIZEOF_STRUCT_TIMESPEC $ac_cv_sizeof_struct_timespec" >>confdefs.h fi have_clock_gettime=yes; POSIX_CLOCK_LIBS= - ac_fn_cxx_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#ifdef HAVE_TIME_H + ac_fn_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#ifdef HAVE_TIME_H # include <time.h> #endif -" -if test "x$ac_cv_have_decl_clock_gettime" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_clock_gettime" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CLOCK_GETTIME $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_CLOCK_GETTIME $ac_have_decl" >>confdefs.h SAVELIBS="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 -$as_echo_n "checking for library containing clock_gettime... " >&6; } -if ${ac_cv_search_clock_gettime+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 +printf %s "checking for library containing clock_gettime... " >&6; } +if test ${ac_cv_search_clock_gettime+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char clock_gettime (); +namespace conftest { + extern "C" int clock_gettime (); +} int -main () +main (void) { -return clock_gettime (); +return conftest::clock_gettime (); ; return 0; } _ACEOF -for ac_lib in '' rt; do +for ac_lib in '' rt +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_cxx_try_link "$LINENO"; then : + if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_search_clock_gettime=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_clock_gettime+:} false; then : + if test ${ac_cv_search_clock_gettime+y} +then : break fi done -if ${ac_cv_search_clock_gettime+:} false; then : +if test ${ac_cv_search_clock_gettime+y} +then : -else +else $as_nop ac_cv_search_clock_gettime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 -$as_echo "$ac_cv_search_clock_gettime" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 +printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } ac_res=$ac_cv_search_clock_gettime -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" : -else +else $as_nop have_clock_gettime=no fi @@ -12405,22 +13313,24 @@ fi fi ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" -if test "x$ac_cv_func_clock_gettime" = xyes; then : +if test "x$ac_cv_func_clock_gettime" = xyes +then : : -else +else $as_nop have_clock_gettime=no fi LIBS="$SAVELIBS" if test "x$have_clock_gettime" = xyes; then -$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h fi # Check whether --enable-nanotimestamp was given. -if test "${enable_nanotimestamp+set}" = set; then : +if test ${enable_nanotimestamp+y} +then : enableval=$enable_nanotimestamp; fi @@ -12430,23 +13340,25 @@ if test "x$enable_nanotimestamp" = x -a "x$have_clock_gettime" = xyes; then fi if test "x$enable_nanotimestamp" = xyes; then -$as_echo "#define HAVE_NANOTIMESTAMP_ENABLED 1" >>confdefs.h +printf "%s\n" "#define HAVE_NANOTIMESTAMP_ENABLED 1" >>confdefs.h fi # Check whether --enable-simtime was given. -if test "${enable_simtime+set}" = set; then : - enableval=$enable_simtime; $as_echo "#define HAVE_SIMTIME 1" >>confdefs.h +if test ${enable_simtime+y} +then : + enableval=$enable_simtime; printf "%s\n" "#define HAVE_SIMTIME 1" >>confdefs.h -else +else $as_nop enable_simtime=no fi # Check whether --enable-user_timestamp was given. -if test "${enable_user_timestamp+set}" = set; then : +if test ${enable_user_timestamp+y} +then : enableval=$enable_user_timestamp; : -else +else $as_nop enable_user_timestamp=no fi @@ -12461,22 +13373,23 @@ User-based timestamp needs 64bits types ! =========================================" "$LINENO" 5 fi -$as_echo "#define HAVE_USER_TIMING 1" >>confdefs.h +printf "%s\n" "#define HAVE_USER_TIMING 1" >>confdefs.h fi # Check whether --enable-bound-port-transfer was given. -if test "${enable_bound_port_transfer+set}" = set; then : +if test ${enable_bound_port_transfer+y} +then : enableval=$enable_bound_port_transfer; : -else +else $as_nop enable_bound_port_transfer=no fi if test "$enable_bound_port_transfer" = yes; then -$as_echo "#define HAVE_BOUND_PORT_TRANSFER 1" >>confdefs.h +printf "%s\n" "#define HAVE_BOUND_PORT_TRANSFER 1" >>confdefs.h if test -z "${CXX##*clang*}" ; then as_fn_error $? "--enable-bound-port-transfer does not work with Clang! A better solution is to use click-devirtualize in any case. Remove this option or use GCC (you probably have your CXX environment variable set to clang++)." "$LINENO" 5 @@ -12484,11 +13397,12 @@ $as_echo "#define HAVE_BOUND_PORT_TRANSFER 1" >>confdefs.h CXXFLAGS="$CXXFLAGS -Wno-pmf-conversions" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -faligned-new" >&5 -$as_echo_n "checking whether C++ compiler accepts -faligned-new... " >&6; } -if ${ax_cv_check_cxxflags___faligned_new+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -faligned-new" >&5 +printf %s "checking whether C++ compiler accepts -faligned-new... " >&6; } +if test ${ax_cv_check_cxxflags___faligned_new+y} +then : + printf %s "(cached) " >&6 +else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS -faligned-new" @@ -12496,26 +13410,28 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_check_cxxflags___faligned_new=yes -else +else $as_nop ax_cv_check_cxxflags___faligned_new=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___faligned_new" >&5 -$as_echo "$ax_cv_check_cxxflags___faligned_new" >&6; } -if test "x$ax_cv_check_cxxflags___faligned_new" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___faligned_new" >&5 +printf "%s\n" "$ax_cv_check_cxxflags___faligned_new" >&6; } +if test "x$ax_cv_check_cxxflags___faligned_new" = xyes +then : have_aligned_new=yes -else +else $as_nop have_aligned_new=no fi @@ -12528,7 +13444,7 @@ if test "x$enable_flow" = xyes; then if test "x$enable_batch" != xyes; then as_fn_error $? "--enable-flow needs --enable-batch! Flow subsystem will be disabled." "$LINENO" 5 else - $as_echo "#define HAVE_FLOW 1" >>confdefs.h + printf "%s\n" "#define HAVE_FLOW 1" >>confdefs.h fi USE_FLOW=yes @@ -12536,7 +13452,7 @@ if test "x$enable_flow" = xyes; then fi if test "x$enable_ctx" = xyes; then - $as_echo "#define HAVE_CTX 1" >>confdefs.h + printf "%s\n" "#define HAVE_CTX 1" >>confdefs.h USE_CTX=yes @@ -12547,89 +13463,95 @@ fi # Check whether --enable-ctx-global-timeout was given. -if test "${enable_ctx_global_timeout+set}" = set; then : +if test ${enable_ctx_global_timeout+y} +then : enableval=$enable_ctx_global_timeout; : -else +else $as_nop enable_ctx_global_timeout=$enable_ctx fi if test "x$enable_ctx_global_timeout" = xyes; then - $as_echo "#define HAVE_CTX_GLOBAL_TIMEOUT 1" >>confdefs.h + printf "%s\n" "#define HAVE_CTX_GLOBAL_TIMEOUT 1" >>confdefs.h fi # Check whether --enable-flow-atomic was given. -if test "${enable_flow_atomic+set}" = set; then : +if test ${enable_flow_atomic+y} +then : enableval=$enable_flow_atomic; : -else +else $as_nop enable_flow_atomic=yes fi if test "x$enable_flow_atomic" = xyes; then - $as_echo "#define FLOW_ATOMIC_USE_COUNT 1" >>confdefs.h + printf "%s\n" "#define FLOW_ATOMIC_USE_COUNT 1" >>confdefs.h fi # Check whether --enable-flow-dynamic was given. -if test "${enable_flow_dynamic+set}" = set; then : +if test ${enable_flow_dynamic+y} +then : enableval=$enable_flow_dynamic; : -else +else $as_nop enable_flow_dynamic=no fi if test "x$enable_flow$enable_flow_dynamic" = xyesyes; then - $as_echo "#define HAVE_FLOW_DYNAMIC 1" >>confdefs.h + printf "%s\n" "#define HAVE_FLOW_DYNAMIC 1" >>confdefs.h fi # Check whether --enable-flow-structure was given. -if test "${enable_flow_structure+set}" = set; then : +if test ${enable_flow_structure+y} +then : enableval=$enable_flow_structure; : -else +else $as_nop enable_flow_structure=yes fi if test "x$enable_flow_structure" = xyes; then - $as_echo "#define FLOW_KEEP_STRUCTURE 1" >>confdefs.h + printf "%s\n" "#define FLOW_KEEP_STRUCTURE 1" >>confdefs.h fi # Check whether --enable-flow-hash was given. -if test "${enable_flow_hash+set}" = set; then : +if test ${enable_flow_hash+y} +then : enableval=$enable_flow_hash; : -else +else $as_nop enable_flow_hash="" fi if echo "$enable_flow_hash" | grep epoch >/dev/null 2>&1; then -$as_echo "#define FLOW_HASH_RELEASE 2" >>confdefs.h +printf "%s\n" "#define FLOW_HASH_RELEASE 2" >>confdefs.h elif echo "$enable_flow_hash" | grep keep >/dev/null 2>&1; then -$as_echo "#define FLOW_HASH_RELEASE 1" >>confdefs.h +printf "%s\n" "#define FLOW_HASH_RELEASE 1" >>confdefs.h elif echo "$enable_flow_hash" | grep reset >/dev/null 2>&1; then -$as_echo "#define FLOW_HASH_RELEASE 0" >>confdefs.h +printf "%s\n" "#define FLOW_HASH_RELEASE 0" >>confdefs.h else if test "x$enable_flow_structure" = xyes; then -$as_echo "#define FLOW_HASH_RELEASE 1" >>confdefs.h +printf "%s\n" "#define FLOW_HASH_RELEASE 1" >>confdefs.h else -$as_echo "#define FLOW_HASH_RELEASE 2" >>confdefs.h +printf "%s\n" "#define FLOW_HASH_RELEASE 2" >>confdefs.h fi fi # Check whether --enable-tools was given. -if test "${enable_tools+set}" = set; then : +if test ${enable_tools+y} +then : enableval=$enable_tools; : -else +else $as_nop enable_tools=mixed fi @@ -12650,11 +13572,12 @@ else do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_BUILD_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_BUILD_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$BUILD_CC"; then ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. else @@ -12662,11 +13585,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_BUILD_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -12677,11 +13604,11 @@ fi fi BUILD_CC=$ac_cv_prog_BUILD_CC if test -n "$BUILD_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 -$as_echo "$BUILD_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 +printf "%s\n" "$BUILD_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -12692,11 +13619,12 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_BUILD_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_BUILD_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$BUILD_CXX"; then ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. else @@ -12704,11 +13632,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_BUILD_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -12719,11 +13651,11 @@ fi fi BUILD_CXX=$ac_cv_prog_BUILD_CXX if test -n "$BUILD_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 -$as_echo "$BUILD_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 +printf "%s\n" "$BUILD_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -12739,11 +13671,12 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_BUILD_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_BUILD_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$BUILD_AR"; then ac_cv_prog_BUILD_AR="$BUILD_AR" # Let the user override the test. else @@ -12751,11 +13684,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_BUILD_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -12766,11 +13703,11 @@ fi fi BUILD_AR=$ac_cv_prog_BUILD_AR if test -n "$BUILD_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 -$as_echo "$BUILD_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 +printf "%s\n" "$BUILD_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -12781,11 +13718,12 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_BUILD_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_BUILD_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$BUILD_RANLIB"; then ac_cv_prog_BUILD_RANLIB="$BUILD_RANLIB" # Let the user override the test. else @@ -12793,11 +13731,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_BUILD_RANLIB="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -12808,11 +13750,11 @@ fi fi BUILD_RANLIB=$ac_cv_prog_BUILD_RANLIB if test -n "$BUILD_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_RANLIB" >&5 -$as_echo "$BUILD_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_RANLIB" >&5 +printf "%s\n" "$BUILD_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -12827,61 +13769,61 @@ fi # Check whether --enable-dynamic-linking was given. -if test "${enable_dynamic_linking+set}" = set; then : +if test ${enable_dynamic_linking+y} +then : enableval=$enable_dynamic_linking; : -else +else $as_nop enable_dynamic_linking=yes fi if test "x$enable_dynamic_linking" = xyes; then - DL_LIBS= - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); +namespace conftest { + extern "C" int dlopen (); +} int -main () +main (void) { -return dlopen (); +return conftest::dlopen (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : ac_have_dlopen=yes; DL_LIBS="-ldl" -else +else $as_nop ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +if test "x$ac_cv_func_dlopen" = xyes +then : ac_have_dlopen=yes -else +else $as_nop ac_have_dlopen=no fi @@ -12889,7 +13831,7 @@ fi if test "x$ac_have_dlopen" = xyes -a "x$ac_cv_header_dlfcn_h" = xyes; then -$as_echo "#define HAVE_DYNAMIC_LINKING 1" >>confdefs.h +printf "%s\n" "#define HAVE_DYNAMIC_LINKING 1" >>confdefs.h ac_have_dynamic_linking=yes fi @@ -12897,33 +13839,34 @@ $as_echo "#define HAVE_DYNAMIC_LINKING 1" >>confdefs.h DL_LDFLAGS= save_ldflags="$LDFLAGS"; LDFLAGS="$LDFLAGS -rdynamic" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts the -rdynamic flag" >&5 -$as_echo_n "checking whether linker accepts the -rdynamic flag... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether linker accepts the -rdynamic flag" >&5 +printf %s "checking whether linker accepts the -rdynamic flag... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_rdynamic=yes; DL_LDFLAGS=-rdynamic -else +else $as_nop ac_cv_rdynamic=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rdynamic" >&5 -$as_echo "$ac_cv_rdynamic" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rdynamic" >&5 +printf "%s\n" "$ac_cv_rdynamic" >&6; } LDFLAGS="$save_ldflags" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for building loadable modules" >&5 -$as_echo_n "checking compiler flags for building loadable modules... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler flags for building loadable modules" >&5 +printf %s "checking compiler flags for building loadable modules... " >&6; } LDMODULEFLAGS=-shared SOSUFFIX=so if test "x$ac_have_dynamic_linking" = xyes; then @@ -12932,8 +13875,8 @@ $as_echo_n "checking compiler flags for building loadable modules... " >&6; } SOSUFFIX=dylib fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDMODULEFLAGS" >&5 -$as_echo "$LDMODULEFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDMODULEFLAGS" >&5 +printf "%s\n" "$LDMODULEFLAGS" >&6; } @@ -12943,63 +13886,61 @@ $as_echo "$LDMODULEFLAGS" >&6; } CXX="$BUILD_CXX"; CXXCPP="$BUILD_CXX -E" unset ac_cv_header_dlfcn_h ac_cv_func_dlopen ac_cv_lib_dl_dlopen BUILD_DL_LIBS= - for ac_header in dlfcn.h + for ac_header in dlfcn.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h ac_build_have_dlfcn_h=yes -else +else $as_nop ac_build_have_dlfcn_h=no fi done - ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +if test "x$ac_cv_func_dlopen" = xyes +then : ac_build_have_dlopen=yes -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); +namespace conftest { + extern "C" int dlopen (); +} int -main () +main (void) { -return dlopen (); +return conftest::dlopen (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : ac_build_have_dlopen=yes; BUILD_DL_LIBS="-ldl" -else +else $as_nop ac_have_dlopen=no fi @@ -13011,28 +13952,29 @@ fi BUILD_DL_LDFLAGS= save_ldflags="$LDFLAGS"; LDFLAGS="$LDFLAGS -rdynamic" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts the -rdynamic flag" >&5 -$as_echo_n "checking whether linker accepts the -rdynamic flag... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether linker accepts the -rdynamic flag" >&5 +printf %s "checking whether linker accepts the -rdynamic flag... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_build_rdynamic=yes; BUILD_DL_LDFLAGS=-rdynamic -else +else $as_nop ac_cv_build_rdynamic=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_rdynamic" >&5 -$as_echo "$ac_cv_build_rdynamic" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_rdynamic" >&5 +printf "%s\n" "$ac_cv_build_rdynamic" >&6; } LDFLAGS="$save_ldflags" @@ -13066,19 +14008,13 @@ fi - - - - - - - if test x"$ac_cv_header_poll_h" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <poll.h> is emulated" >&5 -$as_echo_n "checking whether <poll.h> is emulated... " >&6; } -if ${ac_cv_emulated_poll_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <poll.h> is emulated" >&5 +printf %s "checking whether <poll.h> is emulated... " >&6; } +if test ${ac_cv_emulated_poll_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <poll.h> @@ -13087,84 +14023,88 @@ else #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_emulated_poll_h=no -else +else $as_nop ac_cv_emulated_poll_h=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_emulated_poll_h" >&5 -$as_echo "$ac_cv_emulated_poll_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_emulated_poll_h" >&5 +printf "%s\n" "$ac_cv_emulated_poll_h" >&6; } if test "x$ac_cv_emulated_poll_h" = xno; then -$as_echo "#define HAVE_POLL_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h fi fi -for ac_func in pselect sigaction -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +ac_fn_cxx_check_func "$LINENO" "pselect" "ac_cv_func_pselect" +if test "x$ac_cv_func_pselect" = xyes +then : + printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h + +fi +ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes +then : + printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h fi -done -for ac_func in kqueue + + for ac_func in kqueue do : ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" -if test "x$ac_cv_func_kqueue" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_KQUEUE 1 -_ACEOF +if test "x$ac_cv_func_kqueue" = xyes +then : + printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h have_kqueue=yes fi -done +done if test "x$have_kqueue" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EV_SET last argument is void *" >&5 -$as_echo_n "checking whether EV_SET last argument is void *... " >&6; } -if ${ac_cv_ev_set_udata_pointer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EV_SET last argument is void *" >&5 +printf %s "checking whether EV_SET last argument is void *... " >&6; } +if test ${ac_cv_ev_set_udata_pointer+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <sys/types.h> #include <sys/event.h> #include <sys/time.h> int -main () +main (void) { struct kevent kev; EV_SET(&kev, 1, EVFILT_WRITE, EV_ADD, 0, 0, (void *) &kev); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_ev_set_udata_pointer=yes -else +else $as_nop ac_cv_ev_set_udata_pointer=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ev_set_udata_pointer" >&5 -$as_echo "$ac_cv_ev_set_udata_pointer" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ev_set_udata_pointer" >&5 +printf "%s\n" "$ac_cv_ev_set_udata_pointer" >&6; } if test $ac_cv_ev_set_udata_pointer = yes; then -$as_echo "#define HAVE_EV_SET_UDATA_POINTER 1" >>confdefs.h +printf "%s\n" "#define HAVE_EV_SET_UDATA_POINTER 1" >>confdefs.h fi fi @@ -13179,11 +14119,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SOCKET_LIBS= if test "$enable_userlevel" = yes; then savelibs="$LIBS"; LIBS= - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 -$as_echo_n "checking for library containing gethostbyname... " >&6; } -if ${ac_cv_search_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +printf %s "checking for library containing gethostbyname... " >&6; } +if test ${ac_cv_search_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -13191,55 +14132,58 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char gethostbyname (); int -main () +main (void) { return gethostbyname (); ; return 0; } _ACEOF -for ac_lib in '' nsl; do +for ac_lib in '' nsl +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $savelibs $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_gethostbyname=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_gethostbyname+:} false; then : + if test ${ac_cv_search_gethostbyname+y} +then : break fi done -if ${ac_cv_search_gethostbyname+:} false; then : +if test ${ac_cv_search_gethostbyname+y} +then : -else +else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 -$as_echo "$ac_cv_search_gethostbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 -$as_echo_n "checking for library containing connect... " >&6; } -if ${ac_cv_search_connect+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 +printf %s "checking for library containing connect... " >&6; } +if test ${ac_cv_search_connect+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -13247,82 +14191,86 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char connect (); int -main () +main (void) { return connect (); ; return 0; } _ACEOF -for ac_lib in '' socket; do +for ac_lib in '' socket +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $savelibs $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_connect=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_connect+:} false; then : + if test ${ac_cv_search_connect+y} +then : break fi done -if ${ac_cv_search_connect+:} false; then : +if test ${ac_cv_search_connect+y} +then : -else +else $as_nop ac_cv_search_connect=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 -$as_echo "$ac_cv_search_connect" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 +printf "%s\n" "$ac_cv_search_connect" >&6; } ac_res=$ac_cv_search_connect -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi SOCKET_LIBS="$LIBS"; LIBS="$savelibs" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether accept() uses socklen_t" >&5 -$as_echo_n "checking whether accept() uses socklen_t... " >&6; } -if ${ac_cv_accept_socklen_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether accept() uses socklen_t" >&5 +printf %s "checking whether accept() uses socklen_t... " >&6; } +if test ${ac_cv_accept_socklen_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <sys/types.h> #include <sys/socket.h> int -main () +main (void) { socklen_t sl; (void) accept(0, (struct sockaddr *) 0, &sl); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_accept_socklen_t=yes -else +else $as_nop ac_cv_accept_socklen_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept_socklen_t" >&5 -$as_echo "$ac_cv_accept_socklen_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept_socklen_t" >&5 +printf "%s\n" "$ac_cv_accept_socklen_t" >&6; } if test "$ac_cv_accept_socklen_t" = yes; then -$as_echo "#define HAVE_ACCEPT_SOCKLEN_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_ACCEPT_SOCKLEN_T 1" >>confdefs.h fi fi @@ -13343,11 +14291,12 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file support in C library" >&5 -$as_echo_n "checking for large file support in C library... " >&6; } -if ${ac_cv_large_file_support+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for large file support in C library" >&5 +printf %s "checking for large file support in C library... " >&6; } +if test ${ac_cv_large_file_support+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGEFILE_SOURCE 1 @@ -13361,25 +14310,26 @@ void h(off_t a) { lseek(fd, a, 0); } int -main () +main (void) { h(15); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_large_file_support=yes -else +else $as_nop ac_cv_large_file_support=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_large_file_support" >&5 -$as_echo "$ac_cv_large_file_support" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_large_file_support" >&5 +printf "%s\n" "$ac_cv_large_file_support" >&6; } if test "x$ac_cv_large_file_support" = xyes; then -$as_echo "#define HAVE_LARGE_FILE_SUPPORT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LARGE_FILE_SUPPORT 1" >>confdefs.h fi @@ -13387,23 +14337,25 @@ $as_echo "#define HAVE_LARGE_FILE_SUPPORT 1" >>confdefs.h # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 -$as_echo_n "checking size of off_t... " >&6; } -if ${ac_cv_sizeof_off_t+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 +printf %s "checking size of off_t... " >&6; } +if test ${ac_cv_sizeof_off_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "#if HAVE_LARGE_FILE_SUPPORT && HAVE_INT64_TYPES # define _LARGEFILE_SOURCE 1 # define _FILE_OFFSET_BITS 64 #endif #include <stdio.h> #include <sys/types.h> -"; then : +" +then : -else +else $as_nop if test "$ac_cv_type_off_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { 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 77 "cannot compute sizeof (off_t) See \`config.log' for more details" "$LINENO" 5; } else @@ -13412,14 +14364,12 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 -$as_echo "$ac_cv_sizeof_off_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 +printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t -_ACEOF +printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h @@ -13435,30 +14385,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - - -for ac_func in getpagesize -do : - ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" -if test "x$ac_cv_func_getpagesize" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF - -fi +ac_func= +for ac_item in $ac_func_c_list +do + if test $ac_func; then + ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func + if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then + echo "#define $ac_item 1" >> confdefs.h + fi + ac_func= + else + ac_func=$ac_item + fi done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 -$as_echo_n "checking for working mmap... " >&6; } -if ${ac_cv_func_mmap_fixed_mapped+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_mmap_fixed_mapped=no -else + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +printf %s "checking for working mmap... " >&6; } +if test ${ac_cv_func_mmap_fixed_mapped+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : + case "$host_os" in # (( + # Guess yes on platforms where we know the result. + linux*) ac_cv_func_mmap_fixed_mapped=yes ;; + # If we don't know, assume the worst. + *) ac_cv_func_mmap_fixed_mapped=no ;; + esac +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -13490,10 +14446,6 @@ $ac_includes_default #include <fcntl.h> #include <sys/mman.h> -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif - /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef _SC_PAGESIZE @@ -13527,7 +14479,7 @@ char *malloc (); #endif /* no HAVE_GETPAGESIZE */ int -main () +main (void) { char *data, *data2, *data3; const char *cdata2; @@ -13600,9 +14552,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_mmap_fixed_mapped=yes -else +else $as_nop ac_cv_func_mmap_fixed_mapped=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -13610,11 +14563,11 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 -$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then -$as_echo "#define HAVE_MMAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt @@ -13625,31 +14578,25 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -for ac_func in madvise -do : - ac_fn_cxx_check_func "$LINENO" "madvise" "ac_cv_func_madvise" -if test "x$ac_cv_func_madvise" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MADVISE 1 -_ACEOF +ac_fn_cxx_check_func "$LINENO" "madvise" "ac_cv_func_madvise" +if test "x$ac_cv_func_madvise" = xyes +then : + printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h fi -done -ac_fn_cxx_check_decl "$LINENO" "madvise" "ac_cv_have_decl_madvise" "#if HAVE_SYS_MMAN_H +ac_fn_check_decl "$LINENO" "madvise" "ac_cv_have_decl_madvise" "#if HAVE_SYS_MMAN_H #include <sys/types.h> #include <sys/mman.h> #endif -" -if test "x$ac_cv_have_decl_madvise" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_madvise" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MADVISE $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_MADVISE $ac_have_decl" >>confdefs.h @@ -13673,14 +14620,14 @@ if test "$linux_system_map" = NONE; then fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux System.map" >&5 -$as_echo_n "checking for Linux System.map... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux System.map" >&5 +printf %s "checking for Linux System.map... " >&6; } if test -r "$linux_system_map"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linux_system_map" >&5 -$as_echo "$linux_system_map" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $linux_system_map" >&5 +printf "%s\n" "$linux_system_map" >&6; } elif test -f "$linux_system_map"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linux_system_map (unreadable)" >&5 -$as_echo "$linux_system_map (unreadable)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $linux_system_map (unreadable)" >&5 +printf "%s\n" "$linux_system_map (unreadable)" >&6; } as_fn_error $? " ========================================= @@ -13691,7 +14638,7 @@ or use the --with-linux=DIR and/or --with-linux-map=MAP options. =========================================" "$LINENO" 5 else if test "x$enable_linuxmodule_default" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ========================================= Can't find Linux System.map file $linux_system_map, @@ -13699,7 +14646,7 @@ so I won't compile the linuxmodule driver. (You may need the --with-linux=DIR and/or --with-linux-map=MAP options.) =========================================" >&5 -$as_echo "$as_me: WARNING: +printf "%s\n" "$as_me: WARNING: ========================================= Can't find Linux System.map file $linux_system_map, @@ -13727,20 +14674,20 @@ fi if test $ac_have_linux_kernel = y; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux version" >&5 -$as_echo_n "checking Linux version... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Linux version" >&5 +printf %s "checking Linux version... " >&6; } linuxpath_makefile=`find_linuxpath Makefile` linux_version=`grep '^VERSION[ ]*=[ ]*[0-9][0-9]*[ ]*$' "$linuxpath_makefile" | tr -c -d 0-9` linux_patchlevel=`grep '^PATCHLEVEL[ ]*=[ ]*[0-9][0-9]*[ ]*$' "$linuxpath_makefile" | tr -c -d 0-9` linux_sublevel=`grep '^SUBLEVEL[ ]*=[ ]*[0-9][0-9]*[ ]*$' "$linuxpath_makefile" | tr -c -d 0-9` if test -n "$linux_version" -a -n "$linux_patchlevel" -a -z "$linux_sublevel"; then linux_sublevel=0; fi if test -n "$linux_version" -a -n "$linux_patchlevel" -a -n "$linux_sublevel"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linux_version.$linux_patchlevel.$linux_sublevel" >&5 -$as_echo "$linux_version.$linux_patchlevel.$linux_sublevel" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $linux_version.$linux_patchlevel.$linux_sublevel" >&5 +printf "%s\n" "$linux_version.$linux_patchlevel.$linux_sublevel" >&6; } linux_version_code=`expr $linux_version '*' 65536 + $linux_patchlevel '*' 256 + $linux_sublevel` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 -$as_echo "unknown" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 +printf "%s\n" "unknown" >&6; } linux_version_code=0 fi @@ -13748,7 +14695,7 @@ LINUXMODULE_2_6=0 if test "$linux_version.$linux_patchlevel" = 2.6 -o "$linux_version" -ge 3; then LINUXMODULE_2_6=1 -$as_echo "#define HAVE_LINUXMODULE_2_6 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUXMODULE_2_6 1" >>confdefs.h fi if test "$LINUXMODULE_2_6" = 0; then @@ -13762,211 +14709,224 @@ Update your Linux or try an older version of Click. fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Click Linux kernel extensions" >&5 -$as_echo_n "checking for Click Linux kernel extensions... " >&6; } -if ${ac_cv_click_kernel+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Click Linux kernel extensions" >&5 +printf %s "checking for Click Linux kernel extensions... " >&6; } +if test ${ac_cv_click_kernel+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "register_net_in" $linux_system_map >/dev/null 2>&1; then ac_cv_click_kernel=yes else ac_cv_click_kernel=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_click_kernel" >&5 -$as_echo "$ac_cv_click_kernel" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_click_kernel" >&5 +printf "%s\n" "$ac_cv_click_kernel" >&6; } if test $ac_cv_click_kernel = yes; then - $as_echo "#define HAVE_CLICK_KERNEL 1" >>confdefs.h + printf "%s\n" "#define HAVE_CLICK_KERNEL 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Click Linux kernel extensions for transmit notification" >&5 -$as_echo_n "checking for Click Linux kernel extensions for transmit notification... " >&6; } -if ${ac_cv_click_kernel_tx_notify+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Click Linux kernel extensions for transmit notification" >&5 +printf %s "checking for Click Linux kernel extensions for transmit notification... " >&6; } +if test ${ac_cv_click_kernel_tx_notify+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "register_net_tx" $linux_system_map >/dev/null 2>&1; then ac_cv_click_kernel_tx_notify=yes else ac_cv_click_kernel_tx_notify=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_click_kernel_tx_notify" >&5 -$as_echo "$ac_cv_click_kernel_tx_notify" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_click_kernel_tx_notify" >&5 +printf "%s\n" "$ac_cv_click_kernel_tx_notify" >&6; } if test $ac_cv_click_kernel_tx_notify = yes; then - $as_echo "#define HAVE_CLICK_KERNEL_TX_NOTIFY 1" >>confdefs.h + printf "%s\n" "#define HAVE_CLICK_KERNEL_TX_NOTIFY 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for read_net_skbcount kernel extension" >&5 -$as_echo_n "checking for read_net_skbcount kernel extension... " >&6; } -if ${ac_cv_linux_read_net_skbcount+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for read_net_skbcount kernel extension" >&5 +printf %s "checking for read_net_skbcount kernel extension... " >&6; } +if test ${ac_cv_linux_read_net_skbcount+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "read_net_skbcount" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_read_net_skbcount=yes else ac_cv_linux_read_net_skbcount=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_read_net_skbcount" >&5 -$as_echo "$ac_cv_linux_read_net_skbcount" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_read_net_skbcount" >&5 +printf "%s\n" "$ac_cv_linux_read_net_skbcount" >&6; } if test $ac_cv_linux_read_net_skbcount = yes; then - $as_echo "#define HAVE_LINUX_READ_NET_SKBCOUNT 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_READ_NET_SKBCOUNT 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlen kernel symbol" >&5 -$as_echo_n "checking for strlen kernel symbol... " >&6; } -if ${ac_cv_linux_strlen_exposed+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strlen kernel symbol" >&5 +printf %s "checking for strlen kernel symbol... " >&6; } +if test ${ac_cv_linux_strlen_exposed+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep ' strlen' $linux_system_map >/dev/null 2>&1; then ac_cv_linux_strlen_exposed=yes else ac_cv_linux_strlen_exposed=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_strlen_exposed" >&5 -$as_echo "$ac_cv_linux_strlen_exposed" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_strlen_exposed" >&5 +printf "%s\n" "$ac_cv_linux_strlen_exposed" >&6; } if test $ac_cv_linux_strlen_exposed = yes; then - $as_echo "#define HAVE_LINUX_STRLEN_EXPOSED 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_STRLEN_EXPOSED 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tulip_interrupt_hook kernel symbol" >&5 -$as_echo_n "checking for tulip_interrupt_hook kernel symbol... " >&6; } -if ${ac_cv_linux_tulip_intr_hook+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tulip_interrupt_hook kernel symbol" >&5 +printf %s "checking for tulip_interrupt_hook kernel symbol... " >&6; } +if test ${ac_cv_linux_tulip_intr_hook+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep ' tulip_interrupt_hook' $linux_system_map >/dev/null 2>&1; then ac_cv_linux_tulip_intr_hook=yes else ac_cv_linux_tulip_intr_hook=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_tulip_intr_hook" >&5 -$as_echo "$ac_cv_linux_tulip_intr_hook" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_tulip_intr_hook" >&5 +printf "%s\n" "$ac_cv_linux_tulip_intr_hook" >&6; } if test $ac_cv_linux_tulip_intr_hook = yes; then - $as_echo "#define HAVE_LINUX_TULIP_INTERRUPT_HOOK 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_TULIP_INTERRUPT_HOOK 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for files_lock kernel symbol" >&5 -$as_echo_n "checking for files_lock kernel symbol... " >&6; } -if ${ac_cv_linux_files_lock+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for files_lock kernel symbol" >&5 +printf %s "checking for files_lock kernel symbol... " >&6; } +if test ${ac_cv_linux_files_lock+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_files_lock" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_files_lock=yes else ac_cv_linux_files_lock=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_files_lock" >&5 -$as_echo "$ac_cv_linux_files_lock" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_files_lock" >&5 +printf "%s\n" "$ac_cv_linux_files_lock" >&6; } if test $ac_cv_linux_files_lock = yes; then - $as_echo "#define HAVE_LINUX_FILES_LOCK 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_FILES_LOCK 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for files_lglock kernel symbol" >&5 -$as_echo_n "checking for files_lglock kernel symbol... " >&6; } -if ${ac_cv_linux_files_lglock+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for files_lglock kernel symbol" >&5 +printf %s "checking for files_lglock kernel symbol... " >&6; } +if test ${ac_cv_linux_files_lglock+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_files_lglock" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_files_lglock=yes else ac_cv_linux_files_lglock=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_files_lglock" >&5 -$as_echo "$ac_cv_linux_files_lglock" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_files_lglock" >&5 +printf "%s\n" "$ac_cv_linux_files_lglock" >&6; } if test $ac_cv_linux_files_lglock = yes; then - $as_echo "#define HAVE_LINUX_FILES_LGLOCK 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_FILES_LGLOCK 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sb_lock kernel symbol" >&5 -$as_echo_n "checking for sb_lock kernel symbol... " >&6; } -if ${ac_cv_linux_sb_lock+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sb_lock kernel symbol" >&5 +printf %s "checking for sb_lock kernel symbol... " >&6; } +if test ${ac_cv_linux_sb_lock+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_sb_lock" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_sb_lock=yes else ac_cv_linux_sb_lock=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_sb_lock" >&5 -$as_echo "$ac_cv_linux_sb_lock" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_sb_lock" >&5 +printf "%s\n" "$ac_cv_linux_sb_lock" >&6; } if test $ac_cv_linux_sb_lock = yes; then - $as_echo "#define HAVE_LINUX_SB_LOCK 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_SB_LOCK 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_ioctl kernel symbol" >&5 -$as_echo_n "checking for dev_ioctl kernel symbol... " >&6; } -if ${ac_cv_linux_dev_ioctl+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dev_ioctl kernel symbol" >&5 +printf %s "checking for dev_ioctl kernel symbol... " >&6; } +if test ${ac_cv_linux_dev_ioctl+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_dev_ioctl" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_dev_ioctl=yes else ac_cv_linux_dev_ioctl=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_dev_ioctl" >&5 -$as_echo "$ac_cv_linux_dev_ioctl" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_dev_ioctl" >&5 +printf "%s\n" "$ac_cv_linux_dev_ioctl" >&6; } if test $ac_cv_linux_dev_ioctl = yes; then - $as_echo "#define HAVE_LINUX_DEV_IOCTL 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_DEV_IOCTL 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for devinet_ioctl kernel symbol" >&5 -$as_echo_n "checking for devinet_ioctl kernel symbol... " >&6; } -if ${ac_cv_linux_devinet_ioctl+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for devinet_ioctl kernel symbol" >&5 +printf %s "checking for devinet_ioctl kernel symbol... " >&6; } +if test ${ac_cv_linux_devinet_ioctl+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_devinet_ioctl" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_devinet_ioctl=yes else ac_cv_linux_devinet_ioctl=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_devinet_ioctl" >&5 -$as_echo "$ac_cv_linux_devinet_ioctl" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_devinet_ioctl" >&5 +printf "%s\n" "$ac_cv_linux_devinet_ioctl" >&6; } if test $ac_cv_linux_devinet_ioctl = yes; then - $as_echo "#define HAVE_LINUX_DEVINET_IOCTL 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_DEVINET_IOCTL 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ioctl kernel symbol" >&5 -$as_echo_n "checking for inet_ioctl kernel symbol... " >&6; } -if ${ac_cv_linux_inet_ioctl+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ioctl kernel symbol" >&5 +printf %s "checking for inet_ioctl kernel symbol... " >&6; } +if test ${ac_cv_linux_inet_ioctl+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_inet_ioctl" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_inet_ioctl=yes else ac_cv_linux_inet_ioctl=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_inet_ioctl" >&5 -$as_echo "$ac_cv_linux_inet_ioctl" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_inet_ioctl" >&5 +printf "%s\n" "$ac_cv_linux_inet_ioctl" >&6; } if test $ac_cv_linux_inet_ioctl = yes; then - $as_echo "#define HAVE_LINUX_INET_IOCTL 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_INET_IOCTL 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ctl_sock_create kernel symbol" >&5 -$as_echo_n "checking for inet_ctl_sock_create kernel symbol... " >&6; } -if ${ac_cv_linux_inet_ctl_sock_create+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ctl_sock_create kernel symbol" >&5 +printf %s "checking for inet_ctl_sock_create kernel symbol... " >&6; } +if test ${ac_cv_linux_inet_ctl_sock_create+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_inet_ctl_sock_create" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_inet_ctl_sock_create=yes else ac_cv_linux_inet_ctl_sock_create=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_inet_ctl_sock_create" >&5 -$as_echo "$ac_cv_linux_inet_ctl_sock_create" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_inet_ctl_sock_create" >&5 +printf "%s\n" "$ac_cv_linux_inet_ctl_sock_create" >&6; } if test $ac_cv_linux_inet_ctl_sock_create = yes; then - $as_echo "#define HAVE_LINUX_INET_CTL_SOCK_CREATE 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_INET_CTL_SOCK_CREATE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for <linux/ktime.h>" >&5 -$as_echo_n "checking for <linux/ktime.h>... " >&6; } -if ${ac_cv_linux_ktime_h+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for <linux/ktime.h>" >&5 +printf %s "checking for <linux/ktime.h>... " >&6; } +if test ${ac_cv_linux_ktime_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep ktime_t `find_linuxpath include/linux/ktime.h` >/dev/null 2>&1; then ac_cv_linux_ktime_h=yes else ac_cv_linux_ktime_h=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_ktime_h" >&5 -$as_echo "$ac_cv_linux_ktime_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_ktime_h" >&5 +printf "%s\n" "$ac_cv_linux_ktime_h" >&6; } if test $ac_cv_linux_ktime_h = yes; then - $as_echo "#define HAVE_LINUX_KTIME_H 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_KTIME_H 1" >>confdefs.h fi @@ -13976,11 +14936,12 @@ fi if test $ac_have_bsd_kernel = y; then KERNEL_CXX="$KERNEL_CXX -fpermissive" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking FreeBSD version" >&5 -$as_echo_n "checking FreeBSD version... " >&6; } -if ${ac_cv_freebsd_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FreeBSD version" >&5 +printf %s "checking FreeBSD version... " >&6; } +if test ${ac_cv_freebsd_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_flags="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$freebsd_includedir" @@ -13991,36 +14952,37 @@ else #include <NONEXISTENT_FILE> #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_freebsd_version=yes -else +else $as_nop ac_cv_freebsd_version=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CPPFLAGS="$save_flags" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_freebsd_version" >&5 -$as_echo "$ac_cv_freebsd_version" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_freebsd_version" >&5 +printf "%s\n" "$ac_cv_freebsd_version" >&6; } if test $ac_cv_freebsd_version = yes; then - $as_echo "#define HAVE_CLICK_BSD_KERNEL 1" >>confdefs.h + printf "%s\n" "#define HAVE_CLICK_BSD_KERNEL 1" >>confdefs.h - $as_echo "#define HAVE_BSD_POLLING 1" >>confdefs.h + printf "%s\n" "#define HAVE_BSD_POLLING 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ========================================= Your version of FreeBSD is old. Click works with FreeBSD 7.x and later. =========================================" >&5 -$as_echo "$as_me: WARNING: +printf "%s\n" "$as_me: WARNING: ========================================= Your version of FreeBSD is old. Click works with FreeBSD 7.x and later. @@ -14028,11 +14990,12 @@ Your version of FreeBSD is old. Click works with FreeBSD 7.x and later. =========================================" >&2;} fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long and int64_t are the same type in the FreeBSD kernel" >&5 -$as_echo_n "checking whether long and int64_t are the same type in the FreeBSD kernel... " >&6; } -if ${ac_cv_long_64_bsdmodule+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long and int64_t are the same type in the FreeBSD kernel" >&5 +printf %s "checking whether long and int64_t are the same type in the FreeBSD kernel... " >&6; } +if test ${ac_cv_long_64_bsdmodule+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_flags="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$freebsd_includedir" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14044,33 +15007,35 @@ void f1(long) { void f1(int64_t) { // will fail if long long and int64_t are the same type } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_long_64_bsdmodule=no -else +else $as_nop ac_cv_long_64_bsdmodule=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_64_bsdmodule" >&5 -$as_echo "$ac_cv_long_64_bsdmodule" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_64_bsdmodule" >&5 +printf "%s\n" "$ac_cv_long_64_bsdmodule" >&6; } if test $ac_cv_long_64_bsdmodule = yes; then -$as_echo "#define HAVE_INT64_IS_LONG_BSDMODULE 1" >>confdefs.h +printf "%s\n" "#define HAVE_INT64_IS_LONG_BSDMODULE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long and int64_t are the same type in the FreeBSD kernel" >&5 -$as_echo_n "checking whether long long and int64_t are the same type in the FreeBSD kernel... " >&6; } -if ${ac_cv_long_long_64_bsdmodule+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long long and int64_t are the same type in the FreeBSD kernel" >&5 +printf %s "checking whether long long and int64_t are the same type in the FreeBSD kernel... " >&6; } +if test ${ac_cv_long_long_64_bsdmodule+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_flags="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$freebsd_includedir" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14082,25 +15047,26 @@ void f1(long long) { void f1(int64_t) { // will fail if long long and int64_t are the same type } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_long_long_64_bsdmodule=no -else +else $as_nop ac_cv_long_long_64_bsdmodule=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long_64_bsdmodule" >&5 -$as_echo "$ac_cv_long_long_64_bsdmodule" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long_64_bsdmodule" >&5 +printf "%s\n" "$ac_cv_long_long_64_bsdmodule" >&6; } if test $ac_cv_long_long_64_bsdmodule = yes; then -$as_echo "#define HAVE_INT64_IS_LONG_LONG_BSDMODULE 1" >>confdefs.h +printf "%s\n" "#define HAVE_INT64_IS_LONG_LONG_BSDMODULE 1" >>confdefs.h fi fi @@ -14109,18 +15075,17 @@ fi # Check whether --enable-stats was given. -if test "${enable_stats+set}" = set; then : +if test ${enable_stats+y} +then : enableval=$enable_stats; : -else +else $as_nop enable_stats=no fi if test "$enable_stats" = no; then enable_stats=0; fi if test "$enable_stats" = yes; then enable_stats=1; fi if test "$enable_stats" -ge 0 > /dev/null 2>&1; then - cat >>confdefs.h <<_ACEOF -#define CLICK_STATS $enable_stats -_ACEOF + printf "%s\n" "#define CLICK_STATS $enable_stats" >>confdefs.h else as_fn_error $? " @@ -14133,35 +15098,37 @@ fi # Check whether --enable-stride was given. -if test "${enable_stride+set}" = set; then : +if test ${enable_stride+y} +then : enableval=$enable_stride; : -else +else $as_nop enable_stride=yes fi if test $enable_stride = yes; then - $as_echo "#define HAVE_STRIDE_SCHED 1" >>confdefs.h + printf "%s\n" "#define HAVE_STRIDE_SCHED 1" >>confdefs.h fi # Check whether --enable-task-heap was given. -if test "${enable_task_heap+set}" = set; then : +if test ${enable_task_heap+y} +then : enableval=$enable_task_heap; : -else +else $as_nop enable_task_heap=no fi if test $enable_task_heap = yes -a $enable_stride = yes; then - $as_echo "#define HAVE_TASK_HEAP 1" >>confdefs.h + printf "%s\n" "#define HAVE_TASK_HEAP 1" >>confdefs.h elif test $enable_task_heap = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ========================================= Ignoring --enable-task-heap, which is incompatible with --disable-stride. =========================================" >&5 -$as_echo "$as_me: WARNING: +printf "%s\n" "$as_me: WARNING: ========================================= Ignoring --enable-task-heap, which is incompatible with --disable-stride. @@ -14171,31 +15138,33 @@ fi # Check whether --enable-task-stats was given. -if test "${enable_task_stats+set}" = set; then : +if test ${enable_task_stats+y} +then : enableval=$enable_task_stats; : -else +else $as_nop enable_task_stats=no fi if test "x$enable_task_stats" = xyes; then - $as_echo "#define HAVE_TASK_STATS 1" >>confdefs.h + printf "%s\n" "#define HAVE_TASK_STATS 1" >>confdefs.h fi # Check whether --enable-cpu-load was given. -if test "${enable_cpu_load+set}" = set; then : +if test ${enable_cpu_load+y} +then : enableval=$enable_cpu_load; : -else +else $as_nop enable_cpu_load=no fi if test "x$enable_cpu_load" = xyes; then - $as_echo "#define HAVE_CLICK_LOAD 1" >>confdefs.h + printf "%s\n" "#define HAVE_CLICK_LOAD 1" >>confdefs.h else if test "x$enable_rsspp" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: --enable-rsspp needs --enable-cpu-load" >&5 -$as_echo "$as_me: --enable-rsspp needs --enable-cpu-load" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --enable-rsspp needs --enable-cpu-load" >&5 +printf "%s\n" "$as_me: --enable-rsspp needs --enable-cpu-load" >&6;} enable_rsspp=no fi fi @@ -14206,12 +15175,13 @@ else enable_rsspp=no fi -as_ac_File=`$as_echo "ac_cv_file_$srcdir/include/click/flowruleparser.hh" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/include/click/flowruleparser.hh" >&5 -$as_echo_n "checking for $srcdir/include/click/flowruleparser.hh... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_File=`printf "%s\n" "ac_cv_file_$srcdir/include/click/flowruleparser.hh" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $srcdir/include/click/flowruleparser.hh" >&5 +printf %s "checking for $srcdir/include/click/flowruleparser.hh... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$srcdir/include/click/flowruleparser.hh"; then @@ -14221,20 +15191,22 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : ac_have_flow_rule_parser_h=yes -else +else $as_nop ac_have_flow_rule_parser_h=no fi -as_ac_File=`$as_echo "ac_cv_file_$srcdir/include/click/flowrulecache.hh" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/include/click/flowrulecache.hh" >&5 -$as_echo_n "checking for $srcdir/include/click/flowrulecache.hh... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_File=`printf "%s\n" "ac_cv_file_$srcdir/include/click/flowrulecache.hh" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $srcdir/include/click/flowrulecache.hh" >&5 +printf %s "checking for $srcdir/include/click/flowrulecache.hh... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$srcdir/include/click/flowrulecache.hh"; then @@ -14244,20 +15216,22 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : ac_have_flow_rule_cache_h=yes -else +else $as_nop ac_have_flow_rule_cache_h=no fi -as_ac_File=`$as_echo "ac_cv_file_$srcdir/include/click/flowrulemanager.hh" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/include/click/flowrulemanager.hh" >&5 -$as_echo_n "checking for $srcdir/include/click/flowrulemanager.hh... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_File=`printf "%s\n" "ac_cv_file_$srcdir/include/click/flowrulemanager.hh" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $srcdir/include/click/flowrulemanager.hh" >&5 +printf %s "checking for $srcdir/include/click/flowrulemanager.hh... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$srcdir/include/click/flowrulemanager.hh"; then @@ -14267,17 +15241,18 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : ac_have_flow_rule_man_h=yes -else +else $as_nop ac_have_flow_rule_man_h=no fi if test "x$ac_have_flow_rule_parser_h$ac_have_flow_rule_cache_h$ac_have_flow_rule_man_h$enable_flow_api" = "xyesyesyesyes"; then have_flow_api=yes - $as_echo "#define HAVE_FLOW_API 1" >>confdefs.h + printf "%s\n" "#define HAVE_FLOW_API 1" >>confdefs.h HAVE_FLOW_API=1 @@ -14289,15 +15264,16 @@ fi # Check whether --enable-dmalloc was given. -if test "${enable_dmalloc+set}" = set; then : +if test ${enable_dmalloc+y} +then : enableval=$enable_dmalloc; : -else +else $as_nop enable_dmalloc=no fi if test $enable_dmalloc = yes; then -$as_echo "#define CLICK_DMALLOC 1" >>confdefs.h +printf "%s\n" "#define CLICK_DMALLOC 1" >>confdefs.h fi @@ -14305,56 +15281,57 @@ fi # Check whether --enable-hash-iterator-epochs was given. -if test "${enable_hash_iterator_epochs+set}" = set; then : +if test ${enable_hash_iterator_epochs+y} +then : enableval=$enable_hash_iterator_epochs; : -else +else $as_nop enable_hash_iterator_epochs=no fi if test $enable_hash_iterator_epochs = yes; then -$as_echo "#define CLICK_HASH_ITERATOR_EPOCHS 1" >>confdefs.h +printf "%s\n" "#define CLICK_HASH_ITERATOR_EPOCHS 1" >>confdefs.h fi # Check whether --enable-force-expensive was given. -if test "${enable_force_expensive+set}" = set; then : +if test ${enable_force_expensive+y} +then : enableval=$enable_force_expensive; : -else +else $as_nop enable_force_expensive=no fi if test $enable_force_expensive = yes; then -$as_echo "#define CLICK_FORCE_EXPENSIVE 1" >>confdefs.h +printf "%s\n" "#define CLICK_FORCE_EXPENSIVE 1" >>confdefs.h fi # Check whether --enable-valgrind was given. -if test "${enable_valgrind+set}" = set; then : +if test ${enable_valgrind+y} +then : enableval=$enable_valgrind; : -else +else $as_nop enable_valgrind=no fi if test $enable_valgrind = yes; then - for ac_header in valgrind/memcheck.h + for ac_header in valgrind/memcheck.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" -if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_VALGRIND_MEMCHECK_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" +if test "x$ac_cv_header_valgrind_memcheck_h" = xyes +then : + printf "%s\n" "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h ac_found_valgrind_memcheck_h=yes -else +else $as_nop ac_found_valgrind_memcheck_h=no fi done - if test $ac_found_valgrind_memcheck_h = no; then as_fn_error $? " ========================================= @@ -14365,16 +15342,17 @@ Try again without '--enable-valgrind'. =========================================" "$LINENO" 5 fi -$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_VALGRIND 1" >>confdefs.h fi # Check whether --enable-schedule-debugging was given. -if test "${enable_schedule_debugging+set}" = set; then : +if test ${enable_schedule_debugging+y} +then : enableval=$enable_schedule_debugging; : -else +else $as_nop enable_schedule_debugging=no fi @@ -14386,38 +15364,39 @@ elif test "$enable_schedule_debugging" = extra; then fi if test "$value" != 0; then -cat >>confdefs.h <<_ACEOF -#define CLICK_DEBUG_SCHEDULING $value -_ACEOF +printf "%s\n" "#define CLICK_DEBUG_SCHEDULING $value" >>confdefs.h fi # Check whether --enable-hash-allocator-poisoning was given. -if test "${enable_hash_allocator_poisoning+set}" = set; then : +if test ${enable_hash_allocator_poisoning+y} +then : enableval=$enable_hash_allocator_poisoning; : -else +else $as_nop enable_hash_allocator_poisoning=no fi if test $enable_hash_allocator_poisoning = yes; then - $as_echo "#define HAVE_HASH_ALLOCATOR_POISONING 1" >>confdefs.h + printf "%s\n" "#define HAVE_HASH_ALLOCATOR_POISONING 1" >>confdefs.h fi # Check whether --enable-portable-binary was given. -if test "${enable_portable_binary+set}" = set; then : +if test ${enable_portable_binary+y} +then : enableval=$enable_portable_binary; acx_maxopt_portable=$enableval -else +else $as_nop acx_maxopt_portable=no fi if test $acx_maxopt_portable = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -march=native" >&5 -$as_echo_n "checking whether C++ compiler accepts -march=native... " >&6; } -if ${ax_cv_check_cxxflags___march_native+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -march=native" >&5 +printf %s "checking whether C++ compiler accepts -march=native... " >&6; } +if test ${ax_cv_check_cxxflags___march_native+y} +then : + printf %s "(cached) " >&6 +else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS -march=native" @@ -14425,26 +15404,28 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_check_cxxflags___march_native=yes -else +else $as_nop ax_cv_check_cxxflags___march_native=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___march_native" >&5 -$as_echo "$ax_cv_check_cxxflags___march_native" >&6; } -if test "x$ax_cv_check_cxxflags___march_native" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___march_native" >&5 +printf "%s\n" "$ax_cv_check_cxxflags___march_native" >&6; } +if test "x$ax_cv_check_cxxflags___march_native" = xyes +then : CXXFLAGS="-march=native $CXXFLAGS";CFLAGS="-march=native $CFLAGS" -else +else $as_nop : fi @@ -14452,14 +15433,15 @@ fi # Check whether --enable-intel-cpu was given. -if test "${enable_intel_cpu+set}" = set; then : +if test ${enable_intel_cpu+y} +then : enableval=$enable_intel_cpu; : -else +else $as_nop enable_intel_cpu=no fi if test $enable_intel_cpu = yes; then - $as_echo "#define HAVE_INTEL_CPU 1" >>confdefs.h + printf "%s\n" "#define HAVE_INTEL_CPU 1" >>confdefs.h fi @@ -14472,31 +15454,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : cpu_supports_avx2="yes" -else +else $as_nop cpu_supports_avx2="no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Check whether --enable-avx2 was given. -if test "${enable_avx2+set}" = set; then : +if test ${enable_avx2+y} +then : enableval=$enable_avx2; check_avx2=no -else +else $as_nop check_avx2=yes fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if AVX2 should be used" >&5 -$as_echo_n "checking if AVX2 should be used... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AVX2 should be used" >&5 +printf %s "checking if AVX2 should be used... " >&6; } if test "x$cpu_supports_avx2$check_avx2" = "xyesyes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_AVX2 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + printf "%s\n" "#define HAVE_AVX2 1" >>confdefs.h + save_cflags="$CFLAGS" + CFLAGS="$save_cflags -mavx2" + save_cxxflags="$CXXFLAGS" + CXXFLAGS="$save_cxxflags -mavx2" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14507,43 +15495,50 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : cpu_supports_sse42="yes" -else +else $as_nop cpu_supports_sse42="no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Check whether --enable-sse42 was given. -if test "${enable_sse42+set}" = set; then : +if test ${enable_sse42+y} +then : enableval=$enable_sse42; check_sse42=no -else +else $as_nop check_sse42=yes fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSE4.2 should be used" >&5 -$as_echo_n "checking if SSE4.2 should be used... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SSE4.2 should be used" >&5 +printf %s "checking if SSE4.2 should be used... " >&6; } if test "x$cpu_supports_sse42$check_sse42" = "xyesyes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_SSE42 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + printf "%s\n" "#define HAVE_SSE42 1" >>confdefs.h + save_cflags="$CFLAGS" + CFLAGS="$save_cflags -msse4.2" + save_cxxflags="$CXXFLAGS" + CXXFLAGS="$save_cxxflags -msse4.2" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --enable-atomic-builtins was given. -if test "${enable_atomic_builtins+set}" = set; then : +if test ${enable_atomic_builtins+y} +then : enableval=$enable_atomic_builtins; : -else +else $as_nop enable_atomic_builtins=no fi if test "x${enable_atomic_builtins}" = "xyes"; then - $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h + printf "%s\n" "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h fi @@ -14594,15 +15589,6 @@ done - - - - - - - - - @@ -14644,8 +15630,8 @@ done if test "x$enable_dpdk" != "xno"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPDK library" >&5 -$as_echo_n "checking for DPDK library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPDK library" >&5 +printf %s "checking for DPDK library... " >&6; } if test "x$enable_dpdk" != "xyes"; then RTE_SDK=$enable_dpdk @@ -14694,8 +15680,8 @@ $as_echo_n "checking for DPDK library... " >&6; } DPDK_LIBS=$(pkg-config --libs --static libdpdk) fi DPDK_CFLAGS=$(pkg-config --cflags libdpdk) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else dpdk_sys="make" RTE_USE_PKGCONFIG=0 @@ -14715,8 +15701,8 @@ version (dpdk-dev or dpdk-devel). =========================================" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found at $RTE_SDK_BIN" >&5 -$as_echo "yes, found at $RTE_SDK_BIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, found at $RTE_SDK_BIN" >&5 +printf "%s\n" "yes, found at $RTE_SDK_BIN" >&6; } if test -e "$RTE_SRCDIR/VERSION"; then rte_ver_year=`cat $RTE_SRCDIR/VERSION | sed -e 's/-rc/.-rc./' -e 's/$/..99/' | awk -F '.' '{print int($1)}'` @@ -14756,33 +15742,33 @@ $as_echo "yes, found at $RTE_SDK_BIN" >&6; } DPDK_CFLAGS=${DPDK_CFLAGS} - $as_echo "#define HAVE_DPDK 1" >>confdefs.h + printf "%s\n" "#define HAVE_DPDK 1" >>confdefs.h USE_DPDK=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DPDK has rte_eth_read_clock" >&5 -$as_echo_n "checking whether DPDK has rte_eth_read_clock... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DPDK has rte_eth_read_clock" >&5 +printf %s "checking whether DPDK has rte_eth_read_clock... " >&6; } if ${READELF} -Ws "$RTE_LIB/librte_ethdev.a" | grep rte_eth_read_clock &> /dev/null; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_DPDK_READ_CLOCK 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + printf "%s\n" "#define HAVE_DPDK_READ_CLOCK 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DPDK has rte_flow_update" >&5 -$as_echo_n "checking whether DPDK has rte_flow_update... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DPDK has rte_flow_update" >&5 +printf %s "checking whether DPDK has rte_flow_update... " >&6; } if ${READELF} -Ws "$RTE_LIB/librte_ethdev.a" | grep rte_flow_update &> /dev/null; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_RTE_FLOW_UPDATE 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + printf "%s\n" "#define HAVE_RTE_FLOW_UPDATE 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -14796,7 +15782,7 @@ if test "x$enable_dpdk_pool" = xyes; then =========================================" "$LINENO" 5 fi - $as_echo "#define HAVE_DPDK_PACKET_POOL 1" >>confdefs.h + printf "%s\n" "#define HAVE_DPDK_PACKET_POOL 1" >>confdefs.h fi @@ -14809,7 +15795,7 @@ if test "x$enable_dpdk_xchg" = "xyes"; then =========================================" "$LINENO" 5 fi - $as_echo "#define HAVE_DPDK_XCHG 1" >>confdefs.h + printf "%s\n" "#define HAVE_DPDK_XCHG 1" >>confdefs.h HAVE_DPDK_XCHG=y @@ -14827,7 +15813,7 @@ if test "x$enable_dpdk_packet" = "xyes"; then =========================================" "$LINENO" 5 fi - $as_echo "#define CLICK_PACKET_USE_DPDK 1" >>confdefs.h + printf "%s\n" "#define CLICK_PACKET_USE_DPDK 1" >>confdefs.h fi @@ -14839,19 +15825,21 @@ if test "$enable_userlevel" = yes; then HAVE_PCAP=yes if test "${PCAP_INCLUDES-NO}" = NO; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5 -$as_echo_n "checking for pcap.h... " >&6; } -if ${ac_cv_pcap_header_path+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5 +printf %s "checking for pcap.h... " >&6; } +if test ${ac_cv_pcap_header_path+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <pcap.h> _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : ac_cv_pcap_header_path="found" -else +else $as_nop ac_cv_pcap_header_path='not found' test -r /usr/local/include/pcap/pcap.h && \ ac_cv_pcap_header_path='-I/usr/local/include/pcap' @@ -14860,8 +15848,8 @@ else fi rm -f conftest.err conftest.i conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_header_path" >&5 -$as_echo "$ac_cv_pcap_header_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_header_path" >&5 +printf "%s\n" "$ac_cv_pcap_header_path" >&6; } if test "$ac_cv_pcap_header_path" = 'not found'; then HAVE_PCAP= elif test "$ac_cv_pcap_header_path" != 'found'; then @@ -14870,11 +15858,12 @@ $as_echo "$ac_cv_pcap_header_path" >&6; } fi if test "$HAVE_PCAP" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap.h works" >&5 -$as_echo_n "checking whether pcap.h works... " >&6; } -if ${ac_cv_working_pcap_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap.h works" >&5 +printf %s "checking whether pcap.h works... " >&6; } +if test ${ac_cv_working_pcap_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop saveflags="$CPPFLAGS" CPPFLAGS="$saveflags $PCAP_INCLUDES" @@ -14882,16 +15871,17 @@ else /* end confdefs.h. */ #include <pcap.h> _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : ac_cv_working_pcap_h=yes -else +else $as_nop ac_cv_working_pcap_h=no fi rm -f conftest.err conftest.i conftest.$ac_ext CPPFLAGS="$saveflags" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_pcap_h" >&5 -$as_echo "$ac_cv_working_pcap_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_pcap_h" >&5 +printf "%s\n" "$ac_cv_working_pcap_h" >&6; } test "$ac_cv_working_pcap_h" != yes && HAVE_PCAP= else HAVE_PCAP=no @@ -14900,43 +15890,43 @@ $as_echo "$ac_cv_working_pcap_h" >&6; } if test "$HAVE_PCAP" = yes; then saveflags="$CPPFLAGS" CPPFLAGS="$saveflags $PCAP_INCLUDES" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bpf_timeval in pcap.h" >&5 -$as_echo_n "checking for bpf_timeval in pcap.h... " >&6; } -if ${ac_cv_bpf_timeval+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bpf_timeval in pcap.h" >&5 +printf %s "checking for bpf_timeval in pcap.h... " >&6; } +if test ${ac_cv_bpf_timeval+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <pcap.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "bpf_timeval" >/dev/null 2>&1; then : + $EGREP "bpf_timeval" >/dev/null 2>&1 +then : ac_cv_bpf_timeval=yes -else +else $as_nop ac_cv_bpf_timeval=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_bpf_timeval" >&5 -$as_echo "$ac_cv_bpf_timeval" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_bpf_timeval" >&5 +printf "%s\n" "$ac_cv_bpf_timeval" >&6; } if test "$ac_cv_bpf_timeval" = yes; then -$as_echo "#define HAVE_BPF_TIMEVAL 1" >>confdefs.h +printf "%s\n" "#define HAVE_BPF_TIMEVAL 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "pcap_setnonblock" "ac_cv_have_decl_pcap_setnonblock" "#include <pcap.h> -" -if test "x$ac_cv_have_decl_pcap_setnonblock" = xyes; then : + ac_fn_check_decl "$LINENO" "pcap_setnonblock" "ac_cv_have_decl_pcap_setnonblock" "#include <pcap.h> +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_pcap_setnonblock" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PCAP_SETNONBLOCK $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_PCAP_SETNONBLOCK $ac_have_decl" >>confdefs.h CPPFLAGS="$saveflags" fi @@ -14948,11 +15938,12 @@ _ACEOF if test "$HAVE_PCAP" = yes; then if test "${PCAP_LIBS-NO}" = NO; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpcap" >&5 -$as_echo_n "checking for -lpcap... " >&6; } -if ${ac_cv_pcap_library_path+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -lpcap" >&5 +printf %s "checking for -lpcap... " >&6; } +if test ${ac_cv_pcap_library_path+y} +then : + printf %s "(cached) " >&6 +else $as_nop saveflags="$LDFLAGS" savelibs="$LIBS" @@ -14969,21 +15960,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pcap_open_live (); int -main () +main (void) { return pcap_open_live (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_pcap_library_path="found" -else +else $as_nop LDFLAGS="$saveflags -L/usr/local/lib" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -14991,39 +15980,38 @@ else /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pcap_open_live (); int -main () +main (void) { return pcap_open_live (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_pcap_library_path="-L/usr/local/lib" -else +else $as_nop ac_cv_pcap_library_path="not found" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$saveflags" LIBS="$savelibs" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_library_path" >&5 -$as_echo "$ac_cv_pcap_library_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_library_path" >&5 +printf "%s\n" "$ac_cv_pcap_library_path" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpcap in \"$PCAP_LIBS\"" >&5 -$as_echo_n "checking for -lpcap in \"$PCAP_LIBS\"... " >&6; } -if ${ac_cv_pcap_library_path+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -lpcap in \"$PCAP_LIBS\"" >&5 +printf %s "checking for -lpcap in \"$PCAP_LIBS\"... " >&6; } +if test ${ac_cv_pcap_library_path+y} +then : + printf %s "(cached) " >&6 +else $as_nop saveflags="$LDFLAGS" LDFLAGS="$saveflags $PCAP_LIBS" @@ -15041,30 +16029,28 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pcap_open_live (); int -main () +main (void) { return pcap_open_live (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_pcap_library_path="$PCAP_LIBS" -else +else $as_nop ac_cv_pcap_library_path="not found" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$saveflags" LIBS="$savelibs" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_library_path" >&5 -$as_echo "$ac_cv_pcap_library_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_library_path" >&5 +printf "%s\n" "$ac_cv_pcap_library_path" >&6; } fi if test "$ac_cv_pcap_library_path" = "found"; then PCAP_LIBS='-lpcap' @@ -15080,32 +16066,53 @@ $as_echo "$ac_cv_pcap_library_path" >&6; } if test "$HAVE_PCAP" = yes; then -$as_echo "#define HAVE_PCAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_PCAP 1" >>confdefs.h savelibs="$LIBS" LIBS="$savelibs $PCAP_LIBS" - for ac_func in pcap_inject pcap_sendpacket pcap_setdirection pcap_setnonblock pcap_set_immediate_mode -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "pcap_inject" "ac_cv_func_pcap_inject" +if test "x$ac_cv_func_pcap_inject" = xyes +then : + printf "%s\n" "#define HAVE_PCAP_INJECT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "pcap_sendpacket" "ac_cv_func_pcap_sendpacket" +if test "x$ac_cv_func_pcap_sendpacket" = xyes +then : + printf "%s\n" "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "pcap_setdirection" "ac_cv_func_pcap_setdirection" +if test "x$ac_cv_func_pcap_setdirection" = xyes +then : + printf "%s\n" "#define HAVE_PCAP_SETDIRECTION 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "pcap_setnonblock" "ac_cv_func_pcap_setnonblock" +if test "x$ac_cv_func_pcap_setnonblock" = xyes +then : + printf "%s\n" "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "pcap_set_immediate_mode" "ac_cv_func_pcap_set_immediate_mode" +if test "x$ac_cv_func_pcap_set_immediate_mode" = xyes +then : + printf "%s\n" "#define HAVE_PCAP_SET_IMMEDIATE_MODE 1" >>confdefs.h fi -done LIBS="$savelibs" fi + # Check whether --with-numa was given. -if test "${with_numa+set}" = set; then : +if test ${with_numa+y} +then : withval=$with_numa; use_numa=$withval -else +else $as_nop use_numa=yes fi @@ -15121,11 +16128,12 @@ fi HAVE_NUMA=no if test "$use_numa" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing numa_available" >&5 -$as_echo_n "checking for library containing numa_available... " >&6; } -if ${ac_cv_search_numa_available+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing numa_available" >&5 +printf %s "checking for library containing numa_available... " >&6; } +if test ${ac_cv_search_numa_available+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -15133,80 +16141,84 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char numa_available (); int -main () +main (void) { return numa_available (); ; return 0; } _ACEOF -for ac_lib in '' numa; do +for ac_lib in '' numa +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_numa_available=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_numa_available+:} false; then : + if test ${ac_cv_search_numa_available+y} +then : break fi done -if ${ac_cv_search_numa_available+:} false; then : +if test ${ac_cv_search_numa_available+y} +then : -else +else $as_nop ac_cv_search_numa_available=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_numa_available" >&5 -$as_echo "$ac_cv_search_numa_available" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_numa_available" >&5 +printf "%s\n" "$ac_cv_search_numa_available" >&6; } ac_res=$ac_cv_search_numa_available -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_have_libnuma=yes -else +else $as_nop ac_have_libnuma=no fi if test "$ac_have_libnuma" = yes; then -$as_echo "#define HAVE_NUMA 1" >>confdefs.h +printf "%s\n" "#define HAVE_NUMA 1" >>confdefs.h LDFLAGS="$LDFLAGS -Lnuma" fi if test "$HAVE_NUMA" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether numa.h works" >&5 -$as_echo_n "checking whether numa.h works... " >&6; } -if ${ac_cv_working_numa_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether numa.h works" >&5 +printf %s "checking whether numa.h works... " >&6; } +if test ${ac_cv_working_numa_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <numa.h> _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : ac_cv_working_numa_h=yes -else +else $as_nop ac_cv_working_numa_h=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_numa_h" >&5 -$as_echo "$ac_cv_working_numa_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_numa_h" >&5 +printf "%s\n" "$ac_cv_working_numa_h" >&6; } test "$ac_cv_working_numa_h" != yes && HAVE_NUMA= fi fi @@ -15216,9 +16228,10 @@ $as_echo "$ac_cv_working_numa_h" >&6; } # Check whether --with-netmap was given. -if test "${with_netmap+set}" = set; then : +if test ${with_netmap+y} +then : withval=$with_netmap; use_netmap=$withval -else +else $as_nop use_netmap=no fi @@ -15236,52 +16249,55 @@ fi CPPFLAGS="$saveflags $NETMAP_INCLUDES" HAVE_NETMAP=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net/netmap.h" >&5 -$as_echo_n "checking for net/netmap.h... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for net/netmap.h" >&5 +printf %s "checking for net/netmap.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <net/netmap.h> _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : ac_cv_net_netmap_header_path="found" -else +else $as_nop ac_cv_net_netmap_header_path="not found" fi rm -f conftest.err conftest.i conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_header_path" >&5 -$as_echo "$ac_cv_net_netmap_header_path" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_header_path" >&5 +printf "%s\n" "$ac_cv_net_netmap_header_path" >&6; } if test "$ac_cv_net_netmap_header_path" = "found"; then HAVE_NETMAP=yes fi if test "$HAVE_NETMAP" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/netmap.h works" >&5 -$as_echo_n "checking whether net/netmap.h works... " >&6; } -if ${ac_cv_working_net_netmap_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether net/netmap.h works" >&5 +printf %s "checking whether net/netmap.h works... " >&6; } +if test ${ac_cv_working_net_netmap_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <net/netmap.h> _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : ac_cv_working_net_netmap_h=yes -else +else $as_nop ac_cv_working_net_netmap_h=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_net_netmap_h" >&5 -$as_echo "$ac_cv_working_net_netmap_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_net_netmap_h" >&5 +printf "%s\n" "$ac_cv_working_net_netmap_h" >&6; } test "$ac_cv_working_net_netmap_h" != yes && HAVE_NETMAP= fi CPPFLAGS="$saveflags" if test "$HAVE_NETMAP" = yes -a "$use_netmap" != no; then -$as_echo "#define HAVE_NETMAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_NETMAP 1" >>confdefs.h EXTRA_DRIVER_OBJS="netmapdevice.o $EXTRA_DRIVER_OBJS" else @@ -15292,13 +16308,13 @@ $as_echo "#define HAVE_NETMAP 1" >>confdefs.h if test "$HAVE_PCAP" != yes -a "$HAVE_NETMAP" != yes -a "$ac_cv_under_linux" != yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ========================================= pcap.h and/or -lpcap not found; user-level driver can't steal packets. =========================================" >&5 -$as_echo "$as_me: WARNING: +printf "%s\n" "$as_me: WARNING: ========================================= pcap.h and/or -lpcap not found; user-level driver can't steal packets. @@ -15306,7 +16322,7 @@ pcap.h and/or -lpcap not found; user-level driver can't steal packets. =========================================" >&2;} fi DRIVERS="$DRIVERS userlevel" - $as_echo "#define HAVE_USERLEVEL_DRIVER 1" >>confdefs.h + printf "%s\n" "#define HAVE_USERLEVEL_DRIVER 1" >>confdefs.h HAVE_USERLEVEL_DRIVER=1 fi @@ -15328,76 +16344,80 @@ if test "x$enable_netmap_pool" = "xyes"; then =========================================" "$LINENO" 5 fi - $as_echo "#define HAVE_NETMAP_PACKET_POOL 1" >>confdefs.h + printf "%s\n" "#define HAVE_NETMAP_PACKET_POOL 1" >>confdefs.h HAVE_NETMAP_PACKET_POOL=yes fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct if_data has ifi_datalen" >&5 -$as_echo_n "checking whether struct if_data has ifi_datalen... " >&6; } -if ${ac_cv_if_data_ifi_datalen+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct if_data has ifi_datalen" >&5 +printf %s "checking whether struct if_data has ifi_datalen... " >&6; } +if test ${ac_cv_if_data_ifi_datalen+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <net/if.h> #include <net/if_var.h> int -main () +main (void) { struct if_msghdr ifm; ifm.ifm_data.ifi_datalen = 0; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_if_data_ifi_datalen=yes -else +else $as_nop ac_cv_if_data_ifi_datalen=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_if_data_ifi_datalen" >&5 -$as_echo "$ac_cv_if_data_ifi_datalen" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_if_data_ifi_datalen" >&5 +printf "%s\n" "$ac_cv_if_data_ifi_datalen" >&6; } if test "x$ac_cv_if_data_ifi_datalen" = xyes; then -$as_echo "#define HAVE_IF_DATA_IFI_DATALEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_IF_DATA_IFI_DATALEN 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in has sin_len" >&5 -$as_echo_n "checking whether struct sockaddr_in has sin_len... " >&6; } -if ${ac_cv_sockaddr_in_sin_len+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in has sin_len" >&5 +printf %s "checking whether struct sockaddr_in has sin_len... " >&6; } +if test ${ac_cv_sockaddr_in_sin_len+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <sys/socket.h> #include <netinet/in.h> int -main () +main (void) { struct sockaddr_in sin; sin.sin_len = 0; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sockaddr_in_sin_len=yes -else +else $as_nop ac_cv_sockaddr_in_sin_len=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_in_sin_len" >&5 -$as_echo "$ac_cv_sockaddr_in_sin_len" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_in_sin_len" >&5 +printf "%s\n" "$ac_cv_sockaddr_in_sin_len" >&6; } if test "x$ac_cv_sockaddr_in_sin_len" = xyes; then -$as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h fi @@ -15406,23 +16426,24 @@ fi explicit_proper=yes # Check whether --with-proper was given. -if test "${with_proper+set}" = set; then : +if test ${with_proper+y} +then : withval=$with_proper; properprefix=$withval; if test -z "$withval" -o "$withval" = yes; then properprefix=; fi -else +else $as_nop properprefix=no; explicit_proper=no fi if test "$properprefix" != no; then saveflags="$CPPFLAGS"; test -n "$properprefix" && CPPFLAGS="$CPPFLAGS -I$properprefix/include" - ac_fn_c_check_header_mongrel "$LINENO" "prop.h" "ac_cv_header_prop_h" "$ac_includes_default" -if test "x$ac_cv_header_prop_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "prop.h" "ac_cv_header_prop_h" "$ac_includes_default" +if test "x$ac_cv_header_prop_h" = xyes +then : have_prop_h=yes -else +else $as_nop have_prop_h=no fi - CPPFLAGS="$saveflags" ac_ext=c @@ -15432,11 +16453,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu saveflags="$LDFLAGS"; test -n "$properprefix" && LDFLAGS="$LDFLAGS -L$properprefix/lib" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_open in -lproper" >&5 -$as_echo_n "checking for prop_open in -lproper... " >&6; } -if ${ac_cv_lib_proper_prop_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prop_open in -lproper" >&5 +printf %s "checking for prop_open in -lproper... " >&6; } +if test ${ac_cv_lib_proper_prop_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lproper $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15445,32 +16467,31 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char prop_open (); int -main () +main (void) { return prop_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_proper_prop_open=yes -else +else $as_nop ac_cv_lib_proper_prop_open=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proper_prop_open" >&5 -$as_echo "$ac_cv_lib_proper_prop_open" >&6; } -if test "x$ac_cv_lib_proper_prop_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proper_prop_open" >&5 +printf "%s\n" "$ac_cv_lib_proper_prop_open" >&6; } +if test "x$ac_cv_lib_proper_prop_open" = xyes +then : have_libproper=yes -else +else $as_nop have_libproper=no fi @@ -15483,7 +16504,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test $have_prop_h = yes -a $have_libproper = yes; then - $as_echo "#define HAVE_PROPER 1" >>confdefs.h + printf "%s\n" "#define HAVE_PROPER 1" >>confdefs.h test -n "$properprefix" && PROPER_INCLUDES="-I$properprefix/include" && PROPER_LIBS="-L$properprefix/lib" PROPER_LIBS="$PROPER_LIBS -lproper" @@ -15507,9 +16528,10 @@ fi explicit_expat=yes # Check whether --with-expat was given. -if test "${with_expat+set}" = set; then : +if test ${with_expat+y} +then : withval=$with_expat; expatprefix=$withval; if test -z "$withval" -o "$withval" = yes; then expatprefix=; fi -else +else $as_nop expatprefix=; explicit_expat=no fi @@ -15517,14 +16539,14 @@ fi XML2CLICK= if test "$expatprefix" != no; then saveflags="$CPPFLAGS"; test -n "$expatprefix" && CPPFLAGS="$CPPFLAGS -I$expatprefix/include" - ac_fn_cxx_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" -if test "x$ac_cv_header_expat_h" = xyes; then : + ac_fn_cxx_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" +if test "x$ac_cv_header_expat_h" = xyes +then : have_expat_h=yes -else +else $as_nop have_expat_h=no fi - CPPFLAGS="$saveflags" ac_ext=c @@ -15534,11 +16556,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu saveflags="$LDFLAGS"; test -n "$expatprefix" && LDFLAGS="$LDFLAGS -L$expatprefix/lib" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreateNS in -lexpat" >&5 -$as_echo_n "checking for XML_ParserCreateNS in -lexpat... " >&6; } -if ${ac_cv_lib_expat_XML_ParserCreateNS+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreateNS in -lexpat" >&5 +printf %s "checking for XML_ParserCreateNS in -lexpat... " >&6; } +if test ${ac_cv_lib_expat_XML_ParserCreateNS+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lexpat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15547,39 +16570,38 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char XML_ParserCreateNS (); int -main () +main (void) { return XML_ParserCreateNS (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_expat_XML_ParserCreateNS=yes -else +else $as_nop ac_cv_lib_expat_XML_ParserCreateNS=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreateNS" >&5 -$as_echo "$ac_cv_lib_expat_XML_ParserCreateNS" >&6; } -if test "x$ac_cv_lib_expat_XML_ParserCreateNS" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreateNS" >&5 +printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreateNS" >&6; } +if test "x$ac_cv_lib_expat_XML_ParserCreateNS" = xyes +then : have_libexpat=yes -else +else $as_nop have_libexpat=no fi LDFLAGS="$saveflags" if test $have_expat_h = yes -a $have_libexpat = yes; then - $as_echo "#define HAVE_EXPAT 1" >>confdefs.h + printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h XML2CLICK=xml2click test -n "$expatprefix" && EXPAT_INCLUDES="-I$expatprefix/include" && EXPAT_LIBS="-L$expatprefix/lib" @@ -15629,16 +16651,16 @@ if test $ac_have_linux_kernel = y; then if test -n "$LINUX_CFLAGS"; then : elif test $LINUXMODULE_2_6 = 1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kernel compilation flags" >&5 -$as_echo_n "checking for Linux kernel compilation flags... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kernel compilation flags" >&5 +printf %s "checking for Linux kernel compilation flags... " >&6; } echo >conftest.c make -C $linux_builddir M="`pwd`" $linux_makeargs --no-print-directory -p conftest.o >conftest.dat 2>&1 for v in KBUILD_CPPFLAGS KBUILD_CFLAGS CPPFLAGS CFLAGS LINUXINCLUDE debug_flags; do eval l$v="'""`grep ^$v' *:*=' conftest.dat | sed s/^$v' *:*= *//'`""'" done if test -z "$lKBUILD_CPPFLAGS$lKBUILD_CFLAGS$lCPPFLAGS$lCFLAGS$lLINUXINCLUDE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } as_fn_error $? " ============================================== @@ -15655,16 +16677,16 @@ Can't find Linux compilation flags. -e 's,-std=[-a-z0-9+]*,,g' \ -e s,-Werror-implicit-function-declaration,,g \ -e 's,-W[^ ]*,,g' <conftest.dat`" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_CFLAGS" >&5 -$as_echo "$LINUX_CFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINUX_CFLAGS" >&5 +printf "%s\n" "$LINUX_CFLAGS" >&6; } LINUX_DEBUG_FLAGS="$ldebug_flags" fi LINUX_FIXINCLUDES_PROGRAM= CLICKLINUX_FIXINCLUDES_PROGRAM= if test "$LINUXMODULE_FIXINCLUDES" = 1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: making C++-safe versions of Linux kernel headers (may take a while)" >&5 -$as_echo "$as_me: making C++-safe versions of Linux kernel headers (may take a while)" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: making C++-safe versions of Linux kernel headers (may take a while)" >&5 +printf "%s\n" "$as_me: making C++-safe versions of Linux kernel headers (may take a while)" >&6;} mydir="`pwd`" mysrcdir="$srcdir" if expr $mysrcdir : / >/dev/null; then :; else mysrcdir="$mydir/$srcdir"; fi @@ -15695,7 +16717,7 @@ click-linuxtool.pl execution failed. linux_autoconf_include= if test "$linux_version_code" -lt 132638; then -$as_echo "#define HAVE_CHECK_AUTOCONF_INCLUDED 1" >>confdefs.h +printf "%s\n" "#define HAVE_CHECK_AUTOCONF_INCLUDED 1" >>confdefs.h linux_autoconf_include="#if !defined(AUTOCONF_INCLUDED) # include <linux/autoconf.h> @@ -15705,11 +16727,12 @@ $as_echo "#define HAVE_CHECK_AUTOCONF_INCLUDED 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++-includable kernel header files" >&5 -$as_echo_n "checking for C++-includable kernel header files... " >&6; } -if ${ac_cv_cxx_aware_system+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++-includable kernel header files" >&5 +printf %s "checking for C++-includable kernel header files... " >&6; } +if test ${ac_cv_cxx_aware_system+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -15739,32 +16762,33 @@ $linux_autoconf_include #include <linux/skbuff.h> #include <linux/sched.h> int -main () +main (void) { return 0 ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_cxx_aware_system=yes -else +else $as_nop ac_cv_cxx_aware_system=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_aware_system" >&5 -$as_echo "$ac_cv_cxx_aware_system" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_aware_system" >&5 +printf "%s\n" "$ac_cv_cxx_aware_system" >&6; } if test $ac_cv_cxx_aware_system = yes; then DRIVERS="$DRIVERS linuxmodule" TOOL_TARGETS="$TOOL_TARGETS click-install" - $as_echo "#define HAVE_LINUXMODULE_DRIVER 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUXMODULE_DRIVER 1" >>confdefs.h HAVE_LINUXMODULE_DRIVER=1 elif test x$enable_linuxmodule_default = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ========================================= Your Linux kernel header files cause errors when included by a C++ program, @@ -15778,7 +16802,7 @@ try to fix the error. See the config.log file for more information on the error. =========================================" >&5 -$as_echo "$as_me: WARNING: +printf "%s\n" "$as_me: WARNING: ========================================= Your Linux kernel header files cause errors when included by a C++ program, @@ -15816,11 +16840,12 @@ error. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long and int64_t are the same type in the Linux kernel" >&5 -$as_echo_n "checking whether long and int64_t are the same type in the Linux kernel... " >&6; } -if ${ac_cv_long_64_linuxmodule+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long and int64_t are the same type in the Linux kernel" >&5 +printf %s "checking whether long and int64_t are the same type in the Linux kernel... " >&6; } +if test ${ac_cv_long_64_linuxmodule+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -15846,33 +16871,35 @@ void f1(long) { void f1(int64_t) { // will fail if long and int64_t are the same type } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_long_64_linuxmodule=no -else +else $as_nop ac_cv_long_64_linuxmodule=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_64_linuxmodule" >&5 -$as_echo "$ac_cv_long_64_linuxmodule" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_64_linuxmodule" >&5 +printf "%s\n" "$ac_cv_long_64_linuxmodule" >&6; } if test $ac_cv_long_64_linuxmodule = yes; then -$as_echo "#define HAVE_INT64_IS_LONG_LINUXMODULE 1" >>confdefs.h +printf "%s\n" "#define HAVE_INT64_IS_LONG_LINUXMODULE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long and int64_t are the same type in the Linux kernel" >&5 -$as_echo_n "checking whether long long and int64_t are the same type in the Linux kernel... " >&6; } -if ${ac_cv_long_long_64_linuxmodule+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long long and int64_t are the same type in the Linux kernel" >&5 +printf %s "checking whether long long and int64_t are the same type in the Linux kernel... " >&6; } +if test ${ac_cv_long_long_64_linuxmodule+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -15898,33 +16925,35 @@ void f1(long long) { void f1(int64_t) { // will fail if long long and int64_t are the same type } int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_long_long_64_linuxmodule=no -else +else $as_nop ac_cv_long_long_64_linuxmodule=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long_64_linuxmodule" >&5 -$as_echo "$ac_cv_long_long_64_linuxmodule" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long_64_linuxmodule" >&5 +printf "%s\n" "$ac_cv_long_long_64_linuxmodule" >&6; } if test $ac_cv_long_long_64_linuxmodule = yes; then -$as_echo "#define HAVE_INT64_IS_LONG_LONG_LINUXMODULE 1" >>confdefs.h +printf "%s\n" "#define HAVE_INT64_IS_LONG_LONG_LINUXMODULE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uintptr_t is defined in the Linux kernel" >&5 -$as_echo_n "checking whether uintptr_t is defined in the Linux kernel... " >&6; } -if ${ac_cv_uintptr_t_linuxmodule+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uintptr_t is defined in the Linux kernel" >&5 +printf %s "checking whether uintptr_t is defined in the Linux kernel... " >&6; } +if test ${ac_cv_uintptr_t_linuxmodule+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -15947,31 +16976,32 @@ $linux_autoconf_include #include <linux/types.h> int -main () +main (void) { uintptr_t i = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_uintptr_t_linuxmodule=yes -else +else $as_nop ac_cv_uintptr_t_linuxmodule=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_uintptr_t_linuxmodule" >&5 -$as_echo "$ac_cv_uintptr_t_linuxmodule" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_uintptr_t_linuxmodule" >&5 +printf "%s\n" "$ac_cv_uintptr_t_linuxmodule" >&6; } if test $ac_cv_uintptr_t_linuxmodule = yes; then -$as_echo "#define HAVE_UINTPTR_T_LINUXMODULE 1" >>confdefs.h +printf "%s\n" "#define HAVE_UINTPTR_T_LINUXMODULE 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "atomic_cmpxchg" "ac_cv_have_decl_atomic_cmpxchg" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "atomic_cmpxchg" "ac_cv_have_decl_atomic_cmpxchg" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -15989,20 +17019,20 @@ $as_echo "#define HAVE_UINTPTR_T_LINUXMODULE 1" >>confdefs.h $linux_autoconf_include #include <asm/types.h> #include <asm/atomic.h> -" -if test "x$ac_cv_have_decl_atomic_cmpxchg" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_atomic_cmpxchg" = xyes +then : ac_cv_linux_atomic_cmpxchg=yes -else +else $as_nop ac_cv_linux_atomic_cmpxchg=no fi - if test $ac_cv_linux_atomic_cmpxchg = yes; then -$as_echo "#define HAVE_LINUX_ATOMIC_CMPXCHG 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_ATOMIC_CMPXCHG 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "atomic_set_mask" "ac_cv_have_decl_atomic_set_mask" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "atomic_set_mask" "ac_cv_have_decl_atomic_set_mask" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16020,20 +17050,20 @@ $as_echo "#define HAVE_LINUX_ATOMIC_CMPXCHG 1" >>confdefs.h $linux_autoconf_include #include <asm/types.h> #include <asm/atomic.h> -" -if test "x$ac_cv_have_decl_atomic_set_mask" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_atomic_set_mask" = xyes +then : ac_cv_linux_atomic_set_mask=yes -else +else $as_nop ac_cv_linux_atomic_set_mask=no fi - if test $ac_cv_linux_atomic_set_mask = yes; then -$as_echo "#define HAVE_LINUX_ATOMIC_SET_MASK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_ATOMIC_SET_MASK 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "atomic_add_return" "ac_cv_have_decl_atomic_add_return" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "atomic_add_return" "ac_cv_have_decl_atomic_add_return" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16051,24 +17081,25 @@ $as_echo "#define HAVE_LINUX_ATOMIC_SET_MASK 1" >>confdefs.h $linux_autoconf_include #include <asm/types.h> #include <asm/atomic.h> -" -if test "x$ac_cv_have_decl_atomic_add_return" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_atomic_add_return" = xyes +then : ac_cv_linux_atomic_add_return=yes -else +else $as_nop ac_cv_linux_atomic_add_return=no fi - if test $ac_cv_linux_atomic_add_return = yes; then -$as_echo "#define HAVE_LINUX_ATOMIC_ADD_RETURN 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_ATOMIC_ADD_RETURN 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <asm/alternative.h>" >&5 -$as_echo_n "checking for <asm/alternative.h>... " >&6; } -if ${ac_cv_linux_asm_alternative_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for <asm/alternative.h>" >&5 +printf %s "checking for <asm/alternative.h>... " >&6; } +if test ${ac_cv_linux_asm_alternative_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -16096,33 +17127,35 @@ $linux_autoconf_include #include <asm/types.h> #include <asm/alternative.h> int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_linux_asm_alternative_h=yes -else +else $as_nop ac_cv_linux_asm_alternative_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_asm_alternative_h" >&5 -$as_echo "$ac_cv_linux_asm_alternative_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_asm_alternative_h" >&5 +printf "%s\n" "$ac_cv_linux_asm_alternative_h" >&6; } if test $ac_cv_linux_asm_alternative_h = yes; then -$as_echo "#define HAVE_LINUX_ASM_ALTERNATIVE_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_ASM_ALTERNATIVE_H 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <asm/scatterlist.h>" >&5 -$as_echo_n "checking for <asm/scatterlist.h>... " >&6; } -if ${ac_cv_linux_asm_scatterlist_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for <asm/scatterlist.h>" >&5 +printf %s "checking for <asm/scatterlist.h>... " >&6; } +if test ${ac_cv_linux_asm_scatterlist_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -16150,33 +17183,35 @@ $linux_autoconf_include #include <asm/types.h> #include <asm/scatterlist.h> int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_linux_asm_scatterlist_h=yes -else +else $as_nop ac_cv_linux_asm_scatterlist_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_asm_scatterlist_h" >&5 -$as_echo "$ac_cv_linux_asm_scatterlist_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_asm_scatterlist_h" >&5 +printf "%s\n" "$ac_cv_linux_asm_scatterlist_h" >&6; } if test $ac_cv_linux_asm_scatterlist_h = yes; then -$as_echo "#define HAVE_LINUX_ASM_SCATTERLIST_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_ASM_SCATTERLIST_H 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <asm/system.h>" >&5 -$as_echo_n "checking for <asm/system.h>... " >&6; } -if ${ac_cv_linux_asm_system_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for <asm/system.h>" >&5 +printf %s "checking for <asm/system.h>... " >&6; } +if test ${ac_cv_linux_asm_system_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -16204,29 +17239,110 @@ $linux_autoconf_include #include <asm/types.h> #include <asm/system.h> int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_linux_asm_system_h=yes -else +else $as_nop ac_cv_linux_asm_system_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_asm_system_h" >&5 -$as_echo "$ac_cv_linux_asm_system_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_asm_system_h" >&5 +printf "%s\n" "$ac_cv_linux_asm_system_h" >&6; } if test $ac_cv_linux_asm_system_h = yes; then -$as_echo "#define HAVE_LINUX_ASM_SYSTEM_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_ASM_SYSTEM_H 1" >>confdefs.h fi - ac_fn_c_check_decl "$LINENO" "set_cpus_allowed_ptr" "ac_cv_have_decl_set_cpus_allowed_ptr" "#define KBUILD_STR(s) #s + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ +(void) strchr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <float.h> +#include <limits.h> +#include <stdarg.h> +#include <stddef.h> +extern void ac_decl (int, char *); + +int +main (void) +{ +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else $as_nop + ac_cv_c_undeclared_builtin_options=$ac_arg +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in #( + 'cannot detect') : + { { 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 make $CC report undeclared builtins +See \`config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; #( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + +ac_fn_check_decl "$LINENO" "set_cpus_allowed_ptr" "ac_cv_have_decl_set_cpus_allowed_ptr" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16244,16 +17360,16 @@ $as_echo "#define HAVE_LINUX_ASM_SYSTEM_H 1" >>confdefs.h $linux_autoconf_include #include <asm/types.h> #include <linux/sched.h> -" -if test "x$ac_cv_have_decl_set_cpus_allowed_ptr" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_set_cpus_allowed_ptr" = xyes +then : ac_cv_linux_set_cpus_allowed_ptr=yes -else +else $as_nop ac_cv_linux_set_cpus_allowed_ptr=no fi - if test $ac_cv_linux_set_cpus_allowed_ptr = yes; then -$as_echo "#define HAVE_LINUX_SET_CPUS_ALLOWED_PTR 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SET_CPUS_ALLOWED_PTR 1" >>confdefs.h fi @@ -16265,11 +17381,12 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sk_buff has a security member" >&5 -$as_echo_n "checking whether struct sk_buff has a security member... " >&6; } -if ${ac_cv_linuxmodule_skbuff_security+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct sk_buff has a security member" >&5 +printf %s "checking whether struct sk_buff has a security member... " >&6; } +if test ${ac_cv_linuxmodule_skbuff_security+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16291,33 +17408,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; s->security = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skbuff_security=yes -else +else $as_nop ac_cv_linuxmodule_skbuff_security=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skbuff_security" >&5 -$as_echo "$ac_cv_linuxmodule_skbuff_security" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skbuff_security" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skbuff_security" >&6; } if test $ac_cv_linuxmodule_skbuff_security = yes; then -$as_echo "#define HAVE_LINUX_SKBUFF_SECURITY 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKBUFF_SECURITY 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sk_buff has an fclone member" >&5 -$as_echo_n "checking whether struct sk_buff has an fclone member... " >&6; } -if ${ac_cv_linuxmodule_skbuff_fclone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct sk_buff has an fclone member" >&5 +printf %s "checking whether struct sk_buff has an fclone member... " >&6; } +if test ${ac_cv_linuxmodule_skbuff_fclone+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16339,33 +17458,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; s->fclone = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skbuff_fclone=yes -else +else $as_nop ac_cv_linuxmodule_skbuff_fclone=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skbuff_fclone" >&5 -$as_echo "$ac_cv_linuxmodule_skbuff_fclone" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skbuff_fclone" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skbuff_fclone" >&6; } if test $ac_cv_linuxmodule_skbuff_fclone = yes; then -$as_echo "#define HAVE_LINUX_SKBUFF_FCLONE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKBUFF_FCLONE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a tso_size member" >&5 -$as_echo_n "checking whether skb_shinfo has a tso_size member... " >&6; } -if ${ac_cv_linuxmodule_skb_shinfo_tso_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a tso_size member" >&5 +printf %s "checking whether skb_shinfo has a tso_size member... " >&6; } +if test ${ac_cv_linuxmodule_skb_shinfo_tso_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16387,33 +17508,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; skb_shinfo(s)->tso_size = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skb_shinfo_tso_size=yes -else +else $as_nop ac_cv_linuxmodule_skb_shinfo_tso_size=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_tso_size" >&5 -$as_echo "$ac_cv_linuxmodule_skb_shinfo_tso_size" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_tso_size" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skb_shinfo_tso_size" >&6; } if test $ac_cv_linuxmodule_skb_shinfo_tso_size = yes; then -$as_echo "#define HAVE_LINUX_SKB_SHINFO_TSO_SIZE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKB_SHINFO_TSO_SIZE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a gso_size member" >&5 -$as_echo_n "checking whether skb_shinfo has a gso_size member... " >&6; } -if ${ac_cv_linuxmodule_skb_shinfo_gso_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a gso_size member" >&5 +printf %s "checking whether skb_shinfo has a gso_size member... " >&6; } +if test ${ac_cv_linuxmodule_skb_shinfo_gso_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16435,33 +17558,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; skb_shinfo(s)->gso_size = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skb_shinfo_gso_size=yes -else +else $as_nop ac_cv_linuxmodule_skb_shinfo_gso_size=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_gso_size" >&5 -$as_echo "$ac_cv_linuxmodule_skb_shinfo_gso_size" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_gso_size" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skb_shinfo_gso_size" >&6; } if test $ac_cv_linuxmodule_skb_shinfo_gso_size = yes; then -$as_echo "#define HAVE_LINUX_SKB_SHINFO_GSO_SIZE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKB_SHINFO_GSO_SIZE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a ufo_size member" >&5 -$as_echo_n "checking whether skb_shinfo has a ufo_size member... " >&6; } -if ${ac_cv_linuxmodule_skb_shinfo_ufo_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a ufo_size member" >&5 +printf %s "checking whether skb_shinfo has a ufo_size member... " >&6; } +if test ${ac_cv_linuxmodule_skb_shinfo_ufo_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16483,33 +17608,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; skb_shinfo(s)->ufo_size = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skb_shinfo_ufo_size=yes -else +else $as_nop ac_cv_linuxmodule_skb_shinfo_ufo_size=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_ufo_size" >&5 -$as_echo "$ac_cv_linuxmodule_skb_shinfo_ufo_size" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_ufo_size" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skb_shinfo_ufo_size" >&6; } if test $ac_cv_linuxmodule_skb_shinfo_ufo_size = yes; then -$as_echo "#define HAVE_LINUX_SKB_SHINFO_UFO_SIZE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKB_SHINFO_UFO_SIZE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has an ip6_frag_id member" >&5 -$as_echo_n "checking whether skb_shinfo has an ip6_frag_id member... " >&6; } -if ${ac_cv_linuxmodule_skb_shinfo_ip6_frag_id+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has an ip6_frag_id member" >&5 +printf %s "checking whether skb_shinfo has an ip6_frag_id member... " >&6; } +if test ${ac_cv_linuxmodule_skb_shinfo_ip6_frag_id+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16531,33 +17658,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; skb_shinfo(s)->ip6_frag_id = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skb_shinfo_ip6_frag_id=yes -else +else $as_nop ac_cv_linuxmodule_skb_shinfo_ip6_frag_id=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_ip6_frag_id" >&5 -$as_echo "$ac_cv_linuxmodule_skb_shinfo_ip6_frag_id" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_ip6_frag_id" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skb_shinfo_ip6_frag_id" >&6; } if test $ac_cv_linuxmodule_skb_shinfo_ip6_frag_id = yes; then -$as_echo "#define HAVE_LINUX_SKB_SHINFO_IP6_FRAG_ID 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKB_SHINFO_IP6_FRAG_ID 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has tx_flags defining SKBTX_DEV_ZEROCOPY" >&5 -$as_echo_n "checking whether skb_shinfo has tx_flags defining SKBTX_DEV_ZEROCOPY... " >&6; } -if ${ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has tx_flags defining SKBTX_DEV_ZEROCOPY" >&5 +printf %s "checking whether skb_shinfo has tx_flags defining SKBTX_DEV_ZEROCOPY... " >&6; } +if test ${ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16579,33 +17708,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; skb_shinfo(s)->tx_flags = SKBTX_DEV_ZEROCOPY; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy=yes -else +else $as_nop ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy" >&5 -$as_echo "$ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy" >&6; } if test $ac_cv_linuxmodule_skb_shinfo_tx_flags_skbtx_dev_zerocopy = yes; then -$as_echo "#define HAVE_LINUX_SKB_SHINFO_TX_FLAGS_SKBTX_DEV_ZEROCOPY 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKB_SHINFO_TX_FLAGS_SKBTX_DEV_ZEROCOPY 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a tx_flags union" >&5 -$as_echo_n "checking whether skb_shinfo has a tx_flags union... " >&6; } -if ${ac_cv_linuxmodule_skb_shinfo_tx_flags_union+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether skb_shinfo has a tx_flags union" >&5 +printf %s "checking whether skb_shinfo has a tx_flags union... " >&6; } +if test ${ac_cv_linuxmodule_skb_shinfo_tx_flags_union+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16627,33 +17758,35 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *s; skb_shinfo(s)->tx_flags.flags = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_skb_shinfo_tx_flags_union=yes -else +else $as_nop ac_cv_linuxmodule_skb_shinfo_tx_flags_union=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_tx_flags_union" >&5 -$as_echo "$ac_cv_linuxmodule_skb_shinfo_tx_flags_union" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_skb_shinfo_tx_flags_union" >&5 +printf "%s\n" "$ac_cv_linuxmodule_skb_shinfo_tx_flags_union" >&6; } if test $ac_cv_linuxmodule_skb_shinfo_tx_flags_union = yes; then -$as_echo "#define HAVE_LINUX_SKB_SHINFO_TX_FLAGS_UNION 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SKB_SHINFO_TX_FLAGS_UNION 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device polling kernel extension" >&5 -$as_echo_n "checking for device polling kernel extension... " >&6; } -if ${ac_cv_linuxmodule_net_device_polling+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device polling kernel extension" >&5 +printf %s "checking for device polling kernel extension... " >&6; } +if test ${ac_cv_linuxmodule_net_device_polling+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16675,29 +17808,30 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/netdevice.h> int -main () +main (void) { extern struct net_device *d; d->polling = 0; ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_net_device_polling=yes -else +else $as_nop ac_cv_linuxmodule_net_device_polling=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_net_device_polling" >&5 -$as_echo "$ac_cv_linuxmodule_net_device_polling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_net_device_polling" >&5 +printf "%s\n" "$ac_cv_linuxmodule_net_device_polling" >&6; } if test $ac_cv_linuxmodule_net_device_polling = yes; then -$as_echo "#define HAVE_LINUX_POLLING 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_POLLING 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "skb_dst_drop" "ac_cv_have_decl_skb_dst_drop" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "skb_dst_drop" "ac_cv_have_decl_skb_dst_drop" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16715,20 +17849,20 @@ $as_echo "#define HAVE_LINUX_POLLING 1" >>confdefs.h $linux_autoconf_include #include <asm/types.h> #include <net/dst.h> -" -if test "x$ac_cv_have_decl_skb_dst_drop" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_skb_dst_drop" = xyes +then : ac_cv_skb_dst_drop=yes -else +else $as_nop ac_cv_skb_dst_drop=no fi - if test $ac_cv_skb_dst_drop = yes; then -$as_echo "#define HAVE_SKB_DST_DROP 1" >>confdefs.h +printf "%s\n" "#define HAVE_SKB_DST_DROP 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "skb_recycle" "ac_cv_have_decl_skb_recycle" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "skb_recycle" "ac_cv_have_decl_skb_recycle" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16746,20 +17880,20 @@ $as_echo "#define HAVE_SKB_DST_DROP 1" >>confdefs.h $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> -" -if test "x$ac_cv_have_decl_skb_recycle" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_skb_recycle" = xyes +then : ac_cv_skb_recycle=yes -else +else $as_nop ac_cv_skb_recycle=no fi - if test $ac_cv_skb_recycle = yes; then -$as_echo "#define HAVE_SKB_RECYCLE 1" >>confdefs.h +printf "%s\n" "#define HAVE_SKB_RECYCLE 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "skb_recycle_check" "ac_cv_have_decl_skb_recycle_check" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "skb_recycle_check" "ac_cv_have_decl_skb_recycle_check" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16777,27 +17911,28 @@ $as_echo "#define HAVE_SKB_RECYCLE 1" >>confdefs.h $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> -" -if test "x$ac_cv_have_decl_skb_recycle_check" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_skb_recycle_check" = xyes +then : ac_cv_skb_recycle_check=yes -else +else $as_nop ac_cv_skb_recycle_check=no fi - if test $ac_cv_skb_recycle_check = yes; then -$as_echo "#define HAVE_SKB_RECYCLE_CHECK 1" >>confdefs.h +printf "%s\n" "#define HAVE_SKB_RECYCLE_CHECK 1" >>confdefs.h fi save_cflags="$CFLAGS" CFLAGS="$save_cflags -Werror-implicit-function-declaration" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skb_recycle returns an sk_buff" >&5 -$as_echo_n "checking whether skb_recycle returns an sk_buff... " >&6; } -if ${ac_cv_linuxmodule_click_skb_recycle+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether skb_recycle returns an sk_buff" >&5 +printf %s "checking whether skb_recycle returns an sk_buff... " >&6; } +if test ${ac_cv_linuxmodule_click_skb_recycle+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16819,31 +17954,32 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> int -main () +main (void) { extern struct sk_buff *b; b = skb_recycle(b); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_click_skb_recycle=yes -else +else $as_nop ac_cv_linuxmodule_click_skb_recycle=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_click_skb_recycle" >&5 -$as_echo "$ac_cv_linuxmodule_click_skb_recycle" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_click_skb_recycle" >&5 +printf "%s\n" "$ac_cv_linuxmodule_click_skb_recycle" >&6; } if test $ac_cv_linuxmodule_click_skb_recycle = yes; then -$as_echo "#define HAVE_CLICK_SKB_RECYCLE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLICK_SKB_RECYCLE 1" >>confdefs.h fi CFLAGS="$save_cflags" - ac_fn_cxx_check_decl "$LINENO" "skb_linearize" "ac_cv_have_decl_skb_linearize" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "skb_linearize" "ac_cv_have_decl_skb_linearize" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16861,24 +17997,25 @@ CFLAGS="$save_cflags" $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> -" -if test "x$ac_cv_have_decl_skb_linearize" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_skb_linearize" = xyes +then : ac_cv_skb_linearize=yes -else +else $as_nop ac_cv_skb_linearize=no fi - if test $ac_cv_skb_linearize = yes; then -$as_echo "#define HAVE_SKB_LINEARIZE 1" >>confdefs.h +printf "%s\n" "#define HAVE_SKB_LINEARIZE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netif_receive_skb has been extended" >&5 -$as_echo_n "checking whether netif_receive_skb has been extended... " >&6; } -if ${ac_cv_linuxmodule_netif_receive_skb_extended+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether netif_receive_skb has been extended" >&5 +printf %s "checking whether netif_receive_skb has been extended... " >&6; } +if test ${ac_cv_linuxmodule_netif_receive_skb_extended+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define KBUILD_STR(s) #s @@ -16900,29 +18037,30 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/netdevice.h> int -main () +main (void) { netif_receive_skb(0, 0, 0); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_linuxmodule_netif_receive_skb_extended=yes -else +else $as_nop ac_cv_linuxmodule_netif_receive_skb_extended=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_netif_receive_skb_extended" >&5 -$as_echo "$ac_cv_linuxmodule_netif_receive_skb_extended" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_netif_receive_skb_extended" >&5 +printf "%s\n" "$ac_cv_linuxmodule_netif_receive_skb_extended" >&6; } if test $ac_cv_linuxmodule_netif_receive_skb_extended = yes; then -$as_echo "#define HAVE_NETIF_RECEIVE_SKB_EXTENDED 1" >>confdefs.h +printf "%s\n" "#define HAVE_NETIF_RECEIVE_SKB_EXTENDED 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "net_enable_timestamp" "ac_cv_have_decl_net_enable_timestamp" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "net_enable_timestamp" "ac_cv_have_decl_net_enable_timestamp" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16941,20 +18079,20 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> #include <linux/netdevice.h> -" -if test "x$ac_cv_have_decl_net_enable_timestamp" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_net_enable_timestamp" = xyes +then : ac_cv_net_enable_timestamp=yes -else +else $as_nop ac_cv_net_enable_timestamp=no fi - if test $ac_cv_net_enable_timestamp = yes; then -$as_echo "#define HAVE_NET_ENABLE_TIMESTAMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_NET_ENABLE_TIMESTAMP 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "netif_tx_lock" "ac_cv_have_decl_netif_tx_lock" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "netif_tx_lock" "ac_cv_have_decl_netif_tx_lock" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -16973,20 +18111,20 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> #include <linux/netdevice.h> -" -if test "x$ac_cv_have_decl_netif_tx_lock" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_netif_tx_lock" = xyes +then : ac_cv_netif_tx_lock=yes -else +else $as_nop ac_cv_netif_tx_lock=no fi - if test $ac_cv_netif_tx_lock = yes; then -$as_echo "#define HAVE_NETIF_TX_LOCK 1" >>confdefs.h +printf "%s\n" "#define HAVE_NETIF_TX_LOCK 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "netdev_get_tx_queue" "ac_cv_have_decl_netdev_get_tx_queue" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "netdev_get_tx_queue" "ac_cv_have_decl_netdev_get_tx_queue" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -17005,20 +18143,20 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> #include <linux/netdevice.h> -" -if test "x$ac_cv_have_decl_netdev_get_tx_queue" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_netdev_get_tx_queue" = xyes +then : ac_cv_netdev_get_tx_queue=yes -else +else $as_nop ac_cv_netdev_get_tx_queue=no fi - if test $ac_cv_netdev_get_tx_queue = yes; then -$as_echo "#define HAVE_NETDEV_GET_TX_QUEUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_NETDEV_GET_TX_QUEUE 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "netif_tx_queue_frozen" "ac_cv_have_decl_netif_tx_queue_frozen" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "netif_tx_queue_frozen" "ac_cv_have_decl_netif_tx_queue_frozen" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -17037,20 +18175,20 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> #include <linux/netdevice.h> -" -if test "x$ac_cv_have_decl_netif_tx_queue_frozen" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_netif_tx_queue_frozen" = xyes +then : ac_cv_netif_tx_queue_frozen=yes -else +else $as_nop ac_cv_netif_tx_queue_frozen=no fi - if test $ac_cv_netif_tx_queue_frozen = yes; then -$as_echo "#define HAVE_NETIF_TX_QUEUE_FROZEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_NETIF_TX_QUEUE_FROZEN 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "netdev_uses_dsa_tags" "ac_cv_have_decl_netdev_uses_dsa_tags" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "netdev_uses_dsa_tags" "ac_cv_have_decl_netdev_uses_dsa_tags" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -17069,20 +18207,20 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> #include <linux/netdevice.h> -" -if test "x$ac_cv_have_decl_netdev_uses_dsa_tags" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_netdev_uses_dsa_tags" = xyes +then : ac_cv_netdev_uses_dsa_tags=yes -else +else $as_nop ac_cv_netdev_uses_dsa_tags=no fi - if test $ac_cv_netdev_uses_dsa_tags = yes; then -$as_echo "#define HAVE_NETDEV_USES_DSA_TAGS 1" >>confdefs.h +printf "%s\n" "#define HAVE_NETDEV_USES_DSA_TAGS 1" >>confdefs.h fi - ac_fn_cxx_check_decl "$LINENO" "netdev_uses_trailer_tags" "ac_cv_have_decl_netdev_uses_trailer_tags" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "netdev_uses_trailer_tags" "ac_cv_have_decl_netdev_uses_trailer_tags" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -17101,92 +18239,97 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/skbuff.h> #include <linux/netdevice.h> -" -if test "x$ac_cv_have_decl_netdev_uses_trailer_tags" = xyes; then : +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_netdev_uses_trailer_tags" = xyes +then : ac_cv_netdev_uses_trailer_tags=yes -else +else $as_nop ac_cv_netdev_uses_trailer_tags=no fi - if test $ac_cv_netdev_uses_trailer_tags = yes; then -$as_echo "#define HAVE_NETDEV_USES_TRAILER_TAGS 1" >>confdefs.h +printf "%s\n" "#define HAVE_NETDEV_USES_TRAILER_TAGS 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netdev_rx_handler_register kernel symbol" >&5 -$as_echo_n "checking for netdev_rx_handler_register kernel symbol... " >&6; } -if ${ac_cv_linux_netdev_rx_handler_register+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netdev_rx_handler_register kernel symbol" >&5 +printf %s "checking for netdev_rx_handler_register kernel symbol... " >&6; } +if test ${ac_cv_linux_netdev_rx_handler_register+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_netdev_rx_handler_register" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_netdev_rx_handler_register=yes else ac_cv_linux_netdev_rx_handler_register=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_netdev_rx_handler_register" >&5 -$as_echo "$ac_cv_linux_netdev_rx_handler_register" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_netdev_rx_handler_register" >&5 +printf "%s\n" "$ac_cv_linux_netdev_rx_handler_register" >&6; } if test $ac_cv_linux_netdev_rx_handler_register = yes; then - $as_echo "#define HAVE_LINUX_NETDEV_RX_HANDLER_REGISTER 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_NETDEV_RX_HANDLER_REGISTER 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_monotonic_coarse kernel symbol" >&5 -$as_echo_n "checking for get_monotonic_coarse kernel symbol... " >&6; } -if ${ac_cv_linux_get_monotonic_coarse+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for get_monotonic_coarse kernel symbol" >&5 +printf %s "checking for get_monotonic_coarse kernel symbol... " >&6; } +if test ${ac_cv_linux_get_monotonic_coarse+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep '__ksymtab_get_monotonic_coarse$' $linux_system_map >/dev/null 2>&1; then ac_cv_linux_get_monotonic_coarse=yes else ac_cv_linux_get_monotonic_coarse=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_get_monotonic_coarse" >&5 -$as_echo "$ac_cv_linux_get_monotonic_coarse" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_get_monotonic_coarse" >&5 +printf "%s\n" "$ac_cv_linux_get_monotonic_coarse" >&6; } if test $ac_cv_linux_get_monotonic_coarse = yes; then - $as_echo "#define HAVE_LINUX_GET_MONOTONIC_COARSE 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_GET_MONOTONIC_COARSE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ktime_mono_to_any kernel symbol" >&5 -$as_echo_n "checking for ktime_mono_to_any kernel symbol... " >&6; } -if ${ac_cv_linux_ktime_mono_to_any+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ktime_mono_to_any kernel symbol" >&5 +printf %s "checking for ktime_mono_to_any kernel symbol... " >&6; } +if test ${ac_cv_linux_ktime_mono_to_any+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep '__ksymtab_ktime_mono_to_any$' $linux_system_map >/dev/null 2>&1; then ac_cv_linux_ktime_mono_to_any=yes else ac_cv_linux_ktime_mono_to_any=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_ktime_mono_to_any" >&5 -$as_echo "$ac_cv_linux_ktime_mono_to_any" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_ktime_mono_to_any" >&5 +printf "%s\n" "$ac_cv_linux_ktime_mono_to_any" >&6; } if test $ac_cv_linux_ktime_mono_to_any = yes; then - $as_echo "#define HAVE_LINUX_KTIME_MONO_TO_ANY 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_KTIME_MONO_TO_ANY 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getboottime kernel symbol" >&5 -$as_echo_n "checking for getboottime kernel symbol... " >&6; } -if ${ac_cv_linux_getboottime+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getboottime kernel symbol" >&5 +printf %s "checking for getboottime kernel symbol... " >&6; } +if test ${ac_cv_linux_getboottime+y} +then : + printf %s "(cached) " >&6 +else $as_nop if grep "__ksymtab_getboottime" $linux_system_map >/dev/null 2>&1; then ac_cv_linux_getboottime=yes else ac_cv_linux_getboottime=no; fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_getboottime" >&5 -$as_echo "$ac_cv_linux_getboottime" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_getboottime" >&5 +printf "%s\n" "$ac_cv_linux_getboottime" >&6; } if test $ac_cv_linux_getboottime = yes; then - $as_echo "#define HAVE_LINUX_GETBOOTTIME 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_GETBOOTTIME 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct super_block has an s_d_op member" >&5 -$as_echo_n "checking whether struct super_block has an s_d_op member... " >&6; } -if ${ac_cv_linuxmodule_super_block_s_d_op+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct super_block has an s_d_op member" >&5 +printf %s "checking whether struct super_block has an s_d_op member... " >&6; } +if test ${ac_cv_linuxmodule_super_block_s_d_op+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -17214,29 +18357,30 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/fs.h> int -main () +main (void) { extern struct super_block *sb; sb->s_d_op = 0; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_linuxmodule_super_block_s_d_op=yes -else +else $as_nop ac_cv_linuxmodule_super_block_s_d_op=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_super_block_s_d_op" >&5 -$as_echo "$ac_cv_linuxmodule_super_block_s_d_op" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_super_block_s_d_op" >&5 +printf "%s\n" "$ac_cv_linuxmodule_super_block_s_d_op" >&6; } if test $ac_cv_linuxmodule_super_block_s_d_op = yes; then -$as_echo "#define HAVE_LINUX_SUPER_BLOCK_S_D_OP 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_SUPER_BLOCK_S_D_OP 1" >>confdefs.h fi - ac_fn_c_check_decl "$LINENO" "d_make_root" "ac_cv_have_decl_d_make_root" "#define KBUILD_STR(s) #s + ac_fn_check_decl "$LINENO" "d_make_root" "ac_cv_have_decl_d_make_root" "#define KBUILD_STR(s) #s #define KBUILD_BASENAME KBUILD_STR(click) #define KBUILD_MODNAME KBUILD_STR(click) #define new linux_new @@ -17255,24 +18399,25 @@ $linux_autoconf_include #include <asm/types.h> #include <linux/fs.h> #include <linux/dcache.h> -" -if test "x$ac_cv_have_decl_d_make_root" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_d_make_root" = xyes +then : ac_cv_linux_d_make_root=yes -else +else $as_nop ac_cv_linux_d_make_root=no fi - if test $ac_cv_linux_d_make_root = yes; then -$as_echo "#define HAVE_LINUX_D_MAKE_ROOT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_D_MAKE_ROOT 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dentry has a d_child member" >&5 -$as_echo_n "checking whether struct dentry has a d_child member... " >&6; } -if ${ac_cv_linuxmodule_dentry_d_child+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct dentry has a d_child member" >&5 +printf %s "checking whether struct dentry has a d_child member... " >&6; } +if test ${ac_cv_linuxmodule_dentry_d_child+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -17301,25 +18446,26 @@ $linux_autoconf_include #include <linux/fs.h> #include <linux/dcache.h> int -main () +main (void) { extern struct dentry* de; de->d_child.next = 0; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_linuxmodule_dentry_d_child=yes -else +else $as_nop ac_cv_linuxmodule_dentry_d_child=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_dentry_d_child" >&5 -$as_echo "$ac_cv_linuxmodule_dentry_d_child" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linuxmodule_dentry_d_child" >&5 +printf "%s\n" "$ac_cv_linuxmodule_dentry_d_child" >&6; } if test $ac_cv_linuxmodule_dentry_d_child = yes; then -$as_echo "#define HAVE_LINUX_DENTRY_D_CHILD 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_DENTRY_D_CHILD 1" >>confdefs.h fi @@ -17339,7 +18485,7 @@ if test $ac_have_bsd_kernel = y; then if echo "$DRIVERS" | grep linuxmodule >/dev/null 2>&1; then :; else TOOL_TARGETS="$TOOL_TARGETS click-install" fi - $as_echo "#define HAVE_BSDMODULE_DRIVER 1" >>confdefs.h + printf "%s\n" "#define HAVE_BSDMODULE_DRIVER 1" >>confdefs.h HAVE_BSDMODULE_DRIVER=1 fi @@ -17354,7 +18500,7 @@ fi if test "x$enable_minios" = xyes; then DRIVERS="$DRIVERS minios" - $as_echo "#define HAVE_MINIOS_DRIVER 1" >>confdefs.h + printf "%s\n" "#define HAVE_MINIOS_DRIVER 1" >>confdefs.h HAVE_MINIOS_DRIVER=1 fi @@ -17367,7 +18513,8 @@ fi -# Find a good install program. We prefer a C program (faster), + + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install @@ -17381,20 +18528,25 @@ fi # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in #(( + ./ | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; @@ -17404,13 +18556,13 @@ case $as_dir/ in #(( # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else @@ -17418,12 +18570,12 @@ case $as_dir/ in #(( echo one > conftest.one echo two > conftest.two mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi @@ -17439,7 +18591,7 @@ IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi - if test "${ac_cv_path_install+set}" = set; then + if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a @@ -17449,8 +18601,8 @@ fi INSTALL=$ac_install_sh fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -17462,17 +18614,17 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether install accepts -C" >&5 -$as_echo_n "checking whether install accepts -C... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether install accepts -C" >&5 +printf %s "checking whether install accepts -C... " >&6; } echo X > conftest.1 if $INSTALL -C conftest.1 conftest.2 >/dev/null 2>&1; then INSTALL_IF_CHANGED='${INSTALL} -C' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else INSTALL_IF_CHANGED='${top_builddir}/installch' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi rm -f conftest.1 conftest.2 @@ -17485,11 +18637,12 @@ $as_echo "no" >&6; } if test "${GMAKE-NO}" = NO; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 -$as_echo_n "checking for GNU make... " >&6; } -if ${ac_cv_gnu_make+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 +printf %s "checking for GNU make... " >&6; } +if test ${ac_cv_gnu_make+y} +then : + printf %s "(cached) " >&6 +else $as_nop if /bin/sh -c 'make -f /dev/null -n --version | grep GNU' >/dev/null 2>/dev/null; then ac_cv_gnu_make='make' elif /bin/sh -c 'gmake -f /dev/null -n --version | grep GNU' >/dev/null 2>/dev/null; then @@ -17498,8 +18651,8 @@ else ac_cv_gnu_make='not found' fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_make" >&5 -$as_echo "$ac_cv_gnu_make" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_make" >&5 +printf "%s\n" "$ac_cv_gnu_make" >&6; } test "$ac_cv_gnu_make" != 'not found' && GMAKE="$ac_cv_gnu_make" else /bin/sh -c '$GMAKE -f /dev/null -n --version | grep GNU' >/dev/null 2>/dev/null || GMAKE='1' @@ -17511,22 +18664,22 @@ $as_echo "$ac_cv_gnu_make" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5 -$as_echo_n "checking for working autoconf... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5 +printf %s "checking for working autoconf... " >&6; } AUTOCONF="${AUTOCONF-autoconf}" if ($AUTOCONF --version) < /dev/null > conftest.out 2>&1; then if test `head -n 1 conftest.out | sed 's/.*2\.\([0-9]*\).*/\1/'` -ge 13 2>/dev/null; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else AUTOCONF='$(conf_auxdir)/missing autoconf' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5 -$as_echo "old" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5 +printf "%s\n" "old" >&6; } fi else AUTOCONF='$(conf_auxdir)/missing autoconf' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } fi @@ -17538,11 +18691,12 @@ $as_echo "missing" >&6; } do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_perl5+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_perl5+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$perl5"; then ac_cv_prog_perl5="$perl5" # Let the user override the test. else @@ -17550,11 +18704,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_perl5="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17565,11 +18723,11 @@ fi fi perl5=$ac_cv_prog_perl5 if test -n "$perl5"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl5" >&5 -$as_echo "$perl5" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perl5" >&5 +printf "%s\n" "$perl5" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -17583,11 +18741,12 @@ test -n "$perl5" || perl5="missing" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_localperl5+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_localperl5+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$localperl5"; then ac_cv_prog_localperl5="$localperl5" # Let the user override the test. else @@ -17595,11 +18754,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /usr/local/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_localperl5="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17610,11 +18773,11 @@ fi fi localperl5=$ac_cv_prog_localperl5 if test -n "$localperl5"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $localperl5" >&5 -$as_echo "$localperl5" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $localperl5" >&5 +printf "%s\n" "$localperl5" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -17642,11 +18805,12 @@ for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else @@ -17654,11 +18818,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17669,22 +18837,23 @@ fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST @@ -17692,10 +18861,15 @@ else for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP @@ -17704,13 +18878,13 @@ case `"$ac_path_GREP" --version 2>&1` in ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -17738,16 +18912,17 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else @@ -17758,10 +18933,15 @@ else for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP @@ -17770,13 +18950,13 @@ case `"$ac_path_EGREP" --version 2>&1` in ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -17805,8 +18985,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" @@ -17814,11 +18994,12 @@ for ac_prog in md5sum md5 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MD5SUM+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_MD5SUM+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MD5SUM"; then ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test. else @@ -17826,11 +19007,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MD5SUM="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17841,11 +19026,11 @@ fi fi MD5SUM=$ac_cv_prog_MD5SUM if test -n "$MD5SUM"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5 -$as_echo "$MD5SUM" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5 +printf "%s\n" "$MD5SUM" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -17856,11 +19041,12 @@ for ac_prog in llvm-config do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LLVMCONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_LLVMCONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$LLVMCONFIG"; then ac_cv_prog_LLVMCONFIG="$LLVMCONFIG" # Let the user override the test. else @@ -17868,11 +19054,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LLVMCONFIG="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17883,11 +19073,11 @@ fi fi LLVMCONFIG=$ac_cv_prog_LLVMCONFIG if test -n "$LLVMCONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMCONFIG" >&5 -$as_echo "$LLVMCONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVMCONFIG" >&5 +printf "%s\n" "$LLVMCONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -17910,7 +19100,7 @@ fi if test -z "$LLVMCONFIG" -o -n "${CXX##*clang*}" ; then have_llvm=no else - $as_echo "#define HAVE_LLVM 1" >>confdefs.h + printf "%s\n" "#define HAVE_LLVM 1" >>confdefs.h have_llvm=yes LLVM_OBJS="llvmutils.o $LLVM_OBJS" @@ -17938,50 +19128,51 @@ done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working makeinfo" >&5 -$as_echo_n "checking for working makeinfo... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working makeinfo" >&5 +printf %s "checking for working makeinfo... " >&6; } MAKEINFO=${MAKEINFO-makeinfo} if ($MAKEINFO --version) < /dev/null > conftest.out 2>&1; then if test `head -n 1 conftest.out | sed 's/^.* \([0-9][0-9]*\).*$/\1/'` -ge 4; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else MAKEINFO='$(conf_auxdir)/missing makeinfo' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5 -$as_echo "old" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5 +printf "%s\n" "old" >&6; } fi else MAKEINFO='$(conf_auxdir)/missing makeinfo' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working texi2dvi" >&5 -$as_echo_n "checking for working texi2dvi... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working texi2dvi" >&5 +printf %s "checking for working texi2dvi... " >&6; } TEXI2DVI=${TEXI2DVI-texi2dvi} if ($TEXI2DVI --version) < /dev/null > conftest.out 2>&1; then if test `head -n 1 conftest.out | sed 's/.*Texinfo \([0-9][0-9]*\).*/\1/'` -ge 4; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else TEXI2DVI='$(conf_auxdir)/missing texi2dvi' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5 -$as_echo "old" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5 +printf "%s\n" "old" >&6; } fi else TEXI2DVI='$(conf_auxdir)/missing texi2dvi' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } fi if test ${INSTALL_INFO-xxx} = xxx; then # Extract the first word of "install-info", so it can be a program name with args. set dummy install-info; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INSTALL_INFO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_INSTALL_INFO+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $INSTALL_INFO in [\\/]* | ?:[\\/]*) ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. @@ -17992,11 +19183,15 @@ as_dummy="$PATH:/sbin:/usr/sbin:/usr/local/sbin" for as_dir in $as_dummy do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18009,36 +19204,36 @@ esac fi INSTALL_INFO=$ac_cv_path_INSTALL_INFO if test -n "$INSTALL_INFO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 -$as_echo "$INSTALL_INFO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 +printf "%s\n" "$INSTALL_INFO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working install-info" >&5 -$as_echo_n "checking for working install-info... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working install-info" >&5 +printf %s "checking for working install-info... " >&6; } if ($INSTALL_INFO --version) < /dev/null > conftest.out 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else INSTALL_INFO='$(conf_auxdir)/missing install-info' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working pod2man" >&5 -$as_echo_n "checking for working pod2man... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working pod2man" >&5 +printf %s "checking for working pod2man... " >&6; } POD2MAN=${POD2MAN-pod2man} if ($POD2MAN --help) < /dev/null > conftest.out 2>&1 && grep pod2man conftest.out >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else POD2MAN='$(conf_auxdir)/missing pod2man' - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } fi @@ -18050,25 +19245,17 @@ fi -cat >>confdefs.h <<_ACEOF -#define CLICK_BINDIR "$bindir" -_ACEOF +printf "%s\n" "#define CLICK_BINDIR \"$bindir\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define CLICK_LIBDIR "$libdir" -_ACEOF +printf "%s\n" "#define CLICK_LIBDIR \"$libdir\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define CLICK_DATADIR "$clickdatadir" -_ACEOF +printf "%s\n" "#define CLICK_DATADIR \"$clickdatadir\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define CLICK_DIR "$clickdir" -_ACEOF +printf "%s\n" "#define CLICK_DIR \"$clickdir\"" >>confdefs.h @@ -18343,8 +19530,8 @@ _ACEOF case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -18374,15 +19561,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -18396,8 +19583,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;} fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -18414,7 +19601,7 @@ U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -18430,8 +19617,8 @@ LTLIBOBJS=$ac_ltlibobjs ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -18454,14 +19641,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -18471,46 +19660,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi +if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -18519,13 +19708,6 @@ if test "${PATH_SEPARATOR+set}" != set; then fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -18534,8 +19716,12 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -18547,30 +19733,10 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -18583,13 +19749,14 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -18616,18 +19783,20 @@ as_fn_unset () { eval $1=; unset $1;} } as_unset=as_fn_unset + # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -18639,12 +19808,13 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` @@ -18675,7 +19845,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -18697,6 +19867,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -18710,6 +19884,12 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -18751,7 +19931,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -18760,7 +19940,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -18823,7 +20003,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by click $as_me 2.1, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -18881,14 +20061,16 @@ $config_headers Report bugs to the package provider." _ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ click config.status 2.1 -configured by $0, generated by GNU Autoconf 2.69, +configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -18927,15 +20109,15 @@ do -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; + printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; + printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -18943,7 +20125,7 @@ do --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; @@ -18952,7 +20134,7 @@ do as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; @@ -18980,7 +20162,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -18994,7 +20176,7 @@ exec 5>>config.log sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + printf "%s\n" "$ac_log" } >&5 _ACEOF @@ -19054,8 +20236,8 @@ done # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree @@ -19391,7 +20573,7 @@ do esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done @@ -19399,17 +20581,17 @@ do # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | + ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -19426,7 +20608,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -19450,9 +20632,9 @@ $as_echo X"$ac_file" | case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -19509,8 +20691,8 @@ ac_sed_dataroot=' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -19553,9 +20735,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -19571,20 +20753,20 @@ which seems to be undefined. Please make sure it is defined" >&2;} # if test x"$ac_file" != x-; then { - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi @@ -19633,8 +20815,8 @@ if test "$no_create" != yes; then $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi @@ -19690,3 +20872,4 @@ if test "$feedback" != no; then else echo "Now type make to build FastClick..." fi + diff --git a/configure.in b/configure.in index 8e738f9b7..e2d9ae813 100644 --- a/configure.in +++ b/configure.in @@ -1505,6 +1505,10 @@ AC_MSG_CHECKING([if AVX2 should be used]) if test "x$cpu_supports_avx2$check_avx2" = "xyesyes"; then AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_AVX2],1) + save_cflags="$CFLAGS" + CFLAGS="$save_cflags -mavx2" + save_cxxflags="$CXXFLAGS" + CXXFLAGS="$save_cxxflags -mavx2" else AC_MSG_RESULT([no]) fi @@ -1524,6 +1528,10 @@ AC_MSG_CHECKING([if SSE4.2 should be used]) if test "x$cpu_supports_sse42$check_sse42" = "xyesyes"; then AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_SSE42],1) + save_cflags="$CFLAGS" + CFLAGS="$save_cflags -msse4.2" + save_cxxflags="$CXXFLAGS" + CXXFLAGS="$save_cxxflags -msse4.2" else AC_MSG_RESULT([no]) fi -- GitLab