From 38234ecc52f75ab35ecbe3f49a6a034d58573306 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 2 Dec 2024 09:49:20 +0100 Subject: [PATCH] configure[.ac]: removed bashism --- configure | 11099 ++++++++++++++++++++++++++++--------------------- configure.ac | 7 +- 2 files changed, 6261 insertions(+), 4845 deletions(-) diff --git a/configure b/configure index 5d836976b..dd0ab984a 100755 --- a/configure +++ b/configure @@ -1,11 +1,12 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for UltraGrid 1.6. +# Generated by GNU Autoconf 2.72 for UltraGrid 1.6. # # Report bugs to . # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -16,63 +17,65 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +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 - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; 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&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 || @@ -81,13 +84,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 #(( @@ -96,43 +92,27 @@ 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 ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. 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. @@ -153,26 +133,28 @@ case $- in # (((( 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 +# out after a failed 'exec'. +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="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 - case \`(set -o) 2>/dev/null\` in #( +else case e in #( + e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi " @@ -187,42 +169,55 @@ 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 - exitcode=1; echo positional parameters were not saved. +else case e in #( + e) exitcode=1; echo positional parameters were not saved. ;; +esac 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 - as_have_required=no +else case e in #( + e) as_have_required=no ;; +esac 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 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) 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 @@ -230,14 +225,22 @@ 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 case e in #( + e) 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 ;; +esac +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 @@ -254,26 +257,28 @@ case $- in # (((( 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 +# out after a failed 'exec'. +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 and + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: ultragrid-dev@cesnet.cz about your system, including $0: any error possibly output before this message. Then $0: install a modern shell, or manually run the script $0: under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -294,6 +299,7 @@ as_fn_unset () } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -325,7 +331,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" @@ -334,7 +340,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 @@ -373,16 +379,18 @@ 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 - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -390,16 +398,18 @@ 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 - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -413,9 +423,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 @@ -442,7 +452,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 @@ -475,6 +485,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -486,7 +498,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 @@ -500,6 +512,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*) @@ -513,6 +529,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 @@ -524,9 +546,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -551,10 +573,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated test -n "$DJDIR" || exec 7<&0 /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" @@ -1128,9 +1152,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" @@ -1283,6 +1307,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1332,9 +1365,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" @@ -1348,9 +1381,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" @@ -1378,8 +1411,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1387,16 +1420,16 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # 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}" ;; @@ -1412,7 +1445,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 @@ -1420,7 +1453,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1437,7 +1470,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1476,7 +1509,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 @@ -1505,7 +1538,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1533,7 +1566,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures UltraGrid 1.6 to adapt to many kinds of systems. +'configure' configures UltraGrid 1.6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1547,11 +1580,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1559,10 +1592,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1573,6 +1606,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1697,7 +1731,7 @@ Optional Features: is disable) --disable-portaudio disable Portaudio (default is auto) Requires: portaudio-2.0 - --enable-jack-transport enable JACK transport (default is auto; disabled in modular build) + --enable-jack-transport=force enable JACK transport (default is auto) Requires: jack --disable-jack disable JACK (default is auto) Requires: jack @@ -1866,7 +1900,7 @@ Some influential environment variables: CPPUNIT_LIBS linker flags for CPPUNIT, overriding pkg-config -Use these variables to override the choices made by `configure' or to help +Use these variables to override the choices made by 'configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . @@ -1885,9 +1919,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/ ;; @@ -1915,7 +1949,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 @@ -1923,7 +1958,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 @@ -1933,9 +1968,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF UltraGrid configure 1.6 -generated by GNU Autoconf 2.69 +generated by GNU Autoconf 2.72 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1952,14 +1987,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 @@ -1967,17 +2002,19 @@ $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 case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1996,7 +2033,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 @@ -2004,17 +2041,19 @@ $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 case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2027,14 +2066,14 @@ fi 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 @@ -2042,17 +2081,19 @@ $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 case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2071,7 +2112,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 @@ -2079,27 +2120,171 @@ $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 case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { 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 case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + eval "$3=yes" +else case e in #( + e) eval "$3=no" ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +eval ac_res=\$$3 + { 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 + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { 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 case e in #( + e) eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main (void) +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main (void) +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else case e in #( + e) eval "$3=yes" ;; +esac +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 ;; +esac +fi +eval ac_res=\$$3 + { 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_type + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +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.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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + 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 : + ac_retval=0 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 ;; +esac +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + 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_link + # ac_fn_c_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_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack @@ -2109,28 +2294,30 @@ 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 case e in #( + e) 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 + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2138,182 +2325,6 @@ fi } # ac_fn_c_try_run -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_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 - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - eval "$3=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -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_type - -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists and can be compiled using the include files in -# INCLUDES, setting the cache variable VAR accordingly. -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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_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_header_compile - -# 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;} -( $as_echo "## -------------------------------------- ## -## Report this to ultragrid-dev@cesnet.cz ## -## -------------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&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" -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 - # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes @@ -2328,7 +2339,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; @@ -2338,14 +2349,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; @@ -2355,24 +2367,26 @@ 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 - as_fn_arith $ac_mid + 1 && ac_lo=$as_val +else case e in #( + e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; +esac 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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) 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; @@ -2382,14 +2396,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; @@ -2399,24 +2414,28 @@ 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 - as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val +else case e in #( + e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; +esac 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 - ac_lo= ac_hi= +else case e in #( + e) ac_lo= ac_hi= ;; +esac 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 ;; +esac 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 @@ -2424,7 +2443,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; @@ -2434,12 +2453,14 @@ 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 - as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +else case e in #( + e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; +esac 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 ;; @@ -2449,12 +2470,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 #include int -main () +main (void) { FILE *f = fopen ("conftest.val", "w"); @@ -2482,10 +2503,12 @@ 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 &5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$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 : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - 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_link - # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly 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 - 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 case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + which can conflict with char $2 (void); below. */ +#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2579,7 +2550,7 @@ else #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -2588,118 +2559,65 @@ 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 - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac 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 -# 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 case e in #( + e) 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 -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;} -( $as_echo "## -------------------------------------- ## -## Report this to ultragrid-dev@cesnet.cz ## -## -------------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; +if ac_fn_cxx_try_compile "$LINENO" +then : + eval "$3=yes" +else case e in #( + e) eval "$3=no" ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 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 + { 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_try_link LINENO # ------------------------- @@ -2707,14 +2625,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 @@ -2722,20 +2640,22 @@ $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 case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2746,45 +2666,34 @@ fi as_fn_set_status $ac_retval } # ac_fn_cxx_try_link +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_cxx_check_header_compile LINENO HEADER VAR INCLUDES -# --------------------------------------------------------- -# 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 - { $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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_cxx_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 +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 -} # ac_fn_cxx_check_header_compile 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 UltraGrid $as_me 1.6, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -2817,8 +2726,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 @@ -2853,7 +2766,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'" ;; @@ -2888,11 +2801,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 @@ -2903,8 +2818,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) ;; #( @@ -2928,7 +2843,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2936,14 +2851,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 @@ -2951,15 +2866,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 @@ -2967,8 +2882,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 && @@ -2982,65 +2897,50 @@ 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; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -3048,19 +2948,668 @@ 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 +# 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 +#include +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 (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; +} + +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + +/* 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 + +// See if C++-style comments work. + +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); +extern void free (void *); + +// 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) +{ + // 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; + // Work around memory leak warnings. + free (ia); + + // 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; +} +" + +# 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 +#include + +// and 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 struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template T add(U u) { return static_cast(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 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 Ret eval(Fn f, Ret v) + { + return f(v); + } + + // for testing variadic templates and trailing return types + template auto sum(V first) -> V + { + return first; + } + template 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> v(test_template(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_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" + +# Auxiliary files required by this configure script. +ac_aux_files="compile missing 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 case e in #( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac +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 @@ -3071,12 +3620,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=: ;; ,);; *) @@ -3085,24 +3634,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 @@ -3112,11 +3661,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. ## @@ -3130,55 +3680,31 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu configure_flags="$*" -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 -{ $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 - ac_build_alias=$build_alias + # 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 + +{ 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 case e in #( + e) 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 + ;; +esac 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;; @@ -3197,21 +3723,23 @@ 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 - if test "x$host_alias" = x; then +{ 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 case e in #( + e) 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 - + ;; +esac 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;; @@ -3230,21 +3758,23 @@ 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 - if test "x$target_alias" = x; then +{ 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 case e in #( + e) 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 - + ;; +esac 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;; @@ -3270,9 +3800,10 @@ test -n "$target_alias" && NONENONEs,x,x, && program_prefix=${target_alias}- -am__api_version='1.15' +am__api_version='1.17' -# 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 @@ -3286,20 +3817,25 @@ am__api_version='1.15' # 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 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) 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/* ) ;; @@ -3309,13 +3845,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 @@ -3323,12 +3859,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 @@ -3342,9 +3878,10 @@ esac IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir - + ;; +esac 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 @@ -3354,8 +3891,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. @@ -3365,8 +3902,167 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 +printf %s "checking whether sleep supports fractional seconds... " >&6; } +if test ${am_cv_sleep_fractional_seconds+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if sleep 0.001 2>/dev/null +then : + am_cv_sleep_fractional_seconds=yes +else case e in #( + e) am_cv_sleep_fractional_seconds=no ;; +esac +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 +printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 +printf %s "checking filesystem timestamp resolution... " >&6; } +if test ${am_cv_filesystem_timestamp_resolution+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Default to the worst case. +am_cv_filesystem_timestamp_resolution=2 + +# Only try to go finer than 1 sec if sleep can do it. +# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, +# - 1 sec is not much of a win compared to 2 sec, and +# - it takes 2 seconds to perform the test whether 1 sec works. +# +# Instead, just use the default 2s on platforms that have 1s resolution, +# accept the extra 1s delay when using $sleep in the Automake tests, in +# exchange for not incurring the 2s delay for running the test for all +# packages. +# +am_try_resolutions= +if test "$am_cv_sleep_fractional_seconds" = yes; then + # Even a millisecond often causes a bunch of false positives, + # so just try a hundredth of a second. The time saved between .001 and + # .01 is not terribly consequential. + am_try_resolutions="0.01 0.1 $am_try_resolutions" +fi + +# In order to catch current-generation FAT out, we must *modify* files +# that already exist; the *creation* timestamp is finer. Use names +# that make ls -t sort them differently when they have equal +# timestamps than when they have distinct timestamps, keeping +# in mind that ls -t prints the *newest* file first. +rm -f conftest.ts? +: > conftest.ts1 +: > conftest.ts2 +: > conftest.ts3 + +# Make sure ls -t actually works. Do 'set' in a subshell so we don't +# clobber the current shell's arguments. (Outer-level square brackets +# are removed by m4; they're present so that m4 does not expand +# ; be careful, easy to get confused.) +if ( + set X `ls -t conftest.ts[12]` && + { + test "$*" != "X conftest.ts1 conftest.ts2" || + test "$*" != "X conftest.ts2 conftest.ts1"; + } +); then :; else + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 + { { 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 $? "ls -t produces unexpected output. +Make sure there is not a broken ls alias in your environment. +See 'config.log' for more details" "$LINENO" 5; } +fi + +for am_try_res in $am_try_resolutions; do + # Any one fine-grained sleep might happen to cross the boundary + # between two values of a coarser actual resolution, but if we do + # two fine-grained sleeps in a row, at least one of them will fall + # entirely within a coarse interval. + echo alpha > conftest.ts1 + sleep $am_try_res + echo beta > conftest.ts2 + sleep $am_try_res + echo gamma > conftest.ts3 + + # We assume that 'ls -t' will make use of high-resolution + # timestamps if the operating system supports them at all. + if (set X `ls -t conftest.ts?` && + test "$2" = conftest.ts3 && + test "$3" = conftest.ts2 && + test "$4" = conftest.ts1); then + # + # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, + # because we don't need to test make. + make_ok=true + if test $am_try_res != 1; then + # But if we've succeeded so far with a subsecond resolution, we + # have one more thing to check: make. It can happen that + # everything else supports the subsecond mtimes, but make doesn't; + # notably on macOS, which ships make 3.81 from 2006 (the last one + # released under GPLv2). https://bugs.gnu.org/68808 + # + # We test $MAKE if it is defined in the environment, else "make". + # It might get overridden later, but our hope is that in practice + # it does not matter: it is the system "make" which is (by far) + # the most likely to be broken, whereas if the user overrides it, + # probably they did so with a better, or at least not worse, make. + # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html + # + # Create a Makefile (real tab character here): + rm -f conftest.mk + echo 'conftest.ts1: conftest.ts2' >conftest.mk + echo ' touch conftest.ts2' >>conftest.mk + # + # Now, running + # touch conftest.ts1; touch conftest.ts2; make + # should touch ts1 because ts2 is newer. This could happen by luck, + # but most often, it will fail if make's support is insufficient. So + # test for several consecutive successes. + # + # (We reuse conftest.ts[12] because we still want to modify existing + # files, not create new ones, per above.) + n=0 + make=${MAKE-make} + until test $n -eq 3; do + echo one > conftest.ts1 + sleep $am_try_res + echo two > conftest.ts2 # ts2 should now be newer than ts1 + if $make -f conftest.mk | grep 'up to date' >/dev/null; then + make_ok=false + break # out of $n loop + fi + n=`expr $n + 1` + done + fi + # + if $make_ok; then + # Everything we know to check worked out, so call this resolution good. + am_cv_filesystem_timestamp_resolution=$am_try_res + break # out of $am_try_res loop + fi + # Otherwise, we'll go on to check the next resolution. + fi +done +rm -f conftest.ts? +# (end _am_filesystem_timestamp_resolution) + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 +printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } + +# This check should not be cached, as it may vary across builds of +# different projects. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' @@ -3385,49 +4081,45 @@ esac # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then +am_build_env_is_sane=no +am_has_slept=no +rm -f conftest.file +for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + test "$2" = conftest.file + ); then + am_build_env_is_sane=yes + break + fi + # Just in case. + sleep "$am_cv_filesystem_timestamp_resolution" + am_has_slept=yes +done - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 +printf "%s\n" "$am_build_env_is_sane" >&6; } +if test "$am_build_env_is_sane" = no; then + as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & +if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 +then : + +else case e in #( + e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & am_sleep_pid=$! + ;; +esac fi rm -f conftest.file @@ -3438,28 +4130,25 @@ test "$program_prefix" != NONE && test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` +program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` + # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac + + if test x"${MISSING+set}" != xset; then + MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then @@ -3479,38 +4168,44 @@ if test "$cross_compiling" != no; then 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 - if test -n "$STRIP"; then +{ 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 case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -3519,38 +4214,44 @@ 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 - if test -n "$ac_ct_STRIP"; then +{ 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 case e in #( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -3558,8 +4259,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 @@ -3571,98 +4272,110 @@ fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 +printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + if test ${ac_cv_path_mkdir+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/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_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ + as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue + case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir ('*'coreutils) '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then + if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +printf "%s\n" "$MKDIR_P" >&6; } 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 - if test -n "$AWK"; then +{ 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 case e in #( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF +ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval test \${ac_cv_prog_make_${ac_make}_set+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -3674,15 +4387,16 @@ case `${MAKE-make} -f conftest.make 2>/dev/null` in *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $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; } SET_MAKE= 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; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -3695,23 +4409,21 @@ else fi rmdir .tst 2>/dev/null +AM_DEFAULT_VERBOSITY=1 # Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : +if test ${enable_silent_rules+y} +then : enableval=$enable_silent_rules; fi -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=1;; -esac am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +printf %s "checking whether $am_make supports nested variables... " >&6; } +if test ${am_cv_make_support_nested_variables+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -3721,19 +4433,50 @@ am__doit: am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no +fi ;; +esac fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } AM_BACKSLASH='\' +am__rm_f_notfound= +if (rm -f && rm -fr && rm -rf) 2>/dev/null +then : + +else case e in #( + e) am__rm_f_notfound='""' ;; +esac +fi + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 +printf %s "checking xargs -n works... " >&6; } +if test ${am_cv_xargs_n_works+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 +3" +then : + am_cv_xargs_n_works=yes +else case e in #( + e) am_cv_xargs_n_works=no ;; +esac +fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 +printf "%s\n" "$am_cv_xargs_n_works" >&6; } +if test "$am_cv_xargs_n_works" = yes +then : + am__xargs_n='xargs -n' +else case e in #( + e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' + ;; +esac +fi + if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." @@ -3759,14 +4502,10 @@ fi VERSION='1.6' -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF +printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF +printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # Some tools Automake needs. @@ -3786,8 +4525,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: -# -# +# +# mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The @@ -3806,49 +4545,25 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags fi +if test -z "$ETAGS"; then + ETAGS=etags +fi + +if test -z "$CSCOPE"; then + CSCOPE=cscope +fi + + + + + + + @@ -3856,9 +4571,16 @@ fi PARENT=`echo $PWD | sed -e 's%/[^/]*$%%'` -cat >>confdefs.h <<_ACEOF -#define CONFIG_FLAGS "$configure_flags" -_ACEOF +printf "%s\n" "#define CONFIG_FLAGS \"$configure_flags\"" >>confdefs.h + + + + + + + + + @@ -3870,38 +4592,44 @@ 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 - if test -n "$CC"; then +{ 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 case e in #( + e) 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 - 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -3910,38 +4638,44 @@ 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 - if test -n "$ac_ct_CC"; then +{ 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 case e in #( + e) 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 - 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -3949,8 +4683,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 @@ -3963,38 +4697,44 @@ 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 - if test -n "$CC"; then +{ 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 case e in #( + e) 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 - 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -4003,12 +4743,13 @@ 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 - if test -n "$CC"; then +{ 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 case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -4016,15 +4757,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 @@ -4040,18 +4785,19 @@ 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 ;; +esac 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 @@ -4062,38 +4808,44 @@ 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 - if test -n "$CC"; then +{ 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 case e in #( + e) 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 - 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -4106,38 +4858,44 @@ 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 - if test -n "$ac_ct_CC"; then +{ 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 case e in #( + e) 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 - 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -4149,8 +4907,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 CC=$ac_ct_CC @@ -4158,25 +4916,131 @@ esac 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 case e in #( + e) 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 ;; +esac +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 -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +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 case e in #( + e) 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 ;; +esac +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" && { { 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; } +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 @@ -4186,7 +5050,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 @@ -4194,7 +5058,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -4206,9 +5070,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.*" @@ -4229,13 +5093,14 @@ 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 : - # 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' + 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, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4250,12 +5115,12 @@ 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 # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4266,48 +5131,52 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else - ac_file='' +else case e in #( + e) ac_file='' ;; +esac 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; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac 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; } +{ 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 : - # 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 -# `rm'. + 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 +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4317,15 +5186,16 @@ 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 case e in #( + e) { { 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; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac 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 @@ -4334,9 +5204,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4346,8 +5218,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 @@ -4355,10 +5227,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 @@ -4366,39 +5238,41 @@ $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. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$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;} +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 +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj 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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ 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 case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -4412,11 +5286,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 @@ -4425,31 +5300,34 @@ $as_echo "$ac_try_echo"; } >&5 break;; esac done -else - $as_echo "$as_me: failed program was:" >&5 +else case e in #( + e) 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; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac 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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ 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 case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -4459,30 +5337,36 @@ 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 - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac 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 - + ;; +esac 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 - ac_save_c_werror_flag=$ac_c_werror_flag +{ 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 case e in #( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4490,57 +5374,63 @@ 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 - CFLAGS="" +else case e in #( + e) 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 - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in #( + e) 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 ;; +esac 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 ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac 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 @@ -4555,94 +5445,153 @@ 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 case e in #( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -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 : + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +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 ;; +esac +fi + +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 case e in #( + e) 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 case e in #( + e) { 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" ;; +esac +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 ;; +esac +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 case e in #( + e) ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +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 ;; +esac +fi + +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 case e in #( + e) 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 case e in #( + e) { 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" ;; +esac +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 ;; +esac +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 case e in #( + e) ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program +_ACEOF +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 core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "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; } ;; +CC=$ac_save_CC ;; esac -if test "x$ac_cv_prog_cc_c89" != xno; then : +fi +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 case e in #( + e) 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 case e in #( + e) { 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" ;; +esac +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 ;; +esac +fi fi ac_ext=c @@ -4651,21 +5600,23 @@ 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_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 whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +printf %s "checking whether $CC understands -c and -o together... " >&6; } +if test ${am_cv_prog_cc_c_o+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -4691,10 +5642,11 @@ _ACEOF fi done rm -f core conftest* - unset am_i + unset am_i ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. @@ -4713,48 +5665,49 @@ DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" - -am_make=${MAKE-make} -cat > confinc << 'END' +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 +printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } +cat > confinc.mk << 'END' am__doit: - @echo this is the am__doit target + @echo this is the am__doit target >confinc.out .PHONY: am__doit END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD +# BSD make does it like this. +echo '.include "confinc.mk" # ignored' > confmf.BSD +# Other make implementations (GNU, Solaris 10, AIX) do it like this. +echo 'include confinc.mk # ignored' > confmf.GNU +_am_result=no +for s in GNU BSD; do + { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 + (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + case $?:`cat confinc.out 2>/dev/null` in #( + '0:this is the am__doit target') : + case $s in #( + BSD) : + am__include='.include' am__quote='"' ;; #( + *) : + am__include='include' am__quote='' ;; +esac ;; #( + *) : ;; - esac -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf +esac + if test "$am__include" != "#"; then + _am_result="yes ($s style)" + break + fi +done +rm -f confinc.* confmf.* +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 +printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : +if test ${enable_dependency_tracking+y} +then : enableval=$enable_dependency_tracking; fi @@ -4775,12 +5728,13 @@ fi depcc="$CC" am_compiler_list= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CC_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up @@ -4867,7 +5821,7 @@ else # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: + # When given -MP, icc 7.0 and 7.1 complain thus: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported @@ -4884,10 +5838,11 @@ else else am_cv_CC_dependencies_compiler_type=none fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if @@ -4901,224 +5856,45 @@ else fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } -if ${ac_cv_prog_cc_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __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 - your preprocessor is broken; -#endif -#if BIG_OK -#else - 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 void -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; - float fnumber; - - 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); -} - -int -main () -{ - - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - 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[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - - ; - return 0; -} -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -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 - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c99" 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_c99" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != 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 -{ $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 case e in #( + e) # 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 to if __STDC__ is defined, since - # 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 -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -5128,56 +5904,56 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 done ac_cv_prog_CPP=$CPP - + ;; +esac fi CPP=$ac_cv_prog_CPP 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 to if __STDC__ is defined, since - # 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 -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -5187,26 +5963,30 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 case e in #( + e) { { 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; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -5215,6 +5995,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 + + + + + + ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5225,42 +6011,48 @@ 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 - if test -n "$CXX"; then +{ 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 case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -5269,42 +6061,48 @@ 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 - if test -n "$ac_ct_CXX"; then +{ 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 case e in #( + e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else 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 done IFS=$as_save_IFS -fi +fi ;; +esac 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 @@ -5316,8 +6114,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 @@ -5327,7 +6125,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 @@ -5337,7 +6135,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 @@ -5347,20 +6145,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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ 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 case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -5370,30 +6169,36 @@ 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 - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac 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 - + ;; +esac 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 - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +{ 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 case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -5401,57 +6206,63 @@ 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 - CXXFLAGS="" +else case e in #( + e) 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 - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) 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 ;; +esac 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 ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac 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 @@ -5466,6 +6277,106 @@ 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_cxx11+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cxx_cxx11=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 ;; +esac +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 case e in #( + e) 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 case e in #( + e) { 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" ;; +esac +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac +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_cxx98+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cxx_cxx98=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 ;; +esac +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 case e in #( + e) 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 case e in #( + e) { 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" ;; +esac +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac +fi +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5474,12 +6385,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CXX_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CXX_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up @@ -5566,7 +6478,7 @@ else # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: + # When given -MP, icc 7.0 and 7.1 complain thus: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported @@ -5583,10 +6495,11 @@ else else am_cv_CXX_dependencies_compiler_type=none fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if @@ -5605,38 +6518,35 @@ 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 case e in #( + e) # 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 to if __STDC__ is defined, since - # 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 -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -5646,56 +6556,56 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP 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 to if __STDC__ is defined, since - # 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 -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -5705,26 +6615,30 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 case e in #( + e) { { 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; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -5735,38 +6649,73 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + 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 + 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 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 + + + + + + + +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 +{ 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 case e in #( + e) 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 - 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 -case `"$ac_path_GREP" --version 2>&1` in +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" + 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 @@ -5792,19 +6741,24 @@ IFS=$as_save_IFS else ac_cv_path_GREP=$GREP fi - + ;; +esac 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 - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 +# Autoupdate added the next two lines to ensure that your configure +# script's behavior did not change. They are probably safe to remove. + +{ 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 case e in #( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then @@ -5814,25 +6768,31 @@ 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 -case `"$ac_path_EGREP" --version 2>&1` in +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" + 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 @@ -5859,135 +6819,28 @@ else ac_cv_path_EGREP=$EGREP fi - fi + fi ;; +esac 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" + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$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 -#include -#include -#include -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 - -_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 - -_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 -#include -#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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +printf %s "checking for an ANSI C-conforming const... " >&6; } +if test ${ac_cv_c_const+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __cplusplus @@ -6000,7 +6853,7 @@ main () /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. + /* IBM XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ @@ -6028,7 +6881,7 @@ main () iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; @@ -6044,55 +6897,42 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_const=yes -else - ac_cv_c_const=no +else case e in #( + e) ac_cv_c_const=no ;; +esac 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 ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -$as_echo "#define const /**/" >>confdefs.h +printf "%s\n" "#define const /**/" >>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 - - ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF +if test "x$ac_cv_type_size_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define size_t unsigned int" >>confdefs.h + ;; +esac fi - { $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 - ac_cv_c_bigendian=unknown + { 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 case e in #( + e) ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6102,7 +6942,8 @@ else typedef int dummy; _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. @@ -6126,7 +6967,7 @@ if ac_fn_c_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 @@ -6135,10 +6976,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ && LITTLE_ENDIAN) bogus endian macros #endif @@ -6147,7 +6988,8 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_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. */ @@ -6155,7 +6997,7 @@ if ac_fn_c_try_compile "$LINENO"; then : #include int -main () +main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian @@ -6165,14 +7007,16 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no +else case e in #( + e) ac_cv_c_bigendian=no ;; +esac 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 defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). @@ -6181,7 +7025,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros @@ -6191,14 +7035,15 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_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 int -main () +main (void) { #ifndef _BIG_ENDIAN not big endian @@ -6208,50 +7053,55 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no +else case e in #( + e) ac_cv_c_bigendian=no ;; +esac 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]; } - extern int foo; - -int -main () -{ -return use_ascii (foo) == use_ebcdic (foo); - ; - return 0; -} + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then +if ac_fn_c_try_link "$LINENO" +then : + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then ac_cv_c_bigendian=yes fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else @@ -6260,13 +7110,14 @@ if ac_fn_c_try_compile "$LINENO"; then : fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in #( + e) 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. */ @@ -6282,28 +7133,32 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_bigendian=no -else - ac_cv_c_bigendian=yes +else case e in #( + e) ac_cv_c_bigendian=yes ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - fi + fi ;; +esac 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) - $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h + printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h +printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) @@ -6311,16 +7166,17 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 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 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ 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 case e in #( + e) 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; @@ -6330,110 +7186,123 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_char_unsigned=no -else - ac_cv_c_char_unsigned=yes +else case e in #( + e) ac_cv_c_char_unsigned=yes ;; +esac 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 ;; +esac 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 -$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } -if ${ac_cv_header_stdbool_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes +then : + +printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h + + +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5 +printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; } +if test ${ac_cv_header_stdbool_h+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include - #include - #ifndef bool - "error: bool is not defined" - #endif - #ifndef false - "error: false is not defined" - #endif - #if false - "error: false is not 0" - #endif - #ifndef true - "error: true is not defined" + /* "true" and "false" should be usable in #if expressions and + integer constant expressions, and "bool" should be a valid + type name. + + Although C99 requires bool, true, and false to be macros, + C23 and C++11 overrule that, so do not test for that. + Although C99 requires __bool_true_false_are_defined and + _Bool, C23 says they are obsolescent, so do not require + them. */ + + #if !true + #error "'true' is not true" #endif #if true != 1 - "error: true is not 1" + #error "'true' is not equal to 1" #endif - #ifndef __bool_true_false_are_defined - "error: __bool_true_false_are_defined is not defined" + char b[true == 1 ? 1 : -1]; + char c[true]; + + #if false + #error "'false' is not false" #endif + #if false != 0 + #error "'false' is not equal to 0" + #endif + char d[false == 0 ? 1 : -1]; - struct s { _Bool s: 1; _Bool t; } s; + enum { e = false, f = true, g = false * true, h = true * 256 }; + + char i[(bool) 0.5 == true ? 1 : -1]; + char j[(bool) 0.0 == false ? 1 : -1]; + char k[sizeof (bool) > 0 ? 1 : -1]; + + struct sb { bool s: 1; bool t; } s; + char l[sizeof s.t > 0 ? 1 : -1]; - char a[true == 1 ? 1 : -1]; - char b[false == 0 ? 1 : -1]; - char c[__bool_true_false_are_defined == 1 ? 1 : -1]; - char d[(bool) 0.5 == true ? 1 : -1]; - /* See body of main program for 'e'. */ - char f[(_Bool) 0.0 == false ? 1 : -1]; - char g[true]; - char h[sizeof (_Bool)]; - char i[sizeof s.t]; - enum { j = false, k = true, l = false * true, m = true * 256 }; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ - _Bool n[m]; - char o[sizeof n == m * sizeof n[0] ? 1 : -1]; - char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + bool m[h]; + char n[sizeof m == h * sizeof m[0] ? 1 : -1]; + char o[-1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See - http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html - http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html */ - _Bool q = true; - _Bool *pq = &q; + bool p = true; + bool *pp = &p; int -main () +main (void) { - bool e = &s; - *pq |= q; - *pq |= ! q; - /* Refer to every declared value, to avoid compiler optimizations. */ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l - + !m + !n + !o + !p + !q + !pq); + bool ps = &s; + *pp |= p; + *pp |= ! p; + + /* Refer to every declared value, so they cannot be + discarded as unused. */ + return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k + + !l + !m + !n + !o + !p + !pp + !ps); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_header_stdbool_h=yes -else - ac_cv_header_stdbool_h=no +else case e in #( + e) ac_cv_header_stdbool_h=no ;; +esac 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 ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 -$as_echo "$ac_cv_header_stdbool_h" >&6; } - ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" -if test "x$ac_cv_type__Bool" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE__BOOL 1 -_ACEOF - - -fi - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } if test $ac_cv_header_stdbool_h = yes; then -$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h fi @@ -6448,12 +7317,13 @@ if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; 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_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in +{ 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_PKG_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -6462,11 +7332,15 @@ else 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 - ac_cv_path_PKG_CONFIG="$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_PKG_CONFIG="$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 @@ -6474,15 +7348,16 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +printf "%s\n" "$PKG_CONFIG" >&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 @@ -6491,12 +7366,13 @@ if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; 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_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in +{ 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_ac_pt_PKG_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -6505,11 +7381,15 @@ else 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 - ac_cv_path_ac_pt_PKG_CONFIG="$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_ac_pt_PKG_CONFIG="$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 @@ -6517,15 +7397,16 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +printf "%s\n" "$ac_pt_PKG_CONFIG" >&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_pt_PKG_CONFIG" = x; then @@ -6533,8 +7414,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 PKG_CONFIG=$ac_pt_PKG_CONFIG @@ -6546,32 +7427,38 @@ fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $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 - { $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; } PKG_CONFIG="" fi fi -for ac_header in stropts.h sys/filio.h sys/wait.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$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 +ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" +if test "x$ac_cv_header_stropts_h" = xyes +then : + printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_filio_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_wait_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h + +fi # ------------------------------------------------------------------------------------------------- @@ -6588,44 +7475,47 @@ LIB_MODULES= # 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]];'. +# 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_p+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : +{ 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_p+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default" +then : -else - if test "$ac_cv_type_int_p" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_int_p" = 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 77 "cannot compute sizeof (int *) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int_p=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 -$as_echo "$ac_cv_sizeof_int_p" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 +printf "%s\n" "$ac_cv_sizeof_int_p" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT_P $ac_cv_sizeof_int_p -_ACEOF +printf "%s\n" "#define SIZEOF_INT_P $ac_cv_sizeof_int_p" >>confdefs.h - { $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 - ac_cv_c_bigendian=unknown + { 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 case e in #( + e) ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6635,7 +7525,8 @@ else typedef int dummy; _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. @@ -6659,7 +7550,7 @@ if ac_fn_c_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 @@ -6668,10 +7559,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ && LITTLE_ENDIAN) bogus endian macros #endif @@ -6680,7 +7571,8 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_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. */ @@ -6688,7 +7580,7 @@ if ac_fn_c_try_compile "$LINENO"; then : #include int -main () +main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian @@ -6698,14 +7590,16 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no +else case e in #( + e) ac_cv_c_bigendian=no ;; +esac 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 defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). @@ -6714,7 +7608,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros @@ -6724,14 +7618,15 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_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 int -main () +main (void) { #ifndef _BIG_ENDIAN not big endian @@ -6741,50 +7636,55 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no +else case e in #( + e) ac_cv_c_bigendian=no ;; +esac 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]; } - extern int foo; - -int -main () -{ -return use_ascii (foo) == use_ebcdic (foo); - ; - return 0; -} + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then +if ac_fn_c_try_link "$LINENO" +then : + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then ac_cv_c_bigendian=yes fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else @@ -6793,13 +7693,14 @@ if ac_fn_c_try_compile "$LINENO"; then : fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in #( + e) 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. */ @@ -6815,32 +7716,36 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_bigendian=no -else - ac_cv_c_bigendian=yes +else case e in #( + e) ac_cv_c_bigendian=yes ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - fi + fi ;; +esac 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) -$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) -$as_echo "#define WORDS_SMALLENDIAN 1" >>confdefs.h +printf "%s\n" "#define WORDS_SMALLENDIAN 1" >>confdefs.h ;; #( universal) -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h +printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) @@ -6856,35 +7761,37 @@ fi # 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]];'. +# 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_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : +{ 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 case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" +then : -else - 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;} +else case e in #( + e) if test "$ac_cv_type_size_t" = 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 77 "cannot compute sizeof (size_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_size_t=0 - fi + fi ;; +esac fi - + ;; +esac 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 @@ -6899,64 +7806,60 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GIT presence" >&5 -$as_echo_n "checking GIT presence... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GIT presence" >&5 +printf %s "checking GIT presence... " >&6; } if which git then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking GIT branch " >&5 -$as_echo_n "checking checking GIT branch ... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking GIT branch " >&5 +printf %s "checking checking GIT branch ... " >&6; } git_branch=`git name-rev --name-only HEAD` if test "$git_branch"; then -cat >>confdefs.h <<_ACEOF -#define GIT_BRANCH "$git_branch" -_ACEOF +printf "%s\n" "#define GIT_BRANCH \"$git_branch\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_branch" >&5 -$as_echo "$git_branch" >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $git_branch" >&5 +printf "%s\n" "$git_branch" >&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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking GIT revision " >&5 -$as_echo_n "checking checking GIT revision ... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking GIT revision " >&5 +printf %s "checking checking GIT revision ... " >&6; } git_rev=`git rev-parse --short HEAD` if test "$git_rev"; then -cat >>confdefs.h <<_ACEOF -#define GIT_REV "$git_rev" -_ACEOF +printf "%s\n" "#define GIT_REV \"$git_rev\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_rev" >&5 -$as_echo "$git_rev" >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $git_rev" >&5 +printf "%s\n" "$git_rev" >&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 OS family" >&5 -$as_echo_n "checking OS family... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS family" >&5 +printf %s "checking OS family... " >&6; } if expr "$host_os" : ".*darwin.*" > /dev/null; then system=MacOSX -$as_echo "#define HAVE_MACOSX 1" >>confdefs.h +printf "%s\n" "#define HAVE_MACOSX 1" >>confdefs.h APPEXT=.app elif expr "$host_os" : ".*mingw32.*" > /dev/null || expr "$host_os" : ".*msys.*" > /dev/null; then system=Windows -$as_echo "#define WIN32 1" >>confdefs.h +printf "%s\n" "#define WIN32 1" >>confdefs.h else system=Linux -$as_echo "#define HAVE_LINUX 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $system" >&5 -$as_echo "$system" >&6; }; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $system" >&5 +printf "%s\n" "$system" >&6; }; if test $build != $host; then @@ -6965,16 +7868,16 @@ else cross_compile=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OS kernel version (major)" >&5 -$as_echo_n "checking OS kernel version (major)... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS kernel version (major)" >&5 +printf %s "checking OS kernel version (major)... " >&6; } os_version_major=`uname -r |cut -d . -f 1` -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_version_major" >&5 -$as_echo "$os_version_major" >&6; }; -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OS kernel version (minor)" >&5 -$as_echo_n "checking OS kernel version (minor)... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $os_version_major" >&5 +printf "%s\n" "$os_version_major" >&6; }; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS kernel version (minor)" >&5 +printf %s "checking OS kernel version (minor)... " >&6; } os_version_minor=`uname -r |cut -d . -f 2` -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_version_minor" >&5 -$as_echo "$os_version_minor" >&6; }; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $os_version_minor" >&5 +printf "%s\n" "$os_version_minor" >&6; }; if test $system = Linux; then LDFLAGS="$LDFLAGS -Wl,--dynamic-list-data" @@ -7000,16 +7903,12 @@ fi if test $system = Windows; then NET_LIBS="-lsetupapi -lws2_32 -liphlpapi -loleaut32" LIBS="$LIBS $NET_LIBS" - for ac_func in SetThreadDescription -do : - ac_fn_c_check_func "$LINENO" "SetThreadDescription" "ac_cv_func_SetThreadDescription" -if test "x$ac_cv_func_SetThreadDescription" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SETTHREADDESCRIPTION 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "SetThreadDescription" "ac_cv_func_SetThreadDescription" +if test "x$ac_cv_func_SetThreadDescription" = xyes +then : + printf "%s\n" "#define HAVE_SETTHREADDESCRIPTION 1" >>confdefs.h fi -done fi @@ -7021,35 +7920,39 @@ LINKER=$CXX # Check whether --enable-depends-version-check was given. -if test "${enable_depends_version_check+set}" = set; then : +if test ${enable_depends_version_check+y} +then : enableval=$enable_depends_version_check; version_check=$enableval -else - version_check=yes - +else case e in #( + e) version_check=yes + ;; +esac fi build_default=auto # Check whether --enable-all was given. -if test "${enable_all+set}" = set; then : +if test ${enable_all+y} +then : enableval=$enable_all; build_default=$enableval -else - build_default=auto - +else case e in #( + e) build_default=auto + ;; +esac fi if test $system = MacOSX -a \( $os_version_major -lt 11 \) -a $version_check = yes then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Only OS X versions 10.7 and higher are supported." >&5 -$as_echo "$as_me: WARNING: *** Only OS X versions 10.7 and higher are supported." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Only OS X versions 10.7 and higher are supported." >&5 +printf "%s\n" "$as_me: WARNING: *** Only OS X versions 10.7 and higher are supported." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you still want to try with unsupported version of dependency, + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If you still want to try with unsupported version of dependency, you may want to try --disable-depends-version-check option. If you find out that some unsupported version is working, please let us know at ultragrid-dev@cesnet.cz. " >&5 -$as_echo "$as_me: WARNING: If you still want to try with unsupported version of dependency, +printf "%s\n" "$as_me: WARNING: If you still want to try with unsupported version of dependency, you may want to try --disable-depends-version-check option. If you find out that some unsupported version is working, please let us know at ultragrid-dev@cesnet.cz. @@ -7080,26 +7983,16 @@ fi CFLAGS="$CFLAGS $ARCH" CXXFLAGS="$CXXFLAGS $ARCH" -for ac_header in termios.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" -if test "x$ac_cv_header_termios_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TERMIOS_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" +if test "x$ac_cv_header_termios_h" = xyes +then : + printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h fi -done - -# @param $1 name of the module -function MODULE_NAME() { - echo "lib/ultragrid/ultragrid_"$1".so" -} - # Adds the module to UltraGrid build system. # @param $1 name of the module, should be in format _ unless # sure that the modular build won't take place @@ -7116,12 +8009,13 @@ if test $system = MacOSX; 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_path_DYLIBBUNDLER+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $DYLIBBUNDLER in +{ 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_DYLIBBUNDLER+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $DYLIBBUNDLER in [\\/]* | ?:[\\/]*) ac_cv_path_DYLIBBUNDLER="$DYLIBBUNDLER" # Let the user override the test with a path. ;; @@ -7130,11 +8024,15 @@ else 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 - ac_cv_path_DYLIBBUNDLER="$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_DYLIBBUNDLER="$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 @@ -7142,15 +8040,16 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi DYLIBBUNDLER=$ac_cv_path_DYLIBBUNDLER if test -n "$DYLIBBUNDLER"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYLIBBUNDLER" >&5 -$as_echo "$DYLIBBUNDLER" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYLIBBUNDLER" >&5 +printf "%s\n" "$DYLIBBUNDLER" >&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 @@ -7159,18 +8058,18 @@ done test -n "$DYLIBBUNDLER" || DYLIBBUNDLER="true" if test "$DYLIBBUNDLER" = true; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** echo \"WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable.\"" >&5 -$as_echo "$as_me: WARNING: *** echo \"WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable.\"" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** echo \"WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable.\"" >&5 +printf "%s\n" "$as_me: WARNING: *** echo \"WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable.\"" >&2;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dylibbundler version" >&5 -$as_echo_n "checking dylibbundler version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dylibbundler version" >&5 +printf %s "checking dylibbundler version... " >&6; } dyl_ver=$($DYLIBBUNDLER -V >/dev/null 2>&1 && dylibbundler -V | cut -d\ -f2 || echo unknown) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dyl_ver" >&5 -$as_echo "$dyl_ver" >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dyl_ver" >&5 +printf "%s\n" "$dyl_ver" >&6; }; if test $dyl_ver = unknown || expr "$dyl_ver" \<= 2 >/dev/null; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)" >&5 -$as_echo "$as_me: WARNING: *** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)" >&5 +printf "%s\n" "$as_me: WARNING: *** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)" >&2;} fi fi fi @@ -7187,8 +8086,8 @@ fi if test $system = Windows then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if_nametoindex" >&5 -$as_echo_n "checking if_nametoindex... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if_nametoindex" >&5 +printf %s "checking if_nametoindex... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7196,7 +8095,7 @@ $as_echo_n "checking if_nametoindex... " >&6; } #include int -main () +main (void) { if_nametoindex("eth"); @@ -7205,60 +8104,50 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : HAVE_IF_NAMETOINDEX=yes -else - HAVE_IF_NAMETOINDEX=no +else case e in #( + e) HAVE_IF_NAMETOINDEX=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_IF_NAMETOINDEX" >&5 -$as_echo "$HAVE_IF_NAMETOINDEX" >&6; } +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_IF_NAMETOINDEX" >&5 +printf "%s\n" "$HAVE_IF_NAMETOINDEX" >&6; } if test $HAVE_IF_NAMETOINDEX = yes; then -$as_echo "#define HAVE_IF_TONAMEINDEX 1" >>confdefs.h +printf "%s\n" "#define HAVE_IF_TONAMEINDEX 1" >>confdefs.h fi else - for ac_func in if_nametoindex -do : - ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" -if test "x$ac_cv_func_if_nametoindex" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IF_NAMETOINDEX 1 -_ACEOF - -fi -done + ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" +if test "x$ac_cv_func_if_nametoindex" = xyes +then : + printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h fi -for ac_func in strtok_r -do : - ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" -if test "x$ac_cv_func_strtok_r" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRTOK_R 1 -_ACEOF +fi + +ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" +if test "x$ac_cv_func_strtok_r" = xyes +then : + printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h fi -done -for ac_func in drand48 -do : - ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48" -if test "x$ac_cv_func_drand48" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DRAND48 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48" +if test "x$ac_cv_func_drand48" = xyes +then : + printf "%s\n" "#define HAVE_DRAND48 1" >>confdefs.h fi -done if test $ac_cv_func_drand48 = no then -$as_echo "#define NEED_DRAND48 1" >>confdefs.h +printf "%s\n" "#define NEED_DRAND48 1" >>confdefs.h fi @@ -7267,155 +8156,302 @@ fi # systems so we hope that exists when they're wrong. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" -if test "x$ac_cv_type_int8_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define int8_t signed char -_ACEOF +if test "x$ac_cv_type_int8_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define int8_t signed char" >>confdefs.h + ;; +esac fi ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" -if test "x$ac_cv_type_int16_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define int16_t short -_ACEOF +if test "x$ac_cv_type_int16_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define int16_t short" >>confdefs.h + ;; +esac fi ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" -if test "x$ac_cv_type_int32_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define int32_t long -_ACEOF +if test "x$ac_cv_type_int32_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define int32_t long" >>confdefs.h + ;; +esac fi ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" -if test "x$ac_cv_type_int64_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define int64_t long long -_ACEOF +if test "x$ac_cv_type_int64_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define int64_t long long" >>confdefs.h + ;; +esac fi # Some systems have these in , just to be difficult... -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in " >&5 -$as_echo_n "checking for uint8_t in ... " >&6; } -if ${ucl_cv_uint8_t_in_stdint_h+:} false; then : - $as_echo_n "(cached) " >&6 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint8_t in " >&5 +printf %s "checking for uint8_t in ... " >&6; } +if test ${ucl_cv_uint8_t_in_stdint_h+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_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_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( +*GNU*) + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_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_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "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_TRADITIONAL_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_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_TRADITIONAL_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : + fi else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL +fi + + if test "$ac_cv_path_EGREP_TRADITIONAL" +then : + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_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_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( +*GNU*) + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_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_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "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_TRADITIONAL_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_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_TRADITIONAL_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; 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_TRADITIONAL=$EGREP_TRADITIONAL +fi + ;; +esac +fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uint8_t" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "uint8_t" >/dev/null 2>&1 +then : ucl_cv_uint8_t_in_stdint_h=yes -else - ucl_cv_uint8_t_in_stdint_h=no +else case e in #( + e) ucl_cv_uint8_t_in_stdint_h=no ;; +esac fi -rm -f conftest* - +rm -rf conftest* + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ucl_cv_uint8_t_in_stdint_h" >&5 -$as_echo "$ucl_cv_uint8_t_in_stdint_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ucl_cv_uint8_t_in_stdint_h" >&5 +printf "%s\n" "$ucl_cv_uint8_t_in_stdint_h" >&6; } if test $ucl_cv_uint8_t_in_stdint_h = "no" then ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" -if test "x$ac_cv_type_uint8_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define uint8_t unsigned char -_ACEOF +if test "x$ac_cv_type_uint8_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h + ;; +esac fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t in " >&5 -$as_echo_n "checking for uint16_t in ... " >&6; } -if ${ucl_cv_uint16_t_in_stdint_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint16_t in " >&5 +printf %s "checking for uint16_t in ... " >&6; } +if test ${ucl_cv_uint16_t_in_stdint_h+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uint16_t" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "uint16_t" >/dev/null 2>&1 +then : ucl_cv_uint16_t_in_stdint_h=yes -else - ucl_cv_uint16_t_in_stdint_h=no +else case e in #( + e) ucl_cv_uint16_t_in_stdint_h=no ;; +esac fi -rm -f conftest* - +rm -rf conftest* + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ucl_cv_uint16_t_in_stdint_h" >&5 -$as_echo "$ucl_cv_uint16_t_in_stdint_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ucl_cv_uint16_t_in_stdint_h" >&5 +printf "%s\n" "$ucl_cv_uint16_t_in_stdint_h" >&6; } if test $ucl_cv_uint16_t_in_stdint_h = "no" then ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" -if test "x$ac_cv_type_uint16_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define uint16_t unsigned short -_ACEOF +if test "x$ac_cv_type_uint16_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h + ;; +esac fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t in " >&5 -$as_echo_n "checking for uint32_t in ... " >&6; } -if ${ucl_cv_uint32_t_in_stdint_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint32_t in " >&5 +printf %s "checking for uint32_t in ... " >&6; } +if test ${ucl_cv_uint32_t_in_stdint_h+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uint32_t" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "uint32_t" >/dev/null 2>&1 +then : ucl_cv_uint32_t_in_stdint_h=yes -else - ucl_cv_uint32_t_in_stdint_h=no +else case e in #( + e) ucl_cv_uint32_t_in_stdint_h=no ;; +esac fi -rm -f conftest* - +rm -rf conftest* + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ucl_cv_uint32_t_in_stdint_h" >&5 -$as_echo "$ucl_cv_uint32_t_in_stdint_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ucl_cv_uint32_t_in_stdint_h" >&5 +printf "%s\n" "$ucl_cv_uint32_t_in_stdint_h" >&6; } if test $ucl_cv_uint32_t_in_stdint_h = "no" then ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" -if test "x$ac_cv_type_uint32_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define uint32_t unsigned int -_ACEOF +if test "x$ac_cv_type_uint32_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h + ;; +esac fi fi @@ -7434,7 +8470,8 @@ fi # build_libraries=no # Check whether --enable-plugins was given. -if test "${enable_plugins+set}" = set; then : +if test ${enable_plugins+y} +then : enableval=$enable_plugins; build_libraries=$enableval fi @@ -7446,12 +8483,12 @@ then LIBS="$LIBS -ldl" LDFLAGS="$LDFLAGS -rdynamic" else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building libraries is not supported with other system than Linux" >&5 -$as_echo "$as_me: WARNING: *** Building libraries is not supported with other system than Linux" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Building libraries is not supported with other system than Linux" >&5 +printf "%s\n" "$as_me: WARNING: *** Building libraries is not supported with other system than Linux" >&2;} build_libraries=no fi -$as_echo "#define BUILD_LIBRARIES 1" >>confdefs.h +printf "%s\n" "#define BUILD_LIBRARIES 1" >>confdefs.h fi @@ -7459,158 +8496,186 @@ fi # ------------------------------------------------------------------------------------------------- # Check for libraries -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 -$as_echo_n "checking for library containing socket... " >&6; } -if ${ac_cv_search_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +printf %s "checking for library containing socket... " >&6; } +if test ${ac_cv_search_socket+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) 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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char socket (); +char socket (void); int -main () +main (void) { return socket (); ; 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 $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_socket=$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_socket+:} false; then : + if test ${ac_cv_search_socket+y} +then : break fi done -if ${ac_cv_search_socket+:} false; then : +if test ${ac_cv_search_socket+y} +then : -else - ac_cv_search_socket=no +else case e in #( + e) ac_cv_search_socket=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 -$as_echo "$ac_cv_search_socket" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +printf "%s\n" "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket -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 inet_addr" >&5 -$as_echo_n "checking for library containing inet_addr... " >&6; } -if ${ac_cv_search_inet_addr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 +printf %s "checking for library containing inet_addr... " >&6; } +if test ${ac_cv_search_inet_addr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) 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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char inet_addr (); +char inet_addr (void); int -main () +main (void) { return inet_addr (); ; 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 $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_inet_addr=$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_inet_addr+:} false; then : + if test ${ac_cv_search_inet_addr+y} +then : break fi done -if ${ac_cv_search_inet_addr+:} false; then : +if test ${ac_cv_search_inet_addr+y} +then : -else - ac_cv_search_inet_addr=no +else case e in #( + e) ac_cv_search_inet_addr=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 -$as_echo "$ac_cv_search_inet_addr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 +printf "%s\n" "$ac_cv_search_inet_addr" >&6; } ac_res=$ac_cv_search_inet_addr -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 timer_create in -lrt" >&5 -$as_echo_n "checking for timer_create in -lrt... " >&6; } -if ${ac_cv_lib_rt_timer_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_create in -lrt" >&5 +printf %s "checking for timer_create in -lrt... " >&6; } +if test ${ac_cv_lib_rt_timer_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char timer_create (); +char timer_create (void); int -main () +main (void) { return timer_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_timer_create=yes -else - ac_cv_lib_rt_timer_create=no +else case e in #( + e) ac_cv_lib_rt_timer_create=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 -$as_echo "$ac_cv_lib_rt_timer_create" >&6; } -if test "x$ac_cv_lib_rt_timer_create" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBRT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 +printf "%s\n" "$ac_cv_lib_rt_timer_create" >&6; } +if test "x$ac_cv_lib_rt_timer_create" = xyes +then : + printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h LIBS="-lrt $LIBS" @@ -7618,43 +8683,50 @@ fi ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" -if test "x$ac_cv_func_sin" = xyes; then : +if test "x$ac_cv_func_sin" = xyes +then : MATHLIBS="" -else - MATHLIBS="-lm" +else case e in #( + e) MATHLIBS="-lm" ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 -$as_echo_n "checking for main in -lieee... " >&6; } -if ${ac_cv_lib_ieee_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 +printf %s "checking for main in -lieee... " >&6; } +if test ${ac_cv_lib_ieee_main+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lieee $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ieee_main=yes -else - ac_cv_lib_ieee_main=no +else case e in #( + e) ac_cv_lib_ieee_main=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 -$as_echo "$ac_cv_lib_ieee_main" >&6; } -if test "x$ac_cv_lib_ieee_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 +printf "%s\n" "$ac_cv_lib_ieee_main" >&6; } +if test "x$ac_cv_lib_ieee_main" = xyes +then : MATHLIBS="-lieee $MATHLIBS" fi @@ -7663,26 +8735,23 @@ fi # ------------------------------------------------------------------------------------------------- # See if this system supports sched_setscheduler() -for ac_func in sched_setscheduler -do : - ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" -if test "x$ac_cv_func_sched_setscheduler" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SCHED_SETSCHEDULER 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" +if test "x$ac_cv_func_sched_setscheduler" = xyes +then : + printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h fi -done use_rt=no # Check whether --enable-rt was given. -if test "${enable_rt+set}" = set; then : +if test ${enable_rt+y} +then : enableval=$enable_rt; use_rt=$enableval fi if test "$use_rt" = "yes"; then -$as_echo "#define USE_RT 1" >>confdefs.h +printf "%s\n" "#define USE_RT 1" >>confdefs.h fi @@ -7694,46 +8763,55 @@ case "$host" in CFLAGS="$CFLAGS -pthread" ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 -$as_echo_n "checking for pthread_create in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 +printf %s "checking for pthread_create in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char pthread_create (); +char pthread_create (void); int -main () +main (void) { return pthread_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_create=yes -else - ac_cv_lib_pthread_pthread_create=no +else case e in #( + e) ac_cv_lib_pthread_pthread_create=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } -if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } +if test "x$ac_cv_lib_pthread_pthread_create" = xyes +then : LIBS="$LIBS -lpthread" -else - as_fn_error $? "Require POSIX thread" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "Require POSIX thread" "$LINENO" 5 ;; +esac fi ;; @@ -7745,7 +8823,8 @@ profile=no ipv6=yes # Check whether --enable-profile was given. -if test "${enable_profile+set}" = set; then : +if test ${enable_profile+y} +then : enableval=$enable_profile; if test $enableval = yes then if test "$GCC" = yes @@ -7760,11 +8839,12 @@ fi # Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : +if test ${enable_debug+y} +then : enableval=$enable_debug; if test $enableval = yes then -$as_echo "#define DEBUG 1" >>confdefs.h +printf "%s\n" "#define DEBUG 1" >>confdefs.h debug_output=yes DEBUG_FLAGS="-Werror -Wno-error=cast-qual -Wno-error=cast-align -Wno-error=strict-aliasing" @@ -7775,7 +8855,8 @@ fi # Check whether --enable-ipv6 was given. -if test "${enable_ipv6+set}" = set; then : +if test ${enable_ipv6+y} +then : enableval=$enable_ipv6; if test $enableval = no then ipv6=no @@ -7786,10 +8867,17 @@ fi if test "$ipv6" != no then -$as_echo "#define HAVE_IPv6 1" >>confdefs.h +printf "%s\n" "#define HAVE_IPv6 1" >>confdefs.h fi +if command -v realpath > /dev/null; then + srcdir_abs=`realpath $srcdir` +else + srcdir_abs=`python -c 'import os; print(os.path.realpath("'$srcdir'"))'` +fi + + # ---------------------------------------------------------------------- # environment variables # ---------------------------------------------------------------------- @@ -7807,254 +8895,286 @@ fi # GL common # ------------------------------------------------------------------------------------------------- # Check whether --enable-gl was given. -if test "${enable_gl+set}" = set; then : +if test ${enable_gl+y} +then : enableval=$enable_gl; gl_req=$enableval -else - gl_req=$build_default - +else case e in #( + e) gl_req=$build_default + ;; +esac fi OPENGL=no SAVED_LIBS=$LIBS -ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" -if test "x$ac_cv_header_GL_gl_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_gl_h" = xyes +then : fi - -ac_fn_c_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default" -if test "x$ac_cv_header_GL_glew_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glew_h" = xyes +then : fi - -ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default" -if test "x$ac_cv_header_GL_glx_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glx_h" = xyes +then : fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBindTexture in -lGL" >&5 -$as_echo_n "checking for glBindTexture in -lGL... " >&6; } -if ${ac_cv_lib_GL_glBindTexture+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glBindTexture in -lGL" >&5 +printf %s "checking for glBindTexture in -lGL... " >&6; } +if test ${ac_cv_lib_GL_glBindTexture+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lGL $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char glBindTexture (); +char glBindTexture (void); int -main () +main (void) { return glBindTexture (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_GL_glBindTexture=yes -else - ac_cv_lib_GL_glBindTexture=no +else case e in #( + e) ac_cv_lib_GL_glBindTexture=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBindTexture" >&5 -$as_echo "$ac_cv_lib_GL_glBindTexture" >&6; } -if test "x$ac_cv_lib_GL_glBindTexture" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGL 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBindTexture" >&5 +printf "%s\n" "$ac_cv_lib_GL_glBindTexture" >&6; } +if test "x$ac_cv_lib_GL_glBindTexture" = xyes +then : + printf "%s\n" "#define HAVE_LIBGL 1" >>confdefs.h LIBS="-lGL $LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateNewContext in -lGL" >&5 -$as_echo_n "checking for glXCreateNewContext in -lGL... " >&6; } -if ${ac_cv_lib_GL_glXCreateNewContext+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glXCreateNewContext in -lGL" >&5 +printf %s "checking for glXCreateNewContext in -lGL... " >&6; } +if test ${ac_cv_lib_GL_glXCreateNewContext+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lGL $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char glXCreateNewContext (); +char glXCreateNewContext (void); int -main () +main (void) { return glXCreateNewContext (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_GL_glXCreateNewContext=yes -else - ac_cv_lib_GL_glXCreateNewContext=no +else case e in #( + e) ac_cv_lib_GL_glXCreateNewContext=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateNewContext" >&5 -$as_echo "$ac_cv_lib_GL_glXCreateNewContext" >&6; } -if test "x$ac_cv_lib_GL_glXCreateNewContext" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGL 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateNewContext" >&5 +printf "%s\n" "$ac_cv_lib_GL_glXCreateNewContext" >&6; } +if test "x$ac_cv_lib_GL_glXCreateNewContext" = xyes +then : + printf "%s\n" "#define HAVE_LIBGL 1" >>confdefs.h LIBS="-lGL $LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lGLEW" >&5 -$as_echo_n "checking for glewInit in -lGLEW... " >&6; } -if ${ac_cv_lib_GLEW_glewInit+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lGLEW" >&5 +printf %s "checking for glewInit in -lGLEW... " >&6; } +if test ${ac_cv_lib_GLEW_glewInit+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lGLEW $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char glewInit (); +char glewInit (void); int -main () +main (void) { return glewInit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_GLEW_glewInit=yes -else - ac_cv_lib_GLEW_glewInit=no +else case e in #( + e) ac_cv_lib_GLEW_glewInit=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5 -$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; } -if test "x$ac_cv_lib_GLEW_glewInit" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGLEW 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5 +printf "%s\n" "$ac_cv_lib_GLEW_glewInit" >&6; } +if test "x$ac_cv_lib_GLEW_glewInit" = xyes +then : + printf "%s\n" "#define HAVE_LIBGLEW 1" >>confdefs.h LIBS="-lGLEW $LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lglew32" >&5 -$as_echo_n "checking for glewInit in -lglew32... " >&6; } -if ${ac_cv_lib_glew32_glewInit+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lglew32" >&5 +printf %s "checking for glewInit in -lglew32... " >&6; } +if test ${ac_cv_lib_glew32_glewInit+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lglew32 $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char glewInit (); +char glewInit (void); int -main () +main (void) { return glewInit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_glew32_glewInit=yes -else - ac_cv_lib_glew32_glewInit=no +else case e in #( + e) ac_cv_lib_glew32_glewInit=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glew32_glewInit" >&5 -$as_echo "$ac_cv_lib_glew32_glewInit" >&6; } -if test "x$ac_cv_lib_glew32_glewInit" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGLEW32 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glew32_glewInit" >&5 +printf "%s\n" "$ac_cv_lib_glew32_glewInit" >&6; } +if test "x$ac_cv_lib_glew32_glewInit" = xyes +then : + printf "%s\n" "#define HAVE_LIBGLEW32 1" >>confdefs.h LIBS="-lglew32 $LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lX11" >&5 -$as_echo_n "checking for XCreateWindow in -lX11... " >&6; } -if ${ac_cv_lib_X11_XCreateWindow+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lX11" >&5 +printf %s "checking for XCreateWindow in -lX11... " >&6; } +if test ${ac_cv_lib_X11_XCreateWindow+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char XCreateWindow (); +char XCreateWindow (void); int -main () +main (void) { return XCreateWindow (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_X11_XCreateWindow=yes -else - ac_cv_lib_X11_XCreateWindow=no +else case e in #( + e) ac_cv_lib_X11_XCreateWindow=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateWindow" >&5 -$as_echo "$ac_cv_lib_X11_XCreateWindow" >&6; } -if test "x$ac_cv_lib_X11_XCreateWindow" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBX11 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateWindow" >&5 +printf "%s\n" "$ac_cv_lib_X11_XCreateWindow" >&6; } +if test "x$ac_cv_lib_X11_XCreateWindow" = xyes +then : + printf "%s\n" "#define HAVE_LIBX11 1" >>confdefs.h LIBS="-lX11 $LIBS" @@ -8120,22 +9240,22 @@ fi case "$host_os" in *freebsd*) - ac_fn_c_check_header_mongrel "$LINENO" "dev/firewire/firewire.h" "ac_cv_header_dev_firewire_firewire_h" "$ac_includes_default" -if test "x$ac_cv_header_dev_firewire_firewire_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "dev/firewire/firewire.h" "ac_cv_header_dev_firewire_firewire_h" "$ac_includes_default" +if test "x$ac_cv_header_dev_firewire_firewire_h" = xyes +then : -$as_echo "#define HAVE_FIREWIRE_DV_FREEBSD 1" >>confdefs.h +printf "%s\n" "#define HAVE_FIREWIRE_DV_FREEBSD 1" >>confdefs.h fi - ;; esac # This should be conditional on finding libdv -$as_echo "#define HAVE_DV_CODEC 1" >>confdefs.h +printf "%s\n" "#define HAVE_DV_CODEC 1" >>confdefs.h # ------------------------------------------------------------------------------------------------- @@ -8143,7 +9263,8 @@ $as_echo "#define HAVE_DV_CODEC 1" >>confdefs.h dvs=no dvs_req=$build_default # Check whether --enable-dvs was given. -if test "${enable_dvs+set}" = set; then : +if test ${enable_dvs+y} +then : enableval=$enable_dvs; dvs_req=$enableval fi @@ -8171,7 +9292,8 @@ fi # Check whether --with-dvs was given. -if test "${with_dvs+set}" = set; then : +if test ${with_dvs+y} +then : withval=$with_dvs; DVS_HDR_PATH=$withval/development/header DVS_LIB=$withval/${DVS_SDK_SUBDIR}/lib fi @@ -8181,14 +9303,15 @@ SAVED_CFLAGS=$CFLAGS SAVED_CPPFLAGS=$CPPFLAGS CFLAGS="$CFLAGS -I${DVS_HDR_PATH}" CPPFLAGS="$CPPFLAGS -I${DVS_HDR_PATH}" -ac_fn_c_check_header_mongrel "$LINENO" "dvs_clib.h" "ac_cv_header_dvs_clib_h" "$ac_includes_default" -if test "x$ac_cv_header_dvs_clib_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "dvs_clib.h" "ac_cv_header_dvs_clib_h" "$ac_includes_default" +if test "x$ac_cv_header_dvs_clib_h" = xyes +then : FOUND_DVS_H=yes -else - FOUND_DVS_H=no +else case e in #( + e) FOUND_DVS_H=no ;; +esac fi - CFLAGS=$SAVED_CFLAGS CPPFLAGS=$SAVED_CPPFLAGS @@ -8197,46 +9320,55 @@ if test $system = MacOSX then LIBS="$LIBS -framework IOKit" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sv_open in -ldvsoem" >&5 -$as_echo_n "checking for sv_open in -ldvsoem... " >&6; } -if ${ac_cv_lib_dvsoem_sv_open+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sv_open in -ldvsoem" >&5 +printf %s "checking for sv_open in -ldvsoem... " >&6; } +if test ${ac_cv_lib_dvsoem_sv_open+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldvsoem -L${DVS_LIB} $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sv_open (); +char sv_open (void); int -main () +main (void) { return sv_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dvsoem_sv_open=yes -else - ac_cv_lib_dvsoem_sv_open=no +else case e in #( + e) ac_cv_lib_dvsoem_sv_open=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvsoem_sv_open" >&5 -$as_echo "$ac_cv_lib_dvsoem_sv_open" >&6; } -if test "x$ac_cv_lib_dvsoem_sv_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvsoem_sv_open" >&5 +printf "%s\n" "$ac_cv_lib_dvsoem_sv_open" >&6; } +if test "x$ac_cv_lib_dvsoem_sv_open" = xyes +then : FOUND_DVS_L=yes -else - FOUND_DVS_L=no +else case e in #( + e) FOUND_DVS_L=no ;; +esac fi LIBS=$SAVED_LIBS @@ -8251,7 +9383,7 @@ then DVS_CAP_OBJ="src/video_capture/dvs.o" DVS_DISP_OBJ="src/video_display/dvs.o" -$as_echo "#define HAVE_DVS 1" >>confdefs.h +printf "%s\n" "#define HAVE_DVS 1" >>confdefs.h DVS_LIB="$DVS_LIB" if test $system = MacOSX @@ -8259,7 +9391,7 @@ $as_echo "#define HAVE_DVS 1" >>confdefs.h DVS_LIB="$DVS_LIB -framework IOKit" fi - TARGET=$(MODULE_NAME ""vidcap_dvs"") + TARGET="lib/ultragrid/ultragrid_""vidcap_dvs"".so" LIB_OBJS=$LIB_OBJS" ""$DVS_CAP_OBJ" LIB_MODULES=$LIB_MODULES" ""$DVS_LIB" if test x"vidcap_dvs" != x; then @@ -8282,7 +9414,7 @@ $TARGET: ""$DVS_CAP_OBJ"" fi - TARGET=$(MODULE_NAME ""display_dvs"") + TARGET="lib/ultragrid/ultragrid_""display_dvs"".so" LIB_OBJS=$LIB_OBJS" ""$DVS_DISP_OBJ" LIB_MODULES=$LIB_MODULES" ""$DVS_LIB" if test x"display_dvs" != x; then @@ -8323,7 +9455,8 @@ decklink=no decklink_req=$build_default # Check whether --enable-decklink was given. -if test "${enable_decklink+set}" = set; then : +if test ${enable_decklink+y} +then : enableval=$enable_decklink; decklink_req=$enableval fi @@ -8348,19 +9481,21 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #include "DeckLink/Mac/DeckLinkAPI.h" int -main () +main (void) { IDeckLinkIterator *deckLinkIter = CreateDeckLinkIteratorInstance(); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : FOUND_DECKLINK=yes -else - FOUND_DECKLINK=no +else case e in #( + e) FOUND_DECKLINK=no ;; +esac 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 LIBS=$OLD_LIBS if test $FOUND_DECKLINK = yes; then DECKLINK_LIB="$DECKLINK_LIB -framework CoreFoundation" @@ -8384,8 +9519,8 @@ 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 DeckLink usability" >&5 -$as_echo_n "checking DeckLink usability... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DeckLink usability" >&5 +printf %s "checking DeckLink usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8394,25 +9529,27 @@ $as_echo_n "checking DeckLink usability... " >&6; } #include int -main () +main (void) { IDeckLinkIterator *deckLinkIter; CoCreateInstance(CLSID_CDeckLinkIterator, NULL, CLSCTX_ALL, IID_IDeckLinkIterator, (void **) deckLinkIter); ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : FOUND_DECKLINK=yes -else - FOUND_DECKLINK=no +else case e in #( + e) FOUND_DECKLINK=no ;; +esac 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 LIBS=$SAVED_LIBS if test $FOUND_DECKLINK = yes; then DECKLINK_LIB="$DECKLINK_LIB -lole32" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_DECKLINK" >&5 -$as_echo "$FOUND_DECKLINK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOUND_DECKLINK" >&5 +printf "%s\n" "$FOUND_DECKLINK" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8425,86 +9562,100 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu DECKLINK_INC=$srcdir/DeckLink/Linux fi - as_ac_File=`$as_echo "ac_cv_file_${DECKLINK_INC}/DeckLinkAPI.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${DECKLINK_INC}/DeckLinkAPI.h" >&5 -$as_echo_n "checking for ${DECKLINK_INC}/DeckLinkAPI.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else - test "$cross_compiling" = yes && + as_ac_File=`printf "%s\n" "ac_cv_file_${DECKLINK_INC}/DeckLinkAPI.h" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${DECKLINK_INC}/DeckLinkAPI.h" >&5 +printf %s "checking for ${DECKLINK_INC}/DeckLinkAPI.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${DECKLINK_INC}/DeckLinkAPI.h"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" -fi +fi ;; +esac 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 : FOUND_DECKLINK_H=yes -else - FOUND_DECKLINK_H=no +else case e in #( + e) FOUND_DECKLINK_H=no ;; +esac fi - as_ac_File=`$as_echo "ac_cv_file_${DECKLINK_INC}/DeckLinkAPIDispatch.cpp" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${DECKLINK_INC}/DeckLinkAPIDispatch.cpp" >&5 -$as_echo_n "checking for ${DECKLINK_INC}/DeckLinkAPIDispatch.cpp... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else - test "$cross_compiling" = yes && + as_ac_File=`printf "%s\n" "ac_cv_file_${DECKLINK_INC}/DeckLinkAPIDispatch.cpp" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${DECKLINK_INC}/DeckLinkAPIDispatch.cpp" >&5 +printf %s "checking for ${DECKLINK_INC}/DeckLinkAPIDispatch.cpp... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${DECKLINK_INC}/DeckLinkAPIDispatch.cpp"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" -fi +fi ;; +esac 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 : FOUND_DECKLINK_SRC=yes -else - FOUND_DECKLINK_SRC=no +else case e in #( + e) FOUND_DECKLINK_SRC=no ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lDeckLinkAPI" >&5 -$as_echo_n "checking for main in -lDeckLinkAPI... " >&6; } -if ${ac_cv_lib_DeckLinkAPI_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lDeckLinkAPI" >&5 +printf %s "checking for main in -lDeckLinkAPI... " >&6; } +if test ${ac_cv_lib_DeckLinkAPI_main+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lDeckLinkAPI $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_DeckLinkAPI_main=yes -else - ac_cv_lib_DeckLinkAPI_main=no +else case e in #( + e) ac_cv_lib_DeckLinkAPI_main=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_DeckLinkAPI_main" >&5 -$as_echo "$ac_cv_lib_DeckLinkAPI_main" >&6; } -if test "x$ac_cv_lib_DeckLinkAPI_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_DeckLinkAPI_main" >&5 +printf "%s\n" "$ac_cv_lib_DeckLinkAPI_main" >&6; } +if test "x$ac_cv_lib_DeckLinkAPI_main" = xyes +then : FOUND_DECKLINK_L=yes -else - FOUND_DECKLINK_L=no +else case e in #( + e) FOUND_DECKLINK_L=no ;; +esac fi #if test $FOUND_DECKLINK_H = yes -a $FOUND_DECKLINK_SRC = yes -a $FOUND_DECKLINK_L = yes; then @@ -8530,10 +9681,10 @@ then OBJS="$OBJS src/video_capture/DeckLinkAPIDispatch.o" fi -$as_echo "#define HAVE_DECKLINK 1" >>confdefs.h +printf "%s\n" "#define HAVE_DECKLINK 1" >>confdefs.h - TARGET=$(MODULE_NAME ""vidcap_decklink"") + TARGET="lib/ultragrid/ultragrid_""vidcap_decklink"".so" LIB_OBJS=$LIB_OBJS" ""$DECKLINK_CAP_OBJ" LIB_MODULES=$LIB_MODULES" ""$DECKLINK_LIB" if test x"vidcap_decklink" != x; then @@ -8556,7 +9707,7 @@ $TARGET: ""$DECKLINK_CAP_OBJ"" fi - TARGET=$(MODULE_NAME ""display_decklink"") + TARGET="lib/ultragrid/ultragrid_""display_decklink"".so" LIB_OBJS=$LIB_OBJS" ""$DECKLINK_DISP_OBJ" LIB_MODULES=$LIB_MODULES" ""$DECKLINK_LIB" if test x"display_decklink" != x; then @@ -8579,7 +9730,7 @@ $TARGET: ""$DECKLINK_DISP_OBJ"" fi - TARGET=$(MODULE_NAME ""aplay_decklink"") + TARGET="lib/ultragrid/ultragrid_""aplay_decklink"".so" LIB_OBJS=$LIB_OBJS" ""$DECKLINK_SOUND_PLAY_OBJ" LIB_MODULES=$LIB_MODULES" ""$DECKLINK_LIB" if test x"aplay_decklink" != x; then @@ -8625,11 +9776,13 @@ bluefish444=no blue_audio=no # Check whether --enable-bluefish444 was given. -if test "${enable_bluefish444+set}" = set; then : +if test ${enable_bluefish444+y} +then : enableval=$enable_bluefish444; bluefish444_req=$enableval -else - bluefish444_req=$build_default - +else case e in #( + e) bluefish444_req=$build_default + ;; +esac fi @@ -8637,7 +9790,8 @@ BLUEFISH444_PATH=$BLUE_LATEST_SDK # Check whether --with-bluefish444 was given. -if test "${with_bluefish444+set}" = set; then : +if test ${with_bluefish444+y} +then : withval=$with_bluefish444; BLUEFISH444_PATH=$withval fi @@ -8676,63 +9830,63 @@ BLUE_H=no CPPFLAGS="$CPPFLAGS $BLUEFISH444_INC" CXXFLAGS="$CXXFLAGS $BLUEFISH444_INC" LIBS="$LIBS $BLUEFISH444_LIB" - -for ac_header in BlueVelvetC.h + for ac_header in BlueVelvetC.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "BlueVelvetC.h" "ac_cv_header_BlueVelvetC_h" "$ac_includes_default" -if test "x$ac_cv_header_BlueVelvetC_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BLUEVELVETC_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "BlueVelvetC.h" "ac_cv_header_BlueVelvetC_h" "$ac_includes_default" +if test "x$ac_cv_header_BlueVelvetC_h" = xyes +then : + printf "%s\n" "#define HAVE_BLUEVELVETC_H 1" >>confdefs.h BLUE_H=yes -else - BLUE_H=no +else case e in #( + e) BLUE_H=no ;; +esac fi done - -as_ac_Lib=`$as_echo "ac_cv_lib_$BLUEFISH444_LIB_NAME''_bfcFactory" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfcFactory in -l$BLUEFISH444_LIB_NAME" >&5 -$as_echo_n "checking for bfcFactory in -l$BLUEFISH444_LIB_NAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +as_ac_Lib=`printf "%s\n" "ac_cv_lib_$BLUEFISH444_LIB_NAME""_bfcFactory" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfcFactory in -l$BLUEFISH444_LIB_NAME" >&5 +printf %s "checking for bfcFactory in -l$BLUEFISH444_LIB_NAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$BLUEFISH444_LIB_NAME $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 bfcFactory (); +namespace conftest { + extern "C" int bfcFactory (); +} int -main () +main (void) { -return bfcFactory (); +return conftest::bfcFactory (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = 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_Lib"\" = x"yes" +then : BLUE_L=yes -else - BLUE_L=no +else case e in #( + e) BLUE_L=no ;; +esac fi @@ -8742,10 +9896,10 @@ then BLUEFISH444_CAP_OBJ="src/video_capture/bluefish444.o" BLUEFISH444_DISP_OBJ="src/video_display/bluefish444.o" -$as_echo "#define HAVE_BLUEFISH444 1" >>confdefs.h +printf "%s\n" "#define HAVE_BLUEFISH444 1" >>confdefs.h - TARGET=$(MODULE_NAME ""vidcap_bluefish444"") + TARGET="lib/ultragrid/ultragrid_""vidcap_bluefish444"".so" LIB_OBJS=$LIB_OBJS" ""$BLUEFISH444_CAP_OBJ" LIB_MODULES=$LIB_MODULES" ""$BLUEFISH444_LIB" if test x"vidcap_bluefish444" != x; then @@ -8768,7 +9922,7 @@ $TARGET: ""$BLUEFISH444_CAP_OBJ"" fi - TARGET=$(MODULE_NAME ""display_bluefish444"") + TARGET="lib/ultragrid/ultragrid_""display_bluefish444"".so" LIB_OBJS=$LIB_OBJS" ""$BLUEFISH444_DISP_OBJ" LIB_MODULES=$LIB_MODULES" ""$BLUEFISH444_LIB" if test x"display_bluefish444" != x; then @@ -8819,10 +9973,12 @@ AJA_PATH= aja=no # Check whether --enable-aja was given. -if test "${enable_aja+set}" = set; then : +if test ${enable_aja+y} +then : enableval=$enable_aja; aja_req=$enableval -else - aja_req=$build_default +else case e in #( + e) aja_req=$build_default ;; +esac fi @@ -8836,7 +9992,8 @@ fi # Check whether --with-aja was given. -if test "${with_aja+set}" = set; then : +if test ${with_aja+y} +then : withval=$with_aja; AJA_PATH=$withval fi @@ -8849,86 +10006,98 @@ then if test -n "$AJA_PATH" then # NTV2 SDK 12.x - as_ac_File=`$as_echo "ac_cv_file_${AJA_PATH}/lib/libaja.a" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/lib/libaja.a" >&5 -$as_echo_n "checking for ${AJA_PATH}/lib/libaja.a... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else - test "$cross_compiling" = yes && + as_ac_File=`printf "%s\n" "ac_cv_file_${AJA_PATH}/lib/libaja.a" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/lib/libaja.a" >&5 +printf %s "checking for ${AJA_PATH}/lib/libaja.a... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${AJA_PATH}/lib/libaja.a"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" -fi +fi ;; +esac 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 : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_${AJA_PATH}/lib/libaja.a" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_${AJA_PATH}/lib/libaja.a" | sed "$as_sed_cpp"` 1 _ACEOF FOUND_LIBAJA=yes -else - FOUND_LIBAJA=no +else case e in #( + e) FOUND_LIBAJA=no ;; +esac fi -as_ac_File=`$as_echo "ac_cv_file_${AJA_PATH}/lib/libajastuff.a" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/lib/libajastuff.a" >&5 -$as_echo_n "checking for ${AJA_PATH}/lib/libajastuff.a... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else - test "$cross_compiling" = yes && +as_ac_File=`printf "%s\n" "ac_cv_file_${AJA_PATH}/lib/libajastuff.a" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/lib/libajastuff.a" >&5 +printf %s "checking for ${AJA_PATH}/lib/libajastuff.a... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${AJA_PATH}/lib/libajastuff.a"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" -fi +fi ;; +esac 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 : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_${AJA_PATH}/lib/libajastuff.a" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_${AJA_PATH}/lib/libajastuff.a" | sed "$as_sed_cpp"` 1 _ACEOF FOUND_LIBAJA=yes -else - FOUND_LIBAJA=no +else case e in #( + e) FOUND_LIBAJA=no ;; +esac fi # NTV2 SDK 13.x if test "$FOUND_LIBAJA" = no; then - as_ac_File=`$as_echo "ac_cv_file_${AJA_PATH}/lib/libajantv2.a" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/lib/libajantv2.a" >&5 -$as_echo_n "checking for ${AJA_PATH}/lib/libajantv2.a... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else - test "$cross_compiling" = yes && + as_ac_File=`printf "%s\n" "ac_cv_file_${AJA_PATH}/lib/libajantv2.a" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/lib/libajantv2.a" >&5 +printf %s "checking for ${AJA_PATH}/lib/libajantv2.a... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${AJA_PATH}/lib/libajantv2.a"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" -fi +fi ;; +esac 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 : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_${AJA_PATH}/lib/libajantv2.a" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_${AJA_PATH}/lib/libajantv2.a" | sed "$as_sed_cpp"` 1 _ACEOF FOUND_LIBAJA=yes -else - FOUND_LIBAJA=no +else case e in #( + e) FOUND_LIBAJA=no ;; +esac fi NTV2_13=yes @@ -8936,107 +10105,126 @@ fi fi elif test $system = Windows then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for display_aja_probe in -laja" >&5 -$as_echo_n "checking for display_aja_probe in -laja... " >&6; } -if ${ac_cv_lib_aja_display_aja_probe+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for display_aja_probe in -laja" >&5 +printf %s "checking for display_aja_probe in -laja... " >&6; } +if test ${ac_cv_lib_aja_display_aja_probe+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-laja $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char display_aja_probe (); +char display_aja_probe (void); int -main () +main (void) { return display_aja_probe (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_aja_display_aja_probe=yes -else - ac_cv_lib_aja_display_aja_probe=no +else case e in #( + e) ac_cv_lib_aja_display_aja_probe=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aja_display_aja_probe" >&5 -$as_echo "$ac_cv_lib_aja_display_aja_probe" >&6; } -if test "x$ac_cv_lib_aja_display_aja_probe" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aja_display_aja_probe" >&5 +printf "%s\n" "$ac_cv_lib_aja_display_aja_probe" >&6; } +if test "x$ac_cv_lib_aja_display_aja_probe" = xyes +then : FOUND_LIBAJA=yes -else - FOUND_LIBAJA=no +else case e in #( + e) FOUND_LIBAJA=no ;; +esac fi else # MacOSX - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lajantv2" >&5 -$as_echo_n "checking for main in -lajantv2... " >&6; } -if ${ac_cv_lib_ajantv2_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lajantv2" >&5 +printf %s "checking for main in -lajantv2... " >&6; } +if test ${ac_cv_lib_ajantv2_main+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lajantv2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ajantv2_main=yes -else - ac_cv_lib_ajantv2_main=no +else case e in #( + e) ac_cv_lib_ajantv2_main=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ajantv2_main" >&5 -$as_echo "$ac_cv_lib_ajantv2_main" >&6; } -if test "x$ac_cv_lib_ajantv2_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ajantv2_main" >&5 +printf "%s\n" "$ac_cv_lib_ajantv2_main" >&6; } +if test "x$ac_cv_lib_ajantv2_main" = xyes +then : FOUND_LIBAJA=yes -else - FOUND_LIBAJA=no +else case e in #( + e) FOUND_LIBAJA=no ;; +esac fi if test "$FOUND_LIBAJA" = yes; then - as_ac_File=`$as_echo "ac_cv_file_${AJA_PATH}/ajalibraries/ajantv2/includes/ajatypes.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/ajalibraries/ajantv2/includes/ajatypes.h" >&5 -$as_echo_n "checking for ${AJA_PATH}/ajalibraries/ajantv2/includes/ajatypes.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else - test "$cross_compiling" = yes && + as_ac_File=`printf "%s\n" "ac_cv_file_${AJA_PATH}/ajalibraries/ajantv2/includes/ajatypes.h" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${AJA_PATH}/ajalibraries/ajantv2/includes/ajatypes.h" >&5 +printf %s "checking for ${AJA_PATH}/ajalibraries/ajantv2/includes/ajatypes.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${AJA_PATH}/ajalibraries/ajantv2/includes/ajatypes.h"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" -fi +fi ;; +esac 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 : FOUND_LIBAJA=yes -else - FOUND_LIBAJA=no +else case e in #( + e) FOUND_LIBAJA=no ;; +esac fi fi @@ -9049,7 +10237,7 @@ fi if test $aja = yes -a $system = Windows; then - TARGET=$(MODULE_NAME ""aja"") + TARGET="lib/ultragrid/ultragrid_""aja"".so" LIB_OBJS=$LIB_OBJS" ""src/aja_win32_stub.o" LIB_MODULES=$LIB_MODULES" ""-laja" if test x"aja" != x; then @@ -9095,11 +10283,11 @@ then AJA_CAP_OBJ="src/video_capture/aja.o" AJA_DISP_OBJ="src/video_display/aja.o" -$as_echo "#define HAVE_AJA 1" >>confdefs.h +printf "%s\n" "#define HAVE_AJA 1" >>confdefs.h - TARGET=$(MODULE_NAME ""aja"") + TARGET="lib/ultragrid/ultragrid_""aja"".so" LIB_OBJS=$LIB_OBJS" ""src/aja_common.o $AJA_CAP_OBJ $AJA_DISP_OBJ" LIB_MODULES=$LIB_MODULES" ""$AJA_LIB" if test x"aja" != x; then @@ -9141,18 +10329,21 @@ deltacast=no deltacast_found=no # Check whether --enable-deltacast was given. -if test "${enable_deltacast+set}" = set; then : +if test ${enable_deltacast+y} +then : enableval=$enable_deltacast; deltacast_req=$enableval -else - deltacast_req=$build_default - +else case e in #( + e) deltacast_req=$build_default + ;; +esac fi DELTACAST_PATH=$DELTACAST_DIRECTORY # Check whether --with-deltacast was given. -if test "${with_deltacast+set}" = set; then : +if test ${with_deltacast+y} +then : withval=$with_deltacast; DELTACAST_PATH=$withval fi @@ -9181,10 +10372,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu EXTRA_HEADERS= fi - for ac_header in VideoMasterHD_Core.h VideoMasterHD_Sdi.h VideoMasterHD_Sdi_Audio.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$EXTRA_HEADERS + ac_fn_cxx_check_header_compile "$LINENO" "VideoMasterHD_Core.h" "ac_cv_header_VideoMasterHD_Core_h" "$EXTRA_HEADERS #ifdef HAVE_VIDEOMASTERHD_CORE_H # include #endif @@ -9193,14 +10381,39 @@ ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$EXTRA_HE #endif " -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 +if test "x$ac_cv_header_VideoMasterHD_Core_h" = xyes +then : + printf "%s\n" "#define HAVE_VIDEOMASTERHD_CORE_H 1" >>confdefs.h fi +ac_fn_cxx_check_header_compile "$LINENO" "VideoMasterHD_Sdi.h" "ac_cv_header_VideoMasterHD_Sdi_h" "$EXTRA_HEADERS + #ifdef HAVE_VIDEOMASTERHD_CORE_H + # include + #endif + #ifdef HAVE_VIDEOMASTERHD_SDI_H + # include + #endif -done +" +if test "x$ac_cv_header_VideoMasterHD_Sdi_h" = xyes +then : + printf "%s\n" "#define HAVE_VIDEOMASTERHD_SDI_H 1" >>confdefs.h + +fi +ac_fn_cxx_check_header_compile "$LINENO" "VideoMasterHD_Sdi_Audio.h" "ac_cv_header_VideoMasterHD_Sdi_Audio_h" "$EXTRA_HEADERS + #ifdef HAVE_VIDEOMASTERHD_CORE_H + # include + #endif + #ifdef HAVE_VIDEOMASTERHD_SDI_H + # include + #endif + +" +if test "x$ac_cv_header_VideoMasterHD_Sdi_Audio_h" = xyes +then : + printf "%s\n" "#define HAVE_VIDEOMASTERHD_SDI_AUDIO_H 1" >>confdefs.h + +fi SAVED_LIBS=$LIBS @@ -9215,8 +10428,8 @@ done fi LIBS="$LIBS $DELTACAST_LIB" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking DELTACAST library presence" >&5 -$as_echo_n "checking DELTACAST library presence... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DELTACAST library presence" >&5 +printf %s "checking DELTACAST library presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $EXTRA_HEADERS @@ -9225,7 +10438,7 @@ $EXTRA_HEADERS # include int -main () +main (void) { VHD_OpenBoardHandle(0, (void **) 0, (void *) 0, 0); @@ -9236,12 +10449,14 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : FOUND_VHD_L=yes -else - FOUND_VHD_L=no +else case e in #( + e) FOUND_VHD_L=no ;; +esac 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 #AC_CHECK_LIB(videomasterhd_audio, VHD_GetNbSamples, [], [], [-lvideomasterhd]) LIBS=$SAVED_LIBS @@ -9250,8 +10465,8 @@ rm -f core conftest.err conftest.$ac_objext \ CXXFLAGS=$CXXFLAGS_SAVE CPPFLAGS=$CPPFLAGS_SAVE fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_VHD_L" >&5 -$as_echo "$FOUND_VHD_L" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOUND_VHD_L" >&5 +printf "%s\n" "$FOUND_VHD_L" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -9265,96 +10480,99 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu deltacast_found=yes fi else # OS X - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -framework VideoMasterHD works" >&5 -$as_echo_n "checking if -framework VideoMasterHD works... " >&6; } -if ${my_cv_framework_VideoMasterHD+:} false; then : - $as_echo_n "(cached) " >&6 -else - save_LIBS="$LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -framework VideoMasterHD works" >&5 +printf %s "checking if -framework VideoMasterHD works... " >&6; } +if test ${my_cv_framework_VideoMasterHD+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) save_LIBS="$LIBS" LIBS="$LIBS -framework VideoMasterHD" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : my_cv_framework_VideoMasterHD=yes -else - my_cv_framework_VideoMasterHD=no +else case e in #( + e) my_cv_framework_VideoMasterHD=no ;; +esac 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 - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_VideoMasterHD" >&5 -$as_echo "$my_cv_framework_VideoMasterHD" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_VideoMasterHD" >&5 +printf "%s\n" "$my_cv_framework_VideoMasterHD" >&6; } LIBS="$save_LIBS" if test "$my_cv_framework_VideoMasterHD"="yes"; then -$as_echo "#define HAVE_FRAMEWORK_VIDEOMASTERHD 1" >>confdefs.h +printf "%s\n" "#define HAVE_FRAMEWORK_VIDEOMASTERHD 1" >>confdefs.h FRAMEWORK_VIDEOMASTERHD="-framework VideoMasterHD" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -framework VideoMasterHD_Audio works" >&5 -$as_echo_n "checking if -framework VideoMasterHD_Audio works... " >&6; } -if ${my_cv_framework_VideoMasterHD_Audio+:} false; then : - $as_echo_n "(cached) " >&6 -else - save_LIBS="$LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -framework VideoMasterHD_Audio works" >&5 +printf %s "checking if -framework VideoMasterHD_Audio works... " >&6; } +if test ${my_cv_framework_VideoMasterHD_Audio+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) save_LIBS="$LIBS" LIBS="$LIBS -framework VideoMasterHD_Audio" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : my_cv_framework_VideoMasterHD_Audio=yes -else - my_cv_framework_VideoMasterHD_Audio=no +else case e in #( + e) my_cv_framework_VideoMasterHD_Audio=no ;; +esac 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 - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_VideoMasterHD_Audio" >&5 -$as_echo "$my_cv_framework_VideoMasterHD_Audio" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_VideoMasterHD_Audio" >&5 +printf "%s\n" "$my_cv_framework_VideoMasterHD_Audio" >&6; } LIBS="$save_LIBS" if test "$my_cv_framework_VideoMasterHD_Audio"="yes"; then -$as_echo "#define HAVE_FRAMEWORK_VIDEOMASTERHD_AUDIO 1" >>confdefs.h +printf "%s\n" "#define HAVE_FRAMEWORK_VIDEOMASTERHD_AUDIO 1" >>confdefs.h FRAMEWORK_VIDEOMASTERHD_AUDIO="-framework VideoMasterHD_Audio" fi - for ac_header in VideoMasterHD/VideoMasterHD_Core.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "VideoMasterHD/VideoMasterHD_Core.h" "ac_cv_header_VideoMasterHD_VideoMasterHD_Core_h" "$ac_includes_default" -if test "x$ac_cv_header_VideoMasterHD_VideoMasterHD_Core_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_VIDEOMASTERHD_VIDEOMASTERHD_CORE_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "VideoMasterHD/VideoMasterHD_Core.h" "ac_cv_header_VideoMasterHD_VideoMasterHD_Core_h" "$ac_includes_default" +if test "x$ac_cv_header_VideoMasterHD_VideoMasterHD_Core_h" = xyes +then : + printf "%s\n" "#define HAVE_VIDEOMASTERHD_VIDEOMASTERHD_CORE_H 1" >>confdefs.h fi -done - if test "$ac_cv_header_VideoMasterHD_VideoMasterHD_Core_h" = yes -a $my_cv_framework_VideoMasterHD = yes -a $my_cv_framework_VideoMasterHD = yes; then deltacast_found=yes DELTACAST_LIB="$FRAMEWORK_VIDEOMASTERHD $FRAMEWORK_VIDEOMASTERHD_AUDIO" - BIN_DEPS="${BIN_DEPS:+$BIN_DEPS }Frameworks/libVideoMasterHD_SP.dylib Frameworks/VideoMasterHD_Audio.framework Frameworks/VideoMasterHD.framework" + BIN_DEPS="${BIN_DEPS:+$BIN_DEPS }Frameworks/VideoMasterHD_Audio.framework Frameworks/VideoMasterHD.framework" fi fi @@ -9367,10 +10585,10 @@ then DELTACAST_CAP_OBJ="src/video_capture/deltacast.o src/video_capture/deltacast_dvi.o" DELTACAST_DISP_OBJ="src/video_display/deltacast.o" -$as_echo "#define HAVE_DELTACAST 1" >>confdefs.h +printf "%s\n" "#define HAVE_DELTACAST 1" >>confdefs.h - TARGET=$(MODULE_NAME ""vidcap_deltacast"") + TARGET="lib/ultragrid/ultragrid_""vidcap_deltacast"".so" LIB_OBJS=$LIB_OBJS" ""$DELTACAST_CAP_OBJ" LIB_MODULES=$LIB_MODULES" ""$DELTACAST_LIB" if test x"vidcap_deltacast" != x; then @@ -9393,7 +10611,7 @@ $TARGET: ""$DELTACAST_CAP_OBJ"" fi - TARGET=$(MODULE_NAME ""display_deltacast"") + TARGET="lib/ultragrid/ultragrid_""display_deltacast"".so" LIB_OBJS=$LIB_OBJS" ""$DELTACAST_DISP_OBJ" LIB_MODULES=$LIB_MODULES" ""$DELTACAST_LIB" if test x"display_deltacast" != x; then @@ -9427,58 +10645,66 @@ fi # XIMEA # --------------------------------------------------------------------- # Check whether --enable-ximea was given. -if test "${enable_ximea+set}" = set; then : +if test ${enable_ximea+y} +then : enableval=$enable_ximea; ximea_req=$enableval -else - ximea_req=$build_default - +else case e in #( + e) ximea_req=$build_default + ;; +esac fi # Check whether --enable-ximea-runtime-linking was given. -if test "${enable_ximea_runtime_linking+set}" = set; then : +if test ${enable_ximea_runtime_linking+y} +then : enableval=$enable_ximea_runtime_linking; ximea_link_runtime=$enableval -else - ximea_link_runtime=yes - +else case e in #( + e) ximea_link_runtime=yes + ;; +esac fi ximea=no if test $system = MacOSX; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -framework m3api works" >&5 -$as_echo_n "checking if -framework m3api works... " >&6; } -if ${my_cv_framework_m3api+:} false; then : - $as_echo_n "(cached) " >&6 -else - save_LIBS="$LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -framework m3api works" >&5 +printf %s "checking if -framework m3api works... " >&6; } +if test ${my_cv_framework_m3api+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) save_LIBS="$LIBS" LIBS="$LIBS -framework m3api" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : my_cv_framework_m3api=yes -else - my_cv_framework_m3api=no +else case e in #( + e) my_cv_framework_m3api=no ;; +esac 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 - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_m3api" >&5 -$as_echo "$my_cv_framework_m3api" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_m3api" >&5 +printf "%s\n" "$my_cv_framework_m3api" >&6; } LIBS="$save_LIBS" if test "$my_cv_framework_m3api"="yes"; then -$as_echo "#define HAVE_FRAMEWORK_M3API 1" >>confdefs.h +printf "%s\n" "#define HAVE_FRAMEWORK_M3API 1" >>confdefs.h FRAMEWORK_M3API="-framework m3api" @@ -9495,93 +10721,95 @@ $as_echo "#define HAVE_FRAMEWORK_M3API 1" >>confdefs.h XI_LIB_NAME="m3api" else if test $system = Linux; then - if test -z "$GENICAM_GENTL64_PATH"; then - GENICAM_GENTL64_PATH="/opt/XIMEA/lib" - fi + XIAPI_PATH=${GENICAM_GENTL64_PATH:-/opt/XIMEA/lib} XI_LIB_EXT=".so" XI_LIB_NAME="m3api" XI_LIB_PREF="lib" XI_INC_SUFF="/include" + XIMEA_CFLAGS="-I$XIAPI_PATH/../include" else if test -n "$GENICAM_GENTL64_PATH"; then - # the env var contains actually something like "C:\XIMEA\GenTL Producer\x64" - GENICAM_GENTL64_PATH=$(realpath "$GENICAM_GENTL64_PATH=C:/XIMEA/API/x64") + # the env var contains actually something like "C:\XIMEA\GenTL Producer\64bit" + XIAPI_PATH=$(realpath "$GENICAM_GENTL64_PATH/../../API/xiAPI") else - GENICAM_GENTL64_PATH="C:/XIMEA/API/x64" + XIAPI_PATH="C:/XIMEA/API/xiAPI" fi XI_LIB_EXT=".dll" XI_LIB_NAME="xiapi64" - XI_INC_SUFF= + XIMEA_CFLAGS="-I$XIAPI_PATH" fi SAVED_CFLAGS=$CFLAGS SAVED_CPPFLAGS=$CPPFLAGS - XIMEA_CFLAGS="-I$GENICAM_GENTL64_PATH/..${XI_INC_SUFF}" CFLAGS="$CFLAGS $XIMEA_CFLAGS" CPPFLAGS="$CPPFLAGS $XIMEA_CFLAGS" - for ac_header in xiApi.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "xiApi.h" "ac_cv_header_xiApi_h" "$ac_includes_default" -if test "x$ac_cv_header_xiApi_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_XIAPI_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "xiApi.h" "ac_cv_header_xiApi_h" "$ac_includes_default" +if test "x$ac_cv_header_xiApi_h" = xyes +then : + printf "%s\n" "#define HAVE_XIAPI_H 1" >>confdefs.h fi -done - CFLAGS=$SAVED_CFLAGS if test $ximea_link_runtime = no; then - XIMEA_LIBS="-L$GENICAM_GENTL64_PATH" + XIMEA_LIBS="-L$XIAPI_PATH" SAVED_LIBS=$LIBS LIBS="$LIBS $XIMEA_LIBS" CPPFLAGS=$SAVED_CPPFLAGS - as_ac_Lib=`$as_echo "ac_cv_lib_$XI_LIB_NAME''_xiGetImage" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xiGetImage in -l$XI_LIB_NAME" >&5 -$as_echo_n "checking for xiGetImage in -l$XI_LIB_NAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$XI_LIB_NAME""_xiGetImage" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xiGetImage in -l$XI_LIB_NAME" >&5 +printf %s "checking for xiGetImage in -l$XI_LIB_NAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$XI_LIB_NAME $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char xiGetImage (); +char xiGetImage (void); int -main () +main (void) { return xiGetImage (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = 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_Lib"\" = x"yes" +then : HAVE_XI_L=yes -else - HAVE_XI_L=no +else case e in #( + e) HAVE_XI_L=no ;; +esac fi - XIMEA_LIBS="-l$XI_LIB_NAME -L$GENICAM_GENTL64_PATH" + XIMEA_LIBS="-l$XI_LIB_NAME -L$XIAPI_PATH" LIBS=$SAVED_LIBS else HAVE_XI_L=yes @@ -9594,24 +10822,20 @@ fi if test $ximea = yes -a $ximea_link_runtime = yes; then -$as_echo "#define XIMEA_RUNTIME_LINKING 1" >>confdefs.h +printf "%s\n" "#define XIMEA_RUNTIME_LINKING 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define XIMEA_LIBRARY_NAME "$XI_LIB_PREF$XI_LIB_NAME$XI_LIB_EXT" -_ACEOF +printf "%s\n" "#define XIMEA_LIBRARY_NAME \"$XI_LIB_PREF$XI_LIB_NAME$XI_LIB_EXT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define XIMEA_LIBRARY_PATH "$GENICAM_GENTL64_PATH" -_ACEOF +printf "%s\n" "#define XIMEA_LIBRARY_PATH \"$GENICAM_GENTL64_PATH\"" >>confdefs.h fi if test $ximea = yes; then CFLAGS="$CFLAGS $XIMEA_CFLAGS" - TARGET=$(MODULE_NAME ""vidcap_ximea"") + TARGET="lib/ultragrid/ultragrid_""vidcap_ximea"".so" LIB_OBJS=$LIB_OBJS" ""src/video_capture/ximea.o" LIB_MODULES=$LIB_MODULES" ""$XIMEA_LIBS" if test x"vidcap_ximea" != x; then @@ -9648,11 +10872,13 @@ QUICKTIME_OBJ= quicktime=no # Check whether --enable-quicktime was given. -if test "${enable_quicktime+set}" = set; then : +if test ${enable_quicktime+y} +then : enableval=$enable_quicktime; quicktime_req=$enableval -else - quicktime_req=no - +else case e in #( + e) quicktime_req=no + ;; +esac fi @@ -9662,45 +10888,43 @@ fi case $host_os in *darwin*) - for ac_header in QuickTime/QuickTime.h + for ac_header in QuickTime/QuickTime.h do : - ac_fn_c_check_header_mongrel "$LINENO" "QuickTime/QuickTime.h" "ac_cv_header_QuickTime_QuickTime_h" "$ac_includes_default" -if test "x$ac_cv_header_QuickTime_QuickTime_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_QUICKTIME_QUICKTIME_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "QuickTime/QuickTime.h" "ac_cv_header_QuickTime_QuickTime_h" "$ac_includes_default" +if test "x$ac_cv_header_QuickTime_QuickTime_h" = xyes +then : + printf "%s\n" "#define HAVE_QUICKTIME_QUICKTIME_H 1" >>confdefs.h FOUND_QUICKTIME_H=yes -else - FOUND_QUICKTIME_H=no +else case e in #( + e) FOUND_QUICKTIME_H=no ;; +esac fi done - - for ac_header in Carbon/Carbon.h + for ac_header in Carbon/Carbon.h do : - ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" -if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CARBON_CARBON_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" +if test "x$ac_cv_header_Carbon_Carbon_h" = xyes +then : + printf "%s\n" "#define HAVE_CARBON_CARBON_H 1" >>confdefs.h FOUND_CARBON_H=yes -else - FOUND_CARBON_H=no +else case e in #( + e) FOUND_CARBON_H=no ;; +esac fi done - if test $quicktime_req != no -a $FOUND_QUICKTIME_H = yes -a $FOUND_CARBON_H = yes -a $WORD_LEN = 32 then -$as_echo "#define HAVE_QUICKTIME 1" >>confdefs.h +printf "%s\n" "#define HAVE_QUICKTIME 1" >>confdefs.h QUICKTIME_INC= QUICKTIME_LIB="-framework QuickTime -framework Carbon -framework AppKit -framework CoreAudio -framework AudioUnit" QUICKTIME_OBJ="src/video_capture/quicktime.o src/video_display/quicktime.o" - TARGET=$(MODULE_NAME """") + TARGET="lib/ultragrid/ultragrid_"""".so" LIB_OBJS=$LIB_OBJS" ""$QUICKTIME_OBJ" LIB_MODULES=$LIB_MODULES" ""$QUICKTIME_LIB" if test x"" != x; then @@ -9737,11 +10961,13 @@ fi # ------------------------------------------------------------------------------------------------- avfoundation=no # Check whether --enable-avfoundation was given. -if test "${enable_avfoundation+set}" = set; then : +if test ${enable_avfoundation+y} +then : enableval=$enable_avfoundation; avfoundation_req=$enableval -else - avfoundation_req=auto - +else case e in #( + e) avfoundation_req=auto + ;; +esac fi @@ -9749,11 +10975,11 @@ if test $system = MacOSX -a $avfoundation_req != no then AVFOUNDATION_LIB="-framework AppKit -framework AVFoundation -framework CoreMedia -framework CoreVideo" -$as_echo "#define HAVE_AVFOUNDATION 1" >>confdefs.h +printf "%s\n" "#define HAVE_AVFOUNDATION 1" >>confdefs.h AVFOUNDATION_OBJ="src/video_capture/avfoundation.o" - TARGET=$(MODULE_NAME """") + TARGET="lib/ultragrid/ultragrid_"""".so" LIB_OBJS=$LIB_OBJS" ""$AVFOUNDATION_OBJ" LIB_MODULES=$LIB_MODULES" ""$AVFOUNDATION_LIB" if test x"" != x; then @@ -9784,27 +11010,32 @@ fi sdl=no sdl_version=1 # Check whether --enable-sdl was given. -if test "${enable_sdl+set}" = set; then : +if test ${enable_sdl+y} +then : enableval=$enable_sdl; as_fn_error $? "Use either \"--enable-sdl1\" or \"--enable-sdl2\" option." "$LINENO" 5 fi # Check whether --enable-sdl1 was given. -if test "${enable_sdl1+set}" = set; then : +if test ${enable_sdl1+y} +then : enableval=$enable_sdl1; sdl1_req=$enableval -else - sdl1_req=$build_default - +else case e in #( + e) sdl1_req=$build_default + ;; +esac fi # Check whether --enable-sdl2 was given. -if test "${enable_sdl2+set}" = set; then : +if test ${enable_sdl2+y} +then : enableval=$enable_sdl2; sdl2_req=$enableval -else - sdl2_req=$build_default - +else case e in #( + e) sdl2_req=$build_default + ;; +esac fi @@ -9822,17 +11053,17 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 -$as_echo_n "checking for sdl... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 +printf %s "checking for sdl... " >&6; } if test -n "$SDL1_CFLAGS"; then pkg_cv_SDL1_CFLAGS="$SDL1_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 ($PKG_CONFIG --exists --print-errors "sdl") 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 pkg_cv_SDL1_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -9846,10 +11077,10 @@ if test -n "$SDL1_LIBS"; then pkg_cv_SDL1_LIBS="$SDL1_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 ($PKG_CONFIG --exists --print-errors "sdl") 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 pkg_cv_SDL1_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -9863,8 +11094,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -9872,38 +11103,38 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - SDL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` + SDL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` else - SDL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` + SDL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$SDL1_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$SDL1_PKG_ERRORS" >&5 - found_sdl1=no + found_sdl1=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_sdl1=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_sdl1=no else - SDL1_CFLAGS=$pkg_cv_SDL1_CFLAGS - SDL1_LIBS=$pkg_cv_SDL1_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_sdl1=yes + SDL1_CFLAGS=$pkg_cv_SDL1_CFLAGS + SDL1_LIBS=$pkg_cv_SDL1_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_sdl1=yes fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5 -$as_echo_n "checking for sdl2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5 +printf %s "checking for sdl2... " >&6; } if test -n "$SDL2_CFLAGS"; then pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 ($PKG_CONFIG --exists --print-errors "sdl2") 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 pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -9917,10 +11148,10 @@ if test -n "$SDL2_LIBS"; then pkg_cv_SDL2_LIBS="$SDL2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 ($PKG_CONFIG --exists --print-errors "sdl2") 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 pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -9934,8 +11165,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -9943,24 +11174,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1` + SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1` else - SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1` + SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$SDL2_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$SDL2_PKG_ERRORS" >&5 - found_sdl2=no + found_sdl2=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_sdl2=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_sdl2=no else - SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS - SDL2_LIBS=$pkg_cv_SDL2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_sdl2=yes + SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS + SDL2_LIBS=$pkg_cv_SDL2_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_sdl2=yes fi if test $sdl1_req = yes -a $found_sdl1 = no; then as_fn_error $? "SDL not found" "$LINENO" 5; @@ -9974,7 +11205,7 @@ if test $sdl2_req != no -a $found_sdl2 = yes then SDL2_OBJ="src/video_display/sdl2.o" -$as_echo "#define HAVE_SDL2 1" >>confdefs.h +printf "%s\n" "#define HAVE_SDL2 1" >>confdefs.h # on Win override libs from pkg-config because those contain # "-mwindows" which causes output to be scratched by cmd.exe @@ -9983,7 +11214,7 @@ $as_echo "#define HAVE_SDL2 1" >>confdefs.h SDL2_LIBS="-lSDL2" fi - TARGET=$(MODULE_NAME ""display_sdl2"") + TARGET="lib/ultragrid/ultragrid_""display_sdl2"".so" LIB_OBJS=$LIB_OBJS" ""$SDL2_OBJ" LIB_MODULES=$LIB_MODULES" ""$SDL2_LIBS" if test x"display_sdl2" != x; then @@ -10012,10 +11243,10 @@ elif test $sdl1_req != no -a $found_sdl1 = yes then SDL1_OBJ="src/video_display/sdl.o src/x11_common.o" -$as_echo "#define HAVE_SDL 1" >>confdefs.h +printf "%s\n" "#define HAVE_SDL 1" >>confdefs.h - TARGET=$(MODULE_NAME ""display_sdl"") + TARGET="lib/ultragrid/ultragrid_""display_sdl"".so" LIB_OBJS=$LIB_OBJS" ""$SDL1_OBJ" LIB_MODULES=$LIB_MODULES" ""$SDL1_LIBS" if test x"display_sdl" != x; then @@ -10047,26 +11278,28 @@ fi # ------------------------------------------------------------------------------------------------- # Check whether --enable-opencv was given. -if test "${enable_opencv+set}" = set; then : +if test ${enable_opencv+y} +then : enableval=$enable_opencv; opencv_req=$enableval -else - opencv_req=$build_default +else case e in #( + e) opencv_req=$build_default ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv > 3.0" >&5 -$as_echo_n "checking for opencv > 3.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencv > 3.0" >&5 +printf %s "checking for opencv > 3.0... " >&6; } if test -n "$OPENCV_3_CFLAGS"; then pkg_cv_OPENCV_3_CFLAGS="$OPENCV_3_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 3.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv > 3.0") 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 pkg_cv_OPENCV_3_CFLAGS=`$PKG_CONFIG --cflags "opencv > 3.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10080,10 +11313,10 @@ if test -n "$OPENCV_3_LIBS"; then pkg_cv_OPENCV_3_LIBS="$OPENCV_3_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 3.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv > 3.0") 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 pkg_cv_OPENCV_3_LIBS=`$PKG_CONFIG --libs "opencv > 3.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10097,8 +11330,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10106,27 +11339,27 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - OPENCV_3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv > 3.0" 2>&1` + OPENCV_3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv > 3.0" 2>&1` else - OPENCV_3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv > 3.0" 2>&1` + OPENCV_3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv > 3.0" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$OPENCV_3_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$OPENCV_3_PKG_ERRORS" >&5 pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv > 2.3" >&5 -$as_echo_n "checking for opencv > 2.3... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencv > 2.3" >&5 +printf %s "checking for opencv > 2.3... " >&6; } if test -n "$OPENCV_2_CFLAGS"; then pkg_cv_OPENCV_2_CFLAGS="$OPENCV_2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv > 2.3") 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 pkg_cv_OPENCV_2_CFLAGS=`$PKG_CONFIG --cflags "opencv > 2.3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10140,10 +11373,10 @@ if test -n "$OPENCV_2_LIBS"; then pkg_cv_OPENCV_2_LIBS="$OPENCV_2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv > 2.3") 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 pkg_cv_OPENCV_2_LIBS=`$PKG_CONFIG --libs "opencv > 2.3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10157,8 +11390,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10166,27 +11399,27 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv > 2.3" 2>&1` + OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv > 2.3" 2>&1` else - OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv > 2.3" 2>&1` + OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv > 2.3" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$OPENCV_2_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$OPENCV_2_PKG_ERRORS" >&5 pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 -$as_echo_n "checking for opencv4... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 +printf %s "checking for opencv4... " >&6; } if test -n "$OPENCV_4_CFLAGS"; then pkg_cv_OPENCV_4_CFLAGS="$OPENCV_4_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_CFLAGS=`$PKG_CONFIG --cflags "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10200,10 +11433,10 @@ if test -n "$OPENCV_4_LIBS"; then pkg_cv_OPENCV_4_LIBS="$OPENCV_4_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_LIBS=`$PKG_CONFIG --libs "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10217,8 +11450,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10226,28 +11459,28 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` else - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$OPENCV_4_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$OPENCV_4_PKG_ERRORS" >&5 - OPENCV_MAJOR= + OPENCV_MAJOR= elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - OPENCV_MAJOR= + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + OPENCV_MAJOR= else - OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS - OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS + OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_OPENCV_4 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_4 1" >>confdefs.h OPENCV_MAJOR=4 OPENCV_LIBS=$OPENCV_4_LIBS @@ -10257,22 +11490,22 @@ fi elif test $pkg_failed = untried; then - { $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; } pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 -$as_echo_n "checking for opencv4... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 +printf %s "checking for opencv4... " >&6; } if test -n "$OPENCV_4_CFLAGS"; then pkg_cv_OPENCV_4_CFLAGS="$OPENCV_4_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_CFLAGS=`$PKG_CONFIG --cflags "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10286,10 +11519,10 @@ if test -n "$OPENCV_4_LIBS"; then pkg_cv_OPENCV_4_LIBS="$OPENCV_4_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_LIBS=`$PKG_CONFIG --libs "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10303,8 +11536,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10312,28 +11545,28 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` else - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$OPENCV_4_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$OPENCV_4_PKG_ERRORS" >&5 - OPENCV_MAJOR= + OPENCV_MAJOR= elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - OPENCV_MAJOR= + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + OPENCV_MAJOR= else - OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS - OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS + OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_OPENCV_4 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_4 1" >>confdefs.h OPENCV_MAJOR=4 OPENCV_LIBS=$OPENCV_4_LIBS @@ -10343,13 +11576,13 @@ fi else - OPENCV_2_CFLAGS=$pkg_cv_OPENCV_2_CFLAGS - OPENCV_2_LIBS=$pkg_cv_OPENCV_2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + OPENCV_2_CFLAGS=$pkg_cv_OPENCV_2_CFLAGS + OPENCV_2_LIBS=$pkg_cv_OPENCV_2_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_OPENCV_2 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_2 1" >>confdefs.h OPENCV_MAJOR=2 OPENCV_LIBS=$OPENCV_2_LIBS @@ -10359,22 +11592,22 @@ fi elif test $pkg_failed = untried; then - { $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; } pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv > 2.3" >&5 -$as_echo_n "checking for opencv > 2.3... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencv > 2.3" >&5 +printf %s "checking for opencv > 2.3... " >&6; } if test -n "$OPENCV_2_CFLAGS"; then pkg_cv_OPENCV_2_CFLAGS="$OPENCV_2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv > 2.3") 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 pkg_cv_OPENCV_2_CFLAGS=`$PKG_CONFIG --cflags "opencv > 2.3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10388,10 +11621,10 @@ if test -n "$OPENCV_2_LIBS"; then pkg_cv_OPENCV_2_LIBS="$OPENCV_2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv > 2.3\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv > 2.3") 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 pkg_cv_OPENCV_2_LIBS=`$PKG_CONFIG --libs "opencv > 2.3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10405,8 +11638,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10414,27 +11647,27 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv > 2.3" 2>&1` + OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv > 2.3" 2>&1` else - OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv > 2.3" 2>&1` + OPENCV_2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv > 2.3" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$OPENCV_2_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$OPENCV_2_PKG_ERRORS" >&5 pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 -$as_echo_n "checking for opencv4... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 +printf %s "checking for opencv4... " >&6; } if test -n "$OPENCV_4_CFLAGS"; then pkg_cv_OPENCV_4_CFLAGS="$OPENCV_4_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_CFLAGS=`$PKG_CONFIG --cflags "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10448,10 +11681,10 @@ if test -n "$OPENCV_4_LIBS"; then pkg_cv_OPENCV_4_LIBS="$OPENCV_4_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_LIBS=`$PKG_CONFIG --libs "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10465,8 +11698,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10474,28 +11707,28 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` else - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$OPENCV_4_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$OPENCV_4_PKG_ERRORS" >&5 - OPENCV_MAJOR= + OPENCV_MAJOR= elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - OPENCV_MAJOR= + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + OPENCV_MAJOR= else - OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS - OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS + OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_OPENCV_4 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_4 1" >>confdefs.h OPENCV_MAJOR=4 OPENCV_LIBS=$OPENCV_4_LIBS @@ -10505,22 +11738,22 @@ fi elif test $pkg_failed = untried; then - { $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; } pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 -$as_echo_n "checking for opencv4... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencv4" >&5 +printf %s "checking for opencv4... " >&6; } if test -n "$OPENCV_4_CFLAGS"; then pkg_cv_OPENCV_4_CFLAGS="$OPENCV_4_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_CFLAGS=`$PKG_CONFIG --cflags "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10534,10 +11767,10 @@ if test -n "$OPENCV_4_LIBS"; then pkg_cv_OPENCV_4_LIBS="$OPENCV_4_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4\""; } >&5 ($PKG_CONFIG --exists --print-errors "opencv4") 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 pkg_cv_OPENCV_4_LIBS=`$PKG_CONFIG --libs "opencv4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10551,8 +11784,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10560,28 +11793,28 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencv4" 2>&1` else - OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` + OPENCV_4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencv4" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$OPENCV_4_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$OPENCV_4_PKG_ERRORS" >&5 - OPENCV_MAJOR= + OPENCV_MAJOR= elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - OPENCV_MAJOR= + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + OPENCV_MAJOR= else - OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS - OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + OPENCV_4_CFLAGS=$pkg_cv_OPENCV_4_CFLAGS + OPENCV_4_LIBS=$pkg_cv_OPENCV_4_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_OPENCV_4 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_4 1" >>confdefs.h OPENCV_MAJOR=4 OPENCV_LIBS=$OPENCV_4_LIBS @@ -10591,13 +11824,13 @@ fi else - OPENCV_2_CFLAGS=$pkg_cv_OPENCV_2_CFLAGS - OPENCV_2_LIBS=$pkg_cv_OPENCV_2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + OPENCV_2_CFLAGS=$pkg_cv_OPENCV_2_CFLAGS + OPENCV_2_LIBS=$pkg_cv_OPENCV_2_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_OPENCV_2 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_2 1" >>confdefs.h OPENCV_MAJOR=2 OPENCV_LIBS=$OPENCV_2_LIBS @@ -10607,13 +11840,13 @@ fi else - OPENCV_3_CFLAGS=$pkg_cv_OPENCV_3_CFLAGS - OPENCV_3_LIBS=$pkg_cv_OPENCV_3_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + OPENCV_3_CFLAGS=$pkg_cv_OPENCV_3_CFLAGS + OPENCV_3_LIBS=$pkg_cv_OPENCV_3_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_OPENCV_3 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_3 1" >>confdefs.h OPENCV_MAJOR=3 OPENCV_LIBS=$OPENCV_3_LIBS @@ -10642,27 +11875,29 @@ rtsp=no # Check whether --enable-rtsp was given. -if test "${enable_rtsp+set}" = set; then : +if test ${enable_rtsp+y} +then : enableval=$enable_rtsp; rtsp_req=$enableval -else - rtsp_req=$build_default - +else case e in #( + e) rtsp_req=$build_default + ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.24.1 libcurl" >&5 -$as_echo_n "checking for glib-2.0 >= 2.24.1 libcurl... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.24.1 libcurl" >&5 +printf %s "checking for glib-2.0 >= 2.24.1 libcurl... " >&6; } if test -n "$RTSP_CFLAGS"; then pkg_cv_RTSP_CFLAGS="$RTSP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.1 libcurl\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.1 libcurl\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.1 libcurl") 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 pkg_cv_RTSP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.1 libcurl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10676,10 +11911,10 @@ if test -n "$RTSP_LIBS"; then pkg_cv_RTSP_LIBS="$RTSP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.1 libcurl\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.1 libcurl\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.1 libcurl") 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 pkg_cv_RTSP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.1 libcurl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10693,8 +11928,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -10702,30 +11937,30 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - RTSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.1 libcurl" 2>&1` + RTSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.1 libcurl" 2>&1` else - RTSP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.1 libcurl" 2>&1` + RTSP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.1 libcurl" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$RTSP_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$RTSP_PKG_ERRORS" >&5 - FOUND_RTSP_DEPS=no + FOUND_RTSP_DEPS=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_RTSP_DEPS=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_RTSP_DEPS=no else - RTSP_CFLAGS=$pkg_cv_RTSP_CFLAGS - RTSP_LIBS=$pkg_cv_RTSP_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_RTSP_DEPS=yes + RTSP_CFLAGS=$pkg_cv_RTSP_CFLAGS + RTSP_LIBS=$pkg_cv_RTSP_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_RTSP_DEPS=yes fi if test $rtsp_req != no -a $FOUND_RTSP_DEPS = yes then -$as_echo "#define HAVE_RTSP 1" >>confdefs.h +printf "%s\n" "#define HAVE_RTSP 1" >>confdefs.h SAVED_CFLAGS=$CFLAGS CFLAGS="$CFLAGS ${RTSP_CFLAGS}" @@ -10734,7 +11969,7 @@ $as_echo "#define HAVE_RTSP 1" >>confdefs.h RTSP_INC= RTSP_OBJ="src/utils/h264_stream.o src/video_capture/rtsp.o src/rtp/rtpdec_h264.o" - TARGET=$(MODULE_NAME ""vidcap_rtsp"") + TARGET="lib/ultragrid/ultragrid_""vidcap_rtsp"".so" LIB_OBJS=$LIB_OBJS" ""$RTSP_OBJ" LIB_MODULES=$LIB_MODULES" ""$RTSP_LIBS" if test x"vidcap_rtsp" != x; then @@ -10776,17 +12011,20 @@ livemedia=no livemedia_prefix=/usr # Check whether --enable-rtsp_server was given. -if test "${enable_rtsp_server+set}" = set; then : +if test ${enable_rtsp_server+y} +then : enableval=$enable_rtsp_server; rtsp_server_req=$enableval -else - rtsp_server_req=$build_default - +else case e in #( + e) rtsp_server_req=$build_default + ;; +esac fi # Check whether --with-live555 was given. -if test "${with_live555+set}" = set; then : +if test ${with_live555+y} +then : withval=$with_live555; livemedia_prefix=$withval fi @@ -10808,7 +12046,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #include int -main () +main (void) { #if LIVEMEDIA_LIBRARY_VERSION_INT > 1438905600 @@ -10820,12 +12058,14 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : FOUND_LIVE_H=yes -else - echo "liveMedia (live555 library) headers not found or wrong version (< 2015 needed)"; FOUND_LIVE_H=no +else case e in #( + e) echo "liveMedia (live555 library) headers not found or wrong version (< 2015 needed)"; FOUND_LIVE_H=no ;; +esac 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=$SAVED_CPPFLAGS ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -10837,14 +12077,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $rtsp_server_req != no -a $FOUND_LIVE_H = yes then -$as_echo "#define HAVE_RTSP_SERVER 1" >>confdefs.h +printf "%s\n" "#define HAVE_RTSP_SERVER 1" >>confdefs.h CFLAGS="$CFLAGS $RTSP_SERVER_FLAGS" CXXFLAGS="$CXXFLAGS $RTSP_SERVER_FLAGS" RTSP_SERVER_LIBS="-lliveMedia -lBasicUsageEnvironment -lUsageEnvironment -lgroupsock" RTSP_SERVER_OBJ="src/rtsp/c_basicRTSPOnlyServer.o src/rtsp/BasicRTSPOnlyServer.o src/rtsp/BasicRTSPOnlySubsession.o src/video_rxtx/h264_rtp.o" - TARGET=$(MODULE_NAME ""video_rxtx_h264"") + TARGET="lib/ultragrid/ultragrid_""video_rxtx_h264"".so" LIB_OBJS=$LIB_OBJS" ""$RTSP_SERVER_OBJ" LIB_MODULES=$LIB_MODULES" ""$RTSP_SERVER_LIBS" if test x"video_rxtx_h264" != x; then @@ -10879,18 +12119,20 @@ fi # ---------------------------------------------------------------------- sdp_http=no # Check whether --enable-sdp-http was given. -if test "${enable_sdp_http+set}" = set; then : +if test ${enable_sdp_http+y} +then : enableval=$enable_sdp_http; sdp_http_req=$enableval -else - sdp_http_req=$build_default - +else case e in #( + e) sdp_http_req=$build_default + ;; +esac fi if test $sdp_http_req != no then -$as_echo "#define SDP_HTTP 1" >>confdefs.h +printf "%s\n" "#define SDP_HTTP 1" >>confdefs.h sdp_http=yes fi @@ -10907,11 +12149,13 @@ RESIZE_OBJ= resize=no # Check whether --enable-resize was given. -if test "${enable_resize+set}" = set; then : +if test ${enable_resize+y} +then : enableval=$enable_resize; resize_req=$enableval -else - resize_req=$build_default - +else case e in #( + e) resize_req=$build_default + ;; +esac fi @@ -10921,7 +12165,7 @@ then CXXFLAGS="$CXXFLAGS ${OPENCV_CFLAGS}" RESIZE_OBJ="src/capture_filter/resize.o src/capture_filter/resize_utils.o" - TARGET=$(MODULE_NAME ""vcapfilter_resize"") + TARGET="lib/ultragrid/ultragrid_""vcapfilter_resize"".so" LIB_OBJS=$LIB_OBJS" ""$RESIZE_OBJ" LIB_MODULES=$LIB_MODULES" ""$OPENCV_LIBS" if test x"vcapfilter_resize" != x; then @@ -10960,27 +12204,29 @@ blank=no # Check whether --enable-blank was given. -if test "${enable_blank+set}" = set; then : +if test ${enable_blank+y} +then : enableval=$enable_blank; blank_req=$enableval -else - blank_req=$build_default - +else case e in #( + e) blank_req=$build_default + ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libswscale" >&5 -$as_echo_n "checking for libswscale... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libswscale" >&5 +printf %s "checking for libswscale... " >&6; } if test -n "$BLANK_CFLAGS"; then pkg_cv_BLANK_CFLAGS="$BLANK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 ($PKG_CONFIG --exists --print-errors "libswscale") 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 pkg_cv_BLANK_CFLAGS=`$PKG_CONFIG --cflags "libswscale" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -10994,10 +12240,10 @@ if test -n "$BLANK_LIBS"; then pkg_cv_BLANK_LIBS="$BLANK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 ($PKG_CONFIG --exists --print-errors "libswscale") 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 pkg_cv_BLANK_LIBS=`$PKG_CONFIG --libs "libswscale" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11011,8 +12257,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11020,78 +12266,84 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - BLANK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libswscale" 2>&1` + BLANK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libswscale" 2>&1` else - BLANK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libswscale" 2>&1` + BLANK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libswscale" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$BLANK_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$BLANK_PKG_ERRORS" >&5 - FOUND_BLANK_DEP=no + FOUND_BLANK_DEP=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_BLANK_DEP=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_BLANK_DEP=no else - BLANK_CFLAGS=$pkg_cv_BLANK_CFLAGS - BLANK_LIBS=$pkg_cv_BLANK_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_BLANK_DEP=yes + BLANK_CFLAGS=$pkg_cv_BLANK_CFLAGS + BLANK_LIBS=$pkg_cv_BLANK_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_BLANK_DEP=yes fi if test $FOUND_BLANK_DEP = no; then - for ac_header in libswscale/swscale.h + for ac_header in libswscale/swscale.h do : - ac_fn_c_check_header_mongrel "$LINENO" "libswscale/swscale.h" "ac_cv_header_libswscale_swscale_h" "$ac_includes_default" -if test "x$ac_cv_header_libswscale_swscale_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSWSCALE_SWSCALE_H 1 -_ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 -$as_echo_n "checking for sws_scale in -lswscale... " >&6; } -if ${ac_cv_lib_swscale_sws_scale+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + ac_fn_c_check_header_compile "$LINENO" "libswscale/swscale.h" "ac_cv_header_libswscale_swscale_h" "$ac_includes_default" +if test "x$ac_cv_header_libswscale_swscale_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBSWSCALE_SWSCALE_H 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 +printf %s "checking for sws_scale in -lswscale... " >&6; } +if test ${ac_cv_lib_swscale_sws_scale+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lswscale $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sws_scale (); +char sws_scale (void); int -main () +main (void) { return sws_scale (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_swscale_sws_scale=yes -else - ac_cv_lib_swscale_sws_scale=no +else case e in #( + e) ac_cv_lib_swscale_sws_scale=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 -$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; } -if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 +printf "%s\n" "$ac_cv_lib_swscale_sws_scale" >&6; } +if test "x$ac_cv_lib_swscale_sws_scale" = xyes +then : FOUND_BLANK_DEP=yes fi fi done - if test $FOUND_BLANK_DEP = yes; then BLANK_LIBS='-lswscale' fi @@ -11104,7 +12356,7 @@ then BLANK_OBJ="src/capture_filter/blank.o" BLANK_OBJ="$BLANK_OBJ src/libavcodec_common.o" # get_ug_to_av_pixfmt() - TARGET=$(MODULE_NAME ""vcapfilter_blank"") + TARGET="lib/ultragrid/ultragrid_""vcapfilter_blank"".so" LIB_OBJS=$LIB_OBJS" ""$BLANK_OBJ" LIB_MODULES=$LIB_MODULES" ""$BLANK_LIBS" if test x"vcapfilter_blank" != x; then @@ -11137,11 +12389,13 @@ fi # Testcard stuff # ------------------------------------------------------------------------------------------------- # Check whether --enable-testcard-extras was given. -if test "${enable_testcard_extras+set}" = set; then : +if test ${enable_testcard_extras+y} +then : enableval=$enable_testcard_extras; testcard_extras_req=$enableval -else - testcard_extras_req=no - +else case e in #( + e) testcard_extras_req=no + ;; +esac fi @@ -11157,17 +12411,17 @@ then if test $sdl_version -eq 1; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_mixer" >&5 -$as_echo_n "checking for SDL_mixer... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL_mixer" >&5 +printf %s "checking for SDL_mixer... " >&6; } if test -n "$SDL_MIXER_CFLAGS"; then pkg_cv_SDL_MIXER_CFLAGS="$SDL_MIXER_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 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 pkg_cv_SDL_MIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11181,10 +12435,10 @@ if test -n "$SDL_MIXER_LIBS"; then pkg_cv_SDL_MIXER_LIBS="$SDL_MIXER_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 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 pkg_cv_SDL_MIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11198,8 +12452,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11207,39 +12461,39 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_mixer" 2>&1` + SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_mixer" 2>&1` else - SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_mixer" 2>&1` + SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_mixer" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$SDL_MIXER_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$SDL_MIXER_PKG_ERRORS" >&5 - FOUND_SDL_MIXER=no + FOUND_SDL_MIXER=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_SDL_MIXER=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_SDL_MIXER=no else - SDL_MIXER_CFLAGS=$pkg_cv_SDL_MIXER_CFLAGS - SDL_MIXER_LIBS=$pkg_cv_SDL_MIXER_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_SDL_MIXER=yes + SDL_MIXER_CFLAGS=$pkg_cv_SDL_MIXER_CFLAGS + SDL_MIXER_LIBS=$pkg_cv_SDL_MIXER_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_SDL_MIXER=yes fi else pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2_mixer" >&5 -$as_echo_n "checking for SDL2_mixer... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2_mixer" >&5 +printf %s "checking for SDL2_mixer... " >&6; } if test -n "$SDL_MIXER_CFLAGS"; then pkg_cv_SDL_MIXER_CFLAGS="$SDL_MIXER_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL2_mixer") 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 pkg_cv_SDL_MIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL2_mixer" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11253,10 +12507,10 @@ if test -n "$SDL_MIXER_LIBS"; then pkg_cv_SDL_MIXER_LIBS="$SDL_MIXER_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL2_mixer") 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 pkg_cv_SDL_MIXER_LIBS=`$PKG_CONFIG --libs "SDL2_mixer" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11270,8 +12524,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11279,24 +12533,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL2_mixer" 2>&1` + SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL2_mixer" 2>&1` else - SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL2_mixer" 2>&1` + SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL2_mixer" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$SDL_MIXER_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$SDL_MIXER_PKG_ERRORS" >&5 - FOUND_SDL_MIXER=no + FOUND_SDL_MIXER=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_SDL_MIXER=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_SDL_MIXER=no else - SDL_MIXER_CFLAGS=$pkg_cv_SDL_MIXER_CFLAGS - SDL_MIXER_LIBS=$pkg_cv_SDL_MIXER_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_SDL_MIXER=yes + SDL_MIXER_CFLAGS=$pkg_cv_SDL_MIXER_CFLAGS + SDL_MIXER_LIBS=$pkg_cv_SDL_MIXER_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_SDL_MIXER=yes fi fi @@ -11313,17 +12567,17 @@ fi if test $sdl_version -eq 1; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_ttf" >&5 -$as_echo_n "checking for SDL_ttf... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL_ttf" >&5 +printf %s "checking for SDL_ttf... " >&6; } if test -n "$SDL_TTF_CFLAGS"; then pkg_cv_SDL_TTF_CFLAGS="$SDL_TTF_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_ttf\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_ttf\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL_ttf") 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 pkg_cv_SDL_TTF_CFLAGS=`$PKG_CONFIG --cflags "SDL_ttf" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11337,10 +12591,10 @@ if test -n "$SDL_TTF_LIBS"; then pkg_cv_SDL_TTF_LIBS="$SDL_TTF_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_ttf\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_ttf\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL_ttf") 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 pkg_cv_SDL_TTF_LIBS=`$PKG_CONFIG --libs "SDL_ttf" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11354,8 +12608,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11363,39 +12617,39 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_ttf" 2>&1` + SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_ttf" 2>&1` else - SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_ttf" 2>&1` + SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_ttf" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$SDL_TTF_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$SDL_TTF_PKG_ERRORS" >&5 - FOUND_SDL_TTF=no + FOUND_SDL_TTF=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_SDL_TTF=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_SDL_TTF=no else - SDL_TTF_CFLAGS=$pkg_cv_SDL_TTF_CFLAGS - SDL_TTF_LIBS=$pkg_cv_SDL_TTF_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_SDL_TTF=yes + SDL_TTF_CFLAGS=$pkg_cv_SDL_TTF_CFLAGS + SDL_TTF_LIBS=$pkg_cv_SDL_TTF_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_SDL_TTF=yes fi else pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2_ttf" >&5 -$as_echo_n "checking for SDL2_ttf... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2_ttf" >&5 +printf %s "checking for SDL2_ttf... " >&6; } if test -n "$SDL_TTF_CFLAGS"; then pkg_cv_SDL_TTF_CFLAGS="$SDL_TTF_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_ttf\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_ttf\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL2_ttf") 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 pkg_cv_SDL_TTF_CFLAGS=`$PKG_CONFIG --cflags "SDL2_ttf" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11409,10 +12663,10 @@ if test -n "$SDL_TTF_LIBS"; then pkg_cv_SDL_TTF_LIBS="$SDL_TTF_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_ttf\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_ttf\""; } >&5 ($PKG_CONFIG --exists --print-errors "SDL2_ttf") 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 pkg_cv_SDL_TTF_LIBS=`$PKG_CONFIG --libs "SDL2_ttf" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11426,8 +12680,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11435,38 +12689,38 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL2_ttf" 2>&1` + SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL2_ttf" 2>&1` else - SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL2_ttf" 2>&1` + SDL_TTF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL2_ttf" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$SDL_TTF_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$SDL_TTF_PKG_ERRORS" >&5 - FOUND_SDL_TTF=no + FOUND_SDL_TTF=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_SDL_TTF=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_SDL_TTF=no else - SDL_TTF_CFLAGS=$pkg_cv_SDL_TTF_CFLAGS - SDL_TTF_LIBS=$pkg_cv_SDL_TTF_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_SDL_TTF=yes + SDL_TTF_CFLAGS=$pkg_cv_SDL_TTF_CFLAGS + SDL_TTF_LIBS=$pkg_cv_SDL_TTF_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_SDL_TTF=yes fi fi if test "$FOUND_SDL_TTF" = yes then TESTCARD2_LIB="$TESTCARD2_LIB $SDL_TTF_LIBS" -$as_echo "#define HAVE_LIBSDL_TTF 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSDL_TTF 1" >>confdefs.h fi -$as_echo "#define HAVE_TESTCARD2 1" >>confdefs.h +printf "%s\n" "#define HAVE_TESTCARD2 1" >>confdefs.h - TARGET=$(MODULE_NAME ""vidcap_testcard2"") + TARGET="lib/ultragrid/ultragrid_""vidcap_testcard2"".so" LIB_OBJS=$LIB_OBJS" ""$TESTCARD2_OBJ" LIB_MODULES=$LIB_MODULES" ""$TESTCARD2_LIB" if test x"vidcap_testcard2" != x; then @@ -11496,7 +12750,7 @@ fi TESTCARD_OBJ="$TESTCARD_COMMON src/video_capture/testcard.o" - TARGET=$(MODULE_NAME ""vidcap_testcard"") + TARGET="lib/ultragrid/ultragrid_""vidcap_testcard"".so" LIB_OBJS=$LIB_OBJS" ""$TESTCARD_OBJ" LIB_MODULES=$LIB_MODULES" ""$TESTCARD_LIB" if test x"vidcap_testcard" != x; then @@ -11536,36 +12790,40 @@ lavc_hwacc_vaapi=no # Check whether --enable-lavc-hw-accel-vdpau was given. -if test "${enable_lavc_hw_accel_vdpau+set}" = set; then : +if test ${enable_lavc_hw_accel_vdpau+y} +then : enableval=$enable_lavc_hw_accel_vdpau; lavc_hwacc_vdpau_req=$enableval -else - lavc_hwacc_vdpau_req=$build_default - +else case e in #( + e) lavc_hwacc_vdpau_req=$build_default + ;; +esac fi # Check whether --enable-lavc-hw-accel-vaapi was given. -if test "${enable_lavc_hw_accel_vaapi+set}" = set; then : +if test ${enable_lavc_hw_accel_vaapi+y} +then : enableval=$enable_lavc_hw_accel_vaapi; lavc_hwacc_vaapi_req=$enableval -else - lavc_hwacc_vaapi_req=$build_default - +else case e in #( + e) lavc_hwacc_vaapi_req=$build_default + ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavcodec libavutil >= 55.22.1" >&5 -$as_echo_n "checking for libavcodec libavutil >= 55.22.1... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavcodec libavutil >= 55.22.1" >&5 +printf %s "checking for libavcodec libavutil >= 55.22.1... " >&6; } if test -n "$LAVC_HWACC_COMMON_CFLAGS"; then pkg_cv_LAVC_HWACC_COMMON_CFLAGS="$LAVC_HWACC_COMMON_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec libavutil >= 55.22.1") 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 pkg_cv_LAVC_HWACC_COMMON_CFLAGS=`$PKG_CONFIG --cflags "libavcodec libavutil >= 55.22.1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11579,10 +12837,10 @@ if test -n "$LAVC_HWACC_COMMON_LIBS"; then pkg_cv_LAVC_HWACC_COMMON_LIBS="$LAVC_HWACC_COMMON_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec libavutil >= 55.22.1") 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 pkg_cv_LAVC_HWACC_COMMON_LIBS=`$PKG_CONFIG --libs "libavcodec libavutil >= 55.22.1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11596,8 +12854,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11605,38 +12863,38 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LAVC_HWACC_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1" 2>&1` + LAVC_HWACC_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1" 2>&1` else - LAVC_HWACC_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1" 2>&1` + LAVC_HWACC_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LAVC_HWACC_COMMON_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LAVC_HWACC_COMMON_PKG_ERRORS" >&5 - FOUND_HWACC_COMMON_DEP=no + FOUND_HWACC_COMMON_DEP=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_HWACC_COMMON_DEP=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_HWACC_COMMON_DEP=no else - LAVC_HWACC_COMMON_CFLAGS=$pkg_cv_LAVC_HWACC_COMMON_CFLAGS - LAVC_HWACC_COMMON_LIBS=$pkg_cv_LAVC_HWACC_COMMON_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_HWACC_COMMON_DEP=yes + LAVC_HWACC_COMMON_CFLAGS=$pkg_cv_LAVC_HWACC_COMMON_CFLAGS + LAVC_HWACC_COMMON_LIBS=$pkg_cv_LAVC_HWACC_COMMON_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_HWACC_COMMON_DEP=yes fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavcodec libavutil >= 55.22.1 vdpau" >&5 -$as_echo_n "checking for libavcodec libavutil >= 55.22.1 vdpau... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavcodec libavutil >= 55.22.1 vdpau" >&5 +printf %s "checking for libavcodec libavutil >= 55.22.1 vdpau... " >&6; } if test -n "$LAVC_HWACC_VDPAU_CFLAGS"; then pkg_cv_LAVC_HWACC_VDPAU_CFLAGS="$LAVC_HWACC_VDPAU_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 vdpau\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 vdpau\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec libavutil >= 55.22.1 vdpau") 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 pkg_cv_LAVC_HWACC_VDPAU_CFLAGS=`$PKG_CONFIG --cflags "libavcodec libavutil >= 55.22.1 vdpau" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11650,10 +12908,10 @@ if test -n "$LAVC_HWACC_VDPAU_LIBS"; then pkg_cv_LAVC_HWACC_VDPAU_LIBS="$LAVC_HWACC_VDPAU_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 vdpau\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 vdpau\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec libavutil >= 55.22.1 vdpau") 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 pkg_cv_LAVC_HWACC_VDPAU_LIBS=`$PKG_CONFIG --libs "libavcodec libavutil >= 55.22.1 vdpau" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11667,8 +12925,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11676,38 +12934,38 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LAVC_HWACC_VDPAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 vdpau" 2>&1` + LAVC_HWACC_VDPAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 vdpau" 2>&1` else - LAVC_HWACC_VDPAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 vdpau" 2>&1` + LAVC_HWACC_VDPAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 vdpau" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LAVC_HWACC_VDPAU_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LAVC_HWACC_VDPAU_PKG_ERRORS" >&5 - FOUND_HWACC_VDPAU_DEP=no + FOUND_HWACC_VDPAU_DEP=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_HWACC_VDPAU_DEP=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_HWACC_VDPAU_DEP=no else - LAVC_HWACC_VDPAU_CFLAGS=$pkg_cv_LAVC_HWACC_VDPAU_CFLAGS - LAVC_HWACC_VDPAU_LIBS=$pkg_cv_LAVC_HWACC_VDPAU_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_HWACC_VDPAU_DEP=yes + LAVC_HWACC_VDPAU_CFLAGS=$pkg_cv_LAVC_HWACC_VDPAU_CFLAGS + LAVC_HWACC_VDPAU_LIBS=$pkg_cv_LAVC_HWACC_VDPAU_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_HWACC_VDPAU_DEP=yes fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavcodec libavutil >= 55.22.1 libva" >&5 -$as_echo_n "checking for libavcodec libavutil >= 55.22.1 libva... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavcodec libavutil >= 55.22.1 libva" >&5 +printf %s "checking for libavcodec libavutil >= 55.22.1 libva... " >&6; } if test -n "$LAVC_HWACC_VAAPI_CFLAGS"; then pkg_cv_LAVC_HWACC_VAAPI_CFLAGS="$LAVC_HWACC_VAAPI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 libva\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 libva\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec libavutil >= 55.22.1 libva") 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 pkg_cv_LAVC_HWACC_VAAPI_CFLAGS=`$PKG_CONFIG --cflags "libavcodec libavutil >= 55.22.1 libva" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11721,10 +12979,10 @@ if test -n "$LAVC_HWACC_VAAPI_LIBS"; then pkg_cv_LAVC_HWACC_VAAPI_LIBS="$LAVC_HWACC_VAAPI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 libva\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavutil >= 55.22.1 libva\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec libavutil >= 55.22.1 libva") 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 pkg_cv_LAVC_HWACC_VAAPI_LIBS=`$PKG_CONFIG --libs "libavcodec libavutil >= 55.22.1 libva" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11738,8 +12996,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11747,24 +13005,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LAVC_HWACC_VAAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 libva" 2>&1` + LAVC_HWACC_VAAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 libva" 2>&1` else - LAVC_HWACC_VAAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 libva" 2>&1` + LAVC_HWACC_VAAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec libavutil >= 55.22.1 libva" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LAVC_HWACC_VAAPI_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LAVC_HWACC_VAAPI_PKG_ERRORS" >&5 - FOUND_HWACC_VAAPI_DEP=no + FOUND_HWACC_VAAPI_DEP=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_HWACC_VAAPI_DEP=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_HWACC_VAAPI_DEP=no else - LAVC_HWACC_VAAPI_CFLAGS=$pkg_cv_LAVC_HWACC_VAAPI_CFLAGS - LAVC_HWACC_VAAPI_LIBS=$pkg_cv_LAVC_HWACC_VAAPI_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_HWACC_VAAPI_DEP=yes + LAVC_HWACC_VAAPI_CFLAGS=$pkg_cv_LAVC_HWACC_VAAPI_CFLAGS + LAVC_HWACC_VAAPI_LIBS=$pkg_cv_LAVC_HWACC_VAAPI_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_HWACC_VAAPI_DEP=yes fi LAVC_HWACC_FLAGS= @@ -11811,7 +13069,7 @@ COMMON_FLAGS="$COMMON_FLAGS $LAVC_HWACC_FLAGS" if test -n "$HW_ACC_OBJ" then - TARGET=$(MODULE_NAME ""hw_accel"") + TARGET="lib/ultragrid/ultragrid_""hw_accel"".so" LIB_OBJS=$LIB_OBJS" ""$HW_ACC_OBJ" LIB_MODULES=$LIB_MODULES" ""$LAVC_HWACC_LIBS" if test x"hw_accel" != x; then @@ -11848,67 +13106,70 @@ fi # ------------------------------------------------------------------------------------------------- libswscale=no # Check whether --enable-libswscale was given. -if test "${enable_libswscale+set}" = set; then : +if test ${enable_libswscale+y} +then : enableval=$enable_libswscale; libswscale_req=$enableval -else - libswscale_req=$build_default - +else case e in #( + e) libswscale_req=$build_default + ;; +esac fi if test $system = Windows; then -for ac_header in libswscale/swscale.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libswscale/swscale.h" "ac_cv_header_libswscale_swscale_h" "$ac_includes_default" -if test "x$ac_cv_header_libswscale_swscale_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSWSCALE_SWSCALE_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "libswscale/swscale.h" "ac_cv_header_libswscale_swscale_h" "$ac_includes_default" +if test "x$ac_cv_header_libswscale_swscale_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBSWSCALE_SWSCALE_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5 -$as_echo_n "checking for sws_getContext in -lswscale... " >&6; } -if ${ac_cv_lib_swscale_sws_getContext+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5 +printf %s "checking for sws_getContext in -lswscale... " >&6; } +if test ${ac_cv_lib_swscale_sws_getContext+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lswscale $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sws_getContext (); +char sws_getContext (void); int -main () +main (void) { return sws_getContext (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_swscale_sws_getContext=yes -else - ac_cv_lib_swscale_sws_getContext=no +else case e in #( + e) ac_cv_lib_swscale_sws_getContext=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5 -$as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; } -if test "x$ac_cv_lib_swscale_sws_getContext" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSWSCALE 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5 +printf "%s\n" "$ac_cv_lib_swscale_sws_getContext" >&6; } +if test "x$ac_cv_lib_swscale_sws_getContext" = xyes +then : + printf "%s\n" "#define HAVE_LIBSWSCALE 1" >>confdefs.h LIBS="-lswscale $LIBS" @@ -11925,17 +13186,17 @@ fi else # Linux, OS X pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libswscale" >&5 -$as_echo_n "checking for libswscale... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libswscale" >&5 +printf %s "checking for libswscale... " >&6; } if test -n "$LIBSWSCALE_CFLAGS"; then pkg_cv_LIBSWSCALE_CFLAGS="$LIBSWSCALE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 ($PKG_CONFIG --exists --print-errors "libswscale") 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 pkg_cv_LIBSWSCALE_CFLAGS=`$PKG_CONFIG --cflags "libswscale" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11949,10 +13210,10 @@ if test -n "$LIBSWSCALE_LIBS"; then pkg_cv_LIBSWSCALE_LIBS="$LIBSWSCALE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5 ($PKG_CONFIG --exists --print-errors "libswscale") 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 pkg_cv_LIBSWSCALE_LIBS=`$PKG_CONFIG --libs "libswscale" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -11966,8 +13227,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -11975,31 +13236,31 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LIBSWSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libswscale" 2>&1` + LIBSWSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libswscale" 2>&1` else - LIBSWSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libswscale" 2>&1` + LIBSWSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libswscale" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LIBSWSCALE_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LIBSWSCALE_PKG_ERRORS" >&5 - found_libswscale=no + found_libswscale=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_libswscale=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_libswscale=no else - LIBSWSCALE_CFLAGS=$pkg_cv_LIBSWSCALE_CFLAGS - LIBSWSCALE_LIBS=$pkg_cv_LIBSWSCALE_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_libswscale=yes + LIBSWSCALE_CFLAGS=$pkg_cv_LIBSWSCALE_CFLAGS + LIBSWSCALE_LIBS=$pkg_cv_LIBSWSCALE_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_libswscale=yes fi fi if test $libswscale_req != no -a $found_libswscale = yes then -$as_echo "#define HAVE_SWSCALE 1" >>confdefs.h +printf "%s\n" "#define HAVE_SWSCALE 1" >>confdefs.h COMMON_FLAGS="$COMMON_FLAGS $LIBSWSCALE_CFLAGS" @@ -12017,27 +13278,29 @@ fi libavcodec=no libavcodec_audio=no # Check whether --enable-libavcodec was given. -if test "${enable_libavcodec+set}" = set; then : +if test ${enable_libavcodec+y} +then : enableval=$enable_libavcodec; libavcodec_req=$enableval -else - libavcodec_req=$build_default - +else case e in #( + e) libavcodec_req=$build_default + ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavcodec >= 53.35.0 " >&5 -$as_echo_n "checking for libavcodec >= 53.35.0 ... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavcodec >= 53.35.0 " >&5 +printf %s "checking for libavcodec >= 53.35.0 ... " >&6; } if test -n "$LIBAVCODEC_CFLAGS"; then pkg_cv_LIBAVCODEC_CFLAGS="$LIBAVCODEC_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 53.35.0 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 53.35.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec >= 53.35.0 ") 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 pkg_cv_LIBAVCODEC_CFLAGS=`$PKG_CONFIG --cflags "libavcodec >= 53.35.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12051,10 +13314,10 @@ if test -n "$LIBAVCODEC_LIBS"; then pkg_cv_LIBAVCODEC_LIBS="$LIBAVCODEC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 53.35.0 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 53.35.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec >= 53.35.0 ") 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 pkg_cv_LIBAVCODEC_LIBS=`$PKG_CONFIG --libs "libavcodec >= 53.35.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12068,8 +13331,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -12077,38 +13340,38 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LIBAVCODEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec >= 53.35.0 " 2>&1` + LIBAVCODEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec >= 53.35.0 " 2>&1` else - LIBAVCODEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec >= 53.35.0 " 2>&1` + LIBAVCODEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec >= 53.35.0 " 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LIBAVCODEC_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LIBAVCODEC_PKG_ERRORS" >&5 - found_libavcodec=no + found_libavcodec=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_libavcodec=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_libavcodec=no else - LIBAVCODEC_CFLAGS=$pkg_cv_LIBAVCODEC_CFLAGS - LIBAVCODEC_LIBS=$pkg_cv_LIBAVCODEC_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_libavcodec=yes + LIBAVCODEC_CFLAGS=$pkg_cv_LIBAVCODEC_CFLAGS + LIBAVCODEC_LIBS=$pkg_cv_LIBAVCODEC_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_libavcodec=yes fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavutil >= 51.22.1 " >&5 -$as_echo_n "checking for libavutil >= 51.22.1 ... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavutil >= 51.22.1 " >&5 +printf %s "checking for libavutil >= 51.22.1 ... " >&6; } if test -n "$LIBAVUTIL_CFLAGS"; then pkg_cv_LIBAVUTIL_CFLAGS="$LIBAVUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavutil >= 51.22.1 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavutil >= 51.22.1 \""; } >&5 ($PKG_CONFIG --exists --print-errors "libavutil >= 51.22.1 ") 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 pkg_cv_LIBAVUTIL_CFLAGS=`$PKG_CONFIG --cflags "libavutil >= 51.22.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12122,10 +13385,10 @@ if test -n "$LIBAVUTIL_LIBS"; then pkg_cv_LIBAVUTIL_LIBS="$LIBAVUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavutil >= 51.22.1 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavutil >= 51.22.1 \""; } >&5 ($PKG_CONFIG --exists --print-errors "libavutil >= 51.22.1 ") 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 pkg_cv_LIBAVUTIL_LIBS=`$PKG_CONFIG --libs "libavutil >= 51.22.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12139,8 +13402,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -12148,125 +13411,143 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LIBAVUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavutil >= 51.22.1 " 2>&1` + LIBAVUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavutil >= 51.22.1 " 2>&1` else - LIBAVUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavutil >= 51.22.1 " 2>&1` + LIBAVUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavutil >= 51.22.1 " 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LIBAVUTIL_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LIBAVUTIL_PKG_ERRORS" >&5 - found_libavutil=no + found_libavutil=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_libavutil=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_libavutil=no else - LIBAVUTIL_CFLAGS=$pkg_cv_LIBAVUTIL_CFLAGS - LIBAVUTIL_LIBS=$pkg_cv_LIBAVUTIL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_libavutil=yes + LIBAVUTIL_CFLAGS=$pkg_cv_LIBAVUTIL_CFLAGS + LIBAVUTIL_LIBS=$pkg_cv_LIBAVUTIL_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_libavutil=yes fi if test $found_libavcodec = no -o $found_libavutil = no; then - for ac_header in libavcodec/avcodec.h libavutil/imgutils.h libavutil/opt.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$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 + ac_fn_c_check_header_compile "$LINENO" "libavcodec/avcodec.h" "ac_cv_header_libavcodec_avcodec_h" "$ac_includes_default" +if test "x$ac_cv_header_libavcodec_avcodec_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBAVCODEC_AVCODEC_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "libavutil/imgutils.h" "ac_cv_header_libavutil_imgutils_h" "$ac_includes_default" +if test "x$ac_cv_header_libavutil_imgutils_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBAVUTIL_IMGUTILS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "libavutil/opt.h" "ac_cv_header_libavutil_opt_h" "$ac_includes_default" +if test "x$ac_cv_header_libavutil_opt_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBAVUTIL_OPT_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_open2 in -lavcodec" >&5 -$as_echo_n "checking for avcodec_open2 in -lavcodec... " >&6; } -if ${ac_cv_lib_avcodec_avcodec_open2+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avcodec_open2 in -lavcodec" >&5 +printf %s "checking for avcodec_open2 in -lavcodec... " >&6; } +if test ${ac_cv_lib_avcodec_avcodec_open2+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lavcodec $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char avcodec_open2 (); +char avcodec_open2 (void); int -main () +main (void) { return avcodec_open2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_avcodec_avcodec_open2=yes -else - ac_cv_lib_avcodec_avcodec_open2=no +else case e in #( + e) ac_cv_lib_avcodec_avcodec_open2=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_open2" >&5 -$as_echo "$ac_cv_lib_avcodec_avcodec_open2" >&6; } -if test "x$ac_cv_lib_avcodec_avcodec_open2" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBAVCODEC 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_open2" >&5 +printf "%s\n" "$ac_cv_lib_avcodec_avcodec_open2" >&6; } +if test "x$ac_cv_lib_avcodec_avcodec_open2" = xyes +then : + printf "%s\n" "#define HAVE_LIBAVCODEC 1" >>confdefs.h LIBS="-lavcodec $LIBS" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_free in -lavutil" >&5 -$as_echo_n "checking for av_free in -lavutil... " >&6; } -if ${ac_cv_lib_avutil_av_free+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for av_free in -lavutil" >&5 +printf %s "checking for av_free in -lavutil... " >&6; } +if test ${ac_cv_lib_avutil_av_free+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lavutil $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char av_free (); +char av_free (void); int -main () +main (void) { return av_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_avutil_av_free=yes -else - ac_cv_lib_avutil_av_free=no +else case e in #( + e) ac_cv_lib_avutil_av_free=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_free" >&5 -$as_echo "$ac_cv_lib_avutil_av_free" >&6; } -if test "x$ac_cv_lib_avutil_av_free" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBAVUTIL 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_free" >&5 +printf "%s\n" "$ac_cv_lib_avutil_av_free" >&6; } +if test "x$ac_cv_lib_avutil_av_free" = xyes +then : + printf "%s\n" "#define HAVE_LIBAVUTIL 1" >>confdefs.h LIBS="-lavutil $LIBS" @@ -12289,10 +13570,10 @@ if test $libavcodec_req != no -a $found_libavcodec = yes -a $found_libavutil = y then LIBAVCODEC_COMMON="src/libavcodec_common.o" -$as_echo "#define HAVE_LAVC 1" >>confdefs.h +printf "%s\n" "#define HAVE_LAVC 1" >>confdefs.h -$as_echo "#define HAVE_LAVC_AUDIO 1" >>confdefs.h +printf "%s\n" "#define HAVE_LAVC_AUDIO 1" >>confdefs.h LIBAVCODEC_AUDIO_CODEC_OBJ=src/audio/codec/libavcodec.o @@ -12302,7 +13583,7 @@ $as_echo "#define HAVE_LAVC_AUDIO 1" >>confdefs.h libavcodec=yes LIBAVCODEC_LIBS="$LIBAVCODEC_LIBS $LIBAVUTIL_LIBS" # added libavutil explicitly - TARGET=$(MODULE_NAME ""vcompress_libavcodec"") + TARGET="lib/ultragrid/ultragrid_""vcompress_libavcodec"".so" LIB_OBJS=$LIB_OBJS" ""$LIBAVCODEC_COMPRESS_OBJ" LIB_MODULES=$LIB_MODULES" ""$LIBAVCODEC_LIBS $LIBSWSCALE_LIBS" if test x"vcompress_libavcodec" != x; then @@ -12325,7 +13606,7 @@ $TARGET: ""$LIBAVCODEC_COMPRESS_OBJ"" fi - TARGET=$(MODULE_NAME ""vdecompress_libavcodec"") + TARGET="lib/ultragrid/ultragrid_""vdecompress_libavcodec"".so" LIB_OBJS=$LIB_OBJS" ""$LIBAVCODEC_DECOMPRESS_OBJ" LIB_MODULES=$LIB_MODULES" ""$LIBAVCODEC_LIBS" if test x"vdecompress_libavcodec" != x; then @@ -12348,7 +13629,7 @@ $TARGET: ""$LIBAVCODEC_DECOMPRESS_OBJ"" fi - TARGET=$(MODULE_NAME ""acompress_libavcodec"") + TARGET="lib/ultragrid/ultragrid_""acompress_libavcodec"".so" LIB_OBJS=$LIB_OBJS" ""$LIBAVCODEC_AUDIO_CODEC_OBJ" LIB_MODULES=$LIB_MODULES" ""$LIBAVCODEC_LIBS" if test x"acompress_libavcodec" != x; then @@ -12381,27 +13662,29 @@ fi # ------------------------------------------------------------------------------------------------- file=no # Check whether --enable-file was given. -if test "${enable_file+set}" = set; then : +if test ${enable_file+y} +then : enableval=$enable_file; file_req=$enableval -else - file_req=$build_default - +else case e in #( + e) file_req=$build_default + ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavformat" >&5 -$as_echo_n "checking for libavformat... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavformat" >&5 +printf %s "checking for libavformat... " >&6; } if test -n "$LIBAVFORMAT_CFLAGS"; then pkg_cv_LIBAVFORMAT_CFLAGS="$LIBAVFORMAT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavformat") 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 pkg_cv_LIBAVFORMAT_CFLAGS=`$PKG_CONFIG --cflags "libavformat" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12415,10 +13698,10 @@ if test -n "$LIBAVFORMAT_LIBS"; then pkg_cv_LIBAVFORMAT_LIBS="$LIBAVFORMAT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavformat") 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 pkg_cv_LIBAVFORMAT_LIBS=`$PKG_CONFIG --libs "libavformat" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12432,8 +13715,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -12441,38 +13724,38 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LIBAVFORMAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavformat" 2>&1` + LIBAVFORMAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavformat" 2>&1` else - LIBAVFORMAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavformat" 2>&1` + LIBAVFORMAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavformat" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LIBAVFORMAT_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LIBAVFORMAT_PKG_ERRORS" >&5 - found_libavformat=no + found_libavformat=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_libavformat=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_libavformat=no else - LIBAVFORMAT_CFLAGS=$pkg_cv_LIBAVFORMAT_CFLAGS - LIBAVFORMAT_LIBS=$pkg_cv_LIBAVFORMAT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_libavformat=yes + LIBAVFORMAT_CFLAGS=$pkg_cv_LIBAVFORMAT_CFLAGS + LIBAVFORMAT_LIBS=$pkg_cv_LIBAVFORMAT_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_libavformat=yes fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavcodec >= 57.107.100" >&5 -$as_echo_n "checking for libavcodec >= 57.107.100... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavcodec >= 57.107.100" >&5 +printf %s "checking for libavcodec >= 57.107.100... " >&6; } if test -n "$LIBAVCODEC_MIN_VERSION_CFLAGS"; then pkg_cv_LIBAVCODEC_MIN_VERSION_CFLAGS="$LIBAVCODEC_MIN_VERSION_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 57.107.100\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 57.107.100\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec >= 57.107.100") 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 pkg_cv_LIBAVCODEC_MIN_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libavcodec >= 57.107.100" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12486,10 +13769,10 @@ if test -n "$LIBAVCODEC_MIN_VERSION_LIBS"; then pkg_cv_LIBAVCODEC_MIN_VERSION_LIBS="$LIBAVCODEC_MIN_VERSION_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 57.107.100\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 57.107.100\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavcodec >= 57.107.100") 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 pkg_cv_LIBAVCODEC_MIN_VERSION_LIBS=`$PKG_CONFIG --libs "libavcodec >= 57.107.100" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -12503,8 +13786,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -12512,24 +13795,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LIBAVCODEC_MIN_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec >= 57.107.100" 2>&1` + LIBAVCODEC_MIN_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec >= 57.107.100" 2>&1` else - LIBAVCODEC_MIN_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec >= 57.107.100" 2>&1` + LIBAVCODEC_MIN_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec >= 57.107.100" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LIBAVCODEC_MIN_VERSION_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LIBAVCODEC_MIN_VERSION_PKG_ERRORS" >&5 - libavcodec_min_version=no + libavcodec_min_version=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - libavcodec_min_version=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + libavcodec_min_version=no else - LIBAVCODEC_MIN_VERSION_CFLAGS=$pkg_cv_LIBAVCODEC_MIN_VERSION_CFLAGS - LIBAVCODEC_MIN_VERSION_LIBS=$pkg_cv_LIBAVCODEC_MIN_VERSION_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - libavcodec_min_version=yes + LIBAVCODEC_MIN_VERSION_CFLAGS=$pkg_cv_LIBAVCODEC_MIN_VERSION_CFLAGS + LIBAVCODEC_MIN_VERSION_LIBS=$pkg_cv_LIBAVCODEC_MIN_VERSION_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + libavcodec_min_version=yes fi # Windows doesn't use pkg-config so we assume that libavcodec is new enough if test $system = Windows; then @@ -12537,58 +13820,59 @@ if test $system = Windows; then fi if test "$found_libavformat" != yes; then SAVED_LIBS=$LIBS - for ac_header in libavformat/avformat.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libavformat/avformat.h" "ac_cv_header_libavformat_avformat_h" "$ac_includes_default" -if test "x$ac_cv_header_libavformat_avformat_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBAVFORMAT_AVFORMAT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "libavformat/avformat.h" "ac_cv_header_libavformat_avformat_h" "$ac_includes_default" +if test "x$ac_cv_header_libavformat_avformat_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBAVFORMAT_AVFORMAT_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_open_input in -lavformat" >&5 -$as_echo_n "checking for avformat_open_input in -lavformat... " >&6; } -if ${ac_cv_lib_avformat_avformat_open_input+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avformat_open_input in -lavformat" >&5 +printf %s "checking for avformat_open_input in -lavformat... " >&6; } +if test ${ac_cv_lib_avformat_avformat_open_input+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lavformat $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char avformat_open_input (); +char avformat_open_input (void); int -main () +main (void) { return avformat_open_input (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_avformat_avformat_open_input=yes -else - ac_cv_lib_avformat_avformat_open_input=no +else case e in #( + e) ac_cv_lib_avformat_avformat_open_input=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_open_input" >&5 -$as_echo "$ac_cv_lib_avformat_avformat_open_input" >&6; } -if test "x$ac_cv_lib_avformat_avformat_open_input" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBAVFORMAT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_open_input" >&5 +printf "%s\n" "$ac_cv_lib_avformat_avformat_open_input" >&6; } +if test "x$ac_cv_lib_avformat_avformat_open_input" = xyes +then : + printf "%s\n" "#define HAVE_LIBAVFORMAT 1" >>confdefs.h LIBS="-lavformat $LIBS" @@ -12609,13 +13893,13 @@ fi if test $file_req != no -a $libavcodec = yes -a $libswscale = yes -a $found_libavformat = yes -a "$libavcodec_min_version" = yes then -$as_echo "#define HAVE_FILE 1" >>confdefs.h +printf "%s\n" "#define HAVE_FILE 1" >>confdefs.h COMMON_FLAGS="$COMMON_FLAGS $LIBAVFORMAT_CFLAGS" file=yes - TARGET=$(MODULE_NAME ""vidcap_file"") + TARGET="lib/ultragrid/ultragrid_""vidcap_file"".so" LIB_OBJS=$LIB_OBJS" ""src/video_capture/file.o" LIB_MODULES=$LIB_MODULES" ""$LIBAVCODEC_LIBS $LIBAVFORMAT_LIBS $LIBSWSCALE_LIBS" if test x"vidcap_file" != x; then @@ -12653,11 +13937,13 @@ GL_LIB=$OPENGL_LIB gl_display=no # Check whether --enable-gl-display was given. -if test "${enable_gl_display+set}" = set; then : +if test ${enable_gl_display+y} +then : enableval=$enable_gl_display; gl_display_req=$enableval -else - gl_display_req=$build_default - +else case e in #( + e) gl_display_req=$build_default + ;; +esac fi @@ -12669,99 +13955,112 @@ case "$system" in FOUND_GLUT=yes ;; *) - for ac_header in GL/glut.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" -if test "x$ac_cv_header_GL_glut_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GL_GLUT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glut_h" = xyes +then : + printf "%s\n" "#define HAVE_GL_GLUT_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glutMainLoop in -lfreeglut" >&5 -$as_echo_n "checking for glutMainLoop in -lfreeglut... " >&6; } -if ${ac_cv_lib_freeglut_glutMainLoop+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glutMainLoop in -lfreeglut" >&5 +printf %s "checking for glutMainLoop in -lfreeglut... " >&6; } +if test ${ac_cv_lib_freeglut_glutMainLoop+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lfreeglut $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char glutMainLoop (); +char glutMainLoop (void); int -main () +main (void) { return glutMainLoop (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_freeglut_glutMainLoop=yes -else - ac_cv_lib_freeglut_glutMainLoop=no +else case e in #( + e) ac_cv_lib_freeglut_glutMainLoop=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freeglut_glutMainLoop" >&5 -$as_echo "$ac_cv_lib_freeglut_glutMainLoop" >&6; } -if test "x$ac_cv_lib_freeglut_glutMainLoop" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freeglut_glutMainLoop" >&5 +printf "%s\n" "$ac_cv_lib_freeglut_glutMainLoop" >&6; } +if test "x$ac_cv_lib_freeglut_glutMainLoop" = xyes +then : GLUT_LIB=-lfreeglut -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glutMainLoop in -lglut" >&5 -$as_echo_n "checking for glutMainLoop in -lglut... " >&6; } -if ${ac_cv_lib_glut_glutMainLoop+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glutMainLoop in -lglut" >&5 +printf %s "checking for glutMainLoop in -lglut... " >&6; } +if test ${ac_cv_lib_glut_glutMainLoop+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lglut $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char glutMainLoop (); +char glutMainLoop (void); int -main () +main (void) { return glutMainLoop (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_glut_glutMainLoop=yes -else - ac_cv_lib_glut_glutMainLoop=no +else case e in #( + e) ac_cv_lib_glut_glutMainLoop=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glut_glutMainLoop" >&5 -$as_echo "$ac_cv_lib_glut_glutMainLoop" >&6; } -if test "x$ac_cv_lib_glut_glutMainLoop" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glut_glutMainLoop" >&5 +printf "%s\n" "$ac_cv_lib_glut_glutMainLoop" >&6; } +if test "x$ac_cv_lib_glut_glutMainLoop" = xyes +then : GLUT_LIB=-lglut -else - GLUT_LIB="" +else case e in #( + e) GLUT_LIB="" ;; +esac fi - + ;; +esac fi if test "$ac_cv_header_GL_glut_h" = yes -a -n "$GLUT_LIB"; then @@ -12775,11 +14074,11 @@ then GL_LIB="$GLUT_LIB $OPENGL_LIB" gl_display=yes -$as_echo "#define HAVE_GL 1" >>confdefs.h +printf "%s\n" "#define HAVE_GL 1" >>confdefs.h INC="$INC $GL_INC" - TARGET=$(MODULE_NAME ""display_gl"") + TARGET="lib/ultragrid/ultragrid_""display_gl"".so" LIB_OBJS=$LIB_OBJS" ""$GL_OBJ $HW_ACC_DISPLAY_OBJ" LIB_MODULES=$LIB_MODULES" ""$GL_LIB $LAVC_HWACC_LIBS" if test x"display_gl" != x; then @@ -12816,11 +14115,13 @@ SWMIX_OBJ= swmix=no # Check whether --enable-swmix was given. -if test "${enable_swmix+set}" = set; then : +if test ${enable_swmix+y} +then : enableval=$enable_swmix; swmix_req=$enableval -else - swmix_req=$build_default - +else case e in #( + e) swmix_req=$build_default + ;; +esac fi @@ -12830,7 +14131,7 @@ then SWMIX_LIB="$OPENGL_LIB" SWMIX_OBJ="$SWMIX_OBJ $GL_COMMON_OBJ src/video_capture/swmix.o" - TARGET=$(MODULE_NAME ""vidcap_swmix"") + TARGET="lib/ultragrid/ultragrid_""vidcap_swmix"".so" LIB_OBJS=$LIB_OBJS" ""$SWMIX_OBJ" LIB_MODULES=$LIB_MODULES" ""$SWMIX_LIB" if test x"vidcap_swmix" != x; then @@ -12853,7 +14154,7 @@ $TARGET: ""$SWMIX_OBJ"" fi -$as_echo "#define HAVE_SWMIX 1" >>confdefs.h +printf "%s\n" "#define HAVE_SWMIX 1" >>confdefs.h fi @@ -12866,20 +14167,22 @@ fi # ----------------------------------------------------------------------------- dshow=no # Check whether --enable-dshow was given. -if test "${enable_dshow+set}" = set; then : +if test ${enable_dshow+y} +then : enableval=$enable_dshow; dshow_req=$enableval -else - dshow_req=$build_default - +else case e in #( + e) dshow_req=$build_default + ;; +esac fi if test $system = Windows -a $dshow_req != no; then -$as_echo "#define HAVE_DSHOW 1" >>confdefs.h +printf "%s\n" "#define HAVE_DSHOW 1" >>confdefs.h - TARGET=$(MODULE_NAME """") + TARGET="lib/ultragrid/ultragrid_"""".so" LIB_OBJS=$LIB_OBJS" ""src/video_capture/DirectShowGrabber.o" LIB_MODULES=$LIB_MODULES" ""-lstrmiids -luuid -lole32 -loleaut32" if test x"" != x; then @@ -12917,11 +14220,13 @@ SCREEN_CAP_LIB= screen_cap=no # Check whether --enable-screen was given. -if test "${enable_screen+set}" = set; then : +if test ${enable_screen+y} +then : enableval=$enable_screen; screen_cap_req=$enableval -else - screen_cap_req=$build_default - +else case e in #( + e) screen_cap_req=$build_default + ;; +esac fi @@ -12934,8 +14239,8 @@ case "$system" in else if test $screen_cap_req != no then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Screen capture supported for Mac version 10.6 and higher." >&5 -$as_echo "$as_me: WARNING: *** Screen capture supported for Mac version 10.6 and higher." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Screen capture supported for Mac version 10.6 and higher." >&5 +printf "%s\n" "$as_me: WARNING: *** Screen capture supported for Mac version 10.6 and higher." >&2;} fi screen_cap=no fi @@ -12947,58 +14252,64 @@ $as_echo "$as_me: WARNING: *** Screen capture supported for Mac version 10.6 and *) # Linux SAVED_LIBS=$LIBS - ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default" -if test "x$ac_cv_header_X11_Xlib_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default" +if test "x$ac_cv_header_X11_Xlib_h" = xyes +then : fi - - ac_fn_c_check_header_mongrel "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "$ac_includes_default" -if test "x$ac_cv_header_X11_Xutil_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "$ac_includes_default" +if test "x$ac_cv_header_X11_Xutil_h" = xyes +then : fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGetImage in -lX11" >&5 -$as_echo_n "checking for XGetImage in -lX11... " >&6; } -if ${ac_cv_lib_X11_XGetImage+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGetImage in -lX11" >&5 +printf %s "checking for XGetImage in -lX11... " >&6; } +if test ${ac_cv_lib_X11_XGetImage+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char XGetImage (); +char XGetImage (void); int -main () +main (void) { return XGetImage (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_X11_XGetImage=yes -else - ac_cv_lib_X11_XGetImage=no +else case e in #( + e) ac_cv_lib_X11_XGetImage=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XGetImage" >&5 -$as_echo "$ac_cv_lib_X11_XGetImage" >&6; } -if test "x$ac_cv_lib_X11_XGetImage" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBX11 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XGetImage" >&5 +printf "%s\n" "$ac_cv_lib_X11_XGetImage" >&6; } +if test "x$ac_cv_lib_X11_XGetImage" = xyes +then : + printf "%s\n" "#define HAVE_LIBX11 1" >>confdefs.h LIBS="-lX11 $LIBS" @@ -13008,57 +14319,63 @@ fi # [AC_DEFINE([HAVE_XFIXES], [1], [Build with XFixes support])], # [HAVE_XFIXES=no] # ) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesGetCursorImage in -lXfixes" >&5 -$as_echo_n "checking for XFixesGetCursorImage in -lXfixes... " >&6; } -if ${ac_cv_lib_Xfixes_XFixesGetCursorImage+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesGetCursorImage in -lXfixes" >&5 +printf %s "checking for XFixesGetCursorImage in -lXfixes... " >&6; } +if test ${ac_cv_lib_Xfixes_XFixesGetCursorImage+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lXfixes $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char XFixesGetCursorImage (); +char XFixesGetCursorImage (void); int -main () +main (void) { return XFixesGetCursorImage (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_Xfixes_XFixesGetCursorImage=yes -else - ac_cv_lib_Xfixes_XFixesGetCursorImage=no +else case e in #( + e) ac_cv_lib_Xfixes_XFixesGetCursorImage=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5 -$as_echo "$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; } -if test "x$ac_cv_lib_Xfixes_XFixesGetCursorImage" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBXFIXES 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5 +printf "%s\n" "$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; } +if test "x$ac_cv_lib_Xfixes_XFixesGetCursorImage" = xyes +then : + printf "%s\n" "#define HAVE_LIBXFIXES 1" >>confdefs.h LIBS="-lXfixes $LIBS" fi - ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "$ac_includes_default" -if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "$ac_includes_default" +if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes +then : fi - LIBS=$SAVED_LIBS if test $screen_cap_req != no -a $ac_cv_lib_X11_XGetImage = yes -a \ @@ -13070,7 +14387,7 @@ fi $ac_cv_header_X11_extensions_Xfixes_h = yes then -$as_echo "#define HAVE_XFIXES 1" >>confdefs.h +printf "%s\n" "#define HAVE_XFIXES 1" >>confdefs.h SCREEN_CAP_LIB="$SCREEN_CAP_LIB -lXfixes" fi @@ -13084,7 +14401,7 @@ esac if test $screen_cap_req != no -a $screen_cap = yes then -$as_echo "#define HAVE_SCREEN_CAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_SCREEN_CAP 1" >>confdefs.h if test $system = MacOSX; then SCREEN_CAP_OBJ="src/video_capture/screen_osx.o" @@ -13095,7 +14412,7 @@ $as_echo "#define HAVE_SCREEN_CAP 1" >>confdefs.h BIN_DEPS="${BIN_DEPS:+$BIN_DEPS }bin/screen-capture-recorder-x64.dll" fi - TARGET=$(MODULE_NAME ""vidcap_screen"") + TARGET="lib/ultragrid/ultragrid_""vidcap_screen"".so" LIB_OBJS=$LIB_OBJS" ""$SCREEN_CAP_OBJ" LIB_MODULES=$LIB_MODULES" ""$SCREEN_CAP_LIB" if test x"vidcap_screen" != x; then @@ -13131,16 +14448,18 @@ fi rtdxt=no # Check whether --enable-rtdxt was given. -if test "${enable_rtdxt+set}" = set; then : +if test ${enable_rtdxt+y} +then : enableval=$enable_rtdxt; rtdxt_req=$enableval -else - rtdxt_req=$build_default +else case e in #( + e) rtdxt_req=$build_default ;; +esac fi -$as_echo "#define USE_PBO_DXT_ENCODER 1" >>confdefs.h +printf "%s\n" "#define USE_PBO_DXT_ENCODER 1" >>confdefs.h # We probably want this only if there is need to maximalize bandwidth # With NVidia cards, it increases latency up about 1.5x frame time @@ -13152,7 +14471,7 @@ then rtdxt=yes RTDXT_LIB="$OPENGL_LIB" -$as_echo "#define HAVE_DXT_GLSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_DXT_GLSL 1" >>confdefs.h RTDXT_COMMON_OBJ="$RTDXT_COMMON_OBJ $GL_COMMON_OBJ dxt_compress/dxt_util.o" RTDXT_COMMON_HEADERS="$RTDXT_COMMON_HEADERS dxt_compress/dxt_glsl.h" @@ -13160,7 +14479,7 @@ $as_echo "#define HAVE_DXT_GLSL 1" >>confdefs.h RTDXT_DECOMPRESS_OBJ="$RTDXT_COMMON_OBJ dxt_compress/dxt_decoder.o src/video_decompress/dxt_glsl.o" DXT_GLSL_CFLAGS="-std=gnu99" - TARGET=$(MODULE_NAME ""vcompress_rtdxt"") + TARGET="lib/ultragrid/ultragrid_""vcompress_rtdxt"".so" LIB_OBJS=$LIB_OBJS" ""$RTDXT_COMPRESS_OBJ " LIB_MODULES=$LIB_MODULES" ""$RTDXT_LIB" if test x"vcompress_rtdxt" != x; then @@ -13183,7 +14502,7 @@ $TARGET: ""$RTDXT_COMPRESS_OBJ "" fi - TARGET=$(MODULE_NAME ""vdecompress_rtdxt"") + TARGET="lib/ultragrid/ultragrid_""vdecompress_rtdxt"".so" LIB_OBJS=$LIB_OBJS" ""$RTDXT_DECOMPRESS_OBJ " LIB_MODULES=$LIB_MODULES" ""$RTDXT_LIB" if test x"vdecompress_rtdxt" != x; then @@ -13219,10 +14538,12 @@ fi uyvy=no # Check whether --enable-uyvy was given. -if test "${enable_uyvy+set}" = set; then : +if test ${enable_uyvy+y} +then : enableval=$enable_uyvy; uyvy_req=$enableval -else - uyvy_req=$build_default +else case e in #( + e) uyvy_req=$build_default ;; +esac fi @@ -13237,11 +14558,11 @@ fi if test $uyvy = yes then -$as_echo "#define HAVE_COMPRESS_UYVY 1" >>confdefs.h +printf "%s\n" "#define HAVE_COMPRESS_UYVY 1" >>confdefs.h UYVY_COMPRESS_OBJ="$GL_COMMON_OBJ src/video_compress/uyvy.o" - TARGET=$(MODULE_NAME ""vcompress_uyvy"") + TARGET="lib/ultragrid/ultragrid_""vcompress_uyvy"".so" LIB_OBJS=$LIB_OBJS" ""$UYVY_COMPRESS_OBJ" LIB_MODULES=$LIB_MODULES" ""$OPENGL_LIB" if test x"vcompress_uyvy" != x; then @@ -13291,16 +14612,19 @@ FOUND_CUDA=no CUDA_PATH=$CUDA_DIRECTORY # Check whether --enable-cuda was given. -if test "${enable_cuda+set}" = set; then : +if test ${enable_cuda+y} +then : enableval=$enable_cuda; cuda_req=$enableval -else - cuda_req=$build_default +else case e in #( + e) cuda_req=$build_default ;; +esac fi # Check whether --with-cuda was given. -if test "${with_cuda+set}" = set; then : +if test ${with_cuda+y} +then : withval=$with_cuda; CUDA_PATH=$withval fi @@ -13313,12 +14637,13 @@ fi # nvcc is intentional here # Extract the first word of "nvcc", so it can be a program name with args. set dummy nvcc; 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_NVCC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $NVCC in +{ 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_NVCC+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $NVCC in [\\/]* | ?:[\\/]*) ac_cv_path_NVCC="$NVCC" # Let the user override the test with a path. ;; @@ -13327,11 +14652,15 @@ else for as_dir in $CUDA_PATH_SEP$PATH $PATH_SEPARATOR/opt/cuda/bin$PATH_SEPARATOR/usr/local/cuda/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 - ac_cv_path_NVCC="$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_NVCC="$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 @@ -13339,15 +14668,16 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi NVCC=$ac_cv_path_NVCC if test -n "$NVCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NVCC" >&5 -$as_echo "$NVCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NVCC" >&5 +printf "%s\n" "$NVCC" >&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 @@ -13360,38 +14690,44 @@ then if test $system = Windows; then # Extract the first word of "cl", so it can be a program name with args. set dummy cl; 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_CL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CL"; then +{ 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_CL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$CL"; then ac_cv_prog_CL="$CL" # Let the user override the test. else 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_CL="cl" - $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 done IFS=$as_save_IFS -fi +fi ;; +esac fi CL=$ac_cv_prog_CL if test -n "$CL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CL" >&5 -$as_echo "$CL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CL" >&5 +printf "%s\n" "$CL" >&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 @@ -13401,16 +14737,16 @@ fi else FOUND_CUDA=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CUDA Toolkit version - major" >&5 -$as_echo_n "checking CUDA Toolkit version - major... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CUDA Toolkit version - major" >&5 +printf %s "checking CUDA Toolkit version - major... " >&6; } nvcc_major=`"$NVCC" --version |grep release|sed 's/^.*release \([0-9][0-9]*\).*$/\1/'` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nvcc_major" >&5 -$as_echo "$nvcc_major" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CUDA Toolkit version - minor" >&5 -$as_echo_n "checking CUDA Toolkit version - minor... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nvcc_major" >&5 +printf "%s\n" "$nvcc_major" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CUDA Toolkit version - minor" >&5 +printf %s "checking CUDA Toolkit version - minor... " >&6; } nvcc_minor=`"$NVCC" --version |grep release|sed 's/^.*release [0-9][0-9]*\.\([0-9][0-9]*\).*$/\1/'` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nvcc_minor" >&5 -$as_echo "$nvcc_minor" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nvcc_minor" >&5 +printf "%s\n" "$nvcc_minor" >&6; } CUDA_INC="\"-I$CUDA_PATH/include\"" CUDA_COMPILER="$NVCC" @@ -13444,7 +14780,8 @@ fi # Pick compiler for cuda device code # Check whether --with-cuda-compiler was given. -if test "${with_cuda_compiler+set}" = set; then : +if test ${with_cuda_compiler+y} +then : withval=$with_cuda_compiler; CUDA_COMPILER="$withval" fi @@ -13452,7 +14789,6 @@ fi HOST_CC_REPORT=" (" case "$CUDA_COMPILER" in *nvcc*) - CUDA_COMPUTE_ARGS="-gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35" ;; *clang*) CUDA_COMPUTE_ARGS="--cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35" @@ -13460,8 +14796,8 @@ case "$CUDA_COMPILER" in "") ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported cuda compiler $CUDA_COMPILER" >&5 -$as_echo "$as_me: WARNING: Unsupported cuda compiler $CUDA_COMPILER" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported cuda compiler $CUDA_COMPILER" >&5 +printf "%s\n" "$as_me: WARNING: Unsupported cuda compiler $CUDA_COMPILER" >&2;} ;; esac HOST_CC_REPORT="$HOST_CC_REPORT"$(basename "$CUDA_COMPILER") @@ -13469,55 +14805,62 @@ HOST_CC_REPORT="$HOST_CC_REPORT"$(basename "$CUDA_COMPILER") # CUDA host compiler # Check whether --with-cuda-host-compiler was given. -if test "${with_cuda_host_compiler+set}" = set; then : +if test ${with_cuda_host_compiler+y} +then : withval=$with_cuda_host_compiler; fi if test "x${with_cuda_host_compiler}" != "x" ; then # Extract the first word of "${with_cuda_host_compiler}", so it can be a program name with args. set dummy ${with_cuda_host_compiler}; 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_cuda_host_cc+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$cuda_host_cc"; then +{ 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_cuda_host_cc+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$cuda_host_cc"; then ac_cv_prog_cuda_host_cc="$cuda_host_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 - 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_cuda_host_cc="yes" - $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 done IFS=$as_save_IFS -fi +fi ;; +esac fi cuda_host_cc=$ac_cv_prog_cuda_host_cc if test -n "$cuda_host_cc"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cuda_host_cc" >&5 -$as_echo "$cuda_host_cc" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cuda_host_cc" >&5 +printf "%s\n" "$cuda_host_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${cuda_host_cc}" = "xyes" ; then CUDA_FLAGS+=" -ccbin ${with_cuda_host_compiler}" else - { { $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 $? "Binary ${with_cuda_host_compiler} given as cuda host compiler, yet not found! -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi else with_cuda_host_compiler="default" @@ -13547,27 +14890,29 @@ GPUJPEG_LIB= gpujpeg=no # Check whether --enable-gpujpeg was given. -if test "${enable_gpujpeg+set}" = set; then : +if test ${enable_gpujpeg+y} +then : enableval=$enable_gpujpeg; gpujpeg_req=$enableval -else - gpujpeg_req=$build_default +else case e in #( + e) gpujpeg_req=$build_default ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgpujpeg >= 0.0.2 " >&5 -$as_echo_n "checking for libgpujpeg >= 0.0.2 ... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgpujpeg >= 0.0.2 " >&5 +printf %s "checking for libgpujpeg >= 0.0.2 ... " >&6; } if test -n "$LIBGPUJPEG_CFLAGS"; then pkg_cv_LIBGPUJPEG_CFLAGS="$LIBGPUJPEG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpujpeg >= 0.0.2 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpujpeg >= 0.0.2 \""; } >&5 ($PKG_CONFIG --exists --print-errors "libgpujpeg >= 0.0.2 ") 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 pkg_cv_LIBGPUJPEG_CFLAGS=`$PKG_CONFIG --cflags "libgpujpeg >= 0.0.2 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -13581,10 +14926,10 @@ if test -n "$LIBGPUJPEG_LIBS"; then pkg_cv_LIBGPUJPEG_LIBS="$LIBGPUJPEG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpujpeg >= 0.0.2 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpujpeg >= 0.0.2 \""; } >&5 ($PKG_CONFIG --exists --print-errors "libgpujpeg >= 0.0.2 ") 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 pkg_cv_LIBGPUJPEG_LIBS=`$PKG_CONFIG --libs "libgpujpeg >= 0.0.2 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -13598,8 +14943,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -13607,24 +14952,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LIBGPUJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgpujpeg >= 0.0.2 " 2>&1` + LIBGPUJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgpujpeg >= 0.0.2 " 2>&1` else - LIBGPUJPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgpujpeg >= 0.0.2 " 2>&1` + LIBGPUJPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgpujpeg >= 0.0.2 " 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$LIBGPUJPEG_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$LIBGPUJPEG_PKG_ERRORS" >&5 - found_gpujpeg=no + found_gpujpeg=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_gpujpeg=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_gpujpeg=no else - LIBGPUJPEG_CFLAGS=$pkg_cv_LIBGPUJPEG_CFLAGS - LIBGPUJPEG_LIBS=$pkg_cv_LIBGPUJPEG_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_gpujpeg=yes + LIBGPUJPEG_CFLAGS=$pkg_cv_LIBGPUJPEG_CFLAGS + LIBGPUJPEG_LIBS=$pkg_cv_LIBGPUJPEG_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_gpujpeg=yes fi if test "$found_gpujpeg" != yes @@ -13632,57 +14977,63 @@ then GPUJPEG_LIB="$GPUJPEG_LIB -lgpujpeg" SAVED_LIBS=$LIBS LIBS="$LIBS $GPUJPEG_LIB" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpujpeg_encoder_create in -lgpujpeg" >&5 -$as_echo_n "checking for gpujpeg_encoder_create in -lgpujpeg... " >&6; } -if ${ac_cv_lib_gpujpeg_gpujpeg_encoder_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gpujpeg_encoder_create in -lgpujpeg" >&5 +printf %s "checking for gpujpeg_encoder_create in -lgpujpeg... " >&6; } +if test ${ac_cv_lib_gpujpeg_gpujpeg_encoder_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgpujpeg $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gpujpeg_encoder_create (); +char gpujpeg_encoder_create (void); int -main () +main (void) { return gpujpeg_encoder_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gpujpeg_gpujpeg_encoder_create=yes -else - ac_cv_lib_gpujpeg_gpujpeg_encoder_create=no +else case e in #( + e) ac_cv_lib_gpujpeg_gpujpeg_encoder_create=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpujpeg_gpujpeg_encoder_create" >&5 -$as_echo "$ac_cv_lib_gpujpeg_gpujpeg_encoder_create" >&6; } -if test "x$ac_cv_lib_gpujpeg_gpujpeg_encoder_create" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGPUJPEG 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpujpeg_gpujpeg_encoder_create" >&5 +printf "%s\n" "$ac_cv_lib_gpujpeg_gpujpeg_encoder_create" >&6; } +if test "x$ac_cv_lib_gpujpeg_gpujpeg_encoder_create" = xyes +then : + printf "%s\n" "#define HAVE_LIBGPUJPEG 1" >>confdefs.h LIBS="-lgpujpeg $LIBS" fi - ac_fn_c_check_header_mongrel "$LINENO" "libgpujpeg/gpujpeg_decoder.h" "ac_cv_header_libgpujpeg_gpujpeg_decoder_h" "$ac_includes_default" -if test "x$ac_cv_header_libgpujpeg_gpujpeg_decoder_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "libgpujpeg/gpujpeg_decoder.h" "ac_cv_header_libgpujpeg_gpujpeg_decoder_h" "$ac_includes_default" +if test "x$ac_cv_header_libgpujpeg_gpujpeg_decoder_h" = xyes +then : fi - LIBS=$SAVED_LIBS if test "$ac_cv_lib_gpujpeg_gpujpeg_encoder_create" = yes -a \ "$ac_cv_header_libgpujpeg_gpujpeg_decoder_h" = yes @@ -13703,10 +15054,10 @@ then GPUJPEG_COMPRESS_OBJ="src/video_compress/gpujpeg.o" GPUJPEG_DECOMPRESS_OBJ="src/video_decompress/gpujpeg.o " -$as_echo "#define HAVE_GPUJPEG 1" >>confdefs.h +printf "%s\n" "#define HAVE_GPUJPEG 1" >>confdefs.h - TARGET=$(MODULE_NAME ""vcompress_gpujpeg"") + TARGET="lib/ultragrid/ultragrid_""vcompress_gpujpeg"".so" LIB_OBJS=$LIB_OBJS" ""$GPUJPEG_COMPRESS_OBJ" LIB_MODULES=$LIB_MODULES" ""$GPUJPEG_LIB" if test x"vcompress_gpujpeg" != x; then @@ -13729,7 +15080,7 @@ $TARGET: ""$GPUJPEG_COMPRESS_OBJ"" fi - TARGET=$(MODULE_NAME ""vdecompress_gpujpeg"") + TARGET="lib/ultragrid/ultragrid_""vdecompress_gpujpeg"".so" LIB_OBJS=$LIB_OBJS" ""$GPUJPEG_DECOMPRESS_OBJ" LIB_MODULES=$LIB_MODULES" ""$GPUJPEG_LIB" if test x"vdecompress_gpujpeg" != x; then @@ -13771,10 +15122,12 @@ cuda_dxt=no # Check whether --enable-cuda-dxt was given. -if test "${enable_cuda_dxt+set}" = set; then : +if test ${enable_cuda_dxt+y} +then : enableval=$enable_cuda_dxt; cuda_dxt_req=$enableval -else - cuda_dxt_req=$build_default +else case e in #( + e) cuda_dxt_req=$build_default ;; +esac fi @@ -13787,7 +15140,7 @@ then if test -z "$cuda_var_defined"; then -$as_echo "#define HAVE_CUDA 1" >>confdefs.h +printf "%s\n" "#define HAVE_CUDA 1" >>confdefs.h if test $system = Windows; then # It is twice by intent - as an object to force dependency @@ -13821,10 +15174,10 @@ $as_echo "#define HAVE_CUDA 1" >>confdefs.h CUDA_DXT_INC=$CUDA_INC CUDA_DXT_OBJ="src/video_compress/cuda_dxt.o $CUDA_DXT_COMMON_OBJ $CUDA_COMMON_OBJ" -$as_echo "#define HAVE_CUDA_DXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CUDA_DXT 1" >>confdefs.h - TARGET=$(MODULE_NAME ""vcompress_cuda_dxt"") + TARGET="lib/ultragrid/ultragrid_""vcompress_cuda_dxt"".so" LIB_OBJS=$LIB_OBJS" "$CUDA_DXT_OBJ LIB_MODULES=$LIB_MODULES" ""$CUDA_DXT_LIB" if test x"vcompress_cuda_dxt" != x; then @@ -13868,10 +15221,12 @@ fi # ------------------------------------------------------------------------------------------------- gpujpeg_to_dxt=no # Check whether --enable-gpujpeg_to_dxt was given. -if test "${enable_gpujpeg_to_dxt+set}" = set; then : +if test ${enable_gpujpeg_to_dxt+y} +then : enableval=$enable_gpujpeg_to_dxt; gpujpeg_to_dxt_req=$enableval -else - gpujpeg_to_dxt_req=$build_default +else case e in #( + e) gpujpeg_to_dxt_req=$build_default ;; +esac fi @@ -13881,7 +15236,7 @@ then if test -z "$cuda_var_defined"; then -$as_echo "#define HAVE_CUDA 1" >>confdefs.h +printf "%s\n" "#define HAVE_CUDA 1" >>confdefs.h if test $system = Windows; then # It is twice by intent - as an object to force dependency @@ -13916,7 +15271,7 @@ $as_echo "#define HAVE_CUDA 1" >>confdefs.h GPUJPEG_TO_DXT_LIB="$CUDA_DXT_COMMON_LIB $CUDA_COMMON_LIB $CUDA_LIB $JPEG_LIB" GPUJPEG_TO_DXT_OBJ="src/video_decompress/gpujpeg_to_dxt.o $CUDA_COMMON_OBJ $CUDA_DXT_COMMON_OBJ" - TARGET=$(MODULE_NAME ""vdecompress_gpujpeg_to_dxt"") + TARGET="lib/ultragrid/ultragrid_""vdecompress_gpujpeg_to_dxt"".so" LIB_OBJS=$LIB_OBJS" "$GPUJPEG_TO_DXT_OBJ LIB_MODULES=$LIB_MODULES" ""$GPUJPEG_TO_DXT_LIB" if test x"vdecompress_gpujpeg_to_dxt" != x; then @@ -13939,7 +15294,7 @@ $TARGET: "$GPUJPEG_TO_DXT_OBJ" fi -$as_echo "#define HAVE_GPUJPEG_TO_DXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_GPUJPEG_TO_DXT 1" >>confdefs.h if test -z "$cuda_msg_defined"; then @@ -13969,24 +15324,29 @@ SAGE_LIB= sage=no # Check whether --enable-sage was given. -if test "${enable_sage+set}" = set; then : +if test ${enable_sage+y} +then : enableval=$enable_sage; sage_req=$enableval -else - sage_req=$build_default +else case e in #( + e) sage_req=$build_default ;; +esac fi # Check whether --enable-sage-native-dxt5ycocg was given. -if test "${enable_sage_native_dxt5ycocg+set}" = set; then : +if test ${enable_sage_native_dxt5ycocg+y} +then : enableval=$enable_sage_native_dxt5ycocg; native_ycocg=$enableval -else - native_ycocg=no +else case e in #( + e) native_ycocg=no ;; +esac fi # Check whether --with-sage was given. -if test "${with_sage+set}" = set; then : +if test ${with_sage+y} +then : withval=$with_sage; SAGE_DIRECTORY=$withval fi @@ -13994,7 +15354,7 @@ fi if test $native_ycocg = yes then -$as_echo "#define SAGE_NATIVE_DXT5YCOCG 1" >>confdefs.h +printf "%s\n" "#define SAGE_NATIVE_DXT5YCOCG 1" >>confdefs.h fi @@ -14007,111 +15367,124 @@ fi SAGE_INC=$SAGE_DIRECTORY/include SAGE_LIB=$SAGE_DIRECTORY/lib64 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsail" >&5 -$as_echo_n "checking for main in -lsail... " >&6; } -if ${ac_cv_lib_sail_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsail" >&5 +printf %s "checking for main in -lsail... " >&6; } +if test ${ac_cv_lib_sail_main+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsail -lquanta -I${SAGE_INC} -L${SAGE_LIB} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sail_main=yes -else - ac_cv_lib_sail_main=no +else case e in #( + e) ac_cv_lib_sail_main=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sail_main" >&5 -$as_echo "$ac_cv_lib_sail_main" >&6; } -if test "x$ac_cv_lib_sail_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sail_main" >&5 +printf "%s\n" "$ac_cv_lib_sail_main" >&6; } +if test "x$ac_cv_lib_sail_main" = xyes +then : FOUND_SAGE_L=yes -else - FOUND_SAGE_L=no +else case e in #( + e) FOUND_SAGE_L=no ;; +esac fi # if library not found in lib64/ try lib/ if test $FOUND_SAGE_L = no then SAGE_LIB=$SAGE_DIRECTORY/lib - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsail" >&5 -$as_echo_n "checking for main in -lsail... " >&6; } -if ${ac_cv_lib_sail_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsail" >&5 +printf %s "checking for main in -lsail... " >&6; } +if test ${ac_cv_lib_sail_main+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsail -lquanta -I${SAGE_INC} -L${SAGE_LIB} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sail_main=yes -else - ac_cv_lib_sail_main=no +else case e in #( + e) ac_cv_lib_sail_main=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sail_main" >&5 -$as_echo "$ac_cv_lib_sail_main" >&6; } -if test "x$ac_cv_lib_sail_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sail_main" >&5 +printf "%s\n" "$ac_cv_lib_sail_main" >&6; } +if test "x$ac_cv_lib_sail_main" = xyes +then : FOUND_SAGE_L=yes -else - FOUND_SAGE_L=no +else case e in #( + e) FOUND_SAGE_L=no ;; +esac fi fi -for ac_header in ${SAGE_INC}/sail.h + for ac_header in ${SAGE_INC}/sail.h do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_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 +#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 _ACEOF FOUND_SAGE_H=yes -else - FOUND_SAGE_H=no +else case e in #( + e) FOUND_SAGE_H=no ;; +esac fi done - if test $sage_req != no -a $FOUND_SAGE_L = yes -a $FOUND_SAGE_H = yes then SAGE_INC=-I${SAGE_INC} SAGE_LIB=-"L${SAGE_LIB} -lsail -lquanta" SAGE_OBJ="src/video_display/sage.o" -$as_echo "#define HAVE_SAGE 1" >>confdefs.h +printf "%s\n" "#define HAVE_SAGE 1" >>confdefs.h CXXFLAGS="$CXXFLAGS -DQUANTA_USE_PTHREADS -DQUANTA_THREAD_SAFE -DGLSL_YUV" - TARGET=$(MODULE_NAME ""display_sage"") + TARGET="lib/ultragrid/ultragrid_""display_sage"".so" LIB_OBJS=$LIB_OBJS" ""$SAGE_OBJ" LIB_MODULES=$LIB_MODULES" ""$SAGE_LIB" if test x"display_sage" != x; then @@ -14147,62 +15520,70 @@ fi portaudio=no # Check whether --enable-portaudio was given. -if test "${enable_portaudio+set}" = set; then : +if test ${enable_portaudio+y} +then : enableval=$enable_portaudio; portaudio_req=$enableval -else - portaudio_req=$build_default +else case e in #( + e) portaudio_req=$build_default ;; +esac fi SAVED_LIBS=$LIBS -ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default" -if test "x$ac_cv_header_portaudio_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default" +if test "x$ac_cv_header_portaudio_h" = xyes +then : fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_GetDeviceCount in -lportaudio" >&5 -$as_echo_n "checking for Pa_GetDeviceCount in -lportaudio... " >&6; } -if ${ac_cv_lib_portaudio_Pa_GetDeviceCount+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Pa_GetDeviceCount in -lportaudio" >&5 +printf %s "checking for Pa_GetDeviceCount in -lportaudio... " >&6; } +if test ${ac_cv_lib_portaudio_Pa_GetDeviceCount+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lportaudio $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char Pa_GetDeviceCount (); +char Pa_GetDeviceCount (void); int -main () +main (void) { return Pa_GetDeviceCount (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_portaudio_Pa_GetDeviceCount=yes -else - ac_cv_lib_portaudio_Pa_GetDeviceCount=no +else case e in #( + e) ac_cv_lib_portaudio_Pa_GetDeviceCount=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetDeviceCount" >&5 -$as_echo "$ac_cv_lib_portaudio_Pa_GetDeviceCount" >&6; } -if test "x$ac_cv_lib_portaudio_Pa_GetDeviceCount" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPORTAUDIO 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetDeviceCount" >&5 +printf "%s\n" "$ac_cv_lib_portaudio_Pa_GetDeviceCount" >&6; } +if test "x$ac_cv_lib_portaudio_Pa_GetDeviceCount" = xyes +then : + printf "%s\n" "#define HAVE_LIBPORTAUDIO 1" >>confdefs.h LIBS="-lportaudio $LIBS" @@ -14219,55 +15600,63 @@ fi if test $portaudio = yes then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_GetVersionInfo in -lportaudio" >&5 -$as_echo_n "checking for Pa_GetVersionInfo in -lportaudio... " >&6; } -if ${ac_cv_lib_portaudio_Pa_GetVersionInfo+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Pa_GetVersionInfo in -lportaudio" >&5 +printf %s "checking for Pa_GetVersionInfo in -lportaudio... " >&6; } +if test ${ac_cv_lib_portaudio_Pa_GetVersionInfo+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lportaudio $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char Pa_GetVersionInfo (); +char Pa_GetVersionInfo (void); int -main () +main (void) { return Pa_GetVersionInfo (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_portaudio_Pa_GetVersionInfo=yes -else - ac_cv_lib_portaudio_Pa_GetVersionInfo=no +else case e in #( + e) ac_cv_lib_portaudio_Pa_GetVersionInfo=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetVersionInfo" >&5 -$as_echo "$ac_cv_lib_portaudio_Pa_GetVersionInfo" >&6; } -if test "x$ac_cv_lib_portaudio_Pa_GetVersionInfo" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetVersionInfo" >&5 +printf "%s\n" "$ac_cv_lib_portaudio_Pa_GetVersionInfo" >&6; } +if test "x$ac_cv_lib_portaudio_Pa_GetVersionInfo" = xyes +then : -$as_echo "#define HAVE_PA_GETVERSIONINFO 1" >>confdefs.h +printf "%s\n" "#define HAVE_PA_GETVERSIONINFO 1" >>confdefs.h fi PORTAUDIO_CAP_OBJ="src/audio/portaudio_common.o src/audio/capture/portaudio.o" PORTAUDIO_PLAY_OBJ="src/audio/portaudio_common.o src/audio/playback/portaudio.o" -$as_echo "#define HAVE_PORTAUDIO 1" >>confdefs.h +printf "%s\n" "#define HAVE_PORTAUDIO 1" >>confdefs.h - TARGET=$(MODULE_NAME ""acap_portaudio"") + TARGET="lib/ultragrid/ultragrid_""acap_portaudio"".so" LIB_OBJS=$LIB_OBJS" ""$PORTAUDIO_CAP_OBJ" LIB_MODULES=$LIB_MODULES" ""$PORTAUDIO_LIB" if test x"acap_portaudio" != x; then @@ -14290,7 +15679,7 @@ $TARGET: ""$PORTAUDIO_CAP_OBJ"" fi - TARGET=$(MODULE_NAME ""aplay_portaudio"") + TARGET="lib/ultragrid/ultragrid_""aplay_portaudio"".so" LIB_OBJS=$LIB_OBJS" ""$PORTAUDIO_PLAY_OBJ" LIB_MODULES=$LIB_MODULES" ""$PORTAUDIO_LIB" if test x"aplay_portaudio" != x; then @@ -14328,7 +15717,7 @@ SPEEX_OBJ="src/audio/resample.o src/audio/preprocess.o src/audio/filterbank.o sr SPEEX_OBJ="$SPEEX_OBJ src/audio/echo.o" SPEEX_LIB= -$as_echo "#define HAVE_SPEEX 1" >>confdefs.h +printf "%s\n" "#define HAVE_SPEEX 1" >>confdefs.h @@ -14345,150 +15734,59 @@ jack_trans=no jack=no # Check whether --enable-jack-transport was given. -if test "${enable_jack_transport+set}" = set; then : +if test ${enable_jack_transport+y} +then : enableval=$enable_jack_transport; jack_trans_req=$enableval -else - jack_trans_req=$build_default +else case e in #( + e) jack_trans_req=$build_default ;; +esac fi -if test $jack_trans_req = yes -a $build_libraries = yes -then - as_fn_error $? "JACK transport is currently incompatible with modular build" "$LINENO" 5; -fi -ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default" -if test "x$ac_cv_header_jack_jack_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default" +if test "x$ac_cv_header_jack_jack_h" = xyes +then : FOUND_JACK_H=yes -else - FOUND_JACK_H=no +else case e in #( + e) FOUND_JACK_H=no ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_new in -ljack" >&5 -$as_echo_n "checking for jack_client_new in -ljack... " >&6; } -if ${ac_cv_lib_jack_jack_client_new+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ljack $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 jack_client_new (); -int -main () -{ -return jack_client_new (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_jack_jack_client_new=yes -else - ac_cv_lib_jack_jack_client_new=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_new" >&5 -$as_echo "$ac_cv_lib_jack_jack_client_new" >&6; } -if test "x$ac_cv_lib_jack_jack_client_new" = xyes; then : - FOUND_JACK_L=yes - JACK_LIB=-ljack -else - FOUND_JACK_L=no -fi - -if test $FOUND_JACK_L = no; then - # Windows - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_new in -llibjack64" >&5 -$as_echo_n "checking for jack_client_new in -llibjack64... " >&6; } -if ${ac_cv_lib_libjack64_jack_client_new+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-llibjack64 $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 jack_client_new (); -int -main () -{ -return jack_client_new (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_libjack64_jack_client_new=yes -else - ac_cv_lib_libjack64_jack_client_new=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libjack64_jack_client_new" >&5 -$as_echo "$ac_cv_lib_libjack64_jack_client_new" >&6; } -if test "x$ac_cv_lib_libjack64_jack_client_new" = xyes; then : - FOUND_JACK_L=yes - JACK_LIB=-llibjack64 -else - FOUND_JACK_L=no -fi - -fi - -if test $jack_trans_req != no -a $FOUND_JACK_H = yes -a $FOUND_JACK_L = yes -a $build_libraries = no +if test $jack_trans_req != no -a $FOUND_JACK_H = yes then JACK_TRANS_OBJ="src/audio/jack.o" - JACK_TRANS_LIB="$JACK_LIB" -$as_echo "#define HAVE_JACK_TRANS 1" >>confdefs.h +printf "%s\n" "#define HAVE_JACK_TRANS 1" >>confdefs.h jack_trans=yes fi - - # sound system # Check whether --enable-jack was given. -if test "${enable_jack+set}" = set; then : +if test ${enable_jack+y} +then : enableval=$enable_jack; jack_req=$enableval -else - jack_req=$build_default +else case e in #( + e) jack_req=$build_default ;; +esac fi -if test $jack_req != no -a $FOUND_JACK_H = yes -a $FOUND_JACK_L = yes +if test $jack_req != no -a $FOUND_JACK_H = yes then JACK_CAP_OBJ="src/audio/capture/jack.o" JACK_PLAY_OBJ="src/audio/playback/jack.o" -$as_echo "#define HAVE_JACK 1" >>confdefs.h +printf "%s\n" "#define HAVE_JACK 1" >>confdefs.h jack=yes - TARGET=$(MODULE_NAME ""acap_jack"") + TARGET="lib/ultragrid/ultragrid_""acap_jack"".so" LIB_OBJS=$LIB_OBJS" ""$JACK_CAP_OBJ" - LIB_MODULES=$LIB_MODULES" ""$JACK_LIB" + LIB_MODULES=$LIB_MODULES" """ if test x"acap_jack" != x; then IS_TARGET_TRUE= IS_TARGET_FALSE='#' @@ -14503,15 +15801,15 @@ fi TARGETS="$TARGETS $TARGET: ""$JACK_CAP_OBJ"" \$(MKDIR_P) lib/ultragrid - \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""acap_jack".so" ""$JACK_CAP_OBJ"" -o lib/ultragrid/ultragrid_""acap_jack"".so ""$JACK_LIB"" + \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""acap_jack".so" ""$JACK_CAP_OBJ"" -o lib/ultragrid/ultragrid_""acap_jack"".so """" " fi - TARGET=$(MODULE_NAME ""aplay_jack"") + TARGET="lib/ultragrid/ultragrid_""aplay_jack"".so" LIB_OBJS=$LIB_OBJS" ""$JACK_PLAY_OBJ" - LIB_MODULES=$LIB_MODULES" ""$JACK_LIB" + LIB_MODULES=$LIB_MODULES" """ if test x"aplay_jack" != x; then IS_TARGET_TRUE= IS_TARGET_FALSE='#' @@ -14526,7 +15824,7 @@ fi TARGETS="$TARGETS $TARGET: ""$JACK_PLAY_OBJ"" \$(MKDIR_P) lib/ultragrid - \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""aplay_jack".so" ""$JACK_PLAY_OBJ"" -o lib/ultragrid/ultragrid_""aplay_jack"".so ""$JACK_LIB"" + \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""aplay_jack".so" ""$JACK_PLAY_OBJ"" -o lib/ultragrid/ultragrid_""aplay_jack"".so """" " fi @@ -14535,10 +15833,10 @@ fi if test $jack = yes -a $speex = no then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You are going to compile JACK but you do not have SPEEX compiled in. + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You are going to compile JACK but you do not have SPEEX compiled in. It is recommended to compile also SPEEX library and rerun this script in order to enable resampling (if needed)." >&5 -$as_echo "$as_me: WARNING: *** You are going to compile JACK but you do not have SPEEX compiled in. +printf "%s\n" "$as_me: WARNING: *** You are going to compile JACK but you do not have SPEEX compiled in. It is recommended to compile also SPEEX library and rerun this script in order to enable resampling (if needed)." >&2;} fi @@ -14552,59 +15850,67 @@ fi # ALSA # # Check whether --enable-alsa was given. -if test "${enable_alsa+set}" = set; then : +if test ${enable_alsa+y} +then : enableval=$enable_alsa; alsa_req=$enableval -else - alsa_req=$build_default +else case e in #( + e) alsa_req=$build_default ;; +esac fi -ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" -if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" +if test "x$ac_cv_header_alsa_asoundlib_h" = xyes +then : fi - SAVED_LIBS=$LIBS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5 -$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; } -if ${ac_cv_lib_asound_snd_pcm_open+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5 +printf %s "checking for snd_pcm_open in -lasound... " >&6; } +if test ${ac_cv_lib_asound_snd_pcm_open+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lasound $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char snd_pcm_open (); +char snd_pcm_open (void); int -main () +main (void) { return snd_pcm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_asound_snd_pcm_open=yes -else - ac_cv_lib_asound_snd_pcm_open=no +else case e in #( + e) ac_cv_lib_asound_snd_pcm_open=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5 -$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; } -if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBASOUND 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5 +printf "%s\n" "$ac_cv_lib_asound_snd_pcm_open" >&6; } +if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes +then : + printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h LIBS="-lasound $LIBS" @@ -14615,13 +15921,13 @@ if test "$alsa_req" != no -a "$ac_cv_header_alsa_asoundlib_h" = yes -a "$ac_cv_l then alsa=yes -$as_echo "#define HAVE_ALSA 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALSA 1" >>confdefs.h ALSA_CAP_OBJ="src/audio/capture/alsa.o" ALSA_PLAY_OBJ="src/audio/playback/alsa.o" ALSA_LIB="-lasound" - TARGET=$(MODULE_NAME ""acap_alsa"") + TARGET="lib/ultragrid/ultragrid_""acap_alsa"".so" LIB_OBJS=$LIB_OBJS" ""$ALSA_CAP_OBJ" LIB_MODULES=$LIB_MODULES" ""$ALSA_LIB" if test x"acap_alsa" != x; then @@ -14644,7 +15950,7 @@ $TARGET: ""$ALSA_CAP_OBJ"" fi - TARGET=$(MODULE_NAME ""aplay_alsa"") + TARGET="lib/ultragrid/ultragrid_""aplay_alsa"".so" LIB_OBJS=$LIB_OBJS" ""$ALSA_PLAY_OBJ" LIB_MODULES=$LIB_MODULES" ""$ALSA_LIB" if test x"aplay_alsa" != x; then @@ -14681,41 +15987,42 @@ COREAUDIO_OBJ= coreaudio=no # Check whether --enable-coreaudio was given. -if test "${enable_coreaudio+set}" = set; then : +if test ${enable_coreaudio+y} +then : enableval=$enable_coreaudio; coreaudio_req=$enableval -else - coreaudio_req=$build_default - +else case e in #( + e) coreaudio_req=$build_default + ;; +esac fi case $host_os in *darwin*) - for ac_header in AudioUnit/AudioUnit.h + for ac_header in AudioUnit/AudioUnit.h do : - ac_fn_c_check_header_mongrel "$LINENO" "AudioUnit/AudioUnit.h" "ac_cv_header_AudioUnit_AudioUnit_h" "$ac_includes_default" -if test "x$ac_cv_header_AudioUnit_AudioUnit_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_AUDIOUNIT_AUDIOUNIT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "AudioUnit/AudioUnit.h" "ac_cv_header_AudioUnit_AudioUnit_h" "$ac_includes_default" +if test "x$ac_cv_header_AudioUnit_AudioUnit_h" = xyes +then : + printf "%s\n" "#define HAVE_AUDIOUNIT_AUDIOUNIT_H 1" >>confdefs.h FOUND_AUDIOUNIT_H=yes -else - echo "AudioUnit headers not found." +else case e in #( + e) echo "AudioUnit headers not found." ;; +esac fi done - if test $coreaudio_req != no -a $FOUND_AUDIOUNIT_H = yes then COREAUDIO_LIB="-framework CoreAudio -framework AudioUnit -framework AVFoundation" COREAUDIO_OBJ="src/audio/capture/coreaudio.o src/audio/playback/coreaudio.o" coreaudio=yes -$as_echo "#define HAVE_COREAUDIO 1" >>confdefs.h +printf "%s\n" "#define HAVE_COREAUDIO 1" >>confdefs.h - TARGET=$(MODULE_NAME """") + TARGET="lib/ultragrid/ultragrid_"""".so" LIB_OBJS=$LIB_OBJS" ""$COREAUDIO_OBJ" LIB_MODULES=$LIB_MODULES" ""$COREAUDIO_LIB" if test x"" != x; then @@ -14743,10 +16050,10 @@ esac if test $coreaudio = yes -a $speex = no then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You are going to compile CoreAudio but you do not have SPEEX compiled in. + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You are going to compile CoreAudio but you do not have SPEEX compiled in. It is recommended to compile also SPEEX library and rerun this script in order to enable resampling (if needed)." >&5 -$as_echo "$as_me: WARNING: *** You are going to compile CoreAudio but you do not have SPEEX compiled in. +printf "%s\n" "$as_me: WARNING: *** You are going to compile CoreAudio but you do not have SPEEX compiled in. It is recommended to compile also SPEEX library and rerun this script in order to enable resampling (if needed)." >&2;} fi @@ -14764,11 +16071,13 @@ SCALE_OBJ= scale=no # Check whether --enable-scale was given. -if test "${enable_scale+set}" = set; then : +if test ${enable_scale+y} +then : enableval=$enable_scale; scale_req=$enableval -else - scale_req=$build_default - +else case e in #( + e) scale_req=$build_default + ;; +esac fi @@ -14778,7 +16087,7 @@ then SCALE_LIB="$SCALE_LIB $OPENGL_LIB" SCALE_OBJ="$SCALE_OBJ $GL_COMMON_OBJ src/vo_postprocess/scale.o" - TARGET=$(MODULE_NAME ""vo_pp_scale"") + TARGET="lib/ultragrid/ultragrid_""vo_pp_scale"".so" LIB_OBJS=$LIB_OBJS" ""$SCALE_OBJ" LIB_MODULES=$LIB_MODULES" ""$SCALE_LIB" if test x"vo_pp_scale" != x; then @@ -14801,7 +16110,7 @@ $TARGET: ""$SCALE_OBJ"" fi -$as_echo "#define HAVE_SCALE 1" >>confdefs.h +printf "%s\n" "#define HAVE_SCALE 1" >>confdefs.h fi @@ -14820,27 +16129,29 @@ text=no # Check whether --enable-text was given. -if test "${enable_text+set}" = set; then : +if test ${enable_text+y} +then : enableval=$enable_text; text_req=$enableval -else - text_req=$build_default - +else case e in #( + e) text_req=$build_default + ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MagickWand" >&5 -$as_echo_n "checking for MagickWand... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MagickWand" >&5 +printf %s "checking for MagickWand... " >&6; } if test -n "$TEXT_CFLAGS"; then pkg_cv_TEXT_CFLAGS="$TEXT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand\""; } >&5 ($PKG_CONFIG --exists --print-errors "MagickWand") 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 pkg_cv_TEXT_CFLAGS=`$PKG_CONFIG --cflags "MagickWand" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -14854,10 +16165,10 @@ if test -n "$TEXT_LIBS"; then pkg_cv_TEXT_LIBS="$TEXT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand\""; } >&5 ($PKG_CONFIG --exists --print-errors "MagickWand") 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 pkg_cv_TEXT_LIBS=`$PKG_CONFIG --libs "MagickWand" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -14871,8 +16182,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -14880,24 +16191,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - TEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickWand" 2>&1` + TEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickWand" 2>&1` else - TEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickWand" 2>&1` + TEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickWand" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$TEXT_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$TEXT_PKG_ERRORS" >&5 - FOUND_TEXT_DEPS=no + FOUND_TEXT_DEPS=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_TEXT_DEPS=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_TEXT_DEPS=no else - TEXT_CFLAGS=$pkg_cv_TEXT_CFLAGS - TEXT_LIBS=$pkg_cv_TEXT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_TEXT_DEPS=yes + TEXT_CFLAGS=$pkg_cv_TEXT_CFLAGS + TEXT_LIBS=$pkg_cv_TEXT_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_TEXT_DEPS=yes fi if test $text_req != no -a "$FOUND_TEXT_DEPS" = yes @@ -14908,7 +16219,7 @@ then TEXT_OBJ="$TEXT_OBJ src/vo_postprocess/text.o" CFLAGS="$CFLAGS $MAGICKWAND_CFLAGS" - TARGET=$(MODULE_NAME ""vo_pp_text"") + TARGET="lib/ultragrid/ultragrid_""vo_pp_text"".so" LIB_OBJS=$LIB_OBJS" ""$TEXT_OBJ" LIB_MODULES=$LIB_MODULES" ""$TEXT_LIB" if test x"vo_pp_text" != x; then @@ -14931,21 +16242,21 @@ $TARGET: ""$TEXT_OBJ"" fi -$as_echo "#define HAVE_TEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_TEXT 1" >>confdefs.h pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MagickWand > 7" >&5 -$as_echo_n "checking for MagickWand > 7... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MagickWand > 7" >&5 +printf %s "checking for MagickWand > 7... " >&6; } if test -n "$WAND7_CFLAGS"; then pkg_cv_WAND7_CFLAGS="$WAND7_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand > 7\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand > 7\""; } >&5 ($PKG_CONFIG --exists --print-errors "MagickWand > 7") 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 pkg_cv_WAND7_CFLAGS=`$PKG_CONFIG --cflags "MagickWand > 7" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -14959,10 +16270,10 @@ if test -n "$WAND7_LIBS"; then pkg_cv_WAND7_LIBS="$WAND7_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand > 7\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand > 7\""; } >&5 ($PKG_CONFIG --exists --print-errors "MagickWand > 7") 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 pkg_cv_WAND7_LIBS=`$PKG_CONFIG --libs "MagickWand > 7" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -14976,8 +16287,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -14985,28 +16296,28 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - WAND7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickWand > 7" 2>&1` + WAND7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickWand > 7" 2>&1` else - WAND7_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickWand > 7" 2>&1` + WAND7_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickWand > 7" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$WAND7_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$WAND7_PKG_ERRORS" >&5 - FOUND_WAND7=NO + FOUND_WAND7=NO elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_WAND7=NO + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_WAND7=NO else - WAND7_CFLAGS=$pkg_cv_WAND7_CFLAGS - WAND7_LIBS=$pkg_cv_WAND7_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_WAND7=yes + WAND7_CFLAGS=$pkg_cv_WAND7_CFLAGS + WAND7_LIBS=$pkg_cv_WAND7_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_WAND7=yes fi if test "$FOUND_WAND7" = yes; then -$as_echo "#define WAND7 1" >>confdefs.h +printf "%s\n" "#define WAND7 1" >>confdefs.h fi fi @@ -15028,20 +16339,24 @@ QMAKE= #qmake # default for most distributions # Check whether --enable-qt was given. -if test "${enable_qt+set}" = set; then : +if test ${enable_qt+y} +then : enableval=$enable_qt; qt_req=$enableval -else - qt_req=$build_default - +else case e in #( + e) qt_req=$build_default + ;; +esac fi # Check whether --enable-static-qt was given. -if test "${enable_static_qt+set}" = set; then : +if test ${enable_static_qt+y} +then : enableval=$enable_static_qt; static_qt=$enableval -else - static_qt=no - +else case e in #( + e) static_qt=no + ;; +esac fi @@ -15054,17 +16369,17 @@ if test $static_qt = yes; then fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_GUI_DEP" >&5 -$as_echo_n "checking for $QT_GUI_DEP... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $QT_GUI_DEP" >&5 +printf %s "checking for $QT_GUI_DEP... " >&6; } if test -n "$QT_CFLAGS"; then pkg_cv_QT_CFLAGS="$QT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$QT_GUI_DEP\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$QT_GUI_DEP\""; } >&5 ($PKG_CONFIG --exists --print-errors "$QT_GUI_DEP") 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 pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "$QT_GUI_DEP" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -15078,10 +16393,10 @@ if test -n "$QT_LIBS"; then pkg_cv_QT_LIBS="$QT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$QT_GUI_DEP\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$QT_GUI_DEP\""; } >&5 ($PKG_CONFIG --exists --print-errors "$QT_GUI_DEP") 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 pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "$QT_GUI_DEP" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -15095,8 +16410,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -15104,24 +16419,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$QT_GUI_DEP" 2>&1` + QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$QT_GUI_DEP" 2>&1` else - QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$QT_GUI_DEP" 2>&1` + QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$QT_GUI_DEP" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$QT_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$QT_PKG_ERRORS" >&5 - FOUND_QT_DEP=no + FOUND_QT_DEP=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_QT_DEP=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_QT_DEP=no else - QT_CFLAGS=$pkg_cv_QT_CFLAGS - QT_LIBS=$pkg_cv_QT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_QT_DEP=yes + QT_CFLAGS=$pkg_cv_QT_CFLAGS + QT_LIBS=$pkg_cv_QT_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_QT_DEP=yes fi PKG_CONFIG=$SAVED_PKG_CONFIG @@ -15132,7 +16447,7 @@ then CFLAGS="$QT_CFLAGS $CFLAGS" - TARGET=$(MODULE_NAME ""display_preview"") + TARGET="lib/ultragrid/ultragrid_""display_preview"".so" LIB_OBJS=$LIB_OBJS" ""src/video_display/preview.o src/shared_mem_frame.o" LIB_MODULES=$LIB_MODULES" ""$QT_LIBS" if test x"display_preview" != x; then @@ -15155,7 +16470,7 @@ $TARGET: ""src/video_display/preview.o src/shared_mem_frame.o"" fi - TARGET=$(MODULE_NAME ""capture_filter_preview"") + TARGET="lib/ultragrid/ultragrid_""capture_filter_preview"".so" LIB_OBJS=$LIB_OBJS" ""src/capture_filter/preview.o src/shared_mem_frame.o" LIB_MODULES=$LIB_MODULES" ""$QT_LIBS $GL_LIB" if test x"capture_filter_preview" != x; then @@ -15185,12 +16500,18 @@ fi for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in qtchooser; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in qtchooser + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_QTCHOOSER="$as_dir/$ac_prog$ac_exec_ext" + ac_path_QTCHOOSER="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_QTCHOOSER" || continue -if $ac_path_QTCHOOSER --run-tool=qmake --qt=5 | grep QMake > /dev/null; then : +if $ac_path_QTCHOOSER --run-tool=qmake --qt=5 | grep QMake > /dev/null +then : QMAKE="$ac_path_QTCHOOSER --run-tool=qmake --qt=5" fi $ac_path_QTCHOOSER_found && break 3 @@ -15212,12 +16533,13 @@ fi 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_path_QMAKE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $QMAKE in +{ 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_QMAKE+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $QMAKE in [\\/]* | ?:[\\/]*) ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path. ;; @@ -15227,11 +16549,15 @@ as_dummy="/usr/lib/qt5/bin:$PATH" 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_QMAKE="$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_QMAKE="$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 @@ -15239,15 +16565,16 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi QMAKE=$ac_cv_path_QMAKE if test -n "$QMAKE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 -$as_echo "$QMAKE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 +printf "%s\n" "$QMAKE" >&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 @@ -15288,28 +16615,30 @@ found_v4l2=no # Check whether --enable-v4l2 was given. -if test "${enable_v4l2+set}" = set; then : +if test ${enable_v4l2+y} +then : enableval=$enable_v4l2; v4l2_req=$enableval -else - v4l2_req=$build_default - +else case e in #( + e) v4l2_req=$build_default + ;; +esac fi if test $system = Linux; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l2 libv4lconvert" >&5 -$as_echo_n "checking for libv4l2 libv4lconvert... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libv4l2 libv4lconvert" >&5 +printf %s "checking for libv4l2 libv4lconvert... " >&6; } if test -n "$V4L2_CFLAGS"; then pkg_cv_V4L2_CFLAGS="$V4L2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l2 libv4lconvert\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l2 libv4lconvert\""; } >&5 ($PKG_CONFIG --exists --print-errors "libv4l2 libv4lconvert") 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 pkg_cv_V4L2_CFLAGS=`$PKG_CONFIG --cflags "libv4l2 libv4lconvert" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -15323,10 +16652,10 @@ if test -n "$V4L2_LIBS"; then pkg_cv_V4L2_LIBS="$V4L2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l2 libv4lconvert\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l2 libv4lconvert\""; } >&5 ($PKG_CONFIG --exists --print-errors "libv4l2 libv4lconvert") 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 pkg_cv_V4L2_LIBS=`$PKG_CONFIG --libs "libv4l2 libv4lconvert" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -15340,8 +16669,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -15349,24 +16678,24 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - V4L2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libv4l2 libv4lconvert" 2>&1` + V4L2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libv4l2 libv4lconvert" 2>&1` else - V4L2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libv4l2 libv4lconvert" 2>&1` + V4L2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libv4l2 libv4lconvert" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$V4L2_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$V4L2_PKG_ERRORS" >&5 - found_v4l2=no + found_v4l2=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - found_v4l2=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + found_v4l2=no else - V4L2_CFLAGS=$pkg_cv_V4L2_CFLAGS - V4L2_LIBS=$pkg_cv_V4L2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - found_v4l2=yes + V4L2_CFLAGS=$pkg_cv_V4L2_CFLAGS + V4L2_LIBS=$pkg_cv_V4L2_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + found_v4l2=yes fi fi @@ -15374,10 +16703,10 @@ if test $v4l2_req != no -a $found_v4l2 = yes then V4L2_OBJ="src/video_capture/v4l2.o" -$as_echo "#define HAVE_V4L2 1" >>confdefs.h +printf "%s\n" "#define HAVE_V4L2 1" >>confdefs.h - TARGET=$(MODULE_NAME ""vidcap_v4l2"") + TARGET="lib/ultragrid/ultragrid_""vidcap_v4l2"".so" LIB_OBJS=$LIB_OBJS" ""$V4L2_OBJ" LIB_MODULES=$LIB_MODULES" ""$V4L2_LIBS" if test x"vidcap_v4l2" != x; then @@ -15412,20 +16741,22 @@ fi # ----------------------------------------------------------------------------- wasapi=no # Check whether --enable-wasapi was given. -if test "${enable_wasapi+set}" = set; then : +if test ${enable_wasapi+y} +then : enableval=$enable_wasapi; wasapi_req=$enableval -else - wasapi_req=$build_default - +else case e in #( + e) wasapi_req=$build_default + ;; +esac fi if test $system = Windows -a $wasapi_req != no; then -$as_echo "#define HAVE_WASAPI 1" >>confdefs.h +printf "%s\n" "#define HAVE_WASAPI 1" >>confdefs.h - TARGET=$(MODULE_NAME ""aplay_wasapi"") + TARGET="lib/ultragrid/ultragrid_""aplay_wasapi"".so" LIB_OBJS=$LIB_OBJS" ""src/audio/capture/wasapi.o src/audio/playback/wasapi.o" LIB_MODULES=$LIB_MODULES" """ if test x"aplay_wasapi" != x; then @@ -15458,11 +16789,13 @@ fi # iHDTV # ------------------------------------------------------------------------------------------------- # Check whether --enable-ihdtv was given. -if test "${enable_ihdtv+set}" = set; then : +if test ${enable_ihdtv+y} +then : enableval=$enable_ihdtv; ihdtv_req=$enableval -else - ihdtv_req=no - +else case e in #( + e) ihdtv_req=no + ;; +esac fi ihdtv=no @@ -15470,7 +16803,7 @@ ihdtv=no if test $ihdtv_req = yes then -$as_echo "#define HAVE_IHDTV 1" >>confdefs.h +printf "%s\n" "#define HAVE_IHDTV 1" >>confdefs.h ihdtv=yes fi @@ -15484,7 +16817,7 @@ shared_decoder=no if test $shared_decoder = yes then -$as_echo "#define SHARED_DECODER 1" >>confdefs.h +printf "%s\n" "#define SHARED_DECODER 1" >>confdefs.h fi @@ -15493,27 +16826,29 @@ fi # ------------------------------------------------------------------------------------------------- crypto=no # Check whether --enable-openssl was given. -if test "${enable_openssl+set}" = set; then : +if test ${enable_openssl+y} +then : enableval=$enable_openssl; crypto_req=$enableval -else - crypto_req=$build_default - +else case e in #( + e) crypto_req=$build_default + ;; +esac fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5 -$as_echo_n "checking for libcrypto... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5 +printf %s "checking for libcrypto... " >&6; } if test -n "$CRYPTO_CFLAGS"; then pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcrypto") 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 pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -15527,10 +16862,10 @@ if test -n "$CRYPTO_LIBS"; then pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcrypto") 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 pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -15544,8 +16879,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -15553,40 +16888,41 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1` + CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1` else - CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1` + CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$CRYPTO_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$CRYPTO_PKG_ERRORS" >&5 - FOUND_CRYPTO_PC=no + FOUND_CRYPTO_PC=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND_CRYPTO_PC=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + FOUND_CRYPTO_PC=no else - CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS - CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - FOUND_CRYPTO_PC=yes + CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS + CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + FOUND_CRYPTO_PC=yes fi if test "$FOUND_CRYPTO_PC" = yes; then SAVED_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $CRYPTO_CFLAGS" - ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default" -if test "x$ac_cv_header_openssl_aes_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_aes_h" = xyes +then : FOUND_CRYPTO_H=yes -else - FOUND_CRYPTO_H=no +else case e in #( + e) FOUND_CRYPTO_H=no ;; +esac fi - if test $FOUND_CRYPTO_H = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto.pc found but openssl/aes.h is not present. This is usually caused by presence of /usr/lib/pkgconfig/libcrypto.pc on macOS. If encryption is requested, install openssl from Homebrew and set PKG_CONFIG_PATH accordingly (see 'brew ln openssl')." >&5 -$as_echo "$as_me: WARNING: libcrypto.pc found but openssl/aes.h is not present. This is usually caused by presence of /usr/lib/pkgconfig/libcrypto.pc on macOS. If encryption is requested, install openssl from Homebrew and set PKG_CONFIG_PATH accordingly (see 'brew ln openssl')." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto.pc found but openssl/aes.h is not present. This is usually caused by presence of /usr/lib/pkgconfig/libcrypto.pc on macOS. If encryption is requested, install openssl from Homebrew and set PKG_CONFIG_PATH accordingly (see 'brew ln openssl')." >&5 +printf "%s\n" "$as_me: WARNING: libcrypto.pc found but openssl/aes.h is not present. This is usually caused by presence of /usr/lib/pkgconfig/libcrypto.pc on macOS. If encryption is requested, install openssl from Homebrew and set PKG_CONFIG_PATH accordingly (see 'brew ln openssl')." >&2;} fi CFLAGS=$SAVED_CFLAGS fi @@ -15598,7 +16934,7 @@ if test $crypto_req != no -a "$FOUND_CRYPTO_PC" = yes -a "$FOUND_CRYPTO_H" = yes CXXFLAGS="$CXXFLAGS $CRYPTO_CFLAGS" CPPFLAGS="$CPPFLAGS $CRYPTO_CFLAGS" - TARGET=$(MODULE_NAME ""openssl"") + TARGET="lib/ultragrid/ultragrid_""openssl"".so" LIB_OBJS=$LIB_OBJS" ""$OPENSSL_OBJ" LIB_MODULES=$LIB_MODULES" ""$CRYPTO_LIBS" if test x"openssl" != x; then @@ -15622,16 +16958,12 @@ fi SAVED_LIBS=$LIBS LIBS="$LIBS $CRYPTO_LIBS" - for ac_func in AES_ctr128_encrypt -do : - ac_fn_c_check_func "$LINENO" "AES_ctr128_encrypt" "ac_cv_func_AES_ctr128_encrypt" -if test "x$ac_cv_func_AES_ctr128_encrypt" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_AES_CTR128_ENCRYPT 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "AES_ctr128_encrypt" "ac_cv_func_AES_ctr128_encrypt" +if test "x$ac_cv_func_AES_ctr128_encrypt" = xyes +then : + printf "%s\n" "#define HAVE_AES_CTR128_ENCRYPT 1" >>confdefs.h fi -done LIBS=$SAVED_LIBS fi @@ -15645,11 +16977,13 @@ fi # ------------------------------------------------------------------------------------------------- ldgm_gpu=no # Check whether --enable-ldgm-gpu was given. -if test "${enable_ldgm_gpu+set}" = set; then : +if test ${enable_ldgm_gpu+y} +then : enableval=$enable_ldgm_gpu; ldgm_gpu_req=$enableval -else - ldgm_gpu_req=$build_default - +else case e in #( + e) ldgm_gpu_req=$build_default + ;; +esac fi @@ -15658,7 +16992,7 @@ then if test -z "$cuda_var_defined"; then -$as_echo "#define HAVE_CUDA 1" >>confdefs.h +printf "%s\n" "#define HAVE_CUDA 1" >>confdefs.h if test $system = Windows; then # It is twice by intent - as an object to force dependency @@ -15687,7 +17021,7 @@ to your .bashrc file (in home directory). To take effect immediatelly, you will fi -$as_echo "#define HAVE_LDGM_GPU 1" >>confdefs.h +printf "%s\n" "#define HAVE_LDGM_GPU 1" >>confdefs.h LDGM_GPU_OBJS="ldgm/src/ldgm-session-gpu.o src/rtp/ldgm_gpu.o $CUDA_COMMON_OBJ" LDGM_GPU_LIBS="$CUDA_COMMON_LIB $CUDA_LIB" @@ -15699,7 +17033,7 @@ $as_echo "#define HAVE_LDGM_GPU 1" >>confdefs.h LDGM_GPU_OBJS="$LDGM_GPU_OBJS ldgm/src/gpu.$CU_OBJ_SUFFIX" fi - TARGET=$(MODULE_NAME ""ldgm_gpu"") + TARGET="lib/ultragrid/ultragrid_""ldgm_gpu"".so" LIB_OBJS=$LIB_OBJS" ""$LDGM_GPU_OBJS" LIB_MODULES=$LIB_MODULES" ""$LDGM_GPU_LIBS" if test x"ldgm_gpu" != x; then @@ -15738,47 +17072,53 @@ fi # ------------------------------------------------------------------------------------------------- syphon=no # Check whether --enable-syphon was given. -if test "${enable_syphon+set}" = set; then : +if test ${enable_syphon+y} +then : enableval=$enable_syphon; syphon_req=$enableval -else - syphon_req=$build_default - +else case e in #( + e) syphon_req=$build_default + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -framework Syphon works" >&5 -$as_echo_n "checking if -framework Syphon works... " >&6; } -if ${my_cv_framework_Syphon+:} false; then : - $as_echo_n "(cached) " >&6 -else - save_LIBS="$LIBS" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -framework Syphon works" >&5 +printf %s "checking if -framework Syphon works... " >&6; } +if test ${my_cv_framework_Syphon+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) save_LIBS="$LIBS" LIBS="$LIBS -framework Syphon" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : my_cv_framework_Syphon=yes -else - my_cv_framework_Syphon=no +else case e in #( + e) my_cv_framework_Syphon=no ;; +esac 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 - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_Syphon" >&5 -$as_echo "$my_cv_framework_Syphon" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_Syphon" >&5 +printf "%s\n" "$my_cv_framework_Syphon" >&6; } LIBS="$save_LIBS" if test "$my_cv_framework_Syphon"="yes"; then -$as_echo "#define HAVE_FRAMEWORK_SYPHON 1" >>confdefs.h +printf "%s\n" "#define HAVE_FRAMEWORK_SYPHON 1" >>confdefs.h FRAMEWORK_SYPHON="-framework Syphon" @@ -15787,7 +17127,7 @@ $as_echo "#define HAVE_FRAMEWORK_SYPHON 1" >>confdefs.h if test $syphon_req != no -a $my_cv_framework_Syphon = yes then -$as_echo "#define HAVE_SYPHON 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYPHON 1" >>confdefs.h LIBS="$LIBS -framework Syphon" OBJS="$OBJS src/syphon_server.o src/video_capture/syphon.o" @@ -15805,54 +17145,64 @@ fi # ------------------------------------------------------------------------------ spout=no # Check whether --enable-spout was given. -if test "${enable_spout+set}" = set; then : +if test ${enable_spout+y} +then : enableval=$enable_spout; spout_req=$enableval -else - spout_req=$build_default - +else case e in #( + e) spout_req=$build_default + ;; +esac fi FOUND_SPOUT_WRAPPER=no if test $system = Windows then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spout_create_receiver in -lspout_wrapper" >&5 -$as_echo_n "checking for spout_create_receiver in -lspout_wrapper... " >&6; } -if ${ac_cv_lib_spout_wrapper_spout_create_receiver+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for spout_create_receiver in -lspout_wrapper" >&5 +printf %s "checking for spout_create_receiver in -lspout_wrapper... " >&6; } +if test ${ac_cv_lib_spout_wrapper_spout_create_receiver+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lspout_wrapper $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char spout_create_receiver (); +char spout_create_receiver (void); int -main () +main (void) { return spout_create_receiver (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_spout_wrapper_spout_create_receiver=yes -else - ac_cv_lib_spout_wrapper_spout_create_receiver=no +else case e in #( + e) ac_cv_lib_spout_wrapper_spout_create_receiver=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spout_wrapper_spout_create_receiver" >&5 -$as_echo "$ac_cv_lib_spout_wrapper_spout_create_receiver" >&6; } -if test "x$ac_cv_lib_spout_wrapper_spout_create_receiver" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spout_wrapper_spout_create_receiver" >&5 +printf "%s\n" "$ac_cv_lib_spout_wrapper_spout_create_receiver" >&6; } +if test "x$ac_cv_lib_spout_wrapper_spout_create_receiver" = xyes +then : FOUND_SPOUT_WRAPPER=yes fi @@ -15861,7 +17211,7 @@ fi if test $spout_req != no -a "$OPENGL" = yes -a $FOUND_SPOUT_WRAPPER = yes then -$as_echo "#define HAVE_SPOUT 1" >>confdefs.h +printf "%s\n" "#define HAVE_SPOUT 1" >>confdefs.h LIBS="$LIBS -lspout_wrapper" OBJS="$OBJS src/video_capture/spout.o" @@ -15878,11 +17228,13 @@ fi video_mix=no # Check whether --enable-video-mixer was given. -if test "${enable_video_mixer+set}" = set; then : +if test ${enable_video_mixer+y} +then : enableval=$enable_video_mixer; video_mix_req=$enableval -else - video_mix_req=$build_default - +else case e in #( + e) video_mix_req=$build_default + ;; +esac fi @@ -15896,12 +17248,13 @@ fi if test $video_mix_req != no -a $FOUND_VIDEO_MIX_DEP = yes -a x$OPENCV_MAJOR = x3 then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopencv_cudawarping" >&5 -$as_echo_n "checking for main in -lopencv_cudawarping... " >&6; } -if ${ac_cv_lib_opencv_cudawarping_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lopencv_cudawarping" >&5 +printf %s "checking for main in -lopencv_cudawarping... " >&6; } +if test ${ac_cv_lib_opencv_cudawarping_main+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lopencv_cudawarping $VIDEO_MIX_LIBS $LIBS" @@ -15910,51 +17263,57 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_opencv_cudawarping_main=yes -else - ac_cv_lib_opencv_cudawarping_main=no +else case e in #( + e) ac_cv_lib_opencv_cudawarping_main=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencv_cudawarping_main" >&5 -$as_echo "$ac_cv_lib_opencv_cudawarping_main" >&6; } -if test "x$ac_cv_lib_opencv_cudawarping_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencv_cudawarping_main" >&5 +printf "%s\n" "$ac_cv_lib_opencv_cudawarping_main" >&6; } +if test "x$ac_cv_lib_opencv_cudawarping_main" = xyes +then : VIDEO_MIX_LIBS="$VIDEO_MIX_LIBS -lopencv_cudawarping " -$as_echo "#define HAVE_OPENCV_CUDA 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_CUDA 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Video mixer will be compiled as CPU-only" >&5 -$as_echo "$as_me: WARNING: Video mixer will be compiled as CPU-only" >&2;} - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Video mixer will be compiled as CPU-only" >&5 +printf "%s\n" "$as_me: WARNING: Video mixer will be compiled as CPU-only" >&2;} + ;; +esac fi elif test x$OPENCV_MAJOR != x3 then - ac_fn_c_check_header_mongrel "$LINENO" "opencv2/gpu/gpu.hpp" "ac_cv_header_opencv2_gpu_gpu_hpp" "$ac_includes_default" -if test "x$ac_cv_header_opencv2_gpu_gpu_hpp" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "opencv2/gpu/gpu.hpp" "ac_cv_header_opencv2_gpu_gpu_hpp" "$ac_includes_default" +if test "x$ac_cv_header_opencv2_gpu_gpu_hpp" = xyes +then : -$as_echo "#define HAVE_OPENCV_CUDA 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENCV_CUDA 1" >>confdefs.h -else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Video mixer will be compiled as CPU-only" >&5 -$as_echo "$as_me: WARNING: Video mixer will be compiled as CPU-only" >&2;} +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Video mixer will be compiled as CPU-only" >&5 +printf "%s\n" "$as_me: WARNING: Video mixer will be compiled as CPU-only" >&2;} ;; +esac fi - fi if test $video_mix_req != no -a $FOUND_VIDEO_MIX_DEP = yes @@ -15963,7 +17322,7 @@ then CXXFLAGS="$CXXFLAGS ${VIDEO_MIX_CFLAGS}" VIDEO_MIX_OBJ="src/video_display/conference.o" - TARGET=$(MODULE_NAME ""display_video_mix"") + TARGET="lib/ultragrid/ultragrid_""display_video_mix"".so" LIB_OBJS=$LIB_OBJS" ""$VIDEO_MIX_OBJ" LIB_MODULES=$LIB_MODULES" ""$VIDEO_MIX_LIBS" if test x"display_video_mix" != x; then @@ -15996,11 +17355,13 @@ fi # BitFlow # ------------------------------------------------------------------------------------------------- # Check whether --enable-bitflow was given. -if test "${enable_bitflow+set}" = set; then : +if test ${enable_bitflow+y} +then : enableval=$enable_bitflow; bitflow_req=$enableval -else - bitflow_req=no - +else case e in #( + e) bitflow_req=no + ;; +esac fi @@ -16018,119 +17379,141 @@ fi # ------------------------------------------------------------------------------ cmpto_j2k=no # Check whether --enable-cmpto-j2k was given. -if test "${enable_cmpto_j2k+set}" = set; then : +if test ${enable_cmpto_j2k+y} +then : enableval=$enable_cmpto_j2k; cmpto_j2k_req=$enableval -else - cmpto_j2k_req=$build_default - +else case e in #( + e) cmpto_j2k_req=$build_default + ;; +esac fi -ac_fn_c_check_header_mongrel "$LINENO" "cmpto_j2k_enc.h" "ac_cv_header_cmpto_j2k_enc_h" "$ac_includes_default" -if test "x$ac_cv_header_cmpto_j2k_enc_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "cmpto_j2k_enc.h" "ac_cv_header_cmpto_j2k_enc_h" "$ac_includes_default" +if test "x$ac_cv_header_cmpto_j2k_enc_h" = xyes +then : FOUND_CMPTO_J2K_ENC_H=yes -else - FOUND_CMPTO_J2K_ENC_H=no +else case e in #( + e) FOUND_CMPTO_J2K_ENC_H=no ;; +esac fi - -ac_fn_c_check_header_mongrel "$LINENO" "cmpto_j2k_dec.h" "ac_cv_header_cmpto_j2k_dec_h" "$ac_includes_default" -if test "x$ac_cv_header_cmpto_j2k_dec_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "cmpto_j2k_dec.h" "ac_cv_header_cmpto_j2k_dec_h" "$ac_includes_default" +if test "x$ac_cv_header_cmpto_j2k_dec_h" = xyes +then : FOUND_CMPTO_J2K_DEC_H=yes -else - FOUND_CMPTO_J2K_DEC_H=no +else case e in #( + e) FOUND_CMPTO_J2K_DEC_H=no ;; +esac fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpto_j2k_enc_ctx_cfg_create in -lcmpto_j2k_enc" >&5 -$as_echo_n "checking for cmpto_j2k_enc_ctx_cfg_create in -lcmpto_j2k_enc... " >&6; } -if ${ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmpto_j2k_enc_ctx_cfg_create in -lcmpto_j2k_enc" >&5 +printf %s "checking for cmpto_j2k_enc_ctx_cfg_create in -lcmpto_j2k_enc... " >&6; } +if test ${ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcmpto_j2k_enc $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char cmpto_j2k_enc_ctx_cfg_create (); +char cmpto_j2k_enc_ctx_cfg_create (void); int -main () +main (void) { return cmpto_j2k_enc_ctx_cfg_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create=yes -else - ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create=no +else case e in #( + e) ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create" >&5 -$as_echo "$ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create" >&6; } -if test "x$ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create" >&5 +printf "%s\n" "$ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create" >&6; } +if test "x$ac_cv_lib_cmpto_j2k_enc_cmpto_j2k_enc_ctx_cfg_create" = xyes +then : FOUND_CMPTO_J2K_ENC_L=yes -else - FOUND_CMPTO_J2K_ENC_L=no +else case e in #( + e) FOUND_CMPTO_J2K_ENC_L=no ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpto_j2k_dec_ctx_cfg_create in -lcmpto_j2k_dec" >&5 -$as_echo_n "checking for cmpto_j2k_dec_ctx_cfg_create in -lcmpto_j2k_dec... " >&6; } -if ${ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmpto_j2k_dec_ctx_cfg_create in -lcmpto_j2k_dec" >&5 +printf %s "checking for cmpto_j2k_dec_ctx_cfg_create in -lcmpto_j2k_dec... " >&6; } +if test ${ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcmpto_j2k_dec $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char cmpto_j2k_dec_ctx_cfg_create (); +char cmpto_j2k_dec_ctx_cfg_create (void); int -main () +main (void) { return cmpto_j2k_dec_ctx_cfg_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create=yes -else - ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create=no +else case e in #( + e) ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create" >&5 -$as_echo "$ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create" >&6; } -if test "x$ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create" >&5 +printf "%s\n" "$ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create" >&6; } +if test "x$ac_cv_lib_cmpto_j2k_dec_cmpto_j2k_dec_ctx_cfg_create" = xyes +then : FOUND_CMPTO_J2K_DEC_L=yes -else - FOUND_CMPTO_J2K_DEC_L=no +else case e in #( + e) FOUND_CMPTO_J2K_DEC_L=no ;; +esac fi if test $cmpto_j2k_req != no -a "$FOUND_CMPTO_J2K_ENC_H" = yes -a "$FOUND_CMPTO_J2K_DEC_H" = yes -a "$FOUND_CMPTO_J2K_ENC_L" = yes -a "$FOUND_CMPTO_J2K_DEC_L" = yes then - TARGET=$(MODULE_NAME ""vcompress_cmpto_j2k"") + TARGET="lib/ultragrid/ultragrid_""vcompress_cmpto_j2k"".so" LIB_OBJS=$LIB_OBJS" ""src/video_compress/cmpto_j2k.o" LIB_MODULES=$LIB_MODULES" ""-lcmpto_j2k_enc" if test x"vcompress_cmpto_j2k" != x; then @@ -16153,7 +17536,7 @@ $TARGET: ""src/video_compress/cmpto_j2k.o"" fi - TARGET=$(MODULE_NAME ""vdecompress_cmpto_j2k"") + TARGET="lib/ultragrid/ultragrid_""vdecompress_cmpto_j2k"".so" LIB_OBJS=$LIB_OBJS" ""src/video_decompress/cmpto_j2k.o" LIB_MODULES=$LIB_MODULES" ""-lcmpto_j2k_dec" if test x"vdecompress_cmpto_j2k" != x; then @@ -16187,11 +17570,13 @@ fi # ------------------------------------------------------------------------------ ndi=no # Check whether --enable-ndi was given. -if test "${enable_ndi+set}" = set; then : +if test ${enable_ndi+y} +then : enableval=$enable_ndi; ndi_req=$enableval -else - ndi_req=$build_default - +else case e in #( + e) ndi_req=$build_default + ;; +esac fi @@ -16201,65 +17586,81 @@ else NDI_LIB=ndi fi -ac_fn_c_check_header_mongrel "$LINENO" "Processing.NDI.Lib.h" "ac_cv_header_Processing_NDI_Lib_h" "$ac_includes_default" -if test "x$ac_cv_header_Processing_NDI_Lib_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "Processing.NDI.Lib.h" "ac_cv_header_Processing_NDI_Lib_h" "$ac_includes_default" +if test "x$ac_cv_header_Processing_NDI_Lib_h" = xyes +then : FOUND_NDI_H=yes -else - FOUND_NDI_H=no +else case e in #( + e) FOUND_NDI_H=no ;; +esac fi - -as_ac_Lib=`$as_echo "ac_cv_lib_$NDI_LIB''_NDIlib_initialize" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NDIlib_initialize in -l$NDI_LIB" >&5 -$as_echo_n "checking for NDIlib_initialize in -l$NDI_LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +as_ac_Lib=`printf "%s\n" "ac_cv_lib_$NDI_LIB""_NDIlib_initialize" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NDIlib_initialize in -l$NDI_LIB" >&5 +printf %s "checking for NDIlib_initialize in -l$NDI_LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$NDI_LIB $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. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char NDIlib_initialize (); +char NDIlib_initialize (void); int -main () +main (void) { return NDIlib_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = 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_Lib"\" = x"yes" +then : FOUND_NDI_L=yes -else - FOUND_NDI_L=no +else case e in #( + e) FOUND_NDI_L=no ;; +esac fi -if test $ndi_req != no -a "$FOUND_NDI_H" = yes -a "$FOUND_NDI_L" = yes +# if NDI_SDK_DIR is defined in Windows, ignore autoconf tests +if test $ndi_req != no -a \( \( "$FOUND_NDI_H" = yes -a "$FOUND_NDI_L" = yes \) -o \( -n "$NDI_SDK_DIR" -a $system = Windows \) \) then + if test -n "$NDI_SDK_DIR" -a $system = Windows; then + COMMON_FLAGS="$COMMON_FLAGS -I\"$NDI_SDK_DIR/Include\"" + NDI_LIB_PATH="-L\"$NDI_SDK_DIR/Lib/x64\"" + DLL_LIBS="$DLL_LIBS \"$NDI_SDK_DIR/Bin/x64/Processing.NDI.Lib.x64.dll\"" + fi - TARGET=$(MODULE_NAME ""vidcap_ndi"") + TARGET="lib/ultragrid/ultragrid_""vidcap_ndi"".so" LIB_OBJS=$LIB_OBJS" ""src/video_capture/ndi.o" - LIB_MODULES=$LIB_MODULES" ""-l$NDI_LIB" + LIB_MODULES=$LIB_MODULES" ""-l$NDI_LIB $NDI_LIB_PATH" if test x"vidcap_ndi" != x; then IS_TARGET_TRUE= IS_TARGET_FALSE='#' @@ -16274,15 +17675,15 @@ fi TARGETS="$TARGETS $TARGET: ""src/video_capture/ndi.o"" \$(MKDIR_P) lib/ultragrid - \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""vidcap_ndi".so" ""src/video_capture/ndi.o"" -o lib/ultragrid/ultragrid_""vidcap_ndi"".so ""-l$NDI_LIB"" + \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""vidcap_ndi".so" ""src/video_capture/ndi.o"" -o lib/ultragrid/ultragrid_""vidcap_ndi"".so ""-l$NDI_LIB $NDI_LIB_PATH"" " fi - TARGET=$(MODULE_NAME ""display_ndi"") + TARGET="lib/ultragrid/ultragrid_""display_ndi"".so" LIB_OBJS=$LIB_OBJS" ""src/video_display/ndi.o" - LIB_MODULES=$LIB_MODULES" ""-l$NDI_LIB" + LIB_MODULES=$LIB_MODULES" ""-l$NDI_LIB $NDI_LIB_PATH" if test x"display_ndi" != x; then IS_TARGET_TRUE= IS_TARGET_FALSE='#' @@ -16297,7 +17698,7 @@ fi TARGETS="$TARGETS $TARGET: ""src/video_display/ndi.o"" \$(MKDIR_P) lib/ultragrid - \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""display_ndi".so" ""src/video_display/ndi.o"" -o lib/ultragrid/ultragrid_""display_ndi"".so ""-l$NDI_LIB"" + \$(LINKER) \$(LDFLAGS) -shared -Wl,-soname,ultragrid_""display_ndi".so" ""src/video_display/ndi.o"" -o lib/ultragrid/ultragrid_""display_ndi"".so ""-l$NDI_LIB $NDI_LIB_PATH"" " fi @@ -16319,11 +17720,13 @@ CINEFORM_LIB= cineform=no # Check whether --enable-cineform was given. -if test "${enable_cineform+set}" = set; then : +if test ${enable_cineform+y} +then : enableval=$enable_cineform; cineform_req=$enableval -else - cineform_req=$build_default - +else case e in #( + e) cineform_req=$build_default + ;; +esac fi @@ -16333,7 +17736,8 @@ fi # Check whether --with-cineform was given. -if test "${with_cineform+set}" = set; then : +if test ${with_cineform+y} +then : withval=$with_cineform; CINEFORM_PATH=$withval fi @@ -16345,46 +17749,48 @@ 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 CFHD_OpenDecoder in -lCFHDCodec" >&5 -$as_echo_n "checking for CFHD_OpenDecoder in -lCFHDCodec... " >&6; } -if ${ac_cv_lib_CFHDCodec_CFHD_OpenDecoder+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFHD_OpenDecoder in -lCFHDCodec" >&5 +printf %s "checking for CFHD_OpenDecoder in -lCFHDCodec... " >&6; } +if test ${ac_cv_lib_CFHDCodec_CFHD_OpenDecoder+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lCFHDCodec $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 CFHD_OpenDecoder (); +namespace conftest { + extern "C" int CFHD_OpenDecoder (); +} int -main () +main (void) { -return CFHD_OpenDecoder (); +return conftest::CFHD_OpenDecoder (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_CFHDCodec_CFHD_OpenDecoder=yes -else - ac_cv_lib_CFHDCodec_CFHD_OpenDecoder=no +else case e in #( + e) ac_cv_lib_CFHDCodec_CFHD_OpenDecoder=no ;; +esac 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 +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CFHDCodec_CFHD_OpenDecoder" >&5 -$as_echo "$ac_cv_lib_CFHDCodec_CFHD_OpenDecoder" >&6; } -if test "x$ac_cv_lib_CFHDCodec_CFHD_OpenDecoder" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CFHDCodec_CFHD_OpenDecoder" >&5 +printf "%s\n" "$ac_cv_lib_CFHDCodec_CFHD_OpenDecoder" >&6; } +if test "x$ac_cv_lib_CFHDCodec_CFHD_OpenDecoder" = xyes +then : FOUND_CINEFORM=yes; CINEFORM_LIB=-lCFHDCodec -else - FOUND_CINEFORM=no +else case e in #( + e) FOUND_CINEFORM=no ;; +esac fi ac_ext=c @@ -16406,31 +17812,35 @@ then if test -n "$CINEFORM_PATH" -a $cross_compile = no then - as_ac_File=`$as_echo "ac_cv_file_${CINEFORM_LIB}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CINEFORM_LIB}" >&5 -$as_echo_n "checking for ${CINEFORM_LIB}... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else - test "$cross_compiling" = yes && + as_ac_File=`printf "%s\n" "ac_cv_file_${CINEFORM_LIB}" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${CINEFORM_LIB}" >&5 +printf %s "checking for ${CINEFORM_LIB}... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${CINEFORM_LIB}"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" -fi +fi ;; +esac 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 : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_${CINEFORM_LIB}" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_${CINEFORM_LIB}" | sed "$as_sed_cpp"` 1 _ACEOF FOUND_CINEFORM=yes -else - FOUND_CINEFORM=no +else case e in #( + e) FOUND_CINEFORM=no ;; +esac fi fi @@ -16452,7 +17862,7 @@ then INC="$INC $CINEFORM_INC" - TARGET=$(MODULE_NAME ""vcompress_cineform"") + TARGET="lib/ultragrid/ultragrid_""vcompress_cineform"".so" LIB_OBJS=$LIB_OBJS" ""$CINEFORM_COMPRESS_OBJ" LIB_MODULES=$LIB_MODULES" ""$CINEFORM_LIB" if test x"vcompress_cineform" != x; then @@ -16475,7 +17885,7 @@ $TARGET: ""$CINEFORM_COMPRESS_OBJ"" fi - TARGET=$(MODULE_NAME ""vdecompress_cineform"") + TARGET="lib/ultragrid/ultragrid_""vdecompress_cineform"".so" LIB_OBJS=$LIB_OBJS" ""$CINEFORM_DECOMPRESS_OBJ" LIB_MODULES=$LIB_MODULES" ""$CINEFORM_LIB" if test x"vdecompress_cineform" != x; then @@ -16508,17 +17918,17 @@ fi # --------------------------------------------------------------------- pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cppunit" >&5 -$as_echo_n "checking for cppunit... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cppunit" >&5 +printf %s "checking for cppunit... " >&6; } if test -n "$CPPUNIT_CFLAGS"; then pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 ($PKG_CONFIG --exists --print-errors "cppunit") 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 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -16532,10 +17942,10 @@ if test -n "$CPPUNIT_LIBS"; then pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 ($PKG_CONFIG --exists --print-errors "cppunit") 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 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -16549,8 +17959,8 @@ fi if test $pkg_failed = yes; then - { $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; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -16558,28 +17968,28 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1` + CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1` else - CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1` + CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$CPPUNIT_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$CPPUNIT_PKG_ERRORS" >&5 - cppunit=no + cppunit=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - cppunit=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + cppunit=no else - CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS - CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - cppunit=yes + CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS + CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + cppunit=yes fi if test "$cppunit" = yes; then -$as_echo "#define HAVE_CPPUNIT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CPPUNIT 1" >>confdefs.h cppunit=yes else @@ -16688,7 +18098,6 @@ RESULT=`add_column "$RESULT" "DVS" $dvs $?` RESULT=`add_column "$RESULT" "File input" $file $?` RESULT=`add_column "$RESULT" "NDI" $ndi $?` RESULT=`add_column "$RESULT" "OpenGL" $gl_display $?` -RESULT=`add_column "$RESULT" "QuickTime" $quicktime $?` RESULT=`add_column "$RESULT" "RTSP capture client" $rtsp $?` RESULT=`add_column "$RESULT" "SAGE" $sage $?` RESULT=`add_column "$RESULT" "Screen capture" $screen_cap $?` @@ -16727,21 +18136,19 @@ RESULT=`add_column "$RESULT" "Text postprocess and filter" $text $?` RESULT=`add_column "$RESULT" "Swscale support" $libswscale $?` RESULT=`end_section "$RESULT"` -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: UltraGrid configuration summary ===============================" >&5 -$as_echo " +printf "%s\n" " UltraGrid configuration summary ===============================" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5 -$as_echo "$RESULT" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5 +printf "%s\n" "$RESULT" >&6; } RES_STR=`printf "$RESULT" | sed 's/$/\\\\n/' | tr -d '\n'` -cat >>confdefs.h <<_ACEOF -#define AUTOCONF_RESULT "$RES_STR" -_ACEOF +printf "%s\n" "#define AUTOCONF_RESULT \"$RES_STR\"" >>confdefs.h ac_config_headers="$ac_config_headers src/config.h" @@ -16758,8 +18165,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -16775,8 +18182,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) ;; #( @@ -16789,14 +18196,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -16806,15 +18213,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 @@ -16828,8 +18235,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 @@ -16846,7 +18253,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" @@ -16857,14 +18264,26 @@ LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 +printf "%s\n" "done" >&6; } +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; +esac +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi + if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' @@ -17136,8 +18555,8 @@ fi 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 @@ -17160,63 +18579,65 @@ 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 : +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 - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; 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&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 || @@ -17225,13 +18646,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 #(( @@ -17240,43 +18654,27 @@ 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 ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. 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] @@ -17289,9 +18687,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 @@ -17322,22 +18720,25 @@ 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 - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -17345,16 +18746,18 @@ 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 - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -17381,7 +18784,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 @@ -17403,6 +18806,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*) @@ -17416,6 +18823,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 @@ -17427,9 +18840,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -17457,7 +18870,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" @@ -17466,7 +18879,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 @@ -17510,10 +18923,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -17529,7 +18944,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by UltraGrid $as_me 1.6, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -17561,7 +18976,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -17591,14 +19006,16 @@ $config_commands Report bugs to ." _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="\\ UltraGrid config.status 1.6 -configured by $0, generated by GNU Autoconf 2.69, +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -17638,15 +19055,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'" @@ -17654,23 +19071,23 @@ 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;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + 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=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -17691,7 +19108,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 "\$@" @@ -17705,7 +19122,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 @@ -17713,7 +19130,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" +AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" _ACEOF @@ -17727,7 +19144,7 @@ do "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -17737,9 +19154,9 @@ 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_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree @@ -17747,7 +19164,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -17771,7 +19188,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -17929,13 +19346,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -18045,7 +19462,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -18067,33 +19484,33 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + 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 - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # 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 @@ -18110,7 +19527,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 @@ -18134,9 +19551,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/ ;; @@ -18198,8 +19615,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=' @@ -18212,7 +19629,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -18243,9 +19660,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" @@ -18261,20 +19678,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 @@ -18294,7 +19711,7 @@ $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$_am_arg" | +printf "%s\n" X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -18314,8 +19731,8 @@ $as_echo X"$_am_arg" | s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -18325,29 +19742,35 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac + # TODO: see whether this extra hack can be removed once we start + # requiring Autoconf 2.70 or later. + case $CONFIG_FILES in #( + *\'*) : + eval set x "$CONFIG_FILES" ;; #( + *) : + set x $CONFIG_FILES ;; #( + *) : + ;; +esac shift - for mf + # Used to flag and report bootstrapping failures. + am_rc=0 + for am_mf do # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line + am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile which includes + # dependency-tracking related rules and includes. + # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$mf" | + sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ + || continue + am_dirpart=`$as_dirname -- "$am_mf" || +$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$am_mf" : 'X\(//\)[^/]' \| \ + X"$am_mf" : 'X\(//\)$' \| \ + X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -18365,53 +19788,50 @@ $as_echo X"$mf" | q } s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + am_filepart=`$as_basename -- "$am_mf" || +$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ + X"$am_mf" : 'X\(//\)$' \| \ + X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X/"$am_mf" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } - /^X\(\/\/\)[^/].*/{ + /^X\/\(\/\/\)$/{ s//\1/ q } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ + /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` - as_dir=$dirpart/$fdir; as_fn_mkdir_p - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done + { echo "$as_me:$LINENO: cd "$am_dirpart" \ + && sed -e '/# am--include-marker/d' "$am_filepart" \ + | $MAKE -f - am--depfiles" >&5 + (cd "$am_dirpart" \ + && sed -e '/# am--include-marker/d' "$am_filepart" \ + | $MAKE -f - am--depfiles) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } || am_rc=$? done + if test $am_rc -ne 0; 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 $? "Something went wrong bootstrapping makefile fragments + for automatic dependency tracking. If GNU make was not used, consider + re-running the configure script with MAKE=\"gmake\" (or whatever is + necessary). You can also try re-running configure with the + '--disable-dependency-tracking' option to at least be able to build + the package (albeit without support for automatic dependency tracking). +See 'config.log' for more details" "$LINENO" 5; } + fi + { am_dirpart=; unset am_dirpart;} + { am_filepart=; unset am_filepart;} + { am_mf=; unset am_mf;} + { am_rc=; unset am_rc;} + rm -f conftest-deps.mk } ;; @@ -18448,8 +19868,9 @@ 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 + diff --git a/configure.ac b/configure.ac index c1d2f78bb..82855549c 100644 --- a/configure.ac +++ b/configure.ac @@ -266,11 +266,6 @@ static inline int posix_memalign(void **memptr, size_t alignment, size_t size) #define MAX(a,b) (((a)>(b))?(a):(b)) ]) -# @param $1 name of the module -function MODULE_NAME() { - echo "lib/ultragrid/ultragrid_"$1".so" -} - # Adds the module to UltraGrid build system. # @param $1 name of the module, should be in format _ unless # sure that the modular build won't take place @@ -278,7 +273,7 @@ function MODULE_NAME() { # @param $3 libraries # @param $4 static libraries (?) AC_DEFUN([ADD_MODULE], [ - TARGET=$(MODULE_NAME "$1") + TARGET="lib/ultragrid/ultragrid_"$1".so" LIB_OBJS=$LIB_OBJS" "$2 LIB_MODULES=$LIB_MODULES" "$3 AM_CONDITIONAL([IS_TARGET], [test x$1 != x])