"Fossies" - the Fresh Open Source Software Archive

Member "stress-ng-0.09.56/Makefile.config" (15 Mar 2019, 88726 Bytes) of package /linux/privat/stress-ng-0.09.56.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.config": 0.09.55_vs_0.09.56.

    1 #
    2 # Copyright (C) 2013-2019 Canonical, Ltd.
    3 #
    4 # This program is free software; you can redistribute it and/or
    5 # modify it under the terms of the GNU General Public License
    6 # as published by the Free Software Foundation; either version 2
    7 # of the License, or (at your option) any later version.
    8 #
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12 # GNU General Public License for more details.
   13 #
   14 # You should have received a copy of the GNU General Public License
   15 # along with this program; if not, write to the Free Software
   16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   17 #
   18 
   19 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu99 -I.
   20 
   21 APPARMOR_PARSER=/sbin/apparmor_parser
   22 
   23 LIB_APPARMOR := -lapparmor
   24 KERNEL=$(shell uname -s)
   25 ifeq (,$(findstring $(KERNEL),Darwin DragonFly FreeBSD NetBSD OpenBSD))
   26 LIB_BSD := -lbsd
   27 endif
   28 LIB_Z := -lz
   29 LIB_CRYPT := -lcrypt
   30 LIB_RT := -lrt
   31 LIB_PTHREAD := -lpthread
   32 LIB_AIO = -laio
   33 LIB_SCTP = -lsctp
   34 LIB_DL = -ldl
   35 LIB_IPSEC_MB = -lIPSec_MB
   36 
   37 HAVE_NOT = HAVE_CONFIG=1
   38 DIR=test
   39 
   40 #
   41 #  Load in current config; use 'make clean' to clear this
   42 #
   43 -include config
   44 
   45 CFLAGS += $(CONFIG_CFLAGS)
   46 LDFLAGS += $(CONFIG_LDFLAGS)
   47 OBJS += $(CONFIG_OBJS)
   48 
   49 #
   50 # Static flags, only to be used when using GCC
   51 #
   52 ifeq ($(STATIC),1)
   53 LDFLAGS += -static
   54 CFLAGS += -DBUILD_STATIC
   55 endif
   56 
   57 HAVE_VARS := $(foreach h,$(HAVE_NOT), $(firstword $(subst =, ,$h)))
   58 
   59 #
   60 #  Determine the system build config
   61 #
   62 ifndef HAVE_CONFIG
   63 HAVE_CONFIG=1
   64 
   65 ifeq ($(shell uname -s),SunOS)
   66 	CONFIG_LDFLAGS += -lsocket -lnsl
   67 endif
   68 
   69 ifndef $(HAVE_LIB_AIO)
   70 HAVE_LIB_AIO = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_AIO) TEST_PROG=test-libaio have_test_prog)
   71 ifeq ($(HAVE_LIB_AIO),1)
   72 	CONFIG_CFLAGS += -DHAVE_LIB_AIO
   73 	CONFIG_LDFLAGS += $(LIB_AIO)
   74 $(info autoconfig: using $(LIB_AIO))
   75 endif
   76 endif
   77 
   78 ifndef $(HAVE_LIB_BSD)
   79 HAVE_LIB_BSD = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_BSD) TEST_PROG=test-libbsd have_test_prog)
   80 ifeq ($(HAVE_LIB_BSD),1)
   81 	CONFIG_CFLAGS += -DHAVE_LIB_BSD
   82 	CONFIG_LDFLAGS += $(LIB_BSD)
   83 $(info autoconfig: using -lbsd functions)
   84 endif
   85 endif
   86 
   87 ifndef $(HAVE_LIB_CRYPT)
   88 HAVE_LIB_CRYPT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_CRYPT) TEST_PROG=test-libcrypt have_test_prog)
   89 ifeq ($(HAVE_LIB_CRYPT),1)
   90 	CONFIG_CFLAGS += -DHAVE_LIB_CRYPT
   91 	CONFIG_LDFLAGS += $(LIB_CRYPT)
   92 $(info autoconfig: using $(LIB_CRYPT))
   93 endif
   94 endif
   95 
   96 ifndef $(HAVE_LIB_RT)
   97 HAVE_LIB_RT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_RT) TEST_PROG=test-librt have_test_prog)
   98 ifeq ($(HAVE_LIB_RT),1)
   99 	CONFIG_CFLAGS += -DHAVE_LIB_RT
  100 	CONFIG_LDFLAGS += $(LIB_RT)
  101 $(info autoconfig: using $(LIB_RT))
  102 endif
  103 endif
  104 
  105 ifndef $(HAVE_LIB_SCTP)
  106 HAVE_LIB_SCTP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_SCTP) TEST_PROG=test-libsctp have_test_prog)
  107 ifeq ($(HAVE_LIB_SCTP),1)
  108 	CONFIG_CFLAGS += -DHAVE_LIB_SCTP
  109 	CONFIG_LDFLAGS += $(LIB_SCTP)
  110 $(info autoconfig: using $(LIB_SCTP))
  111 endif
  112 endif
  113 
  114 ifndef $(HAVE_LIB_Z)
  115 HAVE_LIB_Z = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_Z) TEST_PROG=test-libz have_test_prog)
  116 ifeq ($(HAVE_LIB_Z),1)
  117 	CONFIG_CFLAGS += -DHAVE_LIB_Z
  118 	CONFIG_LDFLAGS += $(LIB_Z)
  119 $(info autoconfig: using $(LIB_Z))
  120 endif
  121 endif
  122 
  123 ifndef $(HAVE_LIB_DL)
  124 HAVE_LIB_DL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_DL) TEST_PROG=test-libdl have_test_prog)
  125 ifeq ($(HAVE_LIB_DL),1)
  126 	CONFIG_CFLAGS += -DHAVE_LIB_DL
  127 	CONFIG_LDFLAGS += $(LIB_DL)
  128 $(info autoconfig: using $(LIB_DL))
  129 endif
  130 endif
  131 
  132 ifndef $(HAVE_LIB_PTHREAD_SPINLOCK)
  133 HAVE_LIB_PTHREAD_SPINLOCK = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_PTHREAD) TEST_PROG=test-libpthread-spinlock have_test_prog)
  134 ifeq ($(HAVE_LIB_PTHREAD_SPINLOCK),1)
  135 	CONFIG_CFLAGS += -DHAVE_LIB_PTHREAD_SPINLOCK
  136 $(info autoconfig: using $(LIB_PTHREAD) spinlock)
  137 endif
  138 endif
  139 
  140 #
  141 #  Always add in pthread lib last to resolve pthread linker issues
  142 #
  143 ifndef $(HAVE_LIB_PTHREAD)
  144 HAVE_LIB_PTHREAD = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_PTHREAD) TEST_PROG=test-libpthread have_test_prog)
  145 ifeq ($(HAVE_LIB_PTHREAD),1)
  146 	CONFIG_CFLAGS += -DHAVE_LIB_PTHREAD
  147 	CONFIG_LDFLAGS += $(LIB_PTHREAD)
  148 $(info autoconfig: using $(LIB_PTHREAD))
  149 endif
  150 endif
  151 
  152 ifndef $(HAVE_APPARMOR)
  153 HAVE_APPARMOR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) have_apparmor)
  154 ifeq ($(HAVE_APPARMOR),1)
  155 	CONFIG_OBJS += apparmor-data.o
  156 	CONFIG_CFLAGS += -DHAVE_APPARMOR
  157 	CONFIG_LDFLAGS += $(LIB_APPARMOR)
  158 $(info autoconfig: using $(LIB_APPARMOR))
  159 endif
  160 endif
  161 
  162 ifndef $(HAVE_LIB_IPSEC_MB)
  163 HAVE_LIB_IPSEC_MB = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_IPSEC_MB) TEST_PROG=test-libipsec-mb have_test_prog)
  164 ifeq ($(HAVE_LIB_IPSEC_MB),1)
  165 	CONFIG_CFLAGS += -DHAVE_LIB_IPSEC_MB
  166 	CONFIG_LDFLAGS += $(LIB_IPSEC_MB)
  167 $(info autoconfig: using $(LIB_IPSEC_MB))
  168 endif
  169 endif
  170 
  171 ifndef $(HAVE_AIO_H)
  172 HAVE_AIO_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=aio.h have_header_h)
  173 ifeq ($(HAVE_AIO_H),1)
  174 	CONFIG_CFLAGS += -DHAVE_AIO_H
  175 $(info autoconfig: using aio.h)
  176 endif
  177 endif
  178 
  179 #
  180 #  This must always come after -lpthread so that static linking works
  181 #
  182 ifeq ($(shell uname -s),Haiku)
  183 	CONFIG_LDFLAGS += -lnetwork
  184 else
  185 	CONFIG_LDFLAGS += -lc
  186 endif
  187 
  188 ifndef $(HAVE_BSD_STDLIB_H)
  189 HAVE_BSD_STDLIB_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=bsd/stdlib.h have_header_h)
  190 ifeq ($(HAVE_BSD_STDLIB_H),1)
  191 	CONFIG_CFLAGS += -DHAVE_BSD_STDLIB_H
  192 $(info autoconfig: using bsd/stdlib.h)
  193 endif
  194 endif
  195 
  196 ifndef $(HAVE_BSD_STRING_H)
  197 HAVE_BSD_STRING_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=bsd/string.h have_header_h)
  198 ifeq ($(HAVE_BSD_STRING_H),1)
  199 	CONFIG_CFLAGS += -DHAVE_BSD_STRING_H
  200 $(info autoconfig: using bsd/string.h)
  201 endif
  202 endif
  203 
  204 ifndef $(HAVE_BSD_SYS_TREE_H)
  205 HAVE_BSD_SYS_TREE_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=bsd/sys/tree.h have_header_h)
  206 ifeq ($(HAVE_BSD_SYS_TREE_H),1)
  207 	CONFIG_CFLAGS += -DHAVE_BSD_SYS_TREE_H
  208 $(info autoconfig: using bsd/sys/tree.h)
  209 endif
  210 endif
  211 
  212 ifndef $(HAVE_BSD_WCHAR)
  213 HAVE_BSD_WCHAR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-bsd-wchar have_test_prog)
  214 ifeq ($(HAVE_BSD_WCHAR),1)
  215 	CONFIG_CFLAGS += -DHAVE_BSD_WCHAR
  216 $(info autoconfig: using bsd/wchar.h)
  217 endif
  218 endif
  219 
  220 ifndef $(HAVE_COMPLEX_H)
  221 HAVE_COMPLEX_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=complex.h have_header_h)
  222 ifeq ($(HAVE_COMPLEX_H),1)
  223 	CONFIG_CFLAGS += -DHAVE_COMPLEX_H
  224 $(info autoconfig: using complex.h)
  225 endif
  226 endif
  227 
  228 ifndef $(HAVE_CPUID_H)
  229 HAVE_CPUID_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=cpuid.h have_header_h)
  230 ifeq ($(HAVE_CPUID_H),1)
  231 	CONFIG_CFLAGS += -DHAVE_CPUID_H
  232 $(info autoconfig: using cpuid.h)
  233 endif
  234 endif
  235 
  236 ifndef $(HAVE_WCHAR)
  237 HAVE_WCHAR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-wchar have_test_prog)
  238 ifeq ($(HAVE_WCHAR),1)
  239 	CONFIG_CFLAGS += -DHAVE_WCHAR
  240 $(info autoconfig: using wchar.h)
  241 endif
  242 endif
  243 
  244 ifndef $(HAVE_CRYPT_H)
  245 HAVE_CRYPT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=crypt.h have_header_h)
  246 ifeq ($(HAVE_CRYPT_H),1)
  247 	CONFIG_CFLAGS += -DHAVE_CRYPT_H
  248 $(info autoconfig: using crypt.h)
  249 endif
  250 endif
  251 
  252 ifndef $(HAVE_FEATURES_H)
  253 HAVE_FEATURES_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=features.h have_header_h)
  254 ifeq ($(HAVE_FEATURES_H),1)
  255 	CONFIG_CFLAGS += -DHAVE_FEATURES_H
  256 $(info autoconfig: using features.h)
  257 endif
  258 endif
  259 
  260 ifndef $(HAVE_FENV_H)
  261 HAVE_FENV_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=fenv.h have_header_h)
  262 ifeq ($(HAVE_FENV_H),1)
  263 	CONFIG_CFLAGS += -DHAVE_FENV_H
  264 $(info autoconfig: using fenv.h)
  265 endif
  266 endif
  267 
  268 ifndef $(HAVE_FLOAT_H)
  269 HAVE_FLOAT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=float.h have_header_h)
  270 ifeq ($(HAVE_FLOAT_H),1)
  271 	CONFIG_CFLAGS += -DHAVE_FLOAT_H
  272 $(info autoconfig: using float.h)
  273 endif
  274 endif
  275 
  276 ifndef $(HAVE_GRP_H)
  277 HAVE_GRP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=grp.h have_header_h)
  278 ifeq ($(HAVE_GRP_H),1)
  279 	CONFIG_CFLAGS += -DHAVE_GRP_H
  280 $(info autoconfig: using grp.h)
  281 endif
  282 endif
  283 
  284 ifndef $(HAVE_INTEL_IPSEC_MB_H)
  285 HAVE_INTEL_IPSEC_MB_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=intel-ipsec-mb.h have_header_h)
  286 ifeq ($(HAVE_INTEL_IPSEC_MB_H),1)
  287 	CONFIG_CFLAGS += -DHAVE_INTEL_IPSEC_MB_H
  288 $(info autoconfig: using intel_ipsec_mb.h)
  289 endif
  290 endif
  291 
  292 ifndef $(HAVE_KEYUTILS_H)
  293 HAVE_KEYUTILS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=keyutils.h have_header_h)
  294 ifeq ($(HAVE_KEYUTILS_H),1)
  295 	CONFIG_CFLAGS += -DHAVE_KEYUTILS_H
  296 $(info autoconfig: using keyutils.h)
  297 endif
  298 endif
  299 
  300 ifndef $(HAVE_LIBAIO_H)
  301 HAVE_LIBAIO_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=libaio.h have_header_h)
  302 ifeq ($(HAVE_LIBAIO_H),1)
  303 	CONFIG_CFLAGS += -DHAVE_LIBAIO_H
  304 $(info autoconfig: using libaio.h)
  305 endif
  306 endif
  307 
  308 ifndef $(HAVE_LIBGEN_H)
  309 HAVE_LIBGEN_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=libgen.h have_header_h)
  310 ifeq ($(HAVE_LIBGEN_H),1)
  311 	CONFIG_CFLAGS += -DHAVE_LIBGEN_H
  312 $(info autoconfig: using libgen.h)
  313 endif
  314 endif
  315 
  316 ifndef $(HAVE_LINK_H)
  317 HAVE_LINK_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=link.h have_header_h)
  318 ifeq ($(HAVE_LINK_H),1)
  319 	CONFIG_CFLAGS += -DHAVE_LINK_H
  320 $(info autoconfig: using link.h)
  321 endif
  322 endif
  323 
  324 ifndef $(HAVE_LOCALE_H)
  325 HAVE_LOCALE_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=locale.h have_header_h)
  326 ifeq ($(HAVE_LOCALE_H),1)
  327 	CONFIG_CFLAGS += -DHAVE_LOCALE_H
  328 $(info autoconfig: using locale.h)
  329 endif
  330 endif
  331 
  332 ifndef $(HAVE_MALLOC_H)
  333 HAVE_MALLOC_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=malloc.h have_header_h)
  334 ifeq ($(HAVE_MALLOC_H),1)
  335 	CONFIG_CFLAGS += -DHAVE_MALLOC_H
  336 $(info autoconfig: using malloc.h)
  337 endif
  338 endif
  339 
  340 ifndef $(HAVE_MNTENT_H)
  341 HAVE_MNTENT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=mntent.h have_header_h)
  342 ifeq ($(HAVE_MNTENT_H),1)
  343 	CONFIG_CFLAGS += -DHAVE_MNTENT_H
  344 $(info autoconfig: using mntent.h)
  345 endif
  346 endif
  347 
  348 ifndef $(HAVE_MQUEUE_H)
  349 HAVE_MQUEUE_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=mqueue.h have_header_h)
  350 ifeq ($(HAVE_MQUEUE_H),1)
  351 	CONFIG_CFLAGS += -DHAVE_MQUEUE_H
  352 $(info autoconfig: using mqueue.h)
  353 endif
  354 endif
  355 
  356 ifndef $(HAVE_POLL_H)
  357 HAVE_POLL_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=poll.h have_header_h)
  358 ifeq ($(HAVE_POLL_H),1)
  359 	CONFIG_CFLAGS += -DHAVE_POLL_H
  360 $(info autoconfig: using poll.h)
  361 endif
  362 endif
  363 
  364 ifndef $(HAVE_SEMAPHORE_H)
  365 HAVE_SEMAPHORE_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=semaphore.h have_header_h)
  366 ifeq ($(HAVE_SEMAPHORE_H),1)
  367 	CONFIG_CFLAGS += -DHAVE_SEMAPHORE_H
  368 $(info autoconfig: using semaphore.h)
  369 endif
  370 endif
  371 
  372 ifndef $(HAVE_STRINGS_H)
  373 HAVE_STRINGS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=strings.h have_header_h)
  374 ifeq ($(HAVE_STRINGS_H),1)
  375 	CONFIG_CFLAGS += -DHAVE_STRINGS_H
  376 $(info autoconfig: using strings.h)
  377 endif
  378 endif
  379 
  380 ifndef $(HAVE_SYSLOG_H)
  381 HAVE_SYSLOG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=syslog.h have_header_h)
  382 ifeq ($(HAVE_SYSLOG_H),1)
  383 	CONFIG_CFLAGS += -DHAVE_SYSLOG_H
  384 $(info autoconfig: using syslog.h)
  385 endif
  386 endif
  387 
  388 ifndef $(HAVE_SPAWN_H)
  389 HAVE_SPAWN_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=spawn.h have_header_h)
  390 ifeq ($(HAVE_SPAWN_H),1)
  391 	CONFIG_CFLAGS += -DHAVE_SPAWN_H
  392 $(info autoconfig: using spawn.h)
  393 endif
  394 endif
  395 
  396 ifndef $(HAVE_TERMIO_H)
  397 HAVE_TERMIO_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=termio.h have_header_h)
  398 ifeq ($(HAVE_TERMIO_H),1)
  399 	CONFIG_CFLAGS += -DHAVE_TERMIO_H
  400 $(info autoconfig: using termio.h)
  401 endif
  402 endif
  403 
  404 ifndef $(HAVE_TERMIOS_H)
  405 HAVE_TERMIOS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=termios.h have_header_h)
  406 ifeq ($(HAVE_TERMIOS_H),1)
  407 	CONFIG_CFLAGS += -DHAVE_TERMIOS_H
  408 $(info autoconfig: using termios.h)
  409 endif
  410 endif
  411 
  412 ifndef $(HAVE_UCONTEXT_H)
  413 HAVE_UCONTEXT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=ucontext.h have_header_h)
  414 ifeq ($(HAVE_UCONTEXT_H),1)
  415 	CONFIG_CFLAGS += -DHAVE_UCONTEXT_H
  416 $(info autoconfig: using ucontext.h)
  417 endif
  418 endif
  419 
  420 ifndef $(HAVE_USTAT_H)
  421 HAVE_USTAT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=ustat.h have_header_h)
  422 ifeq ($(HAVE_USTAT_H),1)
  423 	CONFIG_CFLAGS += -DHAVE_USTAT_H
  424 $(info autoconfig: using ustat.h)
  425 endif
  426 endif
  427 
  428 ifndef $(HAVE_UTIME_H)
  429 HAVE_UTIME_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=utime.h have_header_h)
  430 ifeq ($(HAVE_UTIME_H),1)
  431 	CONFIG_CFLAGS += -DHAVE_UTIME_H
  432 $(info autoconfig: using utime.h)
  433 endif
  434 endif
  435 
  436 ifndef $(HAVE_NET_IF_H)
  437 HAVE_NET_IF_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=net/if.h have_header_h)
  438 ifeq ($(HAVE_NET_IF_H),1)
  439 	CONFIG_CFLAGS += -DHAVE_NET_IF_H
  440 $(info autoconfig: using net/if.h)
  441 endif
  442 endif
  443 
  444 ifndef $(HAVE_NETINET_IP_H)
  445 HAVE_NETINET_IP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=netinet/ip.h have_header_h)
  446 ifeq ($(HAVE_NETINET_IP_H),1)
  447 	CONFIG_CFLAGS += -DHAVE_NETINET_IP_H
  448 $(info autoconfig: using netinet/ip.h)
  449 endif
  450 endif
  451 
  452 ifndef $(HAVE_NETINET_IP_ICMP_H)
  453 HAVE_NETINET_IP_ICMP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=netinet/ip_icmp.h have_header_h)
  454 ifeq ($(HAVE_NETINET_IP_ICMP_H),1)
  455 	CONFIG_CFLAGS += -DHAVE_NETINET_IP_ICMP_H
  456 $(info autoconfig: using netinet/ip_icmp.h)
  457 endif
  458 endif
  459 
  460 ifndef $(HAVE_NETINET_SCTP_H)
  461 HAVE_NETINET_SCTP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=netinet/sctp.h have_header_h)
  462 ifeq ($(HAVE_NETINET_SCTP_H),1)
  463 	CONFIG_CFLAGS += -DHAVE_NETINET_SCTP_H
  464 $(info autoconfig: using netinet/sctp.h)
  465 endif
  466 endif
  467 
  468 ifndef $(HAVE_NETINET_TCP_H)
  469 HAVE_NETINET_TCP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=netinet/tcp.h have_header_h)
  470 ifeq ($(HAVE_NETINET_TCP_H),1)
  471 	CONFIG_CFLAGS += -DHAVE_NETINET_TCP_H
  472 $(info autoconfig: using netinet/tcp.h)
  473 endif
  474 endif
  475 
  476 ifndef $(HAVE_SYS_APPARMOR_H)
  477 HAVE_SYS_APPARMOR_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/apparmor.h have_header_h)
  478 ifeq ($(HAVE_SYS_APPARMOR_H),1)
  479 	CONFIG_CFLAGS += -DHAVE_SYS_APPARMOR_H
  480 $(info autoconfig: using sys/apparmor.h)
  481 endif
  482 endif
  483 
  484 ifndef $(HAVE_SYS_AUXV_H)
  485 HAVE_SYS_AUXV_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/auxv.h have_header_h)
  486 ifeq ($(HAVE_SYS_AUXV_H),1)
  487 	CONFIG_CFLAGS += -DHAVE_SYS_AUXV_H
  488 $(info autoconfig: using sys/auxv.h)
  489 endif
  490 endif
  491 
  492 ifndef $(HAVE_SYS_CAPABILITY_H)
  493 HAVE_SYS_CAPABILITY_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-cap have_test_prog)
  494 ifeq ($(HAVE_SYS_CAPABILITY_H),1)
  495 	CONFIG_CFLAGS += -DHAVE_SYS_CAPABILITY_H
  496 $(info autoconfig: using sys/capability.h)
  497 endif
  498 endif
  499 
  500 ifndef $(HAVE_SYS_EPOLL_H)
  501 HAVE_SYS_EPOLL_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/epoll.h have_header_h)
  502 ifeq ($(HAVE_SYS_EPOLL_H),1)
  503 	CONFIG_CFLAGS += -DHAVE_SYS_EPOLL_H
  504 $(info autoconfig: using sys/epoll.h)
  505 endif
  506 endif
  507 
  508 ifndef $(HAVE_SYS_EVENTFD_H)
  509 HAVE_SYS_EVENTFD_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/eventfd.h have_header_h)
  510 ifeq ($(HAVE_SYS_EVENTFD_H),1)
  511 	CONFIG_CFLAGS += -DHAVE_SYS_EVENTFD_H
  512 $(info autoconfig: using sys/eventfd.h)
  513 endif
  514 endif
  515 
  516 ifndef $(HAVE_SYS_INOTIFY_H)
  517 HAVE_SYS_INOTIFY_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/inotify.h have_header_h)
  518 ifeq ($(HAVE_SYS_INOTIFY_H),1)
  519 	CONFIG_CFLAGS += -DHAVE_SYS_INOTIFY_H
  520 $(info autoconfig: using sys/inotify.h)
  521 endif
  522 endif
  523 
  524 ifndef $(HAVE_SYS_IO_H)
  525 HAVE_SYS_IO_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/io.h have_header_h)
  526 ifeq ($(HAVE_SYS_IO_H),1)
  527 	CONFIG_CFLAGS += -DHAVE_SYS_IO_H
  528 $(info autoconfig: using sys/io.h)
  529 endif
  530 endif
  531 
  532 ifndef $(HAVE_SYS_IPC_H)
  533 HAVE_SYS_IPC_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/ipc.h have_header_h)
  534 ifeq ($(HAVE_SYS_IPC_H),1)
  535 	CONFIG_CFLAGS += -DHAVE_SYS_IPC_H
  536 $(info autoconfig: using sys/ipc.h)
  537 endif
  538 endif
  539 
  540 ifndef $(HAVE_SYS_FANOTIFY_H)
  541 HAVE_SYS_FANOTIFY_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/fanotify.h have_header_h)
  542 ifeq ($(HAVE_SYS_FANOTIFY_H),1)
  543 	CONFIG_CFLAGS += -DHAVE_SYS_FANOTIFY_H
  544 $(info autoconfig: using sys/fanotify.h)
  545 endif
  546 endif
  547 
  548 ifndef $(HAVE_SYS_MEMFD_H)
  549 HAVE_SYS_MEMFD_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/memfd.h have_header_h)
  550 ifeq ($(HAVE_SYS_MEMFD_H),1)
  551 	CONFIG_CFLAGS += -DHAVE_SYS_MEMFD_H
  552 $(info autoconfig: using sys/memfd.h)
  553 endif
  554 endif
  555 
  556 ifndef $(HAVE_SYS_MOUNT_H)
  557 HAVE_SYS_MOUNT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/mount.h have_header_h)
  558 ifeq ($(HAVE_SYS_MOUNT_H),1)
  559 	CONFIG_CFLAGS += -DHAVE_SYS_MOUNT_H
  560 $(info autoconfig: using sys/mount.h)
  561 endif
  562 endif
  563 
  564 ifndef $(HAVE_SYS_MSG_H)
  565 HAVE_SYS_MSG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/msg.h have_header_h)
  566 ifeq ($(HAVE_SYS_MSG_H),1)
  567 	CONFIG_CFLAGS += -DHAVE_SYS_MSG_H
  568 $(info autoconfig: using sys/msg.h)
  569 endif
  570 endif
  571 
  572 ifndef $(HAVE_SYS_PARAM_H)
  573 HAVE_SYS_PARAM_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/param.h have_header_h)
  574 ifeq ($(HAVE_SYS_PARAM_H),1)
  575 	CONFIG_CFLAGS += -DHAVE_SYS_PARAM_H
  576 $(info autoconfig: using sys/param.h)
  577 endif
  578 endif
  579 
  580 ifndef $(HAVE_SYS_PERSONALITY_H)
  581 HAVE_SYS_PERSONALITY_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/personality.h have_header_h)
  582 ifeq ($(HAVE_SYS_PERSONALITY_H),1)
  583 	CONFIG_CFLAGS += -DHAVE_SYS_PERSONALITY_H
  584 $(info autoconfig: using sys/personality.h)
  585 endif
  586 endif
  587 
  588 ifndef $(HAVE_SYS_PRCTL_H)
  589 HAVE_SYS_PRCTL_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/prctl.h have_header_h)
  590 ifeq ($(HAVE_SYS_PRCTL_H),1)
  591 	CONFIG_CFLAGS += -DHAVE_SYS_PRCTL_H
  592 $(info autoconfig: using sys/prctl.h)
  593 endif
  594 endif
  595 
  596 ifndef $(HAVE_SYS_TREE_H)
  597 HAVE_SYS_TREE_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/tree.h have_header_h)
  598 ifeq ($(HAVE_SYS_TREE_H),1)
  599 	CONFIG_CFLAGS += -DHAVE_SYS_TREE_H
  600 $(info autoconfig: using sys/tree.h)
  601 endif
  602 endif
  603 
  604 ifndef $(HAVE_SYS_QUOTA_H)
  605 HAVE_SYS_QUOTA_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/quota.h have_header_h)
  606 ifeq ($(HAVE_SYS_QUOTA_H),1)
  607 	CONFIG_CFLAGS += -DHAVE_SYS_QUOTA_H
  608 $(info autoconfig: using sys/quota.h)
  609 endif
  610 endif
  611 
  612 ifndef $(HAVE_SYS_SELECT_H)
  613 HAVE_SYS_SELECT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/select.h have_header_h)
  614 ifeq ($(HAVE_SYS_SELECT_H),1)
  615 	CONFIG_CFLAGS += -DHAVE_SYS_SELECT_H
  616 $(info autoconfig: using sys/select.h)
  617 endif
  618 endif
  619 
  620 ifndef $(HAVE_SYS_SENDFILE_H)
  621 HAVE_SYS_SENDFILE_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/sendfile.h have_header_h)
  622 ifeq ($(HAVE_SYS_SENDFILE_H),1)
  623 	CONFIG_CFLAGS += -DHAVE_SYS_SENDFILE_H
  624 $(info autoconfig: using sys/sendfile.h)
  625 endif
  626 endif
  627 
  628 ifndef $(HAVE_SYS_SHM_H)
  629 HAVE_SYS_SHM_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/shm.h have_header_h)
  630 ifeq ($(HAVE_SYS_SHM_H),1)
  631 	CONFIG_CFLAGS += -DHAVE_SYS_SHM_H
  632 $(info autoconfig: using sys/shm.h)
  633 endif
  634 endif
  635 
  636 ifndef $(HAVE_SYS_SIGNALFD_H)
  637 HAVE_SYS_SIGNALFD_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/signalfd.h have_header_h)
  638 ifeq ($(HAVE_SYS_SIGNALFD_H),1)
  639 	CONFIG_CFLAGS += -DHAVE_SYS_SIGNALFD_H
  640 $(info autoconfig: using sys/signalfd.h)
  641 endif
  642 endif
  643 
  644 ifndef $(HAVE_SYS_STATFS_H)
  645 HAVE_SYS_STATFS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/statfs.h have_header_h)
  646 ifeq ($(HAVE_SYS_STATFS_H),1)
  647 	CONFIG_CFLAGS += -DHAVE_SYS_STATFS_H
  648 $(info autoconfig: using sys/statfs.h)
  649 endif
  650 endif
  651 
  652 ifndef $(HAVE_SYS_STATVFS_H)
  653 HAVE_SYS_STATVFS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/statvfs.h have_header_h)
  654 ifeq ($(HAVE_SYS_STATVFS_H),1)
  655 	CONFIG_CFLAGS += -DHAVE_SYS_STATVFS_H
  656 $(info autoconfig: using sys/statvfs.h)
  657 endif
  658 endif
  659 
  660 ifndef $(HAVE_SYS_SWAP_H)
  661 HAVE_SYS_SWAP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/swap.h have_header_h)
  662 ifeq ($(HAVE_SYS_SWAP_H),1)
  663 	CONFIG_CFLAGS += -DHAVE_SYS_SWAP_H
  664 $(info autoconfig: using sys/swap.h)
  665 endif
  666 endif
  667 
  668 ifndef $(HAVE_SYSCALL_H)
  669 HAVE_SYSCALL_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/syscall.h have_header_h)
  670 ifeq ($(HAVE_SYSCALL_H),1)
  671 	CONFIG_CFLAGS += -DHAVE_SYSCALL_H
  672 $(info autoconfig: using sys/syscall.h)
  673 endif
  674 endif
  675 
  676 ifndef $(HAVE_SYS_SYSINFO_H)
  677 HAVE_SYS_SYSINFO_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/sysinfo.h have_header_h)
  678 ifeq ($(HAVE_SYS_SYSINFO_H),1)
  679 	CONFIG_CFLAGS += -DHAVE_SYS_SYSINFO_H
  680 $(info autoconfig: using sys/sysinfo.h)
  681 endif
  682 endif
  683 
  684 ifndef $(HAVE_SYS_SYSMACROS_H)
  685 HAVE_SYS_SYSMACROS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/sysmacros.h have_header_h)
  686 ifeq ($(HAVE_SYS_SYSMACROS_H),1)
  687 	CONFIG_CFLAGS += -DHAVE_SYS_SYSMACROS_H
  688 $(info autoconfig: using sys/sysmacros.h)
  689 endif
  690 endif
  691 
  692 ifndef $(HAVE_SYS_TIMERFD_H)
  693 HAVE_SYS_TIMERFD_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/timerfd.h have_header_h)
  694 ifeq ($(HAVE_SYS_TIMERFD_H),1)
  695 	CONFIG_CFLAGS += -DHAVE_SYS_TIMERFD_H
  696 $(info autoconfig: using sys/timerfd.h)
  697 endif
  698 endif
  699 
  700 ifndef $(HAVE_SYS_TIMEX_H)
  701 HAVE_SYS_TIMEX_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/timex.h have_header_h)
  702 ifeq ($(HAVE_SYS_TIMEX_H),1)
  703 	CONFIG_CFLAGS += -DHAVE_SYS_TIMEX_H
  704 $(info autoconfig: using sys/timex.h)
  705 endif
  706 endif
  707 
  708 ifndef $(HAVE_SYS_UIO_H)
  709 HAVE_SYS_UIO_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/uio.h have_header_h)
  710 ifeq ($(HAVE_SYS_UIO_H),1)
  711 	CONFIG_CFLAGS += -DHAVE_SYS_UIO_H
  712 $(info autoconfig: using sys/uio.h)
  713 endif
  714 endif
  715 
  716 ifndef $(HAVE_SYS_UCRED_H)
  717 HAVE_SYS_UCRED_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/ucred.h have_header_h)
  718 ifeq ($(HAVE_SYS_UCRED_H),1)
  719 	CONFIG_CFLAGS += -DHAVE_SYS_UCRED_H
  720 $(info autoconfig: using sys/ucred.h)
  721 endif
  722 endif
  723 
  724 ifndef $(HAVE_SYS_UN_H)
  725 HAVE_SYS_UN_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/un.h have_header_h)
  726 ifeq ($(HAVE_SYS_UN_H),1)
  727 	CONFIG_CFLAGS += -DHAVE_SYS_UN_H
  728 $(info autoconfig: using sys/un.h)
  729 endif
  730 endif
  731 
  732 ifndef $(HAVE_SYS_UTSNAME_H)
  733 HAVE_SYS_UTSNAME_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/utsname.h have_header_h)
  734 ifeq ($(HAVE_SYS_UTSNAME_H),1)
  735 	CONFIG_CFLAGS += -DHAVE_SYS_UTSNAME_H
  736 $(info autoconfig: using sys/utsname.h)
  737 endif
  738 endif
  739 
  740 ifndef $(HAVE_SYS_VFS_H)
  741 HAVE_SYS_VFS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/vfs.h have_header_h)
  742 ifeq ($(HAVE_SYS_VFS_H),1)
  743 	CONFIG_CFLAGS += -DHAVE_SYS_VFS_H
  744 $(info autoconfig: using sys/vfs.h)
  745 endif
  746 endif
  747 
  748 ifndef $(HAVE_SYS_XATTR_H)
  749 HAVE_SYS_XATTR_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=sys/xattr.h have_header_h)
  750 ifeq ($(HAVE_SYS_XATTR_H),1)
  751 	CONFIG_CFLAGS += -DHAVE_SYS_XATTR_H
  752 $(info autoconfig: using sys/xattr.h)
  753 endif
  754 endif
  755 
  756 ifndef $(HAVE_ATTR_XATTR_H)
  757 HAVE_ATTR_XATTR_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=attr/xattr.h have_header_h)
  758 ifeq ($(HAVE_ATTR_XATTR_H),1)
  759 	CONFIG_CFLAGS += -DHAVE_ATTR_XATTR_H
  760 $(info autoconfig: using attr/xattr.h)
  761 endif
  762 endif
  763 
  764 ifndef $(HAVE_LINUX_AUDIT_H)
  765 HAVE_LINUX_AUDIT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/audit.h have_header_h)
  766 ifeq ($(HAVE_LINUX_AUDIT_H),1)
  767 	CONFIG_CFLAGS += -DHAVE_LINUX_AUDIT_H
  768 $(info autoconfig: using linux/audit.h)
  769 endif
  770 endif
  771 
  772 ifndef $(HAVE_LINUX_CN_PROC_H)
  773 HAVE_LINUX_CN_PROC_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/cn_proc.h have_header_h)
  774 ifeq ($(HAVE_LINUX_CN_PROC_H),1)
  775 	CONFIG_CFLAGS += -DHAVE_LINUX_CN_PROC_H
  776 $(info autoconfig: using linux/cn_proc.h)
  777 endif
  778 endif
  779 
  780 ifndef $(HAVE_LINUX_CONNECTOR_H)
  781 HAVE_LINUX_CONNECTOR_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/connector.h have_header_h)
  782 ifeq ($(HAVE_LINUX_CONNECTOR_H),1)
  783 	CONFIG_CFLAGS += -DHAVE_LINUX_CONNECTOR_H
  784 $(info autoconfig: using linux/connector.h)
  785 endif
  786 endif
  787 
  788 ifndef $(HAVE_LINUX_DM_IOCTL_H)
  789 HAVE_LINUX_DM_IOCTL_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/dm-ioctl.h have_header_h)
  790 ifeq ($(HAVE_LINUX_DM_IOCTL_H),1)
  791 	CONFIG_CFLAGS += -DHAVE_LINUX_DM_IOCTL_H
  792 $(info autoconfig: using linux/dm-ioctl.h)
  793 endif
  794 endif
  795 
  796 ifndef $(HAVE_LINUX_IF_ALG_H)
  797 HAVE_LINUX_IF_ALG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/if_alg.h have_header_h)
  798 ifeq ($(HAVE_LINUX_IF_ALG_H),1)
  799 	CONFIG_CFLAGS += -DHAVE_LINUX_IF_ALG_H
  800 $(info autoconfig: using linux/if_alg.h)
  801 endif
  802 endif
  803 
  804 ifndef $(HAVE_LINUX_FIEMAP_H)
  805 HAVE_LINUX_FIEMAP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/fiemap.h have_header_h)
  806 ifeq ($(HAVE_LINUX_FIEMAP_H),1)
  807 	CONFIG_CFLAGS += -DHAVE_LINUX_FIEMAP_H
  808 $(info autoconfig: using linux/fiemap.h)
  809 endif
  810 endif
  811 
  812 ifndef $(HAVE_LINUX_FILTER_H)
  813 HAVE_LINUX_FILTER_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/filter.h have_header_h)
  814 ifeq ($(HAVE_LINUX_FILTER_H),1)
  815 	CONFIG_CFLAGS += -DHAVE_LINUX_FILTER_H
  816 $(info autoconfig: using linux/filter.h)
  817 endif
  818 endif
  819 
  820 ifndef $(HAVE_LINUX_FUTEX_H)
  821 HAVE_LINUX_FUTEX_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/futex.h have_header_h)
  822 ifeq ($(HAVE_LINUX_FUTEX_H),1)
  823 	CONFIG_CFLAGS += -DHAVE_LINUX_FUTEX_H
  824 $(info autoconfig: using linux/futex.h)
  825 endif
  826 endif
  827 
  828 ifndef $(HAVE_LINUX_FS_H)
  829 HAVE_LINUX_FS_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/fs.h have_header_h)
  830 ifeq ($(HAVE_LINUX_FS_H),1)
  831 	CONFIG_CFLAGS += -DHAVE_LINUX_FS_H
  832 $(info autoconfig: using linux/fs.h)
  833 endif
  834 endif
  835 
  836 ifndef $(HAVE_LINUX_HDREG_H)
  837 HAVE_LINUX_HDREG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/hdreg.h have_header_h)
  838 ifeq ($(HAVE_LINUX_HDREG_H),1)
  839 	CONFIG_CFLAGS += -DHAVE_LINUX_HDREG_H
  840 $(info autoconfig: using linux/hdreg.h)
  841 endif
  842 endif
  843 
  844 ifndef $(HAVE_LINUX_LOOP_H)
  845 HAVE_LINUX_LOOP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/loop.h have_header_h)
  846 ifeq ($(HAVE_LINUX_LOOP_H),1)
  847 	CONFIG_CFLAGS += -DHAVE_LINUX_LOOP_H
  848 $(info autoconfig: using linux/loop.h)
  849 endif
  850 endif
  851 
  852 ifndef $(HAVE_LINUX_MEDIA_H)
  853 HAVE_LINUX_MEDIA_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/media.h have_header_h)
  854 ifeq ($(HAVE_LINUX_MEDIA_H),1)
  855 	CONFIG_CFLAGS += -DHAVE_LINUX_MEDIA_H
  856 $(info autoconfig: using linux/media.h)
  857 endif
  858 endif
  859 
  860 ifndef $(HAVE_LINUX_MEMBARRIER_H)
  861 HAVE_LINUX_MEMBARRIER_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/membarrier.h have_header_h)
  862 ifeq ($(HAVE_LINUX_MEMBARRIER_H),1)
  863 	CONFIG_CFLAGS += -DHAVE_LINUX_MEMBARRIER_H
  864 $(info autoconfig: using linux/membarrier.h)
  865 endif
  866 endif
  867 
  868 ifndef $(HAVE_LINUX_NETLINK_H)
  869 HAVE_LINUX_NETLINK_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/netlink.h have_header_h)
  870 ifeq ($(HAVE_LINUX_NETLINK_H),1)
  871 	CONFIG_CFLAGS += -DHAVE_LINUX_NETLINK_H
  872 $(info autoconfig: using linux/netlink.h)
  873 endif
  874 endif
  875 
  876 ifndef $(HAVE_LINUX_PERF_EVENT_H)
  877 HAVE_LINUX_PERF_EVENT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/perf_event.h have_header_h)
  878 ifeq ($(HAVE_LINUX_PERF_EVENT_H),1)
  879 	CONFIG_CFLAGS += -DHAVE_LINUX_PERF_EVENT_H
  880 $(info autoconfig: using linux/perf_event.h)
  881 endif
  882 endif
  883 
  884 ifndef $(HAVE_LINUX_POSIX_TYPES_H)
  885 HAVE_LINUX_POSIX_TYPES_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/posix_types.h have_header_h)
  886 ifeq ($(HAVE_LINUX_POSIX_TYPES_H),1)
  887 	CONFIG_CFLAGS += -DHAVE_LINUX_POSIX_TYPES_H
  888 $(info autoconfig: using linux/posix_types.h)
  889 endif
  890 endif
  891 
  892 ifndef $(HAVE_LINUX_RANDOM_H)
  893 HAVE_LINUX_RANDOM_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/random.h have_header_h)
  894 ifeq ($(HAVE_LINUX_RANDOM_H),1)
  895 	CONFIG_CFLAGS += -DHAVE_LINUX_RANDOM_H
  896 $(info autoconfig: using linux/random.h)
  897 endif
  898 endif
  899 
  900 ifndef $(HAVE_LINUX_RTC_H)
  901 HAVE_LINUX_RTC_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/rtc.h have_header_h)
  902 ifeq ($(HAVE_LINUX_RTC_H),1)
  903 	CONFIG_CFLAGS += -DHAVE_LINUX_RTC_H
  904 $(info autoconfig: using linux/rtc.h)
  905 endif
  906 endif
  907 
  908 ifndef $(HAVE_LINUX_RTNETLINK_H)
  909 HAVE_LINUX_RTNETLINK_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/rtnetlink.h have_header_h)
  910 ifeq ($(HAVE_LINUX_RTNETLINK_H),1)
  911 	CONFIG_CFLAGS += -DHAVE_LINUX_RTNETLINK_H
  912 $(info autoconfig: using linux/rtnetlink.h)
  913 endif
  914 endif
  915 
  916 ifndef $(HAVE_LINUX_SECCOMP_H)
  917 HAVE_LINUX_SECCOMP_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/seccomp.h have_header_h)
  918 ifeq ($(HAVE_LINUX_SECCOMP_H),1)
  919 	CONFIG_CFLAGS += -DHAVE_LINUX_SECCOMP_H
  920 $(info autoconfig: using linux/seccomp.h)
  921 endif
  922 endif
  923 
  924 ifndef $(HAVE_LINUX_SOCK_DIAG_H)
  925 HAVE_LINUX_SOCK_DIAG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sock-diag have_test_prog)
  926 ifeq ($(HAVE_LINUX_SOCK_DIAG_H),1)
  927 	CONFIG_CFLAGS += -DHAVE_LINUX_SOCK_DIAG_H
  928 $(info autoconfig: using linux/sock_diag.h)
  929 endif
  930 endif
  931 
  932 ifndef $(HAVE_LINUX_SOCKET_H)
  933 HAVE_LINUX_SOCKET_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/socket.h have_header_h)
  934 ifeq ($(HAVE_LINUX_SOCKET_H),1)
  935 	CONFIG_CFLAGS += -DHAVE_LINUX_SOCKET_H
  936 $(info autoconfig: using linux/socket.h)
  937 endif
  938 endif
  939 
  940 ifndef $(HAVE_LINUX_UNIX_DIAG_H)
  941 HAVE_LINUX_UNIX_DIAG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/unix_diag.h have_header_h)
  942 ifeq ($(HAVE_LINUX_UNIX_DIAG_H),1)
  943 	CONFIG_CFLAGS += -DHAVE_LINUX_UNIX_DIAG_H
  944 $(info autoconfig: using linux/unix_diag.h)
  945 endif
  946 endif
  947 
  948 ifndef $(HAVE_LINUX_USERFAULTFD_H)
  949 HAVE_LINUX_USERFAULTFD_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/userfaultfd.h have_header_h)
  950 ifeq ($(HAVE_LINUX_USERFAULTFD_H),1)
  951 	CONFIG_CFLAGS += -DHAVE_LINUX_USERFAULTFD_H
  952 $(info autoconfig: using linux/userfaultfd.h.h)
  953 endif
  954 endif
  955 
  956 ifndef $(HAVE_LINUX_VERSION_H)
  957 HAVE_LINUX_VERSION_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/version.h have_header_h)
  958 ifeq ($(HAVE_LINUX_VERSION_H),1)
  959 	CONFIG_CFLAGS += -DHAVE_LINUX_VERSION_H
  960 $(info autoconfig: using linux/version.h)
  961 endif
  962 endif
  963 
  964 ifndef $(HAVE_LINUX_VIDEODEV2_H)
  965 HAVE_LINUX_VIDEODEV2_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/videodev2.h have_header_h)
  966 ifeq ($(HAVE_LINUX_VIDEODEV2_H),1)
  967 	CONFIG_CFLAGS += -DHAVE_LINUX_VIDEODEV2_H
  968 $(info autoconfig: using linux/videodev2.h)
  969 endif
  970 endif
  971 
  972 ifndef $(HAVE_LINUX_VT_H)
  973 HAVE_LINUX_VT_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/vt.h have_header_h)
  974 ifeq ($(HAVE_LINUX_VT_H),1)
  975 	CONFIG_CFLAGS += -DHAVE_LINUX_VT_H
  976 $(info autoconfig: using linux/vt.h)
  977 endif
  978 endif
  979 
  980 ifndef $(HAVE_LINUX_WATCHDOG_H)
  981 HAVE_LINUX_WATCHDOG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=linux/watchdog.h have_header_h)
  982 ifeq ($(HAVE_LINUX_WATCHDOG_H),1)
  983 	CONFIG_CFLAGS += -DHAVE_LINUX_WATCHDOG_H
  984 $(info autoconfig: using linux/watchdog.h)
  985 endif
  986 endif
  987 
  988 ifndef $(HAVE_SCSI_SCSI_H)
  989 HAVE_SCSI_SCSI_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=scsi/scsi.h have_header_h)
  990 ifeq ($(HAVE_SCSI_SCSI_H),1)
  991 	CONFIG_CFLAGS += -DHAVE_SCSI_SCSI_H
  992 $(info autoconfig: using scsi/scsi.h)
  993 endif
  994 endif
  995 
  996 ifndef $(HAVE_SCSI_SG_H)
  997 HAVE_SCSI_SG_H = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) HEADER=scsi/sg.h have_header_h)
  998 ifeq ($(HAVE_SCSI_SG_H),1)
  999 	CONFIG_CFLAGS += -DHAVE_SCSI_SG_H
 1000 $(info autoconfig: using scsi/sg.h)
 1001 endif
 1002 endif
 1003 
 1004 ifndef $(HAVE_FLOAT_DECIMAL32)
 1005 HAVE_FLOAT_DECIMAL32 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) FLOAT_TYPE=_Decimal32 have_float)
 1006 ifeq ($(HAVE_FLOAT_DECIMAL32),1)
 1007 	CONFIG_CFLAGS += -DHAVE_FLOAT_DECIMAL32
 1008 $(info autoconfig: using float decimal32 support)
 1009 endif
 1010 endif
 1011 
 1012 ifndef $(HAVE_FLOAT_DECIMAL64)
 1013 HAVE_FLOAT_DECIMAL64 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) FLOAT_TYPE=_Decimal64 have_float)
 1014 ifeq ($(HAVE_FLOAT_DECIMAL64),1)
 1015 	CONFIG_CFLAGS += -DHAVE_FLOAT_DECIMAL64
 1016 $(info autoconfig: using float decimal64 support)
 1017 endif
 1018 endif
 1019 
 1020 ifndef $(HAVE_FLOAT_DECIMAL128)
 1021 HAVE_FLOAT_DECIMAL128 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) FLOAT_TYPE=_Decimal128 have_float)
 1022 ifeq ($(HAVE_FLOAT_DECIMAL128),1)
 1023 	CONFIG_CFLAGS += -DHAVE_FLOAT_DECIMAL128
 1024 $(info autoconfig: using float decimal128 support)
 1025 endif
 1026 endif
 1027 
 1028 ifndef $(HAVE_FLOAT16)
 1029 HAVE_FLOAT16 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) FLOAT_TYPE=__fp16 have_float)
 1030 ifeq ($(HAVE_FLOAT16),1)
 1031 	CONFIG_CFLAGS += -DHAVE_FLOAT16
 1032 $(info autoconfig: using float16 support)
 1033 endif
 1034 endif
 1035 
 1036 ifndef $(HAVE_FLOAT32)
 1037 HAVE_FLOAT32 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) FLOAT_TYPE=_Float32 have_float)
 1038 ifeq ($(HAVE_FLOAT32),1)
 1039 	CONFIG_CFLAGS += -DHAVE_FLOAT32
 1040 $(info autoconfig: using float32 support)
 1041 endif
 1042 endif
 1043 
 1044 ifndef $(HAVE_FLOAT80)
 1045 HAVE_FLOAT80 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) FLOAT_TYPE=__float80 have_float)
 1046 ifeq ($(HAVE_FLOAT80),1)
 1047 	CONFIG_CFLAGS += -DHAVE_FLOAT80
 1048 $(info autoconfig: using float80 support)
 1049 endif
 1050 endif
 1051 
 1052 ifndef $(HAVE_FLOAT128)
 1053 HAVE_FLOAT128 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) FLOAT_TYPE=__float128 have_float)
 1054 ifeq ($(HAVE_FLOAT128),1)
 1055 	CONFIG_CFLAGS += -DHAVE_FLOAT128
 1056 $(info autoconfig: using float128 support)
 1057 endif
 1058 endif
 1059 
 1060 ifndef $(HAVE_INT128_T)
 1061 HAVE_INT128_T = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-int128_t have_test_prog)
 1062 ifeq ($(HAVE_INT128_T),1)
 1063 	CONFIG_CFLAGS += -DHAVE_INT128_T
 1064 $(info autoconfig: using int128_t support)
 1065 endif
 1066 endif
 1067 
 1068 ifndef $(HAVE_VECMATH)
 1069 HAVE_VECMATH = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) have_vecmath)
 1070 ifeq ($(HAVE_VECMATH),1)
 1071 	CONFIG_CFLAGS += -DHAVE_VECMATH
 1072 $(info autoconfig: using vector math support)
 1073 endif
 1074 endif
 1075 
 1076 ifndef $(HAVE_ATOMIC)
 1077 HAVE_ATOMIC = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) have_atomic)
 1078 ifeq ($(HAVE_ATOMIC),1)
 1079 	CONFIG_CFLAGS += -DHAVE_ATOMIC
 1080 $(info autoconfig: using atomic support)
 1081 endif
 1082 endif
 1083 
 1084 ifndef $(HAVE_ASM_NOP)
 1085 HAVE_ASM_NOP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-asm-nop have_test_prog)
 1086 ifeq ($(HAVE_ASM_NOP),1)
 1087 	CONFIG_CFLAGS += -DHAVE_ASM_NOP
 1088 $(info autoconfig: using nop assembler instruction)
 1089 endif
 1090 endif
 1091 
 1092 ifndef $(HAVE_TARGET_CLONES)
 1093 HAVE_TARGET_CLONES = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-target-clones have_test_prog)
 1094 ifeq ($(HAVE_TARGET_CLONES),1)
 1095 	CONFIG_CFLAGS += -DHAVE_TARGET_CLONES
 1096 $(info autoconfig: using target_clones attribute)
 1097 endif
 1098 endif
 1099 
 1100 ifndef $(HAVE_ALIGNED_64)
 1101 HAVE_ALIGNED_64 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-aligned-64 have_test_prog)
 1102 ifeq ($(HAVE_ALIGNED_64),1)
 1103 	CONFIG_CFLAGS += -DHAVE_ALIGNED_64
 1104 $(info autoconfig: using 64 byte alignment attribute)
 1105 endif
 1106 endif
 1107 
 1108 ifndef $(HAVE_ALIGNED_128)
 1109 HAVE_ALIGNED_128 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-aligned-128 have_test_prog)
 1110 ifeq ($(HAVE_ALIGNED_128),1)
 1111 	CONFIG_CFLAGS += -DHAVE_ALIGNED_128
 1112 $(info autoconfig: using 128 byte alignment attribute)
 1113 endif
 1114 endif
 1115 
 1116 ifndef $(HAVE_ALIGNED_64K)
 1117 HAVE_ALIGNED_64K = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-aligned-64K have_test_prog)
 1118 ifeq ($(HAVE_ALIGNED_64K),1)
 1119 	CONFIG_CFLAGS += -DHAVE_ALIGNED_64K
 1120 $(info autoconfig: using 64K byte alignment attribute)
 1121 endif
 1122 endif
 1123 
 1124 ifndef $(HAVE_ACCEPT4)
 1125 HAVE_ACCEPT4 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-accept4 have_test_prog)
 1126 ifeq ($(HAVE_ACCEPT4),1)
 1127 	CONFIG_CFLAGS += -DHAVE_ACCEPT4
 1128 $(info autoconfig: using accept4)
 1129 endif
 1130 endif
 1131 
 1132 ifndef $(HAVE_ADJTIME)
 1133 HAVE_ADJTIME = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-adjtime have_test_prog)
 1134 ifeq ($(HAVE_ADJTIME),1)
 1135 	CONFIG_CFLAGS += -DHAVE_ADJTIME
 1136 $(info autoconfig: using adjtime)
 1137 endif
 1138 endif
 1139 
 1140 ifndef $(HAVE_ADJTIMEX)
 1141 HAVE_ADJTIMEX = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-adjtimex have_test_prog)
 1142 ifeq ($(HAVE_ADJTIMEX),1)
 1143 	CONFIG_CFLAGS += -DHAVE_ADJTIMEX
 1144 $(info autoconfig: using adjtimex)
 1145 endif
 1146 endif
 1147 
 1148 ifndef $(HAVE_AFFINITY)
 1149 HAVE_AFFINITY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-affinity have_test_prog)
 1150 ifeq ($(HAVE_AFFINITY),1)
 1151 	CONFIG_CFLAGS += -DHAVE_AFFINITY
 1152 $(info autoconfig: using affinity scheduling CPU masks)
 1153 endif
 1154 endif
 1155 
 1156 ifndef $(HAVE_BUILTIN_CTZ)
 1157 HAVE_BUILTIN_CTZ = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-builtin-ctz have_test_prog)
 1158 ifeq ($(HAVE_BUILTIN_CTZ),1)
 1159 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CTZ
 1160 $(info autoconfig: using __builtin_ctz)
 1161 endif
 1162 endif
 1163 
 1164 ifndef $(HAVE_BUILTIN_MEMCPY)
 1165 HAVE_BUILTIN_MEMCPY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-builtin-memcpy have_test_prog)
 1166 ifeq ($(HAVE_BUILTIN_MEMCPY),1)
 1167 	CONFIG_CFLAGS += -DHAVE_BUILTIN_MEMCPY
 1168 $(info autoconfig: using __builtin_memcpy)
 1169 endif
 1170 endif
 1171 
 1172 ifndef $(HAVE_BUILTIN_MEMMOVE)
 1173 HAVE_BUILTIN_MEMMOVE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-builtin-memmove have_test_prog)
 1174 ifeq ($(HAVE_BUILTIN_MEMMOVE),1)
 1175 	CONFIG_CFLAGS += -DHAVE_BUILTIN_MEMMOVE
 1176 $(info autoconfig: using __builtin_memmove)
 1177 endif
 1178 endif
 1179 
 1180 ifndef $(HAVE_BUILTIN_PREFETCH)
 1181 HAVE_BUILTIN_PREFETCH = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-builtin-prefetch have_test_prog)
 1182 ifeq ($(HAVE_BUILTIN_PREFETCH),1)
 1183 	CONFIG_CFLAGS += -DHAVE_BUILTIN_PREFETCH
 1184 $(info autoconfig: using __builtin_prefetch)
 1185 endif
 1186 endif
 1187 
 1188 
 1189 ifndef $(HAVE_CABSL)
 1190 MATHFUNC=cabsl
 1191 export MATHFUNC
 1192 HAVE_CABSL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=cabsl have_mathfunc)
 1193 ifeq ($(HAVE_CABSL),1)
 1194 	CONFIG_CFLAGS += -DHAVE_CABSL
 1195 $(info autoconfig: using cabsl)
 1196 endif
 1197 endif
 1198 
 1199 ifndef $(HAVE_CCOSL)
 1200 MATHFUNC=ccosl
 1201 export MATHFUNC
 1202 HAVE_CCOSL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=ccosl have_mathfunc)
 1203 ifeq ($(HAVE_CCOSL),1)
 1204 	CONFIG_CFLAGS += -DHAVE_CCOSL
 1205 $(info autoconfig: using ccosl)
 1206 endif
 1207 endif
 1208 
 1209 ifndef $(HAVE_CHROOT)
 1210 HAVE_CHROOT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-chroot have_test_prog)
 1211 ifeq ($(HAVE_CHROOT),1)
 1212 	CONFIG_CFLAGS += -DHAVE_CHROOT
 1213 $(info autoconfig: using chroot)
 1214 endif
 1215 endif
 1216 
 1217 ifndef $(HAVE_CRYPT_R)
 1218 HAVE_CRYPT_R = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-crypt-r TEST_LIBS=$(LIB_CRYPT) have_test_prog)
 1219 ifeq ($(HAVE_CRYPT_R),1)
 1220 	CONFIG_CFLAGS += -DHAVE_CRYPT_R
 1221 $(info autoconfig: using crypt_r)
 1222 endif
 1223 endif
 1224 
 1225 ifndef $(HAVE_CLEARENV)
 1226 HAVE_CLEARENV = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-clearenv have_test_prog)
 1227 ifeq ($(HAVE_CLEARENV),1)
 1228 	CONFIG_CFLAGS += -DHAVE_CLEARENV
 1229 $(info autoconfig: using clearenv)
 1230 endif
 1231 endif
 1232 
 1233 ifndef $(HAVE_CLOCK_GETRES)
 1234 HAVE_CLOCK_GETRES = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-clock-getres have_test_prog)
 1235 ifeq ($(HAVE_CLOCK_GETRES),1)
 1236 	CONFIG_CFLAGS += -DHAVE_CLOCK_GETRES
 1237 $(info autoconfig: using clock_getres)
 1238 endif
 1239 endif
 1240 
 1241 ifndef $(HAVE_CLOCK_GETTIME)
 1242 HAVE_CLOCK_GETTIME = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-clock-gettime have_test_prog)
 1243 ifeq ($(HAVE_CLOCK_GETTIME),1)
 1244 	CONFIG_CFLAGS += -DHAVE_CLOCK_GETTIME
 1245 $(info autoconfig: using clock_gettime)
 1246 endif
 1247 endif
 1248 
 1249 ifndef $(HAVE_CLOCK_NANOSLEEP)
 1250 HAVE_CLOCK_NANOSLEEP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-clock-nanosleep have_test_prog)
 1251 ifeq ($(HAVE_CLOCK_NANOSLEEP),1)
 1252 	CONFIG_CFLAGS += -DHAVE_CLOCK_NANOSLEEP
 1253 $(info autoconfig: using clock_nanosleep)
 1254 endif
 1255 endif
 1256 
 1257 ifndef $(HAVE_CLOCK_SETTIME)
 1258 HAVE_CLOCK_SETTIME = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-clock-settime have_test_prog)
 1259 ifeq ($(HAVE_CLOCK_SETTIME),1)
 1260 	CONFIG_CFLAGS += -DHAVE_CLOCK_SETTIME
 1261 $(info autoconfig: using clock_settime)
 1262 endif
 1263 endif
 1264 
 1265 ifndef $(HAVE_CLONE)
 1266 HAVE_CLONE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-clone have_test_prog)
 1267 ifeq ($(HAVE_CLONE),1)
 1268 	CONFIG_CFLAGS += -DHAVE_CLONE
 1269 $(info autoconfig: using clone)
 1270 endif
 1271 endif
 1272 
 1273 ifndef $(HAVE_COMPLEX)
 1274 HAVE_COMPLEX = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-complex have_test_prog)
 1275 ifeq ($(HAVE_COMPLEX),1)
 1276 	CONFIG_CFLAGS += -DHAVE_COMPLEX
 1277 $(info autoconfig: using complex)
 1278 endif
 1279 endif
 1280 
 1281 ifndef $(HAVE_COPY_FILE_RANGE)
 1282 HAVE_COPY_FILE_RANGE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-copy-file-range have_test_prog)
 1283 ifeq ($(HAVE_COPY_FILE_RANGE),1)
 1284 	CONFIG_CFLAGS += -DHAVE_COPY_FILE_RANGE
 1285 $(info autoconfig: using copy_file_range)
 1286 endif
 1287 endif
 1288 
 1289 ifndef $(HAVE_COSHL)
 1290 MATHFUNC=coshl
 1291 export MATHFUNC
 1292 HAVE_COSHL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=coshl have_mathfunc)
 1293 ifeq ($(HAVE_COSHL),1)
 1294 	CONFIG_CFLAGS += -DHAVE_COSHL
 1295 $(info autoconfig: using coshl)
 1296 endif
 1297 endif
 1298 
 1299 ifndef $(HAVE_COSL)
 1300 MATHFUNC=cosl
 1301 export MATHFUNC
 1302 HAVE_COSL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=cosl have_mathfunc)
 1303 ifeq ($(HAVE_COSL),1)
 1304 	CONFIG_CFLAGS += -DHAVE_COSL
 1305 $(info autoconfig: using cosl)
 1306 endif
 1307 endif
 1308 
 1309 ifndef $(HAVE_CPOW)
 1310 MATHFUNC=cpow
 1311 export MATHFUNC
 1312 HAVE_CPOW = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=cpow have_mathfunc)
 1313 ifeq ($(HAVE_CPOW),1)
 1314 	CONFIG_CFLAGS += -DHAVE_CPOW
 1315 $(info autoconfig: using cpow)
 1316 endif
 1317 endif
 1318 
 1319 ifndef $(HAVE_CPUID)
 1320 HAVE_CPUID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-cpuid have_test_prog)
 1321 ifeq ($(HAVE_CPUID),1)
 1322 	CONFIG_CFLAGS += -DHAVE_CPUID
 1323 $(info autoconfig: using cpuid)
 1324 endif
 1325 endif
 1326 
 1327 ifndef $(HAVE_CSINL)
 1328 MATHFUNC=csinl
 1329 export MATHFUNC
 1330 HAVE_CSINL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=csinl have_mathfunc)
 1331 ifeq ($(HAVE_CSINL),1)
 1332 	CONFIG_CFLAGS += -DHAVE_CSINL
 1333 $(info autoconfig: using csinl)
 1334 endif
 1335 endif
 1336 
 1337 ifndef $(HAVE_DUP3)
 1338 HAVE_DUP3 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-dup3 have_test_prog)
 1339 ifeq ($(HAVE_DUP3),1)
 1340 	CONFIG_CFLAGS += -DHAVE_DUP3
 1341 $(info autoconfig: using dup3)
 1342 endif
 1343 endif
 1344 
 1345 ifndef $(HAVE_EPOLL_CREATE1)
 1346 HAVE_EPOLL_CREATE1 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-epoll-create1 have_test_prog)
 1347 ifeq ($(HAVE_EPOLL_CREATE1),1)
 1348 	CONFIG_CFLAGS += -DHAVE_EPOLL_CREATE1
 1349 $(info autoconfig: using epoll_create1)
 1350 endif
 1351 endif
 1352 
 1353 ifndef $(HAVE_EVENTFD)
 1354 HAVE_EVENTFD = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-eventfd have_test_prog)
 1355 ifeq ($(HAVE_EVENTFD),1)
 1356 	CONFIG_CFLAGS += -DHAVE_EVENTFD
 1357 $(info autoconfig: using eventfd)
 1358 endif
 1359 endif
 1360 
 1361 ifndef $(HAVE_EXECVEAT)
 1362 HAVE_EXECVEAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-execveat have_test_prog)
 1363 ifeq ($(HAVE_EXECVEAT),1)
 1364 	CONFIG_CFLAGS += -DHAVE_EXECVEAT
 1365 $(info autoconfig: using execveat)
 1366 endif
 1367 endif
 1368 
 1369 ifndef $(HAVE_EXPL)
 1370 MATHFUNC=expl
 1371 export MATHFUNC
 1372 HAVE_EXPL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=expl have_mathfunc)
 1373 ifeq ($(HAVE_EXPL),1)
 1374 	CONFIG_CFLAGS += -DHAVE_EXPL
 1375 $(info autoconfig: using expl)
 1376 endif
 1377 endif
 1378 
 1379 ifndef $(HAVE_FACCESSAT)
 1380 HAVE_FACCESSAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-faccessat have_test_prog)
 1381 ifeq ($(HAVE_FACCESSAT),1)
 1382 	CONFIG_CFLAGS += -DHAVE_FACCESSAT
 1383 $(info autoconfig: using faccessat)
 1384 endif
 1385 endif
 1386 
 1387 ifndef $(HAVE_FALLOCATE)
 1388 HAVE_FALLOCATE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fallocate have_test_prog)
 1389 ifeq ($(HAVE_FALLOCATE),1)
 1390 	CONFIG_CFLAGS += -DHAVE_FALLOCATE
 1391 $(info autoconfig: using fallocate)
 1392 endif
 1393 endif
 1394 
 1395 ifndef $(HAVE_FANOTIFY)
 1396 HAVE_FANOTIFY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fanotify have_test_prog)
 1397 ifeq ($(HAVE_FANOTIFY),1)
 1398 	CONFIG_CFLAGS += -DHAVE_FANOTIFY
 1399 $(info autoconfig: using fanotify)
 1400 endif
 1401 endif
 1402 
 1403 ifndef $(HAVE_FCHOWNAT)
 1404 HAVE_FCHOWNAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fchownat have_test_prog)
 1405 ifeq ($(HAVE_FCHOWNAT),1)
 1406 	CONFIG_CFLAGS += -DHAVE_FCHOWNAT
 1407 $(info autoconfig: using fchownat)
 1408 endif
 1409 endif
 1410 
 1411 ifndef $(HAVE_FDATASYNC)
 1412 HAVE_FDATASYNC = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fdatasync have_test_prog)
 1413 ifeq ($(HAVE_FDATASYNC),1)
 1414 	CONFIG_CFLAGS += -DHAVE_FDATASYNC
 1415 $(info autoconfig: using fdatasync)
 1416 endif
 1417 endif
 1418 
 1419 ifndef $(HAVE_FGETXATTR)
 1420 HAVE_FGETXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fgetxattr have_test_prog)
 1421 ifeq ($(HAVE_FGETXATTR),1)
 1422 	CONFIG_CFLAGS += -DHAVE_FGETXATTR
 1423 $(info autoconfig: using fgetxattr)
 1424 endif
 1425 endif
 1426 
 1427 ifndef $(HAVE_FLISTXATTR)
 1428 HAVE_FLISTXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-flistxattr have_test_prog)
 1429 ifeq ($(HAVE_FLISTXATTR),1)
 1430 	CONFIG_CFLAGS += -DHAVE_FLISTXATTR
 1431 $(info autoconfig: using flistxattr)
 1432 endif
 1433 endif
 1434 
 1435 ifndef $(HAVE_FLOCK)
 1436 HAVE_FLOCK = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-flock have_test_prog)
 1437 ifeq ($(HAVE_FLOCK),1)
 1438 	CONFIG_CFLAGS += -DHAVE_FLOCK
 1439 $(info autoconfig: using flock)
 1440 endif
 1441 endif
 1442 
 1443 ifndef $(HAVE_FREMOVEXATTR)
 1444 HAVE_FREMOVEXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fremovexattr have_test_prog)
 1445 ifeq ($(HAVE_FREMOVEXATTR),1)
 1446 	CONFIG_CFLAGS += -DHAVE_FREMOVEXATTR
 1447 $(info autoconfig: using fremovexattr)
 1448 endif
 1449 endif
 1450 
 1451 ifndef $(HAVE_FSETXATTR)
 1452 HAVE_FSETXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fsetxattr have_test_prog)
 1453 ifeq ($(HAVE_FSETXATTR),1)
 1454 	CONFIG_CFLAGS += -DHAVE_FSETXATTR
 1455 $(info autoconfig: using fsetxattr)
 1456 endif
 1457 endif
 1458 
 1459 ifndef $(HAVE_FSYNC)
 1460 HAVE_FSYNC = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-fsync have_test_prog)
 1461 ifeq ($(HAVE_FSYNC),1)
 1462 	CONFIG_CFLAGS += -DHAVE_FSYNC
 1463 $(info autoconfig: using fsync)
 1464 endif
 1465 endif
 1466 
 1467 ifndef $(HAVE_FUTIMENS)
 1468 HAVE_FUTIMENS = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-futimens have_test_prog)
 1469 ifeq ($(HAVE_FUTIMENS),1)
 1470 	CONFIG_CFLAGS += -DHAVE_FUTIMENS
 1471 $(info autoconfig: using futimens)
 1472 endif
 1473 endif
 1474 
 1475 ifndef $(HAVE_FUTIMES)
 1476 HAVE_FUTIMES = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-futimes have_test_prog)
 1477 ifeq ($(HAVE_FUTIMES),1)
 1478 	CONFIG_CFLAGS += -DHAVE_FUTIMES
 1479 $(info autoconfig: using futimes)
 1480 endif
 1481 endif
 1482 
 1483 ifndef $(HAVE_GETAUXVAL)
 1484 HAVE_GETAUXVAL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getauxval have_test_prog)
 1485 ifeq ($(HAVE_GETAUXVAL),1)
 1486 	CONFIG_CFLAGS += -DHAVE_GETAUXVAL
 1487 $(info autoconfig: using getauxval)
 1488 endif
 1489 endif
 1490 
 1491 ifndef $(HAVE_GETDTABLESIZE)
 1492 HAVE_GETDTABLESIZE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getdtablesize have_test_prog)
 1493 ifeq ($(HAVE_GETDTABLESIZE),1)
 1494 	CONFIG_CFLAGS += -DHAVE_GETDTABLESIZE
 1495 $(info autoconfig: using getdtablesize)
 1496 endif
 1497 endif
 1498 
 1499 ifndef $(HAVE_GETMNTENT)
 1500 HAVE_GETMNTENT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getmntent have_test_prog)
 1501 ifeq ($(HAVE_GETMNTENT),1)
 1502 	CONFIG_CFLAGS += -DHAVE_GETMNTENT
 1503 $(info autoconfig: using getmntent)
 1504 endif
 1505 endif
 1506 
 1507 ifndef $(HAVE_GETMNTINFO)
 1508 HAVE_GETMNTINFO = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getmntinfo have_test_prog)
 1509 ifeq ($(HAVE_GETMNTINFO),1)
 1510 	CONFIG_CFLAGS += -DHAVE_GETMNTINFO
 1511 $(info autoconfig: using getmntinfo)
 1512 endif
 1513 endif
 1514 
 1515 ifndef $(HAVE_GETPAGESIZE)
 1516 HAVE_GETPAGESIZE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getpagesize have_test_prog)
 1517 ifeq ($(HAVE_GETPAGESIZE),1)
 1518 	CONFIG_CFLAGS += -DHAVE_GETPAGESIZE
 1519 $(info autoconfig: using getpagesize)
 1520 endif
 1521 endif
 1522 
 1523 ifndef $(HAVE_GETPGID)
 1524 HAVE_GETPGID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getpgid have_test_prog)
 1525 ifeq ($(HAVE_GETPGID),1)
 1526 	CONFIG_CFLAGS += -DHAVE_GETPGID
 1527 $(info autoconfig: using getpgid)
 1528 endif
 1529 endif
 1530 
 1531 ifndef $(HAVE_GETPGRP)
 1532 HAVE_GETPGRP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getpgrp have_test_prog)
 1533 ifeq ($(HAVE_GETPGRP),1)
 1534 	CONFIG_CFLAGS += -DHAVE_GETPGRP
 1535 $(info autoconfig: using getpgrp)
 1536 endif
 1537 endif
 1538 
 1539 ifndef $(HAVE_GETPRIORITY)
 1540 HAVE_GETPRIORITY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getpriority have_test_prog)
 1541 ifeq ($(HAVE_GETPRIORITY),1)
 1542 	CONFIG_CFLAGS += -DHAVE_GETPRIORITY
 1543 $(info autoconfig: using getpriority)
 1544 endif
 1545 endif
 1546 
 1547 ifndef $(HAVE_GETRESGID)
 1548 HAVE_GETRESGID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getresgid have_test_prog)
 1549 ifeq ($(HAVE_GETRESGID),1)
 1550 	CONFIG_CFLAGS += -DHAVE_GETRESGID
 1551 $(info autoconfig: using getresgid)
 1552 endif
 1553 endif
 1554 
 1555 ifndef $(HAVE_GETRESUID)
 1556 HAVE_GETRESUID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getresuid have_test_prog)
 1557 ifeq ($(HAVE_GETRESUID),1)
 1558 	CONFIG_CFLAGS += -DHAVE_GETRESUID
 1559 $(info autoconfig: using getresuid)
 1560 endif
 1561 endif
 1562 
 1563 ifndef $(HAVE_GETXATTR)
 1564 HAVE_GETXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-getxattr have_test_prog)
 1565 ifeq ($(HAVE_GETXATTR),1)
 1566 	CONFIG_CFLAGS += -DHAVE_GETXATTR
 1567 $(info autoconfig: using getxattr)
 1568 endif
 1569 endif
 1570 
 1571 ifndef $(HAVE_INO64_T)
 1572 HAVE_INO64_T = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-ino64_t have_test_prog)
 1573 ifeq ($(HAVE_INO64_T),1)
 1574 	CONFIG_CFLAGS += -DHAVE_INO64_T
 1575 $(info autoconfig: using ino64_t)
 1576 endif
 1577 endif
 1578 
 1579 ifndef $(HAVE_INOTIFY)
 1580 HAVE_INOTIFY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-inotify have_test_prog)
 1581 ifeq ($(HAVE_INOTIFY),1)
 1582 	CONFIG_CFLAGS += -DHAVE_INOTIFY
 1583 $(info autoconfig: using inotify)
 1584 endif
 1585 endif
 1586 
 1587 ifndef $(HAVE_IOPORT)
 1588 HAVE_IOPORT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-ioport have_test_prog)
 1589 ifeq ($(HAVE_IOPORT),1)
 1590 	CONFIG_CFLAGS += -DHAVE_IOPORT
 1591 $(info autoconfig: using ioport)
 1592 endif
 1593 endif
 1594 
 1595 ifndef $(HAVE_KERNEL_LONG_T)
 1596 HAVE_KERNEL_LONG_T = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-kernel_long_t have_test_prog)
 1597 ifeq ($(HAVE_KERNEL_LONG_T),1)
 1598 	CONFIG_CFLAGS += -DHAVE_KERNEL_LONG_T
 1599 $(info autoconfig: using __kernel_long_t)
 1600 endif
 1601 endif
 1602 
 1603 ifndef $(HAVE_KERNEL_ULONG_T)
 1604 HAVE_KERNEL_ULONG_T = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-kernel_ulong_t have_test_prog)
 1605 ifeq ($(HAVE_KERNEL_ULONG_T),1)
 1606 	CONFIG_CFLAGS += -DHAVE_KERNEL_ULONG_T
 1607 $(info autoconfig: using __kernel_ulong_t)
 1608 endif
 1609 endif
 1610 
 1611 ifndef $(HAVE_LABEL_AS_VALUE)
 1612 HAVE_LABEL_AS_VALUE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-label-as-value have_test_prog)
 1613 ifeq ($(HAVE_LABEL_AS_VALUE),1)
 1614 	CONFIG_CFLAGS += -DHAVE_LABEL_AS_VALUE
 1615 $(info autoconfig: using label as value feature)
 1616 endif
 1617 endif
 1618 
 1619 ifndef $(HAVE_LGAMMAL)
 1620 MATHFUNC=lgammal
 1621 export MATHFUNC
 1622 HAVE_LGAMMAL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=lgammal have_mathfunc)
 1623 ifeq ($(HAVE_LGAMMAL),1)
 1624 	CONFIG_CFLAGS += -DHAVE_LGAMMAL
 1625 $(info autoconfig: using lgammal)
 1626 endif
 1627 endif
 1628 
 1629 ifndef $(HAVE_LGETXATTR)
 1630 HAVE_LGETXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-lgetxattr have_test_prog)
 1631 ifeq ($(HAVE_LGETXATTR),1)
 1632 	CONFIG_CFLAGS += -DHAVE_LGETXATTR
 1633 $(info autoconfig: using lgetxattr)
 1634 endif
 1635 endif
 1636 
 1637 ifndef $(HAVE_LISTXATTR)
 1638 HAVE_LISTXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-listxattr have_test_prog)
 1639 ifeq ($(HAVE_LISTXATTR),1)
 1640 	CONFIG_CFLAGS += -DHAVE_LISTXATTR
 1641 $(info autoconfig: using listxattr)
 1642 endif
 1643 endif
 1644 
 1645 ifndef $(HAVE_LOFF_T)
 1646 HAVE_LOFF_T = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-loff_t have_test_prog)
 1647 ifeq ($(HAVE_LOFF_T),1)
 1648 	CONFIG_CFLAGS += -DHAVE_LOFF_T
 1649 $(info autoconfig: using loff_t)
 1650 endif
 1651 endif
 1652 
 1653 ifndef $(HAVE_LOCKF)
 1654 HAVE_LOCKF = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-lockf have_test_prog)
 1655 ifeq ($(HAVE_LOCKF),1)
 1656 	CONFIG_CFLAGS += -DHAVE_LOCKF
 1657 $(info autoconfig: using lockf)
 1658 endif
 1659 endif
 1660 
 1661 ifndef $(HAVE_LOGL)
 1662 MATHFUNC=logl
 1663 export MATHFUNC
 1664 HAVE_LOGL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=logl have_mathfunc)
 1665 ifeq ($(HAVE_LOGL),1)
 1666 	CONFIG_CFLAGS += -DHAVE_LOGL
 1667 $(info autoconfig: using logl)
 1668 endif
 1669 endif
 1670 
 1671 ifndef $(HAVE_LOOKUP_DCOOKIE)
 1672 HAVE_LOOKUP_DCOOKIE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-lookup-dcookie have_test_prog)
 1673 ifeq ($(HAVE_LOOKUP_DCOOKIE),1)
 1674 	CONFIG_CFLAGS += -DHAVE_LOOKUP_DCOOKIE
 1675 $(info autoconfig: using lookup_dcookie)
 1676 endif
 1677 endif
 1678 
 1679 ifndef $(HAVE_LSETXATTR)
 1680 HAVE_LSETXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-lsetxattr have_test_prog)
 1681 ifeq ($(HAVE_LSETXATTR),1)
 1682 	CONFIG_CFLAGS += -DHAVE_LSETXATTR
 1683 $(info autoconfig: using lsetxattr)
 1684 endif
 1685 endif
 1686 
 1687 ifndef $(HAVE_MADVISE)
 1688 HAVE_MADVISE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-madvise have_test_prog)
 1689 ifeq ($(HAVE_MADVISE),1)
 1690 	CONFIG_CFLAGS += -DHAVE_MADVISE
 1691 $(info autoconfig: using madvise)
 1692 endif
 1693 endif
 1694 
 1695 ifndef $(HAVE_MALLOPT)
 1696 HAVE_MALLOPT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mallopt have_test_prog)
 1697 ifeq ($(HAVE_MALLOPT),1)
 1698 	CONFIG_CFLAGS += -DHAVE_MALLOPT
 1699 $(info autoconfig: using mallopt)
 1700 endif
 1701 endif
 1702 
 1703 ifndef $(HAVE_MEMFD_CREATE)
 1704 HAVE_MEMFD_CREATE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-memfd-create have_test_prog)
 1705 ifeq ($(HAVE_MEMFD_CREATE),1)
 1706 	CONFIG_CFLAGS += -DHAVE_MEMFD_CREATE
 1707 $(info autoconfig: using memfd_create)
 1708 endif
 1709 endif
 1710 
 1711 ifndef $(HAVE_MINCORE)
 1712 HAVE_MINCORE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mincore have_test_prog)
 1713 ifeq ($(HAVE_MINCORE),1)
 1714 	CONFIG_CFLAGS += -DHAVE_MINCORE
 1715 $(info autoconfig: using mincore)
 1716 endif
 1717 endif
 1718 
 1719 ifndef $(HAVE_MLOCK)
 1720 HAVE_MLOCK = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mlock have_test_prog)
 1721 ifeq ($(HAVE_MLOCK),1)
 1722 	CONFIG_CFLAGS += -DHAVE_MLOCK
 1723 $(info autoconfig: using mlock)
 1724 endif
 1725 endif
 1726 
 1727 ifndef $(HAVE_MLOCK2)
 1728 HAVE_MLOCK2 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mlock2 have_test_prog)
 1729 ifeq ($(HAVE_MLOCK2),1)
 1730 	CONFIG_CFLAGS += -DHAVE_MLOCK2
 1731 $(info autoconfig: using mlock2)
 1732 endif
 1733 endif
 1734 
 1735 ifndef $(HAVE_MLOCKALL)
 1736 HAVE_MLOCKALL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mlockall have_test_prog)
 1737 ifeq ($(HAVE_MLOCKALL),1)
 1738 	CONFIG_CFLAGS += -DHAVE_MLOCKALL
 1739 $(info autoconfig: using mlockall and munlockall)
 1740 endif
 1741 endif
 1742 
 1743 ifndef $(HAVE_MODIFY_LDT)
 1744 HAVE_MODIFY_LDT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-modify-ldt have_test_prog)
 1745 ifeq ($(HAVE_MODIFY_LDT),1)
 1746 	CONFIG_CFLAGS += -DHAVE_MODIFY_LDT
 1747 $(info autoconfig: using modify_ldt)
 1748 endif
 1749 endif
 1750 
 1751 ifndef $(HAVE_MPROTECT)
 1752 HAVE_MPROTECT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mprotect have_test_prog)
 1753 ifeq ($(HAVE_MPROTECT),1)
 1754 	CONFIG_CFLAGS += -DHAVE_MPROTECT
 1755 $(info autoconfig: using mprotect)
 1756 endif
 1757 endif
 1758 
 1759 ifndef $(HAVE_MREMAP)
 1760 HAVE_MREMAP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mremap have_test_prog)
 1761 ifeq ($(HAVE_MREMAP),1)
 1762 	CONFIG_CFLAGS += -DHAVE_MREMAP
 1763 $(info autoconfig: using mremap)
 1764 endif
 1765 endif
 1766 
 1767 ifndef $(HAVE_MSYNC)
 1768 HAVE_MSYNC = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-msync have_test_prog)
 1769 ifeq ($(HAVE_MSYNC),1)
 1770 	CONFIG_CFLAGS += -DHAVE_MSYNC
 1771 $(info autoconfig: using msync)
 1772 endif
 1773 endif
 1774 
 1775 ifndef $(HAVE_MUNLOCK)
 1776 HAVE_MUNLOCK = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-munlock have_test_prog)
 1777 ifeq ($(HAVE_MUNLOCK),1)
 1778 	CONFIG_CFLAGS += -DHAVE_MUNLOCK
 1779 $(info autoconfig: using munlock)
 1780 endif
 1781 endif
 1782 
 1783 ifndef $(HAVE_NAME_TO_HANDLE_AT)
 1784 HAVE_NAME_TO_HANDLE_AT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-name-to-handle-at have_test_prog)
 1785 ifeq ($(HAVE_NAME_TO_HANDLE_AT),1)
 1786 	CONFIG_CFLAGS += -DHAVE_NAME_TO_HANDLE_AT
 1787 $(info autoconfig: using name_to_handle_at)
 1788 endif
 1789 endif
 1790 
 1791 ifndef $(HAVE_NANOSLEEP)
 1792 HAVE_NANOSLEEP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-nanosleep have_test_prog)
 1793 ifeq ($(HAVE_NANOSLEEP),1)
 1794 	CONFIG_CFLAGS += -DHAVE_NANOSLEEP
 1795 $(info autoconfig: using nanosleep)
 1796 endif
 1797 endif
 1798 
 1799 ifndef $(HAVE_NICE)
 1800 HAVE_NICE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-nice have_test_prog)
 1801 ifeq ($(HAVE_NICE),1)
 1802 	CONFIG_CFLAGS += -DHAVE_NICE
 1803 $(info autoconfig: using nice)
 1804 endif
 1805 endif
 1806 
 1807 ifndef $(HAVE_OFF64_T)
 1808 HAVE_OFF64_T = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-off64_t have_test_prog)
 1809 ifeq ($(HAVE_OFF64_T),1)
 1810 	CONFIG_CFLAGS += -DHAVE_OFF64_T
 1811 $(info autoconfig: using off64_t)
 1812 endif
 1813 endif
 1814 
 1815 ifndef $(HAVE_OPEN_BY_HANDLE_AT)
 1816 HAVE_OPEN_BY_HANDLE_AT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-open-by-handle-at have_test_prog)
 1817 ifeq ($(HAVE_OPEN_BY_HANDLE_AT),1)
 1818 	CONFIG_CFLAGS += -DHAVE_OPEN_BY_HANDLE_AT
 1819 $(info autoconfig: using open_by_handle_at)
 1820 endif
 1821 endif
 1822 
 1823 ifndef $(HAVE_PERSONALITY)
 1824 HAVE_PERSONALITY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-personality have_test_prog)
 1825 ifeq ($(HAVE_PERSONALITY),1)
 1826 	CONFIG_CFLAGS += -DHAVE_PERSONALITY
 1827 $(info autoconfig: using personality)
 1828 endif
 1829 endif
 1830 
 1831 ifndef $(HAVE_PIPE2)
 1832 HAVE_PIPE2 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-pipe2 have_test_prog)
 1833 ifeq ($(HAVE_PIPE2),1)
 1834 	CONFIG_CFLAGS += -DHAVE_PIPE2
 1835 $(info autoconfig: using pipe2)
 1836 endif
 1837 endif
 1838 
 1839 ifndef $(HAVE_PKEY_ALLOC)
 1840 HAVE_PKEY_ALLOC = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-pkey-alloc have_test_prog)
 1841 ifeq ($(HAVE_PKEY_ALLOC),1)
 1842 	CONFIG_CFLAGS += -DHAVE_PKEY_ALLOC
 1843 $(info autoconfig: using pkey_alloc)
 1844 endif
 1845 endif
 1846 
 1847 ifndef $(HAVE_PKEY_FREE)
 1848 HAVE_PKEY_FREE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-pkey-free have_test_prog)
 1849 ifeq ($(HAVE_PKEY_FREE),1)
 1850 	CONFIG_CFLAGS += -DHAVE_PKEY_FREE
 1851 $(info autoconfig: using pkey_free)
 1852 endif
 1853 endif
 1854 
 1855 ifndef $(HAVE_PKEY_MPROTECT)
 1856 HAVE_PKEY_MPROTECT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-pkey-mprotect have_test_prog)
 1857 ifeq ($(HAVE_PKEY_MPROTECT),1)
 1858 	CONFIG_CFLAGS += -DHAVE_PKEY_MPROTECT
 1859 $(info autoconfig: using pkey_mprotect)
 1860 endif
 1861 endif
 1862 
 1863 ifndef $(HAVE_POSIX_FADVISE)
 1864 HAVE_POSIX_FADVISE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-posix-fadvise have_test_prog)
 1865 ifeq ($(HAVE_POSIX_FADVISE),1)
 1866 	CONFIG_CFLAGS += -DHAVE_POSIX_FADVISE
 1867 $(info autoconfig: using posix_fadvise)
 1868 endif
 1869 endif
 1870 
 1871 ifndef $(HAVE_POSIX_FALLOCATE)
 1872 HAVE_POSIX_FALLOCATE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-posix-fallocate have_test_prog)
 1873 ifeq ($(HAVE_POSIX_FALLOCATE),1)
 1874 	CONFIG_CFLAGS += -DHAVE_POSIX_FALLOCATE
 1875 $(info autoconfig: using posix_fallocate)
 1876 endif
 1877 endif
 1878 
 1879 ifndef $(HAVE_POSIX_MADVISE)
 1880 HAVE_POSIX_MADVISE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-posix-madvise have_test_prog)
 1881 ifeq ($(HAVE_POSIX_MADVISE),1)
 1882 	CONFIG_CFLAGS += -DHAVE_POSIX_MADVISE
 1883 $(info autoconfig: using posix_madvise)
 1884 endif
 1885 endif
 1886 
 1887 ifndef $(HAVE_POSIX_MEMALIGN)
 1888 HAVE_POSIX_MEMALIGN = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-posix-memalign have_test_prog)
 1889 ifeq ($(HAVE_POSIX_MEMALIGN),1)
 1890 	CONFIG_CFLAGS += -DHAVE_POSIX_MEMALIGN
 1891 $(info autoconfig: using posix_memalign)
 1892 endif
 1893 endif
 1894 
 1895 ifndef $(HAVE_MQ_POSIX)
 1896 HAVE_MQ_POSIX = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mq-posix TEST_LIBS='$(LIB_RT) $(LIB_PTHREAD)' have_test_prog)
 1897 ifeq ($(HAVE_MQ_POSIX),1)
 1898 	CONFIG_CFLAGS += -DHAVE_MQ_POSIX
 1899 $(info autoconfig: using POSIX message queues)
 1900 endif
 1901 endif
 1902 
 1903 ifndef $(HAVE_POSIX_OPENPT)
 1904 HAVE_POSIX_OPENPT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-posix-openpt have_test_prog)
 1905 ifeq ($(HAVE_POSIX_OPENPT),1)
 1906 	CONFIG_CFLAGS += -DHAVE_POSIX_OPENPT
 1907 $(info autoconfig: using posix_openpt)
 1908 endif
 1909 endif
 1910 
 1911 ifndef $(HAVE_SEM_POSIX)
 1912 HAVE_SEM_POSIX = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sem-posix TEST_LIBS=$(LIB_PTHREAD) have_test_prog)
 1913 ifeq ($(HAVE_SEM_POSIX),1)
 1914 	CONFIG_CFLAGS += -DHAVE_SEM_POSIX
 1915 $(info autoconfig: using POSIX semaphores)
 1916 endif
 1917 endif
 1918 
 1919 ifndef $(HAVE_POSIX_SPAWN)
 1920 HAVE_POSIX_SPAWN = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-posix-spawn have_test_prog)
 1921 ifeq ($(HAVE_POSIX_SPAWN),1)
 1922 	CONFIG_CFLAGS += -DHAVE_POSIX_SPAWN
 1923 $(info autoconfig: using posix_spawn)
 1924 endif
 1925 endif
 1926 
 1927 ifndef $(HAVE_POWL)
 1928 MATHFUNC=powl
 1929 export MATHFUNC
 1930 HAVE_POWL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=powl have_mathfunc)
 1931 ifeq ($(HAVE_POWL),1)
 1932 	CONFIG_CFLAGS += -DHAVE_POWL
 1933 $(info autoconfig: using powl)
 1934 endif
 1935 endif
 1936 
 1937 ifndef $(HAVE_PPOLL)
 1938 HAVE_PPOLL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-ppoll have_test_prog)
 1939 ifeq ($(HAVE_PPOLL),1)
 1940 	CONFIG_CFLAGS += -DHAVE_PPOLL
 1941 $(info autoconfig: using ppoll)
 1942 endif
 1943 endif
 1944 
 1945 ifndef $(HAVE_PRCTL)
 1946 HAVE_PRCTL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-prctl have_test_prog)
 1947 ifeq ($(HAVE_PRCTL),1)
 1948 	CONFIG_CFLAGS += -DHAVE_PRCTL
 1949 $(info autoconfig: using prctl)
 1950 endif
 1951 endif
 1952 
 1953 ifndef $(HAVE_PRLIMIT)
 1954 HAVE_PRLIMIT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-prlimit have_test_prog)
 1955 ifeq ($(HAVE_PRLIMIT),1)
 1956 	CONFIG_CFLAGS += -DHAVE_PRLIMIT
 1957 $(info autoconfig: using prlimit)
 1958 endif
 1959 endif
 1960 
 1961 ifndef $(HAVE_PROCESS_VM_READV)
 1962 HAVE_PROCESS_VM_READV = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-process-vm-readv have_test_prog)
 1963 ifeq ($(HAVE_PROCESS_VM_READV),1)
 1964 	CONFIG_CFLAGS += -DHAVE_PROCESS_VM_READV
 1965 $(info autoconfig: using process_vm_readv)
 1966 endif
 1967 endif
 1968 
 1969 ifndef $(HAVE_PROCESS_VM_WRITEV)
 1970 HAVE_PROCESS_VM_WRITEV = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-process-vm-writev have_test_prog)
 1971 ifeq ($(HAVE_PROCESS_VM_WRITEV),1)
 1972 	CONFIG_CFLAGS += -DHAVE_PROCESS_VM_WRITEV
 1973 $(info autoconfig: using process_vm_writev)
 1974 endif
 1975 endif
 1976 
 1977 ifndef $(HAVE_PSELECT)
 1978 HAVE_PSELECT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-pselect have_test_prog)
 1979 ifeq ($(HAVE_PSELECT),1)
 1980 	CONFIG_CFLAGS += -DHAVE_PSELECT
 1981 $(info autoconfig: using pselect)
 1982 endif
 1983 endif
 1984 
 1985 ifndef $(HAVE_PTRACE)
 1986 HAVE_PTRACE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-ptrace have_test_prog)
 1987 ifeq ($(HAVE_PTRACE),1)
 1988 	CONFIG_CFLAGS += -DHAVE_PTRACE
 1989 $(info autoconfig: using ptrace)
 1990 endif
 1991 endif
 1992 
 1993 ifndef $(HAVE_PTSNAME)
 1994 HAVE_PTSNAME = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-ptsname have_test_prog)
 1995 ifeq ($(HAVE_PTSNAME),1)
 1996 	CONFIG_CFLAGS += -DHAVE_PTSNAME
 1997 $(info autoconfig: using ptsname)
 1998 endif
 1999 endif
 2000 
 2001 ifndef $(HAVE_PWRITEV)
 2002 HAVE_PWRITEV = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-pwritev have_test_prog)
 2003 ifeq ($(HAVE_PWRITEV),1)
 2004 	CONFIG_CFLAGS += -DHAVE_PWRITEV
 2005 $(info autoconfig: using pwritev)
 2006 endif
 2007 endif
 2008 
 2009 ifndef $(HAVE_REMAP_FILE_PAGES)
 2010 HAVE_REMAP_FILE_PAGES = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-remap-file-pages have_test_prog)
 2011 ifeq ($(HAVE_REMAP_FILE_PAGES),1)
 2012 	CONFIG_CFLAGS += -DHAVE_REMAP_FILE_PAGES
 2013 $(info autoconfig: using remap_file_pages)
 2014 endif
 2015 endif
 2016 
 2017 ifndef $(HAVE_RENAMEAT)
 2018 HAVE_RENAMEAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-renameat have_test_prog)
 2019 ifeq ($(HAVE_RENAMEAT),1)
 2020 	CONFIG_CFLAGS += -DHAVE_RENAMEAT
 2021 $(info autoconfig: using renameat)
 2022 endif
 2023 endif
 2024 
 2025 ifndef $(HAVE_RENAMEAT2)
 2026 HAVE_RENAMEAT2 = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-renameat2 have_test_prog)
 2027 ifeq ($(HAVE_RENAMEAT2),1)
 2028 	CONFIG_CFLAGS += -DHAVE_RENAMEAT2
 2029 $(info autoconfig: using renameat2)
 2030 endif
 2031 endif
 2032 
 2033 ifndef $(HAVE_RINTL)
 2034 MATHFUNC=rintl
 2035 export MATHFUNC
 2036 HAVE_RINTL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=rintl have_mathfunc)
 2037 ifeq ($(HAVE_RINTL),1)
 2038 	CONFIG_CFLAGS += -DHAVE_RINTL
 2039 $(info autoconfig: using rintl)
 2040 endif
 2041 endif
 2042 
 2043 ifndef $(HAVE_SCHED_GET_PRIORITY_MAX)
 2044 HAVE_SCHED_GET_PRIORITY_MAX = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sched-get-priority-max have_test_prog)
 2045 ifeq ($(HAVE_SCHED_GET_PRIORITY_MAX),1)
 2046 	CONFIG_CFLAGS += -DHAVE_SCHED_GET_PRIORITY_MAX
 2047 $(info autoconfig: using sched_get_priority_max)
 2048 endif
 2049 endif
 2050 
 2051 ifndef $(HAVE_SCHED_GET_PRIORITY_MIN)
 2052 HAVE_SCHED_GET_PRIORITY_MIN = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sched-get-priority-min have_test_prog)
 2053 ifeq ($(HAVE_SCHED_GET_PRIORITY_MIN),1)
 2054 	CONFIG_CFLAGS += -DHAVE_SCHED_GET_PRIORITY_MIN
 2055 $(info autoconfig: using sched_get_priority_min)
 2056 endif
 2057 endif
 2058 
 2059 ifndef $(HAVE_SCHED_GETAFFINITY)
 2060 HAVE_SCHED_GETAFFINITY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sched-getaffinity have_test_prog)
 2061 ifeq ($(HAVE_SCHED_GETAFFINITY),1)
 2062 	CONFIG_CFLAGS += -DHAVE_SCHED_GETAFFINITY
 2063 $(info autoconfig: using sched_getaffinity)
 2064 endif
 2065 endif
 2066 
 2067 ifndef $(HAVE_SCHED_GETCPU)
 2068 HAVE_SCHED_GETCPU = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sched-getcpu have_test_prog)
 2069 ifeq ($(HAVE_SCHED_GETCPU),1)
 2070 	CONFIG_CFLAGS += -DHAVE_SCHED_GETCPU
 2071 $(info autoconfig: using sched_getcpu)
 2072 endif
 2073 endif
 2074 
 2075 ifndef $(HAVE_SCHED_RR_GET_INTERVAL)
 2076 HAVE_SCHED_RR_GET_INTERVAL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sched-rr-get-interval have_test_prog)
 2077 ifeq ($(HAVE_SCHED_RR_GET_INTERVAL),1)
 2078 	CONFIG_CFLAGS += -DHAVE_SCHED_RR_GET_INTERVAL
 2079 $(info autoconfig: using sched_rr_get_interval)
 2080 endif
 2081 endif
 2082 
 2083 
 2084 ifndef $(HAVE_SCHED_SETSCHEDULER)
 2085 HAVE_SCHED_SETSCHEDULER = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sched-setscheduler have_test_prog)
 2086 ifeq ($(HAVE_SCHED_SETSCHEDULER),1)
 2087 	CONFIG_CFLAGS += -DHAVE_SCHED_SETSCHEDULER
 2088 $(info autoconfig: using sched_setscheduler)
 2089 endif
 2090 endif
 2091 
 2092 ifndef $(HAVE_SCHED_YIELD)
 2093 HAVE_SCHED_YIELD = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sched-yield have_test_prog)
 2094 ifeq ($(HAVE_SCHED_YIELD),1)
 2095 	CONFIG_CFLAGS += -DHAVE_SCHED_YIELD
 2096 $(info autoconfig: using sched_yield)
 2097 endif
 2098 endif
 2099 
 2100 ifndef $(HAVE_SENDMMSG)
 2101 HAVE_SENDMMSG = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sendmmsg have_test_prog)
 2102 ifeq ($(HAVE_SENDMMSG),1)
 2103 	CONFIG_CFLAGS += -DHAVE_SENDMMSG
 2104 $(info autoconfig: using sendmmsg)
 2105 endif
 2106 endif
 2107 
 2108 ifndef $(HAVE_SETNS)
 2109 HAVE_SETNS = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setns have_test_prog)
 2110 ifeq ($(HAVE_SETNS),1)
 2111 	CONFIG_CFLAGS += -DHAVE_SETNS
 2112 $(info autoconfig: using setns)
 2113 endif
 2114 endif
 2115 
 2116 ifndef $(HAVE_SETPGID)
 2117 HAVE_SETPGID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setpgid have_test_prog)
 2118 ifeq ($(HAVE_SETPGID),1)
 2119 	CONFIG_CFLAGS += -DHAVE_SETPGID
 2120 $(info autoconfig: using setpgid)
 2121 endif
 2122 endif
 2123 
 2124 ifndef $(HAVE_SETPGRP)
 2125 HAVE_SETPGRP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setpgrp have_test_prog)
 2126 ifeq ($(HAVE_SETPGRP),1)
 2127 	CONFIG_CFLAGS += -DHAVE_SETPGRP
 2128 $(info autoconfig: using setpgrp)
 2129 endif
 2130 endif
 2131 
 2132 ifndef $(HAVE_SETPRIORITY)
 2133 HAVE_SETPRIORITY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setpriority have_test_prog)
 2134 ifeq ($(HAVE_SETPRIORITY),1)
 2135 	CONFIG_CFLAGS += -DHAVE_SETPRIORITY
 2136 $(info autoconfig: using setpriority)
 2137 endif
 2138 endif
 2139 
 2140 ifndef $(HAVE_SETREGID)
 2141 HAVE_SETREGID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setregid have_test_prog)
 2142 ifeq ($(HAVE_SETREGID),1)
 2143 	CONFIG_CFLAGS += -DHAVE_SETREGID
 2144 $(info autoconfig: using setregid)
 2145 endif
 2146 endif
 2147 
 2148 ifndef $(HAVE_SETRESGID)
 2149 HAVE_SETRESGID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setresgid have_test_prog)
 2150 ifeq ($(HAVE_SETRESGID),1)
 2151 	CONFIG_CFLAGS += -DHAVE_SETRESGID
 2152 $(info autoconfig: using setresgid)
 2153 endif
 2154 endif
 2155 
 2156 ifndef $(HAVE_SETRESUID)
 2157 HAVE_SETRESUID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setresuid have_test_prog)
 2158 ifeq ($(HAVE_SETRESUID),1)
 2159 	CONFIG_CFLAGS += -DHAVE_SETRESUID
 2160 $(info autoconfig: using setresuid)
 2161 endif
 2162 endif
 2163 
 2164 ifndef $(HAVE_SETREUID)
 2165 HAVE_SETREUID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setreuid have_test_prog)
 2166 ifeq ($(HAVE_SETREUID),1)
 2167 	CONFIG_CFLAGS += -DHAVE_SETREUID
 2168 $(info autoconfig: using setreuid)
 2169 endif
 2170 endif
 2171 
 2172 ifndef $(HAVE_SETXATTR)
 2173 HAVE_SETXATTR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-setxattr have_test_prog)
 2174 ifeq ($(HAVE_SETXATTR),1)
 2175 	CONFIG_CFLAGS += -DHAVE_SETXATTR
 2176 $(info autoconfig: using setxattr)
 2177 endif
 2178 endif
 2179 
 2180 ifndef $(HAVE_SIGALTSTACK)
 2181 HAVE_SIGALTSTACK = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sigaltstack have_test_prog)
 2182 ifeq ($(HAVE_SIGALTSTACK),1)
 2183 	CONFIG_CFLAGS += -DHAVE_SIGALTSTACK
 2184 $(info autoconfig: using sigaltstack)
 2185 endif
 2186 endif
 2187 
 2188 ifndef $(HAVE_SIGQUEUE)
 2189 HAVE_SIGQUEUE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sigqueue have_test_prog)
 2190 ifeq ($(HAVE_SIGQUEUE),1)
 2191 	CONFIG_CFLAGS += -DHAVE_SIGQUEUE
 2192 $(info autoconfig: using sigqueue)
 2193 endif
 2194 endif
 2195 
 2196 ifndef $(HAVE_SIGWAITINFO)
 2197 HAVE_SIGWAITINFO = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sigwaitinfo have_test_prog)
 2198 ifeq ($(HAVE_SIGWAITINFO),1)
 2199 	CONFIG_CFLAGS += -DHAVE_SIGWAITINFO
 2200 $(info autoconfig: using sigwaitinfo)
 2201 endif
 2202 endif
 2203 
 2204 ifndef $(HAVE_SINHL)
 2205 MATHFUNC=sinhl
 2206 export MATHFUNC
 2207 HAVE_SINHL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=sinhl have_mathfunc)
 2208 ifeq ($(HAVE_SINHL),1)
 2209 	CONFIG_CFLAGS += -DHAVE_SINHL
 2210 $(info autoconfig: using sinhl)
 2211 endif
 2212 endif
 2213 
 2214 ifndef $(HAVE_SINL)
 2215 MATHFUNC=sinl
 2216 export MATHFUNC
 2217 HAVE_SINL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=sinl have_mathfunc)
 2218 ifeq ($(HAVE_SINL),1)
 2219 	CONFIG_CFLAGS += -DHAVE_SINL
 2220 $(info autoconfig: using sinl)
 2221 endif
 2222 endif
 2223 
 2224 ifndef $(HAVE_SPLICE)
 2225 HAVE_SPLICE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-splice have_test_prog)
 2226 ifeq ($(HAVE_SPLICE),1)
 2227 	CONFIG_CFLAGS += -DHAVE_SPLICE
 2228 $(info autoconfig: using splice)
 2229 endif
 2230 endif
 2231 
 2232 ifndef $(HAVE_SQRTL)
 2233 MATHFUNC=sqrtl
 2234 export MATHFUNC
 2235 HAVE_SQRTL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) MATHFUNC=sqrtl have_mathfunc)
 2236 ifeq ($(HAVE_SQRTL),1)
 2237 	CONFIG_CFLAGS += -DHAVE_SQRTL
 2238 $(info autoconfig: using sqrtl)
 2239 endif
 2240 endif
 2241 
 2242 ifndef $(HAVE_STATFS)
 2243 HAVE_STATFS = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-statfs have_test_prog)
 2244 ifeq ($(HAVE_STATFS),1)
 2245 	CONFIG_CFLAGS += -DHAVE_STATFS
 2246 $(info autoconfig: using statfs)
 2247 endif
 2248 endif
 2249 
 2250 ifndef $(HAVE_STRLCAT)
 2251 STRFUNC=strlcat
 2252 export STRFUNC
 2253 HAVE_STRLCAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) STRFUNC=strlcat have_strfunc)
 2254 ifeq ($(HAVE_STRLCAT),1)
 2255 	CONFIG_CFLAGS += -DHAVE_STRLCAT
 2256 $(info autoconfig: using strlcat)
 2257 endif
 2258 endif
 2259 
 2260 ifndef $(HAVE_STRLCPY)
 2261 STRFUNC=strlcpy
 2262 export STRFUNC
 2263 HAVE_STRLCPY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) STRFUNC=strlcpy have_strfunc)
 2264 ifeq ($(HAVE_STRLCPY),1)
 2265 	CONFIG_CFLAGS += -DHAVE_STRLCPY
 2266 $(info autoconfig: using strlcpy)
 2267 endif
 2268 endif
 2269 
 2270 ifndef $(HAVE_ICMPHDR)
 2271 HAVE_ICMPHDR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-icmphdr have_test_prog)
 2272 ifeq ($(HAVE_ICMPHDR),1)
 2273 	CONFIG_CFLAGS += -DHAVE_ICMPHDR
 2274 $(info autoconfig: using struct iphdr and icmphdr)
 2275 endif
 2276 endif
 2277 
 2278 ifndef $(HAVE_MSGINFO)
 2279 HAVE_MSGINFO = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-msginfo have_test_prog)
 2280 ifeq ($(HAVE_MSGINFO),1)
 2281 	CONFIG_CFLAGS += -DHAVE_MSGINFO
 2282 $(info autoconfig: using struct msginfo)
 2283 endif
 2284 endif
 2285 
 2286 ifndef $(HAVE_SHMID_DS)
 2287 HAVE_SHMID_DS = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-shmid-ds have_test_prog)
 2288 ifeq ($(HAVE_SHMID_DS),1)
 2289 	CONFIG_CFLAGS += -DHAVE_SHMID_DS
 2290 $(info autoconfig: using struct shmid_ds)
 2291 endif
 2292 endif
 2293 
 2294 ifndef $(HAVE_SHMINFO)
 2295 HAVE_SHMINFO = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-shminfo have_test_prog)
 2296 ifeq ($(HAVE_SHMINFO),1)
 2297 	CONFIG_CFLAGS += -DHAVE_SHMINFO
 2298 $(info autoconfig: using struct shminfo)
 2299 endif
 2300 endif
 2301 
 2302 ifndef $(HAVE_SWAPCONTEXT)
 2303 HAVE_SWAPCONTEXT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-swapcontext have_test_prog)
 2304 ifeq ($(HAVE_SWAPCONTEXT),1)
 2305 	CONFIG_CFLAGS += -DHAVE_SWAPCONTEXT
 2306 $(info autoconfig: using swapcontext)
 2307 endif
 2308 endif
 2309 
 2310 ifndef $(HAVE_SWAP)
 2311 HAVE_SWAP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-swap have_test_prog)
 2312 ifeq ($(HAVE_SWAP),1)
 2313 	CONFIG_CFLAGS += -DHAVE_SWAP
 2314 $(info autoconfig: using swapon and swapoff)
 2315 endif
 2316 endif
 2317 
 2318 ifndef $(HAVE_SYNC_FILE_RANGE)
 2319 HAVE_SYNC_FILE_RANGE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sync-file-range have_test_prog)
 2320 ifeq ($(HAVE_SYNC_FILE_RANGE),1)
 2321 	CONFIG_CFLAGS += -DHAVE_SYNC_FILE_RANGE
 2322 $(info autoconfig: using sync_file_range)
 2323 endif
 2324 endif
 2325 
 2326 ifndef $(HAVE_SYNCFS)
 2327 HAVE_SYNCFS = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-syncfs have_test_prog)
 2328 ifeq ($(HAVE_SYNCFS),1)
 2329 	CONFIG_CFLAGS += -DHAVE_SYNCFS
 2330 $(info autoconfig: using syncfs)
 2331 endif
 2332 endif
 2333 
 2334 ifndef $(HAVE_SYSINFO)
 2335 HAVE_SYSINFO = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sysinfo have_test_prog)
 2336 ifeq ($(HAVE_SYSINFO),1)
 2337 	CONFIG_CFLAGS += -DHAVE_SYSINFO
 2338 $(info autoconfig: using sysinfo)
 2339 endif
 2340 endif
 2341 
 2342 ifndef $(HAVE_MQ_SYSV)
 2343 HAVE_MQ_SYSV = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-mq-sysv have_test_prog)
 2344 ifeq ($(HAVE_MQ_SYSV),1)
 2345 	CONFIG_CFLAGS += -DHAVE_MQ_SYSV
 2346 $(info autoconfig: using SYSV message queues)
 2347 endif
 2348 endif
 2349 
 2350 ifndef $(HAVE_SEM_SYSV)
 2351 HAVE_SEM_SYSV = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-sem-sysv have_test_prog)
 2352 ifeq ($(HAVE_SEM_SYSV),1)
 2353 	CONFIG_CFLAGS += -DHAVE_SEM_SYSV
 2354 $(info autoconfig: using SYSV semaphores)
 2355 endif
 2356 endif
 2357 
 2358 ifndef $(HAVE_SEMTIMEDOP)
 2359 HAVE_SEMTIMEDOP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-semtimedop have_test_prog)
 2360 ifeq ($(HAVE_SEMTIMEDOP),1)
 2361 	CONFIG_CFLAGS += -DHAVE_SEMTIMEDOP
 2362 $(info autoconfig: using SYSV semtimedop)
 2363 endif
 2364 endif
 2365 
 2366 ifndef $(HAVE_SHM_SYSV)
 2367 HAVE_SHM_SYSV = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-shm-sysv have_test_prog)
 2368 ifeq ($(HAVE_SHM_SYSV),1)
 2369 	CONFIG_CFLAGS += -DHAVE_SHM_SYSV
 2370 $(info autoconfig: using SYSV shared memory)
 2371 endif
 2372 endif
 2373 
 2374 ifndef $(HAVE_TEE)
 2375 HAVE_TEE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-tee have_test_prog)
 2376 ifeq ($(HAVE_TEE),1)
 2377 	CONFIG_CFLAGS += -DHAVE_TEE
 2378 $(info autoconfig: using tee)
 2379 endif
 2380 endif
 2381 
 2382 ifndef $(HAVE_TIMER_CREATE)
 2383 HAVE_TIMER_CREATE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS='$(LIB_RT) $(LIB_PTHREAD)' TEST_PROG=test-timer-create have_test_prog)
 2384 ifeq ($(HAVE_TIMER_CREATE),1)
 2385 	CONFIG_CFLAGS += -DHAVE_TIMER_CREATE
 2386 $(info autoconfig: using timer_create)
 2387 endif
 2388 endif
 2389 
 2390 ifndef $(HAVE_TIMER_DELETE)
 2391 HAVE_TIMER_DELETE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS='$(LIB_RT) $(LIB_PTHREAD)' TEST_PROG=test-timer-delete have_test_prog)
 2392 ifeq ($(HAVE_TIMER_DELETE),1)
 2393 	CONFIG_CFLAGS += -DHAVE_TIMER_DELETE
 2394 $(info autoconfig: using timer_delete)
 2395 endif
 2396 endif
 2397 
 2398 ifndef $(HAVE_TIMER_GETTIME)
 2399 HAVE_TIMER_GETTIME = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_RT) TEST_PROG=test-timer-gettime  have_test_prog)
 2400 ifeq ($(HAVE_TIMER_GETTIME),1)
 2401 	CONFIG_CFLAGS += -DHAVE_TIMER_GETTIME
 2402 $(info autoconfig: using timer_gettime)
 2403 endif
 2404 endif
 2405 
 2406 ifndef $(HAVE_TIMER_GETOVERRUN)
 2407 HAVE_TIMER_GETOVERRUN = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_RT) TEST_PROG=test-timer-getoverrun  have_test_prog)
 2408 ifeq ($(HAVE_TIMER_GETOVERRUN),1)
 2409 	CONFIG_CFLAGS += -DHAVE_TIMER_GETOVERRUN
 2410 $(info autoconfig: using timer_getoverrrun)
 2411 endif
 2412 endif
 2413 
 2414 
 2415 ifndef $(HAVE_TIMER_SETTIME)
 2416 HAVE_TIMER_SETTIME = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_LIBS=$(LIB_RT) TEST_PROG=test-timer-settime  have_test_prog)
 2417 ifeq ($(HAVE_TIMER_SETTIME),1)
 2418 	CONFIG_CFLAGS += -DHAVE_TIMER_SETTIME
 2419 $(info autoconfig: using timer_settime)
 2420 endif
 2421 endif
 2422 
 2423 ifndef $(HAVE_UNAME)
 2424 HAVE_UNAME = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-uname have_test_prog)
 2425 ifeq ($(HAVE_UNAME),1)
 2426 	CONFIG_CFLAGS += -DHAVE_UNAME
 2427 $(info autoconfig: using uname)
 2428 endif
 2429 endif
 2430 
 2431 ifndef $(HAVE_UNSHARE)
 2432 HAVE_UNSHARE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-unshare have_test_prog)
 2433 ifeq ($(HAVE_UNSHARE),1)
 2434 	CONFIG_CFLAGS += -DHAVE_UNSHARE
 2435 $(info autoconfig: using unshare)
 2436 endif
 2437 endif
 2438 
 2439 ifndef $(HAVE_USTAT)
 2440 HAVE_USTAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_CFLAGS=-Werror TEST_PROG=test-ustat have_test_prog)
 2441 ifeq ($(HAVE_USTAT),1)
 2442 	CONFIG_CFLAGS += -DHAVE_USTAT
 2443 $(info autoconfig: using ustat)
 2444 endif
 2445 endif
 2446 
 2447 ifndef $(HAVE_UTIMENSAT)
 2448 HAVE_UTIMENSAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-utimensat have_test_prog)
 2449 ifeq ($(HAVE_UTIMENSAT),1)
 2450 	CONFIG_CFLAGS += -DHAVE_UTIMENSAT
 2451 $(info autoconfig: using utimensat)
 2452 endif
 2453 endif
 2454 
 2455 ifndef $(HAVE_VLA_ARG)
 2456 HAVE_VLA_ARG = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-vla-arg have_test_prog)
 2457 ifeq ($(HAVE_VLA_ARG),1)
 2458 	CONFIG_CFLAGS += -DHAVE_VLA_ARG
 2459 $(info autoconfig: using variable length array function args)
 2460 endif
 2461 endif
 2462 
 2463 ifndef $(HAVE_VMSPLICE)
 2464 HAVE_VMSPLICE = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-vmsplice have_test_prog)
 2465 ifeq ($(HAVE_VMSPLICE),1)
 2466 	CONFIG_CFLAGS += -DHAVE_VMSPLICE
 2467 $(info autoconfig: using vmsplice)
 2468 endif
 2469 endif
 2470 
 2471 ifndef $(HAVE_WAITID)
 2472 HAVE_WAITID = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) TEST_PROG=test-waitid have_test_prog)
 2473 ifeq ($(HAVE_WAITID),1)
 2474 	CONFIG_CFLAGS += -DHAVE_WAITID
 2475 $(info autoconfig: using waitid)
 2476 endif
 2477 endif
 2478 
 2479 ifndef $(HAVE_HAVE_WCSCASECMP)
 2480 WCSFUNC=wcscasecmp
 2481 export WCSFUNC
 2482 HAVE_WCSCASECMP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcscasecmp have_wcsfunc)
 2483 ifeq ($(HAVE_WCSCASECMP),1)
 2484 	CONFIG_CFLAGS += -DHAVE_WCSCASECMP
 2485 $(info autoconfig: using wcscasecmp)
 2486 endif
 2487 endif
 2488 
 2489 ifndef $(HAVE_WCSCAT)
 2490 WCSFUNC=wcscat
 2491 export WCSFUNC
 2492 HAVE_WCSCAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcscat have_wcsfunc)
 2493 ifeq ($(HAVE_WCSCAT),1)
 2494 	CONFIG_CFLAGS += -DHAVE_WCSCAT
 2495 $(info autoconfig: using wcscat)
 2496 endif
 2497 endif
 2498 
 2499 ifndef $(HAVE_WCSCHR)
 2500 WCSFUNC=wcschr
 2501 export WCSFUNC
 2502 HAVE_WCSCHR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcschr have_wcsfunc)
 2503 ifeq ($(HAVE_WCSCHR),1)
 2504 	CONFIG_CFLAGS += -DHAVE_WCSCHR
 2505 $(info autoconfig: using wcschr)
 2506 endif
 2507 endif
 2508 
 2509 ifndef $(HAVE_WCSCMP)
 2510 WCSFUNC=wcscmp
 2511 export WCSFUNC
 2512 HAVE_WCSCMP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcscmp have_wcsfunc)
 2513 ifeq ($(HAVE_WCSCMP),1)
 2514 	CONFIG_CFLAGS += -DHAVE_WCSCMP
 2515 $(info autoconfig: using wcscmp)
 2516 endif
 2517 endif
 2518 
 2519 ifndef $(HAVE_WCSCOLL)
 2520 WCSFUNC=wcscoll
 2521 export WCSFUNC
 2522 HAVE_WCSCOLL = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcscoll have_wcsfunc)
 2523 ifeq ($(HAVE_WCSCOLL),1)
 2524 	CONFIG_CFLAGS += -DHAVE_WCSCOLL
 2525 $(info autoconfig: using wcscoll)
 2526 endif
 2527 endif
 2528 
 2529 ifndef $(HAVE_WCSCPY)
 2530 WCSFUNC=wcscpy
 2531 export WCSFUNC
 2532 HAVE_WCSCPY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcscpy have_wcsfunc)
 2533 ifeq ($(HAVE_WCSCPY),1)
 2534 	CONFIG_CFLAGS += -DHAVE_WCSCPY
 2535 $(info autoconfig: using wcscpy)
 2536 endif
 2537 endif
 2538 
 2539 ifndef $(HAVE_WCSLCAT)
 2540 WCSFUNC=wcslcat
 2541 export WCSFUNC
 2542 HAVE_WCSLCAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcslcat have_wcsfunc)
 2543 ifeq ($(HAVE_WCSLCAT),1)
 2544 	CONFIG_CFLAGS += -DHAVE_WCSLCAT
 2545 $(info autoconfig: using wcslcat)
 2546 endif
 2547 endif
 2548 
 2549 ifndef $(HAVE_WCSLCPY)
 2550 WCSFUNC=wcslcpy
 2551 export WCSFUNC
 2552 HAVE_WCSLCPY = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcslcpy have_wcsfunc)
 2553 ifeq ($(HAVE_WCSLCPY),1)
 2554 	CONFIG_CFLAGS += -DHAVE_WCSLCPY
 2555 $(info autoconfig: using wcslcpy)
 2556 endif
 2557 endif
 2558 
 2559 ifndef $(HAVE_WCSLEN)
 2560 WCSFUNC=wcslen
 2561 export WCSFUNC
 2562 HAVE_WCSLEN = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcslen have_wcsfunc)
 2563 ifeq ($(HAVE_WCSLEN),1)
 2564 	CONFIG_CFLAGS += -DHAVE_WCSLEN
 2565 $(info autoconfig: using wcslen)
 2566 endif
 2567 endif
 2568 
 2569 ifndef $(HAVE_WCSNCASECMP)
 2570 WCSFUNC=wcsncasecmp
 2571 export WCSFUNC
 2572 HAVE_WCSNCASECMP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcsncasecmp have_wcsfunc)
 2573 ifeq ($(HAVE_WCSNCASECMP),1)
 2574 	CONFIG_CFLAGS += -DHAVE_WCSNCASECMP
 2575 $(info autoconfig: using wcsncasecmp)
 2576 endif
 2577 endif
 2578 
 2579 ifndef $(HAVE_WCSNCAT)
 2580 WCSFUNC=wcsncat
 2581 export WCSFUNC
 2582 HAVE_WCSNCAT = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcsncat have_wcsfunc)
 2583 ifeq ($(HAVE_WCSNCAT),1)
 2584 	CONFIG_CFLAGS += -DHAVE_WCSNCAT
 2585 $(info autoconfig: using wcsncat)
 2586 endif
 2587 endif
 2588 
 2589 ifndef $(HAVE_WCSNCMP)
 2590 WCSFUNC=wcsncmp
 2591 export WCSFUNC
 2592 HAVE_WCSNCMP = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcsncmp have_wcsfunc)
 2593 ifeq ($(HAVE_WCSNCMP),1)
 2594 	CONFIG_CFLAGS += -DHAVE_WCSNCMP
 2595 $(info autoconfig: using wcsncmp)
 2596 endif
 2597 endif
 2598 
 2599 ifndef $(HAVE_WCSRCHR)
 2600 WCSFUNC=wcsrchr
 2601 export WCSFUNC
 2602 HAVE_WCSRCHR = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcsrchr have_wcsfunc)
 2603 ifeq ($(HAVE_WCSRCHR),1)
 2604 	CONFIG_CFLAGS += -DHAVE_WCSRCHR
 2605 $(info autoconfig: using wcsrchr)
 2606 endif
 2607 endif
 2608 
 2609 ifndef $(HAVE_WCSXFRM)
 2610 WCSFUNC=wcsxfrm
 2611 export WCSFUNC
 2612 HAVE_WCSXFRM = $(shell $(MAKE) -f Makefile.config --no-print-directory $(HAVE_NOT) WCSFUNC=wcsxfrm have_wcsfunc)
 2613 ifeq ($(HAVE_WCSXFRM),1)
 2614 	CONFIG_CFLAGS += -DHAVE_WCSXFRM
 2615 $(info autoconfig: using wcsxfrm)
 2616 endif
 2617 endif
 2618 
 2619 endif
 2620 
 2621 .SUFFIXES: .c .o
 2622 
 2623 #
 2624 #  save configuration
 2625 #
 2626 .PHONY: save_config
 2627 save_config:
 2628 	@echo $(foreach h,$(HAVE_VARS),$h=$($(h))) | tr ' ' '\n' > config
 2629 	@echo CONFIG_CFLAGS=$(CONFIG_CFLAGS) >> config
 2630 	@echo CONFIG_LDFLAGS=$(CONFIG_LDFLAGS) >> config
 2631 	@echo CONFIG_OBJS=$(CONFIG_OBJS) >> config
 2632 	@echo HAVE_CONFIG=1 >> config
 2633 
 2634 #
 2635 #  check if we can build against AppArmor
 2636 #
 2637 .PHONY: have_apparmor
 2638 have_apparmor: $(DIR)/test-apparmor.c
 2639 	@$(CC) $(CFLAGS) $(CPPFLAGS) $(DIR)/test-apparmor.c $(LIB_APPARMOR) -o $(DIR)/test-apparmor 2> /dev/null || true
 2640 	@$(APPARMOR_PARSER) -Q usr.bin.pulseaudio.eg -o apparmor-data.bin 2> /dev/null; \
 2641 	if [ $$? -ne 0 ]; then \
 2642 		echo 0 ;\
 2643 	else \
 2644 		if [ -f $(DIR)/test-apparmor ]; then \
 2645 			if [ -x "$(APPARMOR_PARSER)" ]; then \
 2646 				if [ -f apparmor-data.bin ]; then \
 2647 					echo 1 ;\
 2648 				else \
 2649 					echo 0 ;\
 2650 				fi \
 2651 			else \
 2652 				echo 0 ;\
 2653 			fi \
 2654 		else \
 2655 			echo 0 ;\
 2656 		fi \
 2657 	fi
 2658 	@rm -f $(DIR)/test-apparmor apparmor-data.bin
 2659 
 2660 #
 2661 #  check if compiler supports a specific floating point decimal format
 2662 #
 2663 .PHONY: have_float
 2664 have_float:
 2665 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DFLOAT=$(FLOAT_TYPE) -o $(DIR)/test-float $(DIR)/test-float.c -lm 2> /dev/null || true
 2666 	@if [ -f $(DIR)/test-float ]; then \
 2667 		echo 1 ;\
 2668 	else \
 2669 		echo 0 ;\
 2670 	fi
 2671 	@rm -f $(DIR)/test-float
 2672 
 2673 #
 2674 #  check if we have a specific header
 2675 #
 2676 .PHONY: have_header_h
 2677 have_header_h:
 2678 	@echo "#include <sys/types.h>" > $(DIR)/test-header.c
 2679 	@echo "#include <$(HEADER)>" >> $(DIR)/test-header.c
 2680 	@$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $(DIR)/test-header.o $(DIR)/test-header.c 2> /dev/null || true
 2681 	@if [ -f $(DIR)/test-header.o ]; then \
 2682 		echo 1 ;\
 2683 	else \
 2684 		echo 0 ;\
 2685 	fi
 2686 	@rm -f $(DIR)/test-header.o $(DIR)/test-header.c
 2687 
 2688 #
 2689 #  check if we can build using a specific test program
 2690 #
 2691 .PHONY: have_test_prog
 2692 have_test_prog: $(DIR)/$(TEST_PROG).c
 2693 	@$(CC) $(CFLAGS) $(CPPFLAGS) $(TEST_CFLAGS) $(DIR)/$(TEST_PROG).c $(TEST_LIBS) -o $(DIR)/$(TEST_PROG) $(LDFLAGS) 2> /dev/null || true
 2694 	@if [ -f $(DIR)/$(TEST_PROG) ]; then \
 2695 		echo 1 ;\
 2696 	else \
 2697 		echo 0 ;\
 2698 	fi
 2699 		@rm -rf $(DIR)/$(TEST_PROG)
 2700 
 2701 #
 2702 #  check if we can build vecmath related code
 2703 #
 2704 .PHONY: have_vecmath
 2705 have_vecmath: stress-vecmath.c
 2706 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DHAVE_VECMATH -c -o stress-vecmath-test.o stress-vecmath.c 2> /dev/null || true
 2707 	@if [ -f stress-vecmath-test.o ]; then \
 2708 		echo 1 ;\
 2709 	else \
 2710 		echo 0 ;\
 2711 	fi
 2712 	@rm -rf stress-vecmath-test.o
 2713 
 2714 #
 2715 #  check if we can build atomic related code
 2716 #
 2717 .PHONY: have_atomic
 2718 have_atomic: stress-atomic.c
 2719 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DTEST_ATOMIC_BUILD -DHAVE_ATOMIC stress-atomic.c -o stress-atomic-test 2> /dev/null || true
 2720 	@if [ -f stress-atomic-test ]; then \
 2721 		echo 1 ;\
 2722 	else \
 2723 		echo 0 ;\
 2724 	fi
 2725 	@rm -rf stress-atomic-test
 2726 
 2727 #
 2728 #  check if we have specific math functions
 2729 #
 2730 .PHONY: have_mathfunc
 2731 have_mathfunc: $(DIR)/test-mathfunc.c
 2732 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DMATHFUNC=$(MATHFUNC) $(DIR)/test-mathfunc.c -o $(DIR)/test-mathfunc -lm 2> /dev/null || true
 2733 	@if [ -f $(DIR)/test-mathfunc ]; then \
 2734 		echo 1 ;\
 2735 	else \
 2736 		echo 0 ;\
 2737 	fi
 2738 	@rm -rf $(DIR)/test-mathfunc
 2739 
 2740 #
 2741 #  check if we have specific string str* functions
 2742 #
 2743 .PHONY: have_strfunc
 2744 have_strfunc: $(DIR)/test-strfunc.c
 2745 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DSTRFUNC=$(STRFUNC) $(DIR)/test-strfunc.c -o $(DIR)/test-strfunc $(LIB_BSD) 2> /dev/null || true
 2746 	@if [ -f $(DIR)/test-strfunc ]; then \
 2747 		echo 1 ;\
 2748 	else \
 2749 		echo 0 ;\
 2750 	fi
 2751 	@rm -rf $(DIR)/test-strfunc
 2752 
 2753 #
 2754 #  check if we have specific wide string wcs* functions
 2755 #
 2756 .PHONY: have_wcsfunc
 2757 have_wcsfunc: $(DIR)/test-wcsfunc.c
 2758 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DWCSFUNC=$(WCSFUNC) $(DIR)/test-wcsfunc.c -o $(DIR)/test-wcsfunc $(LIB_BSD) 2> /dev/null || true
 2759 	@if [ -f $(DIR)/test-wcsfunc ]; then \
 2760 		echo 1 ;\
 2761 	else \
 2762 		echo 0 ;\
 2763 	fi
 2764 	@rm -rf $(DIR)/test-wcsfunc