Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for Valgrind 3.25.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: [email protected] about your system,
275 $0: including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='Valgrind'
606 PACKAGE_TARNAME='valgrind'
607 PACKAGE_VERSION='3.25.1'
608 PACKAGE_STRING='Valgrind 3.25.1'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL=''
611
612 ac_unique_file="coregrind/m_main.c"
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_func_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 HAVE_SHA3_FALSE
650 HAVE_SHA3_TRUE
651 HAVE_THRD_CREATE_FALSE
652 HAVE_THRD_CREATE_TRUE
653 HAVE_SHARED_POINTER_ANNOTATION_FALSE
654 HAVE_SHARED_POINTER_ANNOTATION_TRUE
655 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE
656 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE
657 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE
658 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE
659 HAVE_BUILTIN_ATOMIC_CXX_FALSE
660 HAVE_BUILTIN_ATOMIC_CXX_TRUE
661 HAVE_AIO_READV_FALSE
662 HAVE_AIO_READV_TRUE
663 HAVE_OPENSSL_FALSE
664 HAVE_OPENSSL_TRUE
665 HAVE_OPENAT2_FALSE
666 HAVE_OPENAT2_TRUE
667 HAVE_BUILTIN_ATOMIC64_FALSE
668 HAVE_BUILTIN_ATOMIC64_TRUE
669 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE
670 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE
671 HAVE_BUILTIN_ATOMIC_FALSE
672 HAVE_BUILTIN_ATOMIC_TRUE
673 HAVE_OPENMP_FALSE
674 HAVE_OPENMP_TRUE
675 HAVE_BOOST_1_35_FALSE
676 HAVE_BOOST_1_35_TRUE
677 BOOST_LIBS
678 BOOST_CFLAGS
679 HAVE_STATIC_LIBC_FALSE
680 HAVE_STATIC_LIBC_TRUE
681 BUILD_MPIWRAP_SEC_FALSE
682 BUILD_MPIWRAP_SEC_TRUE
683 BUILD_MPIWRAP_PRI_FALSE
684 BUILD_MPIWRAP_PRI_TRUE
685 LDFLAGS_MPI
686 CFLAGS_MPI
687 MPI_CC
688 HAVE_SETCRED_FALSE
689 HAVE_SETCRED_TRUE
690 HAVE_FCHROOT_FALSE
691 HAVE_FCHROOT_TRUE
692 HAVE_TIMER_DELETE_FALSE
693 HAVE_TIMER_DELETE_TRUE
694 HAVE_GETRLIMITUSAGE_FALSE
695 HAVE_GETRLIMITUSAGE_TRUE
696 HAVE_GETRANDOM_FALSE
697 HAVE_GETRANDOM_TRUE
698 HAVE_FDATASYNC_FALSE
699 HAVE_FDATASYNC_TRUE
700 HAVE_SEM_CLOCKWAIT_NP_FALSE
701 HAVE_SEM_CLOCKWAIT_NP_TRUE
702 HAVE_SEM_TIMEDWAIT_FALSE
703 HAVE_SEM_TIMEDWAIT_TRUE
704 HAVE_WCSXFRM_FALSE
705 HAVE_WCSXFRM_TRUE
706 HAVE_WCPNCPY_FALSE
707 HAVE_WCPNCPY_TRUE
708 HAVE_SBRK_FALSE
709 HAVE_SBRK_TRUE
710 HAVE_FREE_ALIGNED_SIZED_FALSE
711 HAVE_FREE_ALIGNED_SIZED_TRUE
712 HAVE_STRLCPY_FALSE
713 HAVE_STRLCPY_TRUE
714 HAVE_STRLCAT_FALSE
715 HAVE_STRLCAT_TRUE
716 HAVE_WCSNCPY_FALSE
717 HAVE_WCSNCPY_TRUE
718 HAVE_REALLOCARRAY_FALSE
719 HAVE_REALLOCARRAY_TRUE
720 HAVE_CLOSE_RANGE_FALSE
721 HAVE_CLOSE_RANGE_TRUE
722 HAVE_GETADDRINFO_FALSE
723 HAVE_GETADDRINFO_TRUE
724 HAVE_MEMFD_CREATE_FALSE
725 HAVE_MEMFD_CREATE_TRUE
726 HAVE_SWAPCONTEXT_FALSE
727 HAVE_SWAPCONTEXT_TRUE
728 HAVE_SETCONTEXT_FALSE
729 HAVE_SETCONTEXT_TRUE
730 HAVE_PREADV2_PWRITEV2_FALSE
731 HAVE_PREADV2_PWRITEV2_TRUE
732 HAVE_PREADV_PWRITEV_FALSE
733 HAVE_PREADV_PWRITEV_TRUE
734 HAVE_COPY_FILE_RANGE_FALSE
735 HAVE_COPY_FILE_RANGE_TRUE
736 HAVE_PTHREAD_SETNAME_NP_FALSE
737 HAVE_PTHREAD_SETNAME_NP_TRUE
738 HAVE_PTHREAD_SPINLOCK_FALSE
739 HAVE_PTHREAD_SPINLOCK_TRUE
740 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
741 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
742 HAVE_PTHREAD_BARRIER_FALSE
743 HAVE_PTHREAD_BARRIER_TRUE
744 LIBOBJS
745 FREEBSD_TIMERFD_SYSCALL_FALSE
746 FREEBSD_TIMERFD_SYSCALL_TRUE
747 FREEBSD_KQUEUEX_SYSCALL_FALSE
748 FREEBSD_KQUEUEX_SYSCALL_TRUE
749 FREEBSD_REALPATHAT_SYSCALL_FALSE
750 FREEBSD_REALPATHAT_SYSCALL_TRUE
751 FREEBSD_EVENTFD_FALSE
752 FREEBSD_EVENTFD_TRUE
753 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE
754 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE
755 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE
756 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE
757 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE
758 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE
759 DIS_PATH
760 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE
761 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE
762 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE
763 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE
764 SOLARIS_GETHRT_FASTTRAP_FALSE
765 SOLARIS_GETHRT_FASTTRAP_TRUE
766 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE
767 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE
768 SOLARIS_MODCTL_MODNVL_FALSE
769 SOLARIS_MODCTL_MODNVL_TRUE
770 SOLARIS_SPAWN_SYSCALL_FALSE
771 SOLARIS_SPAWN_SYSCALL_TRUE
772 SOLARIS_UTIMENSAT_SYSCALL_FALSE
773 SOLARIS_UTIMENSAT_SYSCALL_TRUE
774 SOLARIS_UTIMESYS_SYSCALL_FALSE
775 SOLARIS_UTIMESYS_SYSCALL_TRUE
776 SOLARIS_PSET_GET_NAME_FALSE
777 SOLARIS_PSET_GET_NAME_TRUE
778 SOLARIS_TSOL_CLEARANCE_FALSE
779 SOLARIS_TSOL_CLEARANCE_TRUE
780 SOLARIS_TNDB_GET_TNIP_FALSE
781 SOLARIS_TNDB_GET_TNIP_TRUE
782 SOLARIS_UUIDSYS_SYSCALL_FALSE
783 SOLARIS_UUIDSYS_SYSCALL_TRUE
784 SOLARIS_FREALPATHAT_SYSCALL_FALSE
785 SOLARIS_FREALPATHAT_SYSCALL_TRUE
786 SOLARIS_PRXREGSET_T_FALSE
787 SOLARIS_PRXREGSET_T_TRUE
788 SOLARIS_SHM_NEW_FALSE
789 SOLARIS_SHM_NEW_TRUE
790 SOLARIS_AUDITON_STAT_FALSE
791 SOLARIS_AUDITON_STAT_TRUE
792 SOLARIS_ZONE_DEFUNCT_FALSE
793 SOLARIS_ZONE_DEFUNCT_TRUE
794 SOLARIS_GETRANDOM_SYSCALL_FALSE
795 SOLARIS_GETRANDOM_SYSCALL_TRUE
796 SOLARIS_LWP_NAME_SYSCALL_FALSE
797 SOLARIS_LWP_NAME_SYSCALL_TRUE
798 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE
799 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE
800 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE
801 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE
802 SOLARIS_OLD_SYSCALLS_FALSE
803 SOLARIS_OLD_SYSCALLS_TRUE
804 SOLARIS_PROC_CMDLINE_FALSE
805 SOLARIS_PROC_CMDLINE_TRUE
806 SOLARIS_UNDEF_LARGESOURCE
807 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE
808 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE
809 SOLARIS_SUN_STUDIO_AS_FALSE
810 SOLARIS_SUN_STUDIO_AS_TRUE
811 BUILD_ARMV82_DOTPROD_TESTS_FALSE
812 BUILD_ARMV82_DOTPROD_TESTS_TRUE
813 BUILD_ARMV82_TESTS_FALSE
814 BUILD_ARMV82_TESTS_TRUE
815 BUILD_ARMV81_TESTS_FALSE
816 BUILD_ARMV81_TESTS_TRUE
817 BUILD_ARMV8_CRC_TESTS_FALSE
818 BUILD_ARMV8_CRC_TESTS_TRUE
819 BUILD_IFUNC_TESTS_FALSE
820 BUILD_IFUNC_TESTS_TRUE
821 BUILD_MOVBE_TESTS_FALSE
822 BUILD_MOVBE_TESTS_TRUE
823 BUILD_F16C_TESTS_FALSE
824 BUILD_F16C_TESTS_TRUE
825 BUILD_RDSEED_TESTS_FALSE
826 BUILD_RDSEED_TESTS_TRUE
827 BUILD_RDRAND_TESTS_FALSE
828 BUILD_RDRAND_TESTS_TRUE
829 BUILD_ADX_TESTS_FALSE
830 BUILD_ADX_TESTS_TRUE
831 BUILD_MPX_TESTS_FALSE
832 BUILD_MPX_TESTS_TRUE
833 BUILD_FMA_TESTS_FALSE
834 BUILD_FMA_TESTS_TRUE
835 BUILD_BMI_TESTS_FALSE
836 BUILD_BMI_TESTS_TRUE
837 BUILD_TSX_TESTS_FALSE
838 BUILD_TSX_TESTS_TRUE
839 BUILD_AVX2_TESTS_FALSE
840 BUILD_AVX2_TESTS_TRUE
841 BUILD_AVX_TESTS_FALSE
842 BUILD_AVX_TESTS_TRUE
843 BUILD_SSE42_TESTS_FALSE
844 BUILD_SSE42_TESTS_TRUE
845 BUILD_ADDR32_TESTS_FALSE
846 BUILD_ADDR32_TESTS_TRUE
847 BUILD_LOOPNEL_TESTS_FALSE
848 BUILD_LOOPNEL_TESTS_TRUE
849 BUILD_LZCNT_TESTS_FALSE
850 BUILD_LZCNT_TESTS_TRUE
851 BUILD_FMA4_TESTS_FALSE
852 BUILD_FMA4_TESTS_TRUE
853 BUILD_VPCLMULQDQ_TESTS_FALSE
854 BUILD_VPCLMULQDQ_TESTS_TRUE
855 BUILD_PCLMULQDQ_TESTS_FALSE
856 BUILD_PCLMULQDQ_TESTS_TRUE
857 BUILD_SSSE3_TESTS_FALSE
858 BUILD_SSSE3_TESTS_TRUE
859 BUILD_SSE3_TESTS_FALSE
860 BUILD_SSE3_TESTS_TRUE
861 FLAG_NO_WARN_EXECSTACK
862 FLAG_S390_PGSTE
863 FLAG_NO_BUILD_ID
864 FLAG_T_TEXT
865 FLAG_NO_PIE
866 HAVE_ANSI_FALSE
867 HAVE_ANSI_TRUE
868 FLAG_PIE
869 HAVE_ASM_CONSTRAINT_P_FALSE
870 HAVE_ASM_CONSTRAINT_P_TRUE
871 HAVE_NESTED_FUNCTIONS_FALSE
872 HAVE_NESTED_FUNCTIONS_TRUE
873 GZ_ZSTD_FALSE
874 GZ_ZSTD_TRUE
875 GZ_ZLIB_GNU_FALSE
876 GZ_ZLIB_GNU_TRUE
877 GZ_ZLIB_FALSE
878 GZ_ZLIB_TRUE
879 DWARF4_FALSE
880 DWARF4_TRUE
881 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
882 LIB_UBSAN
883 FLAG_FSANITIZE
884 FLAG_FNO_IPA_ICF
885 FLAG_FINLINE_FUNCTIONS
886 FLAG_FNO_STACK_PROTECTOR
887 HAVE_ALIGNED_CXX_ALLOC_FALSE
888 HAVE_ALIGNED_CXX_ALLOC_TRUE
889 HAVE_FSIZED_DEALLOCATION_FALSE
890 HAVE_FSIZED_DEALLOCATION_TRUE
891 FLAG_FSIZED_DEALLOCATION
892 FLAG_FALIGNED_NEW
893 FLAG_W_CAST_ALIGN
894 FLAG_W_EXTRA
895 FLAG_W_FORMAT_SECURITY
896 FLAG_W_IMPLICIT_FALLTHROUGH
897 FLAG_W_ENUM_CONVERSION
898 FLAG_W_LOGICAL_OP
899 FLAG_W_MISSING_PARAMETER_TYPE
900 FLAG_W_IGNORED_QUALIFIERS
901 FLAG_W_OLD_STYLE_DECLARATION
902 FLAG_W_CAST_QUAL
903 FLAG_W_FORMAT_SIGNEDNESS
904 FLAG_W_FORMAT
905 FLAG_W_EMPTY_BODY
906 FLAG_W_WRITE_STRINGS
907 FLAG_W_NO_ALLOC_SIZE_LARGER_THAN
908 FLAG_W_NO_DEPRECATED
909 FLAG_W_NO_UNUSED_RESULT
910 FLAG_W_NO_ATTRIBUTES
911 FLAG_W_NO_SUSPICIOUS_BZERO
912 FLAG_W_NO_INCOMPATIBLE_POINTER_TYPES_DISCARDS_QUALIFIERS
913 FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE
914 FLAG_W_NO_FORTIFY_SOURCE
915 FLAG_W_NO_FREE_NONHEAP_OBJECT
916 FLAG_W_NO_USE_AFTER_FREE
917 FLAG_W_NO_FORMAT_OVERFLOW
918 FLAG_W_NO_STRINGOP_TRUNCATION
919 FLAG_W_NO_STRINGOP_OVERREAD
920 FLAG_W_NO_STRINGOP_OVERFLOW
921 FLAG_W_NO_SIGN_COMPARE
922 FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT
923 FLAG_W_NO_UNUSED_BUT_SET_VARIABLE
924 FLAG_W_NO_UNUSED_VARIABLE
925 FLAG_W_NO_EXPANSION_TO_DEFINED
926 FLAG_W_NO_INFINITE_RECURSION
927 FLAG_W_NO_MISMATCHED_NEW_DELETE
928 FLAG_W_NO_STATIC_LOCAL_IN_INLINE
929 FLAG_W_NO_UNUSED_FUNCTION
930 FLAG_W_NO_MAYBE_UNINITIALIZED
931 FLAG_W_NO_UNINITIALIZED
932 FLAG_W_NO_POINTER_SIGN
933 FLAG_W_NO_OVERFLOW
934 FLAG_W_NO_NONNULL
935 FLAG_W_NO_MEMSET_TRANSPOSED_ARGS
936 LTO_CFLAGS
937 FLAG_MLONG_DOUBLE_128
938 HAS_MLONG_DOUBLE_128_FALSE
939 HAS_MLONG_DOUBLE_128_TRUE
940 PREFERRED_STACK_BOUNDARY_2
941 FLAG_MSSE
942 FLAG_MMMX
943 VGCONF_ABI
944 VGCONF_HAVE_ABI_FALSE
945 VGCONF_HAVE_ABI_TRUE
946 FLAG_MSA
947 FLAG_OCTEON2
948 FLAG_OCTEON
949 FLAG_M64
950 FLAG_M32
951 HAVE_LIBAIO_FALSE
952 HAVE_LIBAIO_TRUE
953 HAVE_NR_IO_PGETEVENTS_FALSE
954 HAVE_NR_IO_PGETEVENTS_TRUE
955 HAVE_NR_MEMBARRIER_FALSE
956 HAVE_NR_MEMBARRIER_TRUE
957 CXX_CAN_USE_TIMED_MUTEX_FALSE
958 CXX_CAN_USE_TIMED_MUTEX_TRUE
959 CXX_CAN_USE_SHARED_TIMED_MUTEX_FALSE
960 CXX_CAN_USE_SHARED_TIMED_MUTEX_TRUE
961 CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_FALSE
962 CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_TRUE
963 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE
964 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE
965 HAVE_CXX17_FALSE
966 HAVE_CXX17_TRUE
967 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE
968 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE
969 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
970 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
971 HAS_ISA_3_1_FALSE
972 HAS_ISA_3_1_TRUE
973 HAS_DARN_FALSE
974 HAS_DARN_TRUE
975 HAS_XSCVHPDP_FALSE
976 HAS_XSCVHPDP_TRUE
977 HAS_ISA_3_00_FALSE
978 HAS_ISA_3_00_TRUE
979 SUPPORTS_HTM_FALSE
980 SUPPORTS_HTM_TRUE
981 BUILD_DFP_TESTS_FALSE
982 BUILD_DFP_TESTS_TRUE
983 HAS_DFP_FALSE
984 HAS_DFP_TRUE
985 HAS_VSX_FALSE
986 HAS_VSX_TRUE
987 HAS_ALTIVEC_FALSE
988 HAS_ALTIVEC_TRUE
989 HAS_ISA_2_07_FALSE
990 HAS_ISA_2_07_TRUE
991 HAS_ISA_2_06_FALSE
992 HAS_ISA_2_06_TRUE
993 HAS_ISA_2_05_FALSE
994 HAS_ISA_2_05_TRUE
995 HWCAP_HAS_MMA
996 HWCAP_HAS_HTM
997 HWCAP_HAS_ISA_3_1
998 HWCAP_HAS_ISA_3_00
999 HWCAP_HAS_ISA_2_07
1000 HWCAP_HAS_ISA_2_06
1001 HWCAP_HAS_ISA_2_05
1002 HWCAP_HAS_DFP
1003 HWCAP_HAS_VSX
1004 HWCAP_HAS_ALTIVEC
1005 HAVE_GNU_STPNCPY_FALSE
1006 HAVE_GNU_STPNCPY_TRUE
1007 HAVE_AT_FDCWD_FALSE
1008 HAVE_AT_FDCWD_TRUE
1009 VGCONF_PLATVARIANT_IS_ANDROID_FALSE
1010 VGCONF_PLATVARIANT_IS_ANDROID_TRUE
1011 VGCONF_PLATVARIANT_IS_VANILLA_FALSE
1012 VGCONF_PLATVARIANT_IS_VANILLA_TRUE
1013 VGCONF_PLATVARIANT
1014 GLIBC_LIBPTHREAD_PATH
1015 GLIBC_LIBC_PATH
1016 GLIBC_VERSION
1017 DEFAULT_SUPP
1018 GDBSCRIPTS_FALSE
1019 GDBSCRIPTS_TRUE
1020 VG_GDBSCRIPTS_DIR
1021 XCODE_DIR
1022 XCRUN
1023 VG_TMPDIR
1024 VALT_LOAD_ADDRESS_SEC
1025 VALT_LOAD_ADDRESS_PRI
1026 VGCONF_HAVE_PLATFORM_SEC_FALSE
1027 VGCONF_HAVE_PLATFORM_SEC_TRUE
1028 VGCONF_OS_IS_DARWIN_OR_FREEBSD_FALSE
1029 VGCONF_OS_IS_DARWIN_OR_FREEBSD_TRUE
1030 VGCONF_OS_IS_SOLARIS_FALSE
1031 VGCONF_OS_IS_SOLARIS_TRUE
1032 VGCONF_OS_IS_DARWIN_FALSE
1033 VGCONF_OS_IS_DARWIN_TRUE
1034 VGCONF_OS_IS_FREEBSD_FALSE
1035 VGCONF_OS_IS_FREEBSD_TRUE
1036 VGCONF_OS_IS_LINUX_FALSE
1037 VGCONF_OS_IS_LINUX_TRUE
1038 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE
1039 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE
1040 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE
1041 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE
1042 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
1043 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
1044 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
1045 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
1046 VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_FALSE
1047 VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_TRUE
1048 VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_FALSE
1049 VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_TRUE
1050 VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_FALSE
1051 VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_TRUE
1052 VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_FALSE
1053 VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_TRUE
1054 VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_FALSE
1055 VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_TRUE
1056 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE
1057 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE
1058 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE
1059 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE
1060 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
1061 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
1062 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE
1063 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE
1064 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
1065 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
1066 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE
1067 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE
1068 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE
1069 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE
1070 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
1071 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
1072 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
1073 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
1074 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
1075 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
1076 VGCONF_ARCHS_INCLUDE_RISCV64_FALSE
1077 VGCONF_ARCHS_INCLUDE_RISCV64_TRUE
1078 VGCONF_ARCHS_INCLUDE_NANOMIPS_FALSE
1079 VGCONF_ARCHS_INCLUDE_NANOMIPS_TRUE
1080 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE
1081 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE
1082 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE
1083 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE
1084 VGCONF_ARCHS_INCLUDE_S390X_FALSE
1085 VGCONF_ARCHS_INCLUDE_S390X_TRUE
1086 VGCONF_ARCHS_INCLUDE_ARM64_FALSE
1087 VGCONF_ARCHS_INCLUDE_ARM64_TRUE
1088 VGCONF_ARCHS_INCLUDE_ARM_FALSE
1089 VGCONF_ARCHS_INCLUDE_ARM_TRUE
1090 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
1091 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
1092 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
1093 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
1094 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
1095 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
1096 VGCONF_ARCHS_INCLUDE_X86_FALSE
1097 VGCONF_ARCHS_INCLUDE_X86_TRUE
1098 FLAG_32ON64_GXX
1099 VGCONF_PLATFORM_SEC_CAPS
1100 VGCONF_PLATFORM_PRI_CAPS
1101 VGCONF_ARCH_SEC
1102 VGCONF_ARCH_PRI
1103 VGCONF_OS
1104 VGCONF_PLATFORM_ARM_ARCH
1105 host_os
1106 host_vendor
1107 host_cpu
1108 host
1109 build_os
1110 build_vendor
1111 build_cpu
1112 build
1113 COMPILER_IS_ICC_FALSE
1114 COMPILER_IS_ICC_TRUE
1115 COMPILER_IS_CLANG_FALSE
1116 COMPILER_IS_CLANG_TRUE
1117 DIFF
1118 am__fastdepCCAS_FALSE
1119 am__fastdepCCAS_TRUE
1120 CCASDEPMODE
1121 CCASFLAGS
1122 CCAS
1123 GDB
1124 PERL
1125 LTO_AR
1126 AR
1127 SHA256SUM
1128 SED
1129 LTO_RANLIB
1130 RANLIB
1131 am__fastdepCXX_FALSE
1132 am__fastdepCXX_TRUE
1133 CXXDEPMODE
1134 ac_ct_CXX
1135 CXXFLAGS
1136 CXX
1137 CPP
1138 am__fastdepCC_FALSE
1139 am__fastdepCC_TRUE
1140 CCDEPMODE
1141 am__nodep
1142 AMDEPBACKSLASH
1143 AMDEP_FALSE
1144 AMDEP_TRUE
1145 am__include
1146 DEPDIR
1147 OBJEXT
1148 EXEEXT
1149 ac_ct_CC
1150 CPPFLAGS
1151 LDFLAGS
1152 CFLAGS
1153 CC
1154 LN_S
1155 MAINT
1156 MAINTAINER_MODE_FALSE
1157 MAINTAINER_MODE_TRUE
1158 am__xargs_n
1159 am__rm_f_notfound
1160 AM_BACKSLASH
1161 AM_DEFAULT_VERBOSITY
1162 AM_DEFAULT_V
1163 AM_V
1164 CSCOPE
1165 ETAGS
1166 CTAGS
1167 am__untar
1168 am__tar
1169 AMTAR
1170 am__leading_dot
1171 SET_MAKE
1172 AWK
1173 mkdir_p
1174 MKDIR_P
1175 INSTALL_STRIP_PROGRAM
1176 STRIP
1177 install_sh
1178 MAKEINFO
1179 AUTOHEADER
1180 AUTOMAKE
1181 AUTOCONF
1182 ACLOCAL
1183 VERSION
1184 PACKAGE
1185 CYGPATH_W
1186 am__isrc
1187 INSTALL_DATA
1188 INSTALL_SCRIPT
1189 INSTALL_PROGRAM
1190 VG_DATE
1191 VG_VER_MINOR
1192 VG_VER_MAJOR
1193 target_alias
1194 host_alias
1195 build_alias
1196 LIBS
1197 ECHO_T
1198 ECHO_N
1199 ECHO_C
1200 DEFS
1201 mandir
1202 localedir
1203 libdir
1204 psdir
1205 pdfdir
1206 dvidir
1207 htmldir
1208 infodir
1209 docdir
1210 oldincludedir
1211 includedir
1212 runstatedir
1213 localstatedir
1214 sharedstatedir
1215 sysconfdir
1216 datadir
1217 datarootdir
1218 libexecdir
1219 sbindir
1220 bindir
1221 program_transform_name
1222 prefix
1223 exec_prefix
1224 PACKAGE_URL
1225 PACKAGE_BUGREPORT
1226 PACKAGE_STRING
1227 PACKAGE_VERSION
1228 PACKAGE_TARNAME
1229 PACKAGE_NAME
1230 PATH_SEPARATOR
1231 SHELL
1232 am__quote'
1233 ac_subst_files=''
1234 ac_user_opts='
1235 enable_option_checking
1236 enable_silent_rules
1237 enable_maintainer_mode
1238 enable_dependency_tracking
1239 enable_only64bit
1240 enable_only32bit
1241 enable_inner
1242 enable_ubsan
1243 with_tmpdir
1244 with_xcodedir
1245 with_gdbscripts_dir
1246 enable_lto
1247 enable_tls
1248 with_mpicc
1249 '
1250 ac_precious_vars='build_alias
1251 host_alias
1252 target_alias
1253 CC
1254 CFLAGS
1255 LDFLAGS
1256 LIBS
1257 CPPFLAGS
1258 CPP
1259 CXX
1260 CXXFLAGS
1261 CCC
1262 LTO_RANLIB
1263 SHA256SUM
1264 AR
1265 LTO_AR
1266 CCAS
1267 CCASFLAGS'
1268
1269
1270 # Initialize some variables set by options.
1271 ac_init_help=
1272 ac_init_version=false
1273 ac_unrecognized_opts=
1274 ac_unrecognized_sep=
1275 # The variables have the same names as the options, with
1276 # dashes changed to underlines.
1277 cache_file=/dev/null
1278 exec_prefix=NONE
1279 no_create=
1280 no_recursion=
1281 prefix=NONE
1282 program_prefix=NONE
1283 program_suffix=NONE
1284 program_transform_name=s,x,x,
1285 silent=
1286 site=
1287 srcdir=
1288 verbose=
1289 x_includes=NONE
1290 x_libraries=NONE
1291
1292 # Installation directory options.
1293 # These are left unexpanded so users can "make install exec_prefix=/foo"
1294 # and all the variables that are supposed to be based on exec_prefix
1295 # by default will actually change.
1296 # Use braces instead of parens because sh, perl, etc. also accept them.
1297 # (The list follows the same order as the GNU Coding Standards.)
1298 bindir='${exec_prefix}/bin'
1299 sbindir='${exec_prefix}/sbin'
1300 libexecdir='${exec_prefix}/libexec'
1301 datarootdir='${prefix}/share'
1302 datadir='${datarootdir}'
1303 sysconfdir='${prefix}/etc'
1304 sharedstatedir='${prefix}/com'
1305 localstatedir='${prefix}/var'
1306 runstatedir='${localstatedir}/run'
1307 includedir='${prefix}/include'
1308 oldincludedir='/usr/include'
1309 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1310 infodir='${datarootdir}/info'
1311 htmldir='${docdir}'
1312 dvidir='${docdir}'
1313 pdfdir='${docdir}'
1314 psdir='${docdir}'
1315 libdir='${exec_prefix}/lib'
1316 localedir='${datarootdir}/locale'
1317 mandir='${datarootdir}/man'
1318
1319 ac_prev=
1320 ac_dashdash=
1321 for ac_option
1322 do
1323 # If the previous option needs an argument, assign it.
1324 if test -n "$ac_prev"; then
1325 eval $ac_prev=\$ac_option
1326 ac_prev=
1327 continue
1328 fi
1329
1330 case $ac_option in
1331 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1332 *=) ac_optarg= ;;
1333 *) ac_optarg=yes ;;
1334 esac
1335
1336 case $ac_dashdash$ac_option in
1337 --)
1338 ac_dashdash=yes ;;
1339
1340 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1341 ac_prev=bindir ;;
1342 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1343 bindir=$ac_optarg ;;
1344
1345 -build | --build | --buil | --bui | --bu)
1346 ac_prev=build_alias ;;
1347 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1348 build_alias=$ac_optarg ;;
1349
1350 -cache-file | --cache-file | --cache-fil | --cache-fi \
1351 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1352 ac_prev=cache_file ;;
1353 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1354 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1355 cache_file=$ac_optarg ;;
1356
1357 --config-cache | -C)
1358 cache_file=config.cache ;;
1359
1360 -datadir | --datadir | --datadi | --datad)
1361 ac_prev=datadir ;;
1362 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1363 datadir=$ac_optarg ;;
1364
1365 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1366 | --dataroo | --dataro | --datar)
1367 ac_prev=datarootdir ;;
1368 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1369 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1370 datarootdir=$ac_optarg ;;
1371
1372 -disable-* | --disable-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error $? "invalid feature name: '$ac_useropt'"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1380 *"
1381 "enable_$ac_useropt"
1382 "*) ;;
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1385 esac
1386 eval enable_$ac_useropt=no ;;
1387
1388 -docdir | --docdir | --docdi | --doc | --do)
1389 ac_prev=docdir ;;
1390 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1391 docdir=$ac_optarg ;;
1392
1393 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1394 ac_prev=dvidir ;;
1395 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1396 dvidir=$ac_optarg ;;
1397
1398 -enable-* | --enable-*)
1399 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1402 as_fn_error $? "invalid feature name: '$ac_useropt'"
1403 ac_useropt_orig=$ac_useropt
1404 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1405 case $ac_user_opts in
1406 *"
1407 "enable_$ac_useropt"
1408 "*) ;;
1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1410 ac_unrecognized_sep=', ';;
1411 esac
1412 eval enable_$ac_useropt=\$ac_optarg ;;
1413
1414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1416 | --exec | --exe | --ex)
1417 ac_prev=exec_prefix ;;
1418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1420 | --exec=* | --exe=* | --ex=*)
1421 exec_prefix=$ac_optarg ;;
1422
1423 -gas | --gas | --ga | --g)
1424 # Obsolete; use --with-gas.
1425 with_gas=yes ;;
1426
1427 -help | --help | --hel | --he | -h)
1428 ac_init_help=long ;;
1429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1430 ac_init_help=recursive ;;
1431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1432 ac_init_help=short ;;
1433
1434 -host | --host | --hos | --ho)
1435 ac_prev=host_alias ;;
1436 -host=* | --host=* | --hos=* | --ho=*)
1437 host_alias=$ac_optarg ;;
1438
1439 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1440 ac_prev=htmldir ;;
1441 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1442 | --ht=*)
1443 htmldir=$ac_optarg ;;
1444
1445 -includedir | --includedir | --includedi | --included | --include \
1446 | --includ | --inclu | --incl | --inc)
1447 ac_prev=includedir ;;
1448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1449 | --includ=* | --inclu=* | --incl=* | --inc=*)
1450 includedir=$ac_optarg ;;
1451
1452 -infodir | --infodir | --infodi | --infod | --info | --inf)
1453 ac_prev=infodir ;;
1454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1455 infodir=$ac_optarg ;;
1456
1457 -libdir | --libdir | --libdi | --libd)
1458 ac_prev=libdir ;;
1459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1460 libdir=$ac_optarg ;;
1461
1462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1463 | --libexe | --libex | --libe)
1464 ac_prev=libexecdir ;;
1465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1466 | --libexe=* | --libex=* | --libe=*)
1467 libexecdir=$ac_optarg ;;
1468
1469 -localedir | --localedir | --localedi | --localed | --locale)
1470 ac_prev=localedir ;;
1471 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1472 localedir=$ac_optarg ;;
1473
1474 -localstatedir | --localstatedir | --localstatedi | --localstated \
1475 | --localstate | --localstat | --localsta | --localst | --locals)
1476 ac_prev=localstatedir ;;
1477 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1478 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1479 localstatedir=$ac_optarg ;;
1480
1481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1482 ac_prev=mandir ;;
1483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1484 mandir=$ac_optarg ;;
1485
1486 -nfp | --nfp | --nf)
1487 # Obsolete; use --without-fp.
1488 with_fp=no ;;
1489
1490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1491 | --no-cr | --no-c | -n)
1492 no_create=yes ;;
1493
1494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1496 no_recursion=yes ;;
1497
1498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1500 | --oldin | --oldi | --old | --ol | --o)
1501 ac_prev=oldincludedir ;;
1502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1505 oldincludedir=$ac_optarg ;;
1506
1507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1508 ac_prev=prefix ;;
1509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1510 prefix=$ac_optarg ;;
1511
1512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1513 | --program-pre | --program-pr | --program-p)
1514 ac_prev=program_prefix ;;
1515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1517 program_prefix=$ac_optarg ;;
1518
1519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1520 | --program-suf | --program-su | --program-s)
1521 ac_prev=program_suffix ;;
1522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1524 program_suffix=$ac_optarg ;;
1525
1526 -program-transform-name | --program-transform-name \
1527 | --program-transform-nam | --program-transform-na \
1528 | --program-transform-n | --program-transform- \
1529 | --program-transform | --program-transfor \
1530 | --program-transfo | --program-transf \
1531 | --program-trans | --program-tran \
1532 | --progr-tra | --program-tr | --program-t)
1533 ac_prev=program_transform_name ;;
1534 -program-transform-name=* | --program-transform-name=* \
1535 | --program-transform-nam=* | --program-transform-na=* \
1536 | --program-transform-n=* | --program-transform-=* \
1537 | --program-transform=* | --program-transfor=* \
1538 | --program-transfo=* | --program-transf=* \
1539 | --program-trans=* | --program-tran=* \
1540 | --progr-tra=* | --program-tr=* | --program-t=*)
1541 program_transform_name=$ac_optarg ;;
1542
1543 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1544 ac_prev=pdfdir ;;
1545 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1546 pdfdir=$ac_optarg ;;
1547
1548 -psdir | --psdir | --psdi | --psd | --ps)
1549 ac_prev=psdir ;;
1550 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1551 psdir=$ac_optarg ;;
1552
1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554 | -silent | --silent | --silen | --sile | --sil)
1555 silent=yes ;;
1556
1557 -runstatedir | --runstatedir | --runstatedi | --runstated \
1558 | --runstate | --runstat | --runsta | --runst | --runs \
1559 | --run | --ru | --r)
1560 ac_prev=runstatedir ;;
1561 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1562 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1563 | --run=* | --ru=* | --r=*)
1564 runstatedir=$ac_optarg ;;
1565
1566 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1567 ac_prev=sbindir ;;
1568 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1569 | --sbi=* | --sb=*)
1570 sbindir=$ac_optarg ;;
1571
1572 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1573 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1574 | --sharedst | --shareds | --shared | --share | --shar \
1575 | --sha | --sh)
1576 ac_prev=sharedstatedir ;;
1577 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1578 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1579 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1580 | --sha=* | --sh=*)
1581 sharedstatedir=$ac_optarg ;;
1582
1583 -site | --site | --sit)
1584 ac_prev=site ;;
1585 -site=* | --site=* | --sit=*)
1586 site=$ac_optarg ;;
1587
1588 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1589 ac_prev=srcdir ;;
1590 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1591 srcdir=$ac_optarg ;;
1592
1593 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1594 | --syscon | --sysco | --sysc | --sys | --sy)
1595 ac_prev=sysconfdir ;;
1596 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1597 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1598 sysconfdir=$ac_optarg ;;
1599
1600 -target | --target | --targe | --targ | --tar | --ta | --t)
1601 ac_prev=target_alias ;;
1602 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1603 target_alias=$ac_optarg ;;
1604
1605 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1606 verbose=yes ;;
1607
1608 -version | --version | --versio | --versi | --vers | -V)
1609 ac_init_version=: ;;
1610
1611 -with-* | --with-*)
1612 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1613 # Reject names that are not valid shell variable names.
1614 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1615 as_fn_error $? "invalid package name: '$ac_useropt'"
1616 ac_useropt_orig=$ac_useropt
1617 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1618 case $ac_user_opts in
1619 *"
1620 "with_$ac_useropt"
1621 "*) ;;
1622 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1623 ac_unrecognized_sep=', ';;
1624 esac
1625 eval with_$ac_useropt=\$ac_optarg ;;
1626
1627 -without-* | --without-*)
1628 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1629 # Reject names that are not valid shell variable names.
1630 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1631 as_fn_error $? "invalid package name: '$ac_useropt'"
1632 ac_useropt_orig=$ac_useropt
1633 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1634 case $ac_user_opts in
1635 *"
1636 "with_$ac_useropt"
1637 "*) ;;
1638 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1639 ac_unrecognized_sep=', ';;
1640 esac
1641 eval with_$ac_useropt=no ;;
1642
1643 --x)
1644 # Obsolete; use --with-x.
1645 with_x=yes ;;
1646
1647 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1648 | --x-incl | --x-inc | --x-in | --x-i)
1649 ac_prev=x_includes ;;
1650 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1651 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1652 x_includes=$ac_optarg ;;
1653
1654 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1655 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1656 ac_prev=x_libraries ;;
1657 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1658 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1659 x_libraries=$ac_optarg ;;
1660
1661 -*) as_fn_error $? "unrecognized option: '$ac_option'
1662 Try '$0 --help' for more information"
1663 ;;
1664
1665 *=*)
1666 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1667 # Reject names that are not valid shell variable names.
1668 case $ac_envvar in #(
1669 '' | [0-9]* | *[!_$as_cr_alnum]* )
1670 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1671 esac
1672 eval $ac_envvar=\$ac_optarg
1673 export $ac_envvar ;;
1674
1675 *)
1676 # FIXME: should be removed in autoconf 3.0.
1677 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1678 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1679 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1680 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1681 ;;
1682
1683 esac
1684 done
1685
1686 if test -n "$ac_prev"; then
1687 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1688 as_fn_error $? "missing argument to $ac_option"
1689 fi
1690
1691 if test -n "$ac_unrecognized_opts"; then
1692 case $enable_option_checking in
1693 no) ;;
1694 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1695 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1696 esac
1697 fi
1698
1699 # Check all directory arguments for consistency.
1700 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1701 datadir sysconfdir sharedstatedir localstatedir includedir \
1702 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1703 libdir localedir mandir runstatedir
1704 do
1705 eval ac_val=\$$ac_var
1706 # Remove trailing slashes.
1707 case $ac_val in
1708 */ )
1709 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1710 eval $ac_var=\$ac_val;;
1711 esac
1712 # Be sure to have absolute directory names.
1713 case $ac_val in
1714 [\\/$]* | ?:[\\/]* ) continue;;
1715 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1716 esac
1717 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1718 done
1719
1720 # There might be people who depend on the old broken behavior: '$host'
1721 # used to hold the argument of --host etc.
1722 # FIXME: To remove some day.
1723 build=$build_alias
1724 host=$host_alias
1725 target=$target_alias
1726
1727 # FIXME: To remove some day.
1728 if test "x$host_alias" != x; then
1729 if test "x$build_alias" = x; then
1730 cross_compiling=maybe
1731 elif test "x$build_alias" != "x$host_alias"; then
1732 cross_compiling=yes
1733 fi
1734 fi
1735
1736 ac_tool_prefix=
1737 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1738
1739 test "$silent" = yes && exec 6>/dev/null
1740
1741
1742 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1743 ac_ls_di=`ls -di .` &&
1744 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1745 as_fn_error $? "working directory cannot be determined"
1746 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1747 as_fn_error $? "pwd does not report name of working directory"
1748
1749
1750 # Find the source files, if location was not specified.
1751 if test -z "$srcdir"; then
1752 ac_srcdir_defaulted=yes
1753 # Try the directory containing this script, then the parent directory.
1754 ac_confdir=`$as_dirname -- "$as_myself" ||
1755 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1756 X"$as_myself" : 'X\(//\)[^/]' \| \
1757 X"$as_myself" : 'X\(//\)$' \| \
1758 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1759 printf "%s\n" X"$as_myself" |
1760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1761 s//\1/
1762 q
1763 }
1764 /^X\(\/\/\)[^/].*/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\/\)$/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\).*/{
1773 s//\1/
1774 q
1775 }
1776 s/.*/./; q'`
1777 srcdir=$ac_confdir
1778 if test ! -r "$srcdir/$ac_unique_file"; then
1779 srcdir=..
1780 fi
1781 else
1782 ac_srcdir_defaulted=no
1783 fi
1784 if test ! -r "$srcdir/$ac_unique_file"; then
1785 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1786 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1787 fi
1788 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1789 ac_abs_confdir=`(
1790 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1791 pwd)`
1792 # When building in place, set srcdir=.
1793 if test "$ac_abs_confdir" = "$ac_pwd"; then
1794 srcdir=.
1795 fi
1796 # Remove unnecessary trailing slashes from srcdir.
1797 # Double slashes in file names in object file debugging info
1798 # mess up M-x gdb in Emacs.
1799 case $srcdir in
1800 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1801 esac
1802 for ac_var in $ac_precious_vars; do
1803 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1804 eval ac_env_${ac_var}_value=\$${ac_var}
1805 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1806 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1807 done
1808
1809 #
1810 # Report the --help message.
1811 #
1812 if test "$ac_init_help" = "long"; then
1813 # Omit some internal or obsolete options to make the list less imposing.
1814 # This message is too long to be a string in the A/UX 3.1 sh.
1815 cat <<_ACEOF
1816 'configure' configures Valgrind 3.25.1 to adapt to many kinds of systems.
1817
1818 Usage: $0 [OPTION]... [VAR=VALUE]...
1819
1820 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1821 VAR=VALUE. See below for descriptions of some of the useful variables.
1822
1823 Defaults for the options are specified in brackets.
1824
1825 Configuration:
1826 -h, --help display this help and exit
1827 --help=short display options specific to this package
1828 --help=recursive display the short help of all the included packages
1829 -V, --version display version information and exit
1830 -q, --quiet, --silent do not print 'checking ...' messages
1831 --cache-file=FILE cache test results in FILE [disabled]
1832 -C, --config-cache alias for '--cache-file=config.cache'
1833 -n, --no-create do not create output files
1834 --srcdir=DIR find the sources in DIR [configure dir or '..']
1835
1836 Installation directories:
1837 --prefix=PREFIX install architecture-independent files in PREFIX
1838 [$ac_default_prefix]
1839 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1840 [PREFIX]
1841
1842 By default, 'make install' will install all the files in
1843 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1844 an installation prefix other than '$ac_default_prefix' using '--prefix',
1845 for instance '--prefix=\$HOME'.
1846
1847 For better control, use the options below.
1848
1849 Fine tuning of the installation directories:
1850 --bindir=DIR user executables [EPREFIX/bin]
1851 --sbindir=DIR system admin executables [EPREFIX/sbin]
1852 --libexecdir=DIR program executables [EPREFIX/libexec]
1853 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1854 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1855 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1856 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1857 --libdir=DIR object code libraries [EPREFIX/lib]
1858 --includedir=DIR C header files [PREFIX/include]
1859 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1860 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1861 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1862 --infodir=DIR info documentation [DATAROOTDIR/info]
1863 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1864 --mandir=DIR man documentation [DATAROOTDIR/man]
1865 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1866 --htmldir=DIR html documentation [DOCDIR]
1867 --dvidir=DIR dvi documentation [DOCDIR]
1868 --pdfdir=DIR pdf documentation [DOCDIR]
1869 --psdir=DIR ps documentation [DOCDIR]
1870 _ACEOF
1871
1872 cat <<\_ACEOF
1873
1874 Program names:
1875 --program-prefix=PREFIX prepend PREFIX to installed program names
1876 --program-suffix=SUFFIX append SUFFIX to installed program names
1877 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1878
1879 System types:
1880 --build=BUILD configure for building on BUILD [guessed]
1881 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1882 _ACEOF
1883 fi
1884
1885 if test -n "$ac_init_help"; then
1886 case $ac_init_help in
1887 short | recursive ) echo "Configuration of Valgrind 3.25.1:";;
1888 esac
1889 cat <<\_ACEOF
1890
1891 Optional Features:
1892 --disable-option-checking ignore unrecognized --enable/--with options
1893 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1894 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1895 --enable-silent-rules less verbose build output (undo: "make V=1")
1896 --disable-silent-rules verbose build output (undo: "make V=0")
1897 --enable-maintainer-mode
1898 enable make rules and dependencies not useful (and
1899 sometimes confusing) to the casual installer
1900 --enable-dependency-tracking
1901 do not reject slow dependency extractors
1902 --disable-dependency-tracking
1903 speeds up one-time build
1904 --enable-only64bit do a 64-bit only build
1905 --enable-only32bit do a 32-bit only build
1906 --enable-inner enables self-hosting
1907 --enable-ubsan enables the undefined behaviour sanitiser
1908 --enable-lto enables building with link time optimisation
1909 --enable-tls platform supports TLS
1910
1911 Optional Packages:
1912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1914 --with-tmpdir=PATH Specify path for temporary files
1915 --with-xcode-path=PATH Specify path for xcode sdk includes
1916 --with-gdbscripts-dir=PATH Specify path to install gdb scripts
1917 --with-mpicc= Specify name of MPI2-ised C compiler
1918
1919 Some influential environment variables:
1920 CC C compiler command
1921 CFLAGS C compiler flags
1922 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1923 nonstandard directory <lib dir>
1924 LIBS libraries to pass to the linker, e.g. -l<library>
1925 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1926 you have headers in a nonstandard directory <include dir>
1927 CPP C preprocessor
1928 CXX C++ compiler command
1929 CXXFLAGS C++ compiler flags
1930 LTO_RANLIB Library indexer command for link time optimisation
1931 SHA256SUM
1932 AR Archiver command
1933 LTO_AR Archiver command for link time optimisation
1934 CCAS assembler compiler command (defaults to CC)
1935 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1936
1937 Use these variables to override the choices made by 'configure' or to help
1938 it to find libraries and programs with nonstandard names/locations.
1939
1940 Report bugs to <[email protected]>.
1941 _ACEOF
1942 ac_status=$?
1943 fi
1944
1945 if test "$ac_init_help" = "recursive"; then
1946 # If there are subdirs, report their specific --help.
1947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1948 test -d "$ac_dir" ||
1949 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1950 continue
1951 ac_builddir=.
1952
1953 case "$ac_dir" in
1954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955 *)
1956 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1957 # A ".." for each directory in $ac_dir_suffix.
1958 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1959 case $ac_top_builddir_sub in
1960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1962 esac ;;
1963 esac
1964 ac_abs_top_builddir=$ac_pwd
1965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1966 # for backward compatibility:
1967 ac_top_builddir=$ac_top_build_prefix
1968
1969 case $srcdir in
1970 .) # We are building in place.
1971 ac_srcdir=.
1972 ac_top_srcdir=$ac_top_builddir_sub
1973 ac_abs_top_srcdir=$ac_pwd ;;
1974 [\\/]* | ?:[\\/]* ) # Absolute name.
1975 ac_srcdir=$srcdir$ac_dir_suffix;
1976 ac_top_srcdir=$srcdir
1977 ac_abs_top_srcdir=$srcdir ;;
1978 *) # Relative name.
1979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1980 ac_top_srcdir=$ac_top_build_prefix$srcdir
1981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1982 esac
1983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1984
1985 cd "$ac_dir" || { ac_status=$?; continue; }
1986 # Check for configure.gnu first; this name is used for a wrapper for
1987 # Metaconfig's "Configure" on case-insensitive file systems.
1988 if test -f "$ac_srcdir/configure.gnu"; then
1989 echo &&
1990 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1991 elif test -f "$ac_srcdir/configure"; then
1992 echo &&
1993 $SHELL "$ac_srcdir/configure" --help=recursive
1994 else
1995 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1996 fi || ac_status=$?
1997 cd "$ac_pwd" || { ac_status=$?; break; }
1998 done
1999 fi
2000
2001 test -n "$ac_init_help" && exit $ac_status
2002 if $ac_init_version; then
2003 cat <<\_ACEOF
2004 Valgrind configure 3.25.1
2005 generated by GNU Autoconf 2.72
2006
2007 Copyright (C) 2023 Free Software Foundation, Inc.
2008 This configure script is free software; the Free Software Foundation
2009 gives unlimited permission to copy, distribute and modify it.
2010 _ACEOF
2011 exit
2012 fi
2013
2014 ## ------------------------ ##
2015 ## Autoconf initialization. ##
2016 ## ------------------------ ##
2017
2018 # ac_fn_c_try_compile LINENO
2019 # --------------------------
2020 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2021 ac_fn_c_try_compile ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 rm -f conftest.$ac_objext conftest.beam
2025 if { { ac_try="$ac_compile"
2026 case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 printf "%s\n" "$ac_try_echo"; } >&5
2032 (eval "$ac_compile") 2>conftest.err
2033 ac_status=$?
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2038 fi
2039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } && {
2041 test -z "$ac_c_werror_flag" ||
2042 test ! -s conftest.err
2043 } && test -s conftest.$ac_objext
2044 then :
2045 ac_retval=0
2046 else case e in #(
2047 e) printf "%s\n" "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_retval=1 ;;
2051 esac
2052 fi
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 as_fn_set_status $ac_retval
2055
2056 } # ac_fn_c_try_compile
2057
2058 # ac_fn_c_try_cpp LINENO
2059 # ----------------------
2060 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2061 ac_fn_c_try_cpp ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if { { ac_try="$ac_cpp conftest.$ac_ext"
2065 case "(($ac_try" in
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 printf "%s\n" "$ac_try_echo"; } >&5
2071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2072 ac_status=$?
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2077 fi
2078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } > conftest.i && {
2080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2081 test ! -s conftest.err
2082 }
2083 then :
2084 ac_retval=0
2085 else case e in #(
2086 e) printf "%s\n" "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089 ac_retval=1 ;;
2090 esac
2091 fi
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2094
2095 } # ac_fn_c_try_cpp
2096
2097 # ac_fn_cxx_try_compile LINENO
2098 # ----------------------------
2099 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_compile ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 rm -f conftest.$ac_objext conftest.beam
2104 if { { ac_try="$ac_compile"
2105 case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 printf "%s\n" "$ac_try_echo"; } >&5
2111 (eval "$ac_compile") 2>conftest.err
2112 ac_status=$?
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2117 fi
2118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } && {
2120 test -z "$ac_cxx_werror_flag" ||
2121 test ! -s conftest.err
2122 } && test -s conftest.$ac_objext
2123 then :
2124 ac_retval=0
2125 else case e in #(
2126 e) printf "%s\n" "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 ac_retval=1 ;;
2130 esac
2131 fi
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status $ac_retval
2134
2135 } # ac_fn_cxx_try_compile
2136
2137 # ac_fn_c_try_link LINENO
2138 # -----------------------
2139 # Try to link conftest.$ac_ext, and return whether this succeeded.
2140 ac_fn_c_try_link ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2144 if { { ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 printf "%s\n" "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_c_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest$ac_exeext && {
2163 test "$cross_compiling" = yes ||
2164 test -x conftest$ac_exeext
2165 }
2166 then :
2167 ac_retval=0
2168 else case e in #(
2169 e) printf "%s\n" "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 ac_retval=1 ;;
2173 esac
2174 fi
2175 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2176 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2177 # interfere with the next link command; also delete a directory that is
2178 # left behind by Apple's compiler. We do this before executing the actions.
2179 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 as_fn_set_status $ac_retval
2182
2183 } # ac_fn_c_try_link
2184
2185 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2186 # -------------------------------------------------------
2187 # Tests whether HEADER exists and can be compiled using the include files in
2188 # INCLUDES, setting the cache variable VAR accordingly.
2189 ac_fn_c_check_header_compile ()
2190 {
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 printf %s "checking for $2... " >&6; }
2194 if eval test \${$3+y}
2195 then :
2196 printf %s "(cached) " >&6
2197 else case e in #(
2198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 #include <$2>
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"
2204 then :
2205 eval "$3=yes"
2206 else case e in #(
2207 e) eval "$3=no" ;;
2208 esac
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2211 esac
2212 fi
2213 eval ac_res=\$$3
2214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 printf "%s\n" "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218 } # ac_fn_c_check_header_compile
2219
2220 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2221 # -------------------------------------------
2222 # Tests whether TYPE exists after having included INCLUDES, setting cache
2223 # variable VAR accordingly.
2224 ac_fn_c_check_type ()
2225 {
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 printf %s "checking for $2... " >&6; }
2229 if eval test \${$3+y}
2230 then :
2231 printf %s "(cached) " >&6
2232 else case e in #(
2233 e) eval "$3=no"
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2236 $4
2237 int
2238 main (void)
2239 {
2240 if (sizeof ($2))
2241 return 0;
2242 ;
2243 return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"
2247 then :
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 int
2252 main (void)
2253 {
2254 if (sizeof (($2)))
2255 return 0;
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"
2261 then :
2262
2263 else case e in #(
2264 e) eval "$3=yes" ;;
2265 esac
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2270 esac
2271 fi
2272 eval ac_res=\$$3
2273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 printf "%s\n" "$ac_res" >&6; }
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277 } # ac_fn_c_check_type
2278
2279 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2280 # ----------------------------------------------------
2281 # Tries to find if the field MEMBER exists in type AGGR, after including
2282 # INCLUDES, setting cache variable VAR accordingly.
2283 ac_fn_c_check_member ()
2284 {
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2287 printf %s "checking for $2.$3... " >&6; }
2288 if eval test \${$4+y}
2289 then :
2290 printf %s "(cached) " >&6
2291 else case e in #(
2292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $5
2295 int
2296 main (void)
2297 {
2298 static $2 ac_aggr;
2299 if (ac_aggr.$3)
2300 return 0;
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"
2306 then :
2307 eval "$4=yes"
2308 else case e in #(
2309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $5
2312 int
2313 main (void)
2314 {
2315 static $2 ac_aggr;
2316 if (sizeof ac_aggr.$3)
2317 return 0;
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"
2323 then :
2324 eval "$4=yes"
2325 else case e in #(
2326 e) eval "$4=no" ;;
2327 esac
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2333 esac
2334 fi
2335 eval ac_res=\$$4
2336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 printf "%s\n" "$ac_res" >&6; }
2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339
2340 } # ac_fn_c_check_member
2341
2342 # ac_fn_c_try_run LINENO
2343 # ----------------------
2344 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2345 # executables *can* be run.
2346 ac_fn_c_try_run ()
2347 {
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 if { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 printf "%s\n" "$ac_try_echo"; } >&5
2356 (eval "$ac_link") 2>&5
2357 ac_status=$?
2358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2360 { { case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 printf "%s\n" "$ac_try_echo"; } >&5
2366 (eval "$ac_try") 2>&5
2367 ac_status=$?
2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; }; }
2370 then :
2371 ac_retval=0
2372 else case e in #(
2373 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2374 printf "%s\n" "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 ac_retval=$ac_status ;;
2378 esac
2379 fi
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 as_fn_set_status $ac_retval
2383
2384 } # ac_fn_c_try_run
2385
2386 # ac_fn_c_check_func LINENO FUNC VAR
2387 # ----------------------------------
2388 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2389 ac_fn_c_check_func ()
2390 {
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2393 printf %s "checking for $2... " >&6; }
2394 if eval test \${$3+y}
2395 then :
2396 printf %s "(cached) " >&6
2397 else case e in #(
2398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2402 #define $2 innocuous_$2
2403
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char $2 (void); below. */
2406
2407 #include <limits.h>
2408 #undef $2
2409
2410 /* Override any GCC internal prototype to avoid an error.
2411 Use char because int might match the return type of a GCC
2412 builtin and then its argument prototype would still apply. */
2413 #ifdef __cplusplus
2414 extern "C"
2415 #endif
2416 char $2 (void);
2417 /* The GNU C library defines this for functions which it implements
2418 to always fail with ENOSYS. Some functions are actually named
2419 something starting with __ and the normal name is an alias. */
2420 #if defined __stub_$2 || defined __stub___$2
2421 choke me
2422 #endif
2423
2424 int
2425 main (void)
2426 {
2427 return $2 ();
2428 ;
2429 return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_link "$LINENO"
2433 then :
2434 eval "$3=yes"
2435 else case e in #(
2436 e) eval "$3=no" ;;
2437 esac
2438 fi
2439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2440 conftest$ac_exeext conftest.$ac_ext ;;
2441 esac
2442 fi
2443 eval ac_res=\$$3
2444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 printf "%s\n" "$ac_res" >&6; }
2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447
2448 } # ac_fn_c_check_func
2449
2450 # ac_fn_cxx_try_link LINENO
2451 # -------------------------
2452 # Try to link conftest.$ac_ext, and return whether this succeeded.
2453 ac_fn_cxx_try_link ()
2454 {
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2457 if { { ac_try="$ac_link"
2458 case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461 esac
2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463 printf "%s\n" "$ac_try_echo"; } >&5
2464 (eval "$ac_link") 2>conftest.err
2465 ac_status=$?
2466 if test -s conftest.err; then
2467 grep -v '^ *+' conftest.err >conftest.er1
2468 cat conftest.er1 >&5
2469 mv -f conftest.er1 conftest.err
2470 fi
2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2472 test $ac_status = 0; } && {
2473 test -z "$ac_cxx_werror_flag" ||
2474 test ! -s conftest.err
2475 } && test -s conftest$ac_exeext && {
2476 test "$cross_compiling" = yes ||
2477 test -x conftest$ac_exeext
2478 }
2479 then :
2480 ac_retval=0
2481 else case e in #(
2482 e) printf "%s\n" "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 ac_retval=1 ;;
2486 esac
2487 fi
2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2490 # interfere with the next link command; also delete a directory that is
2491 # left behind by Apple's compiler. We do this before executing the actions.
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 as_fn_set_status $ac_retval
2495
2496 } # ac_fn_cxx_try_link
2497 ac_configure_args_raw=
2498 for ac_arg
2499 do
2500 case $ac_arg in
2501 *\'*)
2502 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2503 esac
2504 as_fn_append ac_configure_args_raw " '$ac_arg'"
2505 done
2506
2507 case $ac_configure_args_raw in
2508 *$as_nl*)
2509 ac_safe_unquote= ;;
2510 *)
2511 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2512 ac_unsafe_a="$ac_unsafe_z#~"
2513 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2514 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2515 esac
2516
2517 cat >config.log <<_ACEOF
2518 This file contains any messages produced by compilers while
2519 running configure, to aid debugging if configure makes a mistake.
2520
2521 It was created by Valgrind $as_me 3.25.1, which was
2522 generated by GNU Autoconf 2.72. Invocation command line was
2523
2524 $ $0$ac_configure_args_raw
2525
2526 _ACEOF
2527 exec 5>>config.log
2528 {
2529 cat <<_ASUNAME
2530 ## --------- ##
2531 ## Platform. ##
2532 ## --------- ##
2533
2534 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2535 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2536 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2537 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2538 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2539
2540 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2541 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2542
2543 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2544 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2545 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2546 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2547 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2548 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2549 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2550
2551 _ASUNAME
2552
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556 IFS=$as_save_IFS
2557 case $as_dir in #(((
2558 '') as_dir=./ ;;
2559 */) ;;
2560 *) as_dir=$as_dir/ ;;
2561 esac
2562 printf "%s\n" "PATH: $as_dir"
2563 done
2564 IFS=$as_save_IFS
2565
2566 } >&5
2567
2568 cat >&5 <<_ACEOF
2569
2570
2571 ## ----------- ##
2572 ## Core tests. ##
2573 ## ----------- ##
2574
2575 _ACEOF
2576
2577
2578 # Keep a trace of the command line.
2579 # Strip out --no-create and --no-recursion so they do not pile up.
2580 # Strip out --silent because we don't want to record it for future runs.
2581 # Also quote any args containing shell meta-characters.
2582 # Make two passes to allow for proper duplicate-argument suppression.
2583 ac_configure_args=
2584 ac_configure_args0=
2585 ac_configure_args1=
2586 ac_must_keep_next=false
2587 for ac_pass in 1 2
2588 do
2589 for ac_arg
2590 do
2591 case $ac_arg in
2592 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2594 | -silent | --silent | --silen | --sile | --sil)
2595 continue ;;
2596 *\'*)
2597 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 esac
2599 case $ac_pass in
2600 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2601 2)
2602 as_fn_append ac_configure_args1 " '$ac_arg'"
2603 if test $ac_must_keep_next = true; then
2604 ac_must_keep_next=false # Got value, back to normal.
2605 else
2606 case $ac_arg in
2607 *=* | --config-cache | -C | -disable-* | --disable-* \
2608 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2609 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2610 | -with-* | --with-* | -without-* | --without-* | --x)
2611 case "$ac_configure_args0 " in
2612 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2613 esac
2614 ;;
2615 -* ) ac_must_keep_next=true ;;
2616 esac
2617 fi
2618 as_fn_append ac_configure_args " '$ac_arg'"
2619 ;;
2620 esac
2621 done
2622 done
2623 { ac_configure_args0=; unset ac_configure_args0;}
2624 { ac_configure_args1=; unset ac_configure_args1;}
2625
2626 # When interrupted or exit'd, cleanup temporary files, and complete
2627 # config.log. We remove comments because anyway the quotes in there
2628 # would cause problems or look ugly.
2629 # WARNING: Use '\'' to represent an apostrophe within the trap.
2630 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2631 trap 'exit_status=$?
2632 # Sanitize IFS.
2633 IFS=" "" $as_nl"
2634 # Save into config.log some information that might help in debugging.
2635 {
2636 echo
2637
2638 printf "%s\n" "## ---------------- ##
2639 ## Cache variables. ##
2640 ## ---------------- ##"
2641 echo
2642 # The following way of writing the cache mishandles newlines in values,
2643 (
2644 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2645 eval ac_val=\$$ac_var
2646 case $ac_val in #(
2647 *${as_nl}*)
2648 case $ac_var in #(
2649 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2650 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2651 esac
2652 case $ac_var in #(
2653 _ | IFS | as_nl) ;; #(
2654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2655 *) { eval $ac_var=; unset $ac_var;} ;;
2656 esac ;;
2657 esac
2658 done
2659 (set) 2>&1 |
2660 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2661 *${as_nl}ac_space=\ *)
2662 sed -n \
2663 "s/'\''/'\''\\\\'\'''\''/g;
2664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2665 ;; #(
2666 *)
2667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2668 ;;
2669 esac |
2670 sort
2671 )
2672 echo
2673
2674 printf "%s\n" "## ----------------- ##
2675 ## Output variables. ##
2676 ## ----------------- ##"
2677 echo
2678 for ac_var in $ac_subst_vars
2679 do
2680 eval ac_val=\$$ac_var
2681 case $ac_val in
2682 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2683 esac
2684 printf "%s\n" "$ac_var='\''$ac_val'\''"
2685 done | sort
2686 echo
2687
2688 if test -n "$ac_subst_files"; then
2689 printf "%s\n" "## ------------------- ##
2690 ## File substitutions. ##
2691 ## ------------------- ##"
2692 echo
2693 for ac_var in $ac_subst_files
2694 do
2695 eval ac_val=\$$ac_var
2696 case $ac_val in
2697 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2698 esac
2699 printf "%s\n" "$ac_var='\''$ac_val'\''"
2700 done | sort
2701 echo
2702 fi
2703
2704 if test -s confdefs.h; then
2705 printf "%s\n" "## ----------- ##
2706 ## confdefs.h. ##
2707 ## ----------- ##"
2708 echo
2709 cat confdefs.h
2710 echo
2711 fi
2712 test "$ac_signal" != 0 &&
2713 printf "%s\n" "$as_me: caught signal $ac_signal"
2714 printf "%s\n" "$as_me: exit $exit_status"
2715 } >&5
2716 rm -f core *.core core.conftest.* &&
2717 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2718 exit $exit_status
2719 ' 0
2720 for ac_signal in 1 2 13 15; do
2721 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2722 done
2723 ac_signal=0
2724
2725 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2726 rm -f -r conftest* confdefs.h
2727
2728 printf "%s\n" "/* confdefs.h */" > confdefs.h
2729
2730 # Predefined preprocessor variables.
2731
2732 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2733
2734 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2735
2736 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2737
2738 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2739
2740 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2741
2742 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2743
2744
2745 # Let the site file select an alternate cache file if it wants to.
2746 # Prefer an explicitly selected file to automatically selected ones.
2747 if test -n "$CONFIG_SITE"; then
2748 ac_site_files="$CONFIG_SITE"
2749 elif test "x$prefix" != xNONE; then
2750 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2751 else
2752 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2753 fi
2754
2755 for ac_site_file in $ac_site_files
2756 do
2757 case $ac_site_file in #(
2758 */*) :
2759 ;; #(
2760 *) :
2761 ac_site_file=./$ac_site_file ;;
2762 esac
2763 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2765 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2766 sed 's/^/| /' "$ac_site_file" >&5
2767 . "$ac_site_file" \
2768 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2769 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2770 as_fn_error $? "failed to load site script $ac_site_file
2771 See 'config.log' for more details" "$LINENO" 5; }
2772 fi
2773 done
2774
2775 if test -r "$cache_file"; then
2776 # Some versions of bash will fail to source /dev/null (special files
2777 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2778 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2780 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2781 case $cache_file in
2782 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2783 *) . "./$cache_file";;
2784 esac
2785 fi
2786 else
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2788 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2789 >$cache_file
2790 fi
2791
2792 # Test code for whether the C compiler supports C89 (global declarations)
2793 ac_c_conftest_c89_globals='
2794 /* Does the compiler advertise C89 conformance?
2795 Do not test the value of __STDC__, because some compilers set it to 0
2796 while being otherwise adequately conformant. */
2797 #if !defined __STDC__
2798 # error "Compiler does not advertise C89 conformance"
2799 #endif
2800
2801 #include <stddef.h>
2802 #include <stdarg.h>
2803 struct stat;
2804 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2805 struct buf { int x; };
2806 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2807 static char *e (char **p, int i)
2808 {
2809 return p[i];
2810 }
2811 static char *f (char * (*g) (char **, int), char **p, ...)
2812 {
2813 char *s;
2814 va_list v;
2815 va_start (v,p);
2816 s = g (p, va_arg (v,int));
2817 va_end (v);
2818 return s;
2819 }
2820
2821 /* C89 style stringification. */
2822 #define noexpand_stringify(a) #a
2823 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2824
2825 /* C89 style token pasting. Exercises some of the corner cases that
2826 e.g. old MSVC gets wrong, but not very hard. */
2827 #define noexpand_concat(a,b) a##b
2828 #define expand_concat(a,b) noexpand_concat(a,b)
2829 extern int vA;
2830 extern int vbee;
2831 #define aye A
2832 #define bee B
2833 int *pvA = &expand_concat(v,aye);
2834 int *pvbee = &noexpand_concat(v,bee);
2835
2836 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2837 function prototypes and stuff, but not \xHH hex character constants.
2838 These do not provoke an error unfortunately, instead are silently treated
2839 as an "x". The following induces an error, until -std is added to get
2840 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2841 array size at least. It is necessary to write \x00 == 0 to get something
2842 that is true only with -std. */
2843 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2844
2845 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2846 inside strings and character constants. */
2847 #define FOO(x) '\''x'\''
2848 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2849
2850 int test (int i, double x);
2851 struct s1 {int (*f) (int a);};
2852 struct s2 {int (*f) (double a);};
2853 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2854 int, int);'
2855
2856 # Test code for whether the C compiler supports C89 (body of main).
2857 ac_c_conftest_c89_main='
2858 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2859 '
2860
2861 # Test code for whether the C compiler supports C99 (global declarations)
2862 ac_c_conftest_c99_globals='
2863 /* Does the compiler advertise C99 conformance? */
2864 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2865 # error "Compiler does not advertise C99 conformance"
2866 #endif
2867
2868 // See if C++-style comments work.
2869
2870 #include <stdbool.h>
2871 extern int puts (const char *);
2872 extern int printf (const char *, ...);
2873 extern int dprintf (int, const char *, ...);
2874 extern void *malloc (size_t);
2875 extern void free (void *);
2876
2877 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2878 // dprintf is used instead of fprintf to avoid needing to declare
2879 // FILE and stderr.
2880 #define debug(...) dprintf (2, __VA_ARGS__)
2881 #define showlist(...) puts (#__VA_ARGS__)
2882 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2883 static void
2884 test_varargs_macros (void)
2885 {
2886 int x = 1234;
2887 int y = 5678;
2888 debug ("Flag");
2889 debug ("X = %d\n", x);
2890 showlist (The first, second, and third items.);
2891 report (x>y, "x is %d but y is %d", x, y);
2892 }
2893
2894 // Check long long types.
2895 #define BIG64 18446744073709551615ull
2896 #define BIG32 4294967295ul
2897 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2898 #if !BIG_OK
2899 #error "your preprocessor is broken"
2900 #endif
2901 #if BIG_OK
2902 #else
2903 #error "your preprocessor is broken"
2904 #endif
2905 static long long int bignum = -9223372036854775807LL;
2906 static unsigned long long int ubignum = BIG64;
2907
2908 struct incomplete_array
2909 {
2910 int datasize;
2911 double data[];
2912 };
2913
2914 struct named_init {
2915 int number;
2916 const wchar_t *name;
2917 double average;
2918 };
2919
2920 typedef const char *ccp;
2921
2922 static inline int
2923 test_restrict (ccp restrict text)
2924 {
2925 // Iterate through items via the restricted pointer.
2926 // Also check for declarations in for loops.
2927 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2928 continue;
2929 return 0;
2930 }
2931
2932 // Check varargs and va_copy.
2933 static bool
2934 test_varargs (const char *format, ...)
2935 {
2936 va_list args;
2937 va_start (args, format);
2938 va_list args_copy;
2939 va_copy (args_copy, args);
2940
2941 const char *str = "";
2942 int number = 0;
2943 float fnumber = 0;
2944
2945 while (*format)
2946 {
2947 switch (*format++)
2948 {
2949 case '\''s'\'': // string
2950 str = va_arg (args_copy, const char *);
2951 break;
2952 case '\''d'\'': // int
2953 number = va_arg (args_copy, int);
2954 break;
2955 case '\''f'\'': // float
2956 fnumber = va_arg (args_copy, double);
2957 break;
2958 default:
2959 break;
2960 }
2961 }
2962 va_end (args_copy);
2963 va_end (args);
2964
2965 return *str && number && fnumber;
2966 }
2967 '
2968
2969 # Test code for whether the C compiler supports C99 (body of main).
2970 ac_c_conftest_c99_main='
2971 // Check bool.
2972 _Bool success = false;
2973 success |= (argc != 0);
2974
2975 // Check restrict.
2976 if (test_restrict ("String literal") == 0)
2977 success = true;
2978 char *restrict newvar = "Another string";
2979
2980 // Check varargs.
2981 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2982 test_varargs_macros ();
2983
2984 // Check flexible array members.
2985 struct incomplete_array *ia =
2986 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2987 ia->datasize = 10;
2988 for (int i = 0; i < ia->datasize; ++i)
2989 ia->data[i] = i * 1.234;
2990 // Work around memory leak warnings.
2991 free (ia);
2992
2993 // Check named initializers.
2994 struct named_init ni = {
2995 .number = 34,
2996 .name = L"Test wide string",
2997 .average = 543.34343,
2998 };
2999
3000 ni.number = 58;
3001
3002 int dynamic_array[ni.number];
3003 dynamic_array[0] = argv[0][0];
3004 dynamic_array[ni.number - 1] = 543;
3005
3006 // work around unused variable warnings
3007 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3008 || dynamic_array[ni.number - 1] != 543);
3009 '
3010
3011 # Test code for whether the C compiler supports C11 (global declarations)
3012 ac_c_conftest_c11_globals='
3013 /* Does the compiler advertise C11 conformance? */
3014 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3015 # error "Compiler does not advertise C11 conformance"
3016 #endif
3017
3018 // Check _Alignas.
3019 char _Alignas (double) aligned_as_double;
3020 char _Alignas (0) no_special_alignment;
3021 extern char aligned_as_int;
3022 char _Alignas (0) _Alignas (int) aligned_as_int;
3023
3024 // Check _Alignof.
3025 enum
3026 {
3027 int_alignment = _Alignof (int),
3028 int_array_alignment = _Alignof (int[100]),
3029 char_alignment = _Alignof (char)
3030 };
3031 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3032
3033 // Check _Noreturn.
3034 int _Noreturn does_not_return (void) { for (;;) continue; }
3035
3036 // Check _Static_assert.
3037 struct test_static_assert
3038 {
3039 int x;
3040 _Static_assert (sizeof (int) <= sizeof (long int),
3041 "_Static_assert does not work in struct");
3042 long int y;
3043 };
3044
3045 // Check UTF-8 literals.
3046 #define u8 syntax error!
3047 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3048
3049 // Check duplicate typedefs.
3050 typedef long *long_ptr;
3051 typedef long int *long_ptr;
3052 typedef long_ptr long_ptr;
3053
3054 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3055 struct anonymous
3056 {
3057 union {
3058 struct { int i; int j; };
3059 struct { int k; long int l; } w;
3060 };
3061 int m;
3062 } v1;
3063 '
3064
3065 # Test code for whether the C compiler supports C11 (body of main).
3066 ac_c_conftest_c11_main='
3067 _Static_assert ((offsetof (struct anonymous, i)
3068 == offsetof (struct anonymous, w.k)),
3069 "Anonymous union alignment botch");
3070 v1.i = 2;
3071 v1.w.k = 5;
3072 ok |= v1.i != 5;
3073 '
3074
3075 # Test code for whether the C compiler supports C11 (complete).
3076 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3077 ${ac_c_conftest_c99_globals}
3078 ${ac_c_conftest_c11_globals}
3079
3080 int
3081 main (int argc, char **argv)
3082 {
3083 int ok = 0;
3084 ${ac_c_conftest_c89_main}
3085 ${ac_c_conftest_c99_main}
3086 ${ac_c_conftest_c11_main}
3087 return ok;
3088 }
3089 "
3090
3091 # Test code for whether the C compiler supports C99 (complete).
3092 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3093 ${ac_c_conftest_c99_globals}
3094
3095 int
3096 main (int argc, char **argv)
3097 {
3098 int ok = 0;
3099 ${ac_c_conftest_c89_main}
3100 ${ac_c_conftest_c99_main}
3101 return ok;
3102 }
3103 "
3104
3105 # Test code for whether the C compiler supports C89 (complete).
3106 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3107
3108 int
3109 main (int argc, char **argv)
3110 {
3111 int ok = 0;
3112 ${ac_c_conftest_c89_main}
3113 return ok;
3114 }
3115 "
3116
3117 # Test code for whether the C++ compiler supports C++98 (global declarations)
3118 ac_cxx_conftest_cxx98_globals='
3119 // Does the compiler advertise C++98 conformance?
3120 #if !defined __cplusplus || __cplusplus < 199711L
3121 # error "Compiler does not advertise C++98 conformance"
3122 #endif
3123
3124 // These inclusions are to reject old compilers that
3125 // lack the unsuffixed header files.
3126 #include <cstdlib>
3127 #include <exception>
3128
3129 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3130 extern void assert (int);
3131 namespace std {
3132 extern int strcmp (const char *, const char *);
3133 }
3134
3135 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3136 using std::exception;
3137 using std::strcmp;
3138
3139 namespace {
3140
3141 void test_exception_syntax()
3142 {
3143 try {
3144 throw "test";
3145 } catch (const char *s) {
3146 // Extra parentheses suppress a warning when building autoconf itself,
3147 // due to lint rules shared with more typical C programs.
3148 assert (!(strcmp) (s, "test"));
3149 }
3150 }
3151
3152 template <typename T> struct test_template
3153 {
3154 T const val;
3155 explicit test_template(T t) : val(t) {}
3156 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3157 };
3158
3159 } // anonymous namespace
3160 '
3161
3162 # Test code for whether the C++ compiler supports C++98 (body of main)
3163 ac_cxx_conftest_cxx98_main='
3164 assert (argc);
3165 assert (! argv[0]);
3166 {
3167 test_exception_syntax ();
3168 test_template<double> tt (2.0);
3169 assert (tt.add (4) == 6.0);
3170 assert (true && !false);
3171 }
3172 '
3173
3174 # Test code for whether the C++ compiler supports C++11 (global declarations)
3175 ac_cxx_conftest_cxx11_globals='
3176 // Does the compiler advertise C++ 2011 conformance?
3177 #if !defined __cplusplus || __cplusplus < 201103L
3178 # error "Compiler does not advertise C++11 conformance"
3179 #endif
3180
3181 namespace cxx11test
3182 {
3183 constexpr int get_val() { return 20; }
3184
3185 struct testinit
3186 {
3187 int i;
3188 double d;
3189 };
3190
3191 class delegate
3192 {
3193 public:
3194 delegate(int n) : n(n) {}
3195 delegate(): delegate(2354) {}
3196
3197 virtual int getval() { return this->n; };
3198 protected:
3199 int n;
3200 };
3201
3202 class overridden : public delegate
3203 {
3204 public:
3205 overridden(int n): delegate(n) {}
3206 virtual int getval() override final { return this->n * 2; }
3207 };
3208
3209 class nocopy
3210 {
3211 public:
3212 nocopy(int i): i(i) {}
3213 nocopy() = default;
3214 nocopy(const nocopy&) = delete;
3215 nocopy & operator=(const nocopy&) = delete;
3216 private:
3217 int i;
3218 };
3219
3220 // for testing lambda expressions
3221 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3222 {
3223 return f(v);
3224 }
3225
3226 // for testing variadic templates and trailing return types
3227 template <typename V> auto sum(V first) -> V
3228 {
3229 return first;
3230 }
3231 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3232 {
3233 return first + sum(rest...);
3234 }
3235 }
3236 '
3237
3238 # Test code for whether the C++ compiler supports C++11 (body of main)
3239 ac_cxx_conftest_cxx11_main='
3240 {
3241 // Test auto and decltype
3242 auto a1 = 6538;
3243 auto a2 = 48573953.4;
3244 auto a3 = "String literal";
3245
3246 int total = 0;
3247 for (auto i = a3; *i; ++i) { total += *i; }
3248
3249 decltype(a2) a4 = 34895.034;
3250 }
3251 {
3252 // Test constexpr
3253 short sa[cxx11test::get_val()] = { 0 };
3254 }
3255 {
3256 // Test initializer lists
3257 cxx11test::testinit il = { 4323, 435234.23544 };
3258 }
3259 {
3260 // Test range-based for
3261 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3262 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3263 for (auto &x : array) { x += 23; }
3264 }
3265 {
3266 // Test lambda expressions
3267 using cxx11test::eval;
3268 assert (eval ([](int x) { return x*2; }, 21) == 42);
3269 double d = 2.0;
3270 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3271 assert (d == 5.0);
3272 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3273 assert (d == 5.0);
3274 }
3275 {
3276 // Test use of variadic templates
3277 using cxx11test::sum;
3278 auto a = sum(1);
3279 auto b = sum(1, 2);
3280 auto c = sum(1.0, 2.0, 3.0);
3281 }
3282 {
3283 // Test constructor delegation
3284 cxx11test::delegate d1;
3285 cxx11test::delegate d2();
3286 cxx11test::delegate d3(45);
3287 }
3288 {
3289 // Test override and final
3290 cxx11test::overridden o1(55464);
3291 }
3292 {
3293 // Test nullptr
3294 char *c = nullptr;
3295 }
3296 {
3297 // Test template brackets
3298 test_template<::test_template<int>> v(test_template<int>(12));
3299 }
3300 {
3301 // Unicode literals
3302 char const *utf8 = u8"UTF-8 string \u2500";
3303 char16_t const *utf16 = u"UTF-8 string \u2500";
3304 char32_t const *utf32 = U"UTF-32 string \u2500";
3305 }
3306 '
3307
3308 # Test code for whether the C compiler supports C++11 (complete).
3309 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3310 ${ac_cxx_conftest_cxx11_globals}
3311
3312 int
3313 main (int argc, char **argv)
3314 {
3315 int ok = 0;
3316 ${ac_cxx_conftest_cxx98_main}
3317 ${ac_cxx_conftest_cxx11_main}
3318 return ok;
3319 }
3320 "
3321
3322 # Test code for whether the C compiler supports C++98 (complete).
3323 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3324 int
3325 main (int argc, char **argv)
3326 {
3327 int ok = 0;
3328 ${ac_cxx_conftest_cxx98_main}
3329 return ok;
3330 }
3331 "
3332
3333 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3334 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3335 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3336 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3337 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3338 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3339 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3340 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3341 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3342 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3343 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3344 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3345
3346 # Auxiliary files required by this configure script.
3347 ac_aux_files="config.guess config.sub compile missing install-sh"
3348
3349 # Locations in which to look for auxiliary files.
3350 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3351
3352 # Search for a directory containing all of the required auxiliary files,
3353 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3354 # If we don't find one directory that contains all the files we need,
3355 # we report the set of missing files from the *first* directory in
3356 # $ac_aux_dir_candidates and give up.
3357 ac_missing_aux_files=""
3358 ac_first_candidate=:
3359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 as_found=false
3362 for as_dir in $ac_aux_dir_candidates
3363 do
3364 IFS=$as_save_IFS
3365 case $as_dir in #(((
3366 '') as_dir=./ ;;
3367 */) ;;
3368 *) as_dir=$as_dir/ ;;
3369 esac
3370 as_found=:
3371
3372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3373 ac_aux_dir_found=yes
3374 ac_install_sh=
3375 for ac_aux in $ac_aux_files
3376 do
3377 # As a special case, if "install-sh" is required, that requirement
3378 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3379 # and $ac_install_sh is set appropriately for whichever one is found.
3380 if test x"$ac_aux" = x"install-sh"
3381 then
3382 if test -f "${as_dir}install-sh"; then
3383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3384 ac_install_sh="${as_dir}install-sh -c"
3385 elif test -f "${as_dir}install.sh"; then
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3387 ac_install_sh="${as_dir}install.sh -c"
3388 elif test -f "${as_dir}shtool"; then
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3390 ac_install_sh="${as_dir}shtool install -c"
3391 else
3392 ac_aux_dir_found=no
3393 if $ac_first_candidate; then
3394 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3395 else
3396 break
3397 fi
3398 fi
3399 else
3400 if test -f "${as_dir}${ac_aux}"; then
3401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3402 else
3403 ac_aux_dir_found=no
3404 if $ac_first_candidate; then
3405 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3406 else
3407 break
3408 fi
3409 fi
3410 fi
3411 done
3412 if test "$ac_aux_dir_found" = yes; then
3413 ac_aux_dir="$as_dir"
3414 break
3415 fi
3416 ac_first_candidate=false
3417
3418 as_found=false
3419 done
3420 IFS=$as_save_IFS
3421 if $as_found
3422 then :
3423
3424 else case e in #(
3425 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3426 esac
3427 fi
3428
3429
3430 # These three variables are undocumented and unsupported,
3431 # and are intended to be withdrawn in a future Autoconf release.
3432 # They can cause serious problems if a builder's source tree is in a directory
3433 # whose full name contains unusual characters.
3434 if test -f "${ac_aux_dir}config.guess"; then
3435 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3436 fi
3437 if test -f "${ac_aux_dir}config.sub"; then
3438 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3439 fi
3440 if test -f "$ac_aux_dir/configure"; then
3441 ac_configure="$SHELL ${ac_aux_dir}configure"
3442 fi
3443
3444 # Check that the precious variables saved in the cache have kept the same
3445 # value.
3446 ac_cache_corrupted=false
3447 for ac_var in $ac_precious_vars; do
3448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3449 eval ac_new_set=\$ac_env_${ac_var}_set
3450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3451 eval ac_new_val=\$ac_env_${ac_var}_value
3452 case $ac_old_set,$ac_new_set in
3453 set,)
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3455 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3456 ac_cache_corrupted=: ;;
3457 ,set)
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3459 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3460 ac_cache_corrupted=: ;;
3461 ,);;
3462 *)
3463 if test "x$ac_old_val" != "x$ac_new_val"; then
3464 # differences in whitespace do not lead to failure.
3465 ac_old_val_w=`echo x $ac_old_val`
3466 ac_new_val_w=`echo x $ac_new_val`
3467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3469 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3470 ac_cache_corrupted=:
3471 else
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3473 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3474 eval $ac_var=\$ac_old_val
3475 fi
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3477 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3479 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3480 fi;;
3481 esac
3482 # Pass precious variables to config.status.
3483 if test "$ac_new_set" = set; then
3484 case $ac_new_val in
3485 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3486 *) ac_arg=$ac_var=$ac_new_val ;;
3487 esac
3488 case " $ac_configure_args " in
3489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3491 esac
3492 fi
3493 done
3494 if $ac_cache_corrupted; then
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3496 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3498 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3499 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3500 and start over" "$LINENO" 5
3501 fi
3502 ## -------------------- ##
3503 ## Main body of script. ##
3504 ## -------------------- ##
3505
3506 ac_ext=c
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511
3512
3513
3514 # For valgrind.h
3515 VG_VER_MAJOR=3
3516
3517 VG_VER_MINOR=25
3518
3519
3520 # For docs/xml/vg-entities.xml
3521 VG_DATE="20 May 2025"
3522
3523
3524
3525 ac_config_headers="$ac_config_headers config.h"
3526
3527 am__api_version='1.17'
3528
3529
3530
3531 # Find a good install program. We prefer a C program (faster),
3532 # so one script is as good as another. But avoid the broken or
3533 # incompatible versions:
3534 # SysV /etc/install, /usr/sbin/install
3535 # SunOS /usr/etc/install
3536 # IRIX /sbin/install
3537 # AIX /bin/install
3538 # AmigaOS /C/install, which installs bootblocks on floppy discs
3539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3542 # OS/2's system install, which has a completely different semantic
3543 # ./install, which can be erroneously created by make from ./install.sh.
3544 # Reject install programs that cannot install multiple files.
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3546 printf %s "checking for a BSD-compatible install... " >&6; }
3547 if test -z "$INSTALL"; then
3548 if test ${ac_cv_path_install+y}
3549 then :
3550 printf %s "(cached) " >&6
3551 else case e in #(
3552 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555 IFS=$as_save_IFS
3556 case $as_dir in #(((
3557 '') as_dir=./ ;;
3558 */) ;;
3559 *) as_dir=$as_dir/ ;;
3560 esac
3561 # Account for fact that we put trailing slashes in our PATH walk.
3562 case $as_dir in #((
3563 ./ | /[cC]/* | \
3564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3565 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3566 /usr/ucb/* ) ;;
3567 *)
3568 # OSF1 and SCO ODT 3.0 have their own names for install.
3569 # Don't use installbsd from OSF since it installs stuff as root
3570 # by default.
3571 for ac_prog in ginstall scoinst install; do
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3574 if test $ac_prog = install &&
3575 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576 # AIX install. It has an incompatible calling convention.
3577 :
3578 elif test $ac_prog = install &&
3579 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3580 # program-specific install script used by HP pwplus--don't use.
3581 :
3582 else
3583 rm -rf conftest.one conftest.two conftest.dir
3584 echo one > conftest.one
3585 echo two > conftest.two
3586 mkdir conftest.dir
3587 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3588 test -s conftest.one && test -s conftest.two &&
3589 test -s conftest.dir/conftest.one &&
3590 test -s conftest.dir/conftest.two
3591 then
3592 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3593 break 3
3594 fi
3595 fi
3596 fi
3597 done
3598 done
3599 ;;
3600 esac
3601
3602 done
3603 IFS=$as_save_IFS
3604
3605 rm -rf conftest.one conftest.two conftest.dir
3606 ;;
3607 esac
3608 fi
3609 if test ${ac_cv_path_install+y}; then
3610 INSTALL=$ac_cv_path_install
3611 else
3612 # As a last resort, use the slow shell script. Don't cache a
3613 # value for INSTALL within a source directory, because that will
3614 # break other packages using the cache if that directory is
3615 # removed, or if the value is a relative name.
3616 INSTALL=$ac_install_sh
3617 fi
3618 fi
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3620 printf "%s\n" "$INSTALL" >&6; }
3621
3622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3623 # It thinks the first close brace ends the variable substitution.
3624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3625
3626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3627
3628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3629
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3631 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3632 if test ${am_cv_sleep_fractional_seconds+y}
3633 then :
3634 printf %s "(cached) " >&6
3635 else case e in #(
3636 e) if sleep 0.001 2>/dev/null
3637 then :
3638 am_cv_sleep_fractional_seconds=yes
3639 else case e in #(
3640 e) am_cv_sleep_fractional_seconds=no ;;
3641 esac
3642 fi
3643 ;;
3644 esac
3645 fi
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3647 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3648
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3650 printf %s "checking filesystem timestamp resolution... " >&6; }
3651 if test ${am_cv_filesystem_timestamp_resolution+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else case e in #(
3655 e) # Default to the worst case.
3656 am_cv_filesystem_timestamp_resolution=2
3657
3658 # Only try to go finer than 1 sec if sleep can do it.
3659 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3660 # - 1 sec is not much of a win compared to 2 sec, and
3661 # - it takes 2 seconds to perform the test whether 1 sec works.
3662 #
3663 # Instead, just use the default 2s on platforms that have 1s resolution,
3664 # accept the extra 1s delay when using $sleep in the Automake tests, in
3665 # exchange for not incurring the 2s delay for running the test for all
3666 # packages.
3667 #
3668 am_try_resolutions=
3669 if test "$am_cv_sleep_fractional_seconds" = yes; then
3670 # Even a millisecond often causes a bunch of false positives,
3671 # so just try a hundredth of a second. The time saved between .001 and
3672 # .01 is not terribly consequential.
3673 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3674 fi
3675
3676 # In order to catch current-generation FAT out, we must *modify* files
3677 # that already exist; the *creation* timestamp is finer. Use names
3678 # that make ls -t sort them differently when they have equal
3679 # timestamps than when they have distinct timestamps, keeping
3680 # in mind that ls -t prints the *newest* file first.
3681 rm -f conftest.ts?
3682 : > conftest.ts1
3683 : > conftest.ts2
3684 : > conftest.ts3
3685
3686 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3687 # clobber the current shell's arguments. (Outer-level square brackets
3688 # are removed by m4; they're present so that m4 does not expand
3689 # <dollar><star>; be careful, easy to get confused.)
3690 if (
3691 set X `ls -t conftest.ts[12]` &&
3692 {
3693 test "$*" != "X conftest.ts1 conftest.ts2" ||
3694 test "$*" != "X conftest.ts2 conftest.ts1";
3695 }
3696 ); then :; else
3697 # If neither matched, then we have a broken ls. This can happen
3698 # if, for instance, CONFIG_SHELL is bash and it inherits a
3699 # broken ls alias from the environment. This has actually
3700 # happened. Such a system could not be considered "sane".
3701 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3703 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3704 as_fn_error $? "ls -t produces unexpected output.
3705 Make sure there is not a broken ls alias in your environment.
3706 See 'config.log' for more details" "$LINENO" 5; }
3707 fi
3708
3709 for am_try_res in $am_try_resolutions; do
3710 # Any one fine-grained sleep might happen to cross the boundary
3711 # between two values of a coarser actual resolution, but if we do
3712 # two fine-grained sleeps in a row, at least one of them will fall
3713 # entirely within a coarse interval.
3714 echo alpha > conftest.ts1
3715 sleep $am_try_res
3716 echo beta > conftest.ts2
3717 sleep $am_try_res
3718 echo gamma > conftest.ts3
3719
3720 # We assume that 'ls -t' will make use of high-resolution
3721 # timestamps if the operating system supports them at all.
3722 if (set X `ls -t conftest.ts?` &&
3723 test "$2" = conftest.ts3 &&
3724 test "$3" = conftest.ts2 &&
3725 test "$4" = conftest.ts1); then
3726 #
3727 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3728 # because we don't need to test make.
3729 make_ok=true
3730 if test $am_try_res != 1; then
3731 # But if we've succeeded so far with a subsecond resolution, we
3732 # have one more thing to check: make. It can happen that
3733 # everything else supports the subsecond mtimes, but make doesn't;
3734 # notably on macOS, which ships make 3.81 from 2006 (the last one
3735 # released under GPLv2). https://bugs.gnu.org/68808
3736 #
3737 # We test $MAKE if it is defined in the environment, else "make".
3738 # It might get overridden later, but our hope is that in practice
3739 # it does not matter: it is the system "make" which is (by far)
3740 # the most likely to be broken, whereas if the user overrides it,
3741 # probably they did so with a better, or at least not worse, make.
3742 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3743 #
3744 # Create a Makefile (real tab character here):
3745 rm -f conftest.mk
3746 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3747 echo ' touch conftest.ts2' >>conftest.mk
3748 #
3749 # Now, running
3750 # touch conftest.ts1; touch conftest.ts2; make
3751 # should touch ts1 because ts2 is newer. This could happen by luck,
3752 # but most often, it will fail if make's support is insufficient. So
3753 # test for several consecutive successes.
3754 #
3755 # (We reuse conftest.ts[12] because we still want to modify existing
3756 # files, not create new ones, per above.)
3757 n=0
3758 make=${MAKE-make}
3759 until test $n -eq 3; do
3760 echo one > conftest.ts1
3761 sleep $am_try_res
3762 echo two > conftest.ts2 # ts2 should now be newer than ts1
3763 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3764 make_ok=false
3765 break # out of $n loop
3766 fi
3767 n=`expr $n + 1`
3768 done
3769 fi
3770 #
3771 if $make_ok; then
3772 # Everything we know to check worked out, so call this resolution good.
3773 am_cv_filesystem_timestamp_resolution=$am_try_res
3774 break # out of $am_try_res loop
3775 fi
3776 # Otherwise, we'll go on to check the next resolution.
3777 fi
3778 done
3779 rm -f conftest.ts?
3780 # (end _am_filesystem_timestamp_resolution)
3781 ;;
3782 esac
3783 fi
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3785 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3786
3787 # This check should not be cached, as it may vary across builds of
3788 # different projects.
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3790 printf %s "checking whether build environment is sane... " >&6; }
3791 # Reject unsafe characters in $srcdir or the absolute working directory
3792 # name. Accept space and tab only in the latter.
3793 am_lf='
3794 '
3795 case `pwd` in
3796 *[\\\"\#\$\&\'\`$am_lf]*)
3797 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3798 esac
3799 case $srcdir in
3800 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3801 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3802 esac
3803
3804 # Do 'set' in a subshell so we don't clobber the current shell's
3805 # arguments. Must try -L first in case configure is actually a
3806 # symlink; some systems play weird games with the mod time of symlinks
3807 # (eg FreeBSD returns the mod time of the symlink's containing
3808 # directory).
3809 am_build_env_is_sane=no
3810 am_has_slept=no
3811 rm -f conftest.file
3812 for am_try in 1 2; do
3813 echo "timestamp, slept: $am_has_slept" > conftest.file
3814 if (
3815 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3816 if test "$*" = "X"; then
3817 # -L didn't work.
3818 set X `ls -t "$srcdir/configure" conftest.file`
3819 fi
3820 test "$2" = conftest.file
3821 ); then
3822 am_build_env_is_sane=yes
3823 break
3824 fi
3825 # Just in case.
3826 sleep "$am_cv_filesystem_timestamp_resolution"
3827 am_has_slept=yes
3828 done
3829
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3831 printf "%s\n" "$am_build_env_is_sane" >&6; }
3832 if test "$am_build_env_is_sane" = no; then
3833 as_fn_error $? "newly created file is older than distributed files!
3834 Check your system clock" "$LINENO" 5
3835 fi
3836
3837 # If we didn't sleep, we still need to ensure time stamps of config.status and
3838 # generated files are strictly newer.
3839 am_sleep_pid=
3840 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3841 then :
3842
3843 else case e in #(
3844 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3845 am_sleep_pid=$!
3846 ;;
3847 esac
3848 fi
3849
3850 rm -f conftest.file
3851
3852 test "$program_prefix" != NONE &&
3853 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3854 # Use a double $ so make ignores it.
3855 test "$program_suffix" != NONE &&
3856 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3857 # Double any \ or $.
3858 # By default was 's,x,x', remove it if useless.
3859 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3860 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3861
3862
3863 # Expand $ac_aux_dir to an absolute path.
3864 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3865
3866
3867 if test x"${MISSING+set}" != xset; then
3868 MISSING="\${SHELL} '$am_aux_dir/missing'"
3869 fi
3870 # Use eval to expand $SHELL
3871 if eval "$MISSING --is-lightweight"; then
3872 am_missing_run="$MISSING "
3873 else
3874 am_missing_run=
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3876 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3877 fi
3878
3879 if test x"${install_sh+set}" != xset; then
3880 case $am_aux_dir in
3881 *\ * | *\ *)
3882 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3883 *)
3884 install_sh="\${SHELL} $am_aux_dir/install-sh"
3885 esac
3886 fi
3887
3888 # Installed binaries are usually stripped using 'strip' when the user
3889 # run "make install-strip". However 'strip' might not be the right
3890 # tool to use in cross-compilation environments, therefore Automake
3891 # will honor the 'STRIP' environment variable to overrule this program.
3892 if test "$cross_compiling" != no; then
3893 if test -n "$ac_tool_prefix"; then
3894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3895 set dummy ${ac_tool_prefix}strip; ac_word=$2
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 printf %s "checking for $ac_word... " >&6; }
3898 if test ${ac_cv_prog_STRIP+y}
3899 then :
3900 printf %s "(cached) " >&6
3901 else case e in #(
3902 e) if test -n "$STRIP"; then
3903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908 IFS=$as_save_IFS
3909 case $as_dir in #(((
3910 '') as_dir=./ ;;
3911 */) ;;
3912 *) as_dir=$as_dir/ ;;
3913 esac
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 fi ;;
3925 esac
3926 fi
3927 STRIP=$ac_cv_prog_STRIP
3928 if test -n "$STRIP"; then
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3930 printf "%s\n" "$STRIP" >&6; }
3931 else
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 printf "%s\n" "no" >&6; }
3934 fi
3935
3936
3937 fi
3938 if test -z "$ac_cv_prog_STRIP"; then
3939 ac_ct_STRIP=$STRIP
3940 # Extract the first word of "strip", so it can be a program name with args.
3941 set dummy strip; ac_word=$2
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3943 printf %s "checking for $ac_word... " >&6; }
3944 if test ${ac_cv_prog_ac_ct_STRIP+y}
3945 then :
3946 printf %s "(cached) " >&6
3947 else case e in #(
3948 e) if test -n "$ac_ct_STRIP"; then
3949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954 IFS=$as_save_IFS
3955 case $as_dir in #(((
3956 '') as_dir=./ ;;
3957 */) ;;
3958 *) as_dir=$as_dir/ ;;
3959 esac
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_STRIP="strip"
3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966 done
3967 done
3968 IFS=$as_save_IFS
3969
3970 fi ;;
3971 esac
3972 fi
3973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3974 if test -n "$ac_ct_STRIP"; then
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3976 printf "%s\n" "$ac_ct_STRIP" >&6; }
3977 else
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 printf "%s\n" "no" >&6; }
3980 fi
3981
3982 if test "x$ac_ct_STRIP" = x; then
3983 STRIP=":"
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991 STRIP=$ac_ct_STRIP
3992 fi
3993 else
3994 STRIP="$ac_cv_prog_STRIP"
3995 fi
3996
3997 fi
3998 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3999
4000
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4002 printf %s "checking for a race-free mkdir -p... " >&6; }
4003 if test -z "$MKDIR_P"; then
4004 if test ${ac_cv_path_mkdir+y}
4005 then :
4006 printf %s "(cached) " >&6
4007 else case e in #(
4008 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4010 do
4011 IFS=$as_save_IFS
4012 case $as_dir in #(((
4013 '') as_dir=./ ;;
4014 */) ;;
4015 *) as_dir=$as_dir/ ;;
4016 esac
4017 for ac_prog in mkdir gmkdir; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4020 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4021 'mkdir ('*'coreutils) '* | \
4022 *'BusyBox '* | \
4023 'mkdir (fileutils) '4.1*)
4024 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4025 break 3;;
4026 esac
4027 done
4028 done
4029 done
4030 IFS=$as_save_IFS
4031 ;;
4032 esac
4033 fi
4034
4035 test -d ./--version && rmdir ./--version
4036 if test ${ac_cv_path_mkdir+y}; then
4037 MKDIR_P="$ac_cv_path_mkdir -p"
4038 else
4039 # As a last resort, use plain mkdir -p,
4040 # in the hope it doesn't have the bugs of ancient mkdir.
4041 MKDIR_P='mkdir -p'
4042 fi
4043 fi
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4045 printf "%s\n" "$MKDIR_P" >&6; }
4046
4047 for ac_prog in gawk mawk nawk awk
4048 do
4049 # Extract the first word of "$ac_prog", so it can be a program name with args.
4050 set dummy $ac_prog; ac_word=$2
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052 printf %s "checking for $ac_word... " >&6; }
4053 if test ${ac_cv_prog_AWK+y}
4054 then :
4055 printf %s "(cached) " >&6
4056 else case e in #(
4057 e) if test -n "$AWK"; then
4058 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063 IFS=$as_save_IFS
4064 case $as_dir in #(((
4065 '') as_dir=./ ;;
4066 */) ;;
4067 *) as_dir=$as_dir/ ;;
4068 esac
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4071 ac_cv_prog_AWK="$ac_prog"
4072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075 done
4076 done
4077 IFS=$as_save_IFS
4078
4079 fi ;;
4080 esac
4081 fi
4082 AWK=$ac_cv_prog_AWK
4083 if test -n "$AWK"; then
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4085 printf "%s\n" "$AWK" >&6; }
4086 else
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 printf "%s\n" "no" >&6; }
4089 fi
4090
4091
4092 test -n "$AWK" && break
4093 done
4094
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4096 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4097 set x ${MAKE-make}
4098 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4099 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4100 then :
4101 printf %s "(cached) " >&6
4102 else case e in #(
4103 e) cat >conftest.make <<\_ACEOF
4104 SHELL = /bin/sh
4105 all:
4106 @echo '@@@%%%=$(MAKE)=@@@%%%'
4107 _ACEOF
4108 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4109 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4110 *@@@%%%=?*=@@@%%%*)
4111 eval ac_cv_prog_make_${ac_make}_set=yes;;
4112 *)
4113 eval ac_cv_prog_make_${ac_make}_set=no;;
4114 esac
4115 rm -f conftest.make ;;
4116 esac
4117 fi
4118 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 printf "%s\n" "yes" >&6; }
4121 SET_MAKE=
4122 else
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 printf "%s\n" "no" >&6; }
4125 SET_MAKE="MAKE=${MAKE-make}"
4126 fi
4127
4128 rm -rf .tst 2>/dev/null
4129 mkdir .tst 2>/dev/null
4130 if test -d .tst; then
4131 am__leading_dot=.
4132 else
4133 am__leading_dot=_
4134 fi
4135 rmdir .tst 2>/dev/null
4136
4137 AM_DEFAULT_VERBOSITY=1
4138 # Check whether --enable-silent-rules was given.
4139 if test ${enable_silent_rules+y}
4140 then :
4141 enableval=$enable_silent_rules;
4142 fi
4143
4144 am_make=${MAKE-make}
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4146 printf %s "checking whether $am_make supports nested variables... " >&6; }
4147 if test ${am_cv_make_support_nested_variables+y}
4148 then :
4149 printf %s "(cached) " >&6
4150 else case e in #(
4151 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4152 BAR0=false
4153 BAR1=true
4154 V=1
4155 am__doit:
4156 @$(TRUE)
4157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4158 am_cv_make_support_nested_variables=yes
4159 else
4160 am_cv_make_support_nested_variables=no
4161 fi ;;
4162 esac
4163 fi
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4165 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4166 AM_BACKSLASH='\'
4167
4168 am__rm_f_notfound=
4169 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4170 then :
4171
4172 else case e in #(
4173 e) am__rm_f_notfound='""' ;;
4174 esac
4175 fi
4176
4177
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4179 printf %s "checking xargs -n works... " >&6; }
4180 if test ${am_cv_xargs_n_works+y}
4181 then :
4182 printf %s "(cached) " >&6
4183 else case e in #(
4184 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4185 3"
4186 then :
4187 am_cv_xargs_n_works=yes
4188 else case e in #(
4189 e) am_cv_xargs_n_works=no ;;
4190 esac
4191 fi ;;
4192 esac
4193 fi
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4195 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4196 if test "$am_cv_xargs_n_works" = yes
4197 then :
4198 am__xargs_n='xargs -n'
4199 else case e in #(
4200 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4201 ;;
4202 esac
4203 fi
4204
4205 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4206 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4207 # is not polluted with repeated "-I."
4208 am__isrc=' -I$(srcdir)'
4209 # test to see if srcdir already configured
4210 if test -f $srcdir/config.status; then
4211 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4212 fi
4213 fi
4214
4215 # test whether we have cygpath
4216 if test -z "$CYGPATH_W"; then
4217 if (cygpath --version) >/dev/null 2>/dev/null; then
4218 CYGPATH_W='cygpath -w'
4219 else
4220 CYGPATH_W=echo
4221 fi
4222 fi
4223
4224
4225 # Define the identity of the package.
4226 PACKAGE='valgrind'
4227 VERSION='3.25.1'
4228
4229
4230 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4231
4232
4233 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4234
4235 # Some tools Automake needs.
4236
4237 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4238
4239
4240 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4241
4242
4243 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4244
4245
4246 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4247
4248
4249 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4250
4251 # For better backward compatibility. To be removed once Automake 1.9.x
4252 # dies out for good. For more background, see:
4253 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4254 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4255 mkdir_p='$(MKDIR_P)'
4256
4257 # We need awk for the "check" target (and possibly the TAP driver). The
4258 # system "awk" is bad on some platforms.
4259 # Always define AMTAR for backward compatibility. Yes, it's still used
4260 # in the wild :-( We should find a proper way to deprecate it ...
4261 AMTAR='$${TAR-tar}'
4262
4263
4264 # We'll loop over all known methods to create a tar archive until one works.
4265 _am_tools='gnutar pax cpio none'
4266
4267 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4268
4269
4270
4271
4272
4273 # Variables for tags utilities; see am/tags.am
4274 if test -z "$CTAGS"; then
4275 CTAGS=ctags
4276 fi
4277
4278 if test -z "$ETAGS"; then
4279 ETAGS=etags
4280 fi
4281
4282 if test -z "$CSCOPE"; then
4283 CSCOPE=cscope
4284 fi
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4295 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4296 # Check whether --enable-maintainer-mode was given.
4297 if test ${enable_maintainer_mode+y}
4298 then :
4299 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4300 else case e in #(
4301 e) USE_MAINTAINER_MODE=no ;;
4302 esac
4303 fi
4304
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4306 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4307 if test $USE_MAINTAINER_MODE = yes; then
4308 MAINTAINER_MODE_TRUE=
4309 MAINTAINER_MODE_FALSE='#'
4310 else
4311 MAINTAINER_MODE_TRUE='#'
4312 MAINTAINER_MODE_FALSE=
4313 fi
4314
4315 MAINT=$MAINTAINER_MODE_TRUE
4316
4317
4318
4319 #----------------------------------------------------------------------------
4320 # Do NOT modify these flags here. Except in feature tests in which case
4321 # the original values must be properly restored.
4322 #----------------------------------------------------------------------------
4323 CFLAGS="$CFLAGS"
4324 CXXFLAGS="$CXXFLAGS"
4325
4326 #----------------------------------------------------------------------------
4327 # Checks for various programs.
4328 #----------------------------------------------------------------------------
4329
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4331 printf %s "checking whether ln -s works... " >&6; }
4332 LN_S=$as_ln_s
4333 if test "$LN_S" = "ln -s"; then
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335 printf "%s\n" "yes" >&6; }
4336 else
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4338 printf "%s\n" "no, using $LN_S" >&6; }
4339 fi
4340
4341
4342 # Provided by gnulib's m4/std-gnu11.m4 for autoconf pre 2.70
4343 # Make sure we can compile in C11 mode.
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353 ac_ext=c
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 printf %s "checking for $ac_word... " >&6; }
4363 if test ${ac_cv_prog_CC+y}
4364 then :
4365 printf %s "(cached) " >&6
4366 else case e in #(
4367 e) if test -n "$CC"; then
4368 ac_cv_prog_CC="$CC" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373 IFS=$as_save_IFS
4374 case $as_dir in #(((
4375 '') as_dir=./ ;;
4376 */) ;;
4377 *) as_dir=$as_dir/ ;;
4378 esac
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389 fi ;;
4390 esac
4391 fi
4392 CC=$ac_cv_prog_CC
4393 if test -n "$CC"; then
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4395 printf "%s\n" "$CC" >&6; }
4396 else
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 printf "%s\n" "no" >&6; }
4399 fi
4400
4401
4402 fi
4403 if test -z "$ac_cv_prog_CC"; then
4404 ac_ct_CC=$CC
4405 # Extract the first word of "gcc", so it can be a program name with args.
4406 set dummy gcc; ac_word=$2
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 printf %s "checking for $ac_word... " >&6; }
4409 if test ${ac_cv_prog_ac_ct_CC+y}
4410 then :
4411 printf %s "(cached) " >&6
4412 else case e in #(
4413 e) if test -n "$ac_ct_CC"; then
4414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419 IFS=$as_save_IFS
4420 case $as_dir in #(((
4421 '') as_dir=./ ;;
4422 */) ;;
4423 *) as_dir=$as_dir/ ;;
4424 esac
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4427 ac_cv_prog_ac_ct_CC="gcc"
4428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4429 break 2
4430 fi
4431 done
4432 done
4433 IFS=$as_save_IFS
4434
4435 fi ;;
4436 esac
4437 fi
4438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4439 if test -n "$ac_ct_CC"; then
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4441 printf "%s\n" "$ac_ct_CC" >&6; }
4442 else
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 printf "%s\n" "no" >&6; }
4445 fi
4446
4447 if test "x$ac_ct_CC" = x; then
4448 CC=""
4449 else
4450 case $cross_compiling:$ac_tool_warned in
4451 yes:)
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4453 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4454 ac_tool_warned=yes ;;
4455 esac
4456 CC=$ac_ct_CC
4457 fi
4458 else
4459 CC="$ac_cv_prog_CC"
4460 fi
4461
4462 if test -z "$CC"; then
4463 if test -n "$ac_tool_prefix"; then
4464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4465 set dummy ${ac_tool_prefix}cc; ac_word=$2
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 printf %s "checking for $ac_word... " >&6; }
4468 if test ${ac_cv_prog_CC+y}
4469 then :
4470 printf %s "(cached) " >&6
4471 else case e in #(
4472 e) if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 case $as_dir in #(((
4480 '') as_dir=./ ;;
4481 */) ;;
4482 *) as_dir=$as_dir/ ;;
4483 esac
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_CC="${ac_tool_prefix}cc"
4487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490 done
4491 done
4492 IFS=$as_save_IFS
4493
4494 fi ;;
4495 esac
4496 fi
4497 CC=$ac_cv_prog_CC
4498 if test -n "$CC"; then
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4500 printf "%s\n" "$CC" >&6; }
4501 else
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 printf "%s\n" "no" >&6; }
4504 fi
4505
4506
4507 fi
4508 fi
4509 if test -z "$CC"; then
4510 # Extract the first word of "cc", so it can be a program name with args.
4511 set dummy cc; ac_word=$2
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 printf %s "checking for $ac_word... " >&6; }
4514 if test ${ac_cv_prog_CC+y}
4515 then :
4516 printf %s "(cached) " >&6
4517 else case e in #(
4518 e) if test -n "$CC"; then
4519 ac_cv_prog_CC="$CC" # Let the user override the test.
4520 else
4521 ac_prog_rejected=no
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525 IFS=$as_save_IFS
4526 case $as_dir in #(((
4527 '') as_dir=./ ;;
4528 */) ;;
4529 *) as_dir=$as_dir/ ;;
4530 esac
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4533 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4534 ac_prog_rejected=yes
4535 continue
4536 fi
4537 ac_cv_prog_CC="cc"
4538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4539 break 2
4540 fi
4541 done
4542 done
4543 IFS=$as_save_IFS
4544
4545 if test $ac_prog_rejected = yes; then
4546 # We found a bogon in the path, so make sure we never use it.
4547 set dummy $ac_cv_prog_CC
4548 shift
4549 if test $# != 0; then
4550 # We chose a different compiler from the bogus one.
4551 # However, it has the same basename, so the bogon will be chosen
4552 # first if we set CC to just the basename; use the full file name.
4553 shift
4554 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4555 fi
4556 fi
4557 fi ;;
4558 esac
4559 fi
4560 CC=$ac_cv_prog_CC
4561 if test -n "$CC"; then
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4563 printf "%s\n" "$CC" >&6; }
4564 else
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 printf "%s\n" "no" >&6; }
4567 fi
4568
4569
4570 fi
4571 if test -z "$CC"; then
4572 if test -n "$ac_tool_prefix"; then
4573 for ac_prog in cl.exe
4574 do
4575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 printf %s "checking for $ac_word... " >&6; }
4579 if test ${ac_cv_prog_CC+y}
4580 then :
4581 printf %s "(cached) " >&6
4582 else case e in #(
4583 e) if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 case $as_dir in #(((
4591 '') as_dir=./ ;;
4592 */) ;;
4593 *) as_dir=$as_dir/ ;;
4594 esac
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 fi ;;
4606 esac
4607 fi
4608 CC=$ac_cv_prog_CC
4609 if test -n "$CC"; then
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4611 printf "%s\n" "$CC" >&6; }
4612 else
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 printf "%s\n" "no" >&6; }
4615 fi
4616
4617
4618 test -n "$CC" && break
4619 done
4620 fi
4621 if test -z "$CC"; then
4622 ac_ct_CC=$CC
4623 for ac_prog in cl.exe
4624 do
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 printf %s "checking for $ac_word... " >&6; }
4629 if test ${ac_cv_prog_ac_ct_CC+y}
4630 then :
4631 printf %s "(cached) " >&6
4632 else case e in #(
4633 e) if test -n "$ac_ct_CC"; then
4634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639 IFS=$as_save_IFS
4640 case $as_dir in #(((
4641 '') as_dir=./ ;;
4642 */) ;;
4643 *) as_dir=$as_dir/ ;;
4644 esac
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_ac_ct_CC="$ac_prog"
4648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 fi ;;
4656 esac
4657 fi
4658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4659 if test -n "$ac_ct_CC"; then
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4661 printf "%s\n" "$ac_ct_CC" >&6; }
4662 else
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 printf "%s\n" "no" >&6; }
4665 fi
4666
4667
4668 test -n "$ac_ct_CC" && break
4669 done
4670
4671 if test "x$ac_ct_CC" = x; then
4672 CC=""
4673 else
4674 case $cross_compiling:$ac_tool_warned in
4675 yes:)
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned=yes ;;
4679 esac
4680 CC=$ac_ct_CC
4681 fi
4682 fi
4683
4684 fi
4685 if test -z "$CC"; then
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}clang; ac_word=$2
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 printf %s "checking for $ac_word... " >&6; }
4691 if test ${ac_cv_prog_CC+y}
4692 then :
4693 printf %s "(cached) " >&6
4694 else case e in #(
4695 e) if test -n "$CC"; then
4696 ac_cv_prog_CC="$CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 case $as_dir in #(((
4703 '') as_dir=./ ;;
4704 */) ;;
4705 *) as_dir=$as_dir/ ;;
4706 esac
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_CC="${ac_tool_prefix}clang"
4710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 fi ;;
4718 esac
4719 fi
4720 CC=$ac_cv_prog_CC
4721 if test -n "$CC"; then
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4723 printf "%s\n" "$CC" >&6; }
4724 else
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 printf "%s\n" "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$ac_cv_prog_CC"; then
4732 ac_ct_CC=$CC
4733 # Extract the first word of "clang", so it can be a program name with args.
4734 set dummy clang; ac_word=$2
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 printf %s "checking for $ac_word... " >&6; }
4737 if test ${ac_cv_prog_ac_ct_CC+y}
4738 then :
4739 printf %s "(cached) " >&6
4740 else case e in #(
4741 e) if test -n "$ac_ct_CC"; then
4742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 case $as_dir in #(((
4749 '') as_dir=./ ;;
4750 */) ;;
4751 *) as_dir=$as_dir/ ;;
4752 esac
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_ac_ct_CC="clang"
4756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759 done
4760 done
4761 IFS=$as_save_IFS
4762
4763 fi ;;
4764 esac
4765 fi
4766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4767 if test -n "$ac_ct_CC"; then
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4769 printf "%s\n" "$ac_ct_CC" >&6; }
4770 else
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 printf "%s\n" "no" >&6; }
4773 fi
4774
4775 if test "x$ac_ct_CC" = x; then
4776 CC=""
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 CC=$ac_ct_CC
4785 fi
4786 else
4787 CC="$ac_cv_prog_CC"
4788 fi
4789
4790 fi
4791
4792
4793 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4794 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4795 as_fn_error $? "no acceptable C compiler found in \$PATH
4796 See 'config.log' for more details" "$LINENO" 5; }
4797
4798 # Provide some information about the compiler.
4799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4800 set X $ac_compile
4801 ac_compiler=$2
4802 for ac_option in --version -v -V -qversion -version; do
4803 { { ac_try="$ac_compiler $ac_option >&5"
4804 case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807 esac
4808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4809 printf "%s\n" "$ac_try_echo"; } >&5
4810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4811 ac_status=$?
4812 if test -s conftest.err; then
4813 sed '10a\
4814 ... rest of stderr output deleted ...
4815 10q' conftest.err >conftest.er1
4816 cat conftest.er1 >&5
4817 fi
4818 rm -f conftest.er1 conftest.err
4819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4820 test $ac_status = 0; }
4821 done
4822
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825
4826 int
4827 main (void)
4828 {
4829
4830 ;
4831 return 0;
4832 }
4833 _ACEOF
4834 ac_clean_files_save=$ac_clean_files
4835 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4836 # Try to create an executable without -o first, disregard a.out.
4837 # It will help us diagnose broken compilers, and finding out an intuition
4838 # of exeext.
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4840 printf %s "checking whether the C compiler works... " >&6; }
4841 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4842
4843 # The possible output files:
4844 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4845
4846 ac_rmfiles=
4847 for ac_file in $ac_files
4848 do
4849 case $ac_file in
4850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4851 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4852 esac
4853 done
4854 rm -f $ac_rmfiles
4855
4856 if { { ac_try="$ac_link_default"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862 printf "%s\n" "$ac_try_echo"; } >&5
4863 (eval "$ac_link_default") 2>&5
4864 ac_status=$?
4865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4866 test $ac_status = 0; }
4867 then :
4868 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4869 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4870 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4871 # so that the user can short-circuit this test for compilers unknown to
4872 # Autoconf.
4873 for ac_file in $ac_files ''
4874 do
4875 test -f "$ac_file" || continue
4876 case $ac_file in
4877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4878 ;;
4879 [ab].out )
4880 # We found the default executable, but exeext='' is most
4881 # certainly right.
4882 break;;
4883 *.* )
4884 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4885 then :; else
4886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4887 fi
4888 # We set ac_cv_exeext here because the later test for it is not
4889 # safe: cross compilers may not add the suffix if given an '-o'
4890 # argument, so we may need to know it at that point already.
4891 # Even if this section looks crufty: it has the advantage of
4892 # actually working.
4893 break;;
4894 * )
4895 break;;
4896 esac
4897 done
4898 test "$ac_cv_exeext" = no && ac_cv_exeext=
4899
4900 else case e in #(
4901 e) ac_file='' ;;
4902 esac
4903 fi
4904 if test -z "$ac_file"
4905 then :
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 printf "%s\n" "no" >&6; }
4908 printf "%s\n" "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4912 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4913 as_fn_error 77 "C compiler cannot create executables
4914 See 'config.log' for more details" "$LINENO" 5; }
4915 else case e in #(
4916 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4917 printf "%s\n" "yes" >&6; } ;;
4918 esac
4919 fi
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4921 printf %s "checking for C compiler default output file name... " >&6; }
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4923 printf "%s\n" "$ac_file" >&6; }
4924 ac_exeext=$ac_cv_exeext
4925
4926 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4927 ac_clean_files=$ac_clean_files_save
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4929 printf %s "checking for suffix of executables... " >&6; }
4930 if { { ac_try="$ac_link"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 printf "%s\n" "$ac_try_echo"; } >&5
4937 (eval "$ac_link") 2>&5
4938 ac_status=$?
4939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940 test $ac_status = 0; }
4941 then :
4942 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4943 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4944 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4945 # 'rm'.
4946 for ac_file in conftest.exe conftest conftest.*; do
4947 test -f "$ac_file" || continue
4948 case $ac_file in
4949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4950 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4951 break;;
4952 * ) break;;
4953 esac
4954 done
4955 else case e in #(
4956 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4957 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4958 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4959 See 'config.log' for more details" "$LINENO" 5; } ;;
4960 esac
4961 fi
4962 rm -f conftest conftest$ac_cv_exeext
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4964 printf "%s\n" "$ac_cv_exeext" >&6; }
4965
4966 rm -f conftest.$ac_ext
4967 EXEEXT=$ac_cv_exeext
4968 ac_exeext=$EXEEXT
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <stdio.h>
4972 int
4973 main (void)
4974 {
4975 FILE *f = fopen ("conftest.out", "w");
4976 if (!f)
4977 return 1;
4978 return ferror (f) || fclose (f) != 0;
4979
4980 ;
4981 return 0;
4982 }
4983 _ACEOF
4984 ac_clean_files="$ac_clean_files conftest.out"
4985 # Check that the compiler produces executables we can run. If not, either
4986 # the compiler is broken, or we cross compile.
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4988 printf %s "checking whether we are cross compiling... " >&6; }
4989 if test "$cross_compiling" != yes; then
4990 { { ac_try="$ac_link"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4996 printf "%s\n" "$ac_try_echo"; } >&5
4997 (eval "$ac_link") 2>&5
4998 ac_status=$?
4999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000 test $ac_status = 0; }
5001 if { ac_try='./conftest$ac_cv_exeext'
5002 { { case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5007 printf "%s\n" "$ac_try_echo"; } >&5
5008 (eval "$ac_try") 2>&5
5009 ac_status=$?
5010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5011 test $ac_status = 0; }; }; then
5012 cross_compiling=no
5013 else
5014 if test "$cross_compiling" = maybe; then
5015 cross_compiling=yes
5016 else
5017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5018 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5019 as_fn_error 77 "cannot run C compiled programs.
5020 If you meant to cross compile, use '--host'.
5021 See 'config.log' for more details" "$LINENO" 5; }
5022 fi
5023 fi
5024 fi
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5026 printf "%s\n" "$cross_compiling" >&6; }
5027
5028 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5029 conftest.o conftest.obj conftest.out
5030 ac_clean_files=$ac_clean_files_save
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5032 printf %s "checking for suffix of object files... " >&6; }
5033 if test ${ac_cv_objext+y}
5034 then :
5035 printf %s "(cached) " >&6
5036 else case e in #(
5037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039
5040 int
5041 main (void)
5042 {
5043
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 rm -f conftest.o conftest.obj
5049 if { { ac_try="$ac_compile"
5050 case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053 esac
5054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5055 printf "%s\n" "$ac_try_echo"; } >&5
5056 (eval "$ac_compile") 2>&5
5057 ac_status=$?
5058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }
5060 then :
5061 for ac_file in conftest.o conftest.obj conftest.*; do
5062 test -f "$ac_file" || continue;
5063 case $ac_file in
5064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5066 break;;
5067 esac
5068 done
5069 else case e in #(
5070 e) printf "%s\n" "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5074 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5075 as_fn_error $? "cannot compute suffix of object files: cannot compile
5076 See 'config.log' for more details" "$LINENO" 5; } ;;
5077 esac
5078 fi
5079 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5080 esac
5081 fi
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5083 printf "%s\n" "$ac_cv_objext" >&6; }
5084 OBJEXT=$ac_cv_objext
5085 ac_objext=$OBJEXT
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5087 printf %s "checking whether the compiler supports GNU C... " >&6; }
5088 if test ${ac_cv_c_compiler_gnu+y}
5089 then :
5090 printf %s "(cached) " >&6
5091 else case e in #(
5092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094
5095 int
5096 main (void)
5097 {
5098 #ifndef __GNUC__
5099 choke me
5100 #endif
5101
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 if ac_fn_c_try_compile "$LINENO"
5107 then :
5108 ac_compiler_gnu=yes
5109 else case e in #(
5110 e) ac_compiler_gnu=no ;;
5111 esac
5112 fi
5113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5115 ;;
5116 esac
5117 fi
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5119 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121
5122 if test $ac_compiler_gnu = yes; then
5123 GCC=yes
5124 else
5125 GCC=
5126 fi
5127 ac_test_CFLAGS=${CFLAGS+y}
5128 ac_save_CFLAGS=$CFLAGS
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5130 printf %s "checking whether $CC accepts -g... " >&6; }
5131 if test ${ac_cv_prog_cc_g+y}
5132 then :
5133 printf %s "(cached) " >&6
5134 else case e in #(
5135 e) ac_save_c_werror_flag=$ac_c_werror_flag
5136 ac_c_werror_flag=yes
5137 ac_cv_prog_cc_g=no
5138 CFLAGS="-g"
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141
5142 int
5143 main (void)
5144 {
5145
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"
5151 then :
5152 ac_cv_prog_cc_g=yes
5153 else case e in #(
5154 e) CFLAGS=""
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157
5158 int
5159 main (void)
5160 {
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"
5167 then :
5168
5169 else case e in #(
5170 e) ac_c_werror_flag=$ac_save_c_werror_flag
5171 CFLAGS="-g"
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174
5175 int
5176 main (void)
5177 {
5178
5179 ;
5180 return 0;
5181 }
5182 _ACEOF
5183 if ac_fn_c_try_compile "$LINENO"
5184 then :
5185 ac_cv_prog_cc_g=yes
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5188 esac
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5191 esac
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5194 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5195 esac
5196 fi
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5198 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5199 if test $ac_test_CFLAGS; then
5200 CFLAGS=$ac_save_CFLAGS
5201 elif test $ac_cv_prog_cc_g = yes; then
5202 if test "$GCC" = yes; then
5203 CFLAGS="-g -O2"
5204 else
5205 CFLAGS="-g"
5206 fi
5207 else
5208 if test "$GCC" = yes; then
5209 CFLAGS="-O2"
5210 else
5211 CFLAGS=
5212 fi
5213 fi
5214 ac_prog_cc_stdc=no
5215 if test x$ac_prog_cc_stdc = xno
5216 then :
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5218 printf %s "checking for $CC option to enable C11 features... " >&6; }
5219 if test ${ac_cv_prog_cc_c11+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else case e in #(
5223 e) ac_cv_prog_cc_c11=no
5224 ac_save_CC=$CC
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 $ac_c_conftest_c11_program
5228 _ACEOF
5229 for ac_arg in '' -std=gnu11
5230 do
5231 CC="$ac_save_CC $ac_arg"
5232 if ac_fn_c_try_compile "$LINENO"
5233 then :
5234 ac_cv_prog_cc_c11=$ac_arg
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext conftest.beam
5237 test "x$ac_cv_prog_cc_c11" != "xno" && break
5238 done
5239 rm -f conftest.$ac_ext
5240 CC=$ac_save_CC ;;
5241 esac
5242 fi
5243
5244 if test "x$ac_cv_prog_cc_c11" = xno
5245 then :
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5247 printf "%s\n" "unsupported" >&6; }
5248 else case e in #(
5249 e) if test "x$ac_cv_prog_cc_c11" = x
5250 then :
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5252 printf "%s\n" "none needed" >&6; }
5253 else case e in #(
5254 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5255 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5256 CC="$CC $ac_cv_prog_cc_c11" ;;
5257 esac
5258 fi
5259 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5260 ac_prog_cc_stdc=c11 ;;
5261 esac
5262 fi
5263 fi
5264 if test x$ac_prog_cc_stdc = xno
5265 then :
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5267 printf %s "checking for $CC option to enable C99 features... " >&6; }
5268 if test ${ac_cv_prog_cc_c99+y}
5269 then :
5270 printf %s "(cached) " >&6
5271 else case e in #(
5272 e) ac_cv_prog_cc_c99=no
5273 ac_save_CC=$CC
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 $ac_c_conftest_c99_program
5277 _ACEOF
5278 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5279 do
5280 CC="$ac_save_CC $ac_arg"
5281 if ac_fn_c_try_compile "$LINENO"
5282 then :
5283 ac_cv_prog_cc_c99=$ac_arg
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.beam
5286 test "x$ac_cv_prog_cc_c99" != "xno" && break
5287 done
5288 rm -f conftest.$ac_ext
5289 CC=$ac_save_CC ;;
5290 esac
5291 fi
5292
5293 if test "x$ac_cv_prog_cc_c99" = xno
5294 then :
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5296 printf "%s\n" "unsupported" >&6; }
5297 else case e in #(
5298 e) if test "x$ac_cv_prog_cc_c99" = x
5299 then :
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5301 printf "%s\n" "none needed" >&6; }
5302 else case e in #(
5303 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5304 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5305 CC="$CC $ac_cv_prog_cc_c99" ;;
5306 esac
5307 fi
5308 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5309 ac_prog_cc_stdc=c99 ;;
5310 esac
5311 fi
5312 fi
5313 if test x$ac_prog_cc_stdc = xno
5314 then :
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5316 printf %s "checking for $CC option to enable C89 features... " >&6; }
5317 if test ${ac_cv_prog_cc_c89+y}
5318 then :
5319 printf %s "(cached) " >&6
5320 else case e in #(
5321 e) ac_cv_prog_cc_c89=no
5322 ac_save_CC=$CC
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 $ac_c_conftest_c89_program
5326 _ACEOF
5327 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5328 do
5329 CC="$ac_save_CC $ac_arg"
5330 if ac_fn_c_try_compile "$LINENO"
5331 then :
5332 ac_cv_prog_cc_c89=$ac_arg
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.beam
5335 test "x$ac_cv_prog_cc_c89" != "xno" && break
5336 done
5337 rm -f conftest.$ac_ext
5338 CC=$ac_save_CC ;;
5339 esac
5340 fi
5341
5342 if test "x$ac_cv_prog_cc_c89" = xno
5343 then :
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5345 printf "%s\n" "unsupported" >&6; }
5346 else case e in #(
5347 e) if test "x$ac_cv_prog_cc_c89" = x
5348 then :
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5350 printf "%s\n" "none needed" >&6; }
5351 else case e in #(
5352 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5353 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5354 CC="$CC $ac_cv_prog_cc_c89" ;;
5355 esac
5356 fi
5357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5358 ac_prog_cc_stdc=c89 ;;
5359 esac
5360 fi
5361 fi
5362
5363 ac_ext=c
5364 ac_cpp='$CPP $CPPFLAGS'
5365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5368
5369
5370 ac_ext=c
5371 ac_cpp='$CPP $CPPFLAGS'
5372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5376 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5377 if test ${am_cv_prog_cc_c_o+y}
5378 then :
5379 printf %s "(cached) " >&6
5380 else case e in #(
5381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383
5384 int
5385 main (void)
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 # Make sure it works both with $CC and with simple cc.
5393 # Following AC_PROG_CC_C_O, we do the test twice because some
5394 # compilers refuse to overwrite an existing .o file with -o,
5395 # though they will create one.
5396 am_cv_prog_cc_c_o=yes
5397 for am_i in 1 2; do
5398 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5399 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } \
5403 && test -f conftest2.$ac_objext; then
5404 : OK
5405 else
5406 am_cv_prog_cc_c_o=no
5407 break
5408 fi
5409 done
5410 rm -f core conftest*
5411 unset am_i ;;
5412 esac
5413 fi
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5415 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5416 if test "$am_cv_prog_cc_c_o" != yes; then
5417 # Losing compiler, so override with the script.
5418 # FIXME: It is wrong to rewrite CC.
5419 # But if we don't then we get into trouble of one sort or another.
5420 # A longer-term fix would be to have automake use am__CC in this case,
5421 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5422 CC="$am_aux_dir/compile $CC"
5423 fi
5424 ac_ext=c
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5429
5430 DEPDIR="${am__leading_dot}deps"
5431
5432 ac_config_commands="$ac_config_commands depfiles"
5433
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5435 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5436 cat > confinc.mk << 'END'
5437 am__doit:
5438 @echo this is the am__doit target >confinc.out
5439 .PHONY: am__doit
5440 END
5441 am__include="#"
5442 am__quote=
5443 # BSD make does it like this.
5444 echo '.include "confinc.mk" # ignored' > confmf.BSD
5445 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5446 echo 'include confinc.mk # ignored' > confmf.GNU
5447 _am_result=no
5448 for s in GNU BSD; do
5449 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5450 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }
5454 case $?:`cat confinc.out 2>/dev/null` in #(
5455 '0:this is the am__doit target') :
5456 case $s in #(
5457 BSD) :
5458 am__include='.include' am__quote='"' ;; #(
5459 *) :
5460 am__include='include' am__quote='' ;;
5461 esac ;; #(
5462 *) :
5463 ;;
5464 esac
5465 if test "$am__include" != "#"; then
5466 _am_result="yes ($s style)"
5467 break
5468 fi
5469 done
5470 rm -f confinc.* confmf.*
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5472 printf "%s\n" "${_am_result}" >&6; }
5473
5474 # Check whether --enable-dependency-tracking was given.
5475 if test ${enable_dependency_tracking+y}
5476 then :
5477 enableval=$enable_dependency_tracking;
5478 fi
5479
5480 if test "x$enable_dependency_tracking" != xno; then
5481 am_depcomp="$ac_aux_dir/depcomp"
5482 AMDEPBACKSLASH='\'
5483 am__nodep='_no'
5484 fi
5485 if test "x$enable_dependency_tracking" != xno; then
5486 AMDEP_TRUE=
5487 AMDEP_FALSE='#'
5488 else
5489 AMDEP_TRUE='#'
5490 AMDEP_FALSE=
5491 fi
5492
5493
5494
5495 depcc="$CC" am_compiler_list=
5496
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5498 printf %s "checking dependency style of $depcc... " >&6; }
5499 if test ${am_cv_CC_dependencies_compiler_type+y}
5500 then :
5501 printf %s "(cached) " >&6
5502 else case e in #(
5503 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5504 # We make a subdir and do the tests there. Otherwise we can end up
5505 # making bogus files that we don't know about and never remove. For
5506 # instance it was reported that on HP-UX the gcc test will end up
5507 # making a dummy file named 'D' -- because '-MD' means "put the output
5508 # in D".
5509 rm -rf conftest.dir
5510 mkdir conftest.dir
5511 # Copy depcomp to subdir because otherwise we won't find it if we're
5512 # using a relative directory.
5513 cp "$am_depcomp" conftest.dir
5514 cd conftest.dir
5515 # We will build objects and dependencies in a subdirectory because
5516 # it helps to detect inapplicable dependency modes. For instance
5517 # both Tru64's cc and ICC support -MD to output dependencies as a
5518 # side effect of compilation, but ICC will put the dependencies in
5519 # the current directory while Tru64 will put them in the object
5520 # directory.
5521 mkdir sub
5522
5523 am_cv_CC_dependencies_compiler_type=none
5524 if test "$am_compiler_list" = ""; then
5525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5526 fi
5527 am__universal=false
5528 case " $depcc " in #(
5529 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5530 esac
5531
5532 for depmode in $am_compiler_list; do
5533 # Setup a source with many dependencies, because some compilers
5534 # like to wrap large dependency lists on column 80 (with \), and
5535 # we should not choose a depcomp mode which is confused by this.
5536 #
5537 # We need to recreate these files for each test, as the compiler may
5538 # overwrite some of them when testing with obscure command lines.
5539 # This happens at least with the AIX C compiler.
5540 : > sub/conftest.c
5541 for i in 1 2 3 4 5 6; do
5542 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5543 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5544 # Solaris 10 /bin/sh.
5545 echo '/* dummy */' > sub/conftst$i.h
5546 done
5547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5548
5549 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5550 # mode. It turns out that the SunPro C++ compiler does not properly
5551 # handle '-M -o', and we need to detect this. Also, some Intel
5552 # versions had trouble with output in subdirs.
5553 am__obj=sub/conftest.${OBJEXT-o}
5554 am__minus_obj="-o $am__obj"
5555 case $depmode in
5556 gcc)
5557 # This depmode causes a compiler race in universal mode.
5558 test "$am__universal" = false || continue
5559 ;;
5560 nosideeffect)
5561 # After this tag, mechanisms are not by side-effect, so they'll
5562 # only be used when explicitly requested.
5563 if test "x$enable_dependency_tracking" = xyes; then
5564 continue
5565 else
5566 break
5567 fi
5568 ;;
5569 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5570 # This compiler won't grok '-c -o', but also, the minuso test has
5571 # not run yet. These depmodes are late enough in the game, and
5572 # so weak that their functioning should not be impacted.
5573 am__obj=conftest.${OBJEXT-o}
5574 am__minus_obj=
5575 ;;
5576 none) break ;;
5577 esac
5578 if depmode=$depmode \
5579 source=sub/conftest.c object=$am__obj \
5580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5581 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5582 >/dev/null 2>conftest.err &&
5583 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5585 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5587 # icc doesn't choke on unknown options, it will just issue warnings
5588 # or remarks (even with -Werror). So we grep stderr for any message
5589 # that says an option was ignored or not supported.
5590 # When given -MP, icc 7.0 and 7.1 complain thus:
5591 # icc: Command line warning: ignoring option '-M'; no argument required
5592 # The diagnosis changed in icc 8.0:
5593 # icc: Command line remark: option '-MP' not supported
5594 if (grep 'ignoring option' conftest.err ||
5595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5596 am_cv_CC_dependencies_compiler_type=$depmode
5597 break
5598 fi
5599 fi
5600 done
5601
5602 cd ..
5603 rm -rf conftest.dir
5604 else
5605 am_cv_CC_dependencies_compiler_type=none
5606 fi
5607 ;;
5608 esac
5609 fi
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5611 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5612 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5613
5614 if
5615 test "x$enable_dependency_tracking" != xno \
5616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5617 am__fastdepCC_TRUE=
5618 am__fastdepCC_FALSE='#'
5619 else
5620 am__fastdepCC_TRUE='#'
5621 am__fastdepCC_FALSE=
5622 fi
5623
5624
5625 if test "x$ac_cv_prog_cc_c11" = "xno"
5626 then :
5627 as_fn_error $? "Valgrind relies on a C compiler supporting C11" "$LINENO" 5
5628 fi
5629
5630 ac_ext=c
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5636 printf %s "checking how to run the C preprocessor... " >&6; }
5637 # On Suns, sometimes $CPP names a directory.
5638 if test -n "$CPP" && test -d "$CPP"; then
5639 CPP=
5640 fi
5641 if test -z "$CPP"; then
5642 if test ${ac_cv_prog_CPP+y}
5643 then :
5644 printf %s "(cached) " >&6
5645 else case e in #(
5646 e) # Double quotes because $CC needs to be expanded
5647 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5648 do
5649 ac_preproc_ok=false
5650 for ac_c_preproc_warn_flag in '' yes
5651 do
5652 # Use a header file that comes with gcc, so configuring glibc
5653 # with a fresh cross-compiler works.
5654 # On the NeXT, cc -E runs the code through the compiler's parser,
5655 # not just through cpp. "Syntax error" is here to catch this case.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <limits.h>
5659 Syntax error
5660 _ACEOF
5661 if ac_fn_c_try_cpp "$LINENO"
5662 then :
5663
5664 else case e in #(
5665 e) # Broken: fails on valid input.
5666 continue ;;
5667 esac
5668 fi
5669 rm -f conftest.err conftest.i conftest.$ac_ext
5670
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5676 _ACEOF
5677 if ac_fn_c_try_cpp "$LINENO"
5678 then :
5679 # Broken: success on invalid input.
5680 continue
5681 else case e in #(
5682 e) # Passes both tests.
5683 ac_preproc_ok=:
5684 break ;;
5685 esac
5686 fi
5687 rm -f conftest.err conftest.i conftest.$ac_ext
5688
5689 done
5690 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5691 rm -f conftest.i conftest.err conftest.$ac_ext
5692 if $ac_preproc_ok
5693 then :
5694 break
5695 fi
5696
5697 done
5698 ac_cv_prog_CPP=$CPP
5699 ;;
5700 esac
5701 fi
5702 CPP=$ac_cv_prog_CPP
5703 else
5704 ac_cv_prog_CPP=$CPP
5705 fi
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5707 printf "%s\n" "$CPP" >&6; }
5708 ac_preproc_ok=false
5709 for ac_c_preproc_warn_flag in '' yes
5710 do
5711 # Use a header file that comes with gcc, so configuring glibc
5712 # with a fresh cross-compiler works.
5713 # On the NeXT, cc -E runs the code through the compiler's parser,
5714 # not just through cpp. "Syntax error" is here to catch this case.
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <limits.h>
5718 Syntax error
5719 _ACEOF
5720 if ac_fn_c_try_cpp "$LINENO"
5721 then :
5722
5723 else case e in #(
5724 e) # Broken: fails on valid input.
5725 continue ;;
5726 esac
5727 fi
5728 rm -f conftest.err conftest.i conftest.$ac_ext
5729
5730 # OK, works on sane cases. Now check whether nonexistent headers
5731 # can be detected and how.
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 #include <ac_nonexistent.h>
5735 _ACEOF
5736 if ac_fn_c_try_cpp "$LINENO"
5737 then :
5738 # Broken: success on invalid input.
5739 continue
5740 else case e in #(
5741 e) # Passes both tests.
5742 ac_preproc_ok=:
5743 break ;;
5744 esac
5745 fi
5746 rm -f conftest.err conftest.i conftest.$ac_ext
5747
5748 done
5749 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5750 rm -f conftest.i conftest.err conftest.$ac_ext
5751 if $ac_preproc_ok
5752 then :
5753
5754 else case e in #(
5755 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5756 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5757 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5758 See 'config.log' for more details" "$LINENO" 5; } ;;
5759 esac
5760 fi
5761
5762 ac_ext=c
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767
5768
5769
5770
5771
5772
5773
5774 ac_ext=cpp
5775 ac_cpp='$CXXCPP $CPPFLAGS'
5776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5779 if test -z "$CXX"; then
5780 if test -n "$CCC"; then
5781 CXX=$CCC
5782 else
5783 if test -n "$ac_tool_prefix"; then
5784 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5785 do
5786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 printf %s "checking for $ac_word... " >&6; }
5790 if test ${ac_cv_prog_CXX+y}
5791 then :
5792 printf %s "(cached) " >&6
5793 else case e in #(
5794 e) if test -n "$CXX"; then
5795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800 IFS=$as_save_IFS
5801 case $as_dir in #(((
5802 '') as_dir=./ ;;
5803 */) ;;
5804 *) as_dir=$as_dir/ ;;
5805 esac
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi ;;
5817 esac
5818 fi
5819 CXX=$ac_cv_prog_CXX
5820 if test -n "$CXX"; then
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5822 printf "%s\n" "$CXX" >&6; }
5823 else
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 printf "%s\n" "no" >&6; }
5826 fi
5827
5828
5829 test -n "$CXX" && break
5830 done
5831 fi
5832 if test -z "$CXX"; then
5833 ac_ct_CXX=$CXX
5834 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5835 do
5836 # Extract the first word of "$ac_prog", so it can be a program name with args.
5837 set dummy $ac_prog; ac_word=$2
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 printf %s "checking for $ac_word... " >&6; }
5840 if test ${ac_cv_prog_ac_ct_CXX+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else case e in #(
5844 e) if test -n "$ac_ct_CXX"; then
5845 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 case $as_dir in #(((
5852 '') as_dir=./ ;;
5853 */) ;;
5854 *) as_dir=$as_dir/ ;;
5855 esac
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_ac_ct_CXX="$ac_prog"
5859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi ;;
5867 esac
5868 fi
5869 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5870 if test -n "$ac_ct_CXX"; then
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5872 printf "%s\n" "$ac_ct_CXX" >&6; }
5873 else
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 printf "%s\n" "no" >&6; }
5876 fi
5877
5878
5879 test -n "$ac_ct_CXX" && break
5880 done
5881
5882 if test "x$ac_ct_CXX" = x; then
5883 CXX="g++"
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886 yes:)
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5888 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889 ac_tool_warned=yes ;;
5890 esac
5891 CXX=$ac_ct_CXX
5892 fi
5893 fi
5894
5895 fi
5896 fi
5897 # Provide some information about the compiler.
5898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5899 set X $ac_compile
5900 ac_compiler=$2
5901 for ac_option in --version -v -V -qversion; do
5902 { { ac_try="$ac_compiler $ac_option >&5"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5908 printf "%s\n" "$ac_try_echo"; } >&5
5909 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5910 ac_status=$?
5911 if test -s conftest.err; then
5912 sed '10a\
5913 ... rest of stderr output deleted ...
5914 10q' conftest.err >conftest.er1
5915 cat conftest.er1 >&5
5916 fi
5917 rm -f conftest.er1 conftest.err
5918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5919 test $ac_status = 0; }
5920 done
5921
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5923 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5924 if test ${ac_cv_cxx_compiler_gnu+y}
5925 then :
5926 printf %s "(cached) " >&6
5927 else case e in #(
5928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930
5931 int
5932 main (void)
5933 {
5934 #ifndef __GNUC__
5935 choke me
5936 #endif
5937
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_cxx_try_compile "$LINENO"
5943 then :
5944 ac_compiler_gnu=yes
5945 else case e in #(
5946 e) ac_compiler_gnu=no ;;
5947 esac
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5950 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5951 ;;
5952 esac
5953 fi
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5955 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5957
5958 if test $ac_compiler_gnu = yes; then
5959 GXX=yes
5960 else
5961 GXX=
5962 fi
5963 ac_test_CXXFLAGS=${CXXFLAGS+y}
5964 ac_save_CXXFLAGS=$CXXFLAGS
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5966 printf %s "checking whether $CXX accepts -g... " >&6; }
5967 if test ${ac_cv_prog_cxx_g+y}
5968 then :
5969 printf %s "(cached) " >&6
5970 else case e in #(
5971 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5972 ac_cxx_werror_flag=yes
5973 ac_cv_prog_cxx_g=no
5974 CXXFLAGS="-g"
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977
5978 int
5979 main (void)
5980 {
5981
5982 ;
5983 return 0;
5984 }
5985 _ACEOF
5986 if ac_fn_cxx_try_compile "$LINENO"
5987 then :
5988 ac_cv_prog_cxx_g=yes
5989 else case e in #(
5990 e) CXXFLAGS=""
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993
5994 int
5995 main (void)
5996 {
5997
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_cxx_try_compile "$LINENO"
6003 then :
6004
6005 else case e in #(
6006 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6007 CXXFLAGS="-g"
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010
6011 int
6012 main (void)
6013 {
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_cxx_try_compile "$LINENO"
6020 then :
6021 ac_cv_prog_cxx_g=yes
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6024 esac
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6027 esac
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6030 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6031 esac
6032 fi
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6034 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6035 if test $ac_test_CXXFLAGS; then
6036 CXXFLAGS=$ac_save_CXXFLAGS
6037 elif test $ac_cv_prog_cxx_g = yes; then
6038 if test "$GXX" = yes; then
6039 CXXFLAGS="-g -O2"
6040 else
6041 CXXFLAGS="-g"
6042 fi
6043 else
6044 if test "$GXX" = yes; then
6045 CXXFLAGS="-O2"
6046 else
6047 CXXFLAGS=
6048 fi
6049 fi
6050 ac_prog_cxx_stdcxx=no
6051 if test x$ac_prog_cxx_stdcxx = xno
6052 then :
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6054 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6055 if test ${ac_cv_prog_cxx_cxx11+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else case e in #(
6059 e) ac_cv_prog_cxx_cxx11=no
6060 ac_save_CXX=$CXX
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 $ac_cxx_conftest_cxx11_program
6064 _ACEOF
6065 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6066 do
6067 CXX="$ac_save_CXX $ac_arg"
6068 if ac_fn_cxx_try_compile "$LINENO"
6069 then :
6070 ac_cv_prog_cxx_cxx11=$ac_arg
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext conftest.beam
6073 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6074 done
6075 rm -f conftest.$ac_ext
6076 CXX=$ac_save_CXX ;;
6077 esac
6078 fi
6079
6080 if test "x$ac_cv_prog_cxx_cxx11" = xno
6081 then :
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6083 printf "%s\n" "unsupported" >&6; }
6084 else case e in #(
6085 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6086 then :
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6088 printf "%s\n" "none needed" >&6; }
6089 else case e in #(
6090 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6091 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6092 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6093 esac
6094 fi
6095 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6096 ac_prog_cxx_stdcxx=cxx11 ;;
6097 esac
6098 fi
6099 fi
6100 if test x$ac_prog_cxx_stdcxx = xno
6101 then :
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6103 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6104 if test ${ac_cv_prog_cxx_cxx98+y}
6105 then :
6106 printf %s "(cached) " >&6
6107 else case e in #(
6108 e) ac_cv_prog_cxx_cxx98=no
6109 ac_save_CXX=$CXX
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 $ac_cxx_conftest_cxx98_program
6113 _ACEOF
6114 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6115 do
6116 CXX="$ac_save_CXX $ac_arg"
6117 if ac_fn_cxx_try_compile "$LINENO"
6118 then :
6119 ac_cv_prog_cxx_cxx98=$ac_arg
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext conftest.beam
6122 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6123 done
6124 rm -f conftest.$ac_ext
6125 CXX=$ac_save_CXX ;;
6126 esac
6127 fi
6128
6129 if test "x$ac_cv_prog_cxx_cxx98" = xno
6130 then :
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6132 printf "%s\n" "unsupported" >&6; }
6133 else case e in #(
6134 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6135 then :
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6137 printf "%s\n" "none needed" >&6; }
6138 else case e in #(
6139 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6140 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6141 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6142 esac
6143 fi
6144 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6145 ac_prog_cxx_stdcxx=cxx98 ;;
6146 esac
6147 fi
6148 fi
6149
6150 ac_ext=c
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156 depcc="$CXX" am_compiler_list=
6157
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6159 printf %s "checking dependency style of $depcc... " >&6; }
6160 if test ${am_cv_CXX_dependencies_compiler_type+y}
6161 then :
6162 printf %s "(cached) " >&6
6163 else case e in #(
6164 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6165 # We make a subdir and do the tests there. Otherwise we can end up
6166 # making bogus files that we don't know about and never remove. For
6167 # instance it was reported that on HP-UX the gcc test will end up
6168 # making a dummy file named 'D' -- because '-MD' means "put the output
6169 # in D".
6170 rm -rf conftest.dir
6171 mkdir conftest.dir
6172 # Copy depcomp to subdir because otherwise we won't find it if we're
6173 # using a relative directory.
6174 cp "$am_depcomp" conftest.dir
6175 cd conftest.dir
6176 # We will build objects and dependencies in a subdirectory because
6177 # it helps to detect inapplicable dependency modes. For instance
6178 # both Tru64's cc and ICC support -MD to output dependencies as a
6179 # side effect of compilation, but ICC will put the dependencies in
6180 # the current directory while Tru64 will put them in the object
6181 # directory.
6182 mkdir sub
6183
6184 am_cv_CXX_dependencies_compiler_type=none
6185 if test "$am_compiler_list" = ""; then
6186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6187 fi
6188 am__universal=false
6189 case " $depcc " in #(
6190 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6191 esac
6192
6193 for depmode in $am_compiler_list; do
6194 # Setup a source with many dependencies, because some compilers
6195 # like to wrap large dependency lists on column 80 (with \), and
6196 # we should not choose a depcomp mode which is confused by this.
6197 #
6198 # We need to recreate these files for each test, as the compiler may
6199 # overwrite some of them when testing with obscure command lines.
6200 # This happens at least with the AIX C compiler.
6201 : > sub/conftest.c
6202 for i in 1 2 3 4 5 6; do
6203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6204 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6205 # Solaris 10 /bin/sh.
6206 echo '/* dummy */' > sub/conftst$i.h
6207 done
6208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6209
6210 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6211 # mode. It turns out that the SunPro C++ compiler does not properly
6212 # handle '-M -o', and we need to detect this. Also, some Intel
6213 # versions had trouble with output in subdirs.
6214 am__obj=sub/conftest.${OBJEXT-o}
6215 am__minus_obj="-o $am__obj"
6216 case $depmode in
6217 gcc)
6218 # This depmode causes a compiler race in universal mode.
6219 test "$am__universal" = false || continue
6220 ;;
6221 nosideeffect)
6222 # After this tag, mechanisms are not by side-effect, so they'll
6223 # only be used when explicitly requested.
6224 if test "x$enable_dependency_tracking" = xyes; then
6225 continue
6226 else
6227 break
6228 fi
6229 ;;
6230 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6231 # This compiler won't grok '-c -o', but also, the minuso test has
6232 # not run yet. These depmodes are late enough in the game, and
6233 # so weak that their functioning should not be impacted.
6234 am__obj=conftest.${OBJEXT-o}
6235 am__minus_obj=
6236 ;;
6237 none) break ;;
6238 esac
6239 if depmode=$depmode \
6240 source=sub/conftest.c object=$am__obj \
6241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6242 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6243 >/dev/null 2>conftest.err &&
6244 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6246 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6248 # icc doesn't choke on unknown options, it will just issue warnings
6249 # or remarks (even with -Werror). So we grep stderr for any message
6250 # that says an option was ignored or not supported.
6251 # When given -MP, icc 7.0 and 7.1 complain thus:
6252 # icc: Command line warning: ignoring option '-M'; no argument required
6253 # The diagnosis changed in icc 8.0:
6254 # icc: Command line remark: option '-MP' not supported
6255 if (grep 'ignoring option' conftest.err ||
6256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6257 am_cv_CXX_dependencies_compiler_type=$depmode
6258 break
6259 fi
6260 fi
6261 done
6262
6263 cd ..
6264 rm -rf conftest.dir
6265 else
6266 am_cv_CXX_dependencies_compiler_type=none
6267 fi
6268 ;;
6269 esac
6270 fi
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6272 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6273 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6274
6275 if
6276 test "x$enable_dependency_tracking" != xno \
6277 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6278 am__fastdepCXX_TRUE=
6279 am__fastdepCXX_FALSE='#'
6280 else
6281 am__fastdepCXX_TRUE='#'
6282 am__fastdepCXX_FALSE=
6283 fi
6284
6285
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 printf %s "checking for $ac_word... " >&6; }
6291 if test ${ac_cv_prog_RANLIB+y}
6292 then :
6293 printf %s "(cached) " >&6
6294 else case e in #(
6295 e) if test -n "$RANLIB"; then
6296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 case $as_dir in #(((
6303 '') as_dir=./ ;;
6304 */) ;;
6305 *) as_dir=$as_dir/ ;;
6306 esac
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi ;;
6318 esac
6319 fi
6320 RANLIB=$ac_cv_prog_RANLIB
6321 if test -n "$RANLIB"; then
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6323 printf "%s\n" "$RANLIB" >&6; }
6324 else
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 printf "%s\n" "no" >&6; }
6327 fi
6328
6329
6330 fi
6331 if test -z "$ac_cv_prog_RANLIB"; then
6332 ac_ct_RANLIB=$RANLIB
6333 # Extract the first word of "ranlib", so it can be a program name with args.
6334 set dummy ranlib; ac_word=$2
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 printf %s "checking for $ac_word... " >&6; }
6337 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6338 then :
6339 printf %s "(cached) " >&6
6340 else case e in #(
6341 e) if test -n "$ac_ct_RANLIB"; then
6342 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347 IFS=$as_save_IFS
6348 case $as_dir in #(((
6349 '') as_dir=./ ;;
6350 */) ;;
6351 *) as_dir=$as_dir/ ;;
6352 esac
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_ac_ct_RANLIB="ranlib"
6356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi ;;
6364 esac
6365 fi
6366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6367 if test -n "$ac_ct_RANLIB"; then
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6369 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6370 else
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 printf "%s\n" "no" >&6; }
6373 fi
6374
6375 if test "x$ac_ct_RANLIB" = x; then
6376 RANLIB=":"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 RANLIB=$ac_ct_RANLIB
6385 fi
6386 else
6387 RANLIB="$ac_cv_prog_RANLIB"
6388 fi
6389
6390 # Set LTO_RANLIB variable to an lto enabled ranlib
6391 if test "x$LTO_RANLIB" = "x"; then
6392 for ac_prog in gcc-ranlib
6393 do
6394 # Extract the first word of "$ac_prog", so it can be a program name with args.
6395 set dummy $ac_prog; ac_word=$2
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 printf %s "checking for $ac_word... " >&6; }
6398 if test ${ac_cv_path_LTO_RANLIB+y}
6399 then :
6400 printf %s "(cached) " >&6
6401 else case e in #(
6402 e) case $LTO_RANLIB in
6403 [\\/]* | ?:[\\/]*)
6404 ac_cv_path_LTO_RANLIB="$LTO_RANLIB" # Let the user override the test with a path.
6405 ;;
6406 *)
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410 IFS=$as_save_IFS
6411 case $as_dir in #(((
6412 '') as_dir=./ ;;
6413 */) ;;
6414 *) as_dir=$as_dir/ ;;
6415 esac
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6418 ac_cv_path_LTO_RANLIB="$as_dir$ac_word$ac_exec_ext"
6419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426 ;;
6427 esac ;;
6428 esac
6429 fi
6430 LTO_RANLIB=$ac_cv_path_LTO_RANLIB
6431 if test -n "$LTO_RANLIB"; then
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LTO_RANLIB" >&5
6433 printf "%s\n" "$LTO_RANLIB" >&6; }
6434 else
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 printf "%s\n" "no" >&6; }
6437 fi
6438
6439
6440 test -n "$LTO_RANLIB" && break
6441 done
6442
6443 fi
6444
6445
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6447 printf %s "checking for a sed that does not truncate output... " >&6; }
6448 if test ${ac_cv_path_SED+y}
6449 then :
6450 printf %s "(cached) " >&6
6451 else case e in #(
6452 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6453 for ac_i in 1 2 3 4 5 6 7; do
6454 ac_script="$ac_script$as_nl$ac_script"
6455 done
6456 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6457 { ac_script=; unset ac_script;}
6458 if test -z "$SED"; then
6459 ac_path_SED_found=false
6460 # Loop through the user's path and test for each of PROGNAME-LIST
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 case $as_dir in #(((
6466 '') as_dir=./ ;;
6467 */) ;;
6468 *) as_dir=$as_dir/ ;;
6469 esac
6470 for ac_prog in sed gsed
6471 do
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6474 as_fn_executable_p "$ac_path_SED" || continue
6475 # Check for GNU ac_path_SED and select it if it is found.
6476 # Check for GNU $ac_path_SED
6477 case `"$ac_path_SED" --version 2>&1` in #(
6478 *GNU*)
6479 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6480 #(
6481 *)
6482 ac_count=0
6483 printf %s 0123456789 >"conftest.in"
6484 while :
6485 do
6486 cat "conftest.in" "conftest.in" >"conftest.tmp"
6487 mv "conftest.tmp" "conftest.in"
6488 cp "conftest.in" "conftest.nl"
6489 printf "%s\n" '' >> "conftest.nl"
6490 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6492 as_fn_arith $ac_count + 1 && ac_count=$as_val
6493 if test $ac_count -gt ${ac_path_SED_max-0}; then
6494 # Best one so far, save it but keep looking for a better one
6495 ac_cv_path_SED="$ac_path_SED"
6496 ac_path_SED_max=$ac_count
6497 fi
6498 # 10*(2^10) chars as input seems more than enough
6499 test $ac_count -gt 10 && break
6500 done
6501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6502 esac
6503
6504 $ac_path_SED_found && break 3
6505 done
6506 done
6507 done
6508 IFS=$as_save_IFS
6509 if test -z "$ac_cv_path_SED"; then
6510 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6511 fi
6512 else
6513 ac_cv_path_SED=$SED
6514 fi
6515 ;;
6516 esac
6517 fi
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6519 printf "%s\n" "$ac_cv_path_SED" >&6; }
6520 SED="$ac_cv_path_SED"
6521 rm -f conftest.sed
6522
6523
6524
6525
6526 for ac_prog in gsha256sum sha256sum
6527 do
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529 set dummy $ac_prog; ac_word=$2
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 printf %s "checking for $ac_word... " >&6; }
6532 if test ${ac_cv_prog_SHA256SUM+y}
6533 then :
6534 printf %s "(cached) " >&6
6535 else case e in #(
6536 e) if test -n "$SHA256SUM"; then
6537 ac_cv_prog_SHA256SUM="$SHA256SUM" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542 IFS=$as_save_IFS
6543 case $as_dir in #(((
6544 '') as_dir=./ ;;
6545 */) ;;
6546 *) as_dir=$as_dir/ ;;
6547 esac
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_SHA256SUM="$ac_prog"
6551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 fi ;;
6559 esac
6560 fi
6561 SHA256SUM=$ac_cv_prog_SHA256SUM
6562 if test -n "$SHA256SUM"; then
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHA256SUM" >&5
6564 printf "%s\n" "$SHA256SUM" >&6; }
6565 else
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 printf "%s\n" "no" >&6; }
6568 fi
6569
6570
6571 test -n "$SHA256SUM" && break
6572 done
6573
6574
6575 # If no AR variable was specified, look up the name of the archiver. Otherwise
6576 # do not touch the AR variable.
6577 if test "x$AR" = "x"; then
6578 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
6579 do
6580 # Extract the first word of "$ac_prog", so it can be a program name with args.
6581 set dummy $ac_prog; ac_word=$2
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 printf %s "checking for $ac_word... " >&6; }
6584 if test ${ac_cv_path_AR+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else case e in #(
6588 e) case $AR in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596 IFS=$as_save_IFS
6597 case $as_dir in #(((
6598 '') as_dir=./ ;;
6599 */) ;;
6600 *) as_dir=$as_dir/ ;;
6601 esac
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6604 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
6605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 ;;
6613 esac ;;
6614 esac
6615 fi
6616 AR=$ac_cv_path_AR
6617 if test -n "$AR"; then
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6619 printf "%s\n" "$AR" >&6; }
6620 else
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 printf "%s\n" "no" >&6; }
6623 fi
6624
6625
6626 test -n "$AR" && break
6627 done
6628 test -n "$AR" || AR="ar"
6629
6630 fi
6631
6632
6633 # same for LTO_AR variable for lto enabled archiver
6634 if test "x$LTO_AR" = "x"; then
6635 for ac_prog in gcc-ar
6636 do
6637 # Extract the first word of "$ac_prog", so it can be a program name with args.
6638 set dummy $ac_prog; ac_word=$2
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 printf %s "checking for $ac_word... " >&6; }
6641 if test ${ac_cv_path_LTO_AR+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else case e in #(
6645 e) case $LTO_AR in
6646 [\\/]* | ?:[\\/]*)
6647 ac_cv_path_LTO_AR="$LTO_AR" # Let the user override the test with a path.
6648 ;;
6649 *)
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653 IFS=$as_save_IFS
6654 case $as_dir in #(((
6655 '') as_dir=./ ;;
6656 */) ;;
6657 *) as_dir=$as_dir/ ;;
6658 esac
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6661 ac_cv_path_LTO_AR="$as_dir$ac_word$ac_exec_ext"
6662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 ;;
6670 esac ;;
6671 esac
6672 fi
6673 LTO_AR=$ac_cv_path_LTO_AR
6674 if test -n "$LTO_AR"; then
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LTO_AR" >&5
6676 printf "%s\n" "$LTO_AR" >&6; }
6677 else
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 printf "%s\n" "no" >&6; }
6680 fi
6681
6682
6683 test -n "$LTO_AR" && break
6684 done
6685
6686 fi
6687
6688
6689 # figure out where perl lives
6690 # Extract the first word of "perl", so it can be a program name with args.
6691 set dummy perl; ac_word=$2
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 printf %s "checking for $ac_word... " >&6; }
6694 if test ${ac_cv_path_PERL+y}
6695 then :
6696 printf %s "(cached) " >&6
6697 else case e in #(
6698 e) case $PERL in
6699 [\\/]* | ?:[\\/]*)
6700 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6701 ;;
6702 *)
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 case $as_dir in #(((
6708 '') as_dir=./ ;;
6709 */) ;;
6710 *) as_dir=$as_dir/ ;;
6711 esac
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6714 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
6715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 ;;
6723 esac ;;
6724 esac
6725 fi
6726 PERL=$ac_cv_path_PERL
6727 if test -n "$PERL"; then
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6729 printf "%s\n" "$PERL" >&6; }
6730 else
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 printf "%s\n" "no" >&6; }
6733 fi
6734
6735
6736
6737 # figure out where gdb lives
6738 # Extract the first word of "gdb", so it can be a program name with args.
6739 set dummy gdb; ac_word=$2
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 printf %s "checking for $ac_word... " >&6; }
6742 if test ${ac_cv_path_GDB+y}
6743 then :
6744 printf %s "(cached) " >&6
6745 else case e in #(
6746 e) case $GDB in
6747 [\\/]* | ?:[\\/]*)
6748 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
6749 ;;
6750 *)
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 case $as_dir in #(((
6756 '') as_dir=./ ;;
6757 */) ;;
6758 *) as_dir=$as_dir/ ;;
6759 esac
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6762 ac_cv_path_GDB="$as_dir$ac_word$ac_exec_ext"
6763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
6771 ;;
6772 esac ;;
6773 esac
6774 fi
6775 GDB=$ac_cv_path_GDB
6776 if test -n "$GDB"; then
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
6778 printf "%s\n" "$GDB" >&6; }
6779 else
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 printf "%s\n" "no" >&6; }
6782 fi
6783
6784
6785
6786 printf "%s\n" "#define GDB_PATH \"$GDB\"" >>confdefs.h
6787
6788
6789 # figure out how to compile assembler sources
6790 # By default we simply use the C compiler to build assembly code.
6791
6792 test "${CCAS+set}" = set || CCAS=$CC
6793 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6794
6795
6796
6797 depcc="$CCAS" am_compiler_list=
6798
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6800 printf %s "checking dependency style of $depcc... " >&6; }
6801 if test ${am_cv_CCAS_dependencies_compiler_type+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else case e in #(
6805 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6806 # We make a subdir and do the tests there. Otherwise we can end up
6807 # making bogus files that we don't know about and never remove. For
6808 # instance it was reported that on HP-UX the gcc test will end up
6809 # making a dummy file named 'D' -- because '-MD' means "put the output
6810 # in D".
6811 rm -rf conftest.dir
6812 mkdir conftest.dir
6813 # Copy depcomp to subdir because otherwise we won't find it if we're
6814 # using a relative directory.
6815 cp "$am_depcomp" conftest.dir
6816 cd conftest.dir
6817 # We will build objects and dependencies in a subdirectory because
6818 # it helps to detect inapplicable dependency modes. For instance
6819 # both Tru64's cc and ICC support -MD to output dependencies as a
6820 # side effect of compilation, but ICC will put the dependencies in
6821 # the current directory while Tru64 will put them in the object
6822 # directory.
6823 mkdir sub
6824
6825 am_cv_CCAS_dependencies_compiler_type=none
6826 if test "$am_compiler_list" = ""; then
6827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6828 fi
6829 am__universal=false
6830
6831
6832 for depmode in $am_compiler_list; do
6833 # Setup a source with many dependencies, because some compilers
6834 # like to wrap large dependency lists on column 80 (with \), and
6835 # we should not choose a depcomp mode which is confused by this.
6836 #
6837 # We need to recreate these files for each test, as the compiler may
6838 # overwrite some of them when testing with obscure command lines.
6839 # This happens at least with the AIX C compiler.
6840 : > sub/conftest.c
6841 for i in 1 2 3 4 5 6; do
6842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6843 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6844 # Solaris 10 /bin/sh.
6845 echo '/* dummy */' > sub/conftst$i.h
6846 done
6847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6848
6849 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6850 # mode. It turns out that the SunPro C++ compiler does not properly
6851 # handle '-M -o', and we need to detect this. Also, some Intel
6852 # versions had trouble with output in subdirs.
6853 am__obj=sub/conftest.${OBJEXT-o}
6854 am__minus_obj="-o $am__obj"
6855 case $depmode in
6856 gcc)
6857 # This depmode causes a compiler race in universal mode.
6858 test "$am__universal" = false || continue
6859 ;;
6860 nosideeffect)
6861 # After this tag, mechanisms are not by side-effect, so they'll
6862 # only be used when explicitly requested.
6863 if test "x$enable_dependency_tracking" = xyes; then
6864 continue
6865 else
6866 break
6867 fi
6868 ;;
6869 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6870 # This compiler won't grok '-c -o', but also, the minuso test has
6871 # not run yet. These depmodes are late enough in the game, and
6872 # so weak that their functioning should not be impacted.
6873 am__obj=conftest.${OBJEXT-o}
6874 am__minus_obj=
6875 ;;
6876 none) break ;;
6877 esac
6878 if depmode=$depmode \
6879 source=sub/conftest.c object=$am__obj \
6880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6882 >/dev/null 2>conftest.err &&
6883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6887 # icc doesn't choke on unknown options, it will just issue warnings
6888 # or remarks (even with -Werror). So we grep stderr for any message
6889 # that says an option was ignored or not supported.
6890 # When given -MP, icc 7.0 and 7.1 complain thus:
6891 # icc: Command line warning: ignoring option '-M'; no argument required
6892 # The diagnosis changed in icc 8.0:
6893 # icc: Command line remark: option '-MP' not supported
6894 if (grep 'ignoring option' conftest.err ||
6895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6896 am_cv_CCAS_dependencies_compiler_type=$depmode
6897 break
6898 fi
6899 fi
6900 done
6901
6902 cd ..
6903 rm -rf conftest.dir
6904 else
6905 am_cv_CCAS_dependencies_compiler_type=none
6906 fi
6907 ;;
6908 esac
6909 fi
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6911 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6912 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6913
6914 if
6915 test "x$enable_dependency_tracking" != xno \
6916 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6917 am__fastdepCCAS_TRUE=
6918 am__fastdepCCAS_FALSE='#'
6919 else
6920 am__fastdepCCAS_TRUE='#'
6921 am__fastdepCCAS_FALSE=
6922 fi
6923
6924
6925
6926 # Check if 'diff' supports -u (universal diffs) and use it if possible.
6927
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
6929 printf %s "checking for diff -u... " >&6; }
6930
6931
6932 # Comparing two identical files results in 0.
6933 tmpfile="tmp-xxx-yyy-zzz"
6934 touch $tmpfile;
6935 if diff -u $tmpfile $tmpfile ; then
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6937 printf "%s\n" "yes" >&6; }
6938 DIFF="diff -u"
6939 else
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 printf "%s\n" "no" >&6; }
6942 DIFF="diff"
6943 fi
6944 rm $tmpfile
6945
6946 # We don't want gcc < 3.0
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
6948 printf %s "checking for a supported version of gcc... " >&6; }
6949
6950 # Obtain the compiler version.
6951 #
6952 # A few examples of how the ${CC} --version output looks like:
6953 #
6954 # ######## gcc variants ########
6955 # Arch Linux: i686-pc-linux-gnu-gcc (GCC) 4.6.2
6956 # Debian Linux: gcc (Debian 4.3.2-1.1) 4.3.2
6957 # openSUSE: gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]
6958 # Exherbo Linux: x86_64-pc-linux-gnu-gcc (Exherbo gcc-4.6.2) 4.6.2
6959 # MontaVista Linux for ARM: arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3
6960 # OS/X 10.6: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
6961 # OS/X 10.7: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
6962 #
6963 # ######## clang variants ########
6964 # Clang: clang version 2.9 (tags/RELEASE_29/final)
6965 # Apple clang: Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
6966 # FreeBSD clang: FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
6967 #
6968 # ######## Apple LLVM variants ########
6969 # Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
6970 # Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
6971 #
6972
6973 if test "x`${CC} --version | $SED -n -e 's/.*\Apple \(LLVM\) version.*clang.*/\1/p'`" = "xLLVM" ;
6974 then
6975 is_clang="applellvm"
6976 gcc_version=`${CC} --version | $SED -n -e 's/.*LLVM version \([0-9.]*\).*$/\1/p'`
6977 elif test "x`${CC} --version | $SED -n -e 's/.*\(clang\) version.*/\1/p'`" = "xclang" ;
6978 then
6979 is_clang="clang"
6980 # Don't use -dumpversion with clang: it will always produce "4.2.1".
6981 gcc_version=`${CC} --version | $SED -n -e 's/.*clang version \([0-9.]*\).*$/\1/p'`
6982 elif test "x`${CC} --version | $SED -n -e 's/icc.*\(ICC\).*/\1/p'`" = "xICC" ;
6983 then
6984 is_clang="icc"
6985 gcc_version=`${CC} -dumpversion 2>/dev/null`
6986 else
6987 is_clang="notclang"
6988 gcc_version=`${CC} -dumpversion 2>/dev/null`
6989 if test "x$gcc_version" = x; then
6990 gcc_version=`${CC} --version | $SED -n -e 's/[^ ]*gcc[^ ]* ([^)]*) \([0-9.]*\).*$/\1/p'`
6991 fi
6992 fi
6993
6994 if test $is_clang = clang -o $is_clang = applellvm; then
6995 COMPILER_IS_CLANG_TRUE=
6996 COMPILER_IS_CLANG_FALSE='#'
6997 else
6998 COMPILER_IS_CLANG_TRUE='#'
6999 COMPILER_IS_CLANG_FALSE=
7000 fi
7001
7002 if test $is_clang = icc; then
7003 COMPILER_IS_ICC_TRUE=
7004 COMPILER_IS_ICC_FALSE='#'
7005 else
7006 COMPILER_IS_ICC_TRUE='#'
7007 COMPILER_IS_ICC_FALSE=
7008 fi
7009
7010
7011 # Note: m4 arguments are quoted with [ and ] so square brackets in shell
7012 # statements have to be quoted.
7013 case "${is_clang}-${gcc_version}" in
7014 applellvm-5.1|applellvm-[6-9].*|applellvm-[1-9][0-9]*)
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (Apple LLVM version ${gcc_version})" >&5
7016 printf "%s\n" "ok (Apple LLVM version ${gcc_version})" >&6; }
7017 ;;
7018 icc-1[3-9].*|icc-202[0-9].*)
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (ICC version ${gcc_version})" >&5
7020 printf "%s\n" "ok (ICC version ${gcc_version})" >&6; }
7021 ;;
7022 notclang-[3-9]|notclang-[3-9].*|notclang-[1-9][0-9]*)
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
7024 printf "%s\n" "ok (${gcc_version})" >&6; }
7025 ;;
7026 clang-2.9|clang-[3-9].*|clang-[1-9][0-9]*)
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (clang-${gcc_version})" >&5
7028 printf "%s\n" "ok (clang-${gcc_version})" >&6; }
7029 ;;
7030 *)
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (${is_clang}-${gcc_version})" >&5
7032 printf "%s\n" "no (${is_clang}-${gcc_version})" >&6; }
7033 as_fn_error $? "please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0 or Apple LLVM >= 5.1" "$LINENO" 5
7034 ;;
7035 esac
7036
7037 #----------------------------------------------------------------------------
7038 # Arch/OS/platform tests.
7039 #----------------------------------------------------------------------------
7040 # We create a number of arch/OS/platform-related variables. We prefix them
7041 # all with "VGCONF_" which indicates that they are defined at
7042 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
7043 # variables used when compiling C files.
7044
7045
7046
7047 # Make sure we can run config.sub.
7048 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7049 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7050
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7052 printf %s "checking build system type... " >&6; }
7053 if test ${ac_cv_build+y}
7054 then :
7055 printf %s "(cached) " >&6
7056 else case e in #(
7057 e) ac_build_alias=$build_alias
7058 test "x$ac_build_alias" = x &&
7059 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7060 test "x$ac_build_alias" = x &&
7061 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7062 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7063 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7064 ;;
7065 esac
7066 fi
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7068 printf "%s\n" "$ac_cv_build" >&6; }
7069 case $ac_cv_build in
7070 *-*-*) ;;
7071 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7072 esac
7073 build=$ac_cv_build
7074 ac_save_IFS=$IFS; IFS='-'
7075 set x $ac_cv_build
7076 shift
7077 build_cpu=$1
7078 build_vendor=$2
7079 shift; shift
7080 # Remember, the first character of IFS is used to create $*,
7081 # except with old shells:
7082 build_os=$*
7083 IFS=$ac_save_IFS
7084 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7085
7086
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7088 printf %s "checking host system type... " >&6; }
7089 if test ${ac_cv_host+y}
7090 then :
7091 printf %s "(cached) " >&6
7092 else case e in #(
7093 e) if test "x$host_alias" = x; then
7094 ac_cv_host=$ac_cv_build
7095 else
7096 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7097 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7098 fi
7099 ;;
7100 esac
7101 fi
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7103 printf "%s\n" "$ac_cv_host" >&6; }
7104 case $ac_cv_host in
7105 *-*-*) ;;
7106 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7107 esac
7108 host=$ac_cv_host
7109 ac_save_IFS=$IFS; IFS='-'
7110 set x $ac_cv_host
7111 shift
7112 host_cpu=$1
7113 host_vendor=$2
7114 shift; shift
7115 # Remember, the first character of IFS is used to create $*,
7116 # except with old shells:
7117 host_os=$*
7118 IFS=$ac_save_IFS
7119 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7120
7121
7122
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
7124 printf %s "checking for a supported CPU... " >&6; }
7125
7126 # ARCH_MAX reflects the most that this CPU can do: for example if it
7127 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
7128 # Ditto for amd64. It is used for more configuration below, but is not used
7129 # outside this file.
7130 #
7131 # Power PC returns powerpc for Big Endian. This was not changed when Little
7132 # Endian support was added to the 64-bit architecture. The 64-bit Little
7133 # Endian systems explicitly state le in the host_cpu. For clarity in the
7134 # Valgrind code, the ARCH_MAX name will state LE or BE for the endianness of
7135 # the 64-bit system. Big Endian is the only mode supported on 32-bit Power PC.
7136 # The abreviation PPC or ppc refers to 32-bit and 64-bit systems with either
7137 # Endianness. The name PPC64 or ppc64 to 64-bit systems of either Endianness.
7138 # The names ppc64be or PPC64BE refer to only 64-bit systems that are Big
7139 # Endian. Similarly, ppc64le or PPC64LE refer to only 64-bit systems that are
7140 # Little Endian.
7141
7142 VGCONF_PLATFORM_ARM_ARCH=
7143
7144 case "${host_cpu}" in
7145 i?86)
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7147 printf "%s\n" "ok (${host_cpu})" >&6; }
7148 ARCH_MAX="x86"
7149 ;;
7150
7151 x86_64|amd64)
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7153 printf "%s\n" "ok (${host_cpu})" >&6; }
7154 ARCH_MAX="amd64"
7155 ;;
7156
7157 powerpc64)
7158 # this only referrs to 64-bit Big Endian
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7160 printf "%s\n" "ok (${host_cpu})" >&6; }
7161 ARCH_MAX="ppc64be"
7162 ;;
7163
7164 powerpc64le)
7165 # this only referrs to 64-bit Little Endian
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7167 printf "%s\n" "ok (${host_cpu})" >&6; }
7168 ARCH_MAX="ppc64le"
7169 ;;
7170
7171 powerpc)
7172 # On Linux this means only a 32-bit capable CPU.
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7174 printf "%s\n" "ok (${host_cpu})" >&6; }
7175 ARCH_MAX="ppc32"
7176 ;;
7177
7178 s390x)
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7180 printf "%s\n" "ok (${host_cpu})" >&6; }
7181 ARCH_MAX="s390x"
7182 ;;
7183
7184 armv8*)
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7186 printf "%s\n" "ok (${host_cpu})" >&6; }
7187 VGCONF_PLATFORM_ARM_ARCH="-marm -mcpu=cortex-a8"
7188 ARCH_MAX="arm"
7189 ;;
7190
7191 armv7*)
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7193 printf "%s\n" "ok (${host_cpu})" >&6; }
7194 VGCONF_PLATFORM_ARM_ARCH="-marm -mcpu=cortex-a8"
7195 ARCH_MAX="arm"
7196 ;;
7197
7198 arm*)
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7200 printf "%s\n" "ok (${host_cpu})" >&6; }
7201 VGCONF_PLATFORM_ARM_ARCH="-march=armv6"
7202 ARCH_MAX="arm"
7203 ;;
7204
7205 aarch64*)
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7207 printf "%s\n" "ok (${host_cpu})" >&6; }
7208 ARCH_MAX="arm64"
7209 ;;
7210
7211 mips)
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7213 printf "%s\n" "ok (${host_cpu})" >&6; }
7214 ARCH_MAX="mips32"
7215 ;;
7216
7217 mipsel)
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7219 printf "%s\n" "ok (${host_cpu})" >&6; }
7220 ARCH_MAX="mips32"
7221 ;;
7222
7223 mipsisa32r2)
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7225 printf "%s\n" "ok (${host_cpu})" >&6; }
7226 ARCH_MAX="mips32"
7227 ;;
7228
7229 mips64*)
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7231 printf "%s\n" "ok (${host_cpu})" >&6; }
7232 ARCH_MAX="mips64"
7233 ;;
7234
7235 mipsisa64*)
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7237 printf "%s\n" "ok (${host_cpu})" >&6; }
7238 ARCH_MAX="mips64"
7239 ;;
7240 nanomips)
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7242 printf "%s\n" "ok (${host_cpu})" >&6; }
7243 ARCH_MAX="nanomips"
7244 ;;
7245
7246 riscv64)
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
7248 printf "%s\n" "ok (${host_cpu})" >&6; }
7249 ARCH_MAX="riscv64"
7250 ;;
7251
7252 *)
7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
7254 printf "%s\n" "no (${host_cpu})" >&6; }
7255 as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
7256 ;;
7257 esac
7258
7259
7260
7261 #----------------------------------------------------------------------------
7262
7263 # Sometimes it's convenient to subvert the bi-arch build system and
7264 # just have a single build even though the underlying platform is
7265 # capable of both. Hence handle --enable-only64bit and
7266 # --enable-only32bit. Complain if both are issued :-)
7267 # [Actually, if either of these options are used, I think both get built,
7268 # but only one gets installed. So if you use an in-place build, both can be
7269 # used. --njn]
7270
7271 # Check if a 64-bit only build has been requested
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
7273 printf %s "checking for a 64-bit only build... " >&6; }
7274 if test ${vg_cv_only64bit+y}
7275 then :
7276 printf %s "(cached) " >&6
7277 else case e in #(
7278 e) # Check whether --enable-only64bit was given.
7279 if test ${enable_only64bit+y}
7280 then :
7281 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
7282 else case e in #(
7283 e) vg_cv_only64bit=no ;;
7284 esac
7285 fi
7286 ;;
7287 esac
7288 fi
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
7290 printf "%s\n" "$vg_cv_only64bit" >&6; }
7291
7292 # Check if a 32-bit only build has been requested
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
7294 printf %s "checking for a 32-bit only build... " >&6; }
7295 if test ${vg_cv_only32bit+y}
7296 then :
7297 printf %s "(cached) " >&6
7298 else case e in #(
7299 e) # Check whether --enable-only32bit was given.
7300 if test ${enable_only32bit+y}
7301 then :
7302 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
7303 else case e in #(
7304 e) vg_cv_only32bit=no ;;
7305 esac
7306 fi
7307 ;;
7308 esac
7309 fi
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
7311 printf "%s\n" "$vg_cv_only32bit" >&6; }
7312
7313 # Stay sane
7314 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
7315 as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
7316 fi
7317
7318 #----------------------------------------------------------------------------
7319
7320 # VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
7321 # compilation of many C files via -VGO_$(VGCONF_OS) and
7322 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
7324 printf %s "checking for a supported OS... " >&6; }
7325
7326
7327 DEFAULT_SUPP=""
7328
7329 case "${host_os}" in
7330 *linux*)
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
7332 printf "%s\n" "ok (${host_os})" >&6; }
7333 VGCONF_OS="linux"
7334
7335 # Ok, this is linux. Check the kernel version
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
7337 printf %s "checking for the kernel version... " >&6; }
7338
7339 kernel=`uname -r`
7340
7341 case "${kernel}" in
7342 0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*)
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
7344 printf "%s\n" "unsupported (${kernel})" >&6; }
7345 as_fn_error $? "Valgrind needs a Linux kernel >= 2.6" "$LINENO" 5
7346 ;;
7347
7348 *)
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 2.6 or later (${kernel})" >&5
7350 printf "%s\n" "2.6 or later (${kernel})" >&6; }
7351 ;;
7352 esac
7353
7354 ;;
7355
7356 *freebsd*)
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
7358 printf "%s\n" "ok (${host_os})" >&6; }
7359 VGCONF_OS="freebsd"
7360
7361 DEFAULT_SUPP="$srcdir/freebsd.supp $srcdir/freebsd-helgrind.supp $srcdir/freebsd-drd.supp ${DEFAULT_SUPP}"
7362 ;;
7363
7364 *darwin*)
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
7366 printf "%s\n" "ok (${host_os})" >&6; }
7367 VGCONF_OS="darwin"
7368
7369 printf "%s\n" "#define DARWIN_10_5 100500" >>confdefs.h
7370
7371
7372 printf "%s\n" "#define DARWIN_10_6 100600" >>confdefs.h
7373
7374
7375 printf "%s\n" "#define DARWIN_10_7 100700" >>confdefs.h
7376
7377
7378 printf "%s\n" "#define DARWIN_10_8 100800" >>confdefs.h
7379
7380
7381 printf "%s\n" "#define DARWIN_10_9 100900" >>confdefs.h
7382
7383
7384 printf "%s\n" "#define DARWIN_10_10 101000" >>confdefs.h
7385
7386
7387 printf "%s\n" "#define DARWIN_10_11 101100" >>confdefs.h
7388
7389
7390 printf "%s\n" "#define DARWIN_10_12 101200" >>confdefs.h
7391
7392
7393 printf "%s\n" "#define DARWIN_10_13 101300" >>confdefs.h
7394
7395
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
7397 printf %s "checking for the kernel version... " >&6; }
7398 kernel=`uname -r`
7399
7400 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
7401 # has only one relevant version, the OS version. The `uname` check
7402 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
7403 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard,
7404 # and possibly "Darwin 11.x" is Mac OS X 10.7.x Lion),
7405 # and we don't know of an macros similar to __GLIBC__ to get that info.
7406 #
7407 # XXX: `uname -r` won't do the right thing for cross-compiles, but
7408 # that's not a problem yet.
7409 #
7410 # jseward 21 Sept 2011: I seriously doubt whether V 3.7.0 will work
7411 # on OS X 10.5.x; I haven't tested yet, and only plan to test 3.7.0
7412 # on 10.6.8 and 10.7.1. Although tempted to delete the configure
7413 # time support for 10.5 (the 9.* pattern just below), I'll leave it
7414 # in for now, just in case anybody wants to give it a try. But I'm
7415 # assuming that 3.7.0 is a Snow Leopard and Lion-only release.
7416 case "${kernel}" in
7417 9.*)
7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
7419 printf "%s\n" "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
7420
7421 printf "%s\n" "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
7422
7423 DEFAULT_SUPP="$srcdir/darwin9.supp ${DEFAULT_SUPP}"
7424 DEFAULT_SUPP="$srcdir/darwin9-drd.supp ${DEFAULT_SUPP}"
7425 ;;
7426 10.*)
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
7428 printf "%s\n" "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
7429
7430 printf "%s\n" "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
7431
7432 DEFAULT_SUPP="$srcdir/darwin10.supp ${DEFAULT_SUPP}"
7433 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7434 ;;
7435 11.*)
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&5
7437 printf "%s\n" "Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&6; }
7438
7439 printf "%s\n" "#define DARWIN_VERS DARWIN_10_7" >>confdefs.h
7440
7441 DEFAULT_SUPP="$srcdir/darwin11.supp ${DEFAULT_SUPP}"
7442 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7443 ;;
7444 12.*)
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&5
7446 printf "%s\n" "Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&6; }
7447
7448 printf "%s\n" "#define DARWIN_VERS DARWIN_10_8" >>confdefs.h
7449
7450 DEFAULT_SUPP="$srcdir/darwin12.supp ${DEFAULT_SUPP}"
7451 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7452 ;;
7453 13.*)
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&5
7455 printf "%s\n" "Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&6; }
7456
7457 printf "%s\n" "#define DARWIN_VERS DARWIN_10_9" >>confdefs.h
7458
7459 DEFAULT_SUPP="$srcdir/darwin13.supp ${DEFAULT_SUPP}"
7460 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7461 ;;
7462 14.*)
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&5
7464 printf "%s\n" "Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&6; }
7465
7466 printf "%s\n" "#define DARWIN_VERS DARWIN_10_10" >>confdefs.h
7467
7468 DEFAULT_SUPP="$srcdir/darwin14.supp ${DEFAULT_SUPP}"
7469 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7470 ;;
7471 15.*)
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&5
7473 printf "%s\n" "Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&6; }
7474
7475 printf "%s\n" "#define DARWIN_VERS DARWIN_10_11" >>confdefs.h
7476
7477 DEFAULT_SUPP="$srcdir/darwin15.supp ${DEFAULT_SUPP}"
7478 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7479 ;;
7480 16.*)
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&5
7482 printf "%s\n" "Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&6; }
7483
7484 printf "%s\n" "#define DARWIN_VERS DARWIN_10_12" >>confdefs.h
7485
7486 DEFAULT_SUPP="$srcdir/darwin16.supp ${DEFAULT_SUPP}"
7487 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7488 ;;
7489 17.*)
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin 17.x (${kernel}) / macOS 10.13 High Sierra" >&5
7491 printf "%s\n" "Darwin 17.x (${kernel}) / macOS 10.13 High Sierra" >&6; }
7492
7493 printf "%s\n" "#define DARWIN_VERS DARWIN_10_13" >>confdefs.h
7494
7495 DEFAULT_SUPP="$srcdir/darwin17.supp ${DEFAULT_SUPP}"
7496 DEFAULT_SUPP="$srcdir/darwin10-drd.supp ${DEFAULT_SUPP}"
7497 ;;
7498 *)
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
7500 printf "%s\n" "unsupported (${kernel})" >&6; }
7501 as_fn_error $? "Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x and 17.x (Mac OS X 10.6/7/8/9/10/11 and macOS 10.12/13)" "$LINENO" 5
7502 ;;
7503 esac
7504 ;;
7505
7506 solaris2.11*)
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
7508 printf "%s\n" "ok (${host_os})" >&6; }
7509 VGCONF_OS="solaris"
7510
7511 uname_v=$( uname -v )
7512 case "$uname_v" in
7513 11.4.*)
7514 DEFAULT_SUPP="$srcdir/solaris12.supp ${DEFAULT_SUPP}"
7515 ;;
7516 *)
7517 DEFAULT_SUPP="$srcdir/solaris11.supp ${DEFAULT_SUPP}"
7518 ;;
7519 esac
7520 ;;
7521
7522 solaris2.12*)
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
7524 printf "%s\n" "ok (${host_os})" >&6; }
7525 VGCONF_OS="solaris"
7526 DEFAULT_SUPP="$srcdir/solaris12.supp ${DEFAULT_SUPP}"
7527 ;;
7528
7529 *)
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
7531 printf "%s\n" "no (${host_os})" >&6; }
7532 as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
7533 ;;
7534 esac
7535
7536 #----------------------------------------------------------------------------
7537
7538 # If we are building on a 64 bit platform test to see if the system
7539 # supports building 32 bit programs and disable 32 bit support if it
7540 # does not support building 32 bit programs
7541
7542 case "$ARCH_MAX-$VGCONF_OS" in
7543 amd64-linux|ppc64be-linux|arm64-linux|amd64-solaris)
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
7545 printf %s "checking for 32 bit build support... " >&6; }
7546 safe_CFLAGS=$CFLAGS
7547 CFLAGS="-m32"
7548
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551
7552 int
7553 main (void)
7554 {
7555
7556 return 0;
7557
7558 ;
7559 return 0;
7560 }
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"
7563 then :
7564
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 printf "%s\n" "yes" >&6; }
7567
7568 else case e in #(
7569 e)
7570 vg_cv_only64bit="yes"
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 printf "%s\n" "no" >&6; }
7573 ;;
7574 esac
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7577 conftest$ac_exeext conftest.$ac_ext
7578 CFLAGS=$safe_CFLAGS;;
7579 mips64-linux)
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
7581 printf %s "checking for 32 bit build support... " >&6; }
7582 safe_CFLAGS=$CFLAGS
7583 CFLAGS="$CFLAGS -mips32 -mabi=32"
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586
7587 #include <sys/prctl.h>
7588
7589 int
7590 main (void)
7591 {
7592
7593 ;
7594 return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_link "$LINENO"
7598 then :
7599
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 printf "%s\n" "yes" >&6; }
7602
7603 else case e in #(
7604 e)
7605 vg_cv_only64bit="yes"
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 printf "%s\n" "no" >&6; }
7608 ;;
7609 esac
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7612 conftest$ac_exeext conftest.$ac_ext
7613 CFLAGS=$safe_CFLAGS;;
7614 esac
7615
7616 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
7617 as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
7618 fi
7619
7620 #----------------------------------------------------------------------------
7621
7622 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
7623 # default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
7624 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
7625 # above) will be "amd64" since that reflects the most that this cpu can do,
7626 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
7627 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
7628 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
7629 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
7630
7631
7632 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
7633 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
7634 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
7635 # It is empty if there is no secondary target.
7636
7637
7638 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
7639 # The entire system, including regression and performance tests, will be
7640 # built for this target. The "_CAPS" indicates that the name is in capital
7641 # letters, and it also uses '_' rather than '-' as a separator, because it's
7642 # used to create various Makefile variables, which are all in caps by
7643 # convention and cannot contain '-' characters. This is in contrast to
7644 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
7645
7646
7647 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
7648 # Valgrind and tools will also be built for this target, but not the
7649 # regression or performance tests.
7650 #
7651 # By default, the primary arch is the same as the "max" arch, as commented
7652 # above (at the definition of ARCH_MAX). We may choose to downgrade it in
7653 # the big case statement just below here, in the case where we're building
7654 # on a 64 bit machine but have been requested only to do a 32 bit build.
7655
7656
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
7658 printf %s "checking for a supported CPU/OS combination... " >&6; }
7659
7660 # NB. The load address for a given platform may be specified in more
7661 # than one place, in some cases, depending on whether we're doing a biarch,
7662 # 32-bit only or 64-bit only build. eg see case for amd64-linux below.
7663 # Be careful to give consistent values in all subcases. Also, all four
7664 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
7665 # even if it is to "0xUNSET".
7666 #
7667 case "$ARCH_MAX-$VGCONF_OS" in
7668 x86-linux)
7669 VGCONF_ARCH_PRI="x86"
7670 VGCONF_ARCH_SEC=""
7671 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
7672 VGCONF_PLATFORM_SEC_CAPS=""
7673 valt_load_address_pri_norml="0x58000000"
7674 valt_load_address_pri_inner="0x38000000"
7675 valt_load_address_sec_norml="0xUNSET"
7676 valt_load_address_sec_inner="0xUNSET"
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7678 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7679 ;;
7680 amd64-linux)
7681 valt_load_address_sec_norml="0xUNSET"
7682 valt_load_address_sec_inner="0xUNSET"
7683 if test x$vg_cv_only64bit = xyes; then
7684 VGCONF_ARCH_PRI="amd64"
7685 VGCONF_ARCH_SEC=""
7686 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
7687 VGCONF_PLATFORM_SEC_CAPS=""
7688 valt_load_address_pri_norml="0x58000000"
7689 valt_load_address_pri_inner="0x38000000"
7690 elif test x$vg_cv_only32bit = xyes; then
7691 VGCONF_ARCH_PRI="x86"
7692 VGCONF_ARCH_SEC=""
7693 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
7694 VGCONF_PLATFORM_SEC_CAPS=""
7695 valt_load_address_pri_norml="0x58000000"
7696 valt_load_address_pri_inner="0x38000000"
7697 else
7698 VGCONF_ARCH_PRI="amd64"
7699 VGCONF_ARCH_SEC="x86"
7700 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
7701 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
7702 valt_load_address_pri_norml="0x58000000"
7703 valt_load_address_pri_inner="0x38000000"
7704 valt_load_address_sec_norml="0x58000000"
7705 valt_load_address_sec_inner="0x38000000"
7706 fi
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7708 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7709 ;;
7710 ppc32-linux)
7711 VGCONF_ARCH_PRI="ppc32"
7712 VGCONF_ARCH_SEC=""
7713 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
7714 VGCONF_PLATFORM_SEC_CAPS=""
7715 valt_load_address_pri_norml="0x58000000"
7716 valt_load_address_pri_inner="0x38000000"
7717 valt_load_address_sec_norml="0xUNSET"
7718 valt_load_address_sec_inner="0xUNSET"
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7720 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7721 ;;
7722 ppc64be-linux)
7723 valt_load_address_sec_norml="0xUNSET"
7724 valt_load_address_sec_inner="0xUNSET"
7725 if test x$vg_cv_only64bit = xyes; then
7726 VGCONF_ARCH_PRI="ppc64be"
7727 VGCONF_ARCH_SEC=""
7728 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX"
7729 VGCONF_PLATFORM_SEC_CAPS=""
7730 valt_load_address_pri_norml="0x58000000"
7731 valt_load_address_pri_inner="0x38000000"
7732 elif test x$vg_cv_only32bit = xyes; then
7733 VGCONF_ARCH_PRI="ppc32"
7734 VGCONF_ARCH_SEC=""
7735 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
7736 VGCONF_PLATFORM_SEC_CAPS=""
7737 valt_load_address_pri_norml="0x58000000"
7738 valt_load_address_pri_inner="0x38000000"
7739 else
7740 VGCONF_ARCH_PRI="ppc64be"
7741 VGCONF_ARCH_SEC="ppc32"
7742 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX"
7743 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
7744 valt_load_address_pri_norml="0x58000000"
7745 valt_load_address_pri_inner="0x38000000"
7746 valt_load_address_sec_norml="0x58000000"
7747 valt_load_address_sec_inner="0x38000000"
7748 fi
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7750 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7751 ;;
7752 ppc64le-linux)
7753 # Little Endian is only supported on PPC64
7754 valt_load_address_sec_norml="0xUNSET"
7755 valt_load_address_sec_inner="0xUNSET"
7756 VGCONF_ARCH_PRI="ppc64le"
7757 VGCONF_ARCH_SEC=""
7758 VGCONF_PLATFORM_PRI_CAPS="PPC64LE_LINUX"
7759 VGCONF_PLATFORM_SEC_CAPS=""
7760 valt_load_address_pri_norml="0x58000000"
7761 valt_load_address_pri_inner="0x38000000"
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7763 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7764 ;;
7765 x86-freebsd)
7766 VGCONF_ARCH_PRI="x86"
7767 VGCONF_ARCH_SEC=""
7768 VGCONF_PLATFORM_PRI_CAPS="X86_FREEBSD"
7769 VGCONF_PLATFORM_SEC_CAPS=""
7770 valt_load_address_pri_norml="0x38000000"
7771 valt_load_address_pri_inner="0x28000000"
7772 valt_load_address_sec_norml="0xUNSET"
7773 valt_load_address_sec_inner="0xUNSET"
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7775 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7776 ;;
7777 amd64-freebsd)
7778 if test x$vg_cv_only64bit = xyes; then
7779 VGCONF_ARCH_PRI="amd64"
7780 VGCONF_ARCH_SEC=""
7781 VGCONF_PLATFORM_PRI_CAPS="AMD64_FREEBSD"
7782 VGCONF_PLATFORM_SEC_CAPS=""
7783 elif test x$vg_cv_only32bit = xyes; then
7784 VGCONF_ARCH_PRI="x86"
7785 VGCONF_ARCH_SEC=""
7786 VGCONF_PLATFORM_PRI_CAPS="X86_FREEBSD"
7787 VGCONF_PLATFORM_SEC_CAPS=""
7788 else
7789 VGCONF_ARCH_PRI="amd64"
7790 VGCONF_ARCH_SEC="x86"
7791 VGCONF_PLATFORM_PRI_CAPS="AMD64_FREEBSD"
7792 VGCONF_PLATFORM_SEC_CAPS="X86_FREEBSD"
7793 fi
7794 # These work with either base clang or ports installed gcc
7795 # Hand rolled compilers probably need INSTALL_DIR/lib (at least for gcc)
7796 if test x$is_clang = xclang ; then
7797 FLAG_32ON64="-B/usr/lib32"
7798 else
7799 GCC_MAJOR_VERSION=`${CC} -dumpversion | $SED 's/\..*//' 2>/dev/null`
7800 FLAG_32ON64="-B/usr/local/lib32/gcc${GCC_MAJOR_VERSION} -Wl,-rpath,/usr/local/lib32/gcc${GCC_MAJOR_VERSION}/"
7801 FLAG_32ON64_GXX="-L/usr/local/lib32/gcc${GCC_MAJOR_VERSION} -lgcc_s"
7802
7803 fi
7804 valt_load_address_pri_norml="0x38000000"
7805 valt_load_address_pri_inner="0x28000000"
7806 valt_load_address_sec_norml="0x38000000"
7807 valt_load_address_sec_inner="0x28000000"
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7809 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7810 ;;
7811 arm64-freebsd)
7812 VGCONF_ARCH_PRI="arm64"
7813 VGCONF_ARCH_SEC=""
7814 VGCONF_PLATFORM_PRI_CAPS="ARM64_FREEBSD"
7815 VGCONF_PLATFORM_SEC_CAPS=""
7816 valt_load_address_pri_norml="0x38000000"
7817 valt_load_address_pri_inner="0x28000000"
7818 valt_load_address_sec_norml="0xUNSET"
7819 valt_load_address_sec_inner="0xUNSET"
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7821 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7822 ;;
7823 # Darwin gets identified as 32-bit even when it supports 64-bit.
7824 # (Not sure why, possibly because 'uname' returns "i386"?) Just about
7825 # all Macs support both 32-bit and 64-bit, so we just build both. If
7826 # someone has a really old 32-bit only machine they can (hopefully?)
7827 # build with --enable-only32bit. See bug 243362.
7828 x86-darwin|amd64-darwin)
7829 ARCH_MAX="amd64"
7830 valt_load_address_sec_norml="0xUNSET"
7831 valt_load_address_sec_inner="0xUNSET"
7832 if test x$vg_cv_only64bit = xyes; then
7833 VGCONF_ARCH_PRI="amd64"
7834 VGCONF_ARCH_SEC=""
7835 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
7836 VGCONF_PLATFORM_SEC_CAPS=""
7837 valt_load_address_pri_norml="0x158000000"
7838 valt_load_address_pri_inner="0x138000000"
7839 elif test x$vg_cv_only32bit = xyes; then
7840 VGCONF_ARCH_PRI="x86"
7841 VGCONF_ARCH_SEC=""
7842 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
7843 VGCONF_PLATFORM_SEC_CAPS=""
7844 VGCONF_ARCH_PRI_CAPS="x86"
7845 valt_load_address_pri_norml="0x58000000"
7846 valt_load_address_pri_inner="0x38000000"
7847 else
7848 VGCONF_ARCH_PRI="amd64"
7849 VGCONF_ARCH_SEC="x86"
7850 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
7851 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
7852 valt_load_address_pri_norml="0x158000000"
7853 valt_load_address_pri_inner="0x138000000"
7854 valt_load_address_sec_norml="0x58000000"
7855 valt_load_address_sec_inner="0x38000000"
7856 fi
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7858 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7859 ;;
7860 arm-linux)
7861 VGCONF_ARCH_PRI="arm"
7862 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
7863 VGCONF_PLATFORM_SEC_CAPS=""
7864 valt_load_address_pri_norml="0x58000000"
7865 valt_load_address_pri_inner="0x38000000"
7866 valt_load_address_sec_norml="0xUNSET"
7867 valt_load_address_sec_inner="0xUNSET"
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
7869 printf "%s\n" "ok (${host_cpu}-${host_os})" >&6; }
7870 ;;
7871 arm64-linux)
7872 valt_load_address_sec_norml="0xUNSET"
7873 valt_load_address_sec_inner="0xUNSET"
7874 if test x$vg_cv_only64bit = xyes; then
7875 VGCONF_ARCH_PRI="arm64"
7876 VGCONF_ARCH_SEC=""
7877 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX"
7878 VGCONF_PLATFORM_SEC_CAPS=""
7879 valt_load_address_pri_norml="0x58000000"
7880 valt_load_address_pri_inner="0x38000000"
7881 elif test x$vg_cv_only32bit = xyes; then
7882 VGCONF_ARCH_PRI="arm"
7883 VGCONF_ARCH_SEC=""
7884 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
7885 VGCONF_PLATFORM_SEC_CAPS=""
7886 valt_load_address_pri_norml="0x58000000"
7887 valt_load_address_pri_inner="0x38000000"
7888 else
7889 VGCONF_ARCH_PRI="arm64"
7890 VGCONF_ARCH_SEC="arm"
7891 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX"
7892 VGCONF_PLATFORM_SEC_CAPS="ARM_LINUX"
7893 valt_load_address_pri_norml="0x58000000"
7894 valt_load_address_pri_inner="0x38000000"
7895 valt_load_address_sec_norml="0x58000000"
7896 valt_load_address_sec_inner="0x38000000"
7897 fi
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7899 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7900 ;;
7901 s390x-linux)
7902 VGCONF_ARCH_PRI="s390x"
7903 VGCONF_ARCH_SEC=""
7904 VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
7905 VGCONF_PLATFORM_SEC_CAPS=""
7906 # To improve branch prediction hit rate we want to have
7907 # the generated code close to valgrind (host) code
7908 valt_load_address_pri_norml="0x800000000"
7909 valt_load_address_pri_inner="0x810000000"
7910 valt_load_address_sec_norml="0xUNSET"
7911 valt_load_address_sec_inner="0xUNSET"
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7913 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7914 ;;
7915 mips32-linux)
7916 VGCONF_ARCH_PRI="mips32"
7917 VGCONF_ARCH_SEC=""
7918 VGCONF_PLATFORM_PRI_CAPS="MIPS32_LINUX"
7919 VGCONF_PLATFORM_SEC_CAPS=""
7920 valt_load_address_pri_norml="0x58000000"
7921 valt_load_address_pri_inner="0x38000000"
7922 valt_load_address_sec_norml="0xUNSET"
7923 valt_load_address_sec_inner="0xUNSET"
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7925 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7926 ;;
7927 mips64-linux)
7928 valt_load_address_sec_norml="0xUNSET"
7929 valt_load_address_sec_inner="0xUNSET"
7930 if test x$vg_cv_only64bit = xyes; then
7931 VGCONF_ARCH_PRI="mips64"
7932 VGCONF_PLATFORM_SEC_CAPS=""
7933 VGCONF_PLATFORM_PRI_CAPS="MIPS64_LINUX"
7934 VGCONF_PLATFORM_SEC_CAPS=""
7935 valt_load_address_pri_norml="0x58000000"
7936 valt_load_address_pri_inner="0x38000000"
7937 elif test x$vg_cv_only32bit = xyes; then
7938 VGCONF_ARCH_PRI="mips32"
7939 VGCONF_ARCH_SEC=""
7940 VGCONF_PLATFORM_PRI_CAPS="MIPS32_LINUX"
7941 VGCONF_PLATFORM_SEC_CAPS=""
7942 valt_load_address_pri_norml="0x58000000"
7943 valt_load_address_pri_inner="0x38000000"
7944 else
7945 VGCONF_ARCH_PRI="mips64"
7946 VGCONF_ARCH_SEC="mips32"
7947 VGCONF_PLATFORM_PRI_CAPS="MIPS64_LINUX"
7948 VGCONF_PLATFORM_SEC_CAPS="MIPS32_LINUX"
7949 valt_load_address_pri_norml="0x58000000"
7950 valt_load_address_pri_inner="0x38000000"
7951 valt_load_address_sec_norml="0x58000000"
7952 valt_load_address_sec_inner="0x38000000"
7953 fi
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7955 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7956 ;;
7957 nanomips-linux)
7958 VGCONF_ARCH_PRI="nanomips"
7959 VGCONF_ARCH_SEC=""
7960 VGCONF_PLATFORM_PRI_CAPS="NANOMIPS_LINUX"
7961 VGCONF_PLATFORM_SEC_CAPS=""
7962 valt_load_address_pri_norml="0x58000000"
7963 valt_load_address_pri_inner="0x38000000"
7964 valt_load_address_sec_norml="0xUNSET"
7965 valt_load_address_sec_inner="0xUNSET"
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7967 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7968 ;;
7969 riscv64-linux)
7970 VGCONF_ARCH_PRI="riscv64"
7971 VGCONF_ARCH_SEC=""
7972 VGCONF_PLATFORM_PRI_CAPS="RISCV64_LINUX"
7973 VGCONF_PLATFORM_SEC_CAPS=""
7974 valt_load_address_pri_norml="0x58000000"
7975 valt_load_address_pri_inner="0x38000000"
7976 valt_load_address_sec_norml="0xUNSET"
7977 valt_load_address_sec_inner="0xUNSET"
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7979 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7980 ;;
7981 x86-solaris)
7982 VGCONF_ARCH_PRI="x86"
7983 VGCONF_ARCH_SEC=""
7984 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS"
7985 VGCONF_PLATFORM_SEC_CAPS=""
7986 valt_load_address_pri_norml="0x58000000"
7987 valt_load_address_pri_inner="0x38000000"
7988 valt_load_address_sec_norml="0xUNSET"
7989 valt_load_address_sec_inner="0xUNSET"
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
7991 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
7992 ;;
7993 amd64-solaris)
7994 valt_load_address_sec_norml="0xUNSET"
7995 valt_load_address_sec_inner="0xUNSET"
7996 if test x$vg_cv_only64bit = xyes; then
7997 VGCONF_ARCH_PRI="amd64"
7998 VGCONF_ARCH_SEC=""
7999 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS"
8000 VGCONF_PLATFORM_SEC_CAPS=""
8001 valt_load_address_pri_norml="0x58000000"
8002 valt_load_address_pri_inner="0x38000000"
8003 elif test x$vg_cv_only32bit = xyes; then
8004 VGCONF_ARCH_PRI="x86"
8005 VGCONF_ARCH_SEC=""
8006 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS"
8007 VGCONF_PLATFORM_SEC_CAPS=""
8008 valt_load_address_pri_norml="0x58000000"
8009 valt_load_address_pri_inner="0x38000000"
8010 else
8011 VGCONF_ARCH_PRI="amd64"
8012 VGCONF_ARCH_SEC="x86"
8013 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS"
8014 VGCONF_PLATFORM_SEC_CAPS="X86_SOLARIS"
8015 valt_load_address_pri_norml="0x58000000"
8016 valt_load_address_pri_inner="0x38000000"
8017 valt_load_address_sec_norml="0x58000000"
8018 valt_load_address_sec_inner="0x38000000"
8019 fi
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
8021 printf "%s\n" "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
8022 ;;
8023 *)
8024 VGCONF_ARCH_PRI="unknown"
8025 VGCONF_ARCH_SEC="unknown"
8026 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
8027 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
8028 valt_load_address_pri_norml="0xUNSET"
8029 valt_load_address_pri_inner="0xUNSET"
8030 valt_load_address_sec_norml="0xUNSET"
8031 valt_load_address_sec_inner="0xUNSET"
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
8033 printf "%s\n" "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
8034 as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
8035 ;;
8036 esac
8037
8038 #----------------------------------------------------------------------------
8039
8040 # Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
8041 # defined.
8042 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8043 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8044 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_FREEBSD \
8045 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_FREEBSD \
8046 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
8047 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN \
8048 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
8049 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS ; then
8050 VGCONF_ARCHS_INCLUDE_X86_TRUE=
8051 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
8052 else
8053 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
8054 VGCONF_ARCHS_INCLUDE_X86_FALSE=
8055 fi
8056
8057 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8058 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_FREEBSD \
8059 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN \
8060 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS ; then
8061 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
8062 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
8063 else
8064 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
8065 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
8066 fi
8067
8068 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
8069 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8070 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
8071 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
8072 else
8073 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
8074 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
8075 fi
8076
8077 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \
8078 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX ; then
8079 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
8080 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
8081 else
8082 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
8083 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
8084 fi
8085
8086 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
8087 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX ; then
8088 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
8089 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
8090 else
8091 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
8092 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
8093 fi
8094
8095 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \
8096 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_FREEBSD ; then
8097 VGCONF_ARCHS_INCLUDE_ARM64_TRUE=
8098 VGCONF_ARCHS_INCLUDE_ARM64_FALSE='#'
8099 else
8100 VGCONF_ARCHS_INCLUDE_ARM64_TRUE='#'
8101 VGCONF_ARCHS_INCLUDE_ARM64_FALSE=
8102 fi
8103
8104 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
8105 VGCONF_ARCHS_INCLUDE_S390X_TRUE=
8106 VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
8107 else
8108 VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
8109 VGCONF_ARCHS_INCLUDE_S390X_FALSE=
8110 fi
8111
8112 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
8113 -o x$VGCONF_PLATFORM_SEC_CAPS = xMIPS32_LINUX ; then
8114 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE=
8115 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE='#'
8116 else
8117 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE='#'
8118 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE=
8119 fi
8120
8121 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then
8122 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE=
8123 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE='#'
8124 else
8125 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE='#'
8126 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE=
8127 fi
8128
8129 if test x$VGCONF_PLATFORM_PRI_CAPS = xNANOMIPS_LINUX ; then
8130 VGCONF_ARCHS_INCLUDE_NANOMIPS_TRUE=
8131 VGCONF_ARCHS_INCLUDE_NANOMIPS_FALSE='#'
8132 else
8133 VGCONF_ARCHS_INCLUDE_NANOMIPS_TRUE='#'
8134 VGCONF_ARCHS_INCLUDE_NANOMIPS_FALSE=
8135 fi
8136
8137 if test x$VGCONF_PLATFORM_PRI_CAPS = xRISCV64_LINUX ; then
8138 VGCONF_ARCHS_INCLUDE_RISCV64_TRUE=
8139 VGCONF_ARCHS_INCLUDE_RISCV64_FALSE='#'
8140 else
8141 VGCONF_ARCHS_INCLUDE_RISCV64_TRUE='#'
8142 VGCONF_ARCHS_INCLUDE_RISCV64_FALSE=
8143 fi
8144
8145
8146 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
8147 # become defined.
8148 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8149 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
8150 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
8151 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
8152 else
8153 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
8154 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
8155 fi
8156
8157 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
8158 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
8159 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
8160 else
8161 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
8162 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
8163 fi
8164
8165 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
8166 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
8167 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
8168 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
8169 else
8170 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
8171 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
8172 fi
8173
8174 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX; then
8175 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE=
8176 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE='#'
8177 else
8178 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE='#'
8179 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE=
8180 fi
8181
8182 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX; then
8183 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE=
8184 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE='#'
8185 else
8186 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE='#'
8187 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE=
8188 fi
8189
8190 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
8191 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX; then
8192 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
8193 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
8194 else
8195 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
8196 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
8197 fi
8198
8199 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX; then
8200 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE=
8201 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE='#'
8202 else
8203 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE='#'
8204 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE=
8205 fi
8206
8207 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
8208 -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
8209 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
8210 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
8211 else
8212 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
8213 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
8214 fi
8215
8216 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
8217 -o x$VGCONF_PLATFORM_SEC_CAPS = xMIPS32_LINUX; then
8218 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE=
8219 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE='#'
8220 else
8221 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE='#'
8222 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE=
8223 fi
8224
8225 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX; then
8226 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE=
8227 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE='#'
8228 else
8229 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE='#'
8230 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE=
8231 fi
8232
8233 if test x$VGCONF_PLATFORM_PRI_CAPS = xNANOMIPS_LINUX; then
8234 VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_TRUE=
8235 VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_FALSE='#'
8236 else
8237 VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_TRUE='#'
8238 VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_FALSE=
8239 fi
8240
8241 if test x$VGCONF_PLATFORM_PRI_CAPS = xRISCV64_LINUX; then
8242 VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_TRUE=
8243 VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_FALSE='#'
8244 else
8245 VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_TRUE='#'
8246 VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_FALSE=
8247 fi
8248
8249 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_FREEBSD \
8250 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_FREEBSD; then
8251 VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_TRUE=
8252 VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_FALSE='#'
8253 else
8254 VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_TRUE='#'
8255 VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_FALSE=
8256 fi
8257
8258 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_FREEBSD; then
8259 VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_TRUE=
8260 VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_FALSE='#'
8261 else
8262 VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_TRUE='#'
8263 VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_FALSE=
8264 fi
8265
8266 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_FREEBSD; then
8267 VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_TRUE=
8268 VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_FALSE='#'
8269 else
8270 VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_TRUE='#'
8271 VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_FALSE=
8272 fi
8273
8274 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
8275 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
8276 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
8277 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
8278 else
8279 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
8280 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
8281 fi
8282
8283 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
8284 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
8285 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
8286 else
8287 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
8288 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
8289 fi
8290
8291 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
8292 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS; then
8293 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE=
8294 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE='#'
8295 else
8296 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE='#'
8297 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE=
8298 fi
8299
8300 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
8301 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE=
8302 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE='#'
8303 else
8304 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE='#'
8305 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE=
8306 fi
8307
8308
8309
8310 # Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined.
8311 # Relies on the assumption that the primary and secondary targets are
8312 # for the same OS, so therefore only necessary to test the primary.
8313 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8314 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8315 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
8316 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \
8317 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX \
8318 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
8319 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \
8320 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
8321 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
8322 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX \
8323 -o x$VGCONF_PLATFORM_PRI_CAPS = xNANOMIPS_LINUX \
8324 -o x$VGCONF_PLATFORM_PRI_CAPS = xRISCV64_LINUX; then
8325 VGCONF_OS_IS_LINUX_TRUE=
8326 VGCONF_OS_IS_LINUX_FALSE='#'
8327 else
8328 VGCONF_OS_IS_LINUX_TRUE='#'
8329 VGCONF_OS_IS_LINUX_FALSE=
8330 fi
8331
8332 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_FREEBSD \
8333 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_FREEBSD \
8334 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_FREEBSD; then
8335 VGCONF_OS_IS_FREEBSD_TRUE=
8336 VGCONF_OS_IS_FREEBSD_FALSE='#'
8337 else
8338 VGCONF_OS_IS_FREEBSD_TRUE='#'
8339 VGCONF_OS_IS_FREEBSD_FALSE=
8340 fi
8341
8342 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
8343 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
8344 VGCONF_OS_IS_DARWIN_TRUE=
8345 VGCONF_OS_IS_DARWIN_FALSE='#'
8346 else
8347 VGCONF_OS_IS_DARWIN_TRUE='#'
8348 VGCONF_OS_IS_DARWIN_FALSE=
8349 fi
8350
8351 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
8352 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
8353 VGCONF_OS_IS_SOLARIS_TRUE=
8354 VGCONF_OS_IS_SOLARIS_FALSE='#'
8355 else
8356 VGCONF_OS_IS_SOLARIS_TRUE='#'
8357 VGCONF_OS_IS_SOLARIS_FALSE=
8358 fi
8359
8360 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_FREEBSD \
8361 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_FREEBSD \
8362 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_FREEBSD \
8363 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
8364 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
8365 VGCONF_OS_IS_DARWIN_OR_FREEBSD_TRUE=
8366 VGCONF_OS_IS_DARWIN_OR_FREEBSD_FALSE='#'
8367 else
8368 VGCONF_OS_IS_DARWIN_OR_FREEBSD_TRUE='#'
8369 VGCONF_OS_IS_DARWIN_OR_FREEBSD_FALSE=
8370 fi
8371
8372
8373
8374 # Sometimes, in the Makefile.am files, it's useful to know whether or not
8375 # there is a secondary target.
8376 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
8377 VGCONF_HAVE_PLATFORM_SEC_TRUE=
8378 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
8379 else
8380 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
8381 VGCONF_HAVE_PLATFORM_SEC_FALSE=
8382 fi
8383
8384
8385 #----------------------------------------------------------------------------
8386 # Inner Valgrind?
8387 #----------------------------------------------------------------------------
8388
8389 # Check if this should be built as an inner Valgrind, to be run within
8390 # another Valgrind. Choose the load address accordingly.
8391
8392
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
8394 printf %s "checking for use as an inner Valgrind... " >&6; }
8395 if test ${vg_cv_inner+y}
8396 then :
8397 printf %s "(cached) " >&6
8398 else case e in #(
8399 e) # Check whether --enable-inner was given.
8400 if test ${enable_inner+y}
8401 then :
8402 enableval=$enable_inner; vg_cv_inner=$enableval
8403 else case e in #(
8404 e) vg_cv_inner=no ;;
8405 esac
8406 fi
8407 ;;
8408 esac
8409 fi
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
8411 printf "%s\n" "$vg_cv_inner" >&6; }
8412 if test "$vg_cv_inner" = yes; then
8413
8414 printf "%s\n" "#define ENABLE_INNER 1" >>confdefs.h
8415
8416 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
8417 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
8418 else
8419 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
8420 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
8421 fi
8422
8423 #----------------------------------------------------------------------------
8424 # Undefined behaviour sanitiser
8425 #----------------------------------------------------------------------------
8426 # Check whether we should build with the undefined beahviour sanitiser.
8427
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for using the undefined behaviour sanitiser" >&5
8429 printf %s "checking for using the undefined behaviour sanitiser... " >&6; }
8430 if test ${vg_cv_ubsan+y}
8431 then :
8432 printf %s "(cached) " >&6
8433 else case e in #(
8434 e) # Check whether --enable-ubsan was given.
8435 if test ${enable_ubsan+y}
8436 then :
8437 enableval=$enable_ubsan; vg_cv_ubsan=$enableval
8438 else case e in #(
8439 e) vg_cv_ubsan=no ;;
8440 esac
8441 fi
8442 ;;
8443 esac
8444 fi
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vg_cv_ubsan" >&5
8446 printf "%s\n" "$vg_cv_ubsan" >&6; }
8447
8448 #----------------------------------------------------------------------------
8449 # Extra fine-tuning of installation directories
8450 #----------------------------------------------------------------------------
8451
8452 # Check whether --with-tmpdir was given.
8453 if test ${with_tmpdir+y}
8454 then :
8455 withval=$with_tmpdir; tmpdir="$withval"
8456 else case e in #(
8457 e) tmpdir="/tmp" ;;
8458 esac
8459 fi
8460
8461
8462 printf "%s\n" "#define VG_TMPDIR \"$tmpdir\"" >>confdefs.h
8463
8464 VG_TMPDIR=$tmpdir
8465
8466
8467 #----------------------------------------------------------------------------
8468 # Detect xcode path
8469 #----------------------------------------------------------------------------
8470 if test -z "$VGCONF_OS_IS_DARWIN_TRUE"; then :
8471 # Extract the first word of "xcrun", so it can be a program name with args.
8472 set dummy xcrun; ac_word=$2
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 printf %s "checking for $ac_word... " >&6; }
8475 if test ${ac_cv_prog_XCRUN+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else case e in #(
8479 e) if test -n "$XCRUN"; then
8480 ac_cv_prog_XCRUN="$XCRUN" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485 IFS=$as_save_IFS
8486 case $as_dir in #(((
8487 '') as_dir=./ ;;
8488 */) ;;
8489 *) as_dir=$as_dir/ ;;
8490 esac
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_XCRUN="yes"
8494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497 done
8498 done
8499 IFS=$as_save_IFS
8500
8501 test -z "$ac_cv_prog_XCRUN" && ac_cv_prog_XCRUN="no"
8502 fi ;;
8503 esac
8504 fi
8505 XCRUN=$ac_cv_prog_XCRUN
8506 if test -n "$XCRUN"; then
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCRUN" >&5
8508 printf "%s\n" "$XCRUN" >&6; }
8509 else
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 printf "%s\n" "no" >&6; }
8512 fi
8513
8514
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcode sdk include path" >&5
8516 printf %s "checking for xcode sdk include path... " >&6; }
8517
8518 # Check whether --with-xcodedir was given.
8519 if test ${with_xcodedir+y}
8520 then :
8521 withval=$with_xcodedir; xcodedir="$withval"
8522 else case e in #(
8523 e)
8524 if test "x$XCRUN" != "xno" -a ! -d /usr/include; then
8525 xcrundir=`xcrun --sdk macosx --show-sdk-path`
8526 if test -z "$xcrundir"; then
8527 xcodedir="/usr/include"
8528 else
8529 xcodedir="$xcrundir/usr/include"
8530 fi
8531 else
8532 xcodedir="/usr/include"
8533 fi
8534 ;;
8535 esac
8536 fi
8537
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xcodedir" >&5
8539 printf "%s\n" "$xcodedir" >&6; }
8540
8541 printf "%s\n" "#define XCODE_DIR \"$xcodedir\"" >>confdefs.h
8542
8543 XCODE_DIR=$xcodedir
8544
8545 fi
8546
8547 #----------------------------------------------------------------------------
8548 # Where to install gdb scripts, defaults to VG_LIBDIR (pkglibexecdir)
8549 #----------------------------------------------------------------------------
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where gdb scripts are installed" >&5
8551 printf %s "checking where gdb scripts are installed... " >&6; }
8552
8553 # Check whether --with-gdbscripts-dir was given.
8554 if test ${with_gdbscripts_dir+y}
8555 then :
8556 withval=$with_gdbscripts_dir; gdbscriptsdir=${withval}
8557 else case e in #(
8558 e) gdbscriptsdir=${libexecdir}/valgrind ;;
8559 esac
8560 fi
8561
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gdbscriptsdir" >&5
8563 printf "%s\n" "$gdbscriptsdir" >&6; }
8564 if test "x$gdbscriptsdir" != "xno"; then
8565 VG_GDBSCRIPTS_DIR=$gdbscriptsdir
8566
8567 if true; then
8568 GDBSCRIPTS_TRUE=
8569 GDBSCRIPTS_FALSE='#'
8570 else
8571 GDBSCRIPTS_TRUE='#'
8572 GDBSCRIPTS_FALSE=
8573 fi
8574
8575 else
8576
8577 if false; then
8578 GDBSCRIPTS_TRUE=
8579 GDBSCRIPTS_FALSE='#'
8580 else
8581 GDBSCRIPTS_TRUE='#'
8582 GDBSCRIPTS_FALSE=
8583 fi
8584
8585 fi
8586
8587 #----------------------------------------------------------------------------
8588 # Libc and suppressions
8589 #----------------------------------------------------------------------------
8590 # This variable will collect the suppression files to be used.
8591
8592
8593 ac_header= ac_cache=
8594 for ac_item in $ac_header_c_list
8595 do
8596 if test $ac_cache; then
8597 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8598 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8599 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8600 fi
8601 ac_header= ac_cache=
8602 elif test $ac_header; then
8603 ac_cache=$ac_item
8604 else
8605 ac_header=$ac_item
8606 fi
8607 done
8608
8609
8610
8611
8612
8613
8614
8615
8616 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8617 then :
8618
8619 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8620
8621 fi
8622 ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
8623 if test "x$ac_cv_header_features_h" = xyes
8624 then :
8625
8626 fi
8627
8628
8629 if test x$ac_cv_header_features_h = xyes; then
8630
8631 printf "%s\n" "#define HAVE_HEADER_FEATURES_H 1" >>confdefs.h
8632
8633 rm -f conftest.$ac_ext
8634 cat <<_ACEOF >conftest.$ac_ext
8635 #include <features.h>
8636 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
8637 glibc version is: __GLIBC__ __GLIBC_MINOR__
8638 #endif
8639 _ACEOF
8640 GLIBC_VERSION="`$CPP -P conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
8641 fi
8642
8643 # not really a version check
8644
8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
8646 printf %s "checking for egrep -e... " >&6; }
8647 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
8648 then :
8649 printf %s "(cached) " >&6
8650 else case e in #(
8651 e) if test -z "$EGREP_TRADITIONAL"; then
8652 ac_path_EGREP_TRADITIONAL_found=false
8653 # Loop through the user's path and test for each of PROGNAME-LIST
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8656 do
8657 IFS=$as_save_IFS
8658 case $as_dir in #(((
8659 '') as_dir=./ ;;
8660 */) ;;
8661 *) as_dir=$as_dir/ ;;
8662 esac
8663 for ac_prog in grep ggrep
8664 do
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
8667 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
8668 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
8669 # Check for GNU $ac_path_EGREP_TRADITIONAL
8670 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
8671 *GNU*)
8672 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
8673 #(
8674 *)
8675 ac_count=0
8676 printf %s 0123456789 >"conftest.in"
8677 while :
8678 do
8679 cat "conftest.in" "conftest.in" >"conftest.tmp"
8680 mv "conftest.tmp" "conftest.in"
8681 cp "conftest.in" "conftest.nl"
8682 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
8683 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8685 as_fn_arith $ac_count + 1 && ac_count=$as_val
8686 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
8687 # Best one so far, save it but keep looking for a better one
8688 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
8689 ac_path_EGREP_TRADITIONAL_max=$ac_count
8690 fi
8691 # 10*(2^10) chars as input seems more than enough
8692 test $ac_count -gt 10 && break
8693 done
8694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8695 esac
8696
8697 $ac_path_EGREP_TRADITIONAL_found && break 3
8698 done
8699 done
8700 done
8701 IFS=$as_save_IFS
8702 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
8703 :
8704 fi
8705 else
8706 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
8707 fi
8708
8709 if test "$ac_cv_path_EGREP_TRADITIONAL"
8710 then :
8711 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
8712 else case e in #(
8713 e) if test -z "$EGREP_TRADITIONAL"; then
8714 ac_path_EGREP_TRADITIONAL_found=false
8715 # Loop through the user's path and test for each of PROGNAME-LIST
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8718 do
8719 IFS=$as_save_IFS
8720 case $as_dir in #(((
8721 '') as_dir=./ ;;
8722 */) ;;
8723 *) as_dir=$as_dir/ ;;
8724 esac
8725 for ac_prog in egrep
8726 do
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
8729 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
8730 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
8731 # Check for GNU $ac_path_EGREP_TRADITIONAL
8732 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
8733 *GNU*)
8734 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
8735 #(
8736 *)
8737 ac_count=0
8738 printf %s 0123456789 >"conftest.in"
8739 while :
8740 do
8741 cat "conftest.in" "conftest.in" >"conftest.tmp"
8742 mv "conftest.tmp" "conftest.in"
8743 cp "conftest.in" "conftest.nl"
8744 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
8745 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8747 as_fn_arith $ac_count + 1 && ac_count=$as_val
8748 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
8749 # Best one so far, save it but keep looking for a better one
8750 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
8751 ac_path_EGREP_TRADITIONAL_max=$ac_count
8752 fi
8753 # 10*(2^10) chars as input seems more than enough
8754 test $ac_count -gt 10 && break
8755 done
8756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8757 esac
8758
8759 $ac_path_EGREP_TRADITIONAL_found && break 3
8760 done
8761 done
8762 done
8763 IFS=$as_save_IFS
8764 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
8765 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8766 fi
8767 else
8768 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
8769 fi
8770 ;;
8771 esac
8772 fi ;;
8773 esac
8774 fi
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
8776 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
8777 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
8778
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781
8782 #include <sys/cdefs.h>
8783 #if defined(__DARWIN_VERS_1050)
8784 DARWIN_LIBC
8785 #endif
8786
8787 _ACEOF
8788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8789 $EGREP_TRADITIONAL "DARWIN_LIBC" >/dev/null 2>&1
8790 then :
8791 GLIBC_VERSION="darwin"
8792 fi
8793 rm -rf conftest*
8794
8795
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798
8799 #include <sys/cdefs.h>
8800 #if defined(__FreeBSD__)
8801 FREEBSD_LIBC
8802 #endif
8803
8804 _ACEOF
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 $EGREP_TRADITIONAL "FREEBSD_LIBC" >/dev/null 2>&1
8807 then :
8808 GLIBC_VERSION="freebsd"
8809 fi
8810 rm -rf conftest*
8811
8812
8813 # not really a version check
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816
8817 #if defined(__ANDROID__)
8818 BIONIC_LIBC
8819 #endif
8820
8821 _ACEOF
8822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8823 $EGREP_TRADITIONAL "BIONIC_LIBC" >/dev/null 2>&1
8824 then :
8825 GLIBC_VERSION="bionic"
8826 fi
8827 rm -rf conftest*
8828
8829
8830 # there is only one version of libc on Solaris
8831 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
8832 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
8833 GLIBC_VERSION="solaris"
8834 fi
8835
8836 # GLIBC_VERSION is empty if a musl libc is used, so use the toolchain tuple
8837 # in this case.
8838 if test x$GLIBC_VERSION = x; then
8839 if $CC -dumpmachine | grep -q musl; then
8840 GLIBC_VERSION=musl
8841 fi
8842 fi
8843
8844 # If this is glibc then figure out the generic (in file) libc.so and
8845 # libpthread.so file paths to use in suppressions. Before 2.34 libpthread
8846 # was a separate library, afterwards it was merged into libc.so and
8847 # the library is called libc.so.6 (before it was libc-2.[0-9]+.so).
8848 # Use this fact to set GLIBC_LIBC_PATH and GLIBC_LIBPTHREAD_PATH.
8849 case ${GLIBC_VERSION} in
8850 2*)
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_create needs libpthread" >&5
8852 printf %s "checking whether pthread_create needs libpthread... " >&6; }
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8855
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply.
8859 The 'extern "C"' is for builds by C++ compilers;
8860 although this is not generally supported in C code supporting it here
8861 has little cost and some practical benefit (sr 110532). */
8862 #ifdef __cplusplus
8863 extern "C"
8864 #endif
8865 char pthread_create (void);
8866 int
8867 main (void)
8868 {
8869 return pthread_create ();
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"
8875 then :
8876
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 printf "%s\n" "no" >&6; }
8879 GLIBC_LIBC_PATH="*/lib*/libc.so.6"
8880 GLIBC_LIBPTHREAD_PATH="$GLIBC_LIBC_PATH"
8881
8882 else case e in #(
8883 e)
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8885 printf "%s\n" "yes" >&6; }
8886 GLIBC_LIBC_PATH="*/lib*/libc-2.*so*"
8887 GLIBC_LIBPTHREAD_PATH="*/lib*/libpthread-2.*so*"
8888 ;;
8889 esac
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8892 conftest$ac_exeext conftest.$ac_ext
8893 ;;
8894 *)
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking not glibc..." >&5
8896 printf %s "checking not glibc...... " >&6; }
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION}" >&5
8898 printf "%s\n" "${GLIBC_VERSION}" >&6; }
8899 ;;
8900 esac
8901
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the glibc version" >&5
8903 printf %s "checking the glibc version... " >&6; }
8904
8905 case "${GLIBC_VERSION}" in
8906 2.2)
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
8908 printf "%s\n" "${GLIBC_VERSION} family" >&6; }
8909 DEFAULT_SUPP="$srcdir/glibc-2.2.supp ${DEFAULT_SUPP}"
8910 DEFAULT_SUPP="$srcdir/glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
8911 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
8912 ;;
8913 2.[3-6])
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
8915 printf "%s\n" "${GLIBC_VERSION} family" >&6; }
8916 DEFAULT_SUPP="$srcdir/glibc-${GLIBC_VERSION}.supp ${DEFAULT_SUPP}"
8917 DEFAULT_SUPP="glibc-2.X-helgrind.supp ${DEFAULT_SUPP}"
8918 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
8919 ;;
8920 2.[7-9])
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
8922 printf "%s\n" "${GLIBC_VERSION} family" >&6; }
8923 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
8924 DEFAULT_SUPP="glibc-2.X-helgrind.supp ${DEFAULT_SUPP}"
8925 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
8926 ;;
8927 2.10|2.11)
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
8929 printf "%s\n" "${GLIBC_VERSION} family" >&6; }
8930
8931 printf "%s\n" "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h
8932
8933 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
8934 DEFAULT_SUPP="glibc-2.X-helgrind.supp ${DEFAULT_SUPP}"
8935 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
8936 ;;
8937 2.*)
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
8939 printf "%s\n" "${GLIBC_VERSION} family" >&6; }
8940
8941 printf "%s\n" "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h
8942
8943
8944 printf "%s\n" "#define GLIBC_MANDATORY_INDEX_AND_STRLEN_REDIRECT 1" >>confdefs.h
8945
8946 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
8947 DEFAULT_SUPP="glibc-2.X-helgrind.supp ${DEFAULT_SUPP}"
8948 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
8949 ;;
8950 darwin)
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
8952 printf "%s\n" "Darwin" >&6; }
8953
8954 printf "%s\n" "#define DARWIN_LIBC 1" >>confdefs.h
8955
8956 # DEFAULT_SUPP set by kernel version check above.
8957 ;;
8958 freebsd)
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
8960 printf "%s\n" "FreeBSD" >&6; }
8961
8962 printf "%s\n" "#define FREEBSD_LIBC 1" >>confdefs.h
8963
8964 # DEFAULT_SUPP set by kernel version check above.
8965 ;;
8966 bionic)
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Bionic" >&5
8968 printf "%s\n" "Bionic" >&6; }
8969
8970 printf "%s\n" "#define BIONIC_LIBC 1" >>confdefs.h
8971
8972 DEFAULT_SUPP="$srcdir/bionic.supp ${DEFAULT_SUPP}"
8973 ;;
8974 solaris)
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
8976 printf "%s\n" "Solaris" >&6; }
8977 # DEFAULT_SUPP set in host_os switch-case above.
8978 # No other suppression file is used.
8979 ;;
8980 musl)
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Musl" >&5
8982 printf "%s\n" "Musl" >&6; }
8983
8984 printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h
8985
8986 DEFAULT_SUPP="$srcdir/musl.supp ${DEFAULT_SUPP}"
8987 ;;
8988 2.0|2.1|*)
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
8990 printf "%s\n" "unsupported version ${GLIBC_VERSION}" >&6; }
8991 as_fn_error $? "Valgrind requires glibc version 2.2 or later, uClibc," "$LINENO" 5
8992 as_fn_error $? "musl libc, Darwin libc, Bionic libc or Solaris libc" "$LINENO" 5
8993 ;;
8994 esac
8995
8996
8997
8998
8999
9000
9001 if test "$VGCONF_OS" != "solaris"; then
9002 # Add default suppressions for the X client libraries. Make no
9003 # attempt to detect whether such libraries are installed on the
9004 # build machine (or even if any X facilities are present); just
9005 # add the suppressions antidisirregardless.
9006 DEFAULT_SUPP="$srcdir/xfree-4.supp ${DEFAULT_SUPP}"
9007 DEFAULT_SUPP="$srcdir/xfree-3.supp ${DEFAULT_SUPP}"
9008 fi
9009
9010
9011 #----------------------------------------------------------------------------
9012 # Platform variants?
9013 #----------------------------------------------------------------------------
9014
9015 # Normally the PLAT = (ARCH, OS) characterisation of the platform is enough.
9016 # But there are times where we need a bit more control. The motivating
9017 # and currently only case is Android: this is almost identical to
9018 # {x86,arm,mips}-linux, but not quite. So this introduces the concept of
9019 # platform variant tags, which get passed in the compile as
9020 # -DVGPV_<arch>_<os>_<variant> along with the main -DVGP_<arch>_<os> definition.
9021 #
9022 # In almost all cases, the <variant> bit is "vanilla". But for Android
9023 # it is "android" instead.
9024 #
9025 # Consequently (eg), plain arm-linux would build with
9026 #
9027 # -DVGP_arm_linux -DVGPV_arm_linux_vanilla
9028 #
9029 # whilst an Android build would have
9030 #
9031 # -DVGP_arm_linux -DVGPV_arm_linux_android
9032 #
9033 # Same for x86. The setup of the platform variant is pushed relatively far
9034 # down this file in order that we can inspect any of the variables set above.
9035
9036 # In the normal case ..
9037 VGCONF_PLATVARIANT="vanilla"
9038
9039 # Android ?
9040 if test "$GLIBC_VERSION" = "bionic";
9041 then
9042 VGCONF_PLATVARIANT="android"
9043 fi
9044
9045
9046
9047
9048 # FIXME: do we also want to define automake variables
9049 # VGCONF_PLATVARIANT_IS_<WHATEVER>, where WHATEVER is (currently)
9050 # VANILLA or ANDROID ? This would be in the style of VGCONF_ARCHS_INCLUDE,
9051 # VGCONF_PLATFORMS_INCLUDE and VGCONF_OS_IS above? Could easily enough
9052 # do that. Problem is that we can't do and-ing in Makefile.am's, but
9053 # that's what we'd need to do to use this, since what we'd want to write
9054 # is something like
9055 #
9056 # VGCONF_PLATFORMS_INCLUDE_ARM_LINUX && VGCONF_PLATVARIANT_IS_ANDROID
9057 #
9058 # Hmm. Can't think of a nice clean solution to this.
9059
9060 if test x$VGCONF_PLATVARIANT = xvanilla; then
9061 VGCONF_PLATVARIANT_IS_VANILLA_TRUE=
9062 VGCONF_PLATVARIANT_IS_VANILLA_FALSE='#'
9063 else
9064 VGCONF_PLATVARIANT_IS_VANILLA_TRUE='#'
9065 VGCONF_PLATVARIANT_IS_VANILLA_FALSE=
9066 fi
9067
9068 if test x$VGCONF_PLATVARIANT = xandroid; then
9069 VGCONF_PLATVARIANT_IS_ANDROID_TRUE=
9070 VGCONF_PLATVARIANT_IS_ANDROID_FALSE='#'
9071 else
9072 VGCONF_PLATVARIANT_IS_ANDROID_TRUE='#'
9073 VGCONF_PLATVARIANT_IS_ANDROID_FALSE=
9074 fi
9075
9076
9077
9078 #----------------------------------------------------------------------------
9079 # Checking for various library functions and other definitions
9080 #----------------------------------------------------------------------------
9081
9082 # Check for AT_FDCWD
9083
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AT_FDCWD" >&5
9085 printf %s "checking for AT_FDCWD... " >&6; }
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088
9089 #define _GNU_SOURCE
9090 #include <fcntl.h>
9091 #include <unistd.h>
9092
9093 int
9094 main (void)
9095 {
9096
9097 int a = AT_FDCWD;
9098
9099 ;
9100 return 0;
9101 }
9102 _ACEOF
9103 if ac_fn_c_try_compile "$LINENO"
9104 then :
9105
9106 ac_have_at_fdcwd=yes
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9108 printf "%s\n" "yes" >&6; }
9109
9110 else case e in #(
9111 e)
9112 ac_have_at_fdcwd=no
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 printf "%s\n" "no" >&6; }
9115 ;;
9116 esac
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9119
9120 if test x$ac_have_at_fdcwd = xyes; then
9121 HAVE_AT_FDCWD_TRUE=
9122 HAVE_AT_FDCWD_FALSE='#'
9123 else
9124 HAVE_AT_FDCWD_TRUE='#'
9125 HAVE_AT_FDCWD_FALSE=
9126 fi
9127
9128
9129 # Check for stpncpy function definition in string.h
9130 # This explicitly checks with _GNU_SOURCE defined since that is also
9131 # used in the test case (some systems might define it without anyway
9132 # since stpncpy is part of The Open Group Base Specifications Issue 7
9133 # IEEE Std 1003.1-2008.
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stpncpy" >&5
9135 printf %s "checking for stpncpy... " >&6; }
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138
9139 #define _GNU_SOURCE
9140 #include <string.h>
9141
9142 int
9143 main (void)
9144 {
9145
9146 char *d;
9147 char *s;
9148 size_t n = 0;
9149 char *r = stpncpy(d, s, n);
9150
9151 ;
9152 return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"
9156 then :
9157
9158 ac_have_gnu_stpncpy=yes
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9160 printf "%s\n" "yes" >&6; }
9161
9162 else case e in #(
9163 e)
9164 ac_have_gnu_stpncpy=no
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 printf "%s\n" "no" >&6; }
9167 ;;
9168 esac
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9171 conftest$ac_exeext conftest.$ac_ext
9172
9173 if test x$ac_have_gnu_stpncpy = xyes; then
9174 HAVE_GNU_STPNCPY_TRUE=
9175 HAVE_GNU_STPNCPY_FALSE='#'
9176 else
9177 HAVE_GNU_STPNCPY_TRUE='#'
9178 HAVE_GNU_STPNCPY_FALSE=
9179 fi
9180
9181
9182 # Check for PTRACE_GETREGS
9183
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
9185 printf %s "checking for PTRACE_GETREGS... " >&6; }
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188
9189 #include <stdlib.h>
9190 #include <stddef.h>
9191 #include <sys/ptrace.h>
9192 #include <sys/user.h>
9193
9194 int
9195 main (void)
9196 {
9197
9198 void *p;
9199 long res = ptrace (PTRACE_GETREGS, 0, p, p);
9200
9201 ;
9202 return 0;
9203 }
9204 _ACEOF
9205 if ac_fn_c_try_compile "$LINENO"
9206 then :
9207
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9209 printf "%s\n" "yes" >&6; }
9210
9211 printf "%s\n" "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
9212
9213
9214 else case e in #(
9215 e)
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 printf "%s\n" "no" >&6; }
9218 ;;
9219 esac
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9222
9223
9224 # Check for CLOCK_MONOTONIC
9225
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
9227 printf %s "checking for CLOCK_MONOTONIC... " >&6; }
9228
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231
9232 #include <time.h>
9233
9234 int
9235 main (void)
9236 {
9237
9238 struct timespec t;
9239 clock_gettime(CLOCK_MONOTONIC, &t);
9240 return 0;
9241
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_compile "$LINENO"
9247 then :
9248
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9250 printf "%s\n" "yes" >&6; }
9251
9252 printf "%s\n" "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
9253
9254
9255 else case e in #(
9256 e)
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 printf "%s\n" "no" >&6; }
9259 ;;
9260 esac
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9263
9264
9265 # Check for ELF32/64_CHDR
9266
9267 ac_fn_c_check_type "$LINENO" "Elf32_Chdr" "ac_cv_type_Elf32_Chdr" "#include <elf.h>
9268 "
9269 if test "x$ac_cv_type_Elf32_Chdr" = xyes
9270 then :
9271
9272 printf "%s\n" "#define HAVE_ELF32_CHDR 1" >>confdefs.h
9273
9274
9275 fi
9276 ac_fn_c_check_type "$LINENO" "Elf64_Chdr" "ac_cv_type_Elf64_Chdr" "#include <elf.h>
9277 "
9278 if test "x$ac_cv_type_Elf64_Chdr" = xyes
9279 then :
9280
9281 printf "%s\n" "#define HAVE_ELF64_CHDR 1" >>confdefs.h
9282
9283
9284 fi
9285
9286
9287
9288 # Check for PTHREAD_RWLOCK_T
9289
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
9291 printf %s "checking for pthread_rwlock_t... " >&6; }
9292
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295
9296 #define _GNU_SOURCE
9297 #include <pthread.h>
9298
9299 int
9300 main (void)
9301 {
9302
9303 pthread_rwlock_t rwl;
9304
9305 ;
9306 return 0;
9307 }
9308 _ACEOF
9309 if ac_fn_c_try_compile "$LINENO"
9310 then :
9311
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9313 printf "%s\n" "yes" >&6; }
9314
9315 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h
9316
9317
9318 else case e in #(
9319 e)
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 printf "%s\n" "no" >&6; }
9322 ;;
9323 esac
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9326
9327 # Check for CLOCKID_T
9328
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clockid_t" >&5
9330 printf %s "checking for clockid_t... " >&6; }
9331
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334
9335 #include <time.h>
9336
9337 int
9338 main (void)
9339 {
9340
9341 clockid_t c;
9342
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"
9348 then :
9349
9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9351 printf "%s\n" "yes" >&6; }
9352
9353 printf "%s\n" "#define HAVE_CLOCKID_T 1" >>confdefs.h
9354
9355
9356 else case e in #(
9357 e)
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 printf "%s\n" "no" >&6; }
9360 ;;
9361 esac
9362 fi
9363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9364
9365 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
9366
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
9368 printf %s "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
9369
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372
9373 #define _GNU_SOURCE
9374 #include <pthread.h>
9375
9376 int
9377 main (void)
9378 {
9379
9380 return (PTHREAD_MUTEX_ADAPTIVE_NP);
9381
9382 ;
9383 return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_compile "$LINENO"
9387 then :
9388
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9390 printf "%s\n" "yes" >&6; }
9391
9392 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
9393
9394
9395 else case e in #(
9396 e)
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 printf "%s\n" "no" >&6; }
9399 ;;
9400 esac
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9403
9404
9405 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
9406
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
9408 printf %s "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
9409
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412
9413 #define _GNU_SOURCE
9414 #include <pthread.h>
9415
9416 int
9417 main (void)
9418 {
9419
9420 return (PTHREAD_MUTEX_ERRORCHECK_NP);
9421
9422 ;
9423 return 0;
9424 }
9425 _ACEOF
9426 if ac_fn_c_try_compile "$LINENO"
9427 then :
9428
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9430 printf "%s\n" "yes" >&6; }
9431
9432 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
9433
9434
9435 else case e in #(
9436 e)
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 printf "%s\n" "no" >&6; }
9439 ;;
9440 esac
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9443
9444
9445 # Check for PTHREAD_MUTEX_RECURSIVE_NP
9446
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
9448 printf %s "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
9449
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452
9453 #define _GNU_SOURCE
9454 #include <pthread.h>
9455
9456 int
9457 main (void)
9458 {
9459
9460 return (PTHREAD_MUTEX_RECURSIVE_NP);
9461
9462 ;
9463 return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"
9467 then :
9468
9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 printf "%s\n" "yes" >&6; }
9471
9472 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
9473
9474
9475 else case e in #(
9476 e)
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 printf "%s\n" "no" >&6; }
9479 ;;
9480 esac
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9483
9484
9485 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
9486
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
9488 printf %s "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
9489
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492
9493 #define _GNU_SOURCE
9494 #include <pthread.h>
9495
9496 int
9497 main (void)
9498 {
9499
9500 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
9501 return 0;
9502
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_compile "$LINENO"
9508 then :
9509
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9511 printf "%s\n" "yes" >&6; }
9512
9513 printf "%s\n" "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
9514
9515
9516 else case e in #(
9517 e)
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 printf "%s\n" "no" >&6; }
9520 ;;
9521 esac
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9524
9525
9526 # Check whether pthread_mutex_t has a member called __m_kind.
9527
9528 ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h>
9529 "
9530 if test "x$ac_cv_member_pthread_mutex_t___m_kind" = xyes
9531 then :
9532
9533 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
9534
9535
9536 fi
9537
9538
9539
9540 # Check whether pthread_mutex_t has a member called __data.__kind.
9541
9542 ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h>
9543 "
9544 if test "x$ac_cv_member_pthread_mutex_t___data___kind" = xyes
9545 then :
9546
9547 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
9548
9549
9550 fi
9551
9552
9553 # Convenience function. Set flags based on the existing HWCAP entries.
9554 # The AT_HWCAP entries are generated by glibc, and are based on
9555 # functions supported by the hardware/system/libc.
9556 # Subsequent support for whether the capability will actually be utilized
9557 # will also be checked against the compiler capabilities.
9558 # called as
9559 # AC_HWCAP_CONTAINS_FLAG[hwcap_string_to_match],[VARIABLE_TO_SET]
9560
9561
9562 # gather hardware capabilities. (hardware/kernel/libc)
9563
9564 AUXV_CHECK_FOR=altivec
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9566 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9567 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9568 then
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9570 printf "%s\n" "yes" >&6; }
9571 HWCAP_HAS_ALTIVEC=yes
9572
9573 else
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 printf "%s\n" "no" >&6; }
9576
9577 fi
9578
9579
9580 AUXV_CHECK_FOR=vsx
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9582 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9583 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9584 then
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9586 printf "%s\n" "yes" >&6; }
9587 HWCAP_HAS_VSX=yes
9588
9589 else
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 printf "%s\n" "no" >&6; }
9592
9593 fi
9594
9595
9596 AUXV_CHECK_FOR=dfp
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9598 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9599 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9600 then
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9602 printf "%s\n" "yes" >&6; }
9603 HWCAP_HAS_DFP=yes
9604
9605 else
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 printf "%s\n" "no" >&6; }
9608
9609 fi
9610
9611
9612 AUXV_CHECK_FOR=arch_2_05
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9614 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9615 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9616 then
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9618 printf "%s\n" "yes" >&6; }
9619 HWCAP_HAS_ISA_2_05=yes
9620
9621 else
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 printf "%s\n" "no" >&6; }
9624
9625 fi
9626
9627
9628 AUXV_CHECK_FOR=arch_2_06
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9630 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9631 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9632 then
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9634 printf "%s\n" "yes" >&6; }
9635 HWCAP_HAS_ISA_2_06=yes
9636
9637 else
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 printf "%s\n" "no" >&6; }
9640
9641 fi
9642
9643
9644 AUXV_CHECK_FOR=arch_2_07
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9646 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9647 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9648 then
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9650 printf "%s\n" "yes" >&6; }
9651 HWCAP_HAS_ISA_2_07=yes
9652
9653 else
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 printf "%s\n" "no" >&6; }
9656
9657 fi
9658
9659
9660 AUXV_CHECK_FOR=arch_3_00
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9662 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9663 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9664 then
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9666 printf "%s\n" "yes" >&6; }
9667 HWCAP_HAS_ISA_3_00=yes
9668
9669 else
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 printf "%s\n" "no" >&6; }
9672
9673 fi
9674
9675
9676 AUXV_CHECK_FOR=arch_3_1
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9678 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9679 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9680 then
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9682 printf "%s\n" "yes" >&6; }
9683 HWCAP_HAS_ISA_3_1=yes
9684
9685 else
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 printf "%s\n" "no" >&6; }
9688
9689 fi
9690
9691
9692 AUXV_CHECK_FOR=htm
9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9694 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9695 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9696 then
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 printf "%s\n" "yes" >&6; }
9699 HWCAP_HAS_HTM=yes
9700
9701 else
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 printf "%s\n" "no" >&6; }
9704
9705 fi
9706
9707
9708 AUXV_CHECK_FOR=mma
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
9710 printf %s "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
9711 if env LD_SHOW_AUXV=1 true | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
9712 then
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9714 printf "%s\n" "yes" >&6; }
9715 HWCAP_HAS_MMA=yes
9716
9717 else
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 printf "%s\n" "no" >&6; }
9720
9721 fi
9722
9723
9724 # ISA Levels
9725 if test x$HWCAP_HAS_ISA_2_05 = xyes; then
9726 HAS_ISA_2_05_TRUE=
9727 HAS_ISA_2_05_FALSE='#'
9728 else
9729 HAS_ISA_2_05_TRUE='#'
9730 HAS_ISA_2_05_FALSE=
9731 fi
9732
9733 if test x$HWCAP_HAS_ISA_2_06 = xyes; then
9734 HAS_ISA_2_06_TRUE=
9735 HAS_ISA_2_06_FALSE='#'
9736 else
9737 HAS_ISA_2_06_TRUE='#'
9738 HAS_ISA_2_06_FALSE=
9739 fi
9740
9741 # compiler support for isa 2.07 level instructions
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 2.07 instructions " >&5
9743 printf %s "checking that assembler knows ISA 2.07 instructions ... " >&6; }
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746
9747
9748 int
9749 main (void)
9750 {
9751
9752 __asm__ __volatile__("mtvsrd 1,2 ");
9753
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_compile "$LINENO"
9759 then :
9760
9761 ac_asm_have_isa_2_07=yes
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763 printf "%s\n" "yes" >&6; }
9764
9765 else case e in #(
9766 e)
9767 ac_asm_have_isa_2_07=no
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 printf "%s\n" "no" >&6; }
9770 ;;
9771 esac
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9774 if test x$ac_asm_have_isa_2_07 = xyes \
9775 -a x$HWCAP_HAS_ISA_2_07 = xyes; then
9776 HAS_ISA_2_07_TRUE=
9777 HAS_ISA_2_07_FALSE='#'
9778 else
9779 HAS_ISA_2_07_TRUE='#'
9780 HAS_ISA_2_07_FALSE=
9781 fi
9782
9783
9784 # altivec (vsx) support.
9785 # does this compiler support -maltivec and does it have the include file
9786 # <altivec.h> ?
9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec support in the compiler " >&5
9788 printf %s "checking for Altivec support in the compiler ... " >&6; }
9789 safe_CFLAGS=$CFLAGS
9790 CFLAGS="-maltivec -Werror"
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9793
9794 #include <altivec.h>
9795
9796 int
9797 main (void)
9798 {
9799
9800 vector unsigned int v;
9801
9802 ;
9803 return 0;
9804 }
9805 _ACEOF
9806 if ac_fn_c_try_compile "$LINENO"
9807 then :
9808
9809 ac_have_altivec=yes
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9811 printf "%s\n" "yes" >&6; }
9812
9813 else case e in #(
9814 e)
9815 ac_have_altivec=no
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 printf "%s\n" "no" >&6; }
9818 ;;
9819 esac
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9822 CFLAGS=$safe_CFLAGS
9823 if test x$ac_have_altivec = xyes \
9824 -a x$HWCAP_HAS_ALTIVEC = xyes; then
9825 HAS_ALTIVEC_TRUE=
9826 HAS_ALTIVEC_FALSE='#'
9827 else
9828 HAS_ALTIVEC_TRUE='#'
9829 HAS_ALTIVEC_FALSE=
9830 fi
9831
9832
9833 # Check that both: the compiler supports -mvsx and that the assembler
9834 # understands VSX instructions. If either of those doesn't work,
9835 # conclude that we can't do VSX.
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VSX compiler flag support" >&5
9837 printf %s "checking for VSX compiler flag support... " >&6; }
9838 safe_CFLAGS=$CFLAGS
9839 CFLAGS="-mvsx -Werror"
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842
9843
9844 int
9845 main (void)
9846 {
9847
9848
9849 ;
9850 return 0;
9851 }
9852 _ACEOF
9853 if ac_fn_c_try_compile "$LINENO"
9854 then :
9855
9856 ac_compiler_supports_vsx_flag=yes
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9858 printf "%s\n" "yes" >&6; }
9859
9860 else case e in #(
9861 e)
9862 ac_compiler_supports_vsx_flag=no
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 printf "%s\n" "no" >&6; }
9865 ;;
9866 esac
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9869 CFLAGS=$safe_CFLAGS
9870
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VSX support in the assembler " >&5
9872 printf %s "checking for VSX support in the assembler ... " >&6; }
9873 safe_CFLAGS=$CFLAGS
9874 CFLAGS="-mvsx -Werror"
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877
9878 #include <altivec.h>
9879
9880 int
9881 main (void)
9882 {
9883
9884 vector unsigned int v;
9885 __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
9886
9887 ;
9888 return 0;
9889 }
9890 _ACEOF
9891 if ac_fn_c_try_compile "$LINENO"
9892 then :
9893
9894 ac_compiler_supports_vsx=yes
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9896 printf "%s\n" "yes" >&6; }
9897
9898 else case e in #(
9899 e)
9900 ac_compiler_supports_vsx=no
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 printf "%s\n" "no" >&6; }
9903 ;;
9904 esac
9905 fi
9906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9907 CFLAGS=$safe_CFLAGS
9908 if test x$ac_compiler_supports_vsx_flag = xyes \
9909 -a x$ac_compiler_supports_vsx = xyes \
9910 -a x$HWCAP_HAS_VSX = xyes ; then
9911 HAS_VSX_TRUE=
9912 HAS_VSX_FALSE='#'
9913 else
9914 HAS_VSX_TRUE='#'
9915 HAS_VSX_FALSE=
9916 fi
9917
9918
9919 # DFP (Decimal Float)
9920 # The initial DFP support was added in Power 6. The dcffix instruction
9921 # support was added in Power 7.
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that assembler knows DFP" >&5
9923 printf %s "checking that assembler knows DFP... " >&6; }
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926
9927
9928 int
9929 main (void)
9930 {
9931
9932 #ifdef __s390__
9933 __asm__ __volatile__("adtr 1, 2, 3")
9934 #else
9935 __asm__ __volatile__(".machine power7;\n" \
9936 "dadd 1, 2, 3;\n" \
9937 "dcffix 1, 2");
9938 #endif
9939
9940 ;
9941 return 0;
9942 }
9943 _ACEOF
9944 if ac_fn_c_try_compile "$LINENO"
9945 then :
9946
9947 ac_asm_have_dfp=yes
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9949 printf "%s\n" "yes" >&6; }
9950
9951 else case e in #(
9952 e)
9953 ac_asm_have_dfp=no
9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 printf "%s\n" "no" >&6; }
9956 ;;
9957 esac
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that compiler knows -mhard-dfp switch" >&5
9961 printf %s "checking that compiler knows -mhard-dfp switch... " >&6; }
9962 safe_CFLAGS=$CFLAGS
9963 CFLAGS="-mhard-dfp -Werror"
9964
9965 # The dcffix instruction is Power 7
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968
9969
9970 int
9971 main (void)
9972 {
9973
9974 #ifdef __s390__
9975 __asm__ __volatile__("adtr 1, 2, 3")
9976 #else
9977 __asm__ __volatile__(".machine power7;\n" \
9978 "dadd 1, 2, 3;\n" \
9979 "dcffix 1, 2");
9980 #endif
9981
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 if ac_fn_c_try_compile "$LINENO"
9987 then :
9988
9989 ac_compiler_have_dfp=yes
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9991 printf "%s\n" "yes" >&6; }
9992
9993 else case e in #(
9994 e)
9995 ac_compiler_have_dfp=no
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 printf "%s\n" "no" >&6; }
9998 ;;
9999 esac
10000 fi
10001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10002 CFLAGS=$safe_CFLAGS
10003 if test x$ac_asm_have_dfp = xyes \
10004 -a x$ac_compiler_have_dfp = xyes \
10005 -a x$HWCAP_HAS_DFP = xyes ; then
10006 HAS_DFP_TRUE=
10007 HAS_DFP_FALSE='#'
10008 else
10009 HAS_DFP_TRUE='#'
10010 HAS_DFP_FALSE=
10011 fi
10012
10013
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that compiler knows DFP datatypes" >&5
10015 printf %s "checking that compiler knows DFP datatypes... " >&6; }
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018
10019
10020 int
10021 main (void)
10022 {
10023
10024 _Decimal64 x = 0.0DD;
10025
10026 ;
10027 return 0;
10028 }
10029 _ACEOF
10030 if ac_fn_c_try_compile "$LINENO"
10031 then :
10032
10033 ac_compiler_have_dfp_type=yes
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10035 printf "%s\n" "yes" >&6; }
10036
10037 else case e in #(
10038 e)
10039 ac_compiler_have_dfp_type=no
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 printf "%s\n" "no" >&6; }
10042 ;;
10043 esac
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10046 if test x$ac_compiler_have_dfp_type = xyes \
10047 -a x$HWCAP_HAS_DFP = xyes ; then
10048 BUILD_DFP_TESTS_TRUE=
10049 BUILD_DFP_TESTS_FALSE='#'
10050 else
10051 BUILD_DFP_TESTS_TRUE='#'
10052 BUILD_DFP_TESTS_FALSE=
10053 fi
10054
10055
10056
10057 # HTM (Hardware Transactional Memory)
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts the -mhtm flag" >&5
10059 printf %s "checking if compiler accepts the -mhtm flag... " >&6; }
10060 safe_CFLAGS=$CFLAGS
10061 CFLAGS="-mhtm -Werror"
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064
10065
10066 int
10067 main (void)
10068 {
10069
10070 return 0;
10071
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_c_try_compile "$LINENO"
10077 then :
10078
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10080 printf "%s\n" "yes" >&6; }
10081 ac_compiler_supports_htm=yes
10082
10083 else case e in #(
10084 e)
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 printf "%s\n" "no" >&6; }
10087 ac_compiler_supports_htm=no
10088 ;;
10089 esac
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10092 CFLAGS=$safe_CFLAGS
10093
10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler can find the htm builtins" >&5
10095 printf %s "checking if compiler can find the htm builtins... " >&6; }
10096 safe_CFLAGS=$CFLAGS
10097 CFLAGS="-mhtm -Werror"
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10100
10101
10102 int
10103 main (void)
10104 {
10105
10106 if (__builtin_tbegin (0))
10107 __builtin_tend (0);
10108
10109 ;
10110 return 0;
10111 }
10112 _ACEOF
10113 if ac_fn_c_try_compile "$LINENO"
10114 then :
10115
10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10117 printf "%s\n" "yes" >&6; }
10118 ac_compiler_sees_htm_builtins=yes
10119
10120 else case e in #(
10121 e)
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 printf "%s\n" "no" >&6; }
10124 ac_compiler_sees_htm_builtins=no
10125 ;;
10126 esac
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10129 CFLAGS=$safe_CFLAGS
10130
10131 if test x$ac_compiler_supports_htm = xyes \
10132 -a x$ac_compiler_sees_htm_builtins = xyes \
10133 -a x$HWCAP_HAS_HTM = xyes ; then
10134 SUPPORTS_HTM_TRUE=
10135 SUPPORTS_HTM_FALSE='#'
10136 else
10137 SUPPORTS_HTM_TRUE='#'
10138 SUPPORTS_HTM_FALSE=
10139 fi
10140
10141
10142 # isa 3.0 checking. (actually 3.0 or newer)
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 3.00 " >&5
10144 printf %s "checking that assembler knows ISA 3.00 ... " >&6; }
10145
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148
10149
10150 int
10151 main (void)
10152 {
10153
10154 __asm__ __volatile__ (".machine power9;\n" \
10155 "cnttzw 1,3; \n" );
10156
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_compile "$LINENO"
10162 then :
10163
10164 # guest_ppc_helpers.c needs the HAS_ISA_3_OO to enable copy, paste,
10165 # cpabort support
10166 safe_CFLAGS=$CFLAGS
10167 CFLAGS="-DHAS_ISA_3_00"
10168 ac_asm_have_isa_3_00=yes
10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 printf "%s\n" "yes" >&6; }
10171
10172 else case e in #(
10173 e)
10174 ac_asm_have_isa_3_00=no
10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 printf "%s\n" "no" >&6; }
10177 ;;
10178 esac
10179 fi
10180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10181 CFLAGS=$safe_CFLAGS
10182
10183 # xscvhpdp checking
10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that assembler knows xscvhpdp " >&5
10185 printf %s "checking that assembler knows xscvhpdp ... " >&6; }
10186
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189
10190
10191 int
10192 main (void)
10193 {
10194
10195 __asm__ __volatile__ (".machine power9;\n" \
10196 "xscvhpdp 1,2;\n" );
10197
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 if ac_fn_c_try_compile "$LINENO"
10203 then :
10204
10205 ac_asm_have_xscvhpdp=yes
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10207 printf "%s\n" "yes" >&6; }
10208
10209 else case e in #(
10210 e)
10211 ac_asm_have_xscvhpdp=no
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 printf "%s\n" "no" >&6; }
10214 ;;
10215 esac
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10218
10219 # darn instruction checking
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that assembler knows darn instruction " >&5
10221 printf %s "checking that assembler knows darn instruction ... " >&6; }
10222
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225
10226
10227 int
10228 main (void)
10229 {
10230
10231 __asm__ __volatile__(".machine power9; darn 1,0 ");
10232
10233 ;
10234 return 0;
10235 }
10236 _ACEOF
10237 if ac_fn_c_try_compile "$LINENO"
10238 then :
10239
10240 ac_asm_have_darn_inst=yes
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10242 printf "%s\n" "yes" >&6; }
10243
10244 else case e in #(
10245 e)
10246 ac_asm_have_darn_inst=no
10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 printf "%s\n" "no" >&6; }
10249 ;;
10250 esac
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10253
10254 # isa 3.01 checking
10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 3.1 " >&5
10256 printf %s "checking that assembler knows ISA 3.1 ... " >&6; }
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259
10260
10261 int
10262 main (void)
10263 {
10264
10265 __asm__ __volatile__ (".machine power10;\n" \
10266 "brh 1,2;\n ");
10267
10268 ;
10269 return 0;
10270 }
10271 _ACEOF
10272 if ac_fn_c_try_compile "$LINENO"
10273 then :
10274
10275 ac_asm_have_isa_3_1=yes
10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10277 printf "%s\n" "yes" >&6; }
10278
10279 else case e in #(
10280 e)
10281 ac_asm_have_isa_3_1=no
10282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 printf "%s\n" "no" >&6; }
10284 ;;
10285 esac
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10288
10289
10290 if test x$ac_asm_have_isa_3_00 = xyes \
10291 -a x$HWCAP_HAS_ISA_3_00 = xyes; then
10292 HAS_ISA_3_00_TRUE=
10293 HAS_ISA_3_00_FALSE='#'
10294 else
10295 HAS_ISA_3_00_TRUE='#'
10296 HAS_ISA_3_00_FALSE=
10297 fi
10298
10299
10300 if test x$ac_asm_have_xscvhpdp = xyes; then
10301 HAS_XSCVHPDP_TRUE=
10302 HAS_XSCVHPDP_FALSE='#'
10303 else
10304 HAS_XSCVHPDP_TRUE='#'
10305 HAS_XSCVHPDP_FALSE=
10306 fi
10307
10308 if test x$ac_asm_have_darn_inst = xyes; then
10309 HAS_DARN_TRUE=
10310 HAS_DARN_FALSE='#'
10311 else
10312 HAS_DARN_TRUE='#'
10313 HAS_DARN_FALSE=
10314 fi
10315
10316
10317 if test x$ac_asm_have_isa_3_1 = xyes \
10318 -a x$HWCAP_HAS_ISA_3_1 = xyes; then
10319 HAS_ISA_3_1_TRUE=
10320 HAS_ISA_3_1_FALSE='#'
10321 else
10322 HAS_ISA_3_1_TRUE='#'
10323 HAS_ISA_3_1_FALSE=
10324 fi
10325
10326
10327 # Check for [email protected]
10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for [email protected]()" >&5
10329 printf %s "checking for [email protected]()... " >&6; }
10330
10331 safe_CFLAGS=$CFLAGS
10332 CFLAGS="-lpthread -Werror"
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10335
10336 extern int pthread_create_glibc_2_0(void*, const void*,
10337 void *(*)(void*), void*);
10338 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
10339
10340 int
10341 main (void)
10342 {
10343
10344 #ifdef __powerpc__
10345 /*
10346 * Apparently on PowerPC linking this program succeeds and generates an
10347 * executable with the undefined symbol pthread_create@GLIBC_2.0.
10348 */
10349 #error This test does not work properly on PowerPC.
10350 #else
10351 pthread_create_glibc_2_0(0, 0, 0, 0);
10352 #endif
10353 return 0;
10354
10355 ;
10356 return 0;
10357 }
10358 _ACEOF
10359 if ac_fn_c_try_link "$LINENO"
10360 then :
10361
10362 ac_have_pthread_create_glibc_2_0=yes
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10364 printf "%s\n" "yes" >&6; }
10365
10366 printf "%s\n" "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
10367
10368
10369 else case e in #(
10370 e)
10371 ac_have_pthread_create_glibc_2_0=no
10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 printf "%s\n" "no" >&6; }
10374 ;;
10375 esac
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10378 conftest$ac_exeext conftest.$ac_ext
10379 CFLAGS=$safe_CFLAGS
10380
10381 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
10382 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
10383 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
10384 else
10385 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
10386 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
10387 fi
10388
10389
10390
10391 # Check for dlinfo RTLD_DI_TLS_MODID
10392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlinfo RTLD_DI_TLS_MODID" >&5
10393 printf %s "checking for dlinfo RTLD_DI_TLS_MODID... " >&6; }
10394
10395 safe_LIBS="$LIBS"
10396 LIBS="-ldl"
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399
10400 #ifndef _GNU_SOURCE
10401 #define _GNU_SOURCE
10402 #endif
10403 #include <link.h>
10404 #include <dlfcn.h>
10405
10406 int
10407 main (void)
10408 {
10409
10410 size_t sizes[10000];
10411 size_t modid_offset;
10412 (void) dlinfo ((void*)sizes, RTLD_DI_TLS_MODID, &modid_offset);
10413 return 0;
10414
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"
10420 then :
10421
10422 ac_have_dlinfo_rtld_di_tls_modid=yes
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424 printf "%s\n" "yes" >&6; }
10425
10426 printf "%s\n" "#define HAVE_DLINFO_RTLD_DI_TLS_MODID 1" >>confdefs.h
10427
10428
10429 else case e in #(
10430 e)
10431 ac_have_dlinfo_rtld_di_tls_modid=no
10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 printf "%s\n" "no" >&6; }
10434 ;;
10435 esac
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10438 conftest$ac_exeext conftest.$ac_ext
10439 LIBS=$safe_LIBS
10440
10441 if test x$ac_have_dlinfo_rtld_di_tls_modid = xyes; then
10442 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE=
10443 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE='#'
10444 else
10445 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE='#'
10446 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE=
10447 fi
10448
10449
10450
10451 # Check for eventfd_t, eventfd() and eventfd_read()
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
10453 printf %s "checking for eventfd()... " >&6; }
10454
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457
10458 #include <sys/eventfd.h>
10459
10460 int
10461 main (void)
10462 {
10463
10464 eventfd_t ev;
10465 int fd;
10466
10467 fd = eventfd(5, 0);
10468 eventfd_read(fd, &ev);
10469 return 0;
10470
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"
10476 then :
10477
10478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10479 printf "%s\n" "yes" >&6; }
10480
10481 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
10482
10483
10484 printf "%s\n" "#define HAVE_EVENTFD_READ 1" >>confdefs.h
10485
10486
10487 else case e in #(
10488 e)
10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 printf "%s\n" "no" >&6; }
10491 ;;
10492 esac
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10495 conftest$ac_exeext conftest.$ac_ext
10496
10497 # Check whether compiler can process #include <thread> without errors
10498 # clang 3.3 cannot process <thread> from e.g.
10499 # gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
10500
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can compile C++17 code" >&5
10502 printf %s "checking that C++ compiler can compile C++17 code... " >&6; }
10503 ac_ext=cpp
10504 ac_cpp='$CXXCPP $CPPFLAGS'
10505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10508
10509 safe_CXXFLAGS=$CXXFLAGS
10510 CXXFLAGS=-std=c++17
10511
10512
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515
10516 int x;
10517
10518 _ACEOF
10519 if ac_fn_cxx_try_compile "$LINENO"
10520 then :
10521
10522 ac_have_cxx_17=yes
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10524 printf "%s\n" "yes" >&6; }
10525
10526 else case e in #(
10527 e)
10528 ac_have_cxx_17=no
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 printf "%s\n" "no" >&6; }
10531 ;;
10532 esac
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10535 CXXFLAGS=$safe_CXXFLAGS
10536 ac_ext=c
10537 ac_cpp='$CPP $CPPFLAGS'
10538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10541
10542
10543 if test x$ac_have_cxx_17 = xyes; then
10544 HAVE_CXX17_TRUE=
10545 HAVE_CXX17_FALSE='#'
10546 else
10547 HAVE_CXX17_TRUE='#'
10548 HAVE_CXX17_FALSE=
10549 fi
10550
10551
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can include <thread> header file" >&5
10553 printf %s "checking that C++ compiler can include <thread> header file... " >&6; }
10554 ac_ext=cpp
10555 ac_cpp='$CXXCPP $CPPFLAGS'
10556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10559
10560 safe_CXXFLAGS=$CXXFLAGS
10561 CXXFLAGS=-std=c++0x
10562
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565
10566 #include <thread>
10567
10568 _ACEOF
10569 if ac_fn_cxx_try_compile "$LINENO"
10570 then :
10571
10572 ac_cxx_can_include_thread_header=yes
10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574 printf "%s\n" "yes" >&6; }
10575
10576 else case e in #(
10577 e)
10578 ac_cxx_can_include_thread_header=no
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 printf "%s\n" "no" >&6; }
10581 ;;
10582 esac
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10585 CXXFLAGS=$safe_CXXFLAGS
10586 ac_ext=c
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10591
10592
10593 if test x$ac_cxx_can_include_thread_header = xyes; then
10594 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE=
10595 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE='#'
10596 else
10597 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE='#'
10598 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE=
10599 fi
10600
10601
10602 # Check whether compiler can process #include <condition_variable> without errors
10603
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can include <condition_variable> header file" >&5
10605 printf %s "checking that C++ compiler can include <condition_variable> header file... " >&6; }
10606 ac_ext=cpp
10607 ac_cpp='$CXXCPP $CPPFLAGS'
10608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10611
10612 safe_CXXFLAGS=$CXXFLAGS
10613 CXXFLAGS=-std=c++0x
10614
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617
10618 #include <condition_variable>
10619
10620 _ACEOF
10621 if ac_fn_cxx_try_compile "$LINENO"
10622 then :
10623
10624 ac_cxx_can_include_condition_variable_header=yes
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10626 printf "%s\n" "yes" >&6; }
10627
10628 else case e in #(
10629 e)
10630 ac_cxx_can_include_condition_variable_header=no
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 printf "%s\n" "no" >&6; }
10633 ;;
10634 esac
10635 fi
10636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10637 CXXFLAGS=$safe_CXXFLAGS
10638 ac_ext=c
10639 ac_cpp='$CPP $CPPFLAGS'
10640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10643
10644
10645 if test x$ac_cxx_can_include_condition_variable_header = xyes; then
10646 CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_TRUE=
10647 CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_FALSE='#'
10648 else
10649 CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_TRUE='#'
10650 CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_FALSE=
10651 fi
10652
10653
10654 # check for std::shared_timed_mutex, this is a C++ 14 feature
10655
10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can use std::shared_timed_mutex" >&5
10657 printf %s "checking that C++ compiler can use std::shared_timed_mutex... " >&6; }
10658 ac_ext=cpp
10659 ac_cpp='$CXXCPP $CPPFLAGS'
10660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10663
10664 safe_CXXFLAGS=$CXXFLAGS
10665 CXXFLAGS="-std=c++1y -pthread"
10666
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669
10670 #include <shared_mutex>
10671 std::shared_timed_mutex test_mutex;
10672
10673 _ACEOF
10674 if ac_fn_cxx_try_compile "$LINENO"
10675 then :
10676
10677 ac_cxx_can_use_shared_timed_mutex=yes
10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 printf "%s\n" "yes" >&6; }
10680
10681 else case e in #(
10682 e)
10683 ac_cxx_can_use_shared_timed_mutex=no
10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 printf "%s\n" "no" >&6; }
10686 ;;
10687 esac
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10690 CXXFLAGS=$safe_CXXFLAGS
10691 ac_ext=c
10692 ac_cpp='$CPP $CPPFLAGS'
10693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10696
10697
10698 if test x$ac_cxx_can_use_shared_timed_mutex = xyes; then
10699 CXX_CAN_USE_SHARED_TIMED_MUTEX_TRUE=
10700 CXX_CAN_USE_SHARED_TIMED_MUTEX_FALSE='#'
10701 else
10702 CXX_CAN_USE_SHARED_TIMED_MUTEX_TRUE='#'
10703 CXX_CAN_USE_SHARED_TIMED_MUTEX_FALSE=
10704 fi
10705
10706
10707 # check for std::shared_mutex, this is a C++ 11 feature
10708
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can use std::timed_mutex" >&5
10710 printf %s "checking that C++ compiler can use std::timed_mutex... " >&6; }
10711 ac_ext=cpp
10712 ac_cpp='$CXXCPP $CPPFLAGS'
10713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10716
10717 safe_CXXFLAGS=$CXXFLAGS
10718 CXXFLAGS="-std=c++0x -pthread"
10719
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722
10723 #include <mutex>
10724 std::timed_mutex test_mutex;
10725
10726 _ACEOF
10727 if ac_fn_cxx_try_compile "$LINENO"
10728 then :
10729
10730 ac_cxx_can_use_timed_mutex=yes
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10732 printf "%s\n" "yes" >&6; }
10733
10734 else case e in #(
10735 e)
10736 ac_cxx_can_use_timed_mutex=no
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 printf "%s\n" "no" >&6; }
10739 ;;
10740 esac
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10743 CXXFLAGS=$safe_CXXFLAGS
10744 ac_ext=c
10745 ac_cpp='$CPP $CPPFLAGS'
10746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10749
10750
10751 if test x$ac_cxx_can_use_timed_mutex = xyes; then
10752 CXX_CAN_USE_TIMED_MUTEX_TRUE=
10753 CXX_CAN_USE_TIMED_MUTEX_FALSE='#'
10754 else
10755 CXX_CAN_USE_TIMED_MUTEX_TRUE='#'
10756 CXX_CAN_USE_TIMED_MUTEX_FALSE=
10757 fi
10758
10759
10760 # On aarch64 before glibc 2.20 we would get the kernel user_pt_regs instead
10761 # of the user_regs_struct from sys/user.h. They are structurally the same
10762 # but we get either one or the other.
10763
10764 ac_fn_c_check_type "$LINENO" "struct user_regs_struct" "ac_cv_type_struct_user_regs_struct" "#include <sys/ptrace.h>
10765 #include <sys/time.h>
10766 #include <sys/user.h>
10767 "
10768 if test "x$ac_cv_type_struct_user_regs_struct" = xyes
10769 then :
10770 sys_user_has_user_regs=yes
10771 else case e in #(
10772 e) sys_user_has_user_regs=no ;;
10773 esac
10774 fi
10775
10776 if test "$sys_user_has_user_regs" = "yes"; then
10777
10778 printf "%s\n" "#define HAVE_SYS_USER_REGS 1" >>confdefs.h
10779
10780 fi
10781
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __NR_membarrier" >&5
10783 printf %s "checking for __NR_membarrier... " >&6; }
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786
10787 #include <linux/unistd.h>
10788
10789 int
10790 main (void)
10791 {
10792
10793 return __NR_membarrier
10794
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_compile "$LINENO"
10800 then :
10801
10802 ac_have_nr_membarrier=yes
10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 printf "%s\n" "yes" >&6; }
10805
10806 else case e in #(
10807 e)
10808 ac_have_nr_membarrier=no
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 printf "%s\n" "no" >&6; }
10811 ;;
10812 esac
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10815
10816 if test x$ac_have_nr_membarrier = xyes; then
10817 HAVE_NR_MEMBARRIER_TRUE=
10818 HAVE_NR_MEMBARRIER_FALSE='#'
10819 else
10820 HAVE_NR_MEMBARRIER_TRUE='#'
10821 HAVE_NR_MEMBARRIER_FALSE=
10822 fi
10823
10824
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __NR_io_pgetevents" >&5
10826 printf %s "checking for __NR_io_pgetevents... " >&6; }
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829
10830 #include <linux/unistd.h>
10831
10832 int
10833 main (void)
10834 {
10835
10836 return __NR_io_pgetevents
10837
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_compile "$LINENO"
10843 then :
10844
10845 ac_have_nr_io_pgetevents=yes
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10847 printf "%s\n" "yes" >&6; }
10848
10849 else case e in #(
10850 e)
10851 ac_have_nr_io_pgetevents=no
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 printf "%s\n" "no" >&6; }
10854 ;;
10855 esac
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10858
10859 if test x$ac_have_nr_io_pgetevents = xyes; then
10860 HAVE_NR_IO_PGETEVENTS_TRUE=
10861 HAVE_NR_IO_PGETEVENTS_FALSE='#'
10862 else
10863 HAVE_NR_IO_PGETEVENTS_TRUE='#'
10864 HAVE_NR_IO_PGETEVENTS_FALSE=
10865 fi
10866
10867
10868 safe_LIBS="$LIBS"
10869 LIBS="-laio"
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libaio" >&5
10871 printf %s "checking for libaio... " >&6; }
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874
10875 #include <libaio.h>
10876
10877 int
10878 main (void)
10879 {
10880
10881 io_context_t ctx;
10882 io_submit(ctx, 1, NULL);
10883
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_compile "$LINENO"
10889 then :
10890
10891 ac_have_libaio=yes
10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10893 printf "%s\n" "yes" >&6; }
10894
10895 else case e in #(
10896 e)
10897 ac_have_libaio=no
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 printf "%s\n" "no" >&6; }
10900 ;;
10901 esac
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10904
10905 if test x$ac_have_libaio = xyes; then
10906 HAVE_LIBAIO_TRUE=
10907 HAVE_LIBAIO_FALSE='#'
10908 else
10909 HAVE_LIBAIO_TRUE='#'
10910 HAVE_LIBAIO_FALSE=
10911 fi
10912
10913 LIBS=$safe_LIBS
10914
10915 #----------------------------------------------------------------------------
10916 # Checking for supported compiler flags.
10917 #----------------------------------------------------------------------------
10918
10919 case "${host_cpu}" in
10920 mips*)
10921 ARCH=$(echo "$CFLAGS" | grep -E -e '-march=[^ ]+' -e '\B-mips[^ +]')
10922 if test -z "$ARCH"; then
10923 # does this compiler support -march=mips32 (mips32 default) ?
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips32 -mabi=32" >&5
10925 printf %s "checking if gcc accepts -march=mips32 -mabi=32... " >&6; }
10926
10927 safe_CFLAGS=$CFLAGS
10928 CFLAGS="$CFLAGS -mips32 -mabi=32 -Werror"
10929
10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10932
10933 int
10934 main (void)
10935 {
10936
10937 return 0;
10938
10939 ;
10940 return 0;
10941 }
10942 _ACEOF
10943 if ac_fn_c_try_compile "$LINENO"
10944 then :
10945
10946 FLAG_M32="-mips32 -mabi=32"
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10948 printf "%s\n" "yes" >&6; }
10949
10950 else case e in #(
10951 e)
10952 FLAG_M32=""
10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 printf "%s\n" "no" >&6; }
10955 ;;
10956 esac
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10959 CFLAGS=$safe_CFLAGS
10960
10961
10962
10963
10964 # does this compiler support -march=mips64r2 (mips64r2 default) ?
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips64r2 -mabi=64" >&5
10966 printf %s "checking if gcc accepts -march=mips64r2 -mabi=64... " >&6; }
10967
10968 safe_CFLAGS=$CFLAGS
10969 CFLAGS="$CFLAGS -march=mips64r2 -mabi=64 -Werror"
10970
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973
10974 int
10975 main (void)
10976 {
10977
10978 return 0;
10979
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_compile "$LINENO"
10985 then :
10986
10987 FLAG_M64="-march=mips64r2 -mabi=64"
10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 printf "%s\n" "yes" >&6; }
10990
10991 else case e in #(
10992 e)
10993 FLAG_M64=""
10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 printf "%s\n" "no" >&6; }
10996 ;;
10997 esac
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11000 CFLAGS=$safe_CFLAGS
11001
11002
11003 fi
11004 ;;
11005 nanomips*)
11006 ;;
11007 *)
11008 # does this compiler support -m32 ?
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
11010 printf %s "checking if gcc accepts -m32... " >&6; }
11011
11012 safe_CFLAGS=$CFLAGS
11013 CFLAGS="${FLAG_32ON64} -m32 -Werror"
11014
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017
11018 int
11019 main (void)
11020 {
11021
11022 return 0;
11023
11024 ;
11025 return 0;
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_compile "$LINENO"
11029 then :
11030
11031 FLAG_M32="${FLAG_32ON64} -m32"
11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11033 printf "%s\n" "yes" >&6; }
11034
11035 else case e in #(
11036 e)
11037 FLAG_M32=""
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 printf "%s\n" "no" >&6; }
11040 ;;
11041 esac
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11044 CFLAGS=$safe_CFLAGS
11045
11046
11047
11048
11049 # does this compiler support -m64 ?
11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
11051 printf %s "checking if gcc accepts -m64... " >&6; }
11052
11053 safe_CFLAGS=$CFLAGS
11054 CFLAGS="-m64 -Werror"
11055
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058
11059 int
11060 main (void)
11061 {
11062
11063 return 0;
11064
11065 ;
11066 return 0;
11067 }
11068 _ACEOF
11069 if ac_fn_c_try_compile "$LINENO"
11070 then :
11071
11072 FLAG_M64="-m64"
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11074 printf "%s\n" "yes" >&6; }
11075
11076 else case e in #(
11077 e)
11078 FLAG_M64=""
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 printf "%s\n" "no" >&6; }
11081 ;;
11082 esac
11083 fi
11084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11085 CFLAGS=$safe_CFLAGS
11086
11087
11088 ;;
11089 esac
11090
11091
11092 ARCH=$(echo "$CFLAGS" | grep -E -e '-march=[^ ]+' -e '\B-mips[^ +]')
11093 if test -z "$ARCH"; then
11094 # does this compiler support -march=octeon (Cavium OCTEON I Specific) ?
11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon" >&5
11096 printf %s "checking if gcc accepts -march=octeon... " >&6; }
11097
11098 safe_CFLAGS=$CFLAGS
11099 CFLAGS="$CFLAGS $FLAG_M64 -march=octeon -Werror"
11100
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103
11104 int
11105 main (void)
11106 {
11107
11108 return 0;
11109
11110 ;
11111 return 0;
11112 }
11113 _ACEOF
11114 if ac_fn_c_try_compile "$LINENO"
11115 then :
11116
11117 FLAG_OCTEON="-march=octeon"
11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11119 printf "%s\n" "yes" >&6; }
11120
11121 else case e in #(
11122 e)
11123 FLAG_OCTEON=""
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 printf "%s\n" "no" >&6; }
11126 ;;
11127 esac
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11130 CFLAGS=$safe_CFLAGS
11131
11132
11133
11134
11135 # does this compiler support -march=octeon2 (Cavium OCTEON II Specific) ?
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon2" >&5
11137 printf %s "checking if gcc accepts -march=octeon2... " >&6; }
11138
11139 safe_CFLAGS=$CFLAGS
11140 CFLAGS="$CFLAGS $FLAG_M64 -march=octeon2 -Werror"
11141
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144
11145 int
11146 main (void)
11147 {
11148
11149 return 0;
11150
11151 ;
11152 return 0;
11153 }
11154 _ACEOF
11155 if ac_fn_c_try_compile "$LINENO"
11156 then :
11157
11158 FLAG_OCTEON2="-march=octeon2"
11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160 printf "%s\n" "yes" >&6; }
11161
11162 else case e in #(
11163 e)
11164 FLAG_OCTEON2=""
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 printf "%s\n" "no" >&6; }
11167 ;;
11168 esac
11169 fi
11170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11171 CFLAGS=$safe_CFLAGS
11172
11173
11174 fi
11175
11176
11177 # does this compiler support -mmsa (MIPS MSA ASE) ?
11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmsa" >&5
11179 printf %s "checking if gcc accepts -mmsa... " >&6; }
11180
11181 safe_CFLAGS=$CFLAGS
11182 CFLAGS="$CFLAGS -mmsa -Werror"
11183
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186
11187 int
11188 main (void)
11189 {
11190
11191 return 0;
11192
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_compile "$LINENO"
11198 then :
11199
11200 FLAG_MSA="-mmsa"
11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11202 printf "%s\n" "yes" >&6; }
11203
11204 else case e in #(
11205 e)
11206 FLAG_MSA=""
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 printf "%s\n" "no" >&6; }
11209 ;;
11210 esac
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11213 CFLAGS=$safe_CFLAGS
11214
11215
11216
11217 # Are we compiling for the MIPS64 n32 ABI?
11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc is producing mips n32 binaries" >&5
11219 printf %s "checking if gcc is producing mips n32 binaries... " >&6; }
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222
11223 #if !defined(_MIPS_SIM) || (defined(_MIPS_SIM) && (_MIPS_SIM != _ABIN32))
11224 #error NO
11225 #endif
11226
11227 _ACEOF
11228 if ac_fn_c_try_compile "$LINENO"
11229 then :
11230
11231 VGCONF_ABI=N32
11232 FLAG_M64="-march=mips64r2 -mabi=n32"
11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234 printf "%s\n" "yes" >&6; }
11235
11236 else case e in #(
11237 e)
11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 printf "%s\n" "no" >&6; }
11240 ;;
11241 esac
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11244
11245 # Are we compiling for the MIPS64 n64 ABI?
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc is producing mips n64 binaries" >&5
11247 printf %s "checking if gcc is producing mips n64 binaries... " >&6; }
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250
11251 #if !defined(_MIPS_SIM) || (defined(_MIPS_SIM) && (_MIPS_SIM != _ABI64))
11252 #error NO
11253 #endif
11254
11255 _ACEOF
11256 if ac_fn_c_try_compile "$LINENO"
11257 then :
11258
11259 VGCONF_ABI=64
11260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 printf "%s\n" "yes" >&6; }
11262
11263 else case e in #(
11264 e)
11265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 printf "%s\n" "no" >&6; }
11267 ;;
11268 esac
11269 fi
11270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11271
11272 # We enter the code block below in the following case:
11273 # Target architecture is set to mips64, the desired abi
11274 # was not specified and the compiler's default abi setting
11275 # is neither n32 nor n64.
11276 # Probe for and set the abi to either n64 or n32, in that order,
11277 # which is required for a mips64 build of valgrind.
11278 if test "$ARCH_MAX" = "mips64" -a "x$VGCONF_ABI" = "x"; then
11279 safe_CFLAGS=$CFLAGS
11280 CFLAGS="$CFLAGS -mabi=64 -Werror"
11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc is n64 capable" >&5
11282 printf %s "checking if gcc is n64 capable... " >&6; }
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285
11286 int
11287 main (void)
11288 {
11289
11290 return 0;
11291
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"
11297 then :
11298
11299 VGCONF_ABI=64
11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 printf "%s\n" "yes" >&6; }
11302
11303 else case e in #(
11304 e)
11305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 printf "%s\n" "no" >&6; }
11307 ;;
11308 esac
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11311 conftest$ac_exeext conftest.$ac_ext
11312 CFLAGS=$safe_CFLAGS
11313
11314 if test "x$VGCONF_ABI" = "x"; then
11315 safe_CFLAGS=$CFLAGS
11316 CFLAGS="$CFLAGS -mabi=n32 -Werror"
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc is n32 capable" >&5
11318 printf %s "checking if gcc is n32 capable... " >&6; }
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321
11322 int
11323 main (void)
11324 {
11325
11326 return 0;
11327
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"
11333 then :
11334
11335 VGCONF_ABI=N32
11336 FLAG_M64="-march=mips64r2 -mabi=n32"
11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338 printf "%s\n" "yes" >&6; }
11339
11340 else case e in #(
11341 e)
11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 printf "%s\n" "no" >&6; }
11344 ;;
11345 esac
11346 fi
11347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11348 conftest$ac_exeext conftest.$ac_ext
11349 CFLAGS=$safe_CFLAGS
11350 fi
11351 fi
11352
11353 if test x$VGCONF_ABI != x; then
11354 VGCONF_HAVE_ABI_TRUE=
11355 VGCONF_HAVE_ABI_FALSE='#'
11356 else
11357 VGCONF_HAVE_ABI_TRUE='#'
11358 VGCONF_HAVE_ABI_FALSE=
11359 fi
11360
11361
11362
11363
11364 # does this compiler support -mmmx ?
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
11366 printf %s "checking if gcc accepts -mmmx... " >&6; }
11367
11368 safe_CFLAGS=$CFLAGS
11369 CFLAGS="-mmmx -Werror"
11370
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373
11374 int
11375 main (void)
11376 {
11377
11378 return 0;
11379
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_compile "$LINENO"
11385 then :
11386
11387 FLAG_MMMX="-mmmx"
11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 printf "%s\n" "yes" >&6; }
11390
11391 else case e in #(
11392 e)
11393 FLAG_MMMX=""
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 printf "%s\n" "no" >&6; }
11396 ;;
11397 esac
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11400 CFLAGS=$safe_CFLAGS
11401
11402
11403
11404
11405 # does this compiler support -msse ?
11406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
11407 printf %s "checking if gcc accepts -msse... " >&6; }
11408
11409 safe_CFLAGS=$CFLAGS
11410 CFLAGS="-msse -Werror"
11411
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414
11415 int
11416 main (void)
11417 {
11418
11419 return 0;
11420
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_compile "$LINENO"
11426 then :
11427
11428 FLAG_MSSE="-msse"
11429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430 printf "%s\n" "yes" >&6; }
11431
11432 else case e in #(
11433 e)
11434 FLAG_MSSE=""
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 printf "%s\n" "no" >&6; }
11437 ;;
11438 esac
11439 fi
11440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11441 CFLAGS=$safe_CFLAGS
11442
11443
11444
11445
11446 # does this compiler support -mpreferred-stack-boundary=2 when
11447 # generating code for a 32-bit target? Note that we only care about
11448 # this when generating code for (32-bit) x86, so if the compiler
11449 # doesn't recognise -m32 it's no big deal. We'll just get code for
11450 # the Memcheck and other helper functions, that is a bit slower than
11451 # it could be, on x86; and no difference at all on any other platform.
11452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary=2 -m32" >&5
11453 printf %s "checking if gcc accepts -mpreferred-stack-boundary=2 -m32... " >&6; }
11454
11455 safe_CFLAGS=$CFLAGS
11456 CFLAGS="-mpreferred-stack-boundary=2 -m32 -Werror"
11457
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460
11461 int
11462 main (void)
11463 {
11464
11465 return 0;
11466
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_compile "$LINENO"
11472 then :
11473
11474 PREFERRED_STACK_BOUNDARY_2="-mpreferred-stack-boundary=2"
11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11476 printf "%s\n" "yes" >&6; }
11477
11478 else case e in #(
11479 e)
11480 PREFERRED_STACK_BOUNDARY_2=""
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 printf "%s\n" "no" >&6; }
11483 ;;
11484 esac
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11487 CFLAGS=$safe_CFLAGS
11488
11489
11490
11491
11492 # does this compiler support -mlong-double-128 ?
11493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mlong-double-128" >&5
11494 printf %s "checking if gcc accepts -mlong-double-128... " >&6; }
11495 safe_CFLAGS=$CFLAGS
11496 CFLAGS="-mlong-double-128 -Werror"
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499
11500 int
11501 main (void)
11502 {
11503
11504 return 0;
11505
11506 ;
11507 return 0;
11508 }
11509 _ACEOF
11510 if ac_fn_c_try_compile "$LINENO"
11511 then :
11512
11513 ac_compiler_supports_mlong_double_128=yes
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515 printf "%s\n" "yes" >&6; }
11516
11517 else case e in #(
11518 e)
11519 ac_compiler_supports_mlong_double_128=no
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 printf "%s\n" "no" >&6; }
11522 ;;
11523 esac
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11526 CFLAGS=$safe_CFLAGS
11527 if test x$ac_compiler_supports_mlong_double_128 = xyes; then
11528 HAS_MLONG_DOUBLE_128_TRUE=
11529 HAS_MLONG_DOUBLE_128_FALSE='#'
11530 else
11531 HAS_MLONG_DOUBLE_128_TRUE='#'
11532 HAS_MLONG_DOUBLE_128_FALSE=
11533 fi
11534
11535 FLAG_MLONG_DOUBLE_128="-mlong-double-128"
11536
11537
11538 # does this toolchain support lto ?
11539 # Not checked for if --enable-lto=no was given, or if LTO_AR or LTO_RANLIB
11540 # are not defined
11541 # If not enable-lto=* arg is provided, default to no, as lto builds are
11542 # a lot slower, and so not appropriate for Valgrind developments.
11543 # --enable-lto=yes should be used by distro packagers.
11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for using the link time optimisation" >&5
11545 printf %s "checking for using the link time optimisation... " >&6; }
11546 if test ${vg_cv_lto+y}
11547 then :
11548 printf %s "(cached) " >&6
11549 else case e in #(
11550 e) # Check whether --enable-lto was given.
11551 if test ${enable_lto+y}
11552 then :
11553 enableval=$enable_lto; vg_cv_lto=$enableval
11554 else case e in #(
11555 e) vg_cv_lto=no ;;
11556 esac
11557 fi
11558 ;;
11559 esac
11560 fi
11561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vg_cv_lto" >&5
11562 printf "%s\n" "$vg_cv_lto" >&6; }
11563
11564 if test "x${vg_cv_lto}" != "xno" -a "x${LTO_AR}" != "x" -a "x${LTO_RANLIB}" != "x"; then
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if toolchain accepts lto" >&5
11566 printf %s "checking if toolchain accepts lto... " >&6; }
11567 safe_CFLAGS=$CFLAGS
11568 TEST_LTO_CFLAGS="-flto -fuse-linker-plugin"
11569 CFLAGS="$TEST_LTO_CFLAGS -Werror"
11570
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573
11574 int
11575 main (void)
11576 {
11577
11578 extern void somefun(void);
11579 somefun();
11580 return 0;
11581
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_compile "$LINENO"
11587 then :
11588
11589 LTO_CFLAGS=$TEST_LTO_CFLAGS
11590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591 printf "%s\n" "yes" >&6; }
11592
11593 else case e in #(
11594 e)
11595 LTO_CFLAGS=""
11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 printf "%s\n" "no" >&6; }
11598 ;;
11599 esac
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11602 CFLAGS=$safe_CFLAGS
11603 fi
11604
11605
11606
11607 # if we could not compile with lto args, or lto was disabled,
11608 # then set LTO_AR/LTO_RANLIB to the non lto values
11609 # define in config.h ENABLE_LTO (not needed by the code currently, but
11610 # this guarantees we recompile everything if we re-configure and rebuild
11611 # in a build dir previously build with another value of --enable-lto
11612 if test "x${LTO_CFLAGS}" = "x"; then
11613 LTO_AR=${AR}
11614 LTO_RANLIB=${RANLIB}
11615 vg_cv_lto=no
11616 else
11617 vg_cv_lto=yes
11618
11619 printf "%s\n" "#define ENABLE_LTO 1" >>confdefs.h
11620
11621 fi
11622
11623 # Convenience function to check whether GCC supports a particular
11624 # warning option. Takes two arguments,
11625 # first the warning flag name to check (without -W), then the
11626 # substitution name to set with -Wno-warning-flag if the flag exists,
11627 # or the empty string if the compiler doesn't accept the flag. Note
11628 # that checking is done against the warning flag itself, but the
11629 # substitution is then done to cancel the warning flag.
11630
11631
11632 # A variation of the above for arguments that
11633 # take a value
11634
11635
11636 # Convenience function. Like AC_GCC_WARNING_SUBST_NO, except it substitutes
11637 # -W$1 (instead of -Wno-$1).
11638
11639
11640
11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmemset-transposed-args" >&5
11642 printf %s "checking if gcc accepts -Wmemset-transposed-args... " >&6; }
11643 safe_CFLAGS=$CFLAGS
11644 CFLAGS="-Wmemset-transposed-args -Werror"
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647
11648 int
11649 main (void)
11650 {
11651 ;
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_compile "$LINENO"
11657 then :
11658
11659 FLAG_W_NO_MEMSET_TRANSPOSED_ARGS=-Wno-memset-transposed-args
11660
11661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11662 printf "%s\n" "yes" >&6; }
11663 else case e in #(
11664 e)
11665
11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 printf "%s\n" "no" >&6; } ;;
11668 esac
11669 fi
11670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11671 CFLAGS=$safe_CFLAGS
11672
11673
11674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wnonnull" >&5
11675 printf %s "checking if gcc accepts -Wnonnull... " >&6; }
11676 safe_CFLAGS=$CFLAGS
11677 CFLAGS="-Wnonnull -Werror"
11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 /* end confdefs.h. */
11680
11681 int
11682 main (void)
11683 {
11684 ;
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_compile "$LINENO"
11690 then :
11691
11692 FLAG_W_NO_NONNULL=-Wno-nonnull
11693
11694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 printf "%s\n" "yes" >&6; }
11696 else case e in #(
11697 e)
11698
11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700 printf "%s\n" "no" >&6; } ;;
11701 esac
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11704 CFLAGS=$safe_CFLAGS
11705
11706
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Woverflow" >&5
11708 printf %s "checking if gcc accepts -Woverflow... " >&6; }
11709 safe_CFLAGS=$CFLAGS
11710 CFLAGS="-Woverflow -Werror"
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713
11714 int
11715 main (void)
11716 {
11717 ;
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 if ac_fn_c_try_compile "$LINENO"
11723 then :
11724
11725 FLAG_W_NO_OVERFLOW=-Wno-overflow
11726
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728 printf "%s\n" "yes" >&6; }
11729 else case e in #(
11730 e)
11731
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 printf "%s\n" "no" >&6; } ;;
11734 esac
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11737 CFLAGS=$safe_CFLAGS
11738
11739
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wpointer-sign" >&5
11741 printf %s "checking if gcc accepts -Wpointer-sign... " >&6; }
11742 safe_CFLAGS=$CFLAGS
11743 CFLAGS="-Wpointer-sign -Werror"
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746
11747 int
11748 main (void)
11749 {
11750 ;
11751 ;
11752 return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_compile "$LINENO"
11756 then :
11757
11758 FLAG_W_NO_POINTER_SIGN=-Wno-pointer-sign
11759
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 printf "%s\n" "yes" >&6; }
11762 else case e in #(
11763 e)
11764
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 printf "%s\n" "no" >&6; } ;;
11767 esac
11768 fi
11769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11770 CFLAGS=$safe_CFLAGS
11771
11772
11773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wuninitialized" >&5
11774 printf %s "checking if gcc accepts -Wuninitialized... " >&6; }
11775 safe_CFLAGS=$CFLAGS
11776 CFLAGS="-Wuninitialized -Werror"
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779
11780 int
11781 main (void)
11782 {
11783 ;
11784 ;
11785 return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_c_try_compile "$LINENO"
11789 then :
11790
11791 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
11792
11793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794 printf "%s\n" "yes" >&6; }
11795 else case e in #(
11796 e)
11797
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 printf "%s\n" "no" >&6; } ;;
11800 esac
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11803 CFLAGS=$safe_CFLAGS
11804
11805
11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmaybe-uninitialized" >&5
11807 printf %s "checking if gcc accepts -Wmaybe-uninitialized... " >&6; }
11808 safe_CFLAGS=$CFLAGS
11809 CFLAGS="-Wmaybe-uninitialized -Werror"
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812
11813 int
11814 main (void)
11815 {
11816 ;
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_compile "$LINENO"
11822 then :
11823
11824 FLAG_W_NO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized
11825
11826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827 printf "%s\n" "yes" >&6; }
11828 else case e in #(
11829 e)
11830
11831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 printf "%s\n" "no" >&6; } ;;
11833 esac
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11836 CFLAGS=$safe_CFLAGS
11837
11838
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wunused-function" >&5
11840 printf %s "checking if gcc accepts -Wunused-function... " >&6; }
11841 safe_CFLAGS=$CFLAGS
11842 CFLAGS="-Wunused-function -Werror"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845
11846 int
11847 main (void)
11848 {
11849 ;
11850 ;
11851 return 0;
11852 }
11853 _ACEOF
11854 if ac_fn_c_try_compile "$LINENO"
11855 then :
11856
11857 FLAG_W_NO_UNUSED_FUNCTION=-Wno-unused-function
11858
11859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860 printf "%s\n" "yes" >&6; }
11861 else case e in #(
11862 e)
11863
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 printf "%s\n" "no" >&6; } ;;
11866 esac
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11869 CFLAGS=$safe_CFLAGS
11870
11871
11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wstatic-local-in-inline" >&5
11873 printf %s "checking if gcc accepts -Wstatic-local-in-inline... " >&6; }
11874 safe_CFLAGS=$CFLAGS
11875 CFLAGS="-Wstatic-local-in-inline -Werror"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878
11879 int
11880 main (void)
11881 {
11882 ;
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_compile "$LINENO"
11888 then :
11889
11890 FLAG_W_NO_STATIC_LOCAL_IN_INLINE=-Wno-static-local-in-inline
11891
11892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 printf "%s\n" "yes" >&6; }
11894 else case e in #(
11895 e)
11896
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 printf "%s\n" "no" >&6; } ;;
11899 esac
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11902 CFLAGS=$safe_CFLAGS
11903
11904
11905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmismatched-new-delete" >&5
11906 printf %s "checking if gcc accepts -Wmismatched-new-delete... " >&6; }
11907 safe_CFLAGS=$CFLAGS
11908 CFLAGS="-Wmismatched-new-delete -Werror"
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911
11912 int
11913 main (void)
11914 {
11915 ;
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_compile "$LINENO"
11921 then :
11922
11923 FLAG_W_NO_MISMATCHED_NEW_DELETE=-Wno-mismatched-new-delete
11924
11925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11926 printf "%s\n" "yes" >&6; }
11927 else case e in #(
11928 e)
11929
11930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 printf "%s\n" "no" >&6; } ;;
11932 esac
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11935 CFLAGS=$safe_CFLAGS
11936
11937
11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Winfinite-recursion" >&5
11939 printf %s "checking if gcc accepts -Winfinite-recursion... " >&6; }
11940 safe_CFLAGS=$CFLAGS
11941 CFLAGS="-Winfinite-recursion -Werror"
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944
11945 int
11946 main (void)
11947 {
11948 ;
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"
11954 then :
11955
11956 FLAG_W_NO_INFINITE_RECURSION=-Wno-infinite-recursion
11957
11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959 printf "%s\n" "yes" >&6; }
11960 else case e in #(
11961 e)
11962
11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 printf "%s\n" "no" >&6; } ;;
11965 esac
11966 fi
11967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11968 CFLAGS=$safe_CFLAGS
11969
11970
11971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wexpansion-to-defined" >&5
11972 printf %s "checking if gcc accepts -Wexpansion-to-defined... " >&6; }
11973 safe_CFLAGS=$CFLAGS
11974 CFLAGS="-Wexpansion-to-defined -Werror"
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11977
11978 int
11979 main (void)
11980 {
11981 ;
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 if ac_fn_c_try_compile "$LINENO"
11987 then :
11988
11989 FLAG_W_NO_EXPANSION_TO_DEFINED=-Wno-expansion-to-defined
11990
11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 printf "%s\n" "yes" >&6; }
11993 else case e in #(
11994 e)
11995
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 printf "%s\n" "no" >&6; } ;;
11998 esac
11999 fi
12000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12001 CFLAGS=$safe_CFLAGS
12002
12003
12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wunused-variable" >&5
12005 printf %s "checking if gcc accepts -Wunused-variable... " >&6; }
12006 safe_CFLAGS=$CFLAGS
12007 CFLAGS="-Wunused-variable -Werror"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010
12011 int
12012 main (void)
12013 {
12014 ;
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"
12020 then :
12021
12022 FLAG_W_NO_UNUSED_VARIABLE=-Wno-unused-variable
12023
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 printf "%s\n" "yes" >&6; }
12026 else case e in #(
12027 e)
12028
12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 printf "%s\n" "no" >&6; } ;;
12031 esac
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12034 CFLAGS=$safe_CFLAGS
12035
12036
12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wunused-but-set-variable" >&5
12038 printf %s "checking if gcc accepts -Wunused-but-set-variable... " >&6; }
12039 safe_CFLAGS=$CFLAGS
12040 CFLAGS="-Wunused-but-set-variable -Werror"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043
12044 int
12045 main (void)
12046 {
12047 ;
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_c_try_compile "$LINENO"
12053 then :
12054
12055 FLAG_W_NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12056
12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12058 printf "%s\n" "yes" >&6; }
12059 else case e in #(
12060 e)
12061
12062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 printf "%s\n" "no" >&6; } ;;
12064 esac
12065 fi
12066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12067 CFLAGS=$safe_CFLAGS
12068
12069
12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wnon-power-of-two-alignment" >&5
12071 printf %s "checking if gcc accepts -Wnon-power-of-two-alignment... " >&6; }
12072 safe_CFLAGS=$CFLAGS
12073 CFLAGS="-Wnon-power-of-two-alignment -Werror"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076
12077 int
12078 main (void)
12079 {
12080 ;
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_compile "$LINENO"
12086 then :
12087
12088 FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT=-Wno-non-power-of-two-alignment
12089
12090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 printf "%s\n" "yes" >&6; }
12092 else case e in #(
12093 e)
12094
12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 printf "%s\n" "no" >&6; } ;;
12097 esac
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12100 CFLAGS=$safe_CFLAGS
12101
12102
12103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wsign-compare" >&5
12104 printf %s "checking if gcc accepts -Wsign-compare... " >&6; }
12105 safe_CFLAGS=$CFLAGS
12106 CFLAGS="-Wsign-compare -Werror"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109
12110 int
12111 main (void)
12112 {
12113 ;
12114 ;
12115 return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_c_try_compile "$LINENO"
12119 then :
12120
12121 FLAG_W_NO_SIGN_COMPARE=-Wno-sign-compare
12122
12123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12124 printf "%s\n" "yes" >&6; }
12125 else case e in #(
12126 e)
12127
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 printf "%s\n" "no" >&6; } ;;
12130 esac
12131 fi
12132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12133 CFLAGS=$safe_CFLAGS
12134
12135
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wstringop-overflow" >&5
12137 printf %s "checking if gcc accepts -Wstringop-overflow... " >&6; }
12138 safe_CFLAGS=$CFLAGS
12139 CFLAGS="-Wstringop-overflow -Werror"
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142
12143 int
12144 main (void)
12145 {
12146 ;
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_compile "$LINENO"
12152 then :
12153
12154 FLAG_W_NO_STRINGOP_OVERFLOW=-Wno-stringop-overflow
12155
12156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 printf "%s\n" "yes" >&6; }
12158 else case e in #(
12159 e)
12160
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 printf "%s\n" "no" >&6; } ;;
12163 esac
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12166 CFLAGS=$safe_CFLAGS
12167
12168
12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wstringop-overread" >&5
12170 printf %s "checking if gcc accepts -Wstringop-overread... " >&6; }
12171 safe_CFLAGS=$CFLAGS
12172 CFLAGS="-Wstringop-overread -Werror"
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175
12176 int
12177 main (void)
12178 {
12179 ;
12180 ;
12181 return 0;
12182 }
12183 _ACEOF
12184 if ac_fn_c_try_compile "$LINENO"
12185 then :
12186
12187 FLAG_W_NO_STRINGOP_OVERREAD=-Wno-stringop-overread
12188
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12190 printf "%s\n" "yes" >&6; }
12191 else case e in #(
12192 e)
12193
12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 printf "%s\n" "no" >&6; } ;;
12196 esac
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12199 CFLAGS=$safe_CFLAGS
12200
12201
12202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wstringop-truncation" >&5
12203 printf %s "checking if gcc accepts -Wstringop-truncation... " >&6; }
12204 safe_CFLAGS=$CFLAGS
12205 CFLAGS="-Wstringop-truncation -Werror"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208
12209 int
12210 main (void)
12211 {
12212 ;
12213 ;
12214 return 0;
12215 }
12216 _ACEOF
12217 if ac_fn_c_try_compile "$LINENO"
12218 then :
12219
12220 FLAG_W_NO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
12221
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12223 printf "%s\n" "yes" >&6; }
12224 else case e in #(
12225 e)
12226
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 printf "%s\n" "no" >&6; } ;;
12229 esac
12230 fi
12231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12232 CFLAGS=$safe_CFLAGS
12233
12234
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-overflow" >&5
12236 printf %s "checking if gcc accepts -Wformat-overflow... " >&6; }
12237 safe_CFLAGS=$CFLAGS
12238 CFLAGS="-Wformat-overflow -Werror"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 int
12243 main (void)
12244 {
12245 ;
12246 ;
12247 return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_compile "$LINENO"
12251 then :
12252
12253 FLAG_W_NO_FORMAT_OVERFLOW=-Wno-format-overflow
12254
12255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256 printf "%s\n" "yes" >&6; }
12257 else case e in #(
12258 e)
12259
12260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 printf "%s\n" "no" >&6; } ;;
12262 esac
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12265 CFLAGS=$safe_CFLAGS
12266
12267
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wuse-after-free" >&5
12269 printf %s "checking if gcc accepts -Wuse-after-free... " >&6; }
12270 safe_CFLAGS=$CFLAGS
12271 CFLAGS="-Wuse-after-free -Werror"
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274
12275 int
12276 main (void)
12277 {
12278 ;
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_compile "$LINENO"
12284 then :
12285
12286 FLAG_W_NO_USE_AFTER_FREE=-Wno-use-after-free
12287
12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289 printf "%s\n" "yes" >&6; }
12290 else case e in #(
12291 e)
12292
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 printf "%s\n" "no" >&6; } ;;
12295 esac
12296 fi
12297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12298 CFLAGS=$safe_CFLAGS
12299
12300
12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wfree-nonheap-object" >&5
12302 printf %s "checking if gcc accepts -Wfree-nonheap-object... " >&6; }
12303 safe_CFLAGS=$CFLAGS
12304 CFLAGS="-Wfree-nonheap-object -Werror"
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307
12308 int
12309 main (void)
12310 {
12311 ;
12312 ;
12313 return 0;
12314 }
12315 _ACEOF
12316 if ac_fn_c_try_compile "$LINENO"
12317 then :
12318
12319 FLAG_W_NO_FREE_NONHEAP_OBJECT=-Wno-free-nonheap-object
12320
12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 printf "%s\n" "yes" >&6; }
12323 else case e in #(
12324 e)
12325
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 printf "%s\n" "no" >&6; } ;;
12328 esac
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12331 CFLAGS=$safe_CFLAGS
12332
12333
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wfortify-source" >&5
12335 printf %s "checking if gcc accepts -Wfortify-source... " >&6; }
12336 safe_CFLAGS=$CFLAGS
12337 CFLAGS="-Wfortify-source -Werror"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 int
12342 main (void)
12343 {
12344 ;
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_compile "$LINENO"
12350 then :
12351
12352 FLAG_W_NO_FORTIFY_SOURCE=-Wno-fortify-source
12353
12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355 printf "%s\n" "yes" >&6; }
12356 else case e in #(
12357 e)
12358
12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 printf "%s\n" "no" >&6; } ;;
12361 esac
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12364 CFLAGS=$safe_CFLAGS
12365
12366
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wbuiltin-memcpy-chk-size" >&5
12368 printf %s "checking if gcc accepts -Wbuiltin-memcpy-chk-size... " >&6; }
12369 safe_CFLAGS=$CFLAGS
12370 CFLAGS="-Wbuiltin-memcpy-chk-size -Werror"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373
12374 int
12375 main (void)
12376 {
12377 ;
12378 ;
12379 return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_compile "$LINENO"
12383 then :
12384
12385 FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE=-Wno-builtin-memcpy-chk-size
12386
12387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12388 printf "%s\n" "yes" >&6; }
12389 else case e in #(
12390 e)
12391
12392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 printf "%s\n" "no" >&6; } ;;
12394 esac
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12397 CFLAGS=$safe_CFLAGS
12398
12399
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wincompatible-pointer-types-discards-qualifiers" >&5
12401 printf %s "checking if gcc accepts -Wincompatible-pointer-types-discards-qualifiers... " >&6; }
12402 safe_CFLAGS=$CFLAGS
12403 CFLAGS="-Wincompatible-pointer-types-discards-qualifiers -Werror"
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12406
12407 int
12408 main (void)
12409 {
12410 ;
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_compile "$LINENO"
12416 then :
12417
12418 FLAG_W_NO_INCOMPATIBLE_POINTER_TYPES_DISCARDS_QUALIFIERS=-Wno-incompatible-pointer-types-discards-qualifiers
12419
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12421 printf "%s\n" "yes" >&6; }
12422 else case e in #(
12423 e)
12424
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 printf "%s\n" "no" >&6; } ;;
12427 esac
12428 fi
12429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12430 CFLAGS=$safe_CFLAGS
12431
12432
12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wsuspicious-bzero" >&5
12434 printf %s "checking if gcc accepts -Wsuspicious-bzero... " >&6; }
12435 safe_CFLAGS=$CFLAGS
12436 CFLAGS="-Wsuspicious-bzero -Werror"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439
12440 int
12441 main (void)
12442 {
12443 ;
12444 ;
12445 return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_compile "$LINENO"
12449 then :
12450
12451 FLAG_W_NO_SUSPICIOUS_BZERO=-Wno-suspicious-bzero
12452
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12454 printf "%s\n" "yes" >&6; }
12455 else case e in #(
12456 e)
12457
12458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 printf "%s\n" "no" >&6; } ;;
12460 esac
12461 fi
12462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12463 CFLAGS=$safe_CFLAGS
12464
12465
12466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wattributes" >&5
12467 printf %s "checking if gcc accepts -Wattributes... " >&6; }
12468 safe_CFLAGS=$CFLAGS
12469 CFLAGS="-Wattributes -Werror"
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472
12473 int
12474 main (void)
12475 {
12476 ;
12477 ;
12478 return 0;
12479 }
12480 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"
12482 then :
12483
12484 FLAG_W_NO_ATTRIBUTES=-Wno-attributes
12485
12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12487 printf "%s\n" "yes" >&6; }
12488 else case e in #(
12489 e)
12490
12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 printf "%s\n" "no" >&6; } ;;
12493 esac
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12496 CFLAGS=$safe_CFLAGS
12497
12498
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wunused-result" >&5
12500 printf %s "checking if gcc accepts -Wunused-result... " >&6; }
12501 safe_CFLAGS=$CFLAGS
12502 CFLAGS="-Wunused-result -Werror"
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12505
12506 int
12507 main (void)
12508 {
12509 ;
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_compile "$LINENO"
12515 then :
12516
12517 FLAG_W_NO_UNUSED_RESULT=-Wno-unused-result
12518
12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12520 printf "%s\n" "yes" >&6; }
12521 else case e in #(
12522 e)
12523
12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 printf "%s\n" "no" >&6; } ;;
12526 esac
12527 fi
12528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12529 CFLAGS=$safe_CFLAGS
12530
12531
12532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Winfinite-recursion" >&5
12533 printf %s "checking if gcc accepts -Winfinite-recursion... " >&6; }
12534 safe_CFLAGS=$CFLAGS
12535 CFLAGS="-Winfinite-recursion -Werror"
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538
12539 int
12540 main (void)
12541 {
12542 ;
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_c_try_compile "$LINENO"
12548 then :
12549
12550 FLAG_W_NO_INFINITE_RECURSION=-Wno-infinite-recursion
12551
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12553 printf "%s\n" "yes" >&6; }
12554 else case e in #(
12555 e)
12556
12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 printf "%s\n" "no" >&6; } ;;
12559 esac
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12562 CFLAGS=$safe_CFLAGS
12563
12564
12565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wdeprecated" >&5
12566 printf %s "checking if gcc accepts -Wdeprecated... " >&6; }
12567 safe_CFLAGS=$CFLAGS
12568 CFLAGS="-Wdeprecated -Werror"
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571
12572 int
12573 main (void)
12574 {
12575 ;
12576 ;
12577 return 0;
12578 }
12579 _ACEOF
12580 if ac_fn_c_try_compile "$LINENO"
12581 then :
12582
12583 FLAG_W_NO_DEPRECATED=-Wno-deprecated
12584
12585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12586 printf "%s\n" "yes" >&6; }
12587 else case e in #(
12588 e)
12589
12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 printf "%s\n" "no" >&6; } ;;
12592 esac
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12595 CFLAGS=$safe_CFLAGS
12596
12597
12598
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Walloc-size-larger-than=1677216" >&5
12600 printf %s "checking if gcc accepts -Walloc-size-larger-than=1677216... " >&6; }
12601 safe_CFLAGS=$CFLAGS
12602 CFLAGS="-Walloc-size-larger-than=1677216 -Werror"
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605
12606 int
12607 main (void)
12608 {
12609 ;
12610 ;
12611 return 0;
12612 }
12613 _ACEOF
12614 if ac_fn_c_try_compile "$LINENO"
12615 then :
12616
12617 FLAG_W_NO_ALLOC_SIZE_LARGER_THAN=-Wno-alloc-size-larger-than
12618
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 printf "%s\n" "yes" >&6; }
12621 else case e in #(
12622 e)
12623
12624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 printf "%s\n" "no" >&6; } ;;
12626 esac
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12629 CFLAGS=$safe_CFLAGS
12630
12631
12632
12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wwrite-strings" >&5
12634 printf %s "checking if gcc accepts -Wwrite-strings... " >&6; }
12635 safe_CFLAGS=$CFLAGS
12636 CFLAGS="-Wwrite-strings -Werror"
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639
12640 int
12641 main (void)
12642 {
12643 ;
12644 ;
12645 return 0;
12646 }
12647 _ACEOF
12648 if ac_fn_c_try_compile "$LINENO"
12649 then :
12650
12651 FLAG_W_WRITE_STRINGS=-Wwrite-strings
12652
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12654 printf "%s\n" "yes" >&6; }
12655 else case e in #(
12656 e)
12657
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 printf "%s\n" "no" >&6; } ;;
12660 esac
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12663 CFLAGS=$safe_CFLAGS
12664
12665
12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wempty-body" >&5
12667 printf %s "checking if gcc accepts -Wempty-body... " >&6; }
12668 safe_CFLAGS=$CFLAGS
12669 CFLAGS="-Wempty-body -Werror"
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672
12673 int
12674 main (void)
12675 {
12676 ;
12677 ;
12678 return 0;
12679 }
12680 _ACEOF
12681 if ac_fn_c_try_compile "$LINENO"
12682 then :
12683
12684 FLAG_W_EMPTY_BODY=-Wempty-body
12685
12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12687 printf "%s\n" "yes" >&6; }
12688 else case e in #(
12689 e)
12690
12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 printf "%s\n" "no" >&6; } ;;
12693 esac
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12696 CFLAGS=$safe_CFLAGS
12697
12698
12699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat" >&5
12700 printf %s "checking if gcc accepts -Wformat... " >&6; }
12701 safe_CFLAGS=$CFLAGS
12702 CFLAGS="-Wformat -Werror"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705
12706 int
12707 main (void)
12708 {
12709 ;
12710 ;
12711 return 0;
12712 }
12713 _ACEOF
12714 if ac_fn_c_try_compile "$LINENO"
12715 then :
12716
12717 FLAG_W_FORMAT=-Wformat
12718
12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12720 printf "%s\n" "yes" >&6; }
12721 else case e in #(
12722 e)
12723
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 printf "%s\n" "no" >&6; } ;;
12726 esac
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12729 CFLAGS=$safe_CFLAGS
12730
12731
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-signedness" >&5
12733 printf %s "checking if gcc accepts -Wformat-signedness... " >&6; }
12734 safe_CFLAGS=$CFLAGS
12735 CFLAGS="-Wformat-signedness -Werror"
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738
12739 int
12740 main (void)
12741 {
12742 ;
12743 ;
12744 return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_compile "$LINENO"
12748 then :
12749
12750 FLAG_W_FORMAT_SIGNEDNESS=-Wformat-signedness
12751
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12753 printf "%s\n" "yes" >&6; }
12754 else case e in #(
12755 e)
12756
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 printf "%s\n" "no" >&6; } ;;
12759 esac
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12762 CFLAGS=$safe_CFLAGS
12763
12764
12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wcast-qual" >&5
12766 printf %s "checking if gcc accepts -Wcast-qual... " >&6; }
12767 safe_CFLAGS=$CFLAGS
12768 CFLAGS="-Wcast-qual -Werror"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771
12772 int
12773 main (void)
12774 {
12775 ;
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 if ac_fn_c_try_compile "$LINENO"
12781 then :
12782
12783 FLAG_W_CAST_QUAL=-Wcast-qual
12784
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 printf "%s\n" "yes" >&6; }
12787 else case e in #(
12788 e)
12789
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 printf "%s\n" "no" >&6; } ;;
12792 esac
12793 fi
12794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12795 CFLAGS=$safe_CFLAGS
12796
12797
12798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wold-style-declaration" >&5
12799 printf %s "checking if gcc accepts -Wold-style-declaration... " >&6; }
12800 safe_CFLAGS=$CFLAGS
12801 CFLAGS="-Wold-style-declaration -Werror"
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804
12805 int
12806 main (void)
12807 {
12808 ;
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_compile "$LINENO"
12814 then :
12815
12816 FLAG_W_OLD_STYLE_DECLARATION=-Wold-style-declaration
12817
12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 printf "%s\n" "yes" >&6; }
12820 else case e in #(
12821 e)
12822
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 printf "%s\n" "no" >&6; } ;;
12825 esac
12826 fi
12827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12828 CFLAGS=$safe_CFLAGS
12829
12830
12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wignored-qualifiers" >&5
12832 printf %s "checking if gcc accepts -Wignored-qualifiers... " >&6; }
12833 safe_CFLAGS=$CFLAGS
12834 CFLAGS="-Wignored-qualifiers -Werror"
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837
12838 int
12839 main (void)
12840 {
12841 ;
12842 ;
12843 return 0;
12844 }
12845 _ACEOF
12846 if ac_fn_c_try_compile "$LINENO"
12847 then :
12848
12849 FLAG_W_IGNORED_QUALIFIERS=-Wignored-qualifiers
12850
12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 printf "%s\n" "yes" >&6; }
12853 else case e in #(
12854 e)
12855
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 printf "%s\n" "no" >&6; } ;;
12858 esac
12859 fi
12860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12861 CFLAGS=$safe_CFLAGS
12862
12863
12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmissing-parameter-type" >&5
12865 printf %s "checking if gcc accepts -Wmissing-parameter-type... " >&6; }
12866 safe_CFLAGS=$CFLAGS
12867 CFLAGS="-Wmissing-parameter-type -Werror"
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870
12871 int
12872 main (void)
12873 {
12874 ;
12875 ;
12876 return 0;
12877 }
12878 _ACEOF
12879 if ac_fn_c_try_compile "$LINENO"
12880 then :
12881
12882 FLAG_W_MISSING_PARAMETER_TYPE=-Wmissing-parameter-type
12883
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885 printf "%s\n" "yes" >&6; }
12886 else case e in #(
12887 e)
12888
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 printf "%s\n" "no" >&6; } ;;
12891 esac
12892 fi
12893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12894 CFLAGS=$safe_CFLAGS
12895
12896
12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wlogical-op" >&5
12898 printf %s "checking if gcc accepts -Wlogical-op... " >&6; }
12899 safe_CFLAGS=$CFLAGS
12900 CFLAGS="-Wlogical-op -Werror"
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903
12904 int
12905 main (void)
12906 {
12907 ;
12908 ;
12909 return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_c_try_compile "$LINENO"
12913 then :
12914
12915 FLAG_W_LOGICAL_OP=-Wlogical-op
12916
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 printf "%s\n" "yes" >&6; }
12919 else case e in #(
12920 e)
12921
12922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 printf "%s\n" "no" >&6; } ;;
12924 esac
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12927 CFLAGS=$safe_CFLAGS
12928
12929
12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wenum-conversion" >&5
12931 printf %s "checking if gcc accepts -Wenum-conversion... " >&6; }
12932 safe_CFLAGS=$CFLAGS
12933 CFLAGS="-Wenum-conversion -Werror"
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936
12937 int
12938 main (void)
12939 {
12940 ;
12941 ;
12942 return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_c_try_compile "$LINENO"
12946 then :
12947
12948 FLAG_W_ENUM_CONVERSION=-Wenum-conversion
12949
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12951 printf "%s\n" "yes" >&6; }
12952 else case e in #(
12953 e)
12954
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 printf "%s\n" "no" >&6; } ;;
12957 esac
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12960 CFLAGS=$safe_CFLAGS
12961
12962
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wimplicit-fallthrough=2" >&5
12964 printf %s "checking if gcc accepts -Wimplicit-fallthrough=2... " >&6; }
12965 safe_CFLAGS=$CFLAGS
12966 CFLAGS="-Wimplicit-fallthrough=2 -Werror"
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969
12970 int
12971 main (void)
12972 {
12973 ;
12974 ;
12975 return 0;
12976 }
12977 _ACEOF
12978 if ac_fn_c_try_compile "$LINENO"
12979 then :
12980
12981 FLAG_W_IMPLICIT_FALLTHROUGH=-Wimplicit-fallthrough=2
12982
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12984 printf "%s\n" "yes" >&6; }
12985 else case e in #(
12986 e)
12987
12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 printf "%s\n" "no" >&6; } ;;
12990 esac
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12993 CFLAGS=$safe_CFLAGS
12994
12995
12996 # Does this compiler support -Wformat-security ?
12997 # Special handling is needed, because certain GCC versions require -Wformat
12998 # being present if -Wformat-security is given. Otherwise a warning is issued.
12999 # However, AC_GCC_WARNING_SUBST will stick in -Werror (see r15323 for rationale).
13000 # And with that the warning will be turned into an error with the result
13001 # that -Wformat-security is believed to be unsupported when in fact it is.
13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-security" >&5
13003 printf %s "checking if gcc accepts -Wformat-security... " >&6; }
13004 safe_CFLAGS=$CFLAGS
13005 CFLAGS="-Wformat -Wformat-security -Werror"
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008
13009 int
13010 main (void)
13011 {
13012 ;
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_compile "$LINENO"
13018 then :
13019
13020 FLAG_W_FORMAT_SECURITY=-Wformat-security
13021
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13023 printf "%s\n" "yes" >&6; }
13024 else case e in #(
13025 e)
13026
13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 printf "%s\n" "no" >&6; } ;;
13029 esac
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13032 CFLAGS=$safe_CFLAGS
13033
13034 # does this compiler support -Wextra or the older -W ?
13035
13036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
13037 printf %s "checking if gcc accepts -Wextra or -W... " >&6; }
13038
13039 safe_CFLAGS=$CFLAGS
13040 CFLAGS="-Wextra -Werror"
13041
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044
13045 int
13046 main (void)
13047 {
13048
13049 return 0;
13050
13051 ;
13052 return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_compile "$LINENO"
13056 then :
13057
13058 FLAG_W_EXTRA=-Wextra
13059
13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
13061 printf "%s\n" "-Wextra" >&6; }
13062
13063 else case e in #(
13064 e)
13065 CFLAGS="-W -Werror"
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068
13069 int
13070 main (void)
13071 {
13072
13073 return 0;
13074
13075 ;
13076 return 0;
13077 }
13078 _ACEOF
13079 if ac_fn_c_try_compile "$LINENO"
13080 then :
13081
13082 FLAG_W_EXTRA=-W
13083
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -W" >&5
13085 printf "%s\n" "-W" >&6; }
13086
13087 else case e in #(
13088 e)
13089
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
13091 printf "%s\n" "not supported" >&6; }
13092 ;;
13093 esac
13094 fi
13095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13096 ;;
13097 esac
13098 fi
13099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13100 CFLAGS=$safe_CFLAGS
13101
13102 # On ARM we do not want to pass -Wcast-align as that produces loads
13103 # of warnings. GCC is just being conservative. See here:
13104 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65459#c4
13105 if test "X$VGCONF_ARCH_PRI" = "Xarm"; then
13106 FLAG_W_CAST_ALIGN=""
13107
13108 else
13109 FLAG_W_CAST_ALIGN=-Wcast-align
13110
13111 fi
13112
13113 # does this compiler support -faligned-new ?
13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ accepts -faligned-new" >&5
13115 printf %s "checking if g++ accepts -faligned-new... " >&6; }
13116
13117 safe_CXXFLAGS=$CXXFLAGS
13118 CXXFLAGS="-faligned-new -Werror"
13119
13120 ac_ext=cpp
13121 ac_cpp='$CXXCPP $CPPFLAGS'
13122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13125
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128
13129 int
13130 main (void)
13131 {
13132
13133 return 0;
13134
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_cxx_try_compile "$LINENO"
13140 then :
13141
13142 FLAG_FALIGNED_NEW="-faligned-new"
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 printf "%s\n" "yes" >&6; }
13145
13146 else case e in #(
13147 e)
13148 FLAG_FALIGNED_NEW=""
13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150 printf "%s\n" "no" >&6; }
13151 ;;
13152 esac
13153 fi
13154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13155 CXXFLAGS=$safe_CXXFLAGS
13156 ac_ext=c
13157 ac_cpp='$CPP $CPPFLAGS'
13158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13161
13162
13163
13164
13165 # does this compiler support -fsized-deallocation ?
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ accepts -fsized-deallocation" >&5
13167 printf %s "checking if g++ accepts -fsized-deallocation... " >&6; }
13168
13169 safe_CXXFLAGS=$CXXFLAGS
13170 CXXFLAGS="-fsized-deallocation -Werror"
13171
13172 ac_ext=cpp
13173 ac_cpp='$CXXCPP $CPPFLAGS'
13174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13177
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180
13181 int
13182 main (void)
13183 {
13184
13185 return 0;
13186
13187 ;
13188 return 0;
13189 }
13190 _ACEOF
13191 if ac_fn_cxx_try_compile "$LINENO"
13192 then :
13193
13194 FLAG_FSIZED_DEALLOCATION="-fsized-deallocation"
13195 ac_have_sized_deallocation=yes
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13197 printf "%s\n" "yes" >&6; }
13198
13199 else case e in #(
13200 e)
13201 FLAG_FSIZED_DEALLOCATION=""
13202 ac_have_sized_deallocation=no
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 printf "%s\n" "no" >&6; }
13205 ;;
13206 esac
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13209 CXXFLAGS=$safe_CXXFLAGS
13210 ac_ext=c
13211 ac_cpp='$CPP $CPPFLAGS'
13212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13215
13216
13217
13218 if test x$ac_have_sized_deallocation = xyes; then
13219 HAVE_FSIZED_DEALLOCATION_TRUE=
13220 HAVE_FSIZED_DEALLOCATION_FALSE='#'
13221 else
13222 HAVE_FSIZED_DEALLOCATION_TRUE='#'
13223 HAVE_FSIZED_DEALLOCATION_FALSE=
13224 fi
13225
13226
13227 # does this compiler support C++17 aligned new/delete?
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports aligned new and delete" >&5
13229 printf %s "checking if g++ supports aligned new and delete... " >&6; }
13230
13231 safe_CXXFLAGS=$CXXFLAGS
13232 CXXFLAGS="-std=c++17"
13233
13234 ac_ext=cpp
13235 ac_cpp='$CXXCPP $CPPFLAGS'
13236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13239
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242
13243 #include <cstdlib>
13244 #include <new>
13245
13246 int
13247 main (void)
13248 {
13249
13250 operator delete(nullptr, std::align_val_t(64U));
13251
13252 ;
13253 return 0;
13254 }
13255 _ACEOF
13256 if ac_fn_cxx_try_compile "$LINENO"
13257 then :
13258
13259 ac_have_aligned_cxx_alloc=yes
13260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13261 printf "%s\n" "yes" >&6; }
13262
13263 else case e in #(
13264 e)
13265 ac_have_aligned_cxx_alloc=no
13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 printf "%s\n" "no" >&6; }
13268 ;;
13269 esac
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13272 CXXFLAGS=$safe_CXXFLAGS
13273 ac_ext=c
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13278
13279
13280 if test x$ac_have_aligned_cxx_alloc = xyes; then
13281 HAVE_ALIGNED_CXX_ALLOC_TRUE=
13282 HAVE_ALIGNED_CXX_ALLOC_FALSE='#'
13283 else
13284 HAVE_ALIGNED_CXX_ALLOC_TRUE='#'
13285 HAVE_ALIGNED_CXX_ALLOC_FALSE=
13286 fi
13287
13288
13289 # does this compiler support -fno-stack-protector ?
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
13291 printf %s "checking if gcc accepts -fno-stack-protector... " >&6; }
13292
13293 safe_CFLAGS=$CFLAGS
13294 CFLAGS="-fno-stack-protector -Werror"
13295
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298
13299 int
13300 main (void)
13301 {
13302
13303 return 0;
13304
13305 ;
13306 return 0;
13307 }
13308 _ACEOF
13309 if ac_fn_c_try_compile "$LINENO"
13310 then :
13311
13312 no_stack_protector=yes
13313 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13315 printf "%s\n" "yes" >&6; }
13316
13317 else case e in #(
13318 e)
13319 no_stack_protector=no
13320 FLAG_FNO_STACK_PROTECTOR=""
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 printf "%s\n" "no" >&6; }
13323 ;;
13324 esac
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13327 CFLAGS=$safe_CFLAGS
13328
13329
13330
13331 # does this compiler support -finline-functions ?
13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -finline-functions" >&5
13333 printf %s "checking if gcc accepts -finline-functions... " >&6; }
13334
13335 safe_CFLAGS=$CFLAGS
13336 CFLAGS="-finline-functions -Werror"
13337
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340
13341 int
13342 main (void)
13343 {
13344
13345 return 0;
13346
13347 ;
13348 return 0;
13349 }
13350 _ACEOF
13351 if ac_fn_c_try_compile "$LINENO"
13352 then :
13353
13354 inline_functions=yes
13355 FLAG_FINLINE_FUNCTIONS="-finline-functions"
13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13357 printf "%s\n" "yes" >&6; }
13358
13359 else case e in #(
13360 e)
13361 inline_functions=no
13362 FLAG_FINLINE_FUNCTIONS=""
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 printf "%s\n" "no" >&6; }
13365 ;;
13366 esac
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13369 CFLAGS=$safe_CFLAGS
13370
13371
13372
13373 # Does GCC support disabling Identical Code Folding?
13374 # We want to disabled Identical Code Folding for the
13375 # tools preload shared objects to get better backraces.
13376 # For GCC 5.1+ -fipa-icf is enabled by default at -O2.
13377 # "The optimization reduces code size and may disturb
13378 # unwind stacks by replacing a function by equivalent
13379 # one with a different name."
13380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-ipa-icf" >&5
13381 printf %s "checking if gcc accepts -fno-ipa-icf... " >&6; }
13382
13383 safe_CFLAGS=$CFLAGS
13384 CFLAGS="-fno-ipa-icf -Werror"
13385
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388
13389 int
13390 main (void)
13391 {
13392
13393 return 0;
13394
13395 ;
13396 return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_compile "$LINENO"
13400 then :
13401
13402 no_ipa_icf=yes
13403 FLAG_FNO_IPA_ICF="-fno-ipa-icf"
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405 printf "%s\n" "yes" >&6; }
13406
13407 else case e in #(
13408 e)
13409 no_ipa_icf=no
13410 FLAG_FNO_IPA_ICF=""
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 printf "%s\n" "no" >&6; }
13413 ;;
13414 esac
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13417 CFLAGS=$safe_CFLAGS
13418
13419
13420
13421
13422 # Does this compiler support -fsanitize=undefined. This is true for
13423 # GCC 4.9 and newer. However, the undefined behaviour sanitiser in GCC 5.1
13424 # also checks for alignment violations on memory accesses which the valgrind
13425 # code base is sprinkled (if not littered) with. As those alignment issues
13426 # don't pose a problem we want to suppress warnings about them.
13427 # In GCC 5.1 this can be done by passing -fno-sanitize=alignment. Earlier
13428 # GCCs do not support that.
13429 #
13430 # Only checked for if --enable-ubsan was given.
13431 if test "x${vg_cv_ubsan}" = "xyes"; then
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment" >&5
13433 printf %s "checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment... " >&6; }
13434 safe_CFLAGS=$CFLAGS
13435 CFLAGS="-fsanitize=undefined -fno-sanitize=alignment -Werror"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438
13439 int
13440 main (void)
13441 {
13442
13443 return 0;
13444
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"
13450 then :
13451
13452 FLAG_FSANITIZE="-fsanitize=undefined -fno-sanitize=alignment"
13453 LIB_UBSAN="-static-libubsan"
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13455 printf "%s\n" "yes" >&6; }
13456
13457 else case e in #(
13458 e)
13459 CFLAGS="-fsanitize=undefined -Werror"
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462
13463 int
13464 main (void)
13465 {
13466
13467 return 0;
13468
13469 ;
13470 return 0;
13471 }
13472 _ACEOF
13473 if ac_fn_c_try_compile "$LINENO"
13474 then :
13475
13476 FLAG_FSANITIZE="-fsanitize=undefined"
13477 LIB_UBSAN="-static-libubsan"
13478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479 printf "%s\n" "yes" >&6; }
13480
13481 else case e in #(
13482 e)
13483 FLAG_FSANITIZE=""
13484 LIB_UBSAN=""
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 printf "%s\n" "no" >&6; }
13487 ;;
13488 esac
13489 fi
13490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13491 ;;
13492 esac
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13495 CFLAGS=$safe_CFLAGS
13496
13497
13498 fi
13499 # does this compiler support --param inline-unit-growth=... ?
13500
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
13502 printf %s "checking if gcc accepts --param inline-unit-growth... " >&6; }
13503
13504 safe_CFLAGS=$CFLAGS
13505 CFLAGS="--param inline-unit-growth=900 -Werror"
13506
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509
13510 int
13511 main (void)
13512 {
13513
13514 return 0;
13515
13516 ;
13517 return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"
13521 then :
13522
13523 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
13524
13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13526 printf "%s\n" "yes" >&6; }
13527
13528 else case e in #(
13529 e)
13530 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
13531
13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 printf "%s\n" "no" >&6; }
13534 ;;
13535 esac
13536 fi
13537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13538 CFLAGS=$safe_CFLAGS
13539
13540
13541 # does this compiler support -gdwarf-4 -fdebug-types-section ?
13542
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -gdwarf-4 -fdebug-types-section" >&5
13544 printf %s "checking if gcc accepts -gdwarf-4 -fdebug-types-section... " >&6; }
13545
13546 safe_CFLAGS=$CFLAGS
13547 CFLAGS="-gdwarf-4 -fdebug-types-section -Werror"
13548
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551
13552 int
13553 main (void)
13554 {
13555
13556 return 0;
13557
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 if ac_fn_c_try_compile "$LINENO"
13563 then :
13564
13565 ac_have_dwarf4=yes
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13567 printf "%s\n" "yes" >&6; }
13568
13569 else case e in #(
13570 e)
13571 ac_have_dwarf4=no
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 printf "%s\n" "no" >&6; }
13574 ;;
13575 esac
13576 fi
13577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13578 if test x$ac_have_dwarf4 = xyes; then
13579 DWARF4_TRUE=
13580 DWARF4_FALSE='#'
13581 else
13582 DWARF4_TRUE='#'
13583 DWARF4_FALSE=
13584 fi
13585
13586 CFLAGS=$safe_CFLAGS
13587
13588
13589 # does this compiler support -g -gz=zlib ?
13590
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib" >&5
13592 printf %s "checking if gcc accepts -g -gz=zlib... " >&6; }
13593
13594 safe_CFLAGS=$CFLAGS
13595 CFLAGS="-g -gz=zlib"
13596
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599
13600 int
13601 main (void)
13602 {
13603
13604 return 0;
13605
13606 ;
13607 return 0;
13608 }
13609 _ACEOF
13610 if ac_fn_c_try_link "$LINENO"
13611 then :
13612
13613 ac_have_gz_zlib=yes
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13615 printf "%s\n" "yes" >&6; }
13616
13617 else case e in #(
13618 e)
13619 ac_have_gz_zlib=no
13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 printf "%s\n" "no" >&6; }
13622 ;;
13623 esac
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13626 conftest$ac_exeext conftest.$ac_ext
13627 if test x$ac_have_gz_zlib = xyes; then
13628 GZ_ZLIB_TRUE=
13629 GZ_ZLIB_FALSE='#'
13630 else
13631 GZ_ZLIB_TRUE='#'
13632 GZ_ZLIB_FALSE=
13633 fi
13634
13635 CFLAGS=$safe_CFLAGS
13636
13637
13638 # does this compiler support -g -gz=zlib-gnu ?
13639
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib-gnu" >&5
13641 printf %s "checking if gcc accepts -g -gz=zlib-gnu... " >&6; }
13642
13643 safe_CFLAGS=$CFLAGS
13644 CFLAGS="-g -gz=zlib-gnu"
13645
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648
13649 int
13650 main (void)
13651 {
13652
13653 return 0;
13654
13655 ;
13656 return 0;
13657 }
13658 _ACEOF
13659 if ac_fn_c_try_link "$LINENO"
13660 then :
13661
13662 ac_have_gz_zlib_gnu=yes
13663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13664 printf "%s\n" "yes" >&6; }
13665
13666 else case e in #(
13667 e)
13668 ac_have_gz_zlib_gnu=no
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 printf "%s\n" "no" >&6; }
13671 ;;
13672 esac
13673 fi
13674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13675 conftest$ac_exeext conftest.$ac_ext
13676 if test x$ac_have_gz_zlib_gnu = xyes; then
13677 GZ_ZLIB_GNU_TRUE=
13678 GZ_ZLIB_GNU_FALSE='#'
13679 else
13680 GZ_ZLIB_GNU_TRUE='#'
13681 GZ_ZLIB_GNU_FALSE=
13682 fi
13683
13684 CFLAGS=$safe_CFLAGS
13685
13686
13687 # does this compiler support -g -gz=zstd ?
13688
13689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zstd" >&5
13690 printf %s "checking if gcc accepts -g -gz=zstd... " >&6; }
13691
13692 safe_CFLAGS=$CFLAGS
13693 CFLAGS="-g -gz=zstd"
13694
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697
13698 int
13699 main (void)
13700 {
13701
13702 return 0;
13703
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_link "$LINENO"
13709 then :
13710
13711 ac_have_gz_zstd=yes
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13713 printf "%s\n" "yes" >&6; }
13714
13715 else case e in #(
13716 e)
13717 ac_have_gz_zstd=no
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 printf "%s\n" "no" >&6; }
13720 ;;
13721 esac
13722 fi
13723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13724 conftest$ac_exeext conftest.$ac_ext
13725 if test x$ac_have_gz_zstd = xyes; then
13726 GZ_ZSTD_TRUE=
13727 GZ_ZSTD_FALSE='#'
13728 else
13729 GZ_ZSTD_TRUE='#'
13730 GZ_ZSTD_FALSE=
13731 fi
13732
13733 CFLAGS=$safe_CFLAGS
13734
13735
13736 # does this compiler support nested functions ?
13737
13738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts nested functions" >&5
13739 printf %s "checking if gcc accepts nested functions... " >&6; }
13740
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743
13744 int
13745 main (void)
13746 {
13747
13748 int foo() { return 1; }
13749 return foo();
13750
13751 ;
13752 return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"
13756 then :
13757
13758 ac_have_nested_functions=yes
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13760 printf "%s\n" "yes" >&6; }
13761
13762 else case e in #(
13763 e)
13764 ac_have_nested_functions=no
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 printf "%s\n" "no" >&6; }
13767 ;;
13768 esac
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13771 if test x$ac_have_nested_functions = xyes; then
13772 HAVE_NESTED_FUNCTIONS_TRUE=
13773 HAVE_NESTED_FUNCTIONS_FALSE='#'
13774 else
13775 HAVE_NESTED_FUNCTIONS_TRUE='#'
13776 HAVE_NESTED_FUNCTIONS_FALSE=
13777 fi
13778
13779
13780
13781 # does this compiler support the 'p' constraint in ASM statements ?
13782
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts the 'p' constraint in asm statements" >&5
13784 printf %s "checking if gcc accepts the 'p' constraint in asm statements... " >&6; }
13785
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788
13789 int
13790 main (void)
13791 {
13792
13793 char *p;
13794 __asm__ __volatile__ ("movdqa (%0),%%xmm6\n" : "=p" (p));
13795
13796 ;
13797 return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_compile "$LINENO"
13801 then :
13802
13803 ac_have_asm_constraint_p=yes
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13805 printf "%s\n" "yes" >&6; }
13806
13807 else case e in #(
13808 e)
13809 ac_have_asm_constraint_p=no
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 printf "%s\n" "no" >&6; }
13812 ;;
13813 esac
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13816 if test x$ac_have_asm_constraint_p = xyes; then
13817 HAVE_ASM_CONSTRAINT_P_TRUE=
13818 HAVE_ASM_CONSTRAINT_P_FALSE='#'
13819 else
13820 HAVE_ASM_CONSTRAINT_P_TRUE='#'
13821 HAVE_ASM_CONSTRAINT_P_FALSE=
13822 fi
13823
13824
13825
13826 # Does this compiler and linker support -pie?
13827 # Some compilers actually do not support -pie and report its usage
13828 # as an error. We need to check if it is safe to use it first.
13829
13830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -pie" >&5
13831 printf %s "checking if gcc accepts -pie... " >&6; }
13832
13833 safe_CFLAGS=$CFLAGS
13834 CFLAGS="-pie"
13835
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838
13839 int
13840 main (void)
13841 {
13842
13843 return 0;
13844
13845 ;
13846 return 0;
13847 }
13848 _ACEOF
13849 if ac_fn_c_try_link "$LINENO"
13850 then :
13851
13852 FLAG_PIE="-pie"
13853
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855 printf "%s\n" "yes" >&6; }
13856
13857 else case e in #(
13858 e)
13859 FLAG_PIE=""
13860
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 printf "%s\n" "no" >&6; }
13863 ;;
13864 esac
13865 fi
13866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13867 conftest$ac_exeext conftest.$ac_ext
13868 CFLAGS=$safe_CFLAGS
13869
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -ansi" >&5
13871 printf %s "checking if gcc accepts -ansi... " >&6; }
13872
13873 safe_CFLAGS=$CFLAGS
13874 CFLAGS="-ansi"
13875
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878
13879 int
13880 main (void)
13881 {
13882
13883 return 0;
13884
13885 ;
13886 return 0;
13887 }
13888 _ACEOF
13889 if ac_fn_c_try_compile "$LINENO"
13890 then :
13891
13892 ac_have_ansi=yes
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13894 printf "%s\n" "yes" >&6; }
13895
13896 else case e in #(
13897 e)
13898 ac_have_ansi=no
13899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 printf "%s\n" "no" >&6; }
13901 ;;
13902 esac
13903 fi
13904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13905 if test x$ac_have_ansi = xyes; then
13906 HAVE_ANSI_TRUE=
13907 HAVE_ANSI_FALSE='#'
13908 else
13909 HAVE_ANSI_TRUE='#'
13910 HAVE_ANSI_FALSE=
13911 fi
13912
13913
13914 CFLAGS=$safe_CFLAGS
13915
13916
13917 # Does this compiler support -no-pie?
13918 # On Ubuntu 16.10+, gcc produces position independent executables (PIE) by
13919 # default. However this gets in the way with some tests, we use -no-pie
13920 # for these.
13921
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -no-pie" >&5
13923 printf %s "checking if gcc accepts -no-pie... " >&6; }
13924
13925 safe_CFLAGS=$CFLAGS
13926 CFLAGS="-no-pie -Werror"
13927
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930
13931 int
13932 main (void)
13933 {
13934
13935 return 0;
13936
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 if ac_fn_c_try_compile "$LINENO"
13942 then :
13943
13944 FLAG_NO_PIE="-no-pie"
13945
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13947 printf "%s\n" "yes" >&6; }
13948
13949 else case e in #(
13950 e)
13951 FLAG_NO_PIE=""
13952
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 printf "%s\n" "no" >&6; }
13955 ;;
13956 esac
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13959 CFLAGS=$safe_CFLAGS
13960
13961
13962 # We want to use use the -Ttext-segment option to the linker.
13963 # GNU (bfd) ld supports this directly. Newer GNU gold linkers
13964 # support it as an alias of -Ttext. Sadly GNU (bfd) ld's -Ttext
13965 # semantics are NOT what we want (GNU gold -Ttext is fine).
13966 #
13967 # For GNU (bfd) ld -Ttext-segment chooses the base at which ELF headers
13968 # will reside. -Ttext aligns just the .text section start (but not any
13969 # other section).
13970 #
13971 # LLVM ld.lld 10.0 changed the semantics of its -Ttext. See "Breaking changes"
13972 # in https://releases.llvm.org/10.0.0/tools/lld/docs/ReleaseNotes.html
13973 # The --image-base option (since version 6.0?) provides the semantics needed.
13974 # -Ttext-segment generates an error, but -Ttext now more closely
13975 # follows the GNU (bfd) ld's -Ttext.
13976 #
13977 # So test first for --image-base support, and if that fails then
13978 # for -Ttext-segment which is supported by all bfd ld versions
13979 # and use that if it exists. If it doesn't exist it must be an older
13980 # version of gold and we can fall back to using -Ttext which has the
13981 # right semantics.
13982
13983 safe_CFLAGS=$CFLAGS
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--image-base" >&5
13985 printf %s "checking if the linker accepts -Wl,--image-base... " >&6; }
13986
13987 CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,--image-base=$valt_load_address_pri_norml -Werror"
13988
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 int _start () { return 0; }
13992 _ACEOF
13993 if ac_fn_c_try_link "$LINENO"
13994 then :
13995
13996 linker_using_t_text="no"
13997 FLAG_T_TEXT="--image-base"
13998
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 printf "%s\n" "yes" >&6; }
14001
14002 else case e in #(
14003 e)
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005 printf "%s\n" "no" >&6; }
14006
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,-Ttext-segment" >&5
14008 printf %s "checking if the linker accepts -Wl,-Ttext-segment... " >&6; }
14009
14010 CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,-Ttext-segment=$valt_load_address_pri_norml -Werror"
14011
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14014 int _start () { return 0; }
14015 _ACEOF
14016 if ac_fn_c_try_link "$LINENO"
14017 then :
14018
14019 linker_using_t_text="no"
14020 FLAG_T_TEXT="-Ttext-segment"
14021
14022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14023 printf "%s\n" "yes" >&6; }
14024
14025 else case e in #(
14026 e)
14027 linker_using_t_text="yes"
14028 FLAG_T_TEXT="-Ttext"
14029
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 printf "%s\n" "no" >&6; }
14032 ;;
14033 esac
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14036 conftest$ac_exeext conftest.$ac_ext
14037 ;;
14038 esac
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14041 conftest$ac_exeext conftest.$ac_ext
14042
14043 CFLAGS=$safe_CFLAGS
14044
14045 # If the linker only supports -Ttext (not -Ttext-segment or --image-base) then we will
14046 # have to strip any build-id ELF NOTEs from the statically linked tools.
14047 # Otherwise the build-id NOTE might end up at the default load address.
14048 # (Pedantically if the linker is gold then -Ttext is fine, but newer
14049 # gold versions also support -Ttext-segment. So just assume that unless
14050 # we can use -Ttext-segment we need to strip the build-id NOTEs.
14051 if test "x${linker_using_t_text}" = "xyes"; then
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ld -Ttext used, need to strip build-id NOTEs." >&5
14053 printf "%s\n" "$as_me: ld -Ttext used, need to strip build-id NOTEs." >&6;}
14054 # does the linker support -Wl,--build-id=none ? Note, it's
14055 # important that we test indirectly via whichever C compiler
14056 # is selected, rather than testing /usr/bin/ld or whatever
14057 # directly.
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
14059 printf %s "checking if the linker accepts -Wl,--build-id=none... " >&6; }
14060 safe_CFLAGS=$CFLAGS
14061 CFLAGS="-Wl,--build-id=none -Werror"
14062
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065
14066 int
14067 main (void)
14068 {
14069 return 0;
14070 ;
14071 return 0;
14072 }
14073 _ACEOF
14074 if ac_fn_c_try_link "$LINENO"
14075 then :
14076
14077 FLAG_NO_BUILD_ID="-Wl,--build-id=none"
14078
14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080 printf "%s\n" "yes" >&6; }
14081
14082 else case e in #(
14083 e)
14084 FLAG_NO_BUILD_ID=""
14085
14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087 printf "%s\n" "no" >&6; }
14088 ;;
14089 esac
14090 fi
14091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14092 conftest$ac_exeext conftest.$ac_ext
14093 else
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ld --image-base or -Ttext-segment used, no need to strip build-id NOTEs." >&5
14095 printf "%s\n" "$as_me: ld --image-base or -Ttext-segment used, no need to strip build-id NOTEs." >&6;}
14096 FLAG_NO_BUILD_ID=""
14097
14098 fi
14099 CFLAGS=$safe_CFLAGS
14100
14101 # On s390x, if the linker supports -Wl,--s390-pgste, then we build the
14102 # tools with that flag. This enables running programs that need it, such
14103 # as qemu-kvm.
14104 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX; then
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--s390-pgste" >&5
14106 printf %s "checking if the linker accepts -Wl,--s390-pgste... " >&6; }
14107 safe_CFLAGS=$CFLAGS
14108 CFLAGS="-Wl,--s390-pgste"
14109
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14112
14113 int
14114 main (void)
14115 {
14116 return 0;
14117 ;
14118 return 0;
14119 }
14120 _ACEOF
14121 if ac_fn_c_try_link "$LINENO"
14122 then :
14123
14124 FLAG_S390_PGSTE="-Wl,--s390-pgste"
14125
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14127 printf "%s\n" "yes" >&6; }
14128
14129 else case e in #(
14130 e)
14131 FLAG_S390_PGSTE=""
14132
14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 printf "%s\n" "no" >&6; }
14135 ;;
14136 esac
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14139 conftest$ac_exeext conftest.$ac_ext
14140 CFLAGS=$safe_CFLAGS
14141 fi
14142
14143 # check if linker accepts --no-warn-execstack
14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--no-warn-execstack" >&5
14145 printf %s "checking if the linker accepts -Wl,--no-warn-execstack... " >&6; }
14146 safe_CFLAGS=$CFLAGS
14147 CFLAGS="-Wl,--no-warn-execstack"
14148
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151
14152 int
14153 main (void)
14154 {
14155 return 0;
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"
14161 then :
14162
14163 FLAG_NO_WARN_EXECSTACK="-Wl,--no-warn-execstack"
14164
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14166 printf "%s\n" "yes" >&6; }
14167
14168 else case e in #(
14169 e)
14170 FLAG_NO_WARN_EXECSTACK=""
14171
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 printf "%s\n" "no" >&6; }
14174 ;;
14175 esac
14176 fi
14177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14178 conftest$ac_exeext conftest.$ac_ext
14179 CFLAGS=$safe_CFLAGS
14180
14181 # does the ppc assembler support "mtocrf" et al?
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
14183 printf %s "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
14184
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187
14188 int
14189 main (void)
14190 {
14191
14192 __asm__ __volatile__("mtocrf 4,0");
14193 __asm__ __volatile__("mfocrf 0,4");
14194
14195 ;
14196 return 0;
14197 }
14198 _ACEOF
14199 if ac_fn_c_try_compile "$LINENO"
14200 then :
14201
14202 ac_have_as_ppc_mftocrf=yes
14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14204 printf "%s\n" "yes" >&6; }
14205
14206 else case e in #(
14207 e)
14208 ac_have_as_ppc_mftocrf=no
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 printf "%s\n" "no" >&6; }
14211 ;;
14212 esac
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14215 if test x$ac_have_as_ppc_mftocrf = xyes ; then
14216
14217 printf "%s\n" "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
14218
14219 fi
14220
14221
14222 # does the ppc assembler support "lfdp" and other phased out floating point insns?
14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 asm supports phased out floating point instructions" >&5
14224 printf %s "checking if ppc32/64 asm supports phased out floating point instructions... " >&6; }
14225
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228
14229 int
14230 main (void)
14231 {
14232
14233 do { typedef struct {
14234 double hi;
14235 double lo;
14236 } dbl_pair_t;
14237 dbl_pair_t dbl_pair[3];
14238 __asm__ volatile ("lfdp 10, %0"::"m" (dbl_pair[0]));
14239 } while (0)
14240
14241 ;
14242 return 0;
14243 }
14244 _ACEOF
14245 if ac_fn_c_try_compile "$LINENO"
14246 then :
14247
14248 ac_have_as_ppc_fpPO=yes
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14250 printf "%s\n" "yes" >&6; }
14251
14252 else case e in #(
14253 e)
14254 ac_have_as_ppc_fpPO=no
14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 printf "%s\n" "no" >&6; }
14257 ;;
14258 esac
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14261 if test x$ac_have_as_ppc_fpPO = xyes ; then
14262
14263 printf "%s\n" "#define HAVE_AS_PPC_FPPO 1" >>confdefs.h
14264
14265 fi
14266
14267
14268 # does the amd64 assembler understand "fxsave64" and "fxrstor64"?
14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler supports fxsave64/fxrstor64" >&5
14270 printf %s "checking if amd64 assembler supports fxsave64/fxrstor64... " >&6; }
14271
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274
14275 int
14276 main (void)
14277 {
14278
14279 void* p;
14280 asm __volatile__("fxsave64 (%0)" : : "r" (p) : "memory" );
14281 asm __volatile__("fxrstor64 (%0)" : : "r" (p) : "memory" );
14282
14283 ;
14284 return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_compile "$LINENO"
14288 then :
14289
14290 ac_have_as_amd64_fxsave64=yes
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14292 printf "%s\n" "yes" >&6; }
14293
14294 else case e in #(
14295 e)
14296 ac_have_as_amd64_fxsave64=no
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 printf "%s\n" "no" >&6; }
14299 ;;
14300 esac
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14303 if test x$ac_have_as_amd64_fxsave64 = xyes ; then
14304
14305 printf "%s\n" "#define HAVE_AS_AMD64_FXSAVE64 1" >>confdefs.h
14306
14307 fi
14308
14309 # does the x86/amd64 assembler understand SSE3 instructions?
14310 # Note, this doesn't generate a C-level symbol. It generates a
14311 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
14312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
14313 printf %s "checking if x86/amd64 assembler speaks SSE3... " >&6; }
14314
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317
14318 int
14319 main (void)
14320 {
14321
14322 do { long long int x;
14323 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
14324 while (0)
14325
14326 ;
14327 return 0;
14328 }
14329 _ACEOF
14330 if ac_fn_c_try_compile "$LINENO"
14331 then :
14332
14333 ac_have_as_sse3=yes
14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14335 printf "%s\n" "yes" >&6; }
14336
14337 else case e in #(
14338 e)
14339 ac_have_as_sse3=no
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 printf "%s\n" "no" >&6; }
14342 ;;
14343 esac
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14346
14347 if test x$ac_have_as_sse3 = xyes; then
14348 BUILD_SSE3_TESTS_TRUE=
14349 BUILD_SSE3_TESTS_FALSE='#'
14350 else
14351 BUILD_SSE3_TESTS_TRUE='#'
14352 BUILD_SSE3_TESTS_FALSE=
14353 fi
14354
14355
14356
14357 # Ditto for SSSE3 instructions (note extra S)
14358 # Note, this doesn't generate a C-level symbol. It generates a
14359 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
14360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
14361 printf %s "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
14362
14363 save_CFLAGS="$CFLAGS"
14364 CFLAGS="$CFLAGS -msse -Werror"
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367
14368 int
14369 main (void)
14370 {
14371
14372 do { long long int x;
14373 __asm__ __volatile__(
14374 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
14375 while (0)
14376
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 if ac_fn_c_try_compile "$LINENO"
14382 then :
14383
14384 ac_have_as_ssse3=yes
14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14386 printf "%s\n" "yes" >&6; }
14387
14388 else case e in #(
14389 e)
14390 ac_have_as_ssse3=no
14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 printf "%s\n" "no" >&6; }
14393 ;;
14394 esac
14395 fi
14396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14397 CFLAGS="$save_CFLAGS"
14398
14399 if test x$ac_have_as_ssse3 = xyes; then
14400 BUILD_SSSE3_TESTS_TRUE=
14401 BUILD_SSSE3_TESTS_FALSE='#'
14402 else
14403 BUILD_SSSE3_TESTS_TRUE='#'
14404 BUILD_SSSE3_TESTS_FALSE=
14405 fi
14406
14407
14408
14409 # does the x86/amd64 assembler understand the PCLMULQDQ instruction?
14410 # Note, this doesn't generate a C-level symbol. It generates a
14411 # automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
14413 printf %s "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416
14417 int
14418 main (void)
14419 {
14420
14421 do {
14422 __asm__ __volatile__(
14423 "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
14424 while (0)
14425
14426 ;
14427 return 0;
14428 }
14429 _ACEOF
14430 if ac_fn_c_try_compile "$LINENO"
14431 then :
14432
14433 ac_have_as_pclmulqdq=yes
14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14435 printf "%s\n" "yes" >&6; }
14436
14437 else case e in #(
14438 e)
14439 ac_have_as_pclmulqdq=no
14440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 printf "%s\n" "no" >&6; }
14442 ;;
14443 esac
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14446
14447 if test x$ac_have_as_pclmulqdq = xyes; then
14448 BUILD_PCLMULQDQ_TESTS_TRUE=
14449 BUILD_PCLMULQDQ_TESTS_FALSE='#'
14450 else
14451 BUILD_PCLMULQDQ_TESTS_TRUE='#'
14452 BUILD_PCLMULQDQ_TESTS_FALSE=
14453 fi
14454
14455
14456
14457 # does the x86/amd64 assembler understand the VPCLMULQDQ instruction?
14458 # Note, this doesn't generate a C-level symbol. It generates a
14459 # automake-level symbol (BUILD_VPCLMULQDQ_TESTS), used in test Makefile.am's
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'vpclmulqdq'" >&5
14461 printf %s "checking if x86/amd64 assembler supports 'vpclmulqdq'... " >&6; }
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14464
14465 int
14466 main (void)
14467 {
14468
14469 do {
14470 /*
14471 * Carry-less multiplication of xmm1 with xmm2 and store the result in
14472 * xmm3. The immediate is used to determine which quadwords of xmm1 and
14473 * xmm2 should be used.
14474 */
14475 __asm__ __volatile__(
14476 "vpclmulqdq \$0,%%xmm1,%%xmm2,%%xmm3" : : : );
14477 } while (0)
14478
14479 ;
14480 return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"
14484 then :
14485
14486 ac_have_as_vpclmulqdq=yes
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14488 printf "%s\n" "yes" >&6; }
14489
14490 else case e in #(
14491 e)
14492 ac_have_as_vpclmulqdq=no
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494 printf "%s\n" "no" >&6; }
14495 ;;
14496 esac
14497 fi
14498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14499
14500 if test x$ac_have_as_vpclmulqdq = xyes; then
14501 BUILD_VPCLMULQDQ_TESTS_TRUE=
14502 BUILD_VPCLMULQDQ_TESTS_FALSE='#'
14503 else
14504 BUILD_VPCLMULQDQ_TESTS_TRUE='#'
14505 BUILD_VPCLMULQDQ_TESTS_FALSE=
14506 fi
14507
14508
14509
14510 # does the x86/amd64 assembler understand FMA4 instructions?
14511 # Note, this doesn't generate a C-level symbol. It generates a
14512 # automake-level symbol (BUILD_AFM4_TESTS), used in test Makefile.am's
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports FMA4 'vfmaddpd'" >&5
14514 printf %s "checking if x86/amd64 assembler supports FMA4 'vfmaddpd'... " >&6; }
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517
14518 int
14519 main (void)
14520 {
14521
14522 do {
14523 __asm__ __volatile__(
14524 "vfmaddpd %%xmm7,%%xmm8,%%xmm6,%%xmm9" : : : );
14525 } while (0)
14526
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_compile "$LINENO"
14532 then :
14533
14534 ac_have_as_vfmaddpd=yes
14535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14536 printf "%s\n" "yes" >&6; }
14537
14538 else case e in #(
14539 e)
14540 ac_have_as_vfmaddpd=no
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 printf "%s\n" "no" >&6; }
14543 ;;
14544 esac
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14547
14548 if test x$ac_have_as_vfmaddpd = xyes; then
14549 BUILD_FMA4_TESTS_TRUE=
14550 BUILD_FMA4_TESTS_FALSE='#'
14551 else
14552 BUILD_FMA4_TESTS_TRUE='#'
14553 BUILD_FMA4_TESTS_FALSE=
14554 fi
14555
14556
14557
14558 # does the x86/amd64 assembler understand the LZCNT instruction?
14559 # Note, this doesn't generate a C-level symbol. It generates a
14560 # automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
14562 printf %s "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
14563
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566
14567 int
14568 main (void)
14569 {
14570
14571 do {
14572 __asm__ __volatile__("lzcnt %%rax,%%rax" : : : "rax");
14573 } while (0)
14574
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 if ac_fn_c_try_compile "$LINENO"
14580 then :
14581
14582 ac_have_as_lzcnt=yes
14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14584 printf "%s\n" "yes" >&6; }
14585
14586 else case e in #(
14587 e)
14588 ac_have_as_lzcnt=no
14589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 printf "%s\n" "no" >&6; }
14591 ;;
14592 esac
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14595
14596 if test x$ac_have_as_lzcnt = xyes; then
14597 BUILD_LZCNT_TESTS_TRUE=
14598 BUILD_LZCNT_TESTS_FALSE='#'
14599 else
14600 BUILD_LZCNT_TESTS_TRUE='#'
14601 BUILD_LZCNT_TESTS_FALSE=
14602 fi
14603
14604
14605
14606 # does the x86/amd64 assembler understand the LOOPNEL instruction?
14607 # Note, this doesn't generate a C-level symbol. It generates a
14608 # automake-level symbol (BUILD_LOOPNEL_TESTS), used in test Makefile.am's
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'loopnel'" >&5
14610 printf %s "checking if x86/amd64 assembler supports 'loopnel'... " >&6; }
14611
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614
14615 int
14616 main (void)
14617 {
14618
14619 do {
14620 __asm__ __volatile__("1: loopnel 1b\n");
14621 } while (0)
14622
14623 ;
14624 return 0;
14625 }
14626 _ACEOF
14627 if ac_fn_c_try_compile "$LINENO"
14628 then :
14629
14630 ac_have_as_loopnel=yes
14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14632 printf "%s\n" "yes" >&6; }
14633
14634 else case e in #(
14635 e)
14636 ac_have_as_loopnel=no
14637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 printf "%s\n" "no" >&6; }
14639 ;;
14640 esac
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14643
14644 if test x$ac_have_as_loopnel = xyes; then
14645 BUILD_LOOPNEL_TESTS_TRUE=
14646 BUILD_LOOPNEL_TESTS_FALSE='#'
14647 else
14648 BUILD_LOOPNEL_TESTS_TRUE='#'
14649 BUILD_LOOPNEL_TESTS_FALSE=
14650 fi
14651
14652
14653
14654 # does the x86/amd64 assembler understand ADDR32 ?
14655 # Note, this doesn't generate a C-level symbol. It generates a
14656 # automake-level symbol (BUILD_ADDR32_TESTS), used in test Makefile.am's
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'addr32'" >&5
14658 printf %s "checking if x86/amd64 assembler supports 'addr32'... " >&6; }
14659
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14662
14663 int
14664 main (void)
14665 {
14666
14667 do {
14668 asm volatile ("addr32 rep movsb");
14669 } while (0)
14670
14671 ;
14672 return 0;
14673 }
14674 _ACEOF
14675 if ac_fn_c_try_compile "$LINENO"
14676 then :
14677
14678 ac_have_as_addr32=yes
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14680 printf "%s\n" "yes" >&6; }
14681
14682 else case e in #(
14683 e)
14684 ac_have_as_addr32=no
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 printf "%s\n" "no" >&6; }
14687 ;;
14688 esac
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14691
14692 if test x$ac_have_as_addr32 = xyes; then
14693 BUILD_ADDR32_TESTS_TRUE=
14694 BUILD_ADDR32_TESTS_FALSE='#'
14695 else
14696 BUILD_ADDR32_TESTS_TRUE='#'
14697 BUILD_ADDR32_TESTS_FALSE=
14698 fi
14699
14700
14701
14702 # does the x86/amd64 assembler understand SSE 4.2 instructions?
14703 # Note, this doesn't generate a C-level symbol. It generates a
14704 # automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
14705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
14706 printf %s "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
14707
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710
14711 int
14712 main (void)
14713 {
14714
14715 do { long long int x;
14716 __asm__ __volatile__(
14717 "crc32q %%r15,%%r15" : : : "r15" );
14718 __asm__ __volatile__(
14719 "pblendvb (%%rcx), %%xmm11" : : : "memory", "xmm11");
14720 __asm__ __volatile__(
14721 "aesdec %%xmm2, %%xmm1" : : : "xmm2", "xmm1"); }
14722 while (0)
14723
14724 ;
14725 return 0;
14726 }
14727 _ACEOF
14728 if ac_fn_c_try_compile "$LINENO"
14729 then :
14730
14731 ac_have_as_sse42=yes
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14733 printf "%s\n" "yes" >&6; }
14734
14735 else case e in #(
14736 e)
14737 ac_have_as_sse42=no
14738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739 printf "%s\n" "no" >&6; }
14740 ;;
14741 esac
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14744
14745 if test x$ac_have_as_sse42 = xyes; then
14746 BUILD_SSE42_TESTS_TRUE=
14747 BUILD_SSE42_TESTS_FALSE='#'
14748 else
14749 BUILD_SSE42_TESTS_TRUE='#'
14750 BUILD_SSE42_TESTS_FALSE=
14751 fi
14752
14753
14754
14755 # does the x86/amd64 assembler understand AVX instructions?
14756 # Note, this doesn't generate a C-level symbol. It generates a
14757 # automake-level symbol (BUILD_AVX_TESTS), used in test Makefile.am's
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX" >&5
14759 printf %s "checking if x86/amd64 assembler speaks AVX... " >&6; }
14760
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763
14764 int
14765 main (void)
14766 {
14767
14768 do { long long int x;
14769 __asm__ __volatile__(
14770 "vmovupd (%%rsp), %%ymm7" : : : "xmm7" );
14771 __asm__ __volatile__(
14772 "vaddpd %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); }
14773 while (0)
14774
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_compile "$LINENO"
14780 then :
14781
14782 ac_have_as_avx=yes
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14784 printf "%s\n" "yes" >&6; }
14785
14786 else case e in #(
14787 e)
14788 ac_have_as_avx=no
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 printf "%s\n" "no" >&6; }
14791 ;;
14792 esac
14793 fi
14794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14795
14796 if test x$ac_have_as_avx = xyes; then
14797 BUILD_AVX_TESTS_TRUE=
14798 BUILD_AVX_TESTS_FALSE='#'
14799 else
14800 BUILD_AVX_TESTS_TRUE='#'
14801 BUILD_AVX_TESTS_FALSE=
14802 fi
14803
14804
14805
14806 # does the x86/amd64 assembler understand AVX2 instructions?
14807 # Note, this doesn't generate a C-level symbol. It generates a
14808 # automake-level symbol (BUILD_AVX2_TESTS), used in test Makefile.am's
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX2" >&5
14810 printf %s "checking if x86/amd64 assembler speaks AVX2... " >&6; }
14811
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814
14815 int
14816 main (void)
14817 {
14818
14819 do { long long int x;
14820 __asm__ __volatile__(
14821 "vpsravd (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" );
14822 __asm__ __volatile__(
14823 "vpaddb %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); }
14824 while (0)
14825
14826 ;
14827 return 0;
14828 }
14829 _ACEOF
14830 if ac_fn_c_try_compile "$LINENO"
14831 then :
14832
14833 ac_have_as_avx2=yes
14834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14835 printf "%s\n" "yes" >&6; }
14836
14837 else case e in #(
14838 e)
14839 ac_have_as_avx2=no
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14841 printf "%s\n" "no" >&6; }
14842 ;;
14843 esac
14844 fi
14845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14846
14847 if test x$ac_have_as_avx2 = xyes; then
14848 BUILD_AVX2_TESTS_TRUE=
14849 BUILD_AVX2_TESTS_FALSE='#'
14850 else
14851 BUILD_AVX2_TESTS_TRUE='#'
14852 BUILD_AVX2_TESTS_FALSE=
14853 fi
14854
14855
14856
14857 # does the x86/amd64 assembler understand TSX instructions and
14858 # the XACQUIRE/XRELEASE prefixes?
14859 # Note, this doesn't generate a C-level symbol. It generates a
14860 # automake-level symbol (BUILD_TSX_TESTS), used in test Makefile.am's
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks TSX" >&5
14862 printf %s "checking if x86/amd64 assembler speaks TSX... " >&6; }
14863
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866
14867 int
14868 main (void)
14869 {
14870
14871 do {
14872 __asm__ __volatile__(
14873 " xbegin Lfoo \n\t"
14874 "Lfoo: xend \n\t"
14875 " xacquire lock incq 0(%rsp) \n\t"
14876 " xrelease lock incq 0(%rsp) \n"
14877 );
14878 } while (0)
14879
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_compile "$LINENO"
14885 then :
14886
14887 ac_have_as_tsx=yes
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14889 printf "%s\n" "yes" >&6; }
14890
14891 else case e in #(
14892 e)
14893 ac_have_as_tsx=no
14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895 printf "%s\n" "no" >&6; }
14896 ;;
14897 esac
14898 fi
14899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14900
14901 if test x$ac_have_as_tsx = xyes; then
14902 BUILD_TSX_TESTS_TRUE=
14903 BUILD_TSX_TESTS_FALSE='#'
14904 else
14905 BUILD_TSX_TESTS_TRUE='#'
14906 BUILD_TSX_TESTS_FALSE=
14907 fi
14908
14909
14910
14911 # does the x86/amd64 assembler understand BMI1 and BMI2 instructions?
14912 # Note, this doesn't generate a C-level symbol. It generates a
14913 # automake-level symbol (BUILD_BMI_TESTS), used in test Makefile.am's
14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks BMI1 and BMI2" >&5
14915 printf %s "checking if x86/amd64 assembler speaks BMI1 and BMI2... " >&6; }
14916
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919
14920 int
14921 main (void)
14922 {
14923
14924 do { unsigned int h, l;
14925 __asm__ __volatile__( "mulx %rax,%rcx,%r8" );
14926 __asm__ __volatile__(
14927 "andn %2, %1, %0" : "=r" (h) : "r" (0x1234567), "r" (0x7654321) );
14928 __asm__ __volatile__(
14929 "movl %2, %%edx; mulx %3, %1, %0" : "=r" (h), "=r" (l) : "g" (0x1234567), "rm" (0x7654321) : "edx" ); }
14930 while (0)
14931
14932 ;
14933 return 0;
14934 }
14935 _ACEOF
14936 if ac_fn_c_try_compile "$LINENO"
14937 then :
14938
14939 ac_have_as_bmi=yes
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14941 printf "%s\n" "yes" >&6; }
14942
14943 else case e in #(
14944 e)
14945 ac_have_as_bmi=no
14946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14947 printf "%s\n" "no" >&6; }
14948 ;;
14949 esac
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14952
14953 if test x$ac_have_as_bmi = xyes; then
14954 BUILD_BMI_TESTS_TRUE=
14955 BUILD_BMI_TESTS_FALSE='#'
14956 else
14957 BUILD_BMI_TESTS_TRUE='#'
14958 BUILD_BMI_TESTS_FALSE=
14959 fi
14960
14961
14962
14963 # does the x86/amd64 assembler understand FMA instructions?
14964 # Note, this doesn't generate a C-level symbol. It generates a
14965 # automake-level symbol (BUILD_FMA_TESTS), used in test Makefile.am's
14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks FMA" >&5
14967 printf %s "checking if x86/amd64 assembler speaks FMA... " >&6; }
14968
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971
14972 int
14973 main (void)
14974 {
14975
14976 do { unsigned int h, l;
14977 __asm__ __volatile__(
14978 "vfmadd132ps (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" );
14979 __asm__ __volatile__(
14980 "vfnmsub231sd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" );
14981 __asm__ __volatile__(
14982 "vfmsubadd213pd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" ); }
14983 while (0)
14984
14985 ;
14986 return 0;
14987 }
14988 _ACEOF
14989 if ac_fn_c_try_compile "$LINENO"
14990 then :
14991
14992 ac_have_as_fma=yes
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14994 printf "%s\n" "yes" >&6; }
14995
14996 else case e in #(
14997 e)
14998 ac_have_as_fma=no
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 printf "%s\n" "no" >&6; }
15001 ;;
15002 esac
15003 fi
15004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15005
15006 if test x$ac_have_as_fma = xyes; then
15007 BUILD_FMA_TESTS_TRUE=
15008 BUILD_FMA_TESTS_FALSE='#'
15009 else
15010 BUILD_FMA_TESTS_TRUE='#'
15011 BUILD_FMA_TESTS_FALSE=
15012 fi
15013
15014
15015
15016 # does the amd64 assembler understand MPX instructions?
15017 # Note, this doesn't generate a C-level symbol. It generates a
15018 # automake-level symbol (BUILD_MPX_TESTS), used in test Makefile.am's
15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the MPX instructions" >&5
15020 printf %s "checking if amd64 assembler knows the MPX instructions... " >&6; }
15021
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024
15025 int
15026 main (void)
15027 {
15028
15029 do {
15030 asm ("bndmov %bnd0,(%rsp)");
15031 asm ("bndldx 3(%rbx,%rdx), %bnd2");
15032 asm ("bnd call foo\n"
15033 "bnd jmp end\n"
15034 "foo: bnd ret\n"
15035 "end: nop");
15036 } while (0)
15037
15038 ;
15039 return 0;
15040 }
15041 _ACEOF
15042 if ac_fn_c_try_compile "$LINENO"
15043 then :
15044
15045 ac_have_as_mpx=yes
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15047 printf "%s\n" "yes" >&6; }
15048
15049 else case e in #(
15050 e)
15051 ac_have_as_mpx=no
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 printf "%s\n" "no" >&6; }
15054 ;;
15055 esac
15056 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15058
15059 if test x$ac_have_as_mpx = xyes; then
15060 BUILD_MPX_TESTS_TRUE=
15061 BUILD_MPX_TESTS_FALSE='#'
15062 else
15063 BUILD_MPX_TESTS_TRUE='#'
15064 BUILD_MPX_TESTS_FALSE=
15065 fi
15066
15067
15068
15069 # does the amd64 assembler understand ADX instructions?
15070 # Note, this doesn't generate a C-level symbol. It generates a
15071 # automake-level symbol (BUILD_ADX_TESTS), used in test Makefile.am's
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the ADX instructions" >&5
15073 printf %s "checking if amd64 assembler knows the ADX instructions... " >&6; }
15074
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15077
15078 int
15079 main (void)
15080 {
15081
15082 do {
15083 asm ("adcxq %r14,%r8");
15084 } while (0)
15085
15086 ;
15087 return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_c_try_compile "$LINENO"
15091 then :
15092
15093 ac_have_as_adx=yes
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15095 printf "%s\n" "yes" >&6; }
15096
15097 else case e in #(
15098 e)
15099 ac_have_as_adx=no
15100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15101 printf "%s\n" "no" >&6; }
15102 ;;
15103 esac
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15106
15107 if test x$ac_have_as_adx = xyes; then
15108 BUILD_ADX_TESTS_TRUE=
15109 BUILD_ADX_TESTS_FALSE='#'
15110 else
15111 BUILD_ADX_TESTS_TRUE='#'
15112 BUILD_ADX_TESTS_FALSE=
15113 fi
15114
15115
15116
15117 # does the amd64 assembler understand the RDRAND instruction?
15118 # Note, this doesn't generate a C-level symbol. It generates a
15119 # automake-level symbol (BUILD_RDRAND_TESTS), used in test Makefile.am's
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the RDRAND instruction" >&5
15121 printf %s "checking if amd64 assembler knows the RDRAND instruction... " >&6; }
15122
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15125
15126 int
15127 main (void)
15128 {
15129
15130 do {
15131 asm ("rdrand %r14");
15132 asm ("rdrand %r14d");
15133 asm ("rdrand %r14w");
15134 } while (0)
15135
15136 ;
15137 return 0;
15138 }
15139 _ACEOF
15140 if ac_fn_c_try_compile "$LINENO"
15141 then :
15142
15143 ac_have_as_rdrand=yes
15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15145 printf "%s\n" "yes" >&6; }
15146
15147 else case e in #(
15148 e)
15149 ac_have_as_rdrand=no
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 printf "%s\n" "no" >&6; }
15152 ;;
15153 esac
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15156
15157 if test x$ac_have_as_rdrand = xyes; then
15158 BUILD_RDRAND_TESTS_TRUE=
15159 BUILD_RDRAND_TESTS_FALSE='#'
15160 else
15161 BUILD_RDRAND_TESTS_TRUE='#'
15162 BUILD_RDRAND_TESTS_FALSE=
15163 fi
15164
15165
15166 # does the amd64 assembler understand the RDSEED instruction?
15167 # Note, this doesn't generate a C-level symbol. It generates a
15168 # automake-level symbol (BUILD_RDSEED_TESTS), used in test Makefile.am's
15169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the RDSEED instruction" >&5
15170 printf %s "checking if amd64 assembler knows the RDSEED instruction... " >&6; }
15171
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15174
15175 int
15176 main (void)
15177 {
15178
15179 do {
15180 asm ("rdseed %r14");
15181 asm ("rdseed %r14d");
15182 asm ("rdseed %r14w");
15183 } while (0)
15184
15185 ;
15186 return 0;
15187 }
15188 _ACEOF
15189 if ac_fn_c_try_compile "$LINENO"
15190 then :
15191
15192 ac_have_as_rdseed=yes
15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15194 printf "%s\n" "yes" >&6; }
15195
15196 else case e in #(
15197 e)
15198 ac_have_as_rdseed=no
15199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 printf "%s\n" "no" >&6; }
15201 ;;
15202 esac
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15205
15206 if test x$ac_have_as_rdseed = xyes; then
15207 BUILD_RDSEED_TESTS_TRUE=
15208 BUILD_RDSEED_TESTS_FALSE='#'
15209 else
15210 BUILD_RDSEED_TESTS_TRUE='#'
15211 BUILD_RDSEED_TESTS_FALSE=
15212 fi
15213
15214
15215 # does the amd64 assembler understand the F16C instructions (VCVTPH2PS and
15216 # VCVTPS2PH) ?
15217 # Note, this doesn't generate a C-level symbol. It generates a
15218 # automake-level symbol (BUILD_F16C_TESTS), used in test Makefile.am's
15219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the F16C instructions" >&5
15220 printf %s "checking if amd64 assembler knows the F16C instructions... " >&6; }
15221
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224
15225 int
15226 main (void)
15227 {
15228
15229 do {
15230 asm ("vcvtph2ps %xmm5, %ymm10");
15231 // If we put the dollar sign and zero together, the shell processing
15232 // this configure.ac script substitutes the command name in. Sigh.
15233 asm ("vcvtps2ph $" "0, %ymm10, %xmm5");
15234 } while (0)
15235
15236 ;
15237 return 0;
15238 }
15239 _ACEOF
15240 if ac_fn_c_try_compile "$LINENO"
15241 then :
15242
15243 ac_have_as_f16c=yes
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15245 printf "%s\n" "yes" >&6; }
15246
15247 else case e in #(
15248 e)
15249 ac_have_as_f16c=no
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15251 printf "%s\n" "no" >&6; }
15252 ;;
15253 esac
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15256
15257 if test x$ac_have_as_f16c = xyes; then
15258 BUILD_F16C_TESTS_TRUE=
15259 BUILD_F16C_TESTS_FALSE='#'
15260 else
15261 BUILD_F16C_TESTS_TRUE='#'
15262 BUILD_F16C_TESTS_FALSE=
15263 fi
15264
15265
15266
15267 # does the x86/amd64 assembler understand MOVBE?
15268 # Note, this doesn't generate a C-level symbol. It generates a
15269 # automake-level symbol (BUILD_MOVBE_TESTS), used in test Makefile.am's
15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler knows the MOVBE insn" >&5
15271 printf %s "checking if x86/amd64 assembler knows the MOVBE insn... " >&6; }
15272
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15275
15276 int
15277 main (void)
15278 {
15279
15280 do { long long int x;
15281 __asm__ __volatile__(
15282 "movbe (%%rsp), %%r15" : : : "memory", "r15" ); }
15283 while (0)
15284
15285 ;
15286 return 0;
15287 }
15288 _ACEOF
15289 if ac_fn_c_try_compile "$LINENO"
15290 then :
15291
15292 ac_have_as_movbe=yes
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15294 printf "%s\n" "yes" >&6; }
15295
15296 else case e in #(
15297 e)
15298 ac_have_as_movbe=no
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15300 printf "%s\n" "no" >&6; }
15301 ;;
15302 esac
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15305
15306 if test x$ac_have_as_movbe = xyes; then
15307 BUILD_MOVBE_TESTS_TRUE=
15308 BUILD_MOVBE_TESTS_FALSE='#'
15309 else
15310 BUILD_MOVBE_TESTS_TRUE='#'
15311 BUILD_MOVBE_TESTS_FALSE=
15312 fi
15313
15314
15315
15316 # Does the C compiler support the "ifunc" attribute
15317 # Note, this doesn't generate a C-level symbol. It generates a
15318 # automake-level symbol (BUILD_IFUNC_TESTS), used in test Makefile.am's
15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports the ifunc attribute" >&5
15320 printf %s "checking if gcc supports the ifunc attribute... " >&6; }
15321
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15324
15325 static void mytest(void) {}
15326
15327 static void (*resolve_test(void))(void)
15328 {
15329 return (void (*)(void))&mytest;
15330 }
15331
15332 void test(void) __attribute__((ifunc("resolve_test")));
15333
15334 int main()
15335 {
15336 test();
15337 return 0;
15338 }
15339
15340 _ACEOF
15341 if ac_fn_c_try_link "$LINENO"
15342 then :
15343
15344 ac_have_ifunc_attr=yes
15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15346 printf "%s\n" "yes" >&6; }
15347
15348 else case e in #(
15349 e)
15350 ac_have_ifunc_attr=no
15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15352 printf "%s\n" "no" >&6; }
15353 ;;
15354 esac
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15357 conftest$ac_exeext conftest.$ac_ext
15358
15359 if test x$ac_have_ifunc_attr = xyes; then
15360 BUILD_IFUNC_TESTS_TRUE=
15361 BUILD_IFUNC_TESTS_FALSE='#'
15362 else
15363 BUILD_IFUNC_TESTS_TRUE='#'
15364 BUILD_IFUNC_TESTS_FALSE=
15365 fi
15366
15367
15368 # Does the C compiler support the armv8 crc feature flag
15369 # Note, this doesn't generate a C-level symbol. It generates a
15370 # automake-level symbol (BUILD_ARMV8_CRC_TESTS), used in test Makefile.am's
15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports the armv8 crc feature flag" >&5
15372 printf %s "checking if gcc supports the armv8 crc feature flag... " >&6; }
15373
15374 save_CFLAGS="$CFLAGS"
15375 CFLAGS="$CFLAGS -march=armv8-a+crc -Werror"
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378
15379 int main()
15380 {
15381 return 0;
15382 }
15383
15384 _ACEOF
15385 if ac_fn_c_try_compile "$LINENO"
15386 then :
15387
15388 ac_have_armv8_crc_feature=yes
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15390 printf "%s\n" "yes" >&6; }
15391
15392 else case e in #(
15393 e)
15394 ac_have_armv8_crc_feature=no
15395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396 printf "%s\n" "no" >&6; }
15397 ;;
15398 esac
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15401 CFLAGS="$save_CFLAGS"
15402
15403 if test x$ac_have_armv8_crc_feature = xyes; then
15404 BUILD_ARMV8_CRC_TESTS_TRUE=
15405 BUILD_ARMV8_CRC_TESTS_FALSE='#'
15406 else
15407 BUILD_ARMV8_CRC_TESTS_TRUE='#'
15408 BUILD_ARMV8_CRC_TESTS_FALSE=
15409 fi
15410
15411
15412
15413 # Does the C compiler support the armv81 flag and the assembler v8.1 instructions
15414 # Note, this doesn't generate a C-level symbol. It generates a
15415 # automake-level symbol (BUILD_ARMV81_TESTS), used in test Makefile.am's
15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports the armv81 feature flag and assembler supports v8.1 instructions" >&5
15417 printf %s "checking if gcc supports the armv81 feature flag and assembler supports v8.1 instructions... " >&6; }
15418
15419 save_CFLAGS="$CFLAGS"
15420 CFLAGS="$CFLAGS -march=armv8.1-a -Werror"
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423
15424 int main()
15425 {
15426 __asm__ __volatile__("ldadd x0, x1, [x2]" ::: "memory");
15427 return 0;
15428 }
15429
15430 _ACEOF
15431 if ac_fn_c_try_compile "$LINENO"
15432 then :
15433
15434 ac_have_armv81_feature=yes
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15436 printf "%s\n" "yes" >&6; }
15437
15438 else case e in #(
15439 e)
15440 ac_have_armv81_feature=no
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15442 printf "%s\n" "no" >&6; }
15443 ;;
15444 esac
15445 fi
15446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15447 CFLAGS="$save_CFLAGS"
15448
15449 if test x$ac_have_armv81_feature = xyes; then
15450 BUILD_ARMV81_TESTS_TRUE=
15451 BUILD_ARMV81_TESTS_FALSE='#'
15452 else
15453 BUILD_ARMV81_TESTS_TRUE='#'
15454 BUILD_ARMV81_TESTS_FALSE=
15455 fi
15456
15457
15458
15459 # Does the C compiler support the armv82 flag and the assembler v8.2 instructions
15460 # Note, this doesn't generate a C-level symbol. It generates a
15461 # automake-level symbol (BUILD_ARMV82_TESTS), used in test Makefile.am's
15462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports the armv82 feature flag and assembler supports v8.2 instructions" >&5
15463 printf %s "checking if gcc supports the armv82 feature flag and assembler supports v8.2 instructions... " >&6; }
15464
15465 save_CFLAGS="$CFLAGS"
15466 CFLAGS="$CFLAGS -march=armv8.2-a+fp16 -Werror"
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15469
15470 int main()
15471 {
15472 __asm__ __volatile__("faddp h0, v1.2h");
15473 return 0;
15474 }
15475
15476 _ACEOF
15477 if ac_fn_c_try_compile "$LINENO"
15478 then :
15479
15480 ac_have_armv82_feature=yes
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15482 printf "%s\n" "yes" >&6; }
15483
15484 else case e in #(
15485 e)
15486 ac_have_armv82_feature=no
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15488 printf "%s\n" "no" >&6; }
15489 ;;
15490 esac
15491 fi
15492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15493 CFLAGS="$save_CFLAGS"
15494
15495 if test x$ac_have_armv82_feature = xyes; then
15496 BUILD_ARMV82_TESTS_TRUE=
15497 BUILD_ARMV82_TESTS_FALSE='#'
15498 else
15499 BUILD_ARMV82_TESTS_TRUE='#'
15500 BUILD_ARMV82_TESTS_FALSE=
15501 fi
15502
15503
15504
15505 # Does the C compiler support the armv82-a+dotprod flag and assembler dotprod instructions
15506 # Note, this doesn't generate a C-level symbol. It generates a
15507 # automake-level symbol (BUILD_ARMV82_DOTPROD_TESTS), used in test Makefile.am's
15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports the armv82-a+dotprod feature flag and assembler supports dotprod instructions" >&5
15509 printf %s "checking if gcc supports the armv82-a+dotprod feature flag and assembler supports dotprod instructions... " >&6; }
15510
15511 save_CFLAGS="$CFLAGS"
15512 CFLAGS="$CFLAGS -march=armv8.2-a+dotprod -Werror"
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515
15516 int main()
15517 {
15518 __asm__ __volatile__("sdot v1.4s, v2.16b, v3.16b");
15519 return 0;
15520 }
15521
15522 _ACEOF
15523 if ac_fn_c_try_compile "$LINENO"
15524 then :
15525
15526 ac_have_armv82_dotprod_feature=yes
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15528 printf "%s\n" "yes" >&6; }
15529
15530 else case e in #(
15531 e)
15532 ac_have_armv82_dotprod_feature=no
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15534 printf "%s\n" "no" >&6; }
15535 ;;
15536 esac
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15539 CFLAGS="$save_CFLAGS"
15540
15541 if test x$ac_have_armv82_dotprod_feature = xyes; then
15542 BUILD_ARMV82_DOTPROD_TESTS_TRUE=
15543 BUILD_ARMV82_DOTPROD_TESTS_FALSE='#'
15544 else
15545 BUILD_ARMV82_DOTPROD_TESTS_TRUE='#'
15546 BUILD_ARMV82_DOTPROD_TESTS_FALSE=
15547 fi
15548
15549
15550
15551 # XXX JRS 2010 Oct 13: what is this for? For sure, we don't need this
15552 # when building the tool executables. I think we should get rid of it.
15553 #
15554 # Check for TLS support in the compiler and linker
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 static __thread int foo;
15558 int
15559 main (void)
15560 {
15561 return foo;
15562 ;
15563 return 0;
15564 }
15565 _ACEOF
15566 if ac_fn_c_try_link "$LINENO"
15567 then :
15568 vg_cv_linktime_tls=yes
15569 else case e in #(
15570 e) vg_cv_linktime_tls=no ;;
15571 esac
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15574 conftest$ac_exeext conftest.$ac_ext
15575 # Native compilation: check whether running a program using TLS succeeds.
15576 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
15577 # succeeds but running programs using TLS fails.
15578 # Cross-compiling: check whether linking a program using TLS succeeds.
15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
15580 printf %s "checking for TLS support... " >&6; }
15581 if test ${vg_cv_tls+y}
15582 then :
15583 printf %s "(cached) " >&6
15584 else case e in #(
15585 e) # Check whether --enable-tls was given.
15586 if test ${enable_tls+y}
15587 then :
15588 enableval=$enable_tls; vg_cv_tls=$enableval
15589 else case e in #(
15590 e) if test "$cross_compiling" = yes
15591 then :
15592 vg_cv_tls=$vg_cv_linktime_tls
15593 else case e in #(
15594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 static __thread int foo;
15597 int
15598 main (void)
15599 {
15600 return foo;
15601 ;
15602 return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_run "$LINENO"
15606 then :
15607 vg_cv_tls=yes
15608 else case e in #(
15609 e) vg_cv_tls=no ;;
15610 esac
15611 fi
15612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15613 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15614 esac
15615 fi
15616 ;;
15617 esac
15618 fi
15619 ;;
15620 esac
15621 fi
15622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
15623 printf "%s\n" "$vg_cv_tls" >&6; }
15624
15625 if test "$vg_cv_tls" = yes -a $is_clang != applellvm; then
15626
15627 printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h
15628
15629 fi
15630
15631
15632 #----------------------------------------------------------------------------
15633 # Solaris-specific checks.
15634 #----------------------------------------------------------------------------
15635
15636 if test "$VGCONF_OS" = "solaris" ; then
15637 ac_fn_c_check_header_compile "$LINENO" "sys/lgrp_user_impl.h" "ac_cv_header_sys_lgrp_user_impl_h" "$ac_includes_default"
15638 if test "x$ac_cv_header_sys_lgrp_user_impl_h" = xyes
15639 then :
15640 printf "%s\n" "#define HAVE_SYS_LGRP_USER_IMPL_H 1" >>confdefs.h
15641
15642 fi
15643
15644
15645 # Solaris-specific check determining if the Sun Studio Assembler is used to
15646 # build Valgrind. The test checks if the x86/amd64 assembler understands the
15647 # cmovl.l instruction, if yes then it's Sun Assembler.
15648 #
15649 # C-level symbol: none
15650 # Automake-level symbol: SOLARIS_SUN_STUDIO_AS
15651 #
15652
15653 # This was using a AC_COMPILE_IFELSE with "cmovl.l %edx, %eax"
15654 # which at some time in the past was Sun Studio specific.
15655 # GNU as now understands it, so the test was misidentifying
15656 # the assembler. Now we ask the compiler directly.
15657 with_gnu_as=$(${CC} -v 2>&1 | tr ' ' '\n' | grep with-gnu-as)
15658 if test x$with_gnu_as = x; then
15659 SOLARIS_SUN_STUDIO_AS_TRUE=
15660 SOLARIS_SUN_STUDIO_AS_FALSE='#'
15661 else
15662 SOLARIS_SUN_STUDIO_AS_TRUE='#'
15663 SOLARIS_SUN_STUDIO_AS_FALSE=
15664 fi
15665
15666
15667 # Solaris-specific check determining if symbols __xpg4 and __xpg6
15668 # are present in linked shared libraries when gcc is invoked with -std=gnu99.
15669 # See solaris/vgpreload-solaris.mapfile for details.
15670 # gcc on older Solaris instructs linker to include these symbols,
15671 # gcc on illumos and newer Solaris does not.
15672 #
15673 # C-level symbol: none
15674 # Automake-level symbol: SOLARIS_XPG_SYMBOLS_PRESENT
15675 #
15676 save_CFLAGS="$CFLAGS"
15677 CFLAGS="$CFLAGS -std=gnu99"
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if xpg symbols are present with -std=gnu99 (Solaris-specific)" >&5
15679 printf %s "checking if xpg symbols are present with -std=gnu99 (Solaris-specific)... " >&6; }
15680 temp_dir=$( /usr/bin/mktemp -d )
15681 cat <<_ACEOF >${temp_dir}/mylib.c
15682 #include <stdio.h>
15683 int myfunc(void) { printf("LaPutyka\n"); }
15684 _ACEOF
15685 ${CC} ${CFLAGS} -fpic -shared -o ${temp_dir}/mylib.so ${temp_dir}/mylib.c
15686 xpg_present=$( /usr/bin/nm ${temp_dir}/mylib.so | ${EGREP} '(__xpg4|__xpg6)' )
15687 if test "x${xpg_present}" = "x" ; then
15688 solaris_xpg_symbols_present=no
15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15690 printf "%s\n" "no" >&6; }
15691 else
15692 solaris_xpg_symbols_present=yes
15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15694 printf "%s\n" "yes" >&6; }
15695 fi
15696 rm -rf ${temp_dir}
15697 if test x$solaris_xpg_symbols_present = xyes; then
15698 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE=
15699 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#'
15700 else
15701 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#'
15702 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE=
15703 fi
15704
15705 CFLAGS="$save_CFLAGS"
15706
15707
15708 # Solaris-specific check determining if gcc enables largefile support by
15709 # default for 32-bit executables. If it does, then set SOLARIS_UNDEF_LARGESOURCE
15710 # variable with gcc flags which disable it.
15711 #
15712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc enables largefile support for 32-bit apps (Solaris-specific)" >&5
15713 printf %s "checking if gcc enables largefile support for 32-bit apps (Solaris-specific)... " >&6; }
15714 save_CFLAGS="$CFLAGS"
15715 CFLAGS="$CFLAGS -m32"
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718
15719 int
15720 main (void)
15721 {
15722
15723 return _LARGEFILE_SOURCE;
15724
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 if ac_fn_c_try_compile "$LINENO"
15730 then :
15731
15732 SOLARIS_UNDEF_LARGESOURCE="-U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS"
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15734 printf "%s\n" "yes" >&6; }
15735
15736 else case e in #(
15737 e)
15738 SOLARIS_UNDEF_LARGESOURCE=""
15739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15740 printf "%s\n" "no" >&6; }
15741 ;;
15742 esac
15743 fi
15744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15745 CFLAGS=$safe_CFLAGS
15746
15747
15748
15749 # Solaris-specific check determining if /proc/self/cmdline
15750 # or /proc/<pid>/cmdline is supported.
15751 #
15752 # C-level symbol: SOLARIS_PROC_CMDLINE
15753 # Automake-level symbol: SOLARIS_PROC_CMDLINE
15754 #
15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /proc/self/cmdline" >&5
15756 printf %s "checking for /proc/self/cmdline... " >&6; }
15757 if test ${ac_cv_file__proc_self_cmdline+y}
15758 then :
15759 printf %s "(cached) " >&6
15760 else case e in #(
15761 e) test "$cross_compiling" = yes &&
15762 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15763 if test -r "/proc/self/cmdline"; then
15764 ac_cv_file__proc_self_cmdline=yes
15765 else
15766 ac_cv_file__proc_self_cmdline=no
15767 fi ;;
15768 esac
15769 fi
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_cmdline" >&5
15771 printf "%s\n" "$ac_cv_file__proc_self_cmdline" >&6; }
15772 if test "x$ac_cv_file__proc_self_cmdline" = xyes
15773 then :
15774
15775 solaris_proc_cmdline=yes
15776
15777 printf "%s\n" "#define SOLARIS_PROC_CMDLINE 1" >>confdefs.h
15778
15779
15780 else case e in #(
15781 e)
15782 solaris_proc_cmdline=no
15783 ;;
15784 esac
15785 fi
15786
15787 if test x$solaris_proc_cmdline = xyes; then
15788 SOLARIS_PROC_CMDLINE_TRUE=
15789 SOLARIS_PROC_CMDLINE_FALSE='#'
15790 else
15791 SOLARIS_PROC_CMDLINE_TRUE='#'
15792 SOLARIS_PROC_CMDLINE_FALSE=
15793 fi
15794
15795
15796
15797 # Solaris-specific check determining default platform for the Valgrind launcher.
15798 # Used in case the launcher cannot select platform by looking at the client
15799 # image (for example because the executable is a shell script).
15800 #
15801 # C-level symbol: SOLARIS_LAUNCHER_DEFAULT_PLATFORM
15802 # Automake-level symbol: none
15803 #
15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default platform of Valgrind launcher (Solaris-specific)" >&5
15805 printf %s "checking for default platform of Valgrind launcher (Solaris-specific)... " >&6; }
15806 # Get the ELF class of /bin/sh first.
15807 if ! test -f /bin/sh; then
15808 as_fn_error $? "Shell interpreter \`/bin/sh' not found." "$LINENO" 5
15809 fi
15810 elf_class=$( /usr/bin/file /bin/sh | sed -n 's/.*ELF \(..\)-bit.*/\1/p' )
15811 case "$elf_class" in
15812 64)
15813 default_arch="$VGCONF_ARCH_PRI";
15814 ;;
15815 32)
15816 if test "x$VGCONF_ARCH_SEC" != "x"; then
15817 default_arch="$VGCONF_ARCH_SEC"
15818 else
15819 default_arch="$VGCONF_ARCH_PRI";
15820 fi
15821 ;;
15822 *)
15823 as_fn_error $? "Cannot determine ELF class of \`/bin/sh'." "$LINENO" 5
15824 ;;
15825 esac
15826 default_platform="$default_arch-$VGCONF_OS"
15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_platform" >&5
15828 printf "%s\n" "$default_platform" >&6; }
15829
15830 printf "%s\n" "#define SOLARIS_LAUNCHER_DEFAULT_PLATFORM \"$default_platform\"" >>confdefs.h
15831
15832
15833
15834 # Solaris-specific check determining if the old syscalls are available.
15835 #
15836 # C-level symbol: SOLARIS_OLD_SYSCALLS
15837 # Automake-level symbol: SOLARIS_OLD_SYSCALLS
15838 #
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the old Solaris syscalls (Solaris-specific)" >&5
15840 printf %s "checking for the old Solaris syscalls (Solaris-specific)... " >&6; }
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843
15844 #include <sys/syscall.h>
15845
15846 int
15847 main (void)
15848 {
15849
15850 return !SYS_open;
15851
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 if ac_fn_c_try_compile "$LINENO"
15857 then :
15858
15859 solaris_old_syscalls=yes
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15861 printf "%s\n" "yes" >&6; }
15862
15863 printf "%s\n" "#define SOLARIS_OLD_SYSCALLS 1" >>confdefs.h
15864
15865
15866 else case e in #(
15867 e)
15868 solaris_old_syscalls=no
15869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870 printf "%s\n" "no" >&6; }
15871 ;;
15872 esac
15873 fi
15874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15875 if test x$solaris_old_syscalls = xyes; then
15876 SOLARIS_OLD_SYSCALLS_TRUE=
15877 SOLARIS_OLD_SYSCALLS_FALSE='#'
15878 else
15879 SOLARIS_OLD_SYSCALLS_TRUE='#'
15880 SOLARIS_OLD_SYSCALLS_FALSE=
15881 fi
15882
15883
15884
15885 # Solaris-specific check determining if the new accept() syscall is available.
15886 #
15887 # Old syscall:
15888 # int accept(int sock, struct sockaddr *name, socklen_t *namelenp,
15889 # int version);
15890 #
15891 # New syscall (available on illumos):
15892 # int accept(int sock, struct sockaddr *name, socklen_t *namelenp,
15893 # int version, int flags);
15894 #
15895 # If the old syscall is present then the following syscall will fail with
15896 # ENOTSOCK (because file descriptor 0 is not a socket), if the new syscall is
15897 # available then it will fail with EINVAL (because the flags parameter is
15898 # invalid).
15899 #
15900 # C-level symbol: SOLARIS_NEW_ACCEPT_SYSCALL
15901 # Automake-level symbol: none
15902 #
15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`accept' syscall (Solaris-specific)" >&5
15904 printf %s "checking for the new \`accept' syscall (Solaris-specific)... " >&6; }
15905 if test "$cross_compiling" = yes
15906 then :
15907 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15908 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15909 as_fn_error $? "cannot run test program while cross compiling
15910 See 'config.log' for more details" "$LINENO" 5; }
15911 else case e in #(
15912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914
15915 #include <sys/syscall.h>
15916 #include <errno.h>
15917
15918 int
15919 main (void)
15920 {
15921
15922 errno = 0;
15923 syscall(SYS_accept, 0, 0, 0, 0, -1);
15924 return !(errno == EINVAL);
15925
15926 ;
15927 return 0;
15928 }
15929 _ACEOF
15930 if ac_fn_c_try_run "$LINENO"
15931 then :
15932
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15934 printf "%s\n" "yes" >&6; }
15935
15936 printf "%s\n" "#define SOLARIS_NEW_ACCEPT_SYSCALL 1" >>confdefs.h
15937
15938
15939 else case e in #(
15940 e)
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 printf "%s\n" "no" >&6; }
15943 ;;
15944 esac
15945 fi
15946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15947 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15948 esac
15949 fi
15950
15951
15952
15953 # Solaris-specific check determining if the new illumos pipe() syscall is
15954 # available.
15955 #
15956 # Old syscall:
15957 # longlong_t pipe();
15958 #
15959 # New syscall (available on illumos):
15960 # int pipe(intptr_t arg, int flags);
15961 #
15962 # If the old syscall is present then the following call will succeed, if the
15963 # new syscall is available then it will fail with EFAULT (because address 0
15964 # cannot be accessed).
15965 #
15966 # C-level symbol: SOLARIS_NEW_PIPE_SYSCALL
15967 # Automake-level symbol: none
15968 #
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`pipe' syscall (Solaris-specific)" >&5
15970 printf %s "checking for the new \`pipe' syscall (Solaris-specific)... " >&6; }
15971 if test "$cross_compiling" = yes
15972 then :
15973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15974 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15975 as_fn_error $? "cannot run test program while cross compiling
15976 See 'config.log' for more details" "$LINENO" 5; }
15977 else case e in #(
15978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h. */
15980
15981 #include <sys/syscall.h>
15982 #include <errno.h>
15983
15984 int
15985 main (void)
15986 {
15987
15988 errno = 0;
15989 syscall(SYS_pipe, 0, 0);
15990 return !(errno == EFAULT);
15991
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 if ac_fn_c_try_run "$LINENO"
15997 then :
15998
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16000 printf "%s\n" "yes" >&6; }
16001
16002 printf "%s\n" "#define SOLARIS_NEW_PIPE_SYSCALL 1" >>confdefs.h
16003
16004
16005 else case e in #(
16006 e)
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008 printf "%s\n" "no" >&6; }
16009 ;;
16010 esac
16011 fi
16012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16013 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16014 esac
16015 fi
16016
16017
16018
16019 # Solaris-specific check determining if the new lwp_sigqueue() syscall is
16020 # available.
16021 #
16022 # Old syscall:
16023 # int lwp_kill(id_t lwpid, int sig);
16024 #
16025 # New syscall (available on Solaris 11):
16026 # int lwp_sigqueue(id_t lwpid, int sig, void *value,
16027 # int si_code, timespec_t *timeout);
16028 #
16029 # C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL
16030 # Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL
16031 #
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_sigqueue' syscall (Solaris-specific)" >&5
16033 printf %s "checking for the new \`lwp_sigqueue' syscall (Solaris-specific)... " >&6; }
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036
16037 #include <sys/syscall.h>
16038
16039 int
16040 main (void)
16041 {
16042
16043 return !SYS_lwp_sigqueue;
16044
16045 ;
16046 return 0;
16047 }
16048 _ACEOF
16049 if ac_fn_c_try_compile "$LINENO"
16050 then :
16051
16052 solaris_lwp_sigqueue_syscall=yes
16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16054 printf "%s\n" "yes" >&6; }
16055
16056 printf "%s\n" "#define SOLARIS_LWP_SIGQUEUE_SYSCALL 1" >>confdefs.h
16057
16058
16059 else case e in #(
16060 e)
16061 solaris_lwp_sigqueue_syscall=no
16062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16063 printf "%s\n" "no" >&6; }
16064 ;;
16065 esac
16066 fi
16067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16068 if test x$solaris_lwp_sigqueue_syscall = xyes; then
16069 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE=
16070 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#'
16071 else
16072 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#'
16073 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE=
16074 fi
16075
16076
16077
16078 # Solaris-specific check determining if the lwp_sigqueue() syscall
16079 # takes both pid and thread id arguments or just thread id.
16080 #
16081 # Old syscall (available up to Solaris 11.3):
16082 # int lwp_sigqueue(id_t lwpid, int sig, void *value,
16083 # int si_code, timespec_t *timeout);
16084 #
16085 # New syscall (available since Solaris 11.4):
16086 # int lwp_sigqueue(pid_t pid, id_t lwpid, int sig, void *value,
16087 # int si_code, timespec_t *timeout);
16088 #
16089 # If the old syscall is present then the following syscall will fail with
16090 # EINVAL (because signal is out of range); if the new syscall is available
16091 # then it will fail with ESRCH (because it would not find such thread in the
16092 # current process).
16093 #
16094 # C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
16095 # Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
16096 #
16097 if test -z "$SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE"; then :
16098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)" >&5
16099 printf %s "checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)... " >&6; }
16100 if test "$cross_compiling" = yes
16101 then :
16102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16103 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16104 as_fn_error $? "cannot run test program while cross compiling
16105 See 'config.log' for more details" "$LINENO" 5; }
16106 else case e in #(
16107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109
16110 #include <sys/syscall.h>
16111 #include <errno.h>
16112
16113 int
16114 main (void)
16115 {
16116
16117 errno = 0;
16118 syscall(SYS_lwp_sigqueue, 0, 101, 0, 0, 0, 0);
16119 return !(errno == ESRCH);
16120
16121 ;
16122 return 0;
16123 }
16124 _ACEOF
16125 if ac_fn_c_try_run "$LINENO"
16126 then :
16127
16128 solaris_lwp_sigqueue_syscall_takes_pid=yes
16129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16130 printf "%s\n" "yes" >&6; }
16131
16132 printf "%s\n" "#define SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID 1" >>confdefs.h
16133
16134
16135 else case e in #(
16136 e)
16137 solaris_lwp_sigqueue_syscall_takes_pid=no
16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16139 printf "%s\n" "no" >&6; }
16140 ;;
16141 esac
16142 fi
16143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16144 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16145 esac
16146 fi
16147
16148 if test x$solaris_lwp_sigqueue_syscall_takes_pid = xyes; then
16149 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
16150 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
16151 else
16152 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
16153 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
16154 fi
16155
16156
16157 else
16158 if test x = y; then
16159 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
16160 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
16161 else
16162 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
16163 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
16164 fi
16165
16166
16167 fi
16168
16169
16170 # Solaris-specific check determining if the new lwp_name() syscall is
16171 # available.
16172 #
16173 # New syscall (available on Solaris 11):
16174 # int lwp_name(int opcode, id_t lwpid, char *name, size_t len);
16175 #
16176 # C-level symbol: SOLARIS_LWP_NAME_SYSCALL
16177 # Automake-level symbol: SOLARIS_LWP_NAME_SYSCALL
16178 #
16179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_name' syscall (Solaris-specific)" >&5
16180 printf %s "checking for the new \`lwp_name' syscall (Solaris-specific)... " >&6; }
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183
16184 #include <sys/syscall.h>
16185
16186 int
16187 main (void)
16188 {
16189
16190 return !SYS_lwp_name;
16191
16192 ;
16193 return 0;
16194 }
16195 _ACEOF
16196 if ac_fn_c_try_compile "$LINENO"
16197 then :
16198
16199 solaris_lwp_name_syscall=yes
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16201 printf "%s\n" "yes" >&6; }
16202
16203 printf "%s\n" "#define SOLARIS_LWP_NAME_SYSCALL 1" >>confdefs.h
16204
16205
16206 else case e in #(
16207 e)
16208 solaris_lwp_name_syscall=no
16209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 printf "%s\n" "no" >&6; }
16211 ;;
16212 esac
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16215 if test x$solaris_lwp_name_syscall = xyes; then
16216 SOLARIS_LWP_NAME_SYSCALL_TRUE=
16217 SOLARIS_LWP_NAME_SYSCALL_FALSE='#'
16218 else
16219 SOLARIS_LWP_NAME_SYSCALL_TRUE='#'
16220 SOLARIS_LWP_NAME_SYSCALL_FALSE=
16221 fi
16222
16223
16224
16225 # Solaris-specific check determining if the new getrandom() syscall is
16226 # available.
16227 #
16228 # New syscall (available on Solaris 11):
16229 # int getrandom(void *buf, size_t buflen, uint_t flags);
16230 #
16231 # C-level symbol: SOLARIS_GETRANDOM_SYSCALL
16232 # Automake-level symbol: SOLARIS_GETRANDOM_SYSCALL
16233 #
16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`getrandom' syscall (Solaris-specific)" >&5
16235 printf %s "checking for the new \`getrandom' syscall (Solaris-specific)... " >&6; }
16236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h. */
16238
16239 #include <sys/syscall.h>
16240
16241 int
16242 main (void)
16243 {
16244
16245 return !SYS_getrandom;
16246
16247 ;
16248 return 0;
16249 }
16250 _ACEOF
16251 if ac_fn_c_try_compile "$LINENO"
16252 then :
16253
16254 solaris_getrandom_syscall=yes
16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16256 printf "%s\n" "yes" >&6; }
16257
16258 printf "%s\n" "#define SOLARIS_GETRANDOM_SYSCALL 1" >>confdefs.h
16259
16260
16261 else case e in #(
16262 e)
16263 solaris_getrandom_syscall=no
16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16265 printf "%s\n" "no" >&6; }
16266 ;;
16267 esac
16268 fi
16269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16270 if test x$solaris_getrandom_syscall = xyes; then
16271 SOLARIS_GETRANDOM_SYSCALL_TRUE=
16272 SOLARIS_GETRANDOM_SYSCALL_FALSE='#'
16273 else
16274 SOLARIS_GETRANDOM_SYSCALL_TRUE='#'
16275 SOLARIS_GETRANDOM_SYSCALL_FALSE=
16276 fi
16277
16278
16279
16280 # Solaris-specific check determining if the new zone() syscall subcodes
16281 # ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT are available. These subcodes
16282 # were added in Solaris 11 but are missing on illumos.
16283 #
16284 # C-level symbol: SOLARIS_ZONE_DEFUNCT
16285 # Automake-level symbol: SOLARIS_ZONE_DEFUNCT
16286 #
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)" >&5
16288 printf %s "checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)... " >&6; }
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16291
16292 #include <sys/zone.h>
16293
16294 int
16295 main (void)
16296 {
16297
16298 return !(ZONE_LIST_DEFUNCT && ZONE_GETATTR_DEFUNCT);
16299
16300 ;
16301 return 0;
16302 }
16303 _ACEOF
16304 if ac_fn_c_try_compile "$LINENO"
16305 then :
16306
16307 solaris_zone_defunct=yes
16308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16309 printf "%s\n" "yes" >&6; }
16310
16311 printf "%s\n" "#define SOLARIS_ZONE_DEFUNCT 1" >>confdefs.h
16312
16313
16314 else case e in #(
16315 e)
16316 solaris_zone_defunct=no
16317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318 printf "%s\n" "no" >&6; }
16319 ;;
16320 esac
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16323 if test x$solaris_zone_defunct = xyes; then
16324 SOLARIS_ZONE_DEFUNCT_TRUE=
16325 SOLARIS_ZONE_DEFUNCT_FALSE='#'
16326 else
16327 SOLARIS_ZONE_DEFUNCT_TRUE='#'
16328 SOLARIS_ZONE_DEFUNCT_FALSE=
16329 fi
16330
16331
16332
16333 # Solaris-specific check determining if commands A_GETSTAT and A_SETSTAT
16334 # for auditon(2) subcode of the auditsys() syscall are available.
16335 # These commands are available in Solaris 11 and illumos but were removed
16336 # in Solaris 11.4.
16337 #
16338 # C-level symbol: SOLARIS_AUDITON_STAT
16339 # Automake-level symbol: SOLARIS_AUDITON_STAT
16340 #
16341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)" >&5
16342 printf %s "checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)... " >&6; }
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345
16346 #include <bsm/audit.h>
16347
16348 int
16349 main (void)
16350 {
16351
16352 return !(A_GETSTAT && A_SETSTAT);
16353
16354 ;
16355 return 0;
16356 }
16357 _ACEOF
16358 if ac_fn_c_try_compile "$LINENO"
16359 then :
16360
16361 solaris_auditon_stat=yes
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16363 printf "%s\n" "yes" >&6; }
16364
16365 printf "%s\n" "#define SOLARIS_AUDITON_STAT 1" >>confdefs.h
16366
16367
16368 else case e in #(
16369 e)
16370 solaris_auditon_stat=no
16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 printf "%s\n" "no" >&6; }
16373 ;;
16374 esac
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16377 if test x$solaris_auditon_stat = xyes; then
16378 SOLARIS_AUDITON_STAT_TRUE=
16379 SOLARIS_AUDITON_STAT_FALSE='#'
16380 else
16381 SOLARIS_AUDITON_STAT_TRUE='#'
16382 SOLARIS_AUDITON_STAT_FALSE=
16383 fi
16384
16385
16386
16387 # Solaris-specific check determining if the new shmsys() syscall subcodes
16388 # IPC_XSTAT64, SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM are available.
16389 # These subcodes were added in Solaris 11 but are missing on illumos.
16390 #
16391 # C-level symbol: SOLARIS_SHM_NEW
16392 # Automake-level symbol: SOLARIS_SHM_NEW
16393 #
16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)" >&5
16395 printf %s "checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)... " >&6; }
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398
16399 #include <sys/ipc_impl.h>
16400 #include <sys/shm.h>
16401 #include <sys/shm_impl.h>
16402
16403 int
16404 main (void)
16405 {
16406
16407 return !(IPC_XSTAT64 && SHMADV && SHM_ADV_GET && SHM_ADV_SET && SHMGET_OSM);
16408
16409 ;
16410 return 0;
16411 }
16412 _ACEOF
16413 if ac_fn_c_try_compile "$LINENO"
16414 then :
16415
16416 solaris_shm_new=yes
16417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 printf "%s\n" "yes" >&6; }
16419
16420 printf "%s\n" "#define SOLARIS_SHM_NEW 1" >>confdefs.h
16421
16422
16423 else case e in #(
16424 e)
16425 solaris_shm_new=no
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 printf "%s\n" "no" >&6; }
16428 ;;
16429 esac
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16432 if test x$solaris_shm_new = xyes; then
16433 SOLARIS_SHM_NEW_TRUE=
16434 SOLARIS_SHM_NEW_FALSE='#'
16435 else
16436 SOLARIS_SHM_NEW_TRUE='#'
16437 SOLARIS_SHM_NEW_FALSE=
16438 fi
16439
16440
16441
16442 # Solaris-specific check determining if prxregset_t is available. Illumos
16443 # currently does not define it on the x86 platform.
16444 #
16445 # C-level symbol: SOLARIS_PRXREGSET_T
16446 # Automake-level symbol: SOLARIS_PRXREGSET_T
16447 #
16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the \`prxregset_t' type (Solaris-specific)" >&5
16449 printf %s "checking for the \`prxregset_t' type (Solaris-specific)... " >&6; }
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452
16453 #include <sys/procfs_isa.h>
16454
16455 int
16456 main (void)
16457 {
16458
16459 return !sizeof(prxregset_t);
16460
16461 ;
16462 return 0;
16463 }
16464 _ACEOF
16465 if ac_fn_c_try_compile "$LINENO"
16466 then :
16467
16468 solaris_prxregset_t=yes
16469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16470 printf "%s\n" "yes" >&6; }
16471
16472 printf "%s\n" "#define SOLARIS_PRXREGSET_T 1" >>confdefs.h
16473
16474
16475 else case e in #(
16476 e)
16477 solaris_prxregset_t=no
16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16479 printf "%s\n" "no" >&6; }
16480 ;;
16481 esac
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16484 if test x$solaris_prxregset_t = xyes; then
16485 SOLARIS_PRXREGSET_T_TRUE=
16486 SOLARIS_PRXREGSET_T_FALSE='#'
16487 else
16488 SOLARIS_PRXREGSET_T_TRUE='#'
16489 SOLARIS_PRXREGSET_T_FALSE=
16490 fi
16491
16492
16493
16494 # Solaris-specific check determining if the new frealpathat() syscall is
16495 # available.
16496 #
16497 # New syscall (available on Solaris 11.1):
16498 # int frealpathat(int fd, char *path, char *buf, size_t buflen);
16499 #
16500 # C-level symbol: SOLARIS_FREALPATHAT_SYSCALL
16501 # Automake-level symbol: SOLARIS_FREALPATHAT_SYSCALL
16502 #
16503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`frealpathat' syscall (Solaris-specific)" >&5
16504 printf %s "checking for the new \`frealpathat' syscall (Solaris-specific)... " >&6; }
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16507
16508 #include <sys/syscall.h>
16509
16510 int
16511 main (void)
16512 {
16513
16514 return !SYS_frealpathat;
16515
16516 ;
16517 return 0;
16518 }
16519 _ACEOF
16520 if ac_fn_c_try_compile "$LINENO"
16521 then :
16522
16523 solaris_frealpathat_syscall=yes
16524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16525 printf "%s\n" "yes" >&6; }
16526
16527 printf "%s\n" "#define SOLARIS_FREALPATHAT_SYSCALL 1" >>confdefs.h
16528
16529
16530 else case e in #(
16531 e)
16532 solaris_frealpathat_syscall=no
16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 printf "%s\n" "no" >&6; }
16535 ;;
16536 esac
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16539 if test x$solaris_frealpathat_syscall = xyes; then
16540 SOLARIS_FREALPATHAT_SYSCALL_TRUE=
16541 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#'
16542 else
16543 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#'
16544 SOLARIS_FREALPATHAT_SYSCALL_FALSE=
16545 fi
16546
16547
16548
16549 # Solaris-specific check determining if the new uuidsys() syscall is
16550 # available.
16551 #
16552 # New syscall (available on newer Solaris):
16553 # int uuidsys(struct uuid *uuid);
16554 #
16555 # C-level symbol: SOLARIS_UUIDSYS_SYSCALL
16556 # Automake-level symbol: SOLARIS_UUIDSYS_SYSCALL
16557 #
16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`uuidsys' syscall (Solaris-specific)" >&5
16559 printf %s "checking for the new \`uuidsys' syscall (Solaris-specific)... " >&6; }
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16562
16563 #include <sys/syscall.h>
16564
16565 int
16566 main (void)
16567 {
16568
16569 return !SYS_uuidsys;
16570
16571 ;
16572 return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"
16576 then :
16577
16578 solaris_uuidsys_syscall=yes
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16580 printf "%s\n" "yes" >&6; }
16581
16582 printf "%s\n" "#define SOLARIS_UUIDSYS_SYSCALL 1" >>confdefs.h
16583
16584
16585 else case e in #(
16586 e)
16587 solaris_uuidsys_syscall=no
16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589 printf "%s\n" "no" >&6; }
16590 ;;
16591 esac
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16594 if test x$solaris_uuidsys_syscall = xyes; then
16595 SOLARIS_UUIDSYS_SYSCALL_TRUE=
16596 SOLARIS_UUIDSYS_SYSCALL_FALSE='#'
16597 else
16598 SOLARIS_UUIDSYS_SYSCALL_TRUE='#'
16599 SOLARIS_UUIDSYS_SYSCALL_FALSE=
16600 fi
16601
16602
16603
16604 # Solaris-specific check determining if the new labelsys() syscall subcode
16605 # TNDB_GET_TNIP is available. This subcode was added in Solaris 11 but is
16606 # missing on illumos.
16607 #
16608 # C-level symbol: SOLARIS_TNDB_GET_TNIP
16609 # Automake-level symbol: SOLARIS_TNDB_GET_TNIP
16610 #
16611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TNDB_GET_TNIP (Solaris-specific)" >&5
16612 printf %s "checking for TNDB_GET_TNIP (Solaris-specific)... " >&6; }
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16615
16616 #include <sys/tsol/tndb.h>
16617
16618 int
16619 main (void)
16620 {
16621
16622 return !TNDB_GET_TNIP;
16623
16624 ;
16625 return 0;
16626 }
16627 _ACEOF
16628 if ac_fn_c_try_compile "$LINENO"
16629 then :
16630
16631 solaris_tndb_get_tnip=yes
16632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16633 printf "%s\n" "yes" >&6; }
16634
16635 printf "%s\n" "#define SOLARIS_TNDB_GET_TNIP 1" >>confdefs.h
16636
16637
16638 else case e in #(
16639 e)
16640 solaris_tndb_get_tnip=no
16641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16642 printf "%s\n" "no" >&6; }
16643 ;;
16644 esac
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16647 if test x$solaris_tndb_get_tnip = xyes; then
16648 SOLARIS_TNDB_GET_TNIP_TRUE=
16649 SOLARIS_TNDB_GET_TNIP_FALSE='#'
16650 else
16651 SOLARIS_TNDB_GET_TNIP_TRUE='#'
16652 SOLARIS_TNDB_GET_TNIP_FALSE=
16653 fi
16654
16655
16656
16657 # Solaris-specific check determining if the new labelsys() syscall opcodes
16658 # TSOL_GETCLEARANCE and TSOL_SETCLEARANCE are available. These opcodes were
16659 # added in Solaris 11 but are missing on illumos.
16660 #
16661 # C-level symbol: SOLARIS_TSOL_CLEARANCE
16662 # Automake-level symbol: SOLARIS_TSOL_CLEARANCE
16663 #
16664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)" >&5
16665 printf %s "checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)... " >&6; }
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h. */
16668
16669 #include <sys/tsol/tsyscall.h>
16670
16671 int
16672 main (void)
16673 {
16674
16675 return !(TSOL_GETCLEARANCE && TSOL_SETCLEARANCE);
16676
16677 ;
16678 return 0;
16679 }
16680 _ACEOF
16681 if ac_fn_c_try_compile "$LINENO"
16682 then :
16683
16684 solaris_tsol_clearance=yes
16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16686 printf "%s\n" "yes" >&6; }
16687
16688 printf "%s\n" "#define SOLARIS_TSOL_CLEARANCE 1" >>confdefs.h
16689
16690
16691 else case e in #(
16692 e)
16693 solaris_tsol_clearance=no
16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695 printf "%s\n" "no" >&6; }
16696 ;;
16697 esac
16698 fi
16699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16700 if test x$solaris_tsol_clearance = xyes; then
16701 SOLARIS_TSOL_CLEARANCE_TRUE=
16702 SOLARIS_TSOL_CLEARANCE_FALSE='#'
16703 else
16704 SOLARIS_TSOL_CLEARANCE_TRUE='#'
16705 SOLARIS_TSOL_CLEARANCE_FALSE=
16706 fi
16707
16708
16709
16710 # Solaris-specific check determining if the new pset() syscall subcode
16711 # PSET_GET_NAME is available. This subcode was added in Solaris 11.4 but
16712 # is missing on illumos and Solaris 11.3.
16713 #
16714 # C-level symbol: SOLARIS_PSET_GET_NAME
16715 # Automake-level symbol: SOLARIS_PSET_GET_NAME
16716 #
16717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PSET_GET_NAME (Solaris-specific)" >&5
16718 printf %s "checking for PSET_GET_NAME (Solaris-specific)... " >&6; }
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721
16722 #include <sys/pset.h>
16723
16724 int
16725 main (void)
16726 {
16727
16728 return !(PSET_GET_NAME);
16729
16730 ;
16731 return 0;
16732 }
16733 _ACEOF
16734 if ac_fn_c_try_compile "$LINENO"
16735 then :
16736
16737 solaris_pset_get_name=yes
16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16739 printf "%s\n" "yes" >&6; }
16740
16741 printf "%s\n" "#define SOLARIS_PSET_GET_NAME 1" >>confdefs.h
16742
16743
16744 else case e in #(
16745 e)
16746 solaris_pset_get_name=no
16747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748 printf "%s\n" "no" >&6; }
16749 ;;
16750 esac
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16753 if test x$solaris_pset_get_name = xyes; then
16754 SOLARIS_PSET_GET_NAME_TRUE=
16755 SOLARIS_PSET_GET_NAME_FALSE='#'
16756 else
16757 SOLARIS_PSET_GET_NAME_TRUE='#'
16758 SOLARIS_PSET_GET_NAME_FALSE=
16759 fi
16760
16761
16762
16763 # Solaris-specific check determining if the utimesys() syscall is
16764 # available (on illumos and older Solaris).
16765 #
16766 # C-level symbol: SOLARIS_UTIMESYS_SYSCALL
16767 # Automake-level symbol: SOLARIS_UTIMESYS_SYSCALL
16768 #
16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the \`utimesys' syscall (Solaris-specific)" >&5
16770 printf %s "checking for the \`utimesys' syscall (Solaris-specific)... " >&6; }
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773
16774 #include <sys/syscall.h>
16775
16776 int
16777 main (void)
16778 {
16779
16780 return !SYS_utimesys;
16781
16782 ;
16783 return 0;
16784 }
16785 _ACEOF
16786 if ac_fn_c_try_compile "$LINENO"
16787 then :
16788
16789 solaris_utimesys_syscall=yes
16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16791 printf "%s\n" "yes" >&6; }
16792
16793 printf "%s\n" "#define SOLARIS_UTIMESYS_SYSCALL 1" >>confdefs.h
16794
16795
16796 else case e in #(
16797 e)
16798 solaris_utimesys_syscall=no
16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800 printf "%s\n" "no" >&6; }
16801 ;;
16802 esac
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16805 if test x$solaris_utimesys_syscall = xyes; then
16806 SOLARIS_UTIMESYS_SYSCALL_TRUE=
16807 SOLARIS_UTIMESYS_SYSCALL_FALSE='#'
16808 else
16809 SOLARIS_UTIMESYS_SYSCALL_TRUE='#'
16810 SOLARIS_UTIMESYS_SYSCALL_FALSE=
16811 fi
16812
16813
16814
16815 # Solaris-specific check determining if the utimensat() syscall is
16816 # available (on newer Solaris).
16817 #
16818 # C-level symbol: SOLARIS_UTIMENSAT_SYSCALL
16819 # Automake-level symbol: SOLARIS_UTIMENSAT_SYSCALL
16820 #
16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the \`utimensat' syscall (Solaris-specific)" >&5
16822 printf %s "checking for the \`utimensat' syscall (Solaris-specific)... " >&6; }
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825
16826 #include <sys/syscall.h>
16827
16828 int
16829 main (void)
16830 {
16831
16832 return !SYS_utimensat;
16833
16834 ;
16835 return 0;
16836 }
16837 _ACEOF
16838 if ac_fn_c_try_compile "$LINENO"
16839 then :
16840
16841 solaris_utimensat_syscall=yes
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16843 printf "%s\n" "yes" >&6; }
16844
16845 printf "%s\n" "#define SOLARIS_UTIMENSAT_SYSCALL 1" >>confdefs.h
16846
16847
16848 else case e in #(
16849 e)
16850 solaris_utimensat_syscall=no
16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852 printf "%s\n" "no" >&6; }
16853 ;;
16854 esac
16855 fi
16856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16857 if test x$solaris_utimensat_syscall = xyes; then
16858 SOLARIS_UTIMENSAT_SYSCALL_TRUE=
16859 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#'
16860 else
16861 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#'
16862 SOLARIS_UTIMENSAT_SYSCALL_FALSE=
16863 fi
16864
16865
16866
16867 # Solaris-specific check determining if the spawn() syscall is available
16868 # (on newer Solaris).
16869 #
16870 # C-level symbol: SOLARIS_SPAWN_SYSCALL
16871 # Automake-level symbol: SOLARIS_SPAWN_SYSCALL
16872 #
16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the \`spawn' syscall (Solaris-specific)" >&5
16874 printf %s "checking for the \`spawn' syscall (Solaris-specific)... " >&6; }
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877
16878 #include <sys/syscall.h>
16879
16880 int
16881 main (void)
16882 {
16883
16884 return !SYS_spawn;
16885
16886 ;
16887 return 0;
16888 }
16889 _ACEOF
16890 if ac_fn_c_try_compile "$LINENO"
16891 then :
16892
16893 solaris_spawn_syscall=yes
16894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16895 printf "%s\n" "yes" >&6; }
16896
16897 printf "%s\n" "#define SOLARIS_SPAWN_SYSCALL 1" >>confdefs.h
16898
16899
16900 else case e in #(
16901 e)
16902 solaris_spawn_syscall=no
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904 printf "%s\n" "no" >&6; }
16905 ;;
16906 esac
16907 fi
16908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16909 if test x$solaris_spawn_syscall = xyes; then
16910 SOLARIS_SPAWN_SYSCALL_TRUE=
16911 SOLARIS_SPAWN_SYSCALL_FALSE='#'
16912 else
16913 SOLARIS_SPAWN_SYSCALL_TRUE='#'
16914 SOLARIS_SPAWN_SYSCALL_FALSE=
16915 fi
16916
16917
16918
16919 # Solaris-specific check determining if commands MODNVL_CTRLMAP through
16920 # MODDEVINFO_CACHE_TS for modctl() syscall are available (on newer Solaris).
16921 #
16922 # C-level symbol: SOLARIS_MODCTL_MODNVL
16923 # Automake-level symbol: SOLARIS_MODCTL_MODNVL
16924 #
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)" >&5
16926 printf %s "checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)... " >&6; }
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929
16930 #include <sys/modctl.h>
16931
16932 int
16933 main (void)
16934 {
16935
16936 return !(MODNVL_CTRLMAP && MODDEVINFO_CACHE_TS);
16937
16938 ;
16939 return 0;
16940 }
16941 _ACEOF
16942 if ac_fn_c_try_compile "$LINENO"
16943 then :
16944
16945 solaris_modctl_modnvl=yes
16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16947 printf "%s\n" "yes" >&6; }
16948
16949 printf "%s\n" "#define SOLARIS_MODCTL_MODNVL 1" >>confdefs.h
16950
16951
16952 else case e in #(
16953 e)
16954 solaris_modctl_modnvl=no
16955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16956 printf "%s\n" "no" >&6; }
16957 ;;
16958 esac
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16961 if test x$solaris_modctl_modnvl = xyes; then
16962 SOLARIS_MODCTL_MODNVL_TRUE=
16963 SOLARIS_MODCTL_MODNVL_FALSE='#'
16964 else
16965 SOLARIS_MODCTL_MODNVL_TRUE='#'
16966 SOLARIS_MODCTL_MODNVL_FALSE=
16967 fi
16968
16969
16970
16971 # Solaris-specific check determining whether nscd (name switch cache daemon)
16972 # attaches its door at /system/volatile/name_service_door (Solaris)
16973 # or at /var/run/name_service_door (illumos).
16974 #
16975 # Note that /var/run is a symlink to /system/volatile on Solaris
16976 # but not vice versa on illumos.
16977 #
16978 # C-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE
16979 # Automake-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE
16980 #
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nscd door location (Solaris-specific)" >&5
16982 printf %s "checking for nscd door location (Solaris-specific)... " >&6; }
16983 if test -e /system/volatile/name_service_door; then
16984 solaris_nscd_door_system_volatile=yes
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /system/volatile/name_service_door" >&5
16986 printf "%s\n" "/system/volatile/name_service_door" >&6; }
16987
16988 printf "%s\n" "#define SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE 1" >>confdefs.h
16989
16990 else
16991 solaris_nscd_door_system_volatile=no
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /var/run/name_service_door" >&5
16993 printf "%s\n" "/var/run/name_service_door" >&6; }
16994 fi
16995 if test x$solaris_nscd_door_system_volatile = xyes; then
16996 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE=
16997 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#'
16998 else
16999 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#'
17000 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE=
17001 fi
17002
17003
17004
17005 # Solaris-specific check determining if the new gethrt() fasttrap is available.
17006 #
17007 # New fasttrap (available on Solaris 11):
17008 # hrt_t *gethrt(void);
17009 #
17010 # C-level symbol: SOLARIS_GETHRT_FASTTRAP
17011 # Automake-level symbol: SOLARIS_GETHRT_FASTTRAP
17012 #
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`gethrt' fasttrap (Solaris-specific)" >&5
17014 printf %s "checking for the new \`gethrt' fasttrap (Solaris-specific)... " >&6; }
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17017
17018 #include <sys/trap.h>
17019
17020 int
17021 main (void)
17022 {
17023
17024 return !T_GETHRT;
17025
17026 ;
17027 return 0;
17028 }
17029 _ACEOF
17030 if ac_fn_c_try_compile "$LINENO"
17031 then :
17032
17033 solaris_gethrt_fasttrap=yes
17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17035 printf "%s\n" "yes" >&6; }
17036
17037 printf "%s\n" "#define SOLARIS_GETHRT_FASTTRAP 1" >>confdefs.h
17038
17039
17040 else case e in #(
17041 e)
17042 solaris_gethrt_fasttrap=no
17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17044 printf "%s\n" "no" >&6; }
17045 ;;
17046 esac
17047 fi
17048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17049 if test x$solaris_gethrt_fasttrap = xyes; then
17050 SOLARIS_GETHRT_FASTTRAP_TRUE=
17051 SOLARIS_GETHRT_FASTTRAP_FALSE='#'
17052 else
17053 SOLARIS_GETHRT_FASTTRAP_TRUE='#'
17054 SOLARIS_GETHRT_FASTTRAP_FALSE=
17055 fi
17056
17057
17058
17059 # Solaris-specific check determining if the new get_zone_offset() fasttrap
17060 # is available.
17061 #
17062 # New fasttrap (available on Solaris 11):
17063 # zonehrtoffset_t *get_zone_offset(void);
17064 #
17065 # C-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP
17066 # Automake-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP
17067 #
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`get_zone_offset' fasttrap (Solaris-specific)" >&5
17069 printf %s "checking for the new \`get_zone_offset' fasttrap (Solaris-specific)... " >&6; }
17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071 /* end confdefs.h. */
17072
17073 #include <sys/trap.h>
17074
17075 int
17076 main (void)
17077 {
17078
17079 return !T_GETZONEOFFSET;
17080
17081 ;
17082 return 0;
17083 }
17084 _ACEOF
17085 if ac_fn_c_try_compile "$LINENO"
17086 then :
17087
17088 solaris_getzoneoffset_fasttrap=yes
17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17090 printf "%s\n" "yes" >&6; }
17091
17092 printf "%s\n" "#define SOLARIS_GETZONEOFFSET_FASTTRAP 1" >>confdefs.h
17093
17094
17095 else case e in #(
17096 e)
17097 solaris_getzoneoffset_fasttrap=no
17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 printf "%s\n" "no" >&6; }
17100 ;;
17101 esac
17102 fi
17103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17104 if test x$solaris_getzoneoffset_fasttrap = xyes; then
17105 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE=
17106 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#'
17107 else
17108 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#'
17109 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE=
17110 fi
17111
17112
17113
17114 # Solaris-specific check determining if the execve() syscall
17115 # takes fourth argument (flags) or not.
17116 #
17117 # Old syscall (available on illumos):
17118 # int execve(const char *fname, const char **argv, const char **envp);
17119 #
17120 # New syscall (available on Solaris):
17121 # int execve(uintptr_t file, const char **argv, const char **envp, int flags);
17122 #
17123 # If the new syscall is present then it will fail with EINVAL (because flags
17124 # are invalid); if the old syscall is available then it will fail with ENOENT
17125 # (because the file could not be found).
17126 #
17127 # C-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
17128 # Automake-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
17129 #
17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the \`execve' syscall accepts flags (Solaris-specific)" >&5
17131 printf %s "checking if the \`execve' syscall accepts flags (Solaris-specific)... " >&6; }
17132 if test "$cross_compiling" = yes
17133 then :
17134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17135 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17136 as_fn_error $? "cannot run test program while cross compiling
17137 See 'config.log' for more details" "$LINENO" 5; }
17138 else case e in #(
17139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h. */
17141
17142 #include <sys/syscall.h>
17143 #include <errno.h>
17144
17145 int
17146 main (void)
17147 {
17148
17149 errno = 0;
17150 syscall(SYS_execve, "/no/existing/path", 0, 0, 0xdeadbeef, 0, 0);
17151 return !(errno == EINVAL);
17152
17153 ;
17154 return 0;
17155 }
17156 _ACEOF
17157 if ac_fn_c_try_run "$LINENO"
17158 then :
17159
17160 solaris_execve_syscall_takes_flags=yes
17161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17162 printf "%s\n" "yes" >&6; }
17163
17164 printf "%s\n" "#define SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS 1" >>confdefs.h
17165
17166
17167 else case e in #(
17168 e)
17169 solaris_execve_syscall_takes_flags=no
17170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17171 printf "%s\n" "no" >&6; }
17172 ;;
17173 esac
17174 fi
17175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17176 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17177 esac
17178 fi
17179
17180 if test x$solaris_execve_syscall_takes_flags = xyes; then
17181 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE=
17182 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#'
17183 else
17184 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#'
17185 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE=
17186 fi
17187
17188
17189
17190 # Solaris-specific check determining version of the repository cache protocol.
17191 # Every Solaris version uses a different one, ranging from 21 to current 25.
17192 # The check is very ugly, though.
17193 #
17194 # C-level symbol: SOLARIS_REPCACHE_PROTOCOL_VERSION vv
17195 # Automake-level symbol: none
17196 #
17197 # Extract the first word of "dis", so it can be a program name with args.
17198 set dummy dis; ac_word=$2
17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17200 printf %s "checking for $ac_word... " >&6; }
17201 if test ${ac_cv_path_DIS_PATH+y}
17202 then :
17203 printf %s "(cached) " >&6
17204 else case e in #(
17205 e) case $DIS_PATH in
17206 [\\/]* | ?:[\\/]*)
17207 ac_cv_path_DIS_PATH="$DIS_PATH" # Let the user override the test with a path.
17208 ;;
17209 *)
17210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17211 for as_dir in $PATH
17212 do
17213 IFS=$as_save_IFS
17214 case $as_dir in #(((
17215 '') as_dir=./ ;;
17216 */) ;;
17217 *) as_dir=$as_dir/ ;;
17218 esac
17219 for ac_exec_ext in '' $ac_executable_extensions; do
17220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17221 ac_cv_path_DIS_PATH="$as_dir$ac_word$ac_exec_ext"
17222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17223 break 2
17224 fi
17225 done
17226 done
17227 IFS=$as_save_IFS
17228
17229 test -z "$ac_cv_path_DIS_PATH" && ac_cv_path_DIS_PATH="false"
17230 ;;
17231 esac ;;
17232 esac
17233 fi
17234 DIS_PATH=$ac_cv_path_DIS_PATH
17235 if test -n "$DIS_PATH"; then
17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIS_PATH" >&5
17237 printf "%s\n" "$DIS_PATH" >&6; }
17238 else
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17240 printf "%s\n" "no" >&6; }
17241 fi
17242
17243
17244 if test "x$DIS_PATH" = "xfalse"; then
17245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17246 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17247 as_fn_error $? "Object code disassembler (\`dis') not found.
17248 See 'config.log' for more details" "$LINENO" 5; }
17249 fi
17250 # The illumos source is (or was) here
17251 # https://github.com/illumos/illumos-gate/blob/master/usr/src/lib/libscf/common/lowlevel.c#L1148
17252 # specifically the line
17253 #
17254 # request.rdr_version = REPOSITORY_DOOR_VERSION;
17255 #
17256 # rdr_version is a 32bit unsigned int
17257 # The macro REPOSITORY_DOOR_VERSION contains the ascii letters "Rep" in the top 3
17258 # bytes and the door version in the lowest byte. Hence we look for Rep which is 526570
17259 # in hex and then extrace the following byte.
17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for scf_handle_bind in -lscf" >&5
17261 printf %s "checking for scf_handle_bind in -lscf... " >&6; }
17262 if test ${ac_cv_lib_scf_scf_handle_bind+y}
17263 then :
17264 printf %s "(cached) " >&6
17265 else case e in #(
17266 e) ac_check_lib_save_LIBS=$LIBS
17267 LIBS="-lscf $LIBS"
17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h. */
17270
17271 /* Override any GCC internal prototype to avoid an error.
17272 Use char because int might match the return type of a GCC
17273 builtin and then its argument prototype would still apply.
17274 The 'extern "C"' is for builds by C++ compilers;
17275 although this is not generally supported in C code supporting it here
17276 has little cost and some practical benefit (sr 110532). */
17277 #ifdef __cplusplus
17278 extern "C"
17279 #endif
17280 char scf_handle_bind (void);
17281 int
17282 main (void)
17283 {
17284 return scf_handle_bind ();
17285 ;
17286 return 0;
17287 }
17288 _ACEOF
17289 if ac_fn_c_try_link "$LINENO"
17290 then :
17291 ac_cv_lib_scf_scf_handle_bind=yes
17292 else case e in #(
17293 e) ac_cv_lib_scf_scf_handle_bind=no ;;
17294 esac
17295 fi
17296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17297 conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS ;;
17299 esac
17300 fi
17301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_scf_handle_bind" >&5
17302 printf "%s\n" "$ac_cv_lib_scf_scf_handle_bind" >&6; }
17303 if test "x$ac_cv_lib_scf_scf_handle_bind" = xyes
17304 then :
17305 printf "%s\n" "#define HAVE_LIBSCF 1" >>confdefs.h
17306
17307 LIBS="-lscf $LIBS"
17308
17309 else case e in #(
17310 e)
17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&5
17312 printf "%s\n" "$as_me: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&2;}
17313 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
17314 ;;
17315 esac
17316 fi
17317
17318
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for version of the repository cache protocol (Solaris-specific)" >&5
17320 printf %s "checking for version of the repository cache protocol (Solaris-specific)... " >&6; }
17321 if test "X$VGCONF_ARCH_PRI" = "Xamd64"; then
17322 libscf=/usr/lib/64/libscf.so.1
17323 else
17324 libscf=/usr/lib/libscf.so.1
17325 fi
17326 if ! $DIS_PATH -F scf_handle_bind $libscf | grep -q -E '0x(4d01)?526570'; then
17327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&5
17328 printf "%s\n" "$as_me: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&2;}
17329 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
17330 fi
17331 hex=$( $DIS_PATH -F scf_handle_bind $libscf | grep 526570 | sed 's/.*526570//;s/,.*//' )
17332 if test -z "$hex"; then
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Version of the repository cache protocol is empty?!" >&5
17334 printf "%s\n" "$as_me: WARNING: Version of the repository cache protocol is empty?!" >&2;}
17335 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
17336 fi
17337 version=$( printf "%d\n" 0x$hex )
17338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $version" >&5
17339 printf "%s\n" "$version" >&6; }
17340
17341 printf "%s\n" "#define SOLARIS_REPCACHE_PROTOCOL_VERSION $version" >>confdefs.h
17342
17343
17344
17345 # Solaris-specific check determining if "sysstat" segment reservation type
17346 # is available.
17347 #
17348 # New "sysstat" segment reservation (available on Solaris 11.4):
17349 # - program header type: PT_SUNW_SYSSTAT
17350 # - auxiliary vector entry: AT_SUN_SYSSTAT_ADDR
17351 #
17352 # C-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR
17353 # Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR
17354 #
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat' segment reservation (Solaris-specific)" >&5
17356 printf %s "checking for the new \`sysstat' segment reservation (Solaris-specific)... " >&6; }
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h. */
17359
17360 #include <sys/auxv.h>
17361
17362 int
17363 main (void)
17364 {
17365
17366 return !AT_SUN_SYSSTAT_ADDR;
17367
17368 ;
17369 return 0;
17370 }
17371 _ACEOF
17372 if ac_fn_c_try_compile "$LINENO"
17373 then :
17374
17375 solaris_reserve_sysstat_addr=yes
17376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17377 printf "%s\n" "yes" >&6; }
17378
17379 printf "%s\n" "#define SOLARIS_RESERVE_SYSSTAT_ADDR 1" >>confdefs.h
17380
17381
17382 else case e in #(
17383 e)
17384 solaris_reserve_sysstat_addr=no
17385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17386 printf "%s\n" "no" >&6; }
17387 ;;
17388 esac
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17391 if test x$solaris_reserve_sysstat_addr = xyes; then
17392 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE=
17393 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#'
17394 else
17395 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#'
17396 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE=
17397 fi
17398
17399
17400
17401 # Solaris-specific check determining if "sysstat_zone" segment reservation type
17402 # is available.
17403 #
17404 # New "sysstat_zone" segment reservation (available on Solaris 11.4):
17405 # - program header type: PT_SUNW_SYSSTAT_ZONE
17406 # - auxiliary vector entry: AT_SUN_SYSSTAT_ZONE_ADDR
17407 #
17408 # C-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR
17409 # Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR
17410 #
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat_zone' segment reservation (Solaris-specific)" >&5
17412 printf %s "checking for the new \`sysstat_zone' segment reservation (Solaris-specific)... " >&6; }
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17415
17416 #include <sys/auxv.h>
17417
17418 int
17419 main (void)
17420 {
17421
17422 return !AT_SUN_SYSSTAT_ZONE_ADDR;
17423
17424 ;
17425 return 0;
17426 }
17427 _ACEOF
17428 if ac_fn_c_try_compile "$LINENO"
17429 then :
17430
17431 solaris_reserve_sysstat_zone_addr=yes
17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17433 printf "%s\n" "yes" >&6; }
17434
17435 printf "%s\n" "#define SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR 1" >>confdefs.h
17436
17437
17438 else case e in #(
17439 e)
17440 solaris_reserve_sysstat_zone_addr=no
17441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442 printf "%s\n" "no" >&6; }
17443 ;;
17444 esac
17445 fi
17446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17447 if test x$solaris_reserve_sysstat_zone_addr = xyes; then
17448 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE=
17449 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#'
17450 else
17451 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#'
17452 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE=
17453 fi
17454
17455
17456
17457 # Solaris-specific check determining if the system_stats() syscall is available
17458 # (on newer Solaris).
17459 #
17460 # C-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL
17461 # Automake-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL
17462 #
17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the \`system_stats' syscall (Solaris-specific)" >&5
17464 printf %s "checking for the \`system_stats' syscall (Solaris-specific)... " >&6; }
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467
17468 #include <sys/syscall.h>
17469
17470 int
17471 main (void)
17472 {
17473
17474 return !SYS_system_stats;
17475
17476 ;
17477 return 0;
17478 }
17479 _ACEOF
17480 if ac_fn_c_try_compile "$LINENO"
17481 then :
17482
17483 solaris_system_stats_syscall=yes
17484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17485 printf "%s\n" "yes" >&6; }
17486
17487 printf "%s\n" "#define SOLARIS_SYSTEM_STATS_SYSCALL 1" >>confdefs.h
17488
17489
17490 else case e in #(
17491 e)
17492 solaris_system_stats_syscall=no
17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494 printf "%s\n" "no" >&6; }
17495 ;;
17496 esac
17497 fi
17498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17499 if test x$solaris_system_stats_syscall = xyes; then
17500 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE=
17501 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#'
17502 else
17503 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#'
17504 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE=
17505 fi
17506
17507
17508
17509 # Solaris-specific check determining if fpregset_t defines struct _fpchip_state
17510 # (on newer illumos) or struct fpchip_state (Solaris, older illumos).
17511 #
17512 # C-level symbol: SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE
17513 # Automake-level symbol: none
17514 #
17515 ac_fn_c_check_type "$LINENO" "struct _fpchip_state" "ac_cv_type_struct__fpchip_state" "#include <sys/regset.h>
17516 "
17517 if test "x$ac_cv_type_struct__fpchip_state" = xyes
17518 then :
17519 solaris_fpchip_state_takes_underscore=yes
17520 else case e in #(
17521 e) solaris_fpchip_state_takes_underscore=no ;;
17522 esac
17523 fi
17524
17525 if test "$solaris_fpchip_state_takes_underscore" = "yes"; then
17526
17527 printf "%s\n" "#define SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE 1" >>confdefs.h
17528
17529 fi
17530
17531
17532 # Solaris-specific check determining if schedctl page shared between kernel
17533 # and userspace program is executable (illumos, older Solaris) or not (newer
17534 # Solaris).
17535 #
17536 # C-level symbol: SOLARIS_SCHEDCTL_PAGE_EXEC
17537 # Automake-level symbol: none
17538 #
17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if schedctl page is executable (Solaris-specific)" >&5
17540 printf %s "checking if schedctl page is executable (Solaris-specific)... " >&6; }
17541 if test "$cross_compiling" = yes
17542 then :
17543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17544 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17545 as_fn_error $? "cannot run test program while cross compiling
17546 See 'config.log' for more details" "$LINENO" 5; }
17547 else case e in #(
17548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17550
17551 #include <assert.h>
17552 #include <fcntl.h>
17553 #include <procfs.h>
17554 #include <schedctl.h>
17555 #include <stdio.h>
17556 #include <unistd.h>
17557
17558 int
17559 main (void)
17560 {
17561
17562 schedctl_t *scp = schedctl_init();
17563 if (scp == NULL)
17564 return 1;
17565
17566 int fd = open("/proc/self/map", O_RDONLY);
17567 assert(fd >= 0);
17568
17569 prmap_t map;
17570 ssize_t rd;
17571 while ((rd = read(fd, &map, sizeof(map))) == sizeof(map)) {
17572 if (map.pr_vaddr == ((uintptr_t) scp & PAGEMASK)) {
17573 fprintf(stderr, "%#lx [%zu] %s\n", map.pr_vaddr, map.pr_size,
17574 (map.pr_mflags & MA_EXEC) ? "x" : "no-x");
17575 return (map.pr_mflags & MA_EXEC);
17576 }
17577 }
17578
17579 return 1;
17580
17581 ;
17582 return 0;
17583 }
17584 _ACEOF
17585 if ac_fn_c_try_run "$LINENO"
17586 then :
17587
17588 solaris_schedctl_page_exec=no
17589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17590 printf "%s\n" "no" >&6; }
17591
17592 else case e in #(
17593 e)
17594 solaris_schedctl_page_exec=yes
17595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17596 printf "%s\n" "yes" >&6; }
17597
17598 printf "%s\n" "#define SOLARIS_SCHEDCTL_PAGE_EXEC 1" >>confdefs.h
17599
17600 ;;
17601 esac
17602 fi
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17605 esac
17606 fi
17607
17608
17609
17610 # Solaris-specific check determining if PT_SUNWDTRACE program header provides
17611 # scratch space for DTrace fasttrap provider (illumos, older Solaris) or just
17612 # an initial thread pointer for libc (newer Solaris).
17613 #
17614 # C-level symbol: SOLARIS_PT_SUNDWTRACE_THRP
17615 # Automake-level symbol: none
17616 #
17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)" >&5
17618 printf %s "checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)... " >&6; }
17619 if test "$cross_compiling" = yes
17620 then :
17621 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17622 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17623 as_fn_error $? "cannot run test program while cross compiling
17624 See 'config.log' for more details" "$LINENO" 5; }
17625 else case e in #(
17626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17628
17629 #include <sys/fasttrap_isa.h>
17630
17631 int
17632 main (void)
17633 {
17634
17635 return !FT_SCRATCHSIZE;
17636
17637 ;
17638 return 0;
17639 }
17640 _ACEOF
17641 if ac_fn_c_try_run "$LINENO"
17642 then :
17643
17644 solaris_pt_sunwdtrace_thrp=yes
17645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17646 printf "%s\n" "yes" >&6; }
17647
17648 printf "%s\n" "#define SOLARIS_PT_SUNDWTRACE_THRP 1" >>confdefs.h
17649
17650
17651 else case e in #(
17652 e)
17653 solaris_pt_sunwdtrace_thrp=no
17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17655 printf "%s\n" "no" >&6; }
17656 ;;
17657 esac
17658 fi
17659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17660 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17661 esac
17662 fi
17663
17664
17665 else
17666 if false; then
17667 SOLARIS_SUN_STUDIO_AS_TRUE=
17668 SOLARIS_SUN_STUDIO_AS_FALSE='#'
17669 else
17670 SOLARIS_SUN_STUDIO_AS_TRUE='#'
17671 SOLARIS_SUN_STUDIO_AS_FALSE=
17672 fi
17673
17674 if false; then
17675 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE=
17676 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#'
17677 else
17678 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#'
17679 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE=
17680 fi
17681
17682 if false; then
17683 SOLARIS_PROC_CMDLINE_TRUE=
17684 SOLARIS_PROC_CMDLINE_FALSE='#'
17685 else
17686 SOLARIS_PROC_CMDLINE_TRUE='#'
17687 SOLARIS_PROC_CMDLINE_FALSE=
17688 fi
17689
17690 if false; then
17691 SOLARIS_OLD_SYSCALLS_TRUE=
17692 SOLARIS_OLD_SYSCALLS_FALSE='#'
17693 else
17694 SOLARIS_OLD_SYSCALLS_TRUE='#'
17695 SOLARIS_OLD_SYSCALLS_FALSE=
17696 fi
17697
17698 if false; then
17699 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE=
17700 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#'
17701 else
17702 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#'
17703 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE=
17704 fi
17705
17706 if false; then
17707 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
17708 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
17709 else
17710 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
17711 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
17712 fi
17713
17714 if false; then
17715 SOLARIS_LWP_NAME_SYSCALL_TRUE=
17716 SOLARIS_LWP_NAME_SYSCALL_FALSE='#'
17717 else
17718 SOLARIS_LWP_NAME_SYSCALL_TRUE='#'
17719 SOLARIS_LWP_NAME_SYSCALL_FALSE=
17720 fi
17721
17722 if false; then
17723 SOLARIS_GETRANDOM_SYSCALL_TRUE=
17724 SOLARIS_GETRANDOM_SYSCALL_FALSE='#'
17725 else
17726 SOLARIS_GETRANDOM_SYSCALL_TRUE='#'
17727 SOLARIS_GETRANDOM_SYSCALL_FALSE=
17728 fi
17729
17730 if false; then
17731 SOLARIS_ZONE_DEFUNCT_TRUE=
17732 SOLARIS_ZONE_DEFUNCT_FALSE='#'
17733 else
17734 SOLARIS_ZONE_DEFUNCT_TRUE='#'
17735 SOLARIS_ZONE_DEFUNCT_FALSE=
17736 fi
17737
17738 if false; then
17739 SOLARIS_AUDITON_STAT_TRUE=
17740 SOLARIS_AUDITON_STAT_FALSE='#'
17741 else
17742 SOLARIS_AUDITON_STAT_TRUE='#'
17743 SOLARIS_AUDITON_STAT_FALSE=
17744 fi
17745
17746 if false; then
17747 SOLARIS_SHM_NEW_TRUE=
17748 SOLARIS_SHM_NEW_FALSE='#'
17749 else
17750 SOLARIS_SHM_NEW_TRUE='#'
17751 SOLARIS_SHM_NEW_FALSE=
17752 fi
17753
17754 if false; then
17755 SOLARIS_PRXREGSET_T_TRUE=
17756 SOLARIS_PRXREGSET_T_FALSE='#'
17757 else
17758 SOLARIS_PRXREGSET_T_TRUE='#'
17759 SOLARIS_PRXREGSET_T_FALSE=
17760 fi
17761
17762 if false; then
17763 SOLARIS_FREALPATHAT_SYSCALL_TRUE=
17764 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#'
17765 else
17766 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#'
17767 SOLARIS_FREALPATHAT_SYSCALL_FALSE=
17768 fi
17769
17770 if false; then
17771 SOLARIS_UUIDSYS_SYSCALL_TRUE=
17772 SOLARIS_UUIDSYS_SYSCALL_FALSE='#'
17773 else
17774 SOLARIS_UUIDSYS_SYSCALL_TRUE='#'
17775 SOLARIS_UUIDSYS_SYSCALL_FALSE=
17776 fi
17777
17778 if false; then
17779 SOLARIS_TNDB_GET_TNIP_TRUE=
17780 SOLARIS_TNDB_GET_TNIP_FALSE='#'
17781 else
17782 SOLARIS_TNDB_GET_TNIP_TRUE='#'
17783 SOLARIS_TNDB_GET_TNIP_FALSE=
17784 fi
17785
17786 if false; then
17787 SOLARIS_TSOL_CLEARANCE_TRUE=
17788 SOLARIS_TSOL_CLEARANCE_FALSE='#'
17789 else
17790 SOLARIS_TSOL_CLEARANCE_TRUE='#'
17791 SOLARIS_TSOL_CLEARANCE_FALSE=
17792 fi
17793
17794 if false; then
17795 SOLARIS_PSET_GET_NAME_TRUE=
17796 SOLARIS_PSET_GET_NAME_FALSE='#'
17797 else
17798 SOLARIS_PSET_GET_NAME_TRUE='#'
17799 SOLARIS_PSET_GET_NAME_FALSE=
17800 fi
17801
17802 if false; then
17803 SOLARIS_UTIMESYS_SYSCALL_TRUE=
17804 SOLARIS_UTIMESYS_SYSCALL_FALSE='#'
17805 else
17806 SOLARIS_UTIMESYS_SYSCALL_TRUE='#'
17807 SOLARIS_UTIMESYS_SYSCALL_FALSE=
17808 fi
17809
17810 if false; then
17811 SOLARIS_UTIMENSAT_SYSCALL_TRUE=
17812 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#'
17813 else
17814 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#'
17815 SOLARIS_UTIMENSAT_SYSCALL_FALSE=
17816 fi
17817
17818 if false; then
17819 SOLARIS_SPAWN_SYSCALL_TRUE=
17820 SOLARIS_SPAWN_SYSCALL_FALSE='#'
17821 else
17822 SOLARIS_SPAWN_SYSCALL_TRUE='#'
17823 SOLARIS_SPAWN_SYSCALL_FALSE=
17824 fi
17825
17826 if false; then
17827 SOLARIS_MODCTL_MODNVL_TRUE=
17828 SOLARIS_MODCTL_MODNVL_FALSE='#'
17829 else
17830 SOLARIS_MODCTL_MODNVL_TRUE='#'
17831 SOLARIS_MODCTL_MODNVL_FALSE=
17832 fi
17833
17834 if false; then
17835 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE=
17836 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#'
17837 else
17838 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#'
17839 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE=
17840 fi
17841
17842 if false; then
17843 SOLARIS_GETHRT_FASTTRAP_TRUE=
17844 SOLARIS_GETHRT_FASTTRAP_FALSE='#'
17845 else
17846 SOLARIS_GETHRT_FASTTRAP_TRUE='#'
17847 SOLARIS_GETHRT_FASTTRAP_FALSE=
17848 fi
17849
17850 if false; then
17851 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE=
17852 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#'
17853 else
17854 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#'
17855 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE=
17856 fi
17857
17858 if false; then
17859 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE=
17860 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#'
17861 else
17862 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#'
17863 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE=
17864 fi
17865
17866 if false; then
17867 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE=
17868 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#'
17869 else
17870 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#'
17871 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE=
17872 fi
17873
17874 if false; then
17875 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE=
17876 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#'
17877 else
17878 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#'
17879 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE=
17880 fi
17881
17882 if false; then
17883 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE=
17884 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#'
17885 else
17886 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#'
17887 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE=
17888 fi
17889
17890 fi # test "$VGCONF_OS" = "solaris"
17891
17892 #----------------------------------------------------------------------------
17893 # FreeBSD-specific checks.
17894 #----------------------------------------------------------------------------
17895
17896 # Rather than having a large number of feature test as above with Solaris
17897 # these tests are per-version. This may not be entirely reliable for
17898 # FreeBSD development branches (XX.Y-CURRENT) or pre-release branches
17899 # (XX.Y-STABLE) but it should work for XX-Y-RELEASE
17900
17901 if test "$VGCONF_OS" = "freebsd" ; then
17902
17903 ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
17904 if test "x$ac_cv_func_eventfd" = xyes
17905 then :
17906 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
17907
17908 fi
17909
17910
17911 if test x$ac_cv_func_eventfd = xyes; then
17912 FREEBSD_EVENTFD_TRUE=
17913 FREEBSD_EVENTFD_FALSE='#'
17914 else
17915 FREEBSD_EVENTFD_TRUE='#'
17916 FREEBSD_EVENTFD_FALSE=
17917 fi
17918
17919
17920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the SYS___realpathat syscall (FreeBSD-specific)" >&5
17921 printf %s "checking for the SYS___realpathat syscall (FreeBSD-specific)... " >&6; }
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17924
17925 #include <sys/syscall.h>
17926
17927 int
17928 main (void)
17929 {
17930
17931 return !SYS___realpathat;
17932
17933 ;
17934 return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_compile "$LINENO"
17938 then :
17939
17940 freebsd_realpathat_syscall=yes
17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17942 printf "%s\n" "yes" >&6; }
17943
17944 printf "%s\n" "#define FREEBSD_REALPATHAT_SYSCALL 1" >>confdefs.h
17945
17946
17947 else case e in #(
17948 e)
17949 freebsd_realpathat_syscall=no
17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951 printf "%s\n" "no" >&6; }
17952 ;;
17953 esac
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17956 if test x$freebsd_realpathat_syscall = xyes; then
17957 FREEBSD_REALPATHAT_SYSCALL_TRUE=
17958 FREEBSD_REALPATHAT_SYSCALL_FALSE='#'
17959 else
17960 FREEBSD_REALPATHAT_SYSCALL_TRUE='#'
17961 FREEBSD_REALPATHAT_SYSCALL_FALSE=
17962 fi
17963
17964
17965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the SYS_kqueuex syscall (FreeBSD-specific)" >&5
17966 printf %s "checking for the SYS_kqueuex syscall (FreeBSD-specific)... " >&6; }
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17969
17970 #include <sys/syscall.h>
17971
17972 int
17973 main (void)
17974 {
17975
17976 return !SYS_kqueuex;
17977
17978 ;
17979 return 0;
17980 }
17981 _ACEOF
17982 if ac_fn_c_try_compile "$LINENO"
17983 then :
17984
17985 freebsd_kqueuex_syscall=yes
17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17987 printf "%s\n" "yes" >&6; }
17988
17989 printf "%s\n" "#define FREEBSD_KQUEUEX_SYSCALL 1" >>confdefs.h
17990
17991
17992 else case e in #(
17993 e)
17994 freebsd_kqueuex_syscall=no
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17996 printf "%s\n" "no" >&6; }
17997 ;;
17998 esac
17999 fi
18000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18001 if test x$freebsd_kqueuex_syscall = xyes; then
18002 FREEBSD_KQUEUEX_SYSCALL_TRUE=
18003 FREEBSD_KQUEUEX_SYSCALL_FALSE='#'
18004 else
18005 FREEBSD_KQUEUEX_SYSCALL_TRUE='#'
18006 FREEBSD_KQUEUEX_SYSCALL_FALSE=
18007 fi
18008
18009
18010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the SYS_timerfd_create syscall (FreeBSD-specific)" >&5
18011 printf %s "checking for the SYS_timerfd_create syscall (FreeBSD-specific)... " >&6; }
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18014
18015 #include <sys/syscall.h>
18016
18017 int
18018 main (void)
18019 {
18020
18021 return !SYS_timerfd_create;
18022
18023 ;
18024 return 0;
18025 }
18026 _ACEOF
18027 if ac_fn_c_try_compile "$LINENO"
18028 then :
18029
18030 freebsd_timerfd_syscall=yes
18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18032 printf "%s\n" "yes" >&6; }
18033
18034 printf "%s\n" "#define FREEBSD_TIMERFD_SYSCALL 1" >>confdefs.h
18035
18036
18037 else case e in #(
18038 e)
18039 freebsd_timerfd_syscall=no
18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041 printf "%s\n" "no" >&6; }
18042 ;;
18043 esac
18044 fi
18045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18046 if test x$freebsd_timerfd_syscall = xyes; then
18047 FREEBSD_TIMERFD_SYSCALL_TRUE=
18048 FREEBSD_TIMERFD_SYSCALL_FALSE='#'
18049 else
18050 FREEBSD_TIMERFD_SYSCALL_TRUE='#'
18051 FREEBSD_TIMERFD_SYSCALL_FALSE=
18052 fi
18053
18054
18055 else
18056
18057 if false; then
18058 FREEBSD_EVENTFD_TRUE=
18059 FREEBSD_EVENTFD_FALSE='#'
18060 else
18061 FREEBSD_EVENTFD_TRUE='#'
18062 FREEBSD_EVENTFD_FALSE=
18063 fi
18064
18065 if false; then
18066 FREEBSD_REALPATHAT_SYSCALL_TRUE=
18067 FREEBSD_REALPATHAT_SYSCALL_FALSE='#'
18068 else
18069 FREEBSD_REALPATHAT_SYSCALL_TRUE='#'
18070 FREEBSD_REALPATHAT_SYSCALL_FALSE=
18071 fi
18072
18073 if false; then
18074 FREEBSD_KQUEUEX_SYSCALL_TRUE=
18075 FREEBSD_KQUEUEX_SYSCALL_FALSE='#'
18076 else
18077 FREEBSD_KQUEUEX_SYSCALL_TRUE='#'
18078 FREEBSD_KQUEUEX_SYSCALL_FALSE=
18079 fi
18080
18081 if false; then
18082 FREEBSD_TIMERFD_SYSCALL_TRUE=
18083 FREEBSD_TIMERFD_SYSCALL_FALSE='#'
18084 else
18085 FREEBSD_TIMERFD_SYSCALL_TRUE='#'
18086 FREEBSD_TIMERFD_SYSCALL_FALSE=
18087 fi
18088
18089
18090 fi # test "$VGCONF_OS" = "freebsd"
18091
18092
18093 #----------------------------------------------------------------------------
18094 # Checks for C header files.
18095 #----------------------------------------------------------------------------
18096
18097 ac_fn_c_check_header_compile "$LINENO" "asm/unistd.h" "ac_cv_header_asm_unistd_h" "$ac_includes_default"
18098 if test "x$ac_cv_header_asm_unistd_h" = xyes
18099 then :
18100 printf "%s\n" "#define HAVE_ASM_UNISTD_H 1" >>confdefs.h
18101
18102 fi
18103 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
18104 if test "x$ac_cv_header_endian_h" = xyes
18105 then :
18106 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
18107
18108 fi
18109 ac_fn_c_check_header_compile "$LINENO" "mqueue.h" "ac_cv_header_mqueue_h" "$ac_includes_default"
18110 if test "x$ac_cv_header_mqueue_h" = xyes
18111 then :
18112 printf "%s\n" "#define HAVE_MQUEUE_H 1" >>confdefs.h
18113
18114 fi
18115 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
18116 if test "x$ac_cv_header_sys_endian_h" = xyes
18117 then :
18118 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
18119
18120 fi
18121 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
18122 if test "x$ac_cv_header_sys_epoll_h" = xyes
18123 then :
18124 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
18125
18126 fi
18127 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
18128 if test "x$ac_cv_header_sys_eventfd_h" = xyes
18129 then :
18130 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
18131
18132 fi
18133 ac_fn_c_check_header_compile "$LINENO" "sys/klog.h" "ac_cv_header_sys_klog_h" "$ac_includes_default"
18134 if test "x$ac_cv_header_sys_klog_h" = xyes
18135 then :
18136 printf "%s\n" "#define HAVE_SYS_KLOG_H 1" >>confdefs.h
18137
18138 fi
18139 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
18140 if test "x$ac_cv_header_sys_poll_h" = xyes
18141 then :
18142 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
18143
18144 fi
18145 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
18146 if test "x$ac_cv_header_sys_prctl_h" = xyes
18147 then :
18148 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
18149
18150 fi
18151 ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default"
18152 if test "x$ac_cv_header_sys_signal_h" = xyes
18153 then :
18154 printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h
18155
18156 fi
18157 ac_fn_c_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
18158 if test "x$ac_cv_header_sys_signalfd_h" = xyes
18159 then :
18160 printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h
18161
18162 fi
18163 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
18164 if test "x$ac_cv_header_sys_syscall_h" = xyes
18165 then :
18166 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
18167
18168 fi
18169 ac_fn_c_check_header_compile "$LINENO" "sys/sysnvl.h" "ac_cv_header_sys_sysnvl_h" "$ac_includes_default"
18170 if test "x$ac_cv_header_sys_sysnvl_h" = xyes
18171 then :
18172 printf "%s\n" "#define HAVE_SYS_SYSNVL_H 1" >>confdefs.h
18173
18174 fi
18175 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18176 if test "x$ac_cv_header_sys_time_h" = xyes
18177 then :
18178 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
18179
18180 fi
18181 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18182 if test "x$ac_cv_header_sys_types_h" = xyes
18183 then :
18184 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
18185
18186 fi
18187
18188
18189 # Verify whether the <linux/futex.h> header is usable.
18190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <linux/futex.h> is usable" >&5
18191 printf %s "checking if <linux/futex.h> is usable... " >&6; }
18192
18193 save_CFLAGS="$CFLAGS"
18194 CFLAGS="$CFLAGS -D__user="
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197
18198 #include <linux/futex.h>
18199
18200 int
18201 main (void)
18202 {
18203
18204 return FUTEX_WAIT;
18205
18206 ;
18207 return 0;
18208 }
18209 _ACEOF
18210 if ac_fn_c_try_compile "$LINENO"
18211 then :
18212
18213 ac_have_usable_linux_futex_h=yes
18214
18215 printf "%s\n" "#define HAVE_USABLE_LINUX_FUTEX_H 1" >>confdefs.h
18216
18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18218 printf "%s\n" "yes" >&6; }
18219
18220 else case e in #(
18221 e)
18222 ac_have_usable_linux_futex_h=no
18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224 printf "%s\n" "no" >&6; }
18225 ;;
18226 esac
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18229 CFLAGS="$save_CFLAGS"
18230
18231
18232 #----------------------------------------------------------------------------
18233 # Checks for typedefs, structures, and compiler characteristics.
18234 #----------------------------------------------------------------------------
18235 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
18236 if test "x$ac_cv_type_uid_t" = xyes
18237 then :
18238
18239 else case e in #(
18240 e)
18241 printf "%s\n" "#define uid_t int" >>confdefs.h
18242 ;;
18243 esac
18244 fi
18245
18246 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
18247 if test "x$ac_cv_type_gid_t" = xyes
18248 then :
18249
18250 else case e in #(
18251 e)
18252 printf "%s\n" "#define gid_t int" >>confdefs.h
18253 ;;
18254 esac
18255 fi
18256
18257 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18258 if test "x$ac_cv_type_off_t" = xyes
18259 then :
18260
18261 else case e in #(
18262 e)
18263 printf "%s\n" "#define off_t long int" >>confdefs.h
18264 ;;
18265 esac
18266 fi
18267
18268 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18269 if test "x$ac_cv_type_size_t" = xyes
18270 then :
18271
18272 else case e in #(
18273 e)
18274 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18275 ;;
18276 esac
18277 fi
18278
18279
18280
18281
18282 ac_fn_c_check_type "$LINENO" "struct statx" "ac_cv_type_struct_statx" "
18283 #define _GNU_SOURCE
18284 #include <sys/stat.h>
18285
18286 "
18287 if test "x$ac_cv_type_struct_statx" = xyes
18288 then :
18289
18290
18291 printf "%s\n" "#define HAVE_STRUCT_STATX_IN_SYS_STAT_H 1" >>confdefs.h
18292
18293
18294 fi
18295
18296
18297
18298 #----------------------------------------------------------------------------
18299 # Checks for library functions.
18300 #----------------------------------------------------------------------------
18301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
18302 printf %s "checking for working memcmp... " >&6; }
18303 if test ${ac_cv_func_memcmp_working+y}
18304 then :
18305 printf %s "(cached) " >&6
18306 else case e in #(
18307 e) if test "$cross_compiling" = yes
18308 then :
18309 ac_cv_func_memcmp_working=no
18310 else case e in #(
18311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 $ac_includes_default
18314 int
18315 main (void)
18316 {
18317
18318 /* Some versions of memcmp are not 8-bit clean. */
18319 char c0 = '\100', c1 = '\200', c2 = '\201';
18320 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18321 return 1;
18322
18323 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18324 or more and with at least one buffer not starting on a 4-byte boundary.
18325 William Lewis provided this test program. */
18326 {
18327 char foo[21];
18328 char bar[21];
18329 int i;
18330 for (i = 0; i < 4; i++)
18331 {
18332 char *a = foo + i;
18333 char *b = bar + i;
18334 strcpy (a, "--------01111111");
18335 strcpy (b, "--------10000000");
18336 if (memcmp (a, b, 16) >= 0)
18337 return 1;
18338 }
18339 return 0;
18340 }
18341
18342 ;
18343 return 0;
18344 }
18345 _ACEOF
18346 if ac_fn_c_try_run "$LINENO"
18347 then :
18348 ac_cv_func_memcmp_working=yes
18349 else case e in #(
18350 e) ac_cv_func_memcmp_working=no ;;
18351 esac
18352 fi
18353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18354 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18355 esac
18356 fi
18357 ;;
18358 esac
18359 fi
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18361 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
18362 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18363 *" memcmp.$ac_objext "* ) ;;
18364 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18365 ;;
18366 esac
18367
18368
18369
18370 ac_func=
18371 for ac_item in $ac_func_c_list
18372 do
18373 if test $ac_func; then
18374 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18375 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18376 echo "#define $ac_item 1" >> confdefs.h
18377 fi
18378 ac_func=
18379 else
18380 ac_func=$ac_item
18381 fi
18382 done
18383
18384
18385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18386 printf %s "checking for working mmap... " >&6; }
18387 if test ${ac_cv_func_mmap_fixed_mapped+y}
18388 then :
18389 printf %s "(cached) " >&6
18390 else case e in #(
18391 e) if test "$cross_compiling" = yes
18392 then :
18393 case "$host_os" in # ((
18394 # Guess yes on platforms where we know the result.
18395 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
18396 # If we don't know, assume the worst.
18397 *) ac_cv_func_mmap_fixed_mapped=no ;;
18398 esac
18399 else case e in #(
18400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18402 $ac_includes_default
18403 /* malloc might have been renamed as rpl_malloc. */
18404 #undef malloc
18405
18406 /* Thanks to Mike Haertel and Jim Avera for this test.
18407 Here is a matrix of mmap possibilities:
18408 mmap private not fixed
18409 mmap private fixed at somewhere currently unmapped
18410 mmap private fixed at somewhere already mapped
18411 mmap shared not fixed
18412 mmap shared fixed at somewhere currently unmapped
18413 mmap shared fixed at somewhere already mapped
18414 For private mappings, we should verify that changes cannot be read()
18415 back from the file, nor mmap's back from the file at a different
18416 address. (There have been systems where private was not correctly
18417 implemented like the infamous i386 svr4.0, and systems where the
18418 VM page cache was not coherent with the file system buffer cache
18419 like early versions of FreeBSD and possibly contemporary NetBSD.)
18420 For shared mappings, we should conversely verify that changes get
18421 propagated back to all the places they're supposed to be. */
18422
18423 #include <fcntl.h>
18424 #include <sys/mman.h>
18425
18426 #ifndef getpagesize
18427 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
18428 been removed from POSIX and is limited to page sizes that fit in 'int'. */
18429 # ifdef _SC_PAGESIZE
18430 # define getpagesize() sysconf (_SC_PAGESIZE)
18431 # elif defined _SC_PAGE_SIZE
18432 # define getpagesize() sysconf (_SC_PAGE_SIZE)
18433 # elif HAVE_GETPAGESIZE
18434 int getpagesize ();
18435 # else
18436 # ifdef HAVE_SYS_PARAM_H
18437 # include <sys/param.h>
18438 # ifdef EXEC_PAGESIZE
18439 # define getpagesize() EXEC_PAGESIZE
18440 # else /* no EXEC_PAGESIZE */
18441 # ifdef NBPG
18442 # define getpagesize() NBPG * CLSIZE
18443 # ifndef CLSIZE
18444 # define CLSIZE 1
18445 # endif /* no CLSIZE */
18446 # else /* no NBPG */
18447 # ifdef NBPC
18448 # define getpagesize() NBPC
18449 # else /* no NBPC */
18450 # ifdef PAGESIZE
18451 # define getpagesize() PAGESIZE
18452 # endif /* PAGESIZE */
18453 # endif /* no NBPC */
18454 # endif /* no NBPG */
18455 # endif /* no EXEC_PAGESIZE */
18456 # else /* no HAVE_SYS_PARAM_H */
18457 # define getpagesize() 8192 /* punt totally */
18458 # endif /* no HAVE_SYS_PARAM_H */
18459 # endif
18460 #endif
18461
18462 int
18463 main (void)
18464 {
18465 char *data, *data2, *data3;
18466 const char *cdata2;
18467 long i, pagesize;
18468 int fd, fd2;
18469
18470 pagesize = getpagesize ();
18471
18472 /* First, make a file with some known garbage in it. */
18473 data = (char *) malloc (pagesize);
18474 if (!data)
18475 return 1;
18476 for (i = 0; i < pagesize; ++i)
18477 *(data + i) = rand ();
18478 umask (0);
18479 fd = creat ("conftest.mmap", 0600);
18480 if (fd < 0)
18481 return 2;
18482 if (write (fd, data, pagesize) != pagesize)
18483 return 3;
18484 close (fd);
18485
18486 /* Next, check that the tail of a page is zero-filled. File must have
18487 non-zero length, otherwise we risk SIGBUS for entire page. */
18488 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18489 if (fd2 < 0)
18490 return 4;
18491 cdata2 = "";
18492 if (write (fd2, cdata2, 1) != 1)
18493 return 5;
18494 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18495 if (data2 == MAP_FAILED)
18496 return 6;
18497 for (i = 0; i < pagesize; ++i)
18498 if (*(data2 + i))
18499 return 7;
18500 close (fd2);
18501 /* 'return 8;' not currently used. */
18502
18503 /* Next, try to mmap the file at a fixed address which already has
18504 something else allocated at it. If we can, also make sure that
18505 we see the same garbage. */
18506 fd = open ("conftest.mmap", O_RDWR);
18507 if (fd < 0)
18508 return 9;
18509 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18510 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18511 return 10;
18512 for (i = 0; i < pagesize; ++i)
18513 if (*(data + i) != *(data2 + i))
18514 return 11;
18515
18516 /* Finally, make sure that changes to the mapped area do not
18517 percolate back to the file as seen by read(). (This is a bug on
18518 some variants of i386 svr4.0.) */
18519 for (i = 0; i < pagesize; ++i)
18520 *(data2 + i) = *(data2 + i) + 1;
18521 data3 = (char *) malloc (pagesize);
18522 if (!data3)
18523 return 12;
18524 if (read (fd, data3, pagesize) != pagesize)
18525 return 13;
18526 for (i = 0; i < pagesize; ++i)
18527 if (*(data + i) != *(data3 + i))
18528 return 14;
18529 close (fd);
18530 free (data);
18531 free (data3);
18532 return 0;
18533 }
18534 _ACEOF
18535 if ac_fn_c_try_run "$LINENO"
18536 then :
18537 ac_cv_func_mmap_fixed_mapped=yes
18538 else case e in #(
18539 e) ac_cv_func_mmap_fixed_mapped=no ;;
18540 esac
18541 fi
18542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18543 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18544 esac
18545 fi
18546 ;;
18547 esac
18548 fi
18549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18550 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
18551 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18552
18553 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18554
18555 fi
18556 rm -f conftest.mmap conftest.txt
18557
18558
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
18560 printf %s "checking for pthread_create in -lpthread... " >&6; }
18561 if test ${ac_cv_lib_pthread_pthread_create+y}
18562 then :
18563 printf %s "(cached) " >&6
18564 else case e in #(
18565 e) ac_check_lib_save_LIBS=$LIBS
18566 LIBS="-lpthread $LIBS"
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18569
18570 /* Override any GCC internal prototype to avoid an error.
18571 Use char because int might match the return type of a GCC
18572 builtin and then its argument prototype would still apply.
18573 The 'extern "C"' is for builds by C++ compilers;
18574 although this is not generally supported in C code supporting it here
18575 has little cost and some practical benefit (sr 110532). */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char pthread_create (void);
18580 int
18581 main (void)
18582 {
18583 return pthread_create ();
18584 ;
18585 return 0;
18586 }
18587 _ACEOF
18588 if ac_fn_c_try_link "$LINENO"
18589 then :
18590 ac_cv_lib_pthread_pthread_create=yes
18591 else case e in #(
18592 e) ac_cv_lib_pthread_pthread_create=no ;;
18593 esac
18594 fi
18595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18596 conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS ;;
18598 esac
18599 fi
18600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
18601 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
18602 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
18603 then :
18604 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
18605
18606 LIBS="-lpthread $LIBS"
18607
18608 fi
18609
18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
18611 printf %s "checking for clock_gettime in -lrt... " >&6; }
18612 if test ${ac_cv_lib_rt_clock_gettime+y}
18613 then :
18614 printf %s "(cached) " >&6
18615 else case e in #(
18616 e) ac_check_lib_save_LIBS=$LIBS
18617 LIBS="-lrt $LIBS"
18618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619 /* end confdefs.h. */
18620
18621 /* Override any GCC internal prototype to avoid an error.
18622 Use char because int might match the return type of a GCC
18623 builtin and then its argument prototype would still apply.
18624 The 'extern "C"' is for builds by C++ compilers;
18625 although this is not generally supported in C code supporting it here
18626 has little cost and some practical benefit (sr 110532). */
18627 #ifdef __cplusplus
18628 extern "C"
18629 #endif
18630 char clock_gettime (void);
18631 int
18632 main (void)
18633 {
18634 return clock_gettime ();
18635 ;
18636 return 0;
18637 }
18638 _ACEOF
18639 if ac_fn_c_try_link "$LINENO"
18640 then :
18641 ac_cv_lib_rt_clock_gettime=yes
18642 else case e in #(
18643 e) ac_cv_lib_rt_clock_gettime=no ;;
18644 esac
18645 fi
18646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18647 conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_check_lib_save_LIBS ;;
18649 esac
18650 fi
18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
18652 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
18653 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
18654 then :
18655 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
18656
18657 LIBS="-lrt $LIBS"
18658
18659 fi
18660
18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_delete in -lrt" >&5
18662 printf %s "checking for timer_delete in -lrt... " >&6; }
18663 if test ${ac_cv_lib_rt_timer_delete+y}
18664 then :
18665 printf %s "(cached) " >&6
18666 else case e in #(
18667 e) ac_check_lib_save_LIBS=$LIBS
18668 LIBS="-lrt $LIBS"
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671
18672 /* Override any GCC internal prototype to avoid an error.
18673 Use char because int might match the return type of a GCC
18674 builtin and then its argument prototype would still apply.
18675 The 'extern "C"' is for builds by C++ compilers;
18676 although this is not generally supported in C code supporting it here
18677 has little cost and some practical benefit (sr 110532). */
18678 #ifdef __cplusplus
18679 extern "C"
18680 #endif
18681 char timer_delete (void);
18682 int
18683 main (void)
18684 {
18685 return timer_delete ();
18686 ;
18687 return 0;
18688 }
18689 _ACEOF
18690 if ac_fn_c_try_link "$LINENO"
18691 then :
18692 ac_cv_lib_rt_timer_delete=yes
18693 else case e in #(
18694 e) ac_cv_lib_rt_timer_delete=no ;;
18695 esac
18696 fi
18697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18698 conftest$ac_exeext conftest.$ac_ext
18699 LIBS=$ac_check_lib_save_LIBS ;;
18700 esac
18701 fi
18702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_delete" >&5
18703 printf "%s\n" "$ac_cv_lib_rt_timer_delete" >&6; }
18704 if test "x$ac_cv_lib_rt_timer_delete" = xyes
18705 then :
18706 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
18707
18708 LIBS="-lrt $LIBS"
18709
18710 fi
18711
18712
18713 ac_fn_c_check_func "$LINENO" "aligned_alloc" "ac_cv_func_aligned_alloc"
18714 if test "x$ac_cv_func_aligned_alloc" = xyes
18715 then :
18716 printf "%s\n" "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h
18717
18718 fi
18719 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
18720 if test "x$ac_cv_func_clock_gettime" = xyes
18721 then :
18722 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18723
18724 fi
18725 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
18726 if test "x$ac_cv_func_copy_file_range" = xyes
18727 then :
18728 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
18729
18730 fi
18731 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
18732 if test "x$ac_cv_func_epoll_create" = xyes
18733 then :
18734 printf "%s\n" "#define HAVE_EPOLL_CREATE 1" >>confdefs.h
18735
18736 fi
18737 ac_fn_c_check_func "$LINENO" "epoll_pwait" "ac_cv_func_epoll_pwait"
18738 if test "x$ac_cv_func_epoll_pwait" = xyes
18739 then :
18740 printf "%s\n" "#define HAVE_EPOLL_PWAIT 1" >>confdefs.h
18741
18742 fi
18743 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18744 if test "x$ac_cv_func_getaddrinfo" = xyes
18745 then :
18746 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
18747
18748 fi
18749 ac_fn_c_check_func "$LINENO" "klogctl" "ac_cv_func_klogctl"
18750 if test "x$ac_cv_func_klogctl" = xyes
18751 then :
18752 printf "%s\n" "#define HAVE_KLOGCTL 1" >>confdefs.h
18753
18754 fi
18755 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
18756 if test "x$ac_cv_func_mallinfo" = xyes
18757 then :
18758 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
18759
18760 fi
18761 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
18762 if test "x$ac_cv_func_memchr" = xyes
18763 then :
18764 printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
18765
18766 fi
18767 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
18768 if test "x$ac_cv_func_memfd_create" = xyes
18769 then :
18770 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
18771
18772 fi
18773 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
18774 if test "x$ac_cv_func_memset" = xyes
18775 then :
18776 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
18777
18778 fi
18779 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
18780 if test "x$ac_cv_func_mkdir" = xyes
18781 then :
18782 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
18783
18784 fi
18785 ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
18786 if test "x$ac_cv_func_mremap" = xyes
18787 then :
18788 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
18789
18790 fi
18791 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
18792 if test "x$ac_cv_func_pipe2" = xyes
18793 then :
18794 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
18795
18796 fi
18797 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
18798 if test "x$ac_cv_func_ppoll" = xyes
18799 then :
18800 printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h
18801
18802 fi
18803 ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
18804 if test "x$ac_cv_func_preadv" = xyes
18805 then :
18806 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
18807
18808 fi
18809 ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2"
18810 if test "x$ac_cv_func_preadv2" = xyes
18811 then :
18812 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h
18813
18814 fi
18815 ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
18816 if test "x$ac_cv_func_process_vm_readv" = xyes
18817 then :
18818 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
18819
18820 fi
18821 ac_fn_c_check_func "$LINENO" "process_vm_writev" "ac_cv_func_process_vm_writev"
18822 if test "x$ac_cv_func_process_vm_writev" = xyes
18823 then :
18824 printf "%s\n" "#define HAVE_PROCESS_VM_WRITEV 1" >>confdefs.h
18825
18826 fi
18827 ac_fn_c_check_func "$LINENO" "pthread_barrier_init" "ac_cv_func_pthread_barrier_init"
18828 if test "x$ac_cv_func_pthread_barrier_init" = xyes
18829 then :
18830 printf "%s\n" "#define HAVE_PTHREAD_BARRIER_INIT 1" >>confdefs.h
18831
18832 fi
18833 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
18834 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
18835 then :
18836 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18837
18838 fi
18839 ac_fn_c_check_func "$LINENO" "pthread_mutex_timedlock" "ac_cv_func_pthread_mutex_timedlock"
18840 if test "x$ac_cv_func_pthread_mutex_timedlock" = xyes
18841 then :
18842 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1" >>confdefs.h
18843
18844 fi
18845 ac_fn_c_check_func "$LINENO" "pthread_rwlock_timedrdlock" "ac_cv_func_pthread_rwlock_timedrdlock"
18846 if test "x$ac_cv_func_pthread_rwlock_timedrdlock" = xyes
18847 then :
18848 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK 1" >>confdefs.h
18849
18850 fi
18851 ac_fn_c_check_func "$LINENO" "pthread_rwlock_timedwrlock" "ac_cv_func_pthread_rwlock_timedwrlock"
18852 if test "x$ac_cv_func_pthread_rwlock_timedwrlock" = xyes
18853 then :
18854 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
18855
18856 fi
18857 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
18858 if test "x$ac_cv_func_pthread_setname_np" = xyes
18859 then :
18860 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
18861
18862 fi
18863 ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
18864 if test "x$ac_cv_func_pthread_spin_lock" = xyes
18865 then :
18866 printf "%s\n" "#define HAVE_PTHREAD_SPIN_LOCK 1" >>confdefs.h
18867
18868 fi
18869 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
18870 if test "x$ac_cv_func_pthread_yield" = xyes
18871 then :
18872 printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
18873
18874 fi
18875 ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev"
18876 if test "x$ac_cv_func_pwritev" = xyes
18877 then :
18878 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h
18879
18880 fi
18881 ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2"
18882 if test "x$ac_cv_func_pwritev2" = xyes
18883 then :
18884 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h
18885
18886 fi
18887 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
18888 if test "x$ac_cv_func_rawmemchr" = xyes
18889 then :
18890 printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h
18891
18892 fi
18893 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
18894 if test "x$ac_cv_func_readlinkat" = xyes
18895 then :
18896 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
18897
18898 fi
18899 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
18900 if test "x$ac_cv_func_reallocarray" = xyes
18901 then :
18902 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
18903
18904 fi
18905 ac_fn_c_check_func "$LINENO" "semtimedop" "ac_cv_func_semtimedop"
18906 if test "x$ac_cv_func_semtimedop" = xyes
18907 then :
18908 printf "%s\n" "#define HAVE_SEMTIMEDOP 1" >>confdefs.h
18909
18910 fi
18911 ac_fn_c_check_func "$LINENO" "setcontext" "ac_cv_func_setcontext"
18912 if test "x$ac_cv_func_setcontext" = xyes
18913 then :
18914 printf "%s\n" "#define HAVE_SETCONTEXT 1" >>confdefs.h
18915
18916 fi
18917 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
18918 if test "x$ac_cv_func_signalfd" = xyes
18919 then :
18920 printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h
18921
18922 fi
18923 ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
18924 if test "x$ac_cv_func_sigwaitinfo" = xyes
18925 then :
18926 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h
18927
18928 fi
18929 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
18930 if test "x$ac_cv_func_strchr" = xyes
18931 then :
18932 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
18933
18934 fi
18935 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
18936 if test "x$ac_cv_func_strdup" = xyes
18937 then :
18938 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
18939
18940 fi
18941 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
18942 if test "x$ac_cv_func_strpbrk" = xyes
18943 then :
18944 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
18945
18946 fi
18947 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
18948 if test "x$ac_cv_func_strrchr" = xyes
18949 then :
18950 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
18951
18952 fi
18953 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
18954 if test "x$ac_cv_func_strstr" = xyes
18955 then :
18956 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
18957
18958 fi
18959 ac_fn_c_check_func "$LINENO" "swapcontext" "ac_cv_func_swapcontext"
18960 if test "x$ac_cv_func_swapcontext" = xyes
18961 then :
18962 printf "%s\n" "#define HAVE_SWAPCONTEXT 1" >>confdefs.h
18963
18964 fi
18965 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
18966 if test "x$ac_cv_func_syscall" = xyes
18967 then :
18968 printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h
18969
18970 fi
18971 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
18972 if test "x$ac_cv_func_utimensat" = xyes
18973 then :
18974 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
18975
18976 fi
18977 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
18978 if test "x$ac_cv_func_mempcpy" = xyes
18979 then :
18980 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
18981
18982 fi
18983 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18984 if test "x$ac_cv_func_strlcat" = xyes
18985 then :
18986 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
18987
18988 fi
18989 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18990 if test "x$ac_cv_func_strlcpy" = xyes
18991 then :
18992 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
18993
18994 fi
18995 ac_fn_c_check_func "$LINENO" "stpncpy" "ac_cv_func_stpncpy"
18996 if test "x$ac_cv_func_stpncpy" = xyes
18997 then :
18998 printf "%s\n" "#define HAVE_STPNCPY 1" >>confdefs.h
18999
19000 fi
19001 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
19002 if test "x$ac_cv_func_strchrnul" = xyes
19003 then :
19004 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
19005
19006 fi
19007 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
19008 if test "x$ac_cv_func_memrchr" = xyes
19009 then :
19010 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
19011
19012 fi
19013 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
19014 if test "x$ac_cv_func_strndup" = xyes
19015 then :
19016 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
19017
19018 fi
19019 ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"
19020 if test "x$ac_cv_func_close_range" = xyes
19021 then :
19022 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
19023
19024 fi
19025 ac_fn_c_check_func "$LINENO" "wcsncpy" "ac_cv_func_wcsncpy"
19026 if test "x$ac_cv_func_wcsncpy" = xyes
19027 then :
19028 printf "%s\n" "#define HAVE_WCSNCPY 1" >>confdefs.h
19029
19030 fi
19031 ac_fn_c_check_func "$LINENO" "free_aligned_sized" "ac_cv_func_free_aligned_sized"
19032 if test "x$ac_cv_func_free_aligned_sized" = xyes
19033 then :
19034 printf "%s\n" "#define HAVE_FREE_ALIGNED_SIZED 1" >>confdefs.h
19035
19036 fi
19037 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
19038 if test "x$ac_cv_func_sbrk" = xyes
19039 then :
19040 printf "%s\n" "#define HAVE_SBRK 1" >>confdefs.h
19041
19042 fi
19043 ac_fn_c_check_func "$LINENO" "wcpncpy" "ac_cv_func_wcpncpy"
19044 if test "x$ac_cv_func_wcpncpy" = xyes
19045 then :
19046 printf "%s\n" "#define HAVE_WCPNCPY 1" >>confdefs.h
19047
19048 fi
19049 ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm"
19050 if test "x$ac_cv_func_wcsxfrm" = xyes
19051 then :
19052 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h
19053
19054 fi
19055 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
19056 if test "x$ac_cv_func_sem_timedwait" = xyes
19057 then :
19058 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
19059
19060 fi
19061 ac_fn_c_check_func "$LINENO" "sem_clockwait_np" "ac_cv_func_sem_clockwait_np"
19062 if test "x$ac_cv_func_sem_clockwait_np" = xyes
19063 then :
19064 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT_NP 1" >>confdefs.h
19065
19066 fi
19067 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
19068 if test "x$ac_cv_func_fdatasync" = xyes
19069 then :
19070 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
19071
19072 fi
19073 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
19074 if test "x$ac_cv_func_getrandom" = xyes
19075 then :
19076 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
19077
19078 fi
19079 ac_fn_c_check_func "$LINENO" "getrlimitusage" "ac_cv_func_getrlimitusage"
19080 if test "x$ac_cv_func_getrlimitusage" = xyes
19081 then :
19082 printf "%s\n" "#define HAVE_GETRLIMITUSAGE 1" >>confdefs.h
19083
19084 fi
19085 ac_fn_c_check_func "$LINENO" "timer_delete" "ac_cv_func_timer_delete"
19086 if test "x$ac_cv_func_timer_delete" = xyes
19087 then :
19088 printf "%s\n" "#define HAVE_TIMER_DELETE 1" >>confdefs.h
19089
19090 fi
19091 ac_fn_c_check_func "$LINENO" "fchroot" "ac_cv_func_fchroot"
19092 if test "x$ac_cv_func_fchroot" = xyes
19093 then :
19094 printf "%s\n" "#define HAVE_FCHROOT 1" >>confdefs.h
19095
19096 fi
19097 ac_fn_c_check_func "$LINENO" "setcred" "ac_cv_func_setcred"
19098 if test "x$ac_cv_func_setcred" = xyes
19099 then :
19100 printf "%s\n" "#define HAVE_SETCRED 1" >>confdefs.h
19101
19102 fi
19103
19104
19105 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
19106 # libraries with any shared object and/or executable. This is NOT what we
19107 # want for e.g. vgpreload_core-x86-linux.so
19108 LIBS=""
19109
19110 if test x$ac_cv_func_pthread_barrier_init = xyes; then
19111 HAVE_PTHREAD_BARRIER_TRUE=
19112 HAVE_PTHREAD_BARRIER_FALSE='#'
19113 else
19114 HAVE_PTHREAD_BARRIER_TRUE='#'
19115 HAVE_PTHREAD_BARRIER_FALSE=
19116 fi
19117
19118 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
19119 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
19120 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
19121 else
19122 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
19123 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
19124 fi
19125
19126 if test x$ac_cv_func_pthread_spin_lock = xyes; then
19127 HAVE_PTHREAD_SPINLOCK_TRUE=
19128 HAVE_PTHREAD_SPINLOCK_FALSE='#'
19129 else
19130 HAVE_PTHREAD_SPINLOCK_TRUE='#'
19131 HAVE_PTHREAD_SPINLOCK_FALSE=
19132 fi
19133
19134 if test x$ac_cv_func_pthread_setname_np = xyes; then
19135 HAVE_PTHREAD_SETNAME_NP_TRUE=
19136 HAVE_PTHREAD_SETNAME_NP_FALSE='#'
19137 else
19138 HAVE_PTHREAD_SETNAME_NP_TRUE='#'
19139 HAVE_PTHREAD_SETNAME_NP_FALSE=
19140 fi
19141
19142 if test x$ac_cv_func_copy_file_range = xyes; then
19143 HAVE_COPY_FILE_RANGE_TRUE=
19144 HAVE_COPY_FILE_RANGE_FALSE='#'
19145 else
19146 HAVE_COPY_FILE_RANGE_TRUE='#'
19147 HAVE_COPY_FILE_RANGE_FALSE=
19148 fi
19149
19150 if test x$ac_cv_func_preadv = xyes && test x$ac_cv_func_pwritev = xyes; then
19151 HAVE_PREADV_PWRITEV_TRUE=
19152 HAVE_PREADV_PWRITEV_FALSE='#'
19153 else
19154 HAVE_PREADV_PWRITEV_TRUE='#'
19155 HAVE_PREADV_PWRITEV_FALSE=
19156 fi
19157
19158 if test x$ac_cv_func_preadv2 = xyes && test x$ac_cv_func_pwritev2 = xyes; then
19159 HAVE_PREADV2_PWRITEV2_TRUE=
19160 HAVE_PREADV2_PWRITEV2_FALSE='#'
19161 else
19162 HAVE_PREADV2_PWRITEV2_TRUE='#'
19163 HAVE_PREADV2_PWRITEV2_FALSE=
19164 fi
19165
19166 if test x$ac_cv_func_setcontext = xyes; then
19167 HAVE_SETCONTEXT_TRUE=
19168 HAVE_SETCONTEXT_FALSE='#'
19169 else
19170 HAVE_SETCONTEXT_TRUE='#'
19171 HAVE_SETCONTEXT_FALSE=
19172 fi
19173
19174 if test x$ac_cv_func_swapcontext = xyes; then
19175 HAVE_SWAPCONTEXT_TRUE=
19176 HAVE_SWAPCONTEXT_FALSE='#'
19177 else
19178 HAVE_SWAPCONTEXT_TRUE='#'
19179 HAVE_SWAPCONTEXT_FALSE=
19180 fi
19181
19182 if test x$ac_cv_func_memfd_create = xyes; then
19183 HAVE_MEMFD_CREATE_TRUE=
19184 HAVE_MEMFD_CREATE_FALSE='#'
19185 else
19186 HAVE_MEMFD_CREATE_TRUE='#'
19187 HAVE_MEMFD_CREATE_FALSE=
19188 fi
19189
19190 if test x$ac_cv_func_getaddrinfo = xyes; then
19191 HAVE_GETADDRINFO_TRUE=
19192 HAVE_GETADDRINFO_FALSE='#'
19193 else
19194 HAVE_GETADDRINFO_TRUE='#'
19195 HAVE_GETADDRINFO_FALSE=
19196 fi
19197
19198 if test x$ac_cv_func_close_range = xyes; then
19199 HAVE_CLOSE_RANGE_TRUE=
19200 HAVE_CLOSE_RANGE_FALSE='#'
19201 else
19202 HAVE_CLOSE_RANGE_TRUE='#'
19203 HAVE_CLOSE_RANGE_FALSE=
19204 fi
19205
19206 if test x$ac_cv_func_reallocarray = xyes; then
19207 HAVE_REALLOCARRAY_TRUE=
19208 HAVE_REALLOCARRAY_FALSE='#'
19209 else
19210 HAVE_REALLOCARRAY_TRUE='#'
19211 HAVE_REALLOCARRAY_FALSE=
19212 fi
19213
19214 if test x$ac_cv_func_wcsncpy = xyes; then
19215 HAVE_WCSNCPY_TRUE=
19216 HAVE_WCSNCPY_FALSE='#'
19217 else
19218 HAVE_WCSNCPY_TRUE='#'
19219 HAVE_WCSNCPY_FALSE=
19220 fi
19221
19222 if test x$ac_cv_func_strlcat = xyes; then
19223 HAVE_STRLCAT_TRUE=
19224 HAVE_STRLCAT_FALSE='#'
19225 else
19226 HAVE_STRLCAT_TRUE='#'
19227 HAVE_STRLCAT_FALSE=
19228 fi
19229
19230 if test x$ac_cv_func_strlcpy = xyes; then
19231 HAVE_STRLCPY_TRUE=
19232 HAVE_STRLCPY_FALSE='#'
19233 else
19234 HAVE_STRLCPY_TRUE='#'
19235 HAVE_STRLCPY_FALSE=
19236 fi
19237
19238 if test x$ac_cv_func_free_aligned_sized = xyes; then
19239 HAVE_FREE_ALIGNED_SIZED_TRUE=
19240 HAVE_FREE_ALIGNED_SIZED_FALSE='#'
19241 else
19242 HAVE_FREE_ALIGNED_SIZED_TRUE='#'
19243 HAVE_FREE_ALIGNED_SIZED_FALSE=
19244 fi
19245
19246 if test x$ac_cv_func_sbrk = xyes; then
19247 HAVE_SBRK_TRUE=
19248 HAVE_SBRK_FALSE='#'
19249 else
19250 HAVE_SBRK_TRUE='#'
19251 HAVE_SBRK_FALSE=
19252 fi
19253
19254 if test x$ac_cv_func_wcpncpy = xyes; then
19255 HAVE_WCPNCPY_TRUE=
19256 HAVE_WCPNCPY_FALSE='#'
19257 else
19258 HAVE_WCPNCPY_TRUE='#'
19259 HAVE_WCPNCPY_FALSE=
19260 fi
19261
19262 if test x$ac_cv_func_wcsxfrm = xyes; then
19263 HAVE_WCSXFRM_TRUE=
19264 HAVE_WCSXFRM_FALSE='#'
19265 else
19266 HAVE_WCSXFRM_TRUE='#'
19267 HAVE_WCSXFRM_FALSE=
19268 fi
19269
19270 if test x$ac_cv_func_sem_timedwait = xyes; then
19271 HAVE_SEM_TIMEDWAIT_TRUE=
19272 HAVE_SEM_TIMEDWAIT_FALSE='#'
19273 else
19274 HAVE_SEM_TIMEDWAIT_TRUE='#'
19275 HAVE_SEM_TIMEDWAIT_FALSE=
19276 fi
19277
19278 if test x$ac_cv_func_sem_clockwait_np = xyes; then
19279 HAVE_SEM_CLOCKWAIT_NP_TRUE=
19280 HAVE_SEM_CLOCKWAIT_NP_FALSE='#'
19281 else
19282 HAVE_SEM_CLOCKWAIT_NP_TRUE='#'
19283 HAVE_SEM_CLOCKWAIT_NP_FALSE=
19284 fi
19285
19286 if test x$ac_cv_func_fdatasync = xyes; then
19287 HAVE_FDATASYNC_TRUE=
19288 HAVE_FDATASYNC_FALSE='#'
19289 else
19290 HAVE_FDATASYNC_TRUE='#'
19291 HAVE_FDATASYNC_FALSE=
19292 fi
19293
19294 if test x$ac_cv_func_getrandom = xyes; then
19295 HAVE_GETRANDOM_TRUE=
19296 HAVE_GETRANDOM_FALSE='#'
19297 else
19298 HAVE_GETRANDOM_TRUE='#'
19299 HAVE_GETRANDOM_FALSE=
19300 fi
19301
19302 if test x$ac_cv_func_getrlimitusage = xyes; then
19303 HAVE_GETRLIMITUSAGE_TRUE=
19304 HAVE_GETRLIMITUSAGE_FALSE='#'
19305 else
19306 HAVE_GETRLIMITUSAGE_TRUE='#'
19307 HAVE_GETRLIMITUSAGE_FALSE=
19308 fi
19309
19310 if test x$ac_cv_func_timer_delete = xyes; then
19311 HAVE_TIMER_DELETE_TRUE=
19312 HAVE_TIMER_DELETE_FALSE='#'
19313 else
19314 HAVE_TIMER_DELETE_TRUE='#'
19315 HAVE_TIMER_DELETE_FALSE=
19316 fi
19317
19318 if test x$ac_cv_func_fchroot = xyes; then
19319 HAVE_FCHROOT_TRUE=
19320 HAVE_FCHROOT_FALSE='#'
19321 else
19322 HAVE_FCHROOT_TRUE='#'
19323 HAVE_FCHROOT_FALSE=
19324 fi
19325
19326 if test x$ac_cv_func_setcred = xyes; then
19327 HAVE_SETCRED_TRUE=
19328 HAVE_SETCRED_FALSE='#'
19329 else
19330 HAVE_SETCRED_TRUE='#'
19331 HAVE_SETCRED_FALSE=
19332 fi
19333
19334
19335 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
19336 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX \
19337 -o x$VGCONF_PLATFORM_PRI_CAPS = xNANOMIPS_LINUX; then
19338
19339 printf "%s\n" "#define DISABLE_PTHREAD_SPINLOCK_INTERCEPT 1" >>confdefs.h
19340
19341 fi
19342
19343 #----------------------------------------------------------------------------
19344 # MPI checks
19345 #----------------------------------------------------------------------------
19346 # Do we have a useable MPI setup on the primary and/or secondary targets?
19347 # On Linux, by default, assumes mpicc and -m32/-m64
19348 # Note: this is a kludge in that it assumes the specified mpicc
19349 # understands -m32/-m64 regardless of what is specified using
19350 # --with-mpicc=.
19351 # Extract the first word of "mpicc", so it can be a program name with args.
19352 set dummy mpicc; ac_word=$2
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19354 printf %s "checking for $ac_word... " >&6; }
19355 if test ${ac_cv_path_MPI_CC+y}
19356 then :
19357 printf %s "(cached) " >&6
19358 else case e in #(
19359 e) case $MPI_CC in
19360 [\\/]* | ?:[\\/]*)
19361 ac_cv_path_MPI_CC="$MPI_CC" # Let the user override the test with a path.
19362 ;;
19363 *)
19364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 as_dummy="$PATH:/usr/lib/openmpi/bin:/usr/lib64/openmpi/bin"
19366 for as_dir in $as_dummy
19367 do
19368 IFS=$as_save_IFS
19369 case $as_dir in #(((
19370 '') as_dir=./ ;;
19371 */) ;;
19372 *) as_dir=$as_dir/ ;;
19373 esac
19374 for ac_exec_ext in '' $ac_executable_extensions; do
19375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19376 ac_cv_path_MPI_CC="$as_dir$ac_word$ac_exec_ext"
19377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19378 break 2
19379 fi
19380 done
19381 done
19382 IFS=$as_save_IFS
19383
19384 test -z "$ac_cv_path_MPI_CC" && ac_cv_path_MPI_CC="mpicc"
19385 ;;
19386 esac ;;
19387 esac
19388 fi
19389 MPI_CC=$ac_cv_path_MPI_CC
19390 if test -n "$MPI_CC"; then
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPI_CC" >&5
19392 printf "%s\n" "$MPI_CC" >&6; }
19393 else
19394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 printf "%s\n" "no" >&6; }
19396 fi
19397
19398
19399
19400 mflag_primary=
19401 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
19402 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_FREEBSD \
19403 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
19404 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
19405 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
19406 -o x$VGCONF_PLATFORM_PRI_CAPS = xNANOMIPS_LINUX \
19407 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS ; then
19408 mflag_primary=$FLAG_M32
19409 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
19410 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_FREEBSD \
19411 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
19412 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \
19413 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_FREEBSD \
19414 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX \
19415 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
19416 -o x$VGCONF_PLATFORM_PRI_CAPS = xRISCV64_LINUX ; then
19417 mflag_primary=$FLAG_M64
19418 elif test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN ; then
19419 mflag_primary="$FLAG_M32 -arch i386"
19420 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
19421 mflag_primary="$FLAG_M64 -arch x86_64"
19422 fi
19423
19424 mflag_secondary=
19425 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
19426 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
19427 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS \
19428 -o x$VGCONF_PLATFORM_SEC_CAPS = xMIPS32_LINUX \
19429 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_FREEBSD ; then
19430 mflag_secondary=$FLAG_M32
19431 elif test x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
19432 mflag_secondary="$FLAG_M32 -arch i386"
19433 fi
19434
19435
19436
19437 # Check whether --with-mpicc was given.
19438 if test ${with_mpicc+y}
19439 then :
19440 withval=$with_mpicc; MPI_CC=$withval
19441
19442 fi
19443
19444
19445
19446 ## We AM_COND_IF here instead of automake "if" in mpi/Makefile.am so that we can
19447 ## use these values in the check for a functioning mpicc.
19448 ##
19449 ## We leave the MPI_FLAG_M3264_ logic in mpi/Makefile.am and assume that
19450 ## mflag_primary/mflag_secondary are sufficient approximations of that behavior
19451 if test -z "$VGCONF_OS_IS_LINUX_TRUE"; then :
19452 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic"
19453 LDFLAGS_MPI="-fpic -shared"
19454 fi
19455 if test -z "$VGCONF_OS_IS_FREEBSD_TRUE"; then :
19456 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic"
19457 LDFLAGS_MPI="-fpic -shared"
19458 fi
19459 if test -z "$VGCONF_OS_IS_DARWIN_TRUE"; then :
19460 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -dynamic"
19461 LDFLAGS_MPI="-dynamic -dynamiclib -all_load"
19462 fi
19463 if test -z "$VGCONF_OS_IS_SOLARIS_TRUE"; then :
19464 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic"
19465 LDFLAGS_MPI="-fpic -shared"
19466 fi
19467
19468
19469
19470
19471
19472 ## See if MPI_CC works for the primary target
19473 ##
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
19475 printf %s "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
19476 saved_CC=$CC
19477 saved_CFLAGS=$CFLAGS
19478 CC=$MPI_CC
19479 CFLAGS="$CFLAGS_MPI $mflag_primary"
19480 saved_LDFLAGS="$LDFLAGS"
19481 LDFLAGS="$LDFLAGS_MPI $mflag_primary"
19482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19483 /* end confdefs.h. */
19484
19485 #include <mpi.h>
19486 #include <stdio.h>
19487
19488 int
19489 main (void)
19490 {
19491
19492 int ni, na, nd, comb;
19493 int r = MPI_Init(NULL,NULL);
19494 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb );
19495 r |= MPI_Finalize();
19496 return r;
19497
19498 ;
19499 return 0;
19500 }
19501 _ACEOF
19502 if ac_fn_c_try_link "$LINENO"
19503 then :
19504
19505 ac_have_mpi2_pri=yes
19506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
19507 printf "%s\n" "yes, $MPI_CC" >&6; }
19508
19509 else case e in #(
19510 e)
19511 ac_have_mpi2_pri=no
19512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513 printf "%s\n" "no" >&6; }
19514 ;;
19515 esac
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19518 conftest$ac_exeext conftest.$ac_ext
19519 CC=$saved_CC
19520 CFLAGS=$saved_CFLAGS
19521 LDFLAGS="$saved_LDFLAGS"
19522 if test x$ac_have_mpi2_pri = xyes; then
19523 BUILD_MPIWRAP_PRI_TRUE=
19524 BUILD_MPIWRAP_PRI_FALSE='#'
19525 else
19526 BUILD_MPIWRAP_PRI_TRUE='#'
19527 BUILD_MPIWRAP_PRI_FALSE=
19528 fi
19529
19530
19531 ## See if MPI_CC works for the secondary target. Complication: what if
19532 ## there is no secondary target? We need this to then fail.
19533 ## Kludge this by making MPI_CC something which will surely fail in
19534 ## such a case.
19535 ##
19536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
19537 printf %s "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
19538 saved_CC=$CC
19539 saved_CFLAGS=$CFLAGS
19540 saved_LDFLAGS="$LDFLAGS"
19541 LDFLAGS="$LDFLAGS_MPI $mflag_secondary"
19542 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
19543 CC="$MPI_CC this will surely fail"
19544 else
19545 CC=$MPI_CC
19546 fi
19547 CFLAGS="$CFLAGS_MPI $mflag_secondary"
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550
19551 #include <mpi.h>
19552 #include <stdio.h>
19553
19554 int
19555 main (void)
19556 {
19557
19558 int ni, na, nd, comb;
19559 int r = MPI_Init(NULL,NULL);
19560 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb );
19561 r |= MPI_Finalize();
19562 return r;
19563
19564 ;
19565 return 0;
19566 }
19567 _ACEOF
19568 if ac_fn_c_try_link "$LINENO"
19569 then :
19570
19571 ac_have_mpi2_sec=yes
19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
19573 printf "%s\n" "yes, $MPI_CC" >&6; }
19574
19575 else case e in #(
19576 e)
19577 ac_have_mpi2_sec=no
19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19579 printf "%s\n" "no" >&6; }
19580 ;;
19581 esac
19582 fi
19583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19584 conftest$ac_exeext conftest.$ac_ext
19585 CC=$saved_CC
19586 CFLAGS=$saved_CFLAGS
19587 LDFLAGS="$saved_LDFLAGS"
19588 if test x$ac_have_mpi2_sec = xyes; then
19589 BUILD_MPIWRAP_SEC_TRUE=
19590 BUILD_MPIWRAP_SEC_FALSE='#'
19591 else
19592 BUILD_MPIWRAP_SEC_TRUE='#'
19593 BUILD_MPIWRAP_SEC_FALSE=
19594 fi
19595
19596
19597 #----------------------------------------------------------------------------
19598 # static libc check
19599 #----------------------------------------------------------------------------
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if static libc is available" >&5
19601 printf %s "checking if static libc is available... " >&6; }
19602
19603 saved_LDFLAGS="$LDFLAGS"
19604 LDFLAGS="-nostdlib -lc -static"
19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606 /* end confdefs.h. */
19607
19608 int main(void)
19609 {
19610 }
19611
19612 _ACEOF
19613 if ac_fn_c_try_link "$LINENO"
19614 then :
19615
19616 ac_have_static_libc=yes
19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19618 printf "%s\n" "yes" >&6; }
19619
19620 else case e in #(
19621 e)
19622 ac_have_static_libc=no
19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19624 printf "%s\n" "no" >&6; }
19625 ;;
19626 esac
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19629 conftest$ac_exeext conftest.$ac_ext
19630 LDFLAGS="$saved_LDFLAGS"
19631 if test x$ac_have_static_libc = xyes; then
19632 HAVE_STATIC_LIBC_TRUE=
19633 HAVE_STATIC_LIBC_FALSE='#'
19634 else
19635 HAVE_STATIC_LIBC_TRUE='#'
19636 HAVE_STATIC_LIBC_FALSE=
19637 fi
19638
19639
19640
19641 #----------------------------------------------------------------------------
19642 # Other library checks
19643 #----------------------------------------------------------------------------
19644 # There now follow some tests for Boost, and OpenMP. These
19645 # tests are present because Drd has some regression tests that use
19646 # these packages. All regression test programs all compiled only
19647 # for the primary target. And so it is important that the configure
19648 # checks that follow, use the correct -m32 or -m64 flag for the
19649 # primary target (called $mflag_primary). Otherwise, we can end up
19650 # in a situation (eg) where, on amd64-linux, the test for Boost checks
19651 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
19652 # only build (meaning, the primary target is x86-linux), the build
19653 # of the regtest programs that use Boost fails, because they are
19654 # build as 32-bit (IN THIS EXAMPLE).
19655 #
19656 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
19657 # NEEDED BY THE REGRESSION TEST PROGRAMS.
19658
19659
19660 # Check whether the boost library 1.35 or later has been installed.
19661 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
19662
19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
19664 printf %s "checking for boost... " >&6; }
19665
19666 ac_ext=cpp
19667 ac_cpp='$CXXCPP $CPPFLAGS'
19668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19671
19672 safe_CXXFLAGS=$CXXFLAGS
19673 CXXFLAGS="$mflag_primary"
19674 safe_LIBS="$LIBS"
19675 LIBS="-lboost_thread-mt -lboost_system-mt $LIBS"
19676
19677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19679
19680 #include <boost/thread.hpp>
19681 static void thread_func(void)
19682 { }
19683 int main(int argc, char** argv)
19684 {
19685 boost::thread t(thread_func);
19686 return 0;
19687 }
19688
19689 _ACEOF
19690 if ac_fn_cxx_try_link "$LINENO"
19691 then :
19692
19693 ac_have_boost_1_35=yes
19694
19695 BOOST_LIBS="-lboost_thread-mt -lboost_system-mt"
19696
19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19698 printf "%s\n" "yes" >&6; }
19699
19700 else case e in #(
19701 e)
19702 ac_have_boost_1_35=no
19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19704 printf "%s\n" "no" >&6; }
19705 ;;
19706 esac
19707 fi
19708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19709 conftest$ac_exeext conftest.$ac_ext
19710
19711 LIBS="$safe_LIBS"
19712 CXXFLAGS=$safe_CXXFLAGS
19713 ac_ext=c
19714 ac_cpp='$CPP $CPPFLAGS'
19715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19718
19719
19720 if test x$ac_have_boost_1_35 = xyes; then
19721 HAVE_BOOST_1_35_TRUE=
19722 HAVE_BOOST_1_35_FALSE='#'
19723 else
19724 HAVE_BOOST_1_35_TRUE='#'
19725 HAVE_BOOST_1_35_FALSE=
19726 fi
19727
19728
19729
19730 # does this compiler support -fopenmp, does it have the include file
19731 # <omp.h> and does it have libgomp ?
19732
19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
19734 printf %s "checking for OpenMP... " >&6; }
19735
19736 safe_CFLAGS=$CFLAGS
19737 CFLAGS="-fopenmp $mflag_primary -Werror"
19738
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19741
19742 #include <omp.h>
19743 int main(int argc, char** argv)
19744 {
19745 omp_set_dynamic(0);
19746 return 0;
19747 }
19748
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"
19751 then :
19752
19753 ac_have_openmp=yes
19754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19755 printf "%s\n" "yes" >&6; }
19756
19757 else case e in #(
19758 e)
19759 ac_have_openmp=no
19760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19761 printf "%s\n" "no" >&6; }
19762 ;;
19763 esac
19764 fi
19765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19766 conftest$ac_exeext conftest.$ac_ext
19767 CFLAGS=$safe_CFLAGS
19768
19769 if test x$ac_have_openmp = xyes; then
19770 HAVE_OPENMP_TRUE=
19771 HAVE_OPENMP_FALSE='#'
19772 else
19773 HAVE_OPENMP_TRUE='#'
19774 HAVE_OPENMP_FALSE=
19775 fi
19776
19777
19778
19779 # Check for __builtin_popcount
19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount()" >&5
19781 printf %s "checking for __builtin_popcount()... " >&6; }
19782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19783 /* end confdefs.h. */
19784
19785
19786 int
19787 main (void)
19788 {
19789
19790 __builtin_popcount(2);
19791 return 0;
19792
19793 ;
19794 return 0;
19795 }
19796 _ACEOF
19797 if ac_fn_c_try_link "$LINENO"
19798 then :
19799
19800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19801 printf "%s\n" "yes" >&6; }
19802
19803 printf "%s\n" "#define HAVE_BUILTIN_POPCOUT 1" >>confdefs.h
19804
19805
19806 else case e in #(
19807 e)
19808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 printf "%s\n" "no" >&6; }
19810 ;;
19811 esac
19812 fi
19813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19814 conftest$ac_exeext conftest.$ac_ext
19815
19816 # Check for __builtin_clz
19817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz()" >&5
19818 printf %s "checking for __builtin_clz()... " >&6; }
19819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h. */
19821
19822
19823 int
19824 main (void)
19825 {
19826
19827 __builtin_clz(2);
19828 return 0;
19829
19830 ;
19831 return 0;
19832 }
19833 _ACEOF
19834 if ac_fn_c_try_link "$LINENO"
19835 then :
19836
19837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19838 printf "%s\n" "yes" >&6; }
19839
19840 printf "%s\n" "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
19841
19842
19843 else case e in #(
19844 e)
19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19846 printf "%s\n" "no" >&6; }
19847 ;;
19848 esac
19849 fi
19850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19851 conftest$ac_exeext conftest.$ac_ext
19852
19853 # Check for __builtin_ctz
19854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz()" >&5
19855 printf %s "checking for __builtin_ctz()... " >&6; }
19856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19857 /* end confdefs.h. */
19858
19859
19860 int
19861 main (void)
19862 {
19863
19864 __builtin_ctz(2);
19865 return 0;
19866
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 if ac_fn_c_try_link "$LINENO"
19872 then :
19873
19874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19875 printf "%s\n" "yes" >&6; }
19876
19877 printf "%s\n" "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
19878
19879
19880 else case e in #(
19881 e)
19882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19883 printf "%s\n" "no" >&6; }
19884 ;;
19885 esac
19886 fi
19887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19888 conftest$ac_exeext conftest.$ac_ext
19889
19890 # does this compiler have built-in functions for atomic memory access for the
19891 # primary target ?
19892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the primary target" >&5
19893 printf %s "checking if gcc supports __sync_add_and_fetch for the primary target... " >&6; }
19894
19895 safe_CFLAGS=$CFLAGS
19896 CFLAGS="$mflag_primary"
19897
19898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19899 /* end confdefs.h. */
19900
19901 int
19902 main (void)
19903 {
19904
19905 int variable = 1;
19906 return (__sync_bool_compare_and_swap(&variable, 1, 2)
19907 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
19908
19909 ;
19910 return 0;
19911 }
19912 _ACEOF
19913 if ac_fn_c_try_link "$LINENO"
19914 then :
19915
19916 ac_have_builtin_atomic_primary=yes
19917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19918 printf "%s\n" "yes" >&6; }
19919
19920 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
19921
19922
19923 else case e in #(
19924 e)
19925 ac_have_builtin_atomic_primary=no
19926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19927 printf "%s\n" "no" >&6; }
19928 ;;
19929 esac
19930 fi
19931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19932 conftest$ac_exeext conftest.$ac_ext
19933
19934 CFLAGS=$safe_CFLAGS
19935
19936 if test x$ac_have_builtin_atomic_primary = xyes; then
19937 HAVE_BUILTIN_ATOMIC_TRUE=
19938 HAVE_BUILTIN_ATOMIC_FALSE='#'
19939 else
19940 HAVE_BUILTIN_ATOMIC_TRUE='#'
19941 HAVE_BUILTIN_ATOMIC_FALSE=
19942 fi
19943
19944
19945
19946 # does this compiler have built-in functions for atomic memory access for the
19947 # secondary target ?
19948
19949 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
19950
19951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the secondary target" >&5
19952 printf %s "checking if gcc supports __sync_add_and_fetch for the secondary target... " >&6; }
19953
19954 safe_CFLAGS=$CFLAGS
19955 CFLAGS="$mflag_secondary"
19956
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19959
19960 int
19961 main (void)
19962 {
19963
19964 int variable = 1;
19965 return (__sync_add_and_fetch(&variable, 1) ? 1 : 0)
19966
19967 ;
19968 return 0;
19969 }
19970 _ACEOF
19971 if ac_fn_c_try_link "$LINENO"
19972 then :
19973
19974 ac_have_builtin_atomic_secondary=yes
19975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19976 printf "%s\n" "yes" >&6; }
19977
19978 else case e in #(
19979 e)
19980 ac_have_builtin_atomic_secondary=no
19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19982 printf "%s\n" "no" >&6; }
19983 ;;
19984 esac
19985 fi
19986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19987 conftest$ac_exeext conftest.$ac_ext
19988
19989 CFLAGS=$safe_CFLAGS
19990
19991 fi
19992
19993 if test x$ac_have_builtin_atomic_secondary = xyes; then
19994 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE=
19995 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE='#'
19996 else
19997 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE='#'
19998 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE=
19999 fi
20000
20001
20002 # does this compiler have built-in functions for atomic memory access on
20003 # 64-bit integers for all targets ?
20004
20005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch on uint64_t for all targets" >&5
20006 printf %s "checking if gcc supports __sync_add_and_fetch on uint64_t for all targets... " >&6; }
20007
20008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20009 /* end confdefs.h. */
20010
20011 #include <stdint.h>
20012
20013 int
20014 main (void)
20015 {
20016
20017 uint64_t variable = 1;
20018 return __sync_add_and_fetch(&variable, 1)
20019
20020 ;
20021 return 0;
20022 }
20023 _ACEOF
20024 if ac_fn_c_try_link "$LINENO"
20025 then :
20026
20027 ac_have_builtin_atomic64_primary=yes
20028
20029 else case e in #(
20030 e)
20031 ac_have_builtin_atomic64_primary=no
20032 ;;
20033 esac
20034 fi
20035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20036 conftest$ac_exeext conftest.$ac_ext
20037
20038 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
20039
20040 safe_CFLAGS=$CFLAGS
20041 CFLAGS="$mflag_secondary"
20042
20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20045
20046 #include <stdint.h>
20047
20048 int
20049 main (void)
20050 {
20051
20052 uint64_t variable = 1;
20053 return __sync_add_and_fetch(&variable, 1)
20054
20055 ;
20056 return 0;
20057 }
20058 _ACEOF
20059 if ac_fn_c_try_link "$LINENO"
20060 then :
20061
20062 ac_have_builtin_atomic64_secondary=yes
20063
20064 else case e in #(
20065 e)
20066 ac_have_builtin_atomic64_secondary=no
20067 ;;
20068 esac
20069 fi
20070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20071 conftest$ac_exeext conftest.$ac_ext
20072
20073 CFLAGS=$safe_CFLAGS
20074
20075 fi
20076
20077 if test x$ac_have_builtin_atomic64_primary = xyes && \
20078 test x$VGCONF_PLATFORM_SEC_CAPS = x \
20079 -o x$ac_have_builtin_atomic64_secondary = xyes; then
20080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20081 printf "%s\n" "yes" >&6; }
20082 ac_have_builtin_atomic64=yes
20083 else
20084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 printf "%s\n" "no" >&6; }
20086 ac_have_builtin_atomic64=no
20087 fi
20088
20089 if test x$ac_have_builtin_atomic64 = xyes; then
20090 HAVE_BUILTIN_ATOMIC64_TRUE=
20091 HAVE_BUILTIN_ATOMIC64_FALSE='#'
20092 else
20093 HAVE_BUILTIN_ATOMIC64_TRUE='#'
20094 HAVE_BUILTIN_ATOMIC64_FALSE=
20095 fi
20096
20097
20098
20099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if platform has openat2 syscall" >&5
20100 printf %s "checking if platform has openat2 syscall... " >&6; }
20101
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20104
20105 #include <sys/syscall.h>
20106
20107 int
20108 main (void)
20109 {
20110
20111 return __NR_openat2
20112
20113 ;
20114 return 0;
20115 }
20116 _ACEOF
20117 if ac_fn_c_try_link "$LINENO"
20118 then :
20119
20120 ac_have_openat2=yes
20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20122 printf "%s\n" "yes" >&6; }
20123
20124 else case e in #(
20125 e)
20126 ac_have_openat2=no
20127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20128 printf "%s\n" "no" >&6; }
20129 ;;
20130 esac
20131 fi
20132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20133 conftest$ac_exeext conftest.$ac_ext
20134
20135 if test x$ac_have_openat2 = xyes; then
20136 HAVE_OPENAT2_TRUE=
20137 HAVE_OPENAT2_FALSE='#'
20138 else
20139 HAVE_OPENAT2_TRUE='#'
20140 HAVE_OPENAT2_FALSE=
20141 fi
20142
20143
20144 # check for crypto
20145
20146 safe_LIBS="$LIBS"
20147 LIBS="-lcrypto"
20148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if platform has openssl crypto" >&5
20149 printf %s "checking if platform has openssl crypto... " >&6; }
20150
20151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20152 /* end confdefs.h. */
20153
20154 #include <openssl/crypto.h>
20155
20156 int
20157 main (void)
20158 {
20159
20160 CRYPTO_secure_malloc_init(1<<20, 8);
20161
20162 ;
20163 return 0;
20164 }
20165 _ACEOF
20166 if ac_fn_c_try_link "$LINENO"
20167 then :
20168
20169 ac_have_openssl=yes
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20171 printf "%s\n" "yes" >&6; }
20172
20173 else case e in #(
20174 e)
20175 ac_have_openssl=no
20176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177 printf "%s\n" "no" >&6; }
20178 ;;
20179 esac
20180 fi
20181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20182 conftest$ac_exeext conftest.$ac_ext
20183 LIBS=$safe_LIBS
20184
20185 if test x$ac_have_openssl = xyes; then
20186 HAVE_OPENSSL_TRUE=
20187 HAVE_OPENSSL_FALSE='#'
20188 else
20189 HAVE_OPENSSL_TRUE='#'
20190 HAVE_OPENSSL_FALSE=
20191 fi
20192
20193
20194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if platform has aio_readv" >&5
20195 printf %s "checking if platform has aio_readv... " >&6; }
20196
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20199
20200 #include <aio.h>
20201 #include <stdlib.h>
20202
20203 int
20204 main (void)
20205 {
20206
20207 aio_readv(NULL);
20208
20209 ;
20210 return 0;
20211 }
20212 _ACEOF
20213 if ac_fn_c_try_link "$LINENO"
20214 then :
20215
20216 ac_have_aio_readv=yes
20217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20218 printf "%s\n" "yes" >&6; }
20219
20220
20221 else case e in #(
20222 e)
20223 ac_have_aio_readv=no
20224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20225 printf "%s\n" "no" >&6; }
20226 ;;
20227 esac
20228 fi
20229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20230 conftest$ac_exeext conftest.$ac_ext
20231
20232 if test x$ac_have_aio_readv = xyes; then
20233 HAVE_AIO_READV_TRUE=
20234 HAVE_AIO_READV_FALSE='#'
20235 else
20236 HAVE_AIO_READV_TRUE='#'
20237 HAVE_AIO_READV_FALSE=
20238 fi
20239
20240
20241 # does g++ have built-in functions for atomic memory access ?
20242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_add_and_fetch" >&5
20243 printf %s "checking if g++ supports __sync_add_and_fetch... " >&6; }
20244
20245 safe_CXXFLAGS=$CXXFLAGS
20246 CXXFLAGS="$mflag_primary"
20247
20248 ac_ext=cpp
20249 ac_cpp='$CXXCPP $CPPFLAGS'
20250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20253
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256
20257 int
20258 main (void)
20259 {
20260
20261 int variable = 1;
20262 return (__sync_bool_compare_and_swap(&variable, 1, 2)
20263 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
20264
20265 ;
20266 return 0;
20267 }
20268 _ACEOF
20269 if ac_fn_cxx_try_link "$LINENO"
20270 then :
20271
20272 ac_have_builtin_atomic_cxx=yes
20273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20274 printf "%s\n" "yes" >&6; }
20275
20276 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
20277
20278
20279 else case e in #(
20280 e)
20281 ac_have_builtin_atomic_cxx=no
20282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283 printf "%s\n" "no" >&6; }
20284 ;;
20285 esac
20286 fi
20287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20288 conftest$ac_exeext conftest.$ac_ext
20289 ac_ext=c
20290 ac_cpp='$CPP $CPPFLAGS'
20291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20294
20295
20296 CXXFLAGS=$safe_CXXFLAGS
20297
20298 if test x$ac_have_builtin_atomic_cxx = xyes; then
20299 HAVE_BUILTIN_ATOMIC_CXX_TRUE=
20300 HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
20301 else
20302 HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
20303 HAVE_BUILTIN_ATOMIC_CXX_FALSE=
20304 fi
20305
20306
20307
20308 if test x$ac_have_usable_linux_futex_h = xyes \
20309 -a x$ac_have_builtin_atomic_primary = xyes; then
20310 ac_enable_linux_ticket_lock_primary=yes
20311 fi
20312 if test x$ac_enable_linux_ticket_lock_primary = xyes; then
20313 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE=
20314 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE='#'
20315 else
20316 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE='#'
20317 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE=
20318 fi
20319
20320
20321 if test x$VGCONF_PLATFORM_SEC_CAPS != x \
20322 -a x$ac_have_usable_linux_futex_h = xyes \
20323 -a x$ac_have_builtin_atomic_secondary = xyes; then
20324 ac_enable_linux_ticket_lock_secondary=yes
20325 fi
20326 if test x$ac_enable_linux_ticket_lock_secondary = xyes; then
20327 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE=
20328 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE='#'
20329 else
20330 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE='#'
20331 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE=
20332 fi
20333
20334
20335
20336 # does libstdc++ support annotating shared pointers ?
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libstdc++ supports annotating shared pointers" >&5
20338 printf %s "checking if libstdc++ supports annotating shared pointers... " >&6; }
20339
20340 safe_CXXFLAGS=$CXXFLAGS
20341 CXXFLAGS="-std=c++0x"
20342
20343 ac_ext=cpp
20344 ac_cpp='$CXXCPP $CPPFLAGS'
20345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20348
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351
20352 #include <memory>
20353
20354 int
20355 main (void)
20356 {
20357
20358 std::shared_ptr<int> p
20359
20360 ;
20361 return 0;
20362 }
20363 _ACEOF
20364 if ac_fn_cxx_try_link "$LINENO"
20365 then :
20366
20367 ac_have_shared_ptr=yes
20368
20369 else case e in #(
20370 e)
20371 ac_have_shared_ptr=no
20372 ;;
20373 esac
20374 fi
20375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20376 conftest$ac_exeext conftest.$ac_ext
20377 if test x$ac_have_shared_ptr = xyes; then
20378 # If compilation of the program below fails because of a syntax error
20379 # triggered by substituting one of the annotation macros then that
20380 # means that libstdc++ supports these macros.
20381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20382 /* end confdefs.h. */
20383
20384 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(a) (a)----
20385 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(a) (a)----
20386 #include <memory>
20387
20388 int
20389 main (void)
20390 {
20391
20392 std::shared_ptr<int> p
20393
20394 ;
20395 return 0;
20396 }
20397 _ACEOF
20398 if ac_fn_cxx_try_link "$LINENO"
20399 then :
20400
20401 ac_have_shared_pointer_annotation=no
20402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20403 printf "%s\n" "no" >&6; }
20404
20405 else case e in #(
20406 e)
20407 ac_have_shared_pointer_annotation=yes
20408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20409 printf "%s\n" "yes" >&6; }
20410
20411 printf "%s\n" "#define HAVE_SHARED_POINTER_ANNOTATION 1" >>confdefs.h
20412
20413 ;;
20414 esac
20415 fi
20416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20417 conftest$ac_exeext conftest.$ac_ext
20418 else
20419 ac_have_shared_pointer_annotation=no
20420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20421 printf "%s\n" "no" >&6; }
20422 fi
20423 ac_ext=c
20424 ac_cpp='$CPP $CPPFLAGS'
20425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20428
20429
20430 CXXFLAGS=$safe_CXXFLAGS
20431
20432 if test x$ac_have_shared_pointer_annotation = xyes; then
20433 HAVE_SHARED_POINTER_ANNOTATION_TRUE=
20434 HAVE_SHARED_POINTER_ANNOTATION_FALSE='#'
20435 else
20436 HAVE_SHARED_POINTER_ANNOTATION_TRUE='#'
20437 HAVE_SHARED_POINTER_ANNOTATION_FALSE=
20438 fi
20439
20440
20441 # checking for GNU libc C17 aligned_alloc
20442 # just check glibc version rather than trying to muck around
20443 # checking the runtime behaviour or seeing if it is a weak alias
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AT_GNU_LIBC_C17_ALIGNED_ALLOC" >&5
20445 printf %s "checking for AT_GNU_LIBC_C17_ALIGNED_ALLOC... " >&6; }
20446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h. */
20448
20449 #include <features.h>
20450
20451 int
20452 main (void)
20453 {
20454
20455 #if !defined(__GLIBC__) || __GLIBC__ != 2 || !defined(__GLIBC_MINOR__) || __GLIBC_MINOR__ < 38
20456 #error "not GNU libc 2.38 or later"
20457 #endif
20458
20459 ;
20460 return 0;
20461 }
20462 _ACEOF
20463 if ac_fn_c_try_compile "$LINENO"
20464 then :
20465
20466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20467 printf "%s\n" "yes" >&6; }
20468
20469 printf "%s\n" "#define HAVE_GNU_LIBC_C17_ALIGNED_ALLOC 1" >>confdefs.h
20470
20471
20472
20473 else case e in #(
20474 e)
20475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20476 printf "%s\n" "no" >&6; }
20477 ;;
20478 esac
20479 fi
20480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20481
20482 # Check for C11 thrd_create()
20483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create()" >&5
20484 printf %s "checking for thrd_create()... " >&6; }
20485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h. */
20487
20488 #include <threads.h>
20489 int thrd_entry(void *arg) { return 0; }
20490
20491 int
20492 main (void)
20493 {
20494 thrd_t thr; return thrd_create(&thr, thrd_entry, NULL);
20495 ;
20496 return 0;
20497 }
20498 _ACEOF
20499 if ac_fn_c_try_compile "$LINENO"
20500 then :
20501
20502 ac_cxx_have_thrd_create=yes
20503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20504 printf "%s\n" "yes" >&6; }
20505
20506 else case e in #(
20507 e)
20508 ac_cxx_have_thrd_create=no
20509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20510 printf "%s\n" "no" >&6; }
20511 ;;
20512 esac
20513 fi
20514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20515
20516 if test x$ac_cxx_have_thrd_create = xyes; then
20517 HAVE_THRD_CREATE_TRUE=
20518 HAVE_THRD_CREATE_FALSE='#'
20519 else
20520 HAVE_THRD_CREATE_TRUE='#'
20521 HAVE_THRD_CREATE_FALSE=
20522 fi
20523
20524
20525
20526 # Check arm64 sha3
20527 safe_CFLAGS=$CFLAGS
20528 CFLAGS="${CFLAGS} -march=armv8.2-a+sha3"
20529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sha3" >&5
20530 printf %s "checking for sha3... " >&6; }
20531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h. */
20533
20534 int
20535 main (void)
20536 {
20537
20538 return 0;
20539
20540 ;
20541 return 0;
20542 }
20543 _ACEOF
20544 if ac_fn_c_try_compile "$LINENO"
20545 then :
20546
20547 ac_have_sha3=yes
20548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20549 printf "%s\n" "yes" >&6; }
20550
20551 else case e in #(
20552 e)
20553 ac_have_sha3=no
20554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20555 printf "%s\n" "no" >&6; }
20556 ;;
20557 esac
20558 fi
20559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20560
20561 if test x$ac_have_sha3 = xyes; then
20562 HAVE_SHA3_TRUE=
20563 HAVE_SHA3_FALSE='#'
20564 else
20565 HAVE_SHA3_TRUE='#'
20566 HAVE_SHA3_FALSE=
20567 fi
20568
20569 CFLAGS=$safe_CFLAGS
20570
20571 #----------------------------------------------------------------------------
20572 # Ok. We're done checking.
20573 #----------------------------------------------------------------------------
20574
20575 # Nb: VEX/Makefile is generated from Makefile.vex.in.
20576 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp glibc-2.X-helgrind.supp glibc-2.X-drd.supp include/valgrind.h docs/Makefile docs/xml/vg-entities.xml tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf gdbserver_tests/Makefile gdbserver_tests/solaris/Makefile include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/common/Makefile memcheck/tests/amd64/Makefile memcheck/tests/arm64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/linux/debuginfod-check.vgtest memcheck/tests/darwin/Makefile memcheck/tests/solaris/Makefile memcheck/tests/freebsd/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/arm64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/tests/riscv64-linux/Makefile memcheck/tests/amd64-solaris/Makefile memcheck/tests/x86-solaris/Makefile memcheck/tests/amd64-freebsd/Makefile memcheck/tests/x86-freebsd/Makefile memcheck/tests/ppc32/Makefile memcheck/tests/ppc64/Makefile memcheck/tests/s390x/Makefile memcheck/tests/mips32/Makefile memcheck/tests/mips64/Makefile memcheck/tests/vbit-test/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate cachegrind/cg_diff cachegrind/cg_merge callgrind/Makefile callgrind/callgrind_annotate callgrind/callgrind_control callgrind/tests/Makefile helgrind/Makefile helgrind/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile massif/Makefile massif/tests/Makefile massif/ms_print dhat/Makefile dhat/tests/Makefile lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/scripts/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/arm64/Makefile none/tests/s390x/Makefile none/tests/s390x/disasm-test/Makefile none/tests/mips32/Makefile none/tests/mips64/Makefile none/tests/nanomips/Makefile none/tests/riscv64/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/solaris/Makefile none/tests/freebsd/Makefile none/tests/amd64-linux/Makefile none/tests/x86-linux/Makefile none/tests/amd64-darwin/Makefile none/tests/x86-darwin/Makefile none/tests/amd64-solaris/Makefile none/tests/x86-solaris/Makefile none/tests/x86-freebsd/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile exp-bbv/tests/arm-linux/Makefile shared/Makefile solaris/Makefile"
20577
20578 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
20579
20580 ac_config_files="$ac_config_files coregrind/link_tool_exe_freebsd"
20581
20582 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
20583
20584 ac_config_files="$ac_config_files coregrind/link_tool_exe_solaris"
20585
20586 ac_config_files="$ac_config_files tests/filter_stderr_basic"
20587
20588 ac_config_files="$ac_config_files tests/filter_discards"
20589
20590 ac_config_files="$ac_config_files memcheck/tests/filter_stderr"
20591
20592 ac_config_files="$ac_config_files memcheck/tests/filter_dw4"
20593
20594 ac_config_files="$ac_config_files memcheck/tests/filter_overlaperror"
20595
20596 ac_config_files="$ac_config_files memcheck/tests/filter_supp"
20597
20598 ac_config_files="$ac_config_files memcheck/tests/x86/filter_pushfpopf"
20599
20600 ac_config_files="$ac_config_files gdbserver_tests/filter_gdb"
20601
20602 ac_config_files="$ac_config_files gdbserver_tests/filter_memcheck_monitor"
20603
20604 ac_config_files="$ac_config_files gdbserver_tests/filter_stderr"
20605
20606 ac_config_files="$ac_config_files gdbserver_tests/filter_vgdb"
20607
20608 ac_config_files="$ac_config_files drd/tests/filter_stderr"
20609
20610 ac_config_files="$ac_config_files drd/tests/filter_error_count"
20611
20612 ac_config_files="$ac_config_files drd/tests/filter_error_summary"
20613
20614 ac_config_files="$ac_config_files drd/tests/filter_stderr_and_thread_no_and_offset"
20615
20616 ac_config_files="$ac_config_files drd/tests/filter_thread_no"
20617
20618 ac_config_files="$ac_config_files drd/tests/filter_xml_and_thread_no"
20619
20620 ac_config_files="$ac_config_files helgrind/tests/filter_stderr"
20621
20622 cat >confcache <<\_ACEOF
20623 # This file is a shell script that caches the results of configure
20624 # tests run on this system so they can be shared between configure
20625 # scripts and configure runs, see configure's option --config-cache.
20626 # It is not useful on other systems. If it contains results you don't
20627 # want to keep, you may remove or edit it.
20628 #
20629 # config.status only pays attention to the cache file if you give it
20630 # the --recheck option to rerun configure.
20631 #
20632 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20633 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20634 # following values.
20635
20636 _ACEOF
20637
20638 # The following way of writing the cache mishandles newlines in values,
20639 # but we know of no workaround that is simple, portable, and efficient.
20640 # So, we kill variables containing newlines.
20641 # Ultrix sh set writes to stderr and can't be redirected directly,
20642 # and sets the high bit in the cache file unless we assign to the vars.
20643 (
20644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20645 eval ac_val=\$$ac_var
20646 case $ac_val in #(
20647 *${as_nl}*)
20648 case $ac_var in #(
20649 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20650 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20651 esac
20652 case $ac_var in #(
20653 _ | IFS | as_nl) ;; #(
20654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20655 *) { eval $ac_var=; unset $ac_var;} ;;
20656 esac ;;
20657 esac
20658 done
20659
20660 (set) 2>&1 |
20661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20662 *${as_nl}ac_space=\ *)
20663 # 'set' does not quote correctly, so add quotes: double-quote
20664 # substitution turns \\\\ into \\, and sed turns \\ into \.
20665 sed -n \
20666 "s/'/'\\\\''/g;
20667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20668 ;; #(
20669 *)
20670 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20672 ;;
20673 esac |
20674 sort
20675 ) |
20676 sed '
20677 /^ac_cv_env_/b end
20678 t clear
20679 :clear
20680 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20681 t end
20682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20683 :end' >>confcache
20684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20685 if test -w "$cache_file"; then
20686 if test "x$cache_file" != "x/dev/null"; then
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20688 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20689 if test ! -f "$cache_file" || test -h "$cache_file"; then
20690 cat confcache >"$cache_file"
20691 else
20692 case $cache_file in #(
20693 */* | ?:*)
20694 mv -f confcache "$cache_file"$$ &&
20695 mv -f "$cache_file"$$ "$cache_file" ;; #(
20696 *)
20697 mv -f confcache "$cache_file" ;;
20698 esac
20699 fi
20700 fi
20701 else
20702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20703 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20704 fi
20705 fi
20706 rm -f confcache
20707
20708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20709 # Let make expand exec_prefix.
20710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20711
20712 DEFS=-DHAVE_CONFIG_H
20713
20714 ac_libobjs=
20715 ac_ltlibobjs=
20716 U=
20717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20718 # 1. Remove the extension, and $U if already installed.
20719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20720 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20722 # will be set to the directory where LIBOBJS objects are built.
20723 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20724 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20725 done
20726 LIBOBJS=$ac_libobjs
20727
20728 LTLIBOBJS=$ac_ltlibobjs
20729
20730
20731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20732 printf %s "checking that generated files are newer than configure... " >&6; }
20733 if test -n "$am_sleep_pid"; then
20734 # Hide warnings about reused PIDs.
20735 wait $am_sleep_pid 2>/dev/null
20736 fi
20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20738 printf "%s\n" "done" >&6; }
20739 case $enable_silent_rules in # (((
20740 yes) AM_DEFAULT_VERBOSITY=0;;
20741 no) AM_DEFAULT_VERBOSITY=1;;
20742 esac
20743 if test $am_cv_make_support_nested_variables = yes; then
20744 AM_V='$(V)'
20745 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20746 else
20747 AM_V=$AM_DEFAULT_VERBOSITY
20748 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20749 fi
20750
20751 if test -n "$EXEEXT"; then
20752 am__EXEEXT_TRUE=
20753 am__EXEEXT_FALSE='#'
20754 else
20755 am__EXEEXT_TRUE='#'
20756 am__EXEEXT_FALSE=
20757 fi
20758
20759 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20760 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20762 fi
20763 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20764 as_fn_error $? "conditional \"AMDEP\" was never defined.
20765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20766 fi
20767 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20768 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20770 fi
20771 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20772 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20774 fi
20775 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20776 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
20777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20778 fi
20779 if test -z "${COMPILER_IS_CLANG_TRUE}" && test -z "${COMPILER_IS_CLANG_FALSE}"; then
20780 as_fn_error $? "conditional \"COMPILER_IS_CLANG\" was never defined.
20781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20782 fi
20783 if test -z "${COMPILER_IS_ICC_TRUE}" && test -z "${COMPILER_IS_ICC_FALSE}"; then
20784 as_fn_error $? "conditional \"COMPILER_IS_ICC\" was never defined.
20785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20786 fi
20787 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
20788 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
20789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20790 fi
20791 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
20792 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
20793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20794 fi
20795 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
20796 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
20797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20798 fi
20799 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
20800 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
20801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20802 fi
20803 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
20804 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
20805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20806 fi
20807 if test -z "${VGCONF_ARCHS_INCLUDE_ARM64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM64_FALSE}"; then
20808 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM64\" was never defined.
20809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20810 fi
20811 if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
20812 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
20813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20814 fi
20815 if test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_FALSE}"; then
20816 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS32\" was never defined.
20817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20818 fi
20819 if test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_FALSE}"; then
20820 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS64\" was never defined.
20821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20822 fi
20823 if test -z "${VGCONF_ARCHS_INCLUDE_NANOMIPS_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_NANOMIPS_FALSE}"; then
20824 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_NANOMIPS\" was never defined.
20825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20826 fi
20827 if test -z "${VGCONF_ARCHS_INCLUDE_RISCV64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_RISCV64_FALSE}"; then
20828 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_RISCV64\" was never defined.
20829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20830 fi
20831 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
20832 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
20833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20834 fi
20835 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
20836 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
20837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20838 fi
20839 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
20840 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
20841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20842 fi
20843 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE}"; then
20844 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX\" was never defined.
20845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20846 fi
20847 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE}"; then
20848 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX\" was never defined.
20849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20850 fi
20851 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
20852 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
20853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20854 fi
20855 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE}"; then
20856 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX\" was never defined.
20857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20858 fi
20859 if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
20860 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
20861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20862 fi
20863 if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE}"; then
20864 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX\" was never defined.
20865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20866 fi
20867 if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE}"; then
20868 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX\" was never defined.
20869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20870 fi
20871 if test -z "${VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX_FALSE}"; then
20872 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_NANOMIPS_LINUX\" was never defined.
20873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20874 fi
20875 if test -z "${VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX_FALSE}"; then
20876 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_RISCV64_LINUX\" was never defined.
20877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20878 fi
20879 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD_FALSE}"; then
20880 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD\" was never defined.
20881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20882 fi
20883 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD_FALSE}"; then
20884 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD\" was never defined.
20885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20886 fi
20887 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD_FALSE}"; then
20888 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM64_FREEBSD\" was never defined.
20889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20890 fi
20891 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
20892 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
20893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20894 fi
20895 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
20896 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
20897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20898 fi
20899 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE}"; then
20900 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS\" was never defined.
20901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20902 fi
20903 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE}"; then
20904 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS\" was never defined.
20905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20906 fi
20907 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
20908 as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
20909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20910 fi
20911 if test -z "${VGCONF_OS_IS_FREEBSD_TRUE}" && test -z "${VGCONF_OS_IS_FREEBSD_FALSE}"; then
20912 as_fn_error $? "conditional \"VGCONF_OS_IS_FREEBSD\" was never defined.
20913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20914 fi
20915 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
20916 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
20917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20918 fi
20919 if test -z "${VGCONF_OS_IS_SOLARIS_TRUE}" && test -z "${VGCONF_OS_IS_SOLARIS_FALSE}"; then
20920 as_fn_error $? "conditional \"VGCONF_OS_IS_SOLARIS\" was never defined.
20921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20922 fi
20923 if test -z "${VGCONF_OS_IS_DARWIN_OR_FREEBSD_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_OR_FREEBSD_FALSE}"; then
20924 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN_OR_FREEBSD\" was never defined.
20925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20926 fi
20927 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
20928 as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
20929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20930 fi
20931 if test -z "${GDBSCRIPTS_TRUE}" && test -z "${GDBSCRIPTS_FALSE}"; then
20932 as_fn_error $? "conditional \"GDBSCRIPTS\" was never defined.
20933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20934 fi
20935 if test -z "${GDBSCRIPTS_TRUE}" && test -z "${GDBSCRIPTS_FALSE}"; then
20936 as_fn_error $? "conditional \"GDBSCRIPTS\" was never defined.
20937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20938 fi
20939 if test -z "${VGCONF_PLATVARIANT_IS_VANILLA_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_VANILLA_FALSE}"; then
20940 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined.
20941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20942 fi
20943 if test -z "${VGCONF_PLATVARIANT_IS_ANDROID_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_ANDROID_FALSE}"; then
20944 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined.
20945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20946 fi
20947 if test -z "${HAVE_AT_FDCWD_TRUE}" && test -z "${HAVE_AT_FDCWD_FALSE}"; then
20948 as_fn_error $? "conditional \"HAVE_AT_FDCWD\" was never defined.
20949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20950 fi
20951 if test -z "${HAVE_GNU_STPNCPY_TRUE}" && test -z "${HAVE_GNU_STPNCPY_FALSE}"; then
20952 as_fn_error $? "conditional \"HAVE_GNU_STPNCPY\" was never defined.
20953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20954 fi
20955 if test -z "${HAS_ISA_2_05_TRUE}" && test -z "${HAS_ISA_2_05_FALSE}"; then
20956 as_fn_error $? "conditional \"HAS_ISA_2_05\" was never defined.
20957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20958 fi
20959 if test -z "${HAS_ISA_2_06_TRUE}" && test -z "${HAS_ISA_2_06_FALSE}"; then
20960 as_fn_error $? "conditional \"HAS_ISA_2_06\" was never defined.
20961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20962 fi
20963 if test -z "${HAS_ISA_2_07_TRUE}" && test -z "${HAS_ISA_2_07_FALSE}"; then
20964 as_fn_error $? "conditional \"HAS_ISA_2_07\" was never defined.
20965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20966 fi
20967 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
20968 as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
20969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20970 fi
20971 if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
20972 as_fn_error $? "conditional \"HAS_VSX\" was never defined.
20973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20974 fi
20975 if test -z "${HAS_DFP_TRUE}" && test -z "${HAS_DFP_FALSE}"; then
20976 as_fn_error $? "conditional \"HAS_DFP\" was never defined.
20977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20978 fi
20979 if test -z "${BUILD_DFP_TESTS_TRUE}" && test -z "${BUILD_DFP_TESTS_FALSE}"; then
20980 as_fn_error $? "conditional \"BUILD_DFP_TESTS\" was never defined.
20981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20982 fi
20983 if test -z "${SUPPORTS_HTM_TRUE}" && test -z "${SUPPORTS_HTM_FALSE}"; then
20984 as_fn_error $? "conditional \"SUPPORTS_HTM\" was never defined.
20985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20986 fi
20987 if test -z "${HAS_ISA_3_00_TRUE}" && test -z "${HAS_ISA_3_00_FALSE}"; then
20988 as_fn_error $? "conditional \"HAS_ISA_3_00\" was never defined.
20989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20990 fi
20991 if test -z "${HAS_XSCVHPDP_TRUE}" && test -z "${HAS_XSCVHPDP_FALSE}"; then
20992 as_fn_error $? "conditional \"HAS_XSCVHPDP\" was never defined.
20993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20994 fi
20995 if test -z "${HAS_DARN_TRUE}" && test -z "${HAS_DARN_FALSE}"; then
20996 as_fn_error $? "conditional \"HAS_DARN\" was never defined.
20997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20998 fi
20999 if test -z "${HAS_ISA_3_1_TRUE}" && test -z "${HAS_ISA_3_1_FALSE}"; then
21000 as_fn_error $? "conditional \"HAS_ISA_3_1\" was never defined.
21001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21002 fi
21003 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
21004 as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
21005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21006 fi
21007 if test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE}" && test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE}"; then
21008 as_fn_error $? "conditional \"HAVE_DLINFO_RTLD_DI_TLS_MODID\" was never defined.
21009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21010 fi
21011 if test -z "${HAVE_CXX17_TRUE}" && test -z "${HAVE_CXX17_FALSE}"; then
21012 as_fn_error $? "conditional \"HAVE_CXX17\" was never defined.
21013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21014 fi
21015 if test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_TRUE}" && test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_FALSE}"; then
21016 as_fn_error $? "conditional \"CXX_CAN_INCLUDE_THREAD_HEADER\" was never defined.
21017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21018 fi
21019 if test -z "${CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_TRUE}" && test -z "${CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER_FALSE}"; then
21020 as_fn_error $? "conditional \"CXX_CAN_INCLUDE_CONDITION_VARIABLE_HEADER\" was never defined.
21021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21022 fi
21023 if test -z "${CXX_CAN_USE_SHARED_TIMED_MUTEX_TRUE}" && test -z "${CXX_CAN_USE_SHARED_TIMED_MUTEX_FALSE}"; then
21024 as_fn_error $? "conditional \"CXX_CAN_USE_SHARED_TIMED_MUTEX\" was never defined.
21025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21026 fi
21027 if test -z "${CXX_CAN_USE_TIMED_MUTEX_TRUE}" && test -z "${CXX_CAN_USE_TIMED_MUTEX_FALSE}"; then
21028 as_fn_error $? "conditional \"CXX_CAN_USE_TIMED_MUTEX\" was never defined.
21029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21030 fi
21031 if test -z "${HAVE_NR_MEMBARRIER_TRUE}" && test -z "${HAVE_NR_MEMBARRIER_FALSE}"; then
21032 as_fn_error $? "conditional \"HAVE_NR_MEMBARRIER\" was never defined.
21033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21034 fi
21035 if test -z "${HAVE_NR_IO_PGETEVENTS_TRUE}" && test -z "${HAVE_NR_IO_PGETEVENTS_FALSE}"; then
21036 as_fn_error $? "conditional \"HAVE_NR_IO_PGETEVENTS\" was never defined.
21037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21038 fi
21039 if test -z "${HAVE_LIBAIO_TRUE}" && test -z "${HAVE_LIBAIO_FALSE}"; then
21040 as_fn_error $? "conditional \"HAVE_LIBAIO\" was never defined.
21041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21042 fi
21043 if test -z "${VGCONF_HAVE_ABI_TRUE}" && test -z "${VGCONF_HAVE_ABI_FALSE}"; then
21044 as_fn_error $? "conditional \"VGCONF_HAVE_ABI\" was never defined.
21045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21046 fi
21047 if test -z "${HAS_MLONG_DOUBLE_128_TRUE}" && test -z "${HAS_MLONG_DOUBLE_128_FALSE}"; then
21048 as_fn_error $? "conditional \"HAS_MLONG_DOUBLE_128\" was never defined.
21049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21050 fi
21051 if test -z "${HAVE_FSIZED_DEALLOCATION_TRUE}" && test -z "${HAVE_FSIZED_DEALLOCATION_FALSE}"; then
21052 as_fn_error $? "conditional \"HAVE_FSIZED_DEALLOCATION\" was never defined.
21053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21054 fi
21055 if test -z "${HAVE_ALIGNED_CXX_ALLOC_TRUE}" && test -z "${HAVE_ALIGNED_CXX_ALLOC_FALSE}"; then
21056 as_fn_error $? "conditional \"HAVE_ALIGNED_CXX_ALLOC\" was never defined.
21057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21058 fi
21059 if test -z "${DWARF4_TRUE}" && test -z "${DWARF4_FALSE}"; then
21060 as_fn_error $? "conditional \"DWARF4\" was never defined.
21061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21062 fi
21063 if test -z "${GZ_ZLIB_TRUE}" && test -z "${GZ_ZLIB_FALSE}"; then
21064 as_fn_error $? "conditional \"GZ_ZLIB\" was never defined.
21065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21066 fi
21067 if test -z "${GZ_ZLIB_GNU_TRUE}" && test -z "${GZ_ZLIB_GNU_FALSE}"; then
21068 as_fn_error $? "conditional \"GZ_ZLIB_GNU\" was never defined.
21069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21070 fi
21071 if test -z "${GZ_ZSTD_TRUE}" && test -z "${GZ_ZSTD_FALSE}"; then
21072 as_fn_error $? "conditional \"GZ_ZSTD\" was never defined.
21073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21074 fi
21075 if test -z "${HAVE_NESTED_FUNCTIONS_TRUE}" && test -z "${HAVE_NESTED_FUNCTIONS_FALSE}"; then
21076 as_fn_error $? "conditional \"HAVE_NESTED_FUNCTIONS\" was never defined.
21077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21078 fi
21079 if test -z "${HAVE_ASM_CONSTRAINT_P_TRUE}" && test -z "${HAVE_ASM_CONSTRAINT_P_FALSE}"; then
21080 as_fn_error $? "conditional \"HAVE_ASM_CONSTRAINT_P\" was never defined.
21081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21082 fi
21083 if test -z "${HAVE_ANSI_TRUE}" && test -z "${HAVE_ANSI_FALSE}"; then
21084 as_fn_error $? "conditional \"HAVE_ANSI\" was never defined.
21085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21086 fi
21087 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
21088 as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
21089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21090 fi
21091 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
21092 as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
21093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21094 fi
21095 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
21096 as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
21097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21098 fi
21099 if test -z "${BUILD_VPCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_VPCLMULQDQ_TESTS_FALSE}"; then
21100 as_fn_error $? "conditional \"BUILD_VPCLMULQDQ_TESTS\" was never defined.
21101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21102 fi
21103 if test -z "${BUILD_FMA4_TESTS_TRUE}" && test -z "${BUILD_FMA4_TESTS_FALSE}"; then
21104 as_fn_error $? "conditional \"BUILD_FMA4_TESTS\" was never defined.
21105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21106 fi
21107 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
21108 as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
21109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21110 fi
21111 if test -z "${BUILD_LOOPNEL_TESTS_TRUE}" && test -z "${BUILD_LOOPNEL_TESTS_FALSE}"; then
21112 as_fn_error $? "conditional \"BUILD_LOOPNEL_TESTS\" was never defined.
21113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21114 fi
21115 if test -z "${BUILD_ADDR32_TESTS_TRUE}" && test -z "${BUILD_ADDR32_TESTS_FALSE}"; then
21116 as_fn_error $? "conditional \"BUILD_ADDR32_TESTS\" was never defined.
21117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21118 fi
21119 if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
21120 as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
21121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21122 fi
21123 if test -z "${BUILD_AVX_TESTS_TRUE}" && test -z "${BUILD_AVX_TESTS_FALSE}"; then
21124 as_fn_error $? "conditional \"BUILD_AVX_TESTS\" was never defined.
21125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21126 fi
21127 if test -z "${BUILD_AVX2_TESTS_TRUE}" && test -z "${BUILD_AVX2_TESTS_FALSE}"; then
21128 as_fn_error $? "conditional \"BUILD_AVX2_TESTS\" was never defined.
21129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21130 fi
21131 if test -z "${BUILD_TSX_TESTS_TRUE}" && test -z "${BUILD_TSX_TESTS_FALSE}"; then
21132 as_fn_error $? "conditional \"BUILD_TSX_TESTS\" was never defined.
21133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21134 fi
21135 if test -z "${BUILD_BMI_TESTS_TRUE}" && test -z "${BUILD_BMI_TESTS_FALSE}"; then
21136 as_fn_error $? "conditional \"BUILD_BMI_TESTS\" was never defined.
21137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21138 fi
21139 if test -z "${BUILD_FMA_TESTS_TRUE}" && test -z "${BUILD_FMA_TESTS_FALSE}"; then
21140 as_fn_error $? "conditional \"BUILD_FMA_TESTS\" was never defined.
21141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21142 fi
21143 if test -z "${BUILD_MPX_TESTS_TRUE}" && test -z "${BUILD_MPX_TESTS_FALSE}"; then
21144 as_fn_error $? "conditional \"BUILD_MPX_TESTS\" was never defined.
21145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21146 fi
21147 if test -z "${BUILD_ADX_TESTS_TRUE}" && test -z "${BUILD_ADX_TESTS_FALSE}"; then
21148 as_fn_error $? "conditional \"BUILD_ADX_TESTS\" was never defined.
21149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21150 fi
21151 if test -z "${BUILD_RDRAND_TESTS_TRUE}" && test -z "${BUILD_RDRAND_TESTS_FALSE}"; then
21152 as_fn_error $? "conditional \"BUILD_RDRAND_TESTS\" was never defined.
21153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21154 fi
21155 if test -z "${BUILD_RDSEED_TESTS_TRUE}" && test -z "${BUILD_RDSEED_TESTS_FALSE}"; then
21156 as_fn_error $? "conditional \"BUILD_RDSEED_TESTS\" was never defined.
21157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21158 fi
21159 if test -z "${BUILD_F16C_TESTS_TRUE}" && test -z "${BUILD_F16C_TESTS_FALSE}"; then
21160 as_fn_error $? "conditional \"BUILD_F16C_TESTS\" was never defined.
21161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21162 fi
21163 if test -z "${BUILD_MOVBE_TESTS_TRUE}" && test -z "${BUILD_MOVBE_TESTS_FALSE}"; then
21164 as_fn_error $? "conditional \"BUILD_MOVBE_TESTS\" was never defined.
21165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21166 fi
21167 if test -z "${BUILD_IFUNC_TESTS_TRUE}" && test -z "${BUILD_IFUNC_TESTS_FALSE}"; then
21168 as_fn_error $? "conditional \"BUILD_IFUNC_TESTS\" was never defined.
21169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21170 fi
21171 if test -z "${BUILD_ARMV8_CRC_TESTS_TRUE}" && test -z "${BUILD_ARMV8_CRC_TESTS_FALSE}"; then
21172 as_fn_error $? "conditional \"BUILD_ARMV8_CRC_TESTS\" was never defined.
21173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21174 fi
21175 if test -z "${BUILD_ARMV81_TESTS_TRUE}" && test -z "${BUILD_ARMV81_TESTS_FALSE}"; then
21176 as_fn_error $? "conditional \"BUILD_ARMV81_TESTS\" was never defined.
21177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21178 fi
21179 if test -z "${BUILD_ARMV82_TESTS_TRUE}" && test -z "${BUILD_ARMV82_TESTS_FALSE}"; then
21180 as_fn_error $? "conditional \"BUILD_ARMV82_TESTS\" was never defined.
21181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21182 fi
21183 if test -z "${BUILD_ARMV82_DOTPROD_TESTS_TRUE}" && test -z "${BUILD_ARMV82_DOTPROD_TESTS_FALSE}"; then
21184 as_fn_error $? "conditional \"BUILD_ARMV82_DOTPROD_TESTS\" was never defined.
21185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21186 fi
21187 if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then
21188 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined.
21189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21190 fi
21191 if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then
21192 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined.
21193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21194 fi
21195 if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then
21196 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined.
21197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21198 fi
21199 if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then
21200 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined.
21201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21202 fi
21203 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then
21204 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined.
21205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21206 fi
21207 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
21208 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
21209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21210 fi
21211 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
21212 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
21213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21214 fi
21215 if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then
21216 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined.
21217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21218 fi
21219 if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then
21220 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined.
21221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21222 fi
21223 if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then
21224 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined.
21225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21226 fi
21227 if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then
21228 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined.
21229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21230 fi
21231 if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then
21232 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined.
21233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21234 fi
21235 if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then
21236 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined.
21237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21238 fi
21239 if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then
21240 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined.
21241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21242 fi
21243 if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then
21244 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined.
21245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21246 fi
21247 if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then
21248 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined.
21249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21250 fi
21251 if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then
21252 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined.
21253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21254 fi
21255 if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then
21256 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined.
21257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21258 fi
21259 if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then
21260 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined.
21261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21262 fi
21263 if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then
21264 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined.
21265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21266 fi
21267 if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then
21268 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined.
21269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21270 fi
21271 if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then
21272 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined.
21273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21274 fi
21275 if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then
21276 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined.
21277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21278 fi
21279 if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then
21280 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined.
21281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21282 fi
21283 if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then
21284 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined.
21285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21286 fi
21287 if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then
21288 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined.
21289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21290 fi
21291 if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then
21292 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined.
21293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21294 fi
21295 if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then
21296 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined.
21297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21298 fi
21299 if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then
21300 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined.
21301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21302 fi
21303 if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then
21304 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined.
21305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21306 fi
21307 if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then
21308 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined.
21309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21310 fi
21311 if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then
21312 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined.
21313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21314 fi
21315 if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then
21316 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined.
21317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21318 fi
21319 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then
21320 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined.
21321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21322 fi
21323 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
21324 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
21325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21326 fi
21327 if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then
21328 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined.
21329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21330 fi
21331 if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then
21332 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined.
21333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21334 fi
21335 if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then
21336 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined.
21337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21338 fi
21339 if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then
21340 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined.
21341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21342 fi
21343 if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then
21344 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined.
21345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21346 fi
21347 if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then
21348 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined.
21349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21350 fi
21351 if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then
21352 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined.
21353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21354 fi
21355 if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then
21356 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined.
21357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21358 fi
21359 if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then
21360 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined.
21361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21362 fi
21363 if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then
21364 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined.
21365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21366 fi
21367 if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then
21368 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined.
21369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21370 fi
21371 if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then
21372 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined.
21373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21374 fi
21375 if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then
21376 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined.
21377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21378 fi
21379 if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then
21380 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined.
21381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21382 fi
21383 if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then
21384 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined.
21385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21386 fi
21387 if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then
21388 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined.
21389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21390 fi
21391 if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then
21392 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined.
21393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21394 fi
21395 if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then
21396 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined.
21397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21398 fi
21399 if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then
21400 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined.
21401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21402 fi
21403 if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then
21404 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined.
21405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21406 fi
21407 if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then
21408 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined.
21409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21410 fi
21411 if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then
21412 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined.
21413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21414 fi
21415 if test -z "${FREEBSD_EVENTFD_TRUE}" && test -z "${FREEBSD_EVENTFD_FALSE}"; then
21416 as_fn_error $? "conditional \"FREEBSD_EVENTFD\" was never defined.
21417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21418 fi
21419 if test -z "${FREEBSD_REALPATHAT_SYSCALL_TRUE}" && test -z "${FREEBSD_REALPATHAT_SYSCALL_FALSE}"; then
21420 as_fn_error $? "conditional \"FREEBSD_REALPATHAT_SYSCALL\" was never defined.
21421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21422 fi
21423 if test -z "${FREEBSD_KQUEUEX_SYSCALL_TRUE}" && test -z "${FREEBSD_KQUEUEX_SYSCALL_FALSE}"; then
21424 as_fn_error $? "conditional \"FREEBSD_KQUEUEX_SYSCALL\" was never defined.
21425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21426 fi
21427 if test -z "${FREEBSD_TIMERFD_SYSCALL_TRUE}" && test -z "${FREEBSD_TIMERFD_SYSCALL_FALSE}"; then
21428 as_fn_error $? "conditional \"FREEBSD_TIMERFD_SYSCALL\" was never defined.
21429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21430 fi
21431 if test -z "${FREEBSD_EVENTFD_TRUE}" && test -z "${FREEBSD_EVENTFD_FALSE}"; then
21432 as_fn_error $? "conditional \"FREEBSD_EVENTFD\" was never defined.
21433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21434 fi
21435 if test -z "${FREEBSD_REALPATHAT_SYSCALL_TRUE}" && test -z "${FREEBSD_REALPATHAT_SYSCALL_FALSE}"; then
21436 as_fn_error $? "conditional \"FREEBSD_REALPATHAT_SYSCALL\" was never defined.
21437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21438 fi
21439 if test -z "${FREEBSD_KQUEUEX_SYSCALL_TRUE}" && test -z "${FREEBSD_KQUEUEX_SYSCALL_FALSE}"; then
21440 as_fn_error $? "conditional \"FREEBSD_KQUEUEX_SYSCALL\" was never defined.
21441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21442 fi
21443 if test -z "${FREEBSD_TIMERFD_SYSCALL_TRUE}" && test -z "${FREEBSD_TIMERFD_SYSCALL_FALSE}"; then
21444 as_fn_error $? "conditional \"FREEBSD_TIMERFD_SYSCALL\" was never defined.
21445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21446 fi
21447 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
21448 as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
21449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21450 fi
21451 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
21452 as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
21453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21454 fi
21455 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
21456 as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
21457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21458 fi
21459 if test -z "${HAVE_PTHREAD_SETNAME_NP_TRUE}" && test -z "${HAVE_PTHREAD_SETNAME_NP_FALSE}"; then
21460 as_fn_error $? "conditional \"HAVE_PTHREAD_SETNAME_NP\" was never defined.
21461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21462 fi
21463 if test -z "${HAVE_COPY_FILE_RANGE_TRUE}" && test -z "${HAVE_COPY_FILE_RANGE_FALSE}"; then
21464 as_fn_error $? "conditional \"HAVE_COPY_FILE_RANGE\" was never defined.
21465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21466 fi
21467 if test -z "${HAVE_PREADV_PWRITEV_TRUE}" && test -z "${HAVE_PREADV_PWRITEV_FALSE}"; then
21468 as_fn_error $? "conditional \"HAVE_PREADV_PWRITEV\" was never defined.
21469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21470 fi
21471 if test -z "${HAVE_PREADV2_PWRITEV2_TRUE}" && test -z "${HAVE_PREADV2_PWRITEV2_FALSE}"; then
21472 as_fn_error $? "conditional \"HAVE_PREADV2_PWRITEV2\" was never defined.
21473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21474 fi
21475 if test -z "${HAVE_SETCONTEXT_TRUE}" && test -z "${HAVE_SETCONTEXT_FALSE}"; then
21476 as_fn_error $? "conditional \"HAVE_SETCONTEXT\" was never defined.
21477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21478 fi
21479 if test -z "${HAVE_SWAPCONTEXT_TRUE}" && test -z "${HAVE_SWAPCONTEXT_FALSE}"; then
21480 as_fn_error $? "conditional \"HAVE_SWAPCONTEXT\" was never defined.
21481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21482 fi
21483 if test -z "${HAVE_MEMFD_CREATE_TRUE}" && test -z "${HAVE_MEMFD_CREATE_FALSE}"; then
21484 as_fn_error $? "conditional \"HAVE_MEMFD_CREATE\" was never defined.
21485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21486 fi
21487 if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
21488 as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
21489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21490 fi
21491 if test -z "${HAVE_CLOSE_RANGE_TRUE}" && test -z "${HAVE_CLOSE_RANGE_FALSE}"; then
21492 as_fn_error $? "conditional \"HAVE_CLOSE_RANGE\" was never defined.
21493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21494 fi
21495 if test -z "${HAVE_REALLOCARRAY_TRUE}" && test -z "${HAVE_REALLOCARRAY_FALSE}"; then
21496 as_fn_error $? "conditional \"HAVE_REALLOCARRAY\" was never defined.
21497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21498 fi
21499 if test -z "${HAVE_WCSNCPY_TRUE}" && test -z "${HAVE_WCSNCPY_FALSE}"; then
21500 as_fn_error $? "conditional \"HAVE_WCSNCPY\" was never defined.
21501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21502 fi
21503 if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then
21504 as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined.
21505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21506 fi
21507 if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then
21508 as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined.
21509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21510 fi
21511 if test -z "${HAVE_FREE_ALIGNED_SIZED_TRUE}" && test -z "${HAVE_FREE_ALIGNED_SIZED_FALSE}"; then
21512 as_fn_error $? "conditional \"HAVE_FREE_ALIGNED_SIZED\" was never defined.
21513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21514 fi
21515 if test -z "${HAVE_SBRK_TRUE}" && test -z "${HAVE_SBRK_FALSE}"; then
21516 as_fn_error $? "conditional \"HAVE_SBRK\" was never defined.
21517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21518 fi
21519 if test -z "${HAVE_WCPNCPY_TRUE}" && test -z "${HAVE_WCPNCPY_FALSE}"; then
21520 as_fn_error $? "conditional \"HAVE_WCPNCPY\" was never defined.
21521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21522 fi
21523 if test -z "${HAVE_WCSXFRM_TRUE}" && test -z "${HAVE_WCSXFRM_FALSE}"; then
21524 as_fn_error $? "conditional \"HAVE_WCSXFRM\" was never defined.
21525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21526 fi
21527 if test -z "${HAVE_SEM_TIMEDWAIT_TRUE}" && test -z "${HAVE_SEM_TIMEDWAIT_FALSE}"; then
21528 as_fn_error $? "conditional \"HAVE_SEM_TIMEDWAIT\" was never defined.
21529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21530 fi
21531 if test -z "${HAVE_SEM_CLOCKWAIT_NP_TRUE}" && test -z "${HAVE_SEM_CLOCKWAIT_NP_FALSE}"; then
21532 as_fn_error $? "conditional \"HAVE_SEM_CLOCKWAIT_NP\" was never defined.
21533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21534 fi
21535 if test -z "${HAVE_FDATASYNC_TRUE}" && test -z "${HAVE_FDATASYNC_FALSE}"; then
21536 as_fn_error $? "conditional \"HAVE_FDATASYNC\" was never defined.
21537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21538 fi
21539 if test -z "${HAVE_GETRANDOM_TRUE}" && test -z "${HAVE_GETRANDOM_FALSE}"; then
21540 as_fn_error $? "conditional \"HAVE_GETRANDOM\" was never defined.
21541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21542 fi
21543 if test -z "${HAVE_GETRLIMITUSAGE_TRUE}" && test -z "${HAVE_GETRLIMITUSAGE_FALSE}"; then
21544 as_fn_error $? "conditional \"HAVE_GETRLIMITUSAGE\" was never defined.
21545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21546 fi
21547 if test -z "${HAVE_TIMER_DELETE_TRUE}" && test -z "${HAVE_TIMER_DELETE_FALSE}"; then
21548 as_fn_error $? "conditional \"HAVE_TIMER_DELETE\" was never defined.
21549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21550 fi
21551 if test -z "${HAVE_FCHROOT_TRUE}" && test -z "${HAVE_FCHROOT_FALSE}"; then
21552 as_fn_error $? "conditional \"HAVE_FCHROOT\" was never defined.
21553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21554 fi
21555 if test -z "${HAVE_SETCRED_TRUE}" && test -z "${HAVE_SETCRED_FALSE}"; then
21556 as_fn_error $? "conditional \"HAVE_SETCRED\" was never defined.
21557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21558 fi
21559 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
21560 as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
21561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21562 fi
21563 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
21564 as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
21565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21566 fi
21567 if test -z "${HAVE_STATIC_LIBC_TRUE}" && test -z "${HAVE_STATIC_LIBC_FALSE}"; then
21568 as_fn_error $? "conditional \"HAVE_STATIC_LIBC\" was never defined.
21569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21570 fi
21571 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
21572 as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
21573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21574 fi
21575 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
21576 as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
21577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21578 fi
21579 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
21580 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
21581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21582 fi
21583 if test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE}"; then
21584 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_SECONDARY\" was never defined.
21585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21586 fi
21587 if test -z "${HAVE_BUILTIN_ATOMIC64_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC64_FALSE}"; then
21588 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC64\" was never defined.
21589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21590 fi
21591 if test -z "${HAVE_OPENAT2_TRUE}" && test -z "${HAVE_OPENAT2_FALSE}"; then
21592 as_fn_error $? "conditional \"HAVE_OPENAT2\" was never defined.
21593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21594 fi
21595 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
21596 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
21597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21598 fi
21599 if test -z "${HAVE_AIO_READV_TRUE}" && test -z "${HAVE_AIO_READV_FALSE}"; then
21600 as_fn_error $? "conditional \"HAVE_AIO_READV\" was never defined.
21601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21602 fi
21603 if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
21604 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
21605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21606 fi
21607 if test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE}"; then
21608 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_PRIMARY\" was never defined.
21609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21610 fi
21611 if test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE}"; then
21612 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_SECONDARY\" was never defined.
21613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21614 fi
21615 if test -z "${HAVE_SHARED_POINTER_ANNOTATION_TRUE}" && test -z "${HAVE_SHARED_POINTER_ANNOTATION_FALSE}"; then
21616 as_fn_error $? "conditional \"HAVE_SHARED_POINTER_ANNOTATION\" was never defined.
21617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21618 fi
21619 if test -z "${HAVE_THRD_CREATE_TRUE}" && test -z "${HAVE_THRD_CREATE_FALSE}"; then
21620 as_fn_error $? "conditional \"HAVE_THRD_CREATE\" was never defined.
21621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21622 fi
21623 if test -z "${HAVE_SHA3_TRUE}" && test -z "${HAVE_SHA3_FALSE}"; then
21624 as_fn_error $? "conditional \"HAVE_SHA3\" was never defined.
21625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21626 fi
21627
21628 : "${CONFIG_STATUS=./config.status}"
21629 ac_write_fail=0
21630 ac_clean_files_save=$ac_clean_files
21631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21633 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21634 as_write_fail=0
21635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21636 #! $SHELL
21637 # Generated by $as_me.
21638 # Run this file to recreate the current configuration.
21639 # Compiler output produced by configure, useful for debugging
21640 # configure, is in config.log if it exists.
21641
21642 debug=false
21643 ac_cs_recheck=false
21644 ac_cs_silent=false
21645
21646 SHELL=\${CONFIG_SHELL-$SHELL}
21647 export SHELL
21648 _ASEOF
21649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21650 ## -------------------- ##
21651 ## M4sh Initialization. ##
21652 ## -------------------- ##
21653
21654 # Be more Bourne compatible
21655 DUALCASE=1; export DUALCASE # for MKS sh
21656 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21657 then :
21658 emulate sh
21659 NULLCMD=:
21660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21661 # is contrary to our usage. Disable this feature.
21662 alias -g '${1+"$@"}'='"$@"'
21663 setopt NO_GLOB_SUBST
21664 else case e in #(
21665 e) case `(set -o) 2>/dev/null` in #(
21666 *posix*) :
21667 set -o posix ;; #(
21668 *) :
21669 ;;
21670 esac ;;
21671 esac
21672 fi
21673
21674
21675
21676 # Reset variables that may have inherited troublesome values from
21677 # the environment.
21678
21679 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21680 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21681 # side effect of setting IFS to empty, thus disabling word splitting.)
21682 # Quoting is to prevent editors from complaining about space-tab.
21683 as_nl='
21684 '
21685 export as_nl
21686 IFS=" "" $as_nl"
21687
21688 PS1='$ '
21689 PS2='> '
21690 PS4='+ '
21691
21692 # Ensure predictable behavior from utilities with locale-dependent output.
21693 LC_ALL=C
21694 export LC_ALL
21695 LANGUAGE=C
21696 export LANGUAGE
21697
21698 # We cannot yet rely on "unset" to work, but we need these variables
21699 # to be unset--not just set to an empty or harmless value--now, to
21700 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21701 # also avoids known problems related to "unset" and subshell syntax
21702 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21703 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21704 do eval test \${$as_var+y} \
21705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21706 done
21707
21708 # Ensure that fds 0, 1, and 2 are open.
21709 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21710 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21711 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21712
21713 # The user is always right.
21714 if ${PATH_SEPARATOR+false} :; then
21715 PATH_SEPARATOR=:
21716 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21717 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21718 PATH_SEPARATOR=';'
21719 }
21720 fi
21721
21722
21723 # Find who we are. Look in the path if we contain no directory separator.
21724 as_myself=
21725 case $0 in #((
21726 *[\\/]* ) as_myself=$0 ;;
21727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21729 do
21730 IFS=$as_save_IFS
21731 case $as_dir in #(((
21732 '') as_dir=./ ;;
21733 */) ;;
21734 *) as_dir=$as_dir/ ;;
21735 esac
21736 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21737 done
21738 IFS=$as_save_IFS
21739
21740 ;;
21741 esac
21742 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21743 # in which case we are not to be found in the path.
21744 if test "x$as_myself" = x; then
21745 as_myself=$0
21746 fi
21747 if test ! -f "$as_myself"; then
21748 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21749 exit 1
21750 fi
21751
21752
21753
21754 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21755 # ----------------------------------------
21756 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21757 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21758 # script with STATUS, using 1 if that was 0.
21759 as_fn_error ()
21760 {
21761 as_status=$1; test $as_status -eq 0 && as_status=1
21762 if test "$4"; then
21763 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21765 fi
21766 printf "%s\n" "$as_me: error: $2" >&2
21767 as_fn_exit $as_status
21768 } # as_fn_error
21769
21770
21771 # as_fn_set_status STATUS
21772 # -----------------------
21773 # Set $? to STATUS, without forking.
21774 as_fn_set_status ()
21775 {
21776 return $1
21777 } # as_fn_set_status
21778
21779 # as_fn_exit STATUS
21780 # -----------------
21781 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21782 as_fn_exit ()
21783 {
21784 set +e
21785 as_fn_set_status $1
21786 exit $1
21787 } # as_fn_exit
21788
21789 # as_fn_unset VAR
21790 # ---------------
21791 # Portably unset VAR.
21792 as_fn_unset ()
21793 {
21794 { eval $1=; unset $1;}
21795 }
21796 as_unset=as_fn_unset
21797
21798 # as_fn_append VAR VALUE
21799 # ----------------------
21800 # Append the text in VALUE to the end of the definition contained in VAR. Take
21801 # advantage of any shell optimizations that allow amortized linear growth over
21802 # repeated appends, instead of the typical quadratic growth present in naive
21803 # implementations.
21804 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21805 then :
21806 eval 'as_fn_append ()
21807 {
21808 eval $1+=\$2
21809 }'
21810 else case e in #(
21811 e) as_fn_append ()
21812 {
21813 eval $1=\$$1\$2
21814 } ;;
21815 esac
21816 fi # as_fn_append
21817
21818 # as_fn_arith ARG...
21819 # ------------------
21820 # Perform arithmetic evaluation on the ARGs, and store the result in the
21821 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21822 # must be portable across $(()) and expr.
21823 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21824 then :
21825 eval 'as_fn_arith ()
21826 {
21827 as_val=$(( $* ))
21828 }'
21829 else case e in #(
21830 e) as_fn_arith ()
21831 {
21832 as_val=`expr "$@" || test $? -eq 1`
21833 } ;;
21834 esac
21835 fi # as_fn_arith
21836
21837
21838 if expr a : '\(a\)' >/dev/null 2>&1 &&
21839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21840 as_expr=expr
21841 else
21842 as_expr=false
21843 fi
21844
21845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21846 as_basename=basename
21847 else
21848 as_basename=false
21849 fi
21850
21851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21852 as_dirname=dirname
21853 else
21854 as_dirname=false
21855 fi
21856
21857 as_me=`$as_basename -- "$0" ||
21858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21859 X"$0" : 'X\(//\)$' \| \
21860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21861 printf "%s\n" X/"$0" |
21862 sed '/^.*\/\([^/][^/]*\)\/*$/{
21863 s//\1/
21864 q
21865 }
21866 /^X\/\(\/\/\)$/{
21867 s//\1/
21868 q
21869 }
21870 /^X\/\(\/\).*/{
21871 s//\1/
21872 q
21873 }
21874 s/.*/./; q'`
21875
21876 # Avoid depending upon Character Ranges.
21877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21880 as_cr_digits='0123456789'
21881 as_cr_alnum=$as_cr_Letters$as_cr_digits
21882
21883
21884 # Determine whether it's possible to make 'echo' print without a newline.
21885 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21886 # for compatibility with existing Makefiles.
21887 ECHO_C= ECHO_N= ECHO_T=
21888 case `echo -n x` in #(((((
21889 -n*)
21890 case `echo 'xy\c'` in
21891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21892 xy) ECHO_C='\c';;
21893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21894 ECHO_T=' ';;
21895 esac;;
21896 *)
21897 ECHO_N='-n';;
21898 esac
21899
21900 # For backward compatibility with old third-party macros, we provide
21901 # the shell variables $as_echo and $as_echo_n. New code should use
21902 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21903 as_echo='printf %s\n'
21904 as_echo_n='printf %s'
21905
21906 rm -f conf$$ conf$$.exe conf$$.file
21907 if test -d conf$$.dir; then
21908 rm -f conf$$.dir/conf$$.file
21909 else
21910 rm -f conf$$.dir
21911 mkdir conf$$.dir 2>/dev/null
21912 fi
21913 if (echo >conf$$.file) 2>/dev/null; then
21914 if ln -s conf$$.file conf$$ 2>/dev/null; then
21915 as_ln_s='ln -s'
21916 # ... but there are two gotchas:
21917 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21918 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21919 # In both cases, we have to default to 'cp -pR'.
21920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21921 as_ln_s='cp -pR'
21922 elif ln conf$$.file conf$$ 2>/dev/null; then
21923 as_ln_s=ln
21924 else
21925 as_ln_s='cp -pR'
21926 fi
21927 else
21928 as_ln_s='cp -pR'
21929 fi
21930 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21931 rmdir conf$$.dir 2>/dev/null
21932
21933
21934 # as_fn_mkdir_p
21935 # -------------
21936 # Create "$as_dir" as a directory, including parents if necessary.
21937 as_fn_mkdir_p ()
21938 {
21939
21940 case $as_dir in #(
21941 -*) as_dir=./$as_dir;;
21942 esac
21943 test -d "$as_dir" || eval $as_mkdir_p || {
21944 as_dirs=
21945 while :; do
21946 case $as_dir in #(
21947 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21948 *) as_qdir=$as_dir;;
21949 esac
21950 as_dirs="'$as_qdir' $as_dirs"
21951 as_dir=`$as_dirname -- "$as_dir" ||
21952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21953 X"$as_dir" : 'X\(//\)[^/]' \| \
21954 X"$as_dir" : 'X\(//\)$' \| \
21955 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21956 printf "%s\n" X"$as_dir" |
21957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21958 s//\1/
21959 q
21960 }
21961 /^X\(\/\/\)[^/].*/{
21962 s//\1/
21963 q
21964 }
21965 /^X\(\/\/\)$/{
21966 s//\1/
21967 q
21968 }
21969 /^X\(\/\).*/{
21970 s//\1/
21971 q
21972 }
21973 s/.*/./; q'`
21974 test -d "$as_dir" && break
21975 done
21976 test -z "$as_dirs" || eval "mkdir $as_dirs"
21977 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21978
21979
21980 } # as_fn_mkdir_p
21981 if mkdir -p . 2>/dev/null; then
21982 as_mkdir_p='mkdir -p "$as_dir"'
21983 else
21984 test -d ./-p && rmdir ./-p
21985 as_mkdir_p=false
21986 fi
21987
21988
21989 # as_fn_executable_p FILE
21990 # -----------------------
21991 # Test if FILE is an executable regular file.
21992 as_fn_executable_p ()
21993 {
21994 test -f "$1" && test -x "$1"
21995 } # as_fn_executable_p
21996 as_test_x='test -x'
21997 as_executable_p=as_fn_executable_p
21998
21999 # Sed expression to map a string onto a valid CPP name.
22000 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22001 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
22002
22003 # Sed expression to map a string onto a valid variable name.
22004 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22005 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
22006
22007
22008 exec 6>&1
22009 ## ----------------------------------- ##
22010 ## Main body of $CONFIG_STATUS script. ##
22011 ## ----------------------------------- ##
22012 _ASEOF
22013 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22014
22015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22016 # Save the log message, to keep $0 and so on meaningful, and to
22017 # report actual input values of CONFIG_FILES etc. instead of their
22018 # values after options handling.
22019 ac_log="
22020 This file was extended by Valgrind $as_me 3.25.1, which was
22021 generated by GNU Autoconf 2.72. Invocation command line was
22022
22023 CONFIG_FILES = $CONFIG_FILES
22024 CONFIG_HEADERS = $CONFIG_HEADERS
22025 CONFIG_LINKS = $CONFIG_LINKS
22026 CONFIG_COMMANDS = $CONFIG_COMMANDS
22027 $ $0 $@
22028
22029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22030 "
22031
22032 _ACEOF
22033
22034 case $ac_config_files in *"
22035 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22036 esac
22037
22038 case $ac_config_headers in *"
22039 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22040 esac
22041
22042
22043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22044 # Files that config.status was made for.
22045 config_files="$ac_config_files"
22046 config_headers="$ac_config_headers"
22047 config_commands="$ac_config_commands"
22048
22049 _ACEOF
22050
22051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22052 ac_cs_usage="\
22053 '$as_me' instantiates files and other configuration actions
22054 from templates according to the current configuration. Unless the files
22055 and actions are specified as TAGs, all are instantiated by default.
22056
22057 Usage: $0 [OPTION]... [TAG]...
22058
22059 -h, --help print this help, then exit
22060 -V, --version print version number and configuration settings, then exit
22061 --config print configuration, then exit
22062 -q, --quiet, --silent
22063 do not print progress messages
22064 -d, --debug don't remove temporary files
22065 --recheck update $as_me by reconfiguring in the same conditions
22066 --file=FILE[:TEMPLATE]
22067 instantiate the configuration file FILE
22068 --header=FILE[:TEMPLATE]
22069 instantiate the configuration header FILE
22070
22071 Configuration files:
22072 $config_files
22073
22074 Configuration headers:
22075 $config_headers
22076
22077 Configuration commands:
22078 $config_commands
22079
22080 Report bugs to <[email protected]>."
22081
22082 _ACEOF
22083 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22084 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22086 ac_cs_config='$ac_cs_config_escaped'
22087 ac_cs_version="\\
22088 Valgrind config.status 3.25.1
22089 configured by $0, generated by GNU Autoconf 2.72,
22090 with options \\"\$ac_cs_config\\"
22091
22092 Copyright (C) 2023 Free Software Foundation, Inc.
22093 This config.status script is free software; the Free Software Foundation
22094 gives unlimited permission to copy, distribute and modify it."
22095
22096 ac_pwd='$ac_pwd'
22097 srcdir='$srcdir'
22098 INSTALL='$INSTALL'
22099 MKDIR_P='$MKDIR_P'
22100 AWK='$AWK'
22101 test -n "\$AWK" || AWK=awk
22102 _ACEOF
22103
22104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22105 # The default lists apply if the user does not specify any file.
22106 ac_need_defaults=:
22107 while test $# != 0
22108 do
22109 case $1 in
22110 --*=?*)
22111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22113 ac_shift=:
22114 ;;
22115 --*=)
22116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22117 ac_optarg=
22118 ac_shift=:
22119 ;;
22120 *)
22121 ac_option=$1
22122 ac_optarg=$2
22123 ac_shift=shift
22124 ;;
22125 esac
22126
22127 case $ac_option in
22128 # Handling of the options.
22129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22130 ac_cs_recheck=: ;;
22131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22132 printf "%s\n" "$ac_cs_version"; exit ;;
22133 --config | --confi | --conf | --con | --co | --c )
22134 printf "%s\n" "$ac_cs_config"; exit ;;
22135 --debug | --debu | --deb | --de | --d | -d )
22136 debug=: ;;
22137 --file | --fil | --fi | --f )
22138 $ac_shift
22139 case $ac_optarg in
22140 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22141 '') as_fn_error $? "missing file argument" ;;
22142 esac
22143 as_fn_append CONFIG_FILES " '$ac_optarg'"
22144 ac_need_defaults=false;;
22145 --header | --heade | --head | --hea )
22146 $ac_shift
22147 case $ac_optarg in
22148 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22149 esac
22150 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22151 ac_need_defaults=false;;
22152 --he | --h)
22153 # Conflict between --help and --header
22154 as_fn_error $? "ambiguous option: '$1'
22155 Try '$0 --help' for more information.";;
22156 --help | --hel | -h )
22157 printf "%s\n" "$ac_cs_usage"; exit ;;
22158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22160 ac_cs_silent=: ;;
22161
22162 # This is an error.
22163 -*) as_fn_error $? "unrecognized option: '$1'
22164 Try '$0 --help' for more information." ;;
22165
22166 *) as_fn_append ac_config_targets " $1"
22167 ac_need_defaults=false ;;
22168
22169 esac
22170 shift
22171 done
22172
22173 ac_configure_extra_args=
22174
22175 if $ac_cs_silent; then
22176 exec 6>/dev/null
22177 ac_configure_extra_args="$ac_configure_extra_args --silent"
22178 fi
22179
22180 _ACEOF
22181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22182 if \$ac_cs_recheck; then
22183 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22184 shift
22185 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22186 CONFIG_SHELL='$SHELL'
22187 export CONFIG_SHELL
22188 exec "\$@"
22189 fi
22190
22191 _ACEOF
22192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22193 exec 5>>config.log
22194 {
22195 echo
22196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22197 ## Running $as_me. ##
22198 _ASBOX
22199 printf "%s\n" "$ac_log"
22200 } >&5
22201
22202 _ACEOF
22203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22204 #
22205 # INIT-COMMANDS
22206 #
22207 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22208
22209 _ACEOF
22210
22211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22212
22213 # Handling of arguments.
22214 for ac_config_target in $ac_config_targets
22215 do
22216 case $ac_config_target in
22217 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22218 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22220 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
22221 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
22222 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
22223 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
22224 "glibc-2.X-helgrind.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X-helgrind.supp" ;;
22225 "glibc-2.X-drd.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X-drd.supp" ;;
22226 "include/valgrind.h") CONFIG_FILES="$CONFIG_FILES include/valgrind.h" ;;
22227 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22228 "docs/xml/vg-entities.xml") CONFIG_FILES="$CONFIG_FILES docs/xml/vg-entities.xml" ;;
22229 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22230 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
22231 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
22232 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
22233 "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
22234 "gdbserver_tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/solaris/Makefile" ;;
22235 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22236 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
22237 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
22238 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
22239 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
22240 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
22241 "memcheck/tests/common/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/common/Makefile" ;;
22242 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
22243 "memcheck/tests/arm64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/arm64/Makefile" ;;
22244 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
22245 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
22246 "memcheck/tests/linux/debuginfod-check.vgtest") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/debuginfod-check.vgtest" ;;
22247 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
22248 "memcheck/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/solaris/Makefile" ;;
22249 "memcheck/tests/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/freebsd/Makefile" ;;
22250 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
22251 "memcheck/tests/arm64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/arm64-linux/Makefile" ;;
22252 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
22253 "memcheck/tests/riscv64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/riscv64-linux/Makefile" ;;
22254 "memcheck/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-solaris/Makefile" ;;
22255 "memcheck/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-solaris/Makefile" ;;
22256 "memcheck/tests/amd64-freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-freebsd/Makefile" ;;
22257 "memcheck/tests/x86-freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-freebsd/Makefile" ;;
22258 "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
22259 "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
22260 "memcheck/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/s390x/Makefile" ;;
22261 "memcheck/tests/mips32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/mips32/Makefile" ;;
22262 "memcheck/tests/mips64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/mips64/Makefile" ;;
22263 "memcheck/tests/vbit-test/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/vbit-test/Makefile" ;;
22264 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
22265 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
22266 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
22267 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
22268 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
22269 "cachegrind/cg_merge") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_merge" ;;
22270 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
22271 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
22272 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
22273 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
22274 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
22275 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
22276 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
22277 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
22278 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
22279 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
22280 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
22281 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
22282 "dhat/Makefile") CONFIG_FILES="$CONFIG_FILES dhat/Makefile" ;;
22283 "dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dhat/tests/Makefile" ;;
22284 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
22285 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
22286 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
22287 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
22288 "none/tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/scripts/Makefile" ;;
22289 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
22290 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
22291 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
22292 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
22293 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
22294 "none/tests/arm64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm64/Makefile" ;;
22295 "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
22296 "none/tests/s390x/disasm-test/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/disasm-test/Makefile" ;;
22297 "none/tests/mips32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips32/Makefile" ;;
22298 "none/tests/mips64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips64/Makefile" ;;
22299 "none/tests/nanomips/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/nanomips/Makefile" ;;
22300 "none/tests/riscv64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/riscv64/Makefile" ;;
22301 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
22302 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
22303 "none/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/solaris/Makefile" ;;
22304 "none/tests/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/freebsd/Makefile" ;;
22305 "none/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-linux/Makefile" ;;
22306 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
22307 "none/tests/amd64-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-darwin/Makefile" ;;
22308 "none/tests/x86-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-darwin/Makefile" ;;
22309 "none/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-solaris/Makefile" ;;
22310 "none/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-solaris/Makefile" ;;
22311 "none/tests/x86-freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-freebsd/Makefile" ;;
22312 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
22313 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
22314 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
22315 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
22316 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
22317 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
22318 "exp-bbv/tests/arm-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/arm-linux/Makefile" ;;
22319 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
22320 "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
22321 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
22322 "coregrind/link_tool_exe_freebsd") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_freebsd" ;;
22323 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
22324 "coregrind/link_tool_exe_solaris") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_solaris" ;;
22325 "tests/filter_stderr_basic") CONFIG_FILES="$CONFIG_FILES tests/filter_stderr_basic" ;;
22326 "tests/filter_discards") CONFIG_FILES="$CONFIG_FILES tests/filter_discards" ;;
22327 "memcheck/tests/filter_stderr") CONFIG_FILES="$CONFIG_FILES memcheck/tests/filter_stderr" ;;
22328 "memcheck/tests/filter_dw4") CONFIG_FILES="$CONFIG_FILES memcheck/tests/filter_dw4" ;;
22329 "memcheck/tests/filter_overlaperror") CONFIG_FILES="$CONFIG_FILES memcheck/tests/filter_overlaperror" ;;
22330 "memcheck/tests/filter_supp") CONFIG_FILES="$CONFIG_FILES memcheck/tests/filter_supp" ;;
22331 "memcheck/tests/x86/filter_pushfpopf") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/filter_pushfpopf" ;;
22332 "gdbserver_tests/filter_gdb") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/filter_gdb" ;;
22333 "gdbserver_tests/filter_memcheck_monitor") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/filter_memcheck_monitor" ;;
22334 "gdbserver_tests/filter_stderr") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/filter_stderr" ;;
22335 "gdbserver_tests/filter_vgdb") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/filter_vgdb" ;;
22336 "drd/tests/filter_stderr") CONFIG_FILES="$CONFIG_FILES drd/tests/filter_stderr" ;;
22337 "drd/tests/filter_error_count") CONFIG_FILES="$CONFIG_FILES drd/tests/filter_error_count" ;;
22338 "drd/tests/filter_error_summary") CONFIG_FILES="$CONFIG_FILES drd/tests/filter_error_summary" ;;
22339 "drd/tests/filter_stderr_and_thread_no_and_offset") CONFIG_FILES="$CONFIG_FILES drd/tests/filter_stderr_and_thread_no_and_offset" ;;
22340 "drd/tests/filter_thread_no") CONFIG_FILES="$CONFIG_FILES drd/tests/filter_thread_no" ;;
22341 "drd/tests/filter_xml_and_thread_no") CONFIG_FILES="$CONFIG_FILES drd/tests/filter_xml_and_thread_no" ;;
22342 "helgrind/tests/filter_stderr") CONFIG_FILES="$CONFIG_FILES helgrind/tests/filter_stderr" ;;
22343
22344 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22345 esac
22346 done
22347
22348
22349 # If the user did not use the arguments to specify the items to instantiate,
22350 # then the envvar interface is used. Set only those that are not.
22351 # We use the long form for the default assignment because of an extremely
22352 # bizarre bug on SunOS 4.1.3.
22353 if $ac_need_defaults; then
22354 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22355 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22356 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22357 fi
22358
22359 # Have a temporary directory for convenience. Make it in the build tree
22360 # simply because there is no reason against having it here, and in addition,
22361 # creating and moving files from /tmp can sometimes cause problems.
22362 # Hook for its removal unless debugging.
22363 # Note that there is a small window in which the directory will not be cleaned:
22364 # after its creation but before its name has been assigned to '$tmp'.
22365 $debug ||
22366 {
22367 tmp= ac_tmp=
22368 trap 'exit_status=$?
22369 : "${ac_tmp:=$tmp}"
22370 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22371 ' 0
22372 trap 'as_fn_exit 1' 1 2 13 15
22373 }
22374 # Create a (secure) tmp directory for tmp files.
22375
22376 {
22377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22378 test -d "$tmp"
22379 } ||
22380 {
22381 tmp=./conf$$-$RANDOM
22382 (umask 077 && mkdir "$tmp")
22383 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22384 ac_tmp=$tmp
22385
22386 # Set up the scripts for CONFIG_FILES section.
22387 # No need to generate them if there are no CONFIG_FILES.
22388 # This happens for instance with './config.status config.h'.
22389 if test -n "$CONFIG_FILES"; then
22390
22391
22392 ac_cr=`echo X | tr X '\015'`
22393 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22394 # But we know of no other shell where ac_cr would be empty at this
22395 # point, so we can use a bashism as a fallback.
22396 if test "x$ac_cr" = x; then
22397 eval ac_cr=\$\'\\r\'
22398 fi
22399 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22400 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22401 ac_cs_awk_cr='\\r'
22402 else
22403 ac_cs_awk_cr=$ac_cr
22404 fi
22405
22406 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22407 _ACEOF
22408
22409
22410 {
22411 echo "cat >conf$$subs.awk <<_ACEOF" &&
22412 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22413 echo "_ACEOF"
22414 } >conf$$subs.sh ||
22415 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22416 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22417 ac_delim='%!_!# '
22418 for ac_last_try in false false false false false :; do
22419 . ./conf$$subs.sh ||
22420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22421
22422 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22423 if test $ac_delim_n = $ac_delim_num; then
22424 break
22425 elif $ac_last_try; then
22426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22427 else
22428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22429 fi
22430 done
22431 rm -f conf$$subs.sh
22432
22433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22434 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22435 _ACEOF
22436 sed -n '
22437 h
22438 s/^/S["/; s/!.*/"]=/
22439 p
22440 g
22441 s/^[^!]*!//
22442 :repl
22443 t repl
22444 s/'"$ac_delim"'$//
22445 t delim
22446 :nl
22447 h
22448 s/\(.\{148\}\)..*/\1/
22449 t more1
22450 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22451 p
22452 n
22453 b repl
22454 :more1
22455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22456 p
22457 g
22458 s/.\{148\}//
22459 t nl
22460 :delim
22461 h
22462 s/\(.\{148\}\)..*/\1/
22463 t more2
22464 s/["\\]/\\&/g; s/^/"/; s/$/"/
22465 p
22466 b
22467 :more2
22468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22469 p
22470 g
22471 s/.\{148\}//
22472 t delim
22473 ' <conf$$subs.awk | sed '
22474 /^[^""]/{
22475 N
22476 s/\n//
22477 }
22478 ' >>$CONFIG_STATUS || ac_write_fail=1
22479 rm -f conf$$subs.awk
22480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22481 _ACAWK
22482 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22483 for (key in S) S_is_set[key] = 1
22484 FS = ""
22485
22486 }
22487 {
22488 line = $ 0
22489 nfields = split(line, field, "@")
22490 substed = 0
22491 len = length(field[1])
22492 for (i = 2; i < nfields; i++) {
22493 key = field[i]
22494 keylen = length(key)
22495 if (S_is_set[key]) {
22496 value = S[key]
22497 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22498 len += length(value) + length(field[++i])
22499 substed = 1
22500 } else
22501 len += 1 + keylen
22502 }
22503
22504 print line
22505 }
22506
22507 _ACAWK
22508 _ACEOF
22509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22510 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22511 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22512 else
22513 cat
22514 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22515 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22516 _ACEOF
22517
22518 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22519 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22520 # trailing colons and then remove the whole line if VPATH becomes empty
22521 # (actually we leave an empty line to preserve line numbers).
22522 if test "x$srcdir" = x.; then
22523 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22524 h
22525 s///
22526 s/^/:/
22527 s/[ ]*$/:/
22528 s/:\$(srcdir):/:/g
22529 s/:\${srcdir}:/:/g
22530 s/:@srcdir@:/:/g
22531 s/^:*//
22532 s/:*$//
22533 x
22534 s/\(=[ ]*\).*/\1/
22535 G
22536 s/\n//
22537 s/^[^=]*=[ ]*$//
22538 }'
22539 fi
22540
22541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22542 fi # test -n "$CONFIG_FILES"
22543
22544 # Set up the scripts for CONFIG_HEADERS section.
22545 # No need to generate them if there are no CONFIG_HEADERS.
22546 # This happens for instance with './config.status Makefile'.
22547 if test -n "$CONFIG_HEADERS"; then
22548 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22549 BEGIN {
22550 _ACEOF
22551
22552 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22553 # here-document in config.status, that substitutes the proper values into
22554 # config.h.in to produce config.h.
22555
22556 # Create a delimiter string that does not exist in confdefs.h, to ease
22557 # handling of long lines.
22558 ac_delim='%!_!# '
22559 for ac_last_try in false false :; do
22560 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22561 if test -z "$ac_tt"; then
22562 break
22563 elif $ac_last_try; then
22564 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22565 else
22566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22567 fi
22568 done
22569
22570 # For the awk script, D is an array of macro values keyed by name,
22571 # likewise P contains macro parameters if any. Preserve backslash
22572 # newline sequences.
22573
22574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22575 sed -n '
22576 s/.\{148\}/&'"$ac_delim"'/g
22577 t rset
22578 :rset
22579 s/^[ ]*#[ ]*define[ ][ ]*/ /
22580 t def
22581 d
22582 :def
22583 s/\\$//
22584 t bsnl
22585 s/["\\]/\\&/g
22586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22587 D["\1"]=" \3"/p
22588 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22589 d
22590 :bsnl
22591 s/["\\]/\\&/g
22592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22593 D["\1"]=" \3\\\\\\n"\\/p
22594 t cont
22595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22596 t cont
22597 d
22598 :cont
22599 n
22600 s/.\{148\}/&'"$ac_delim"'/g
22601 t clear
22602 :clear
22603 s/\\$//
22604 t bsnlc
22605 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22606 d
22607 :bsnlc
22608 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22609 b cont
22610 ' <confdefs.h | sed '
22611 s/'"$ac_delim"'/"\\\
22612 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22613
22614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22615 for (key in D) D_is_set[key] = 1
22616 FS = ""
22617 }
22618 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22619 line = \$ 0
22620 split(line, arg, " ")
22621 if (arg[1] == "#") {
22622 defundef = arg[2]
22623 mac1 = arg[3]
22624 } else {
22625 defundef = substr(arg[1], 2)
22626 mac1 = arg[2]
22627 }
22628 split(mac1, mac2, "(") #)
22629 macro = mac2[1]
22630 prefix = substr(line, 1, index(line, defundef) - 1)
22631 if (D_is_set[macro]) {
22632 # Preserve the white space surrounding the "#".
22633 print prefix "define", macro P[macro] D[macro]
22634 next
22635 } else {
22636 # Replace #undef with comments. This is necessary, for example,
22637 # in the case of _POSIX_SOURCE, which is predefined and required
22638 # on some systems where configure will not decide to define it.
22639 if (defundef == "undef") {
22640 print "/*", prefix defundef, macro, "*/"
22641 next
22642 }
22643 }
22644 }
22645 { print }
22646 _ACAWK
22647 _ACEOF
22648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22649 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22650 fi # test -n "$CONFIG_HEADERS"
22651
22652
22653 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22654 shift
22655 for ac_tag
22656 do
22657 case $ac_tag in
22658 :[FHLC]) ac_mode=$ac_tag; continue;;
22659 esac
22660 case $ac_mode$ac_tag in
22661 :[FHL]*:*);;
22662 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22663 :[FH]-) ac_tag=-:-;;
22664 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22665 esac
22666 ac_save_IFS=$IFS
22667 IFS=:
22668 set x $ac_tag
22669 IFS=$ac_save_IFS
22670 shift
22671 ac_file=$1
22672 shift
22673
22674 case $ac_mode in
22675 :L) ac_source=$1;;
22676 :[FH])
22677 ac_file_inputs=
22678 for ac_f
22679 do
22680 case $ac_f in
22681 -) ac_f="$ac_tmp/stdin";;
22682 *) # Look for the file first in the build tree, then in the source tree
22683 # (if the path is not absolute). The absolute path cannot be DOS-style,
22684 # because $ac_f cannot contain ':'.
22685 test -f "$ac_f" ||
22686 case $ac_f in
22687 [\\/$]*) false;;
22688 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22689 esac ||
22690 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22691 esac
22692 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22693 as_fn_append ac_file_inputs " '$ac_f'"
22694 done
22695
22696 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22697 # use $as_me), people would be surprised to read:
22698 # /* config.h. Generated by config.status. */
22699 configure_input='Generated from '`
22700 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22701 `' by configure.'
22702 if test x"$ac_file" != x-; then
22703 configure_input="$ac_file. $configure_input"
22704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22705 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22706 fi
22707 # Neutralize special characters interpreted by sed in replacement strings.
22708 case $configure_input in #(
22709 *\&* | *\|* | *\\* )
22710 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22711 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22712 *) ac_sed_conf_input=$configure_input;;
22713 esac
22714
22715 case $ac_tag in
22716 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22718 esac
22719 ;;
22720 esac
22721
22722 ac_dir=`$as_dirname -- "$ac_file" ||
22723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22724 X"$ac_file" : 'X\(//\)[^/]' \| \
22725 X"$ac_file" : 'X\(//\)$' \| \
22726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22727 printf "%s\n" X"$ac_file" |
22728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22729 s//\1/
22730 q
22731 }
22732 /^X\(\/\/\)[^/].*/{
22733 s//\1/
22734 q
22735 }
22736 /^X\(\/\/\)$/{
22737 s//\1/
22738 q
22739 }
22740 /^X\(\/\).*/{
22741 s//\1/
22742 q
22743 }
22744 s/.*/./; q'`
22745 as_dir="$ac_dir"; as_fn_mkdir_p
22746 ac_builddir=.
22747
22748 case "$ac_dir" in
22749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22750 *)
22751 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22752 # A ".." for each directory in $ac_dir_suffix.
22753 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22754 case $ac_top_builddir_sub in
22755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22757 esac ;;
22758 esac
22759 ac_abs_top_builddir=$ac_pwd
22760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22761 # for backward compatibility:
22762 ac_top_builddir=$ac_top_build_prefix
22763
22764 case $srcdir in
22765 .) # We are building in place.
22766 ac_srcdir=.
22767 ac_top_srcdir=$ac_top_builddir_sub
22768 ac_abs_top_srcdir=$ac_pwd ;;
22769 [\\/]* | ?:[\\/]* ) # Absolute name.
22770 ac_srcdir=$srcdir$ac_dir_suffix;
22771 ac_top_srcdir=$srcdir
22772 ac_abs_top_srcdir=$srcdir ;;
22773 *) # Relative name.
22774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22775 ac_top_srcdir=$ac_top_build_prefix$srcdir
22776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22777 esac
22778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22779
22780
22781 case $ac_mode in
22782 :F)
22783 #
22784 # CONFIG_FILE
22785 #
22786
22787 case $INSTALL in
22788 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22789 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22790 esac
22791 ac_MKDIR_P=$MKDIR_P
22792 case $MKDIR_P in
22793 [\\/$]* | ?:[\\/]* ) ;;
22794 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22795 esac
22796 _ACEOF
22797
22798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22799 # If the template does not know about datarootdir, expand it.
22800 # FIXME: This hack should be removed a few years after 2.60.
22801 ac_datarootdir_hack=; ac_datarootdir_seen=
22802 ac_sed_dataroot='
22803 /datarootdir/ {
22804 p
22805 q
22806 }
22807 /@datadir@/p
22808 /@docdir@/p
22809 /@infodir@/p
22810 /@localedir@/p
22811 /@mandir@/p'
22812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22813 *datarootdir*) ac_datarootdir_seen=yes;;
22814 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22816 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22817 _ACEOF
22818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22819 ac_datarootdir_hack='
22820 s&@datadir@&$datadir&g
22821 s&@docdir@&$docdir&g
22822 s&@infodir@&$infodir&g
22823 s&@localedir@&$localedir&g
22824 s&@mandir@&$mandir&g
22825 s&\\\${datarootdir}&$datarootdir&g' ;;
22826 esac
22827 _ACEOF
22828
22829 # Neutralize VPATH when '$srcdir' = '.'.
22830 # Shell code in configure.ac might set extrasub.
22831 # FIXME: do we really want to maintain this feature?
22832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22833 ac_sed_extra="$ac_vpsub
22834 $extrasub
22835 _ACEOF
22836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22837 :t
22838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22839 s|@configure_input@|$ac_sed_conf_input|;t t
22840 s&@top_builddir@&$ac_top_builddir_sub&;t t
22841 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22842 s&@srcdir@&$ac_srcdir&;t t
22843 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22844 s&@top_srcdir@&$ac_top_srcdir&;t t
22845 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22846 s&@builddir@&$ac_builddir&;t t
22847 s&@abs_builddir@&$ac_abs_builddir&;t t
22848 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22849 s&@INSTALL@&$ac_INSTALL&;t t
22850 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22851 $ac_datarootdir_hack
22852 "
22853 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22854 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22855
22856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22857 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22859 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22861 which seems to be undefined. Please make sure it is defined" >&5
22862 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22863 which seems to be undefined. Please make sure it is defined" >&2;}
22864
22865 rm -f "$ac_tmp/stdin"
22866 case $ac_file in
22867 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22868 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22869 esac \
22870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22871 ;;
22872 :H)
22873 #
22874 # CONFIG_HEADER
22875 #
22876 if test x"$ac_file" != x-; then
22877 {
22878 printf "%s\n" "/* $configure_input */" >&1 \
22879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22880 } >"$ac_tmp/config.h" \
22881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22882 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22884 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22885 else
22886 rm -f "$ac_file"
22887 mv "$ac_tmp/config.h" "$ac_file" \
22888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22889 fi
22890 else
22891 printf "%s\n" "/* $configure_input */" >&1 \
22892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22893 || as_fn_error $? "could not create -" "$LINENO" 5
22894 fi
22895 # Compute "$ac_file"'s index in $config_headers.
22896 _am_arg="$ac_file"
22897 _am_stamp_count=1
22898 for _am_header in $config_headers :; do
22899 case $_am_header in
22900 $_am_arg | $_am_arg:* )
22901 break ;;
22902 * )
22903 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22904 esac
22905 done
22906 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22907 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22908 X"$_am_arg" : 'X\(//\)[^/]' \| \
22909 X"$_am_arg" : 'X\(//\)$' \| \
22910 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22911 printf "%s\n" X"$_am_arg" |
22912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22913 s//\1/
22914 q
22915 }
22916 /^X\(\/\/\)[^/].*/{
22917 s//\1/
22918 q
22919 }
22920 /^X\(\/\/\)$/{
22921 s//\1/
22922 q
22923 }
22924 /^X\(\/\).*/{
22925 s//\1/
22926 q
22927 }
22928 s/.*/./; q'`/stamp-h$_am_stamp_count
22929 ;;
22930
22931 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22932 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22933 ;;
22934 esac
22935
22936
22937 case $ac_file$ac_mode in
22938 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22939 # Older Autoconf quotes --file arguments for eval, but not when files
22940 # are listed without --file. Let's play safe and only enable the eval
22941 # if we detect the quoting.
22942 # TODO: see whether this extra hack can be removed once we start
22943 # requiring Autoconf 2.70 or later.
22944 case $CONFIG_FILES in #(
22945 *\'*) :
22946 eval set x "$CONFIG_FILES" ;; #(
22947 *) :
22948 set x $CONFIG_FILES ;; #(
22949 *) :
22950 ;;
22951 esac
22952 shift
22953 # Used to flag and report bootstrapping failures.
22954 am_rc=0
22955 for am_mf
22956 do
22957 # Strip MF so we end up with the name of the file.
22958 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22959 # Check whether this is an Automake generated Makefile which includes
22960 # dependency-tracking related rules and includes.
22961 # Grep'ing the whole file directly is not great: AIX grep has a line
22962 # limit of 2048, but all sed's we know have understand at least 4000.
22963 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22964 || continue
22965 am_dirpart=`$as_dirname -- "$am_mf" ||
22966 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22967 X"$am_mf" : 'X\(//\)[^/]' \| \
22968 X"$am_mf" : 'X\(//\)$' \| \
22969 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22970 printf "%s\n" X"$am_mf" |
22971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22972 s//\1/
22973 q
22974 }
22975 /^X\(\/\/\)[^/].*/{
22976 s//\1/
22977 q
22978 }
22979 /^X\(\/\/\)$/{
22980 s//\1/
22981 q
22982 }
22983 /^X\(\/\).*/{
22984 s//\1/
22985 q
22986 }
22987 s/.*/./; q'`
22988 am_filepart=`$as_basename -- "$am_mf" ||
22989 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22990 X"$am_mf" : 'X\(//\)$' \| \
22991 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22992 printf "%s\n" X/"$am_mf" |
22993 sed '/^.*\/\([^/][^/]*\)\/*$/{
22994 s//\1/
22995 q
22996 }
22997 /^X\/\(\/\/\)$/{
22998 s//\1/
22999 q
23000 }
23001 /^X\/\(\/\).*/{
23002 s//\1/
23003 q
23004 }
23005 s/.*/./; q'`
23006 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23007 && sed -e '/# am--include-marker/d' "$am_filepart" \
23008 | $MAKE -f - am--depfiles" >&5
23009 (cd "$am_dirpart" \
23010 && sed -e '/# am--include-marker/d' "$am_filepart" \
23011 | $MAKE -f - am--depfiles) >&5 2>&5
23012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } || am_rc=$?
23015 done
23016 if test $am_rc -ne 0; then
23017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23018 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23019 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23020 for automatic dependency tracking. If GNU make was not used, consider
23021 re-running the configure script with MAKE=\"gmake\" (or whatever is
23022 necessary). You can also try re-running configure with the
23023 '--disable-dependency-tracking' option to at least be able to build
23024 the package (albeit without support for automatic dependency tracking).
23025 See 'config.log' for more details" "$LINENO" 5; }
23026 fi
23027 { am_dirpart=; unset am_dirpart;}
23028 { am_filepart=; unset am_filepart;}
23029 { am_mf=; unset am_mf;}
23030 { am_rc=; unset am_rc;}
23031 rm -f conftest-deps.mk
23032 }
23033 ;;
23034 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
23035 "coregrind/link_tool_exe_freebsd":F) chmod +x coregrind/link_tool_exe_freebsd ;;
23036 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
23037 "coregrind/link_tool_exe_solaris":F) chmod +x coregrind/link_tool_exe_solaris ;;
23038 "tests/filter_stderr_basic":F) chmod +x tests/filter_stderr_basic ;;
23039 "tests/filter_discards":F) chmod +x tests/filter_discards ;;
23040 "memcheck/tests/filter_stderr":F) chmod +x memcheck/tests/filter_stderr ;;
23041 "memcheck/tests/filter_dw4":F) chmod +x memcheck/tests/filter_dw4 ;;
23042 "memcheck/tests/filter_overlaperror":F) chmod +x memcheck/tests/filter_overlaperror ;;
23043 "memcheck/tests/filter_supp":F) chmod +x memcheck/tests/filter_supp ;;
23044 "memcheck/tests/x86/filter_pushfpopf":F) chmod +x memcheck/tests/x86/filter_pushfpopf ;;
23045 "gdbserver_tests/filter_gdb":F) chmod +x gdbserver_tests/filter_gdb ;;
23046 "gdbserver_tests/filter_memcheck_monitor":F) chmod +x gdbserver_tests/filter_memcheck_monitor ;;
23047 "gdbserver_tests/filter_stderr":F) chmod +x gdbserver_tests/filter_stderr ;;
23048 "gdbserver_tests/filter_vgdb":F) chmod +x gdbserver_tests/filter_vgdb ;;
23049 "drd/tests/filter_stderr":F) chmod +x drd/tests/filter_stderr ;;
23050 "drd/tests/filter_error_count":F) chmod +x drd/tests/filter_error_count ;;
23051 "drd/tests/filter_error_summary":F) chmod +x drd/tests/filter_error_summary ;;
23052 "drd/tests/filter_stderr_and_thread_no_and_offset":F) chmod +x drd/tests/filter_stderr_and_thread_no_and_offset ;;
23053 "drd/tests/filter_thread_no":F) chmod +x drd/tests/filter_thread_no ;;
23054 "drd/tests/filter_xml_and_thread_no":F) chmod +x drd/tests/filter_xml_and_thread_no ;;
23055 "helgrind/tests/filter_stderr":F) chmod +x helgrind/tests/filter_stderr ;;
23056
23057 esac
23058 done # for ac_tag
23059
23060
23061 as_fn_exit 0
23062 _ACEOF
23063 ac_clean_files=$ac_clean_files_save
23064
23065 test $ac_write_fail = 0 ||
23066 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23067
23068
23069 # configure is writing to config.log, and then calls config.status.
23070 # config.status does its own redirection, appending to config.log.
23071 # Unfortunately, on DOS this fails, as config.log is still kept open
23072 # by configure, so config.status won't be able to write to it; its
23073 # output is simply discarded. So we exec the FD to /dev/null,
23074 # effectively closing config.log, so it can be properly (re)opened and
23075 # appended to by config.status. When coming back to configure, we
23076 # need to make the FD available again.
23077 if test "$no_create" != yes; then
23078 ac_cs_success=:
23079 ac_config_status_args=
23080 test "$silent" = yes &&
23081 ac_config_status_args="$ac_config_status_args --quiet"
23082 exec 5>/dev/null
23083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23084 exec 5>>config.log
23085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23086 # would make configure fail if this is the last instruction.
23087 $ac_cs_success || as_fn_exit 1
23088 fi
23089 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23091 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23092 fi
23093
23094
23095 cat<<EOF
23096
23097 Version: ${VERSION}
23098 Maximum build arch: ${ARCH_MAX}
23099 Primary build arch: ${VGCONF_ARCH_PRI}
23100 Secondary build arch: ${VGCONF_ARCH_SEC}
23101 Build OS: ${VGCONF_OS}
23102 Link Time Optimisation: ${vg_cv_lto}
23103 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
23104 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
23105 Platform variant: ${VGCONF_PLATVARIANT}
23106 Primary -DVGPV string: -DVGPV_${VGCONF_ARCH_PRI}_${VGCONF_OS}_${VGCONF_PLATVARIANT}=1
23107 Default supp files: ${DEFAULT_SUPP}
23108
23109 EOF
23110