summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure734
1 files changed, 553 insertions, 181 deletions
diff --git a/configure b/configure
index d2465270a..57b261503 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,4 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.583 .
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for OpenSSH Portable. 3# Generated by GNU Autoconf 2.69 for OpenSSH Portable.
5# 4#
@@ -643,7 +642,6 @@ K5LIBS
643GSSLIBS 642GSSLIBS
644KRB5CONF 643KRB5CONF
645SSHDLIBS 644SSHDLIBS
646SSHLIBS
647SSH_PRIVSEP_USER 645SSH_PRIVSEP_USER
648LIBFIDO2 646LIBFIDO2
649SK_DUMMY_LIBRARY 647SK_DUMMY_LIBRARY
@@ -667,7 +665,6 @@ NROFF
667GROFF 665GROFF
668SH 666SH
669TEST_MINUS_S_SH 667TEST_MINUS_S_SH
670ENT
671SED 668SED
672KILL 669KILL
673CAT 670CAT
@@ -716,6 +713,7 @@ infodir
716docdir 713docdir
717oldincludedir 714oldincludedir
718includedir 715includedir
716runstatedir
719localstatedir 717localstatedir
720sharedstatedir 718sharedstatedir
721sysconfdir 719sysconfdir
@@ -845,6 +843,7 @@ datadir='${datarootdir}'
845sysconfdir='${prefix}/etc' 843sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com' 844sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var' 845localstatedir='${prefix}/var'
846runstatedir='${localstatedir}/run'
848includedir='${prefix}/include' 847includedir='${prefix}/include'
849oldincludedir='/usr/include' 848oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1097,6 +1096,15 @@ do
1097 | -silent | --silent | --silen | --sile | --sil) 1096 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;; 1097 silent=yes ;;
1099 1098
1099 -runstatedir | --runstatedir | --runstatedi | --runstated \
1100 | --runstate | --runstat | --runsta | --runst | --runs \
1101 | --run | --ru | --r)
1102 ac_prev=runstatedir ;;
1103 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1104 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1105 | --run=* | --ru=* | --r=*)
1106 runstatedir=$ac_optarg ;;
1107
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;; 1109 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1234,7 +1242,7 @@ fi
1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir 1245 libdir localedir mandir runstatedir
1238do 1246do
1239 eval ac_val=\$$ac_var 1247 eval ac_val=\$$ac_var
1240 # Remove trailing slashes. 1248 # Remove trailing slashes.
@@ -1387,6 +1395,7 @@ Fine tuning of the installation directories:
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1390 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include] 1400 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1905,127 +1914,6 @@ fi
1905 1914
1906} # ac_fn_c_check_header_mongrel 1915} # ac_fn_c_check_header_mongrel
1907 1916
1908# ac_fn_c_check_func LINENO FUNC VAR
1909# ----------------------------------
1910# Tests whether FUNC exists, setting the cache variable VAR accordingly
1911ac_fn_c_check_func ()
1912{
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h. */
1921/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1923#define $2 innocuous_$2
1924
1925/* System header to define __stub macros and hopefully few prototypes,
1926 which can conflict with char $2 (); below.
1927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1928 <limits.h> exists even on freestanding compilers. */
1929
1930#ifdef __STDC__
1931# include <limits.h>
1932#else
1933# include <assert.h>
1934#endif
1935
1936#undef $2
1937
1938/* Override any GCC internal prototype to avoid an error.
1939 Use char because int might match the return type of a GCC
1940 builtin and then its argument prototype would still apply. */
1941#ifdef __cplusplus
1942extern "C"
1943#endif
1944char $2 ();
1945/* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948#if defined __stub_$2 || defined __stub___$2
1949choke me
1950#endif
1951
1952int
1953main ()
1954{
1955return $2 ();
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_link "$LINENO"; then :
1961 eval "$3=yes"
1962else
1963 eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext \
1966 conftest$ac_exeext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972
1973} # ac_fn_c_check_func
1974
1975# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1976# -------------------------------------------
1977# Tests whether TYPE exists after having included INCLUDES, setting cache
1978# variable VAR accordingly.
1979ac_fn_c_check_type ()
1980{
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1986else
1987 eval "$3=no"
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994if (sizeof ($2))
1995 return 0;
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004int
2005main ()
2006{
2007if (sizeof (($2)))
2008 return 0;
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014
2015else
2016 eval "$3=yes"
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027} # ac_fn_c_check_type
2028
2029# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1917# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2030# -------------------------------------------- 1918# --------------------------------------------
2031# Tries to find the compile-time value of EXPR in a program that includes 1919# Tries to find the compile-time value of EXPR in a program that includes
@@ -2209,6 +2097,127 @@ rm -f conftest.val
2209 2097
2210} # ac_fn_c_compute_int 2098} # ac_fn_c_compute_int
2211 2099
2100# ac_fn_c_check_func LINENO FUNC VAR
2101# ----------------------------------
2102# Tests whether FUNC exists, setting the cache variable VAR accordingly
2103ac_fn_c_check_func ()
2104{
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107$as_echo_n "checking for $2... " >&6; }
2108if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2110else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h. */
2113/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2115#define $2 innocuous_$2
2116
2117/* System header to define __stub macros and hopefully few prototypes,
2118 which can conflict with char $2 (); below.
2119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2120 <limits.h> exists even on freestanding compilers. */
2121
2122#ifdef __STDC__
2123# include <limits.h>
2124#else
2125# include <assert.h>
2126#endif
2127
2128#undef $2
2129
2130/* Override any GCC internal prototype to avoid an error.
2131 Use char because int might match the return type of a GCC
2132 builtin and then its argument prototype would still apply. */
2133#ifdef __cplusplus
2134extern "C"
2135#endif
2136char $2 ();
2137/* The GNU C library defines this for functions which it implements
2138 to always fail with ENOSYS. Some functions are actually named
2139 something starting with __ and the normal name is an alias. */
2140#if defined __stub_$2 || defined __stub___$2
2141choke me
2142#endif
2143
2144int
2145main ()
2146{
2147return $2 ();
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_link "$LINENO"; then :
2153 eval "$3=yes"
2154else
2155 eval "$3=no"
2156fi
2157rm -f core conftest.err conftest.$ac_objext \
2158 conftest$ac_exeext conftest.$ac_ext
2159fi
2160eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165} # ac_fn_c_check_func
2166
2167# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2168# -------------------------------------------
2169# Tests whether TYPE exists after having included INCLUDES, setting cache
2170# variable VAR accordingly.
2171ac_fn_c_check_type ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
2176if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178else
2179 eval "$3=no"
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$4
2183int
2184main ()
2185{
2186if (sizeof ($2))
2187 return 0;
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$4
2196int
2197main ()
2198{
2199if (sizeof (($2)))
2200 return 0;
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206
2207else
2208 eval "$3=yes"
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213fi
2214eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216$as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218
2219} # ac_fn_c_check_type
2220
2212# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2221# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213# ---------------------------------------------------- 2222# ----------------------------------------------------
2214# Tries to find if the field MEMBER exists in type AGGR, after including 2223# Tries to find if the field MEMBER exists in type AGGR, after including
@@ -4642,47 +4651,6 @@ $as_echo "no" >&6; }
4642fi 4651fi
4643 4652
4644 4653
4645# Extract the first word of "ent", so it can be a program name with args.
4646set dummy ent; ac_word=$2
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if ${ac_cv_path_ENT+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651else
4652 case $ENT in
4653 [\\/]* | ?:[\\/]*)
4654 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4655 ;;
4656 *)
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669 done
4670IFS=$as_save_IFS
4671
4672 ;;
4673esac
4674fi
4675ENT=$ac_cv_path_ENT
4676if test -n "$ENT"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4678$as_echo "$ENT" >&6; }
4679else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685
4686# Extract the first word of "bash", so it can be a program name with args. 4654# Extract the first word of "bash", so it can be a program name with args.
4687set dummy bash; ac_word=$2 4655set dummy bash; ac_word=$2
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -5534,12 +5502,23 @@ $as_echo_n "checking if $CC supports compile flag -pipe... " >&6; }
5534#include <stdlib.h> 5502#include <stdlib.h>
5535#include <stdio.h> 5503#include <stdio.h>
5536int main(int argc, char **argv) { 5504int main(int argc, char **argv) {
5505 (void)argv;
5537 /* Some math to catch -ftrapv problems in the toolchain */ 5506 /* Some math to catch -ftrapv problems in the toolchain */
5538 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5507 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5539 float l = i * 2.1; 5508 float l = i * 2.1;
5540 double m = l / 0.5; 5509 double m = l / 0.5;
5541 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5510 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5542 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5511 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5512 /*
5513 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5514 * not understand comments and we don't use the "fallthrough" attribute
5515 * that it's looking for.
5516 */
5517 switch(i){
5518 case 0: j += i;
5519 /* FALLTHROUGH */
5520 default: j += k;
5521 }
5543 exit(0); 5522 exit(0);
5544} 5523}
5545 5524
@@ -5577,12 +5556,23 @@ $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... "
5577#include <stdlib.h> 5556#include <stdlib.h>
5578#include <stdio.h> 5557#include <stdio.h>
5579int main(int argc, char **argv) { 5558int main(int argc, char **argv) {
5559 (void)argv;
5580 /* Some math to catch -ftrapv problems in the toolchain */ 5560 /* Some math to catch -ftrapv problems in the toolchain */
5581 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5561 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5582 float l = i * 2.1; 5562 float l = i * 2.1;
5583 double m = l / 0.5; 5563 double m = l / 0.5;
5584 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5564 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5585 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5565 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5566 /*
5567 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5568 * not understand comments and we don't use the "fallthrough" attribute
5569 * that it's looking for.
5570 */
5571 switch(i){
5572 case 0: j += i;
5573 /* FALLTHROUGH */
5574 default: j += k;
5575 }
5586 exit(0); 5576 exit(0);
5587} 5577}
5588 5578
@@ -5620,12 +5610,23 @@ $as_echo_n "checking if $CC supports compile flag -Wno-error=format-truncation..
5620#include <stdlib.h> 5610#include <stdlib.h>
5621#include <stdio.h> 5611#include <stdio.h>
5622int main(int argc, char **argv) { 5612int main(int argc, char **argv) {
5613 (void)argv;
5623 /* Some math to catch -ftrapv problems in the toolchain */ 5614 /* Some math to catch -ftrapv problems in the toolchain */
5624 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5615 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5625 float l = i * 2.1; 5616 float l = i * 2.1;
5626 double m = l / 0.5; 5617 double m = l / 0.5;
5627 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5618 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5628 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5619 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5620 /*
5621 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5622 * not understand comments and we don't use the "fallthrough" attribute
5623 * that it's looking for.
5624 */
5625 switch(i){
5626 case 0: j += i;
5627 /* FALLTHROUGH */
5628 default: j += k;
5629 }
5629 exit(0); 5630 exit(0);
5630} 5631}
5631 5632
@@ -5663,12 +5664,23 @@ $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5663#include <stdlib.h> 5664#include <stdlib.h>
5664#include <stdio.h> 5665#include <stdio.h>
5665int main(int argc, char **argv) { 5666int main(int argc, char **argv) {
5667 (void)argv;
5666 /* Some math to catch -ftrapv problems in the toolchain */ 5668 /* Some math to catch -ftrapv problems in the toolchain */
5667 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5669 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5668 float l = i * 2.1; 5670 float l = i * 2.1;
5669 double m = l / 0.5; 5671 double m = l / 0.5;
5670 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5672 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5671 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5673 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5674 /*
5675 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5676 * not understand comments and we don't use the "fallthrough" attribute
5677 * that it's looking for.
5678 */
5679 switch(i){
5680 case 0: j += i;
5681 /* FALLTHROUGH */
5682 default: j += k;
5683 }
5672 exit(0); 5684 exit(0);
5673} 5685}
5674 5686
@@ -5706,12 +5718,23 @@ $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5706#include <stdlib.h> 5718#include <stdlib.h>
5707#include <stdio.h> 5719#include <stdio.h>
5708int main(int argc, char **argv) { 5720int main(int argc, char **argv) {
5721 (void)argv;
5709 /* Some math to catch -ftrapv problems in the toolchain */ 5722 /* Some math to catch -ftrapv problems in the toolchain */
5710 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5723 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5711 float l = i * 2.1; 5724 float l = i * 2.1;
5712 double m = l / 0.5; 5725 double m = l / 0.5;
5713 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5726 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5714 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5727 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5728 /*
5729 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5730 * not understand comments and we don't use the "fallthrough" attribute
5731 * that it's looking for.
5732 */
5733 switch(i){
5734 case 0: j += i;
5735 /* FALLTHROUGH */
5736 default: j += k;
5737 }
5715 exit(0); 5738 exit(0);
5716} 5739}
5717 5740
@@ -5749,12 +5772,23 @@ $as_echo_n "checking if $CC supports compile flag -Wextra... " >&6; }
5749#include <stdlib.h> 5772#include <stdlib.h>
5750#include <stdio.h> 5773#include <stdio.h>
5751int main(int argc, char **argv) { 5774int main(int argc, char **argv) {
5775 (void)argv;
5752 /* Some math to catch -ftrapv problems in the toolchain */ 5776 /* Some math to catch -ftrapv problems in the toolchain */
5753 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5777 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5754 float l = i * 2.1; 5778 float l = i * 2.1;
5755 double m = l / 0.5; 5779 double m = l / 0.5;
5756 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5780 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5757 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5781 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5782 /*
5783 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5784 * not understand comments and we don't use the "fallthrough" attribute
5785 * that it's looking for.
5786 */
5787 switch(i){
5788 case 0: j += i;
5789 /* FALLTHROUGH */
5790 default: j += k;
5791 }
5758 exit(0); 5792 exit(0);
5759} 5793}
5760 5794
@@ -5792,12 +5826,23 @@ $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5792#include <stdlib.h> 5826#include <stdlib.h>
5793#include <stdio.h> 5827#include <stdio.h>
5794int main(int argc, char **argv) { 5828int main(int argc, char **argv) {
5829 (void)argv;
5795 /* Some math to catch -ftrapv problems in the toolchain */ 5830 /* Some math to catch -ftrapv problems in the toolchain */
5796 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5831 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5797 float l = i * 2.1; 5832 float l = i * 2.1;
5798 double m = l / 0.5; 5833 double m = l / 0.5;
5799 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5834 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5800 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5835 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5836 /*
5837 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5838 * not understand comments and we don't use the "fallthrough" attribute
5839 * that it's looking for.
5840 */
5841 switch(i){
5842 case 0: j += i;
5843 /* FALLTHROUGH */
5844 default: j += k;
5845 }
5801 exit(0); 5846 exit(0);
5802} 5847}
5803 5848
@@ -5835,12 +5880,23 @@ $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5835#include <stdlib.h> 5880#include <stdlib.h>
5836#include <stdio.h> 5881#include <stdio.h>
5837int main(int argc, char **argv) { 5882int main(int argc, char **argv) {
5883 (void)argv;
5838 /* Some math to catch -ftrapv problems in the toolchain */ 5884 /* Some math to catch -ftrapv problems in the toolchain */
5839 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5885 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5840 float l = i * 2.1; 5886 float l = i * 2.1;
5841 double m = l / 0.5; 5887 double m = l / 0.5;
5842 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5888 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5843 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5889 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5890 /*
5891 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5892 * not understand comments and we don't use the "fallthrough" attribute
5893 * that it's looking for.
5894 */
5895 switch(i){
5896 case 0: j += i;
5897 /* FALLTHROUGH */
5898 default: j += k;
5899 }
5844 exit(0); 5900 exit(0);
5845} 5901}
5846 5902
@@ -5878,12 +5934,23 @@ $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5878#include <stdlib.h> 5934#include <stdlib.h>
5879#include <stdio.h> 5935#include <stdio.h>
5880int main(int argc, char **argv) { 5936int main(int argc, char **argv) {
5937 (void)argv;
5881 /* Some math to catch -ftrapv problems in the toolchain */ 5938 /* Some math to catch -ftrapv problems in the toolchain */
5882 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5939 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5883 float l = i * 2.1; 5940 float l = i * 2.1;
5884 double m = l / 0.5; 5941 double m = l / 0.5;
5885 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5942 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5886 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5943 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5944 /*
5945 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
5946 * not understand comments and we don't use the "fallthrough" attribute
5947 * that it's looking for.
5948 */
5949 switch(i){
5950 case 0: j += i;
5951 /* FALLTHROUGH */
5952 default: j += k;
5953 }
5887 exit(0); 5954 exit(0);
5888} 5955}
5889 5956
@@ -5921,12 +5988,23 @@ $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
5921#include <stdlib.h> 5988#include <stdlib.h>
5922#include <stdio.h> 5989#include <stdio.h>
5923int main(int argc, char **argv) { 5990int main(int argc, char **argv) {
5991 (void)argv;
5924 /* Some math to catch -ftrapv problems in the toolchain */ 5992 /* Some math to catch -ftrapv problems in the toolchain */
5925 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5993 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5926 float l = i * 2.1; 5994 float l = i * 2.1;
5927 double m = l / 0.5; 5995 double m = l / 0.5;
5928 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5996 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5929 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5997 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5998 /*
5999 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6000 * not understand comments and we don't use the "fallthrough" attribute
6001 * that it's looking for.
6002 */
6003 switch(i){
6004 case 0: j += i;
6005 /* FALLTHROUGH */
6006 default: j += k;
6007 }
5930 exit(0); 6008 exit(0);
5931} 6009}
5932 6010
@@ -5964,12 +6042,23 @@ $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess...
5964#include <stdlib.h> 6042#include <stdlib.h>
5965#include <stdio.h> 6043#include <stdio.h>
5966int main(int argc, char **argv) { 6044int main(int argc, char **argv) {
6045 (void)argv;
5967 /* Some math to catch -ftrapv problems in the toolchain */ 6046 /* Some math to catch -ftrapv problems in the toolchain */
5968 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6047 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5969 float l = i * 2.1; 6048 float l = i * 2.1;
5970 double m = l / 0.5; 6049 double m = l / 0.5;
5971 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6050 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5972 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6051 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6052 /*
6053 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6054 * not understand comments and we don't use the "fallthrough" attribute
6055 * that it's looking for.
6056 */
6057 switch(i){
6058 case 0: j += i;
6059 /* FALLTHROUGH */
6060 default: j += k;
6061 }
5973 exit(0); 6062 exit(0);
5974} 6063}
5975 6064
@@ -6007,12 +6096,77 @@ $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
6007#include <stdlib.h> 6096#include <stdlib.h>
6008#include <stdio.h> 6097#include <stdio.h>
6009int main(int argc, char **argv) { 6098int main(int argc, char **argv) {
6099 (void)argv;
6100 /* Some math to catch -ftrapv problems in the toolchain */
6101 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6102 float l = i * 2.1;
6103 double m = l / 0.5;
6104 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6105 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6106 /*
6107 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6108 * not understand comments and we don't use the "fallthrough" attribute
6109 * that it's looking for.
6110 */
6111 switch(i){
6112 case 0: j += i;
6113 /* FALLTHROUGH */
6114 default: j += k;
6115 }
6116 exit(0);
6117}
6118
6119_ACEOF
6120if ac_fn_c_try_compile "$LINENO"; then :
6121
6122if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6123then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126 CFLAGS="$saved_CFLAGS"
6127else
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6129$as_echo "yes" >&6; }
6130 CFLAGS="$saved_CFLAGS $_define_flag"
6131fi
6132else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134$as_echo "no" >&6; }
6135 CFLAGS="$saved_CFLAGS"
6136
6137fi
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139}
6140 {
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-parameter" >&5
6142$as_echo_n "checking if $CC supports compile flag -Wunused-parameter... " >&6; }
6143 saved_CFLAGS="$CFLAGS"
6144 CFLAGS="$CFLAGS $WERROR -Wunused-parameter"
6145 _define_flag="-Wno-unused-parameter"
6146 test "x$_define_flag" = "x" && _define_flag="-Wunused-parameter"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h. */
6149
6150#include <stdlib.h>
6151#include <stdio.h>
6152int main(int argc, char **argv) {
6153 (void)argv;
6010 /* Some math to catch -ftrapv problems in the toolchain */ 6154 /* Some math to catch -ftrapv problems in the toolchain */
6011 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6155 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6012 float l = i * 2.1; 6156 float l = i * 2.1;
6013 double m = l / 0.5; 6157 double m = l / 0.5;
6014 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6158 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6015 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6159 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6160 /*
6161 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6162 * not understand comments and we don't use the "fallthrough" attribute
6163 * that it's looking for.
6164 */
6165 switch(i){
6166 case 0: j += i;
6167 /* FALLTHROUGH */
6168 default: j += k;
6169 }
6016 exit(0); 6170 exit(0);
6017} 6171}
6018 6172
@@ -6050,12 +6204,23 @@ $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6050#include <stdlib.h> 6204#include <stdlib.h>
6051#include <stdio.h> 6205#include <stdio.h>
6052int main(int argc, char **argv) { 6206int main(int argc, char **argv) {
6207 (void)argv;
6053 /* Some math to catch -ftrapv problems in the toolchain */ 6208 /* Some math to catch -ftrapv problems in the toolchain */
6054 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6209 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6055 float l = i * 2.1; 6210 float l = i * 2.1;
6056 double m = l / 0.5; 6211 double m = l / 0.5;
6057 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6212 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6058 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6213 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6214 /*
6215 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6216 * not understand comments and we don't use the "fallthrough" attribute
6217 * that it's looking for.
6218 */
6219 switch(i){
6220 case 0: j += i;
6221 /* FALLTHROUGH */
6222 default: j += k;
6223 }
6059 exit(0); 6224 exit(0);
6060} 6225}
6061 6226
@@ -6093,12 +6258,23 @@ $as_echo_n "checking if $CC supports compile flag -Wimplicit-fallthrough... " >&
6093#include <stdlib.h> 6258#include <stdlib.h>
6094#include <stdio.h> 6259#include <stdio.h>
6095int main(int argc, char **argv) { 6260int main(int argc, char **argv) {
6261 (void)argv;
6096 /* Some math to catch -ftrapv problems in the toolchain */ 6262 /* Some math to catch -ftrapv problems in the toolchain */
6097 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6263 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6098 float l = i * 2.1; 6264 float l = i * 2.1;
6099 double m = l / 0.5; 6265 double m = l / 0.5;
6100 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6266 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6101 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6267 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6268 /*
6269 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6270 * not understand comments and we don't use the "fallthrough" attribute
6271 * that it's looking for.
6272 */
6273 switch(i){
6274 case 0: j += i;
6275 /* FALLTHROUGH */
6276 default: j += k;
6277 }
6102 exit(0); 6278 exit(0);
6103} 6279}
6104 6280
@@ -6136,12 +6312,23 @@ $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6;
6136#include <stdlib.h> 6312#include <stdlib.h>
6137#include <stdio.h> 6313#include <stdio.h>
6138int main(int argc, char **argv) { 6314int main(int argc, char **argv) {
6315 (void)argv;
6139 /* Some math to catch -ftrapv problems in the toolchain */ 6316 /* Some math to catch -ftrapv problems in the toolchain */
6140 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6317 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6141 float l = i * 2.1; 6318 float l = i * 2.1;
6142 double m = l / 0.5; 6319 double m = l / 0.5;
6143 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6320 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6144 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6321 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6322 /*
6323 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6324 * not understand comments and we don't use the "fallthrough" attribute
6325 * that it's looking for.
6326 */
6327 switch(i){
6328 case 0: j += i;
6329 /* FALLTHROUGH */
6330 default: j += k;
6331 }
6145 exit(0); 6332 exit(0);
6146} 6333}
6147 6334
@@ -6180,12 +6367,23 @@ $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; }
6180#include <stdlib.h> 6367#include <stdlib.h>
6181#include <stdio.h> 6368#include <stdio.h>
6182int main(int argc, char **argv) { 6369int main(int argc, char **argv) {
6370 (void)argv;
6183 /* Some math to catch -ftrapv problems in the toolchain */ 6371 /* Some math to catch -ftrapv problems in the toolchain */
6184 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6372 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6185 float l = i * 2.1; 6373 float l = i * 2.1;
6186 double m = l / 0.5; 6374 double m = l / 0.5;
6187 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6375 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6188 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6376 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6377 /*
6378 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6379 * not understand comments and we don't use the "fallthrough" attribute
6380 * that it's looking for.
6381 */
6382 switch(i){
6383 case 0: j += i;
6384 /* FALLTHROUGH */
6385 default: j += k;
6386 }
6189 exit(0); 6387 exit(0);
6190} 6388}
6191 6389
@@ -6223,6 +6421,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; }
6223#include <stdlib.h> 6421#include <stdlib.h>
6224#include <stdio.h> 6422#include <stdio.h>
6225int main(int argc, char **argv) { 6423int main(int argc, char **argv) {
6424 (void)argv;
6226 /* Some math to catch -ftrapv problems in the toolchain */ 6425 /* Some math to catch -ftrapv problems in the toolchain */
6227 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6426 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6228 float l = i * 2.1; 6427 float l = i * 2.1;
@@ -6268,12 +6467,23 @@ $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6;
6268#include <stdlib.h> 6467#include <stdlib.h>
6269#include <stdio.h> 6468#include <stdio.h>
6270int main(int argc, char **argv) { 6469int main(int argc, char **argv) {
6470 (void)argv;
6271 /* Some math to catch -ftrapv problems in the toolchain */ 6471 /* Some math to catch -ftrapv problems in the toolchain */
6272 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6472 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6273 float l = i * 2.1; 6473 float l = i * 2.1;
6274 double m = l / 0.5; 6474 double m = l / 0.5;
6275 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6475 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6276 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6476 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6477 /*
6478 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
6479 * not understand comments and we don't use the "fallthrough" attribute
6480 * that it's looking for.
6481 */
6482 switch(i){
6483 case 0: j += i;
6484 /* FALLTHROUGH */
6485 default: j += k;
6486 }
6277 exit(0); 6487 exit(0);
6278} 6488}
6279 6489
@@ -6311,6 +6521,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6311#include <stdlib.h> 6521#include <stdlib.h>
6312#include <stdio.h> 6522#include <stdio.h>
6313int main(int argc, char **argv) { 6523int main(int argc, char **argv) {
6524 (void)argv;
6314 /* Some math to catch -ftrapv problems in the toolchain */ 6525 /* Some math to catch -ftrapv problems in the toolchain */
6315 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6526 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6316 float l = i * 2.1; 6527 float l = i * 2.1;
@@ -6356,6 +6567,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6356#include <stdlib.h> 6567#include <stdlib.h>
6357#include <stdio.h> 6568#include <stdio.h>
6358int main(int argc, char **argv) { 6569int main(int argc, char **argv) {
6570 (void)argv;
6359 /* Some math to catch -ftrapv problems in the toolchain */ 6571 /* Some math to catch -ftrapv problems in the toolchain */
6360 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6572 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6361 float l = i * 2.1; 6573 float l = i * 2.1;
@@ -6401,6 +6613,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6401#include <stdlib.h> 6613#include <stdlib.h>
6402#include <stdio.h> 6614#include <stdio.h>
6403int main(int argc, char **argv) { 6615int main(int argc, char **argv) {
6616 (void)argv;
6404 /* Some math to catch -ftrapv problems in the toolchain */ 6617 /* Some math to catch -ftrapv problems in the toolchain */
6405 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6618 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6406 float l = i * 2.1; 6619 float l = i * 2.1;
@@ -6451,6 +6664,7 @@ $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds..
6451#include <stdlib.h> 6664#include <stdlib.h>
6452#include <stdio.h> 6665#include <stdio.h>
6453int main(int argc, char **argv) { 6666int main(int argc, char **argv) {
6667 (void)argv;
6454 /* Some math to catch -ftrapv problems in the toolchain */ 6668 /* Some math to catch -ftrapv problems in the toolchain */
6455 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6669 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6456 float l = i * 2.1; 6670 float l = i * 2.1;
@@ -7052,6 +7266,40 @@ SPP_MSG="no"
7052# the --with-solaris-privs option and --with-sandbox=solaris). 7266# the --with-solaris-privs option and --with-sandbox=solaris).
7053SOLARIS_PRIVS="no" 7267SOLARIS_PRIVS="no"
7054 7268
7269# The cast to long int works around a bug in the HP C Compiler
7270# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7271# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7272# This bug is HP SR number 8606223364.
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7274$as_echo_n "checking size of size_t... " >&6; }
7275if ${ac_cv_sizeof_size_t+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277else
7278 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
7279
7280else
7281 if test "$ac_cv_type_size_t" = yes; then
7282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7284as_fn_error 77 "cannot compute sizeof (size_t)
7285See \`config.log' for more details" "$LINENO" 5; }
7286 else
7287 ac_cv_sizeof_size_t=0
7288 fi
7289fi
7290
7291fi
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7293$as_echo "$ac_cv_sizeof_size_t" >&6; }
7294
7295
7296
7297cat >>confdefs.h <<_ACEOF
7298#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7299_ACEOF
7300
7301
7302
7055# Check for some target-specific stuff 7303# Check for some target-specific stuff
7056case "$host" in 7304case "$host" in
7057*-*-aix*) 7305*-*-aix*)
@@ -7385,12 +7633,23 @@ $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7385#include <stdlib.h> 7633#include <stdlib.h>
7386#include <stdio.h> 7634#include <stdio.h>
7387int main(int argc, char **argv) { 7635int main(int argc, char **argv) {
7636 (void)argv;
7388 /* Some math to catch -ftrapv problems in the toolchain */ 7637 /* Some math to catch -ftrapv problems in the toolchain */
7389 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 7638 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7390 float l = i * 2.1; 7639 float l = i * 2.1;
7391 double m = l / 0.5; 7640 double m = l / 0.5;
7392 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 7641 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7393 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 7642 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7643 /*
7644 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
7645 * not understand comments and we don't use the "fallthrough" attribute
7646 * that it's looking for.
7647 */
7648 switch(i){
7649 case 0: j += i;
7650 /* FALLTHROUGH */
7651 default: j += k;
7652 }
7394 exit(0); 7653 exit(0);
7395} 7654}
7396 7655
@@ -7437,7 +7696,9 @@ $as_echo "assume it is working" >&6; }
7437else 7696else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h. */ 7698/* end confdefs.h. */
7440 #include <mach-o/dyld.h> 7699
7700#include <mach-o/dyld.h>
7701#include <stdlib.h>
7441main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) 7702main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7442 exit(0); 7703 exit(0);
7443 else 7704 else
@@ -7974,6 +8235,10 @@ $as_echo_n "checking for seccomp architecture... " >&6; }
7974 case "$host" in 8235 case "$host" in
7975 x86_64-*) 8236 x86_64-*)
7976 seccomp_audit_arch=AUDIT_ARCH_X86_64 8237 seccomp_audit_arch=AUDIT_ARCH_X86_64
8238 # X32: AMD64 instructions in 32bit address space.
8239 if test "x$ac_cv_sizeof_size_t" = "x4" ; then
8240 seccomp_audit_arch=AUDIT_ARCH_I386
8241 fi
7977 ;; 8242 ;;
7978 i*86-*) 8243 i*86-*)
7979 seccomp_audit_arch=AUDIT_ARCH_I386 8244 seccomp_audit_arch=AUDIT_ARCH_I386
@@ -8022,6 +8287,9 @@ $as_echo_n "checking for seccomp architecture... " >&6; }
8022 ;; 8287 ;;
8023 esac 8288 esac
8024 ;; 8289 ;;
8290 riscv64-*)
8291 seccomp_audit_arch=AUDIT_ARCH_RISCV64
8292 ;;
8025 esac 8293 esac
8026 if test "x$seccomp_audit_arch" != "x" ; then 8294 if test "x$seccomp_audit_arch" != "x" ; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
@@ -8773,7 +9041,7 @@ $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8773else 9041else
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775/* end confdefs.h. */ 9043/* end confdefs.h. */
8776 #include <stdio.h> 9044 #include <stdlib.h>
8777int 9045int
8778main () 9046main ()
8779{ 9047{
@@ -8925,6 +9193,7 @@ else
8925 9193
8926#include <libgen.h> 9194#include <libgen.h>
8927#include <string.h> 9195#include <string.h>
9196#include <stdlib.h>
8928 9197
8929int main(int argc, char **argv) { 9198int main(int argc, char **argv) {
8930 char *s, buf[32]; 9199 char *s, buf[32];
@@ -10308,6 +10577,8 @@ else
10308 10577
10309#include <sys/types.h> 10578#include <sys/types.h>
10310#include <dirent.h> 10579#include <dirent.h>
10580#include <stdlib.h>
10581
10311int 10582int
10312main () 10583main ()
10313{ 10584{
@@ -10692,7 +10963,10 @@ fi
10692$as_echo_n "checking if libedit version is compatible... " >&6; } 10963$as_echo_n "checking if libedit version is compatible... " >&6; }
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694/* end confdefs.h. */ 10965/* end confdefs.h. */
10695 #include <histedit.h> 10966
10967#include <histedit.h>
10968#include <stdlib.h>
10969
10696int 10970int
10697main () 10971main ()
10698{ 10972{
@@ -10936,12 +11210,23 @@ $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10936#include <stdlib.h> 11210#include <stdlib.h>
10937#include <stdio.h> 11211#include <stdio.h>
10938int main(int argc, char **argv) { 11212int main(int argc, char **argv) {
11213 (void)argv;
10939 /* Some math to catch -ftrapv problems in the toolchain */ 11214 /* Some math to catch -ftrapv problems in the toolchain */
10940 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 11215 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10941 float l = i * 2.1; 11216 float l = i * 2.1;
10942 double m = l / 0.5; 11217 double m = l / 0.5;
10943 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 11218 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10944 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 11219 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11220 /*
11221 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11222 * not understand comments and we don't use the "fallthrough" attribute
11223 * that it's looking for.
11224 */
11225 switch(i){
11226 case 0: j += i;
11227 /* FALLTHROUGH */
11228 default: j += k;
11229 }
10945 exit(0); 11230 exit(0);
10946} 11231}
10947 11232
@@ -10979,6 +11264,7 @@ $as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10979#include <stdlib.h> 11264#include <stdlib.h>
10980#include <stdio.h> 11265#include <stdio.h>
10981int main(int argc, char **argv) { 11266int main(int argc, char **argv) {
11267 (void)argv;
10982 /* Some math to catch -ftrapv problems in the toolchain */ 11268 /* Some math to catch -ftrapv problems in the toolchain */
10983 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 11269 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10984 float l = i * 2.1; 11270 float l = i * 2.1;
@@ -11955,7 +12241,10 @@ $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11955else 12241else
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h. */ 12243/* end confdefs.h. */
12244
11958#include <stdio.h> 12245#include <stdio.h>
12246#include <stdlib.h>
12247
11959int 12248int
11960main () 12249main ()
11961{ 12250{
@@ -12163,7 +12452,10 @@ $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12163else 12452else
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h. */ 12454/* end confdefs.h. */
12166 #include <stdio.h> 12455
12456#include <stdio.h>
12457#include <stdlib.h>
12458
12167int 12459int
12168main () 12460main ()
12169{ 12461{
@@ -12209,6 +12501,8 @@ else
12209 12501
12210#include <sys/types.h> 12502#include <sys/types.h>
12211#include <stdio.h> 12503#include <stdio.h>
12504#include <stdlib.h>
12505#include <string.h>
12212 12506
12213int 12507int
12214main () 12508main ()
@@ -12389,6 +12683,7 @@ else
12389/* end confdefs.h. */ 12683/* end confdefs.h. */
12390 12684
12391#include <stdlib.h> 12685#include <stdlib.h>
12686#include <unistd.h>
12392 12687
12393int 12688int
12394main () 12689main ()
@@ -12438,6 +12733,8 @@ else
12438/* end confdefs.h. */ 12733/* end confdefs.h. */
12439 12734
12440#include <stdio.h> 12735#include <stdio.h>
12736#include <stdlib.h>
12737#include <unistd.h>
12441#include <sys/fcntl.h> 12738#include <sys/fcntl.h>
12442#include <sys/types.h> 12739#include <sys/types.h>
12443#include <sys/wait.h> 12740#include <sys/wait.h>
@@ -12507,6 +12804,7 @@ else
12507/* end confdefs.h. */ 12804/* end confdefs.h. */
12508 12805
12509#include <stdio.h> 12806#include <stdio.h>
12807#include <stdlib.h>
12510#include <sys/socket.h> 12808#include <sys/socket.h>
12511#include <netdb.h> 12809#include <netdb.h>
12512#include <errno.h> 12810#include <errno.h>
@@ -12598,6 +12896,7 @@ else
12598/* end confdefs.h. */ 12896/* end confdefs.h. */
12599 12897
12600#include <stdio.h> 12898#include <stdio.h>
12899#include <stdlib.h>
12601#include <sys/socket.h> 12900#include <sys/socket.h>
12602#include <netdb.h> 12901#include <netdb.h>
12603#include <errno.h> 12902#include <errno.h>
@@ -12687,7 +12986,10 @@ if test "x$check_for_conflicting_getspnam" = "x1"; then
12687$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } 12986$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h. */ 12988/* end confdefs.h. */
12690 #include <shadow.h> 12989
12990#include <shadow.h>
12991#include <stdlib.h>
12992
12691int 12993int
12692main () 12994main ()
12693{ 12995{
@@ -12731,6 +13033,7 @@ else
12731#include <signal.h> 13033#include <signal.h>
12732#include <stdlib.h> 13034#include <stdlib.h>
12733#include <string.h> 13035#include <string.h>
13036#include <unistd.h>
12734#include <vis.h> 13037#include <vis.h>
12735static void sighandler(int sig) { _exit(1); } 13038static void sighandler(int sig) { _exit(1); }
12736 13039
@@ -12782,6 +13085,7 @@ else
12782#include <sys/time.h> 13085#include <sys/time.h>
12783#include <stdlib.h> 13086#include <stdlib.h>
12784#include <signal.h> 13087#include <signal.h>
13088#include <unistd.h>
12785static void sighandler(int sig) { } 13089static void sighandler(int sig) { }
12786 13090
12787int 13091int
@@ -13064,6 +13368,7 @@ else
13064/* end confdefs.h. */ 13368/* end confdefs.h. */
13065 13369
13066 #include <stdio.h> 13370 #include <stdio.h>
13371 #include <stdlib.h>
13067 #include <string.h> 13372 #include <string.h>
13068 #include <openssl/opensslv.h> 13373 #include <openssl/opensslv.h>
13069 #include <openssl/crypto.h> 13374 #include <openssl/crypto.h>
@@ -13147,6 +13452,7 @@ else
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h. */ 13453/* end confdefs.h. */
13149 13454
13455 #include <stdlib.h>
13150 #include <string.h> 13456 #include <string.h>
13151 #include <openssl/opensslv.h> 13457 #include <openssl/opensslv.h>
13152 #include <openssl/crypto.h> 13458 #include <openssl/crypto.h>
@@ -13387,6 +13693,7 @@ $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388/* end confdefs.h. */ 13694/* end confdefs.h. */
13389 13695
13696 #include <stdlib.h>
13390 #include <string.h> 13697 #include <string.h>
13391 #include <openssl/evp.h> 13698 #include <openssl/evp.h>
13392 13699
@@ -13424,6 +13731,7 @@ $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h. */ 13732/* end confdefs.h. */
13426 13733
13734 #include <stdlib.h>
13427 #include <string.h> 13735 #include <string.h>
13428 #include <openssl/evp.h> 13736 #include <openssl/evp.h>
13429 13737
@@ -13463,6 +13771,7 @@ $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h. */ 13772/* end confdefs.h. */
13465 13773
13774 #include <stdlib.h>
13466 #include <string.h> 13775 #include <string.h>
13467 #include <openssl/evp.h> 13776 #include <openssl/evp.h>
13468 13777
@@ -13508,6 +13817,7 @@ $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509/* end confdefs.h. */ 13818/* end confdefs.h. */
13510 13819
13820 #include <stdlib.h>
13511 #include <string.h> 13821 #include <string.h>
13512 #include <openssl/evp.h> 13822 #include <openssl/evp.h>
13513 13823
@@ -13769,6 +14079,7 @@ else
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770/* end confdefs.h. */ 14080/* end confdefs.h. */
13771 14081
14082 #include <stdlib.h>
13772 #include <openssl/ec.h> 14083 #include <openssl/ec.h>
13773 #include <openssl/ecdh.h> 14084 #include <openssl/ecdh.h>
13774 #include <openssl/ecdsa.h> 14085 #include <openssl/ecdsa.h>
@@ -14144,6 +14455,27 @@ else
14144 as_fn_error $? "no usable libfido2 found" "$LINENO" 5 14455 as_fn_error $? "no usable libfido2 found" "$LINENO" 5
14145fi 14456fi
14146 14457
14458 saved_LIBS="$LIBS"
14459 LIBS="$LIBS $LIBFIDO2"
14460 for ac_func in \
14461 fido_cred_prot \
14462 fido_cred_set_prot \
14463 fido_dev_get_touch_begin \
14464 fido_dev_get_touch_status \
14465 fido_dev_supports_cred_prot \
14466
14467do :
14468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14469ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14470if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14471 cat >>confdefs.h <<_ACEOF
14472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14473_ACEOF
14474
14475fi
14476done
14477
14478 LIBS="$saved_LIBS"
14147 ac_fn_c_check_header_mongrel "$LINENO" "fido.h" "ac_cv_header_fido_h" "$ac_includes_default" 14479 ac_fn_c_check_header_mongrel "$LINENO" "fido.h" "ac_cv_header_fido_h" "$ac_includes_default"
14148if test "x$ac_cv_header_fido_h" = xyes; then : 14480if test "x$ac_cv_header_fido_h" = xyes; then :
14149 14481
@@ -14261,6 +14593,7 @@ else
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262/* end confdefs.h. */ 14594/* end confdefs.h. */
14263 14595
14596 #include <stdlib.h>
14264 #include <string.h> 14597 #include <string.h>
14265 #include <openssl/rand.h> 14598 #include <openssl/rand.h>
14266 14599
@@ -15145,6 +15478,7 @@ else
15145/* end confdefs.h. */ 15478/* end confdefs.h. */
15146 15479
15147#include <stdio.h> 15480#include <stdio.h>
15481#include <stdlib.h>
15148/* Why is this so damn hard? */ 15482/* Why is this so damn hard? */
15149#ifdef __GNUC__ 15483#ifdef __GNUC__
15150# undef __GNUC__ 15484# undef __GNUC__
@@ -16500,6 +16834,7 @@ else
16500/* end confdefs.h. */ 16834/* end confdefs.h. */
16501 16835
16502#include <stdio.h> 16836#include <stdio.h>
16837#include <stdlib.h>
16503#include <string.h> 16838#include <string.h>
16504#ifdef HAVE_SNPRINTF 16839#ifdef HAVE_SNPRINTF
16505main() 16840main()
@@ -17199,6 +17534,45 @@ $as_echo "no" >&6; }
17199 fi 17534 fi
17200 17535
17201 17536
17537# look for field 'ut_ss' in header 'utmpx.h'
17538 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
17539 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_ss
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_ss field in utmpx.h" >&5
17541$as_echo_n "checking for ut_ss field in utmpx.h... " >&6; }
17542 if eval \${$ossh_varname+:} false; then :
17543 $as_echo_n "(cached) " >&6
17544else
17545
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547/* end confdefs.h. */
17548#include <utmpx.h>
17549
17550_ACEOF
17551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17552 $EGREP "ut_ss" >/dev/null 2>&1; then :
17553 eval "$ossh_varname=yes"
17554else
17555 eval "$ossh_varname=no"
17556fi
17557rm -f conftest*
17558
17559fi
17560
17561 ossh_result=`eval 'echo $'"$ossh_varname"`
17562 if test -n "`echo $ossh_varname`"; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
17564$as_echo "$ossh_result" >&6; }
17565 if test "x$ossh_result" = "xyes"; then
17566
17567$as_echo "#define HAVE_SS_IN_UTMPX 1" >>confdefs.h
17568
17569 fi
17570 else
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572$as_echo "no" >&6; }
17573 fi
17574
17575
17202ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 17576ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
17203if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 17577if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
17204 17578
@@ -17387,6 +17761,7 @@ else
17387#include <sys/types.h> 17761#include <sys/types.h>
17388#include <sys/socket.h> 17762#include <sys/socket.h>
17389#include <sys/uio.h> 17763#include <sys/uio.h>
17764#include <stdlib.h>
17390 17765
17391int 17766int
17392main () 17767main ()
@@ -17524,6 +17899,7 @@ else
17524#include <sys/types.h> 17899#include <sys/types.h>
17525#include <sys/socket.h> 17900#include <sys/socket.h>
17526#include <sys/uio.h> 17901#include <sys/uio.h>
17902#include <stdlib.h>
17527 17903
17528int 17904int
17529main () 17905main ()
@@ -17566,7 +17942,7 @@ else
17566 17942
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568/* end confdefs.h. */ 17944/* end confdefs.h. */
17569 17945 #include <stdio.h>
17570int 17946int
17571main () 17947main ()
17572{ 17948{
@@ -17782,7 +18158,7 @@ else
17782 18158
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784/* end confdefs.h. */ 18160/* end confdefs.h. */
17785 18161 #include <stdio.h>
17786int 18162int
17787main () 18163main ()
17788{ 18164{
@@ -17818,7 +18194,7 @@ else
17818 18194
17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820/* end confdefs.h. */ 18196/* end confdefs.h. */
17821 18197 #include <stdio.h>
17822int 18198int
17823main () 18199main ()
17824{ 18200{
@@ -18234,8 +18610,6 @@ else
18234 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 18610 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
18235fi 18611fi
18236 18612
18237 SSHLIBS="$SSHLIBS $LIBSELINUX"
18238 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
18239 for ac_func in getseuserbyname get_default_context_with_level 18613 for ac_func in getseuserbyname get_default_context_with_level
18240do : 18614do :
18241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -18248,14 +18622,13 @@ _ACEOF
18248fi 18622fi
18249done 18623done
18250 18624
18251 LIBS="$save_LIBS" 18625 LIBS="$save_LIBS $LIBSELINUX"
18252 fi 18626 fi
18253 18627
18254fi 18628fi
18255 18629
18256 18630
18257 18631
18258
18259# Check whether user wants Kerberos 5 support 18632# Check whether user wants Kerberos 5 support
18260KRB5_MSG="no" 18633KRB5_MSG="no"
18261 18634
@@ -19058,6 +19431,7 @@ else
19058/* end confdefs.h. */ 19431/* end confdefs.h. */
19059 19432
19060#include <stdio.h> 19433#include <stdio.h>
19434#include <stdlib.h>
19061#include <string.h> 19435#include <string.h>
19062#ifdef HAVE_PATHS_H 19436#ifdef HAVE_PATHS_H
19063#include <paths.h> 19437#include <paths.h>
@@ -19442,6 +19816,7 @@ else
19442 19816
19443/* find out what STDPATH is */ 19817/* find out what STDPATH is */
19444#include <stdio.h> 19818#include <stdio.h>
19819#include <stdlib.h>
19445#ifdef HAVE_PATHS_H 19820#ifdef HAVE_PATHS_H
19446# include <paths.h> 19821# include <paths.h>
19447#endif 19822#endif
@@ -21426,9 +21801,6 @@ echo " Libraries: ${LIBS}"
21426if test ! -z "${SSHDLIBS}"; then 21801if test ! -z "${SSHDLIBS}"; then
21427echo " +for sshd: ${SSHDLIBS}" 21802echo " +for sshd: ${SSHDLIBS}"
21428fi 21803fi
21429if test ! -z "${SSHLIBS}"; then
21430echo " +for ssh: ${SSHLIBS}"
21431fi
21432 21804
21433echo "" 21805echo ""
21434 21806