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 nasm 3.01.
4 #
5 # Report bugs to <https://bugs.nasm.us/>.
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 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell [email protected] and
273 $0: https://bugs.nasm.us/ about your system, including any
274 $0: error possibly output before this message. Then install
275 $0: a modern shell, or manually run the script under such a
276 $0: shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543 fi
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
563
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='nasm'
605 PACKAGE_TARNAME='nasm'
606 PACKAGE_VERSION='3.01'
607 PACKAGE_STRING='nasm 3.01'
608 PACKAGE_BUGREPORT='https://bugs.nasm.us/'
609 PACKAGE_URL='https://www.nasm.us/'
610
611 ac_unique_file="config/config.h.in"
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_c_list=
644 ac_func_c_list=
645 enable_year2038=no
646 ac_subst_vars='LTLIBOBJS
647 LIBOBJS
648 PDFOPT
649 MANIFEST
650 WINDRES
651 STRIP
652 RANLIB
653 AR
654 NSIS
655 MAKENSIS
656 MAKENSIS_PLAIN
657 MAKENSIS_TOOL
658 XZFILES
659 MANPAGES
660 PYTHON3
661 XZ
662 XMLTO
663 ASCIIDOC
664 NROFF
665 MKDIR_P
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 SET_MAKE
670 LN_S
671 LIBEXT
672 ZLIBINC
673 ZLIB
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 ac_prefix_program
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 runstatedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_gdb
733 enable_debug
734 enable_profiling
735 enable_largefile
736 enable_panic_abort
737 with_zlib
738 with_nsis
739 enable_pdf_compression
740 enable_gc
741 enable_lto
742 enable_sanitizer
743 enable_pedantic
744 enable_werror
745 enable_suggestions
746 enable_year2038
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 runstatedir='${localstatedir}/run'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
799 htmldir='${docdir}'
800 dvidir='${docdir}'
801 pdfdir='${docdir}'
802 psdir='${docdir}'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
806
807 ac_prev=
808 ac_dashdash=
809 for ac_option
810 do
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
814 ac_prev=
815 continue
816 fi
817
818 case $ac_option in
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 *=) ac_optarg= ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 case $ac_dashdash$ac_option in
825 --)
826 ac_dashdash=yes ;;
827
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 ac_prev=bindir ;;
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 bindir=$ac_optarg ;;
832
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
837
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
844
845 --config-cache | -C)
846 cache_file=config.cache ;;
847
848 -datadir | --datadir | --datadi | --datad)
849 ac_prev=datadir ;;
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
852
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
859
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: '$ac_useropt'"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
868 *"
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=no ;;
875
876 -docdir | --docdir | --docdi | --doc | --do)
877 ac_prev=docdir ;;
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 docdir=$ac_optarg ;;
880
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 ac_prev=dvidir ;;
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 dvidir=$ac_optarg ;;
885
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: '$ac_useropt'"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=\$ac_optarg ;;
901
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
910
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
914
915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
921
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
926
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
932
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
939
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
944
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 libdir=$ac_optarg ;;
949
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
956
957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
961
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
968
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 mandir=$ac_optarg ;;
973
974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
977
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
980 no_create=yes ;;
981
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
985
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
994
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 prefix=$ac_optarg ;;
999
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1006
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1013
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1030
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1035
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1040
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1044
1045 -runstatedir | --runstatedir | --runstatedi | --runstated \
1046 | --runstate | --runstat | --runsta | --runst | --runs \
1047 | --run | --ru | --r)
1048 ac_prev=runstatedir ;;
1049 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1050 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1051 | --run=* | --ru=* | --r=*)
1052 runstatedir=$ac_optarg ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: '$ac_useropt'"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: '$ac_useropt'"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error $? "unrecognized option: '$ac_option'
1150 Try '$0 --help' for more information"
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169 ;;
1170
1171 esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $? "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir runstatedir
1192 do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: '$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 printf "%s\n" X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 'configure' configures nasm 3.01 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print 'checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for '--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or '..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, 'make install' will install all the files in
1331 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than '$ac_default_prefix' using '--prefix',
1333 for instance '--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/nasm]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1359
1360 cat <<\_ACEOF
1361
1362 System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of nasm 3.01:";;
1371 esac
1372 cat <<\_ACEOF
1373
1374 Optional Features:
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --disable-gdb disable gdb debug extensions
1379 --enable-debug optimize for debugging
1380 --enable-profiling compile with profiling (-pg option)
1381 --disable-largefile omit support for large files
1382 --enable-panic-abort call abort() on panic to trap in the debugger
1383 --disable-pdf-compression
1384 generate an uncompressed documentation PDF
1385 --disable-gc do not compile with dead code garbage collection
1386 support
1387 --enable-lto Try to enable link-time optimization for this
1388 compiler
1389 --enable-sanitizer compile with sanitizers enabled
1390 --disable-pedantic disable some extra paranoid compiler warnings
1391 --enable-werror compile with -Werror to error out on any warning
1392 --enable-suggestions compile with compiler suggestion warnings enabled
1393 --enable-year2038 support timestamps after 2038
1394
1395 Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-zlib=path specify location of external zlib library
1399 --with-nsis[=makensis] build an install .exe using NSIS on Windows hosts
1400
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409
1410 Use these variables to override the choices made by 'configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1412
1413 Report bugs to <https://bugs.nasm.us/>.
1414 nasm home page: <https://www.nasm.us/>.
1415 _ACEOF
1416 ac_status=$?
1417 fi
1418
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422 test -d "$ac_dir" ||
1423 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424 continue
1425 ac_builddir=.
1426
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *)
1430 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1442
1443 case $srcdir in
1444 .) # We are building in place.
1445 ac_srcdir=.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for configure.gnu first; this name is used for a wrapper for
1461 # Metaconfig's "Configure" on case-insensitive file systems.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 nasm configure 3.01
1479 generated by GNU Autoconf 2.72
1480
1481 Copyright (C) 2023 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1496 {
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext conftest.beam
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 printf "%s\n" "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1512 fi
1513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext
1518 then :
1519 ac_retval=0
1520 else case e in #(
1521 e) printf "%s\n" "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1 ;;
1525 esac
1526 fi
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1529
1530 } # ac_fn_c_try_compile
1531
1532 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1533 # -------------------------------------------------------
1534 # Tests whether HEADER exists and can be compiled using the include files in
1535 # INCLUDES, setting the cache variable VAR accordingly.
1536 ac_fn_c_check_header_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1540 printf %s "checking for $2... " >&6; }
1541 if eval test \${$3+y}
1542 then :
1543 printf %s "(cached) " >&6
1544 else case e in #(
1545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1546 /* end confdefs.h. */
1547 $4
1548 #include <$2>
1549 _ACEOF
1550 if ac_fn_c_try_compile "$LINENO"
1551 then :
1552 eval "$3=yes"
1553 else case e in #(
1554 e) eval "$3=no" ;;
1555 esac
1556 fi
1557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1558 esac
1559 fi
1560 eval ac_res=\$$3
1561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1562 printf "%s\n" "$ac_res" >&6; }
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564
1565 } # ac_fn_c_check_header_compile
1566
1567 # ac_fn_c_try_link LINENO
1568 # -----------------------
1569 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_link ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1574 if { { ac_try="$ac_link"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 printf "%s\n" "$ac_try_echo"; } >&5
1581 (eval "$ac_link") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest$ac_exeext && {
1593 test "$cross_compiling" = yes ||
1594 test -x conftest$ac_exeext
1595 }
1596 then :
1597 ac_retval=0
1598 else case e in #(
1599 e) printf "%s\n" "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1 ;;
1603 esac
1604 fi
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_link
1614
1615 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1616 # -------------------------------------------
1617 # Tests whether TYPE exists after having included INCLUDES, setting cache
1618 # variable VAR accordingly.
1619 ac_fn_c_check_type ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 printf %s "checking for $2... " >&6; }
1624 if eval test \${$3+y}
1625 then :
1626 printf %s "(cached) " >&6
1627 else case e in #(
1628 e) eval "$3=no"
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 $4
1632 int
1633 main (void)
1634 {
1635 if (sizeof ($2))
1636 return 0;
1637 ;
1638 return 0;
1639 }
1640 _ACEOF
1641 if ac_fn_c_try_compile "$LINENO"
1642 then :
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 $4
1646 int
1647 main (void)
1648 {
1649 if (sizeof (($2)))
1650 return 0;
1651 ;
1652 return 0;
1653 }
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"
1656 then :
1657
1658 else case e in #(
1659 e) eval "$3=yes" ;;
1660 esac
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1665 esac
1666 fi
1667 eval ac_res=\$$3
1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 printf "%s\n" "$ac_res" >&6; }
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_type
1673
1674 # ac_fn_c_check_func LINENO FUNC VAR
1675 # ----------------------------------
1676 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1677 ac_fn_c_check_func ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 printf %s "checking for $2... " >&6; }
1682 if eval test \${$3+y}
1683 then :
1684 printf %s "(cached) " >&6
1685 else case e in #(
1686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1690 #define $2 innocuous_$2
1691
1692 /* System header to define __stub macros and hopefully few prototypes,
1693 which can conflict with char $2 (void); below. */
1694
1695 #include <limits.h>
1696 #undef $2
1697
1698 /* Override any GCC internal prototype to avoid an error.
1699 Use char because int might match the return type of a GCC
1700 builtin and then its argument prototype would still apply. */
1701 #ifdef __cplusplus
1702 extern "C"
1703 #endif
1704 char $2 (void);
1705 /* The GNU C library defines this for functions which it implements
1706 to always fail with ENOSYS. Some functions are actually named
1707 something starting with __ and the normal name is an alias. */
1708 #if defined __stub_$2 || defined __stub___$2
1709 choke me
1710 #endif
1711
1712 int
1713 main (void)
1714 {
1715 return $2 ();
1716 ;
1717 return 0;
1718 }
1719 _ACEOF
1720 if ac_fn_c_try_link "$LINENO"
1721 then :
1722 eval "$3=yes"
1723 else case e in #(
1724 e) eval "$3=no" ;;
1725 esac
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1728 conftest$ac_exeext conftest.$ac_ext ;;
1729 esac
1730 fi
1731 eval ac_res=\$$3
1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 printf "%s\n" "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_func
1737
1738 # ac_fn_c_try_run LINENO
1739 # ----------------------
1740 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1741 # executables *can* be run.
1742 ac_fn_c_try_run ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 printf "%s\n" "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 printf "%s\n" "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }
1766 then :
1767 ac_retval=0
1768 else case e in #(
1769 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1770 printf "%s\n" "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=$ac_status ;;
1774 esac
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1783 # ------------------------------------------------------------------
1784 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1785 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1786 ac_fn_check_decl ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 as_decl_name=`echo $2|sed 's/ *(.*//'`
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1791 printf %s "checking whether $as_decl_name is declared... " >&6; }
1792 if eval test \${$3+y}
1793 then :
1794 printf %s "(cached) " >&6
1795 else case e in #(
1796 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1797 eval ac_save_FLAGS=\$$6
1798 as_fn_append $6 " $5"
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 int
1803 main (void)
1804 {
1805 #ifndef $as_decl_name
1806 #ifdef __cplusplus
1807 (void) $as_decl_use;
1808 #else
1809 (void) $as_decl_name;
1810 #endif
1811 #endif
1812
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819 eval "$3=yes"
1820 else case e in #(
1821 e) eval "$3=no" ;;
1822 esac
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1825 eval $6=\$ac_save_FLAGS
1826 ;;
1827 esac
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_check_decl
1835 ac_configure_args_raw=
1836 for ac_arg
1837 do
1838 case $ac_arg in
1839 *\'*)
1840 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841 esac
1842 as_fn_append ac_configure_args_raw " '$ac_arg'"
1843 done
1844
1845 case $ac_configure_args_raw in
1846 *$as_nl*)
1847 ac_safe_unquote= ;;
1848 *)
1849 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1850 ac_unsafe_a="$ac_unsafe_z#~"
1851 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1852 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1853 esac
1854
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1858
1859 It was created by nasm $as_me 3.01, which was
1860 generated by GNU Autoconf 2.72. Invocation command line was
1861
1862 $ $0$ac_configure_args_raw
1863
1864 _ACEOF
1865 exec 5>>config.log
1866 {
1867 cat <<_ASUNAME
1868 ## --------- ##
1869 ## Platform. ##
1870 ## --------- ##
1871
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1877
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1880
1881 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1885 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1888
1889 _ASUNAME
1890
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 case $as_dir in #(((
1896 '') as_dir=./ ;;
1897 */) ;;
1898 *) as_dir=$as_dir/ ;;
1899 esac
1900 printf "%s\n" "PATH: $as_dir"
1901 done
1902 IFS=$as_save_IFS
1903
1904 } >&5
1905
1906 cat >&5 <<_ACEOF
1907
1908
1909 ## ----------- ##
1910 ## Core tests. ##
1911 ## ----------- ##
1912
1913 _ACEOF
1914
1915
1916 # Keep a trace of the command line.
1917 # Strip out --no-create and --no-recursion so they do not pile up.
1918 # Strip out --silent because we don't want to record it for future runs.
1919 # Also quote any args containing shell meta-characters.
1920 # Make two passes to allow for proper duplicate-argument suppression.
1921 ac_configure_args=
1922 ac_configure_args0=
1923 ac_configure_args1=
1924 ac_must_keep_next=false
1925 for ac_pass in 1 2
1926 do
1927 for ac_arg
1928 do
1929 case $ac_arg in
1930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1932 | -silent | --silent | --silen | --sile | --sil)
1933 continue ;;
1934 *\'*)
1935 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 esac
1937 case $ac_pass in
1938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1939 2)
1940 as_fn_append ac_configure_args1 " '$ac_arg'"
1941 if test $ac_must_keep_next = true; then
1942 ac_must_keep_next=false # Got value, back to normal.
1943 else
1944 case $ac_arg in
1945 *=* | --config-cache | -C | -disable-* | --disable-* \
1946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1948 | -with-* | --with-* | -without-* | --without-* | --x)
1949 case "$ac_configure_args0 " in
1950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1951 esac
1952 ;;
1953 -* ) ac_must_keep_next=true ;;
1954 esac
1955 fi
1956 as_fn_append ac_configure_args " '$ac_arg'"
1957 ;;
1958 esac
1959 done
1960 done
1961 { ac_configure_args0=; unset ac_configure_args0;}
1962 { ac_configure_args1=; unset ac_configure_args1;}
1963
1964 # When interrupted or exit'd, cleanup temporary files, and complete
1965 # config.log. We remove comments because anyway the quotes in there
1966 # would cause problems or look ugly.
1967 # WARNING: Use '\'' to represent an apostrophe within the trap.
1968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1969 trap 'exit_status=$?
1970 # Sanitize IFS.
1971 IFS=" "" $as_nl"
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 printf "%s\n" "## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##"
1979 echo
1980 # The following way of writing the cache mishandles newlines in values,
1981 (
1982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in #(
1985 *${as_nl}*)
1986 case $ac_var in #(
1987 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1989 esac
1990 case $ac_var in #(
1991 _ | IFS | as_nl) ;; #(
1992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993 *) { eval $ac_var=; unset $ac_var;} ;;
1994 esac ;;
1995 esac
1996 done
1997 (set) 2>&1 |
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2000 sed -n \
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003 ;; #(
2004 *)
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 ;;
2007 esac |
2008 sort
2009 )
2010 echo
2011
2012 printf "%s\n" "## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##"
2015 echo
2016 for ac_var in $ac_subst_vars
2017 do
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 printf "%s\n" "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2025
2026 if test -n "$ac_subst_files"; then
2027 printf "%s\n" "## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##"
2030 echo
2031 for ac_var in $ac_subst_files
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 printf "%s\n" "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040 fi
2041
2042 if test -s confdefs.h; then
2043 printf "%s\n" "## ----------- ##
2044 ## confdefs.h. ##
2045 ## ----------- ##"
2046 echo
2047 cat confdefs.h
2048 echo
2049 fi
2050 test "$ac_signal" != 0 &&
2051 printf "%s\n" "$as_me: caught signal $ac_signal"
2052 printf "%s\n" "$as_me: exit $exit_status"
2053 } >&5
2054 rm -f core *.core core.conftest.* &&
2055 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2056 exit $exit_status
2057 ' 0
2058 for ac_signal in 1 2 13 15; do
2059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 done
2061 ac_signal=0
2062
2063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2064 rm -f -r conftest* confdefs.h
2065
2066 printf "%s\n" "/* confdefs.h */" > confdefs.h
2067
2068 # Predefined preprocessor variables.
2069
2070 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2073
2074 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2075
2076 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2077
2078 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2079
2080 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2081
2082
2083 # Let the site file select an alternate cache file if it wants to.
2084 # Prefer an explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086 ac_site_files="$CONFIG_SITE"
2087 elif test "x$prefix" != xNONE; then
2088 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2089 else
2090 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2091 fi
2092
2093 for ac_site_file in $ac_site_files
2094 do
2095 case $ac_site_file in #(
2096 */*) :
2097 ;; #(
2098 *) :
2099 ac_site_file=./$ac_site_file ;;
2100 esac
2101 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2103 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2105 . "$ac_site_file" \
2106 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2107 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2108 as_fn_error $? "failed to load site script $ac_site_file
2109 See 'config.log' for more details" "$LINENO" 5; }
2110 fi
2111 done
2112
2113 if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special files
2115 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2116 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2123 fi
2124 else
2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2128 fi
2129
2130 # Test code for whether the C compiler supports C89 (global declarations)
2131 ac_c_conftest_c89_globals='
2132 /* Does the compiler advertise C89 conformance?
2133 Do not test the value of __STDC__, because some compilers set it to 0
2134 while being otherwise adequately conformant. */
2135 #if !defined __STDC__
2136 # error "Compiler does not advertise C89 conformance"
2137 #endif
2138
2139 #include <stddef.h>
2140 #include <stdarg.h>
2141 struct stat;
2142 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2143 struct buf { int x; };
2144 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2145 static char *e (char **p, int i)
2146 {
2147 return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151 char *s;
2152 va_list v;
2153 va_start (v,p);
2154 s = g (p, va_arg (v,int));
2155 va_end (v);
2156 return s;
2157 }
2158
2159 /* C89 style stringification. */
2160 #define noexpand_stringify(a) #a
2161 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2162
2163 /* C89 style token pasting. Exercises some of the corner cases that
2164 e.g. old MSVC gets wrong, but not very hard. */
2165 #define noexpand_concat(a,b) a##b
2166 #define expand_concat(a,b) noexpand_concat(a,b)
2167 extern int vA;
2168 extern int vbee;
2169 #define aye A
2170 #define bee B
2171 int *pvA = &expand_concat(v,aye);
2172 int *pvbee = &noexpand_concat(v,bee);
2173
2174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2175 function prototypes and stuff, but not \xHH hex character constants.
2176 These do not provoke an error unfortunately, instead are silently treated
2177 as an "x". The following induces an error, until -std is added to get
2178 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2179 array size at least. It is necessary to write \x00 == 0 to get something
2180 that is true only with -std. */
2181 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2182
2183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2184 inside strings and character constants. */
2185 #define FOO(x) '\''x'\''
2186 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2187
2188 int test (int i, double x);
2189 struct s1 {int (*f) (int a);};
2190 struct s2 {int (*f) (double a);};
2191 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2192 int, int);'
2193
2194 # Test code for whether the C compiler supports C89 (body of main).
2195 ac_c_conftest_c89_main='
2196 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2197 '
2198
2199 # Test code for whether the C compiler supports C99 (global declarations)
2200 ac_c_conftest_c99_globals='
2201 /* Does the compiler advertise C99 conformance? */
2202 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2203 # error "Compiler does not advertise C99 conformance"
2204 #endif
2205
2206 // See if C++-style comments work.
2207
2208 #include <stdbool.h>
2209 extern int puts (const char *);
2210 extern int printf (const char *, ...);
2211 extern int dprintf (int, const char *, ...);
2212 extern void *malloc (size_t);
2213 extern void free (void *);
2214
2215 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2216 // dprintf is used instead of fprintf to avoid needing to declare
2217 // FILE and stderr.
2218 #define debug(...) dprintf (2, __VA_ARGS__)
2219 #define showlist(...) puts (#__VA_ARGS__)
2220 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2221 static void
2222 test_varargs_macros (void)
2223 {
2224 int x = 1234;
2225 int y = 5678;
2226 debug ("Flag");
2227 debug ("X = %d\n", x);
2228 showlist (The first, second, and third items.);
2229 report (x>y, "x is %d but y is %d", x, y);
2230 }
2231
2232 // Check long long types.
2233 #define BIG64 18446744073709551615ull
2234 #define BIG32 4294967295ul
2235 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2236 #if !BIG_OK
2237 #error "your preprocessor is broken"
2238 #endif
2239 #if BIG_OK
2240 #else
2241 #error "your preprocessor is broken"
2242 #endif
2243 static long long int bignum = -9223372036854775807LL;
2244 static unsigned long long int ubignum = BIG64;
2245
2246 struct incomplete_array
2247 {
2248 int datasize;
2249 double data[];
2250 };
2251
2252 struct named_init {
2253 int number;
2254 const wchar_t *name;
2255 double average;
2256 };
2257
2258 typedef const char *ccp;
2259
2260 static inline int
2261 test_restrict (ccp restrict text)
2262 {
2263 // Iterate through items via the restricted pointer.
2264 // Also check for declarations in for loops.
2265 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2266 continue;
2267 return 0;
2268 }
2269
2270 // Check varargs and va_copy.
2271 static bool
2272 test_varargs (const char *format, ...)
2273 {
2274 va_list args;
2275 va_start (args, format);
2276 va_list args_copy;
2277 va_copy (args_copy, args);
2278
2279 const char *str = "";
2280 int number = 0;
2281 float fnumber = 0;
2282
2283 while (*format)
2284 {
2285 switch (*format++)
2286 {
2287 case '\''s'\'': // string
2288 str = va_arg (args_copy, const char *);
2289 break;
2290 case '\''d'\'': // int
2291 number = va_arg (args_copy, int);
2292 break;
2293 case '\''f'\'': // float
2294 fnumber = va_arg (args_copy, double);
2295 break;
2296 default:
2297 break;
2298 }
2299 }
2300 va_end (args_copy);
2301 va_end (args);
2302
2303 return *str && number && fnumber;
2304 }
2305 '
2306
2307 # Test code for whether the C compiler supports C99 (body of main).
2308 ac_c_conftest_c99_main='
2309 // Check bool.
2310 _Bool success = false;
2311 success |= (argc != 0);
2312
2313 // Check restrict.
2314 if (test_restrict ("String literal") == 0)
2315 success = true;
2316 char *restrict newvar = "Another string";
2317
2318 // Check varargs.
2319 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2320 test_varargs_macros ();
2321
2322 // Check flexible array members.
2323 struct incomplete_array *ia =
2324 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2325 ia->datasize = 10;
2326 for (int i = 0; i < ia->datasize; ++i)
2327 ia->data[i] = i * 1.234;
2328 // Work around memory leak warnings.
2329 free (ia);
2330
2331 // Check named initializers.
2332 struct named_init ni = {
2333 .number = 34,
2334 .name = L"Test wide string",
2335 .average = 543.34343,
2336 };
2337
2338 ni.number = 58;
2339
2340 int dynamic_array[ni.number];
2341 dynamic_array[0] = argv[0][0];
2342 dynamic_array[ni.number - 1] = 543;
2343
2344 // work around unused variable warnings
2345 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2346 || dynamic_array[ni.number - 1] != 543);
2347 '
2348
2349 # Test code for whether the C compiler supports C11 (global declarations)
2350 ac_c_conftest_c11_globals='
2351 /* Does the compiler advertise C11 conformance? */
2352 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2353 # error "Compiler does not advertise C11 conformance"
2354 #endif
2355
2356 // Check _Alignas.
2357 char _Alignas (double) aligned_as_double;
2358 char _Alignas (0) no_special_alignment;
2359 extern char aligned_as_int;
2360 char _Alignas (0) _Alignas (int) aligned_as_int;
2361
2362 // Check _Alignof.
2363 enum
2364 {
2365 int_alignment = _Alignof (int),
2366 int_array_alignment = _Alignof (int[100]),
2367 char_alignment = _Alignof (char)
2368 };
2369 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2370
2371 // Check _Noreturn.
2372 int _Noreturn does_not_return (void) { for (;;) continue; }
2373
2374 // Check _Static_assert.
2375 struct test_static_assert
2376 {
2377 int x;
2378 _Static_assert (sizeof (int) <= sizeof (long int),
2379 "_Static_assert does not work in struct");
2380 long int y;
2381 };
2382
2383 // Check UTF-8 literals.
2384 #define u8 syntax error!
2385 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2386
2387 // Check duplicate typedefs.
2388 typedef long *long_ptr;
2389 typedef long int *long_ptr;
2390 typedef long_ptr long_ptr;
2391
2392 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2393 struct anonymous
2394 {
2395 union {
2396 struct { int i; int j; };
2397 struct { int k; long int l; } w;
2398 };
2399 int m;
2400 } v1;
2401 '
2402
2403 # Test code for whether the C compiler supports C11 (body of main).
2404 ac_c_conftest_c11_main='
2405 _Static_assert ((offsetof (struct anonymous, i)
2406 == offsetof (struct anonymous, w.k)),
2407 "Anonymous union alignment botch");
2408 v1.i = 2;
2409 v1.w.k = 5;
2410 ok |= v1.i != 5;
2411 '
2412
2413 # Test code for whether the C compiler supports C11 (complete).
2414 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2415 ${ac_c_conftest_c99_globals}
2416 ${ac_c_conftest_c11_globals}
2417
2418 int
2419 main (int argc, char **argv)
2420 {
2421 int ok = 0;
2422 ${ac_c_conftest_c89_main}
2423 ${ac_c_conftest_c99_main}
2424 ${ac_c_conftest_c11_main}
2425 return ok;
2426 }
2427 "
2428
2429 # Test code for whether the C compiler supports C99 (complete).
2430 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2431 ${ac_c_conftest_c99_globals}
2432
2433 int
2434 main (int argc, char **argv)
2435 {
2436 int ok = 0;
2437 ${ac_c_conftest_c89_main}
2438 ${ac_c_conftest_c99_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C89 (complete).
2444 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 return ok;
2452 }
2453 "
2454
2455 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2456 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2457 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2458 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2459 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2460 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2461 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2462 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2463 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2464 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2465 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2466 as_fn_append ac_header_c_list " stdarg.h stdarg_h HAVE_STDARG_H"
2467 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2468 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2469 as_fn_append ac_header_c_list " fcntl.h fcntl_h HAVE_FCNTL_H"
2470 as_fn_append ac_header_c_list " io.h io_h HAVE_IO_H"
2471 as_fn_append ac_header_c_list " stdbit.h stdbit_h HAVE_STDBIT_H"
2472 as_fn_append ac_header_c_list " endian.h endian_h HAVE_ENDIAN_H"
2473 as_fn_append ac_header_c_list " sys/endian.h sys_endian_h HAVE_SYS_ENDIAN_H"
2474 as_fn_append ac_header_c_list " machine/endian.h machine_endian_h HAVE_MACHINE_ENDIAN_H"
2475 as_fn_append ac_header_c_list " byteswap.h byteswap_h HAVE_BYTESWAP_H"
2476 as_fn_append ac_header_c_list " arpa/inet.h arpa_inet_h HAVE_ARPA_INET_H"
2477 as_fn_append ac_header_c_list " intrin.h intrin_h HAVE_INTRIN_H"
2478
2479 # Auxiliary files required by this configure script.
2480 ac_aux_files="install-sh config.guess config.sub"
2481
2482 # Locations in which to look for auxiliary files.
2483 ac_aux_dir_candidates="${srcdir}/autoconf/helpers"
2484
2485 # Search for a directory containing all of the required auxiliary files,
2486 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2487 # If we don't find one directory that contains all the files we need,
2488 # we report the set of missing files from the *first* directory in
2489 # $ac_aux_dir_candidates and give up.
2490 ac_missing_aux_files=""
2491 ac_first_candidate=:
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 as_found=false
2495 for as_dir in $ac_aux_dir_candidates
2496 do
2497 IFS=$as_save_IFS
2498 case $as_dir in #(((
2499 '') as_dir=./ ;;
2500 */) ;;
2501 *) as_dir=$as_dir/ ;;
2502 esac
2503 as_found=:
2504
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2506 ac_aux_dir_found=yes
2507 ac_install_sh=
2508 for ac_aux in $ac_aux_files
2509 do
2510 # As a special case, if "install-sh" is required, that requirement
2511 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2512 # and $ac_install_sh is set appropriately for whichever one is found.
2513 if test x"$ac_aux" = x"install-sh"
2514 then
2515 if test -f "${as_dir}install-sh"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2517 ac_install_sh="${as_dir}install-sh -c"
2518 elif test -f "${as_dir}install.sh"; then
2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2520 ac_install_sh="${as_dir}install.sh -c"
2521 elif test -f "${as_dir}shtool"; then
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2523 ac_install_sh="${as_dir}shtool install -c"
2524 else
2525 ac_aux_dir_found=no
2526 if $ac_first_candidate; then
2527 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2528 else
2529 break
2530 fi
2531 fi
2532 else
2533 if test -f "${as_dir}${ac_aux}"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2535 else
2536 ac_aux_dir_found=no
2537 if $ac_first_candidate; then
2538 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2539 else
2540 break
2541 fi
2542 fi
2543 fi
2544 done
2545 if test "$ac_aux_dir_found" = yes; then
2546 ac_aux_dir="$as_dir"
2547 break
2548 fi
2549 ac_first_candidate=false
2550
2551 as_found=false
2552 done
2553 IFS=$as_save_IFS
2554 if $as_found
2555 then :
2556
2557 else case e in #(
2558 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2559 esac
2560 fi
2561
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 if test -f "${ac_aux_dir}config.guess"; then
2568 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2569 fi
2570 if test -f "${ac_aux_dir}config.sub"; then
2571 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2572 fi
2573 if test -f "$ac_aux_dir/configure"; then
2574 ac_configure="$SHELL ${ac_aux_dir}configure"
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2588 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2592 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2602 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2606 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2610 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2612 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2625 fi
2626 done
2627 if $ac_cache_corrupted; then
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2629 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2633 and start over" "$LINENO" 5
2634 fi
2635 ## -------------------- ##
2636 ## Main body of script. ##
2637 ## -------------------- ##
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647 ac_config_headers="$ac_config_headers config/config.h"
2648
2649 if test "x$prefix" = xNONE; then
2650 printf %s "checking for prefix by " >&6
2651 # Extract the first word of "nasm", so it can be a program name with args.
2652 set dummy nasm; ac_word=$2
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 printf %s "checking for $ac_word... " >&6; }
2655 if test ${ac_cv_path_ac_prefix_program+y}
2656 then :
2657 printf %s "(cached) " >&6
2658 else case e in #(
2659 e) case $ac_prefix_program in
2660 [\\/]* | ?:[\\/]*)
2661 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
2662 ;;
2663 *)
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 case $as_dir in #(((
2669 '') as_dir=./ ;;
2670 */) ;;
2671 *) as_dir=$as_dir/ ;;
2672 esac
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2675 ac_cv_path_ac_prefix_program="$as_dir$ac_word$ac_exec_ext"
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 ;;
2684 esac ;;
2685 esac
2686 fi
2687 ac_prefix_program=$ac_cv_path_ac_prefix_program
2688 if test -n "$ac_prefix_program"; then
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
2690 printf "%s\n" "$ac_prefix_program" >&6; }
2691 else
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 printf "%s\n" "no" >&6; }
2694 fi
2695
2696
2697 if test -n "$ac_prefix_program"; then
2698 prefix=`$as_dirname -- "$ac_prefix_program" ||
2699 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2700 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2701 X"$ac_prefix_program" : 'X\(//\)$' \| \
2702 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2703 printf "%s\n" X"$ac_prefix_program" |
2704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2705 s//\1/
2706 q
2707 }
2708 /^X\(\/\/\)[^/].*/{
2709 s//\1/
2710 q
2711 }
2712 /^X\(\/\/\)$/{
2713 s//\1/
2714 q
2715 }
2716 /^X\(\/\).*/{
2717 s//\1/
2718 q
2719 }
2720 s/.*/./; q'`
2721 prefix=`$as_dirname -- "$prefix" ||
2722 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2723 X"$prefix" : 'X\(//\)[^/]' \| \
2724 X"$prefix" : 'X\(//\)$' \| \
2725 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2726 printf "%s\n" X"$prefix" |
2727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2728 s//\1/
2729 q
2730 }
2731 /^X\(\/\/\)[^/].*/{
2732 s//\1/
2733 q
2734 }
2735 /^X\(\/\/\)$/{
2736 s//\1/
2737 q
2738 }
2739 /^X\(\/\).*/{
2740 s//\1/
2741 q
2742 }
2743 s/.*/./; q'`
2744 fi
2745 fi
2746
2747
2748
2749
2750
2751
2752
2753
2754 # Make sure we can run config.sub.
2755 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2756 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2757
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2759 printf %s "checking build system type... " >&6; }
2760 if test ${ac_cv_build+y}
2761 then :
2762 printf %s "(cached) " >&6
2763 else case e in #(
2764 e) ac_build_alias=$build_alias
2765 test "x$ac_build_alias" = x &&
2766 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2767 test "x$ac_build_alias" = x &&
2768 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2769 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2770 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2771 ;;
2772 esac
2773 fi
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2775 printf "%s\n" "$ac_cv_build" >&6; }
2776 case $ac_cv_build in
2777 *-*-*) ;;
2778 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2779 esac
2780 build=$ac_cv_build
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_build
2783 shift
2784 build_cpu=$1
2785 build_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 build_os=$*
2790 IFS=$ac_save_IFS
2791 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2792
2793
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2795 printf %s "checking host system type... " >&6; }
2796 if test ${ac_cv_host+y}
2797 then :
2798 printf %s "(cached) " >&6
2799 else case e in #(
2800 e) if test "x$host_alias" = x; then
2801 ac_cv_host=$ac_cv_build
2802 else
2803 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2804 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2805 fi
2806 ;;
2807 esac
2808 fi
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2810 printf "%s\n" "$ac_cv_host" >&6; }
2811 case $ac_cv_host in
2812 *-*-*) ;;
2813 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2814 esac
2815 host=$ac_cv_host
2816 ac_save_IFS=$IFS; IFS='-'
2817 set x $ac_cv_host
2818 shift
2819 host_cpu=$1
2820 host_vendor=$2
2821 shift; shift
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2824 host_os=$*
2825 IFS=$ac_save_IFS
2826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844 # Disable WINE
2845 WINELOADER=/dev/null
2846 export WINELOADER
2847 WINESERVER=/dev/null
2848 export WINESERVER
2849 WINEPREFIX=/dev/null
2850 export WINEPREFIX
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 printf %s "checking for $ac_word... " >&6; }
2875 if test ${ac_cv_prog_CC+y}
2876 then :
2877 printf %s "(cached) " >&6
2878 else case e in #(
2879 e) if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 case $as_dir in #(((
2887 '') as_dir=./ ;;
2888 */) ;;
2889 *) as_dir=$as_dir/ ;;
2890 esac
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi ;;
2902 esac
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 printf "%s\n" "$CC" >&6; }
2908 else
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 printf "%s\n" "no" >&6; }
2911 fi
2912
2913
2914 fi
2915 if test -z "$ac_cv_prog_CC"; then
2916 ac_ct_CC=$CC
2917 # Extract the first word of "gcc", so it can be a program name with args.
2918 set dummy gcc; ac_word=$2
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 printf %s "checking for $ac_word... " >&6; }
2921 if test ${ac_cv_prog_ac_ct_CC+y}
2922 then :
2923 printf %s "(cached) " >&6
2924 else case e in #(
2925 e) if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 case $as_dir in #(((
2933 '') as_dir=./ ;;
2934 */) ;;
2935 *) as_dir=$as_dir/ ;;
2936 esac
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi ;;
2948 esac
2949 fi
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 printf "%s\n" "$ac_ct_CC" >&6; }
2954 else
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 printf "%s\n" "no" >&6; }
2957 fi
2958
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 CC=$ac_ct_CC
2969 fi
2970 else
2971 CC="$ac_cv_prog_CC"
2972 fi
2973
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}cc; ac_word=$2
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 printf %s "checking for $ac_word... " >&6; }
2980 if test ${ac_cv_prog_CC+y}
2981 then :
2982 printf %s "(cached) " >&6
2983 else case e in #(
2984 e) if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 case $as_dir in #(((
2992 '') as_dir=./ ;;
2993 */) ;;
2994 *) as_dir=$as_dir/ ;;
2995 esac
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="${ac_tool_prefix}cc"
2999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi ;;
3007 esac
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 printf "%s\n" "$CC" >&6; }
3013 else
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 printf "%s\n" "no" >&6; }
3016 fi
3017
3018
3019 fi
3020 fi
3021 if test -z "$CC"; then
3022 # Extract the first word of "cc", so it can be a program name with args.
3023 set dummy cc; ac_word=$2
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 printf %s "checking for $ac_word... " >&6; }
3026 if test ${ac_cv_prog_CC+y}
3027 then :
3028 printf %s "(cached) " >&6
3029 else case e in #(
3030 e) if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 ac_prog_rejected=no
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3048 fi
3049 ac_cv_prog_CC="cc"
3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
3061 if test $# != 0; then
3062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
3066 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3067 fi
3068 fi
3069 fi ;;
3070 esac
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 printf "%s\n" "$CC" >&6; }
3076 else
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 printf "%s\n" "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$CC"; then
3084 if test -n "$ac_tool_prefix"; then
3085 for ac_prog in cl.exe
3086 do
3087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 printf %s "checking for $ac_word... " >&6; }
3091 if test ${ac_cv_prog_CC+y}
3092 then :
3093 printf %s "(cached) " >&6
3094 else case e in #(
3095 e) if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 case $as_dir in #(((
3103 '') as_dir=./ ;;
3104 */) ;;
3105 *) as_dir=$as_dir/ ;;
3106 esac
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi ;;
3118 esac
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 printf "%s\n" "$CC" >&6; }
3124 else
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 printf "%s\n" "no" >&6; }
3127 fi
3128
3129
3130 test -n "$CC" && break
3131 done
3132 fi
3133 if test -z "$CC"; then
3134 ac_ct_CC=$CC
3135 for ac_prog in cl.exe
3136 do
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 printf %s "checking for $ac_word... " >&6; }
3141 if test ${ac_cv_prog_ac_ct_CC+y}
3142 then :
3143 printf %s "(cached) " >&6
3144 else case e in #(
3145 e) if test -n "$ac_ct_CC"; then
3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 case $as_dir in #(((
3153 '') as_dir=./ ;;
3154 */) ;;
3155 *) as_dir=$as_dir/ ;;
3156 esac
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_ac_ct_CC="$ac_prog"
3160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163 done
3164 done
3165 IFS=$as_save_IFS
3166
3167 fi ;;
3168 esac
3169 fi
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173 printf "%s\n" "$ac_ct_CC" >&6; }
3174 else
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 printf "%s\n" "no" >&6; }
3177 fi
3178
3179
3180 test -n "$ac_ct_CC" && break
3181 done
3182
3183 if test "x$ac_ct_CC" = x; then
3184 CC=""
3185 else
3186 case $cross_compiling:$ac_tool_warned in
3187 yes:)
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned=yes ;;
3191 esac
3192 CC=$ac_ct_CC
3193 fi
3194 fi
3195
3196 fi
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}clang; ac_word=$2
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 printf %s "checking for $ac_word... " >&6; }
3203 if test ${ac_cv_prog_CC+y}
3204 then :
3205 printf %s "(cached) " >&6
3206 else case e in #(
3207 e) if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 case $as_dir in #(((
3215 '') as_dir=./ ;;
3216 */) ;;
3217 *) as_dir=$as_dir/ ;;
3218 esac
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_CC="${ac_tool_prefix}clang"
3222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227 IFS=$as_save_IFS
3228
3229 fi ;;
3230 esac
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 printf "%s\n" "$CC" >&6; }
3236 else
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 printf "%s\n" "no" >&6; }
3239 fi
3240
3241
3242 fi
3243 if test -z "$ac_cv_prog_CC"; then
3244 ac_ct_CC=$CC
3245 # Extract the first word of "clang", so it can be a program name with args.
3246 set dummy clang; ac_word=$2
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 printf %s "checking for $ac_word... " >&6; }
3249 if test ${ac_cv_prog_ac_ct_CC+y}
3250 then :
3251 printf %s "(cached) " >&6
3252 else case e in #(
3253 e) if test -n "$ac_ct_CC"; then
3254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 case $as_dir in #(((
3261 '') as_dir=./ ;;
3262 */) ;;
3263 *) as_dir=$as_dir/ ;;
3264 esac
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_ac_ct_CC="clang"
3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 fi ;;
3276 esac
3277 fi
3278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279 if test -n "$ac_ct_CC"; then
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3281 printf "%s\n" "$ac_ct_CC" >&6; }
3282 else
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 printf "%s\n" "no" >&6; }
3285 fi
3286
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291 yes:)
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294 ac_tool_warned=yes ;;
3295 esac
3296 CC=$ac_ct_CC
3297 fi
3298 else
3299 CC="$ac_cv_prog_CC"
3300 fi
3301
3302 fi
3303
3304
3305 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3306 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3307 as_fn_error $? "no acceptable C compiler found in \$PATH
3308 See 'config.log' for more details" "$LINENO" 5; }
3309
3310 # Provide some information about the compiler.
3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3312 set X $ac_compile
3313 ac_compiler=$2
3314 for ac_option in --version -v -V -qversion -version; do
3315 { { ac_try="$ac_compiler $ac_option >&5"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 printf "%s\n" "$ac_try_echo"; } >&5
3322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3323 ac_status=$?
3324 if test -s conftest.err; then
3325 sed '10a\
3326 ... rest of stderr output deleted ...
3327 10q' conftest.err >conftest.er1
3328 cat conftest.er1 >&5
3329 fi
3330 rm -f conftest.er1 conftest.err
3331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3333 done
3334
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3337
3338 int
3339 main (void)
3340 {
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3348 # Try to create an executable without -o first, disregard a.out.
3349 # It will help us diagnose broken compilers, and finding out an intuition
3350 # of exeext.
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352 printf %s "checking whether the C compiler works... " >&6; }
3353 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3354
3355 # The possible output files:
3356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3357
3358 ac_rmfiles=
3359 for ac_file in $ac_files
3360 do
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 esac
3365 done
3366 rm -f $ac_rmfiles
3367
3368 if { { ac_try="$ac_link_default"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 printf "%s\n" "$ac_try_echo"; } >&5
3375 (eval "$ac_link_default") 2>&5
3376 ac_status=$?
3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 then :
3380 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3381 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3382 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3383 # so that the user can short-circuit this test for compilers unknown to
3384 # Autoconf.
3385 for ac_file in $ac_files ''
3386 do
3387 test -f "$ac_file" || continue
3388 case $ac_file in
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3390 ;;
3391 [ab].out )
3392 # We found the default executable, but exeext='' is most
3393 # certainly right.
3394 break;;
3395 *.* )
3396 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3397 then :; else
3398 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 fi
3400 # We set ac_cv_exeext here because the later test for it is not
3401 # safe: cross compilers may not add the suffix if given an '-o'
3402 # argument, so we may need to know it at that point already.
3403 # Even if this section looks crufty: it has the advantage of
3404 # actually working.
3405 break;;
3406 * )
3407 break;;
3408 esac
3409 done
3410 test "$ac_cv_exeext" = no && ac_cv_exeext=
3411
3412 else case e in #(
3413 e) ac_file='' ;;
3414 esac
3415 fi
3416 if test -z "$ac_file"
3417 then :
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 printf "%s\n" "no" >&6; }
3420 printf "%s\n" "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3424 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3425 as_fn_error 77 "C compiler cannot create executables
3426 See 'config.log' for more details" "$LINENO" 5; }
3427 else case e in #(
3428 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429 printf "%s\n" "yes" >&6; } ;;
3430 esac
3431 fi
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3433 printf %s "checking for C compiler default output file name... " >&6; }
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3435 printf "%s\n" "$ac_file" >&6; }
3436 ac_exeext=$ac_cv_exeext
3437
3438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3439 ac_clean_files=$ac_clean_files_save
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3441 printf %s "checking for suffix of executables... " >&6; }
3442 if { { ac_try="$ac_link"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 printf "%s\n" "$ac_try_echo"; } >&5
3449 (eval "$ac_link") 2>&5
3450 ac_status=$?
3451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }
3453 then :
3454 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3455 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3456 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3457 # 'rm'.
3458 for ac_file in conftest.exe conftest conftest.*; do
3459 test -f "$ac_file" || continue
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 break;;
3464 * ) break;;
3465 esac
3466 done
3467 else case e in #(
3468 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3469 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3471 See 'config.log' for more details" "$LINENO" 5; } ;;
3472 esac
3473 fi
3474 rm -f conftest conftest$ac_cv_exeext
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3476 printf "%s\n" "$ac_cv_exeext" >&6; }
3477
3478 rm -f conftest.$ac_ext
3479 EXEEXT=$ac_cv_exeext
3480 ac_exeext=$EXEEXT
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdio.h>
3484 int
3485 main (void)
3486 {
3487 FILE *f = fopen ("conftest.out", "w");
3488 if (!f)
3489 return 1;
3490 return ferror (f) || fclose (f) != 0;
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files="$ac_clean_files conftest.out"
3497 # Check that the compiler produces executables we can run. If not, either
3498 # the compiler is broken, or we cross compile.
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 printf %s "checking whether we are cross compiling... " >&6; }
3501 if test "$cross_compiling" != yes; then
3502 { { ac_try="$ac_link"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 printf "%s\n" "$ac_try_echo"; } >&5
3509 (eval "$ac_link") 2>&5
3510 ac_status=$?
3511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 if { ac_try='./conftest$ac_cv_exeext'
3514 { { case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 printf "%s\n" "$ac_try_echo"; } >&5
3520 (eval "$ac_try") 2>&5
3521 ac_status=$?
3522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; }; then
3524 cross_compiling=no
3525 else
3526 if test "$cross_compiling" = maybe; then
3527 cross_compiling=yes
3528 else
3529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3530 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3531 as_fn_error 77 "cannot run C compiled programs.
3532 If you meant to cross compile, use '--host'.
3533 See 'config.log' for more details" "$LINENO" 5; }
3534 fi
3535 fi
3536 fi
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538 printf "%s\n" "$cross_compiling" >&6; }
3539
3540 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3541 conftest.o conftest.obj conftest.out
3542 ac_clean_files=$ac_clean_files_save
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3544 printf %s "checking for suffix of object files... " >&6; }
3545 if test ${ac_cv_objext+y}
3546 then :
3547 printf %s "(cached) " >&6
3548 else case e in #(
3549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551
3552 int
3553 main (void)
3554 {
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.o conftest.obj
3561 if { { ac_try="$ac_compile"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 printf "%s\n" "$ac_try_echo"; } >&5
3568 (eval "$ac_compile") 2>&5
3569 ac_status=$?
3570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }
3572 then :
3573 for ac_file in conftest.o conftest.obj conftest.*; do
3574 test -f "$ac_file" || continue;
3575 case $ac_file in
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3578 break;;
3579 esac
3580 done
3581 else case e in #(
3582 e) printf "%s\n" "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3586 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3587 as_fn_error $? "cannot compute suffix of object files: cannot compile
3588 See 'config.log' for more details" "$LINENO" 5; } ;;
3589 esac
3590 fi
3591 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3592 esac
3593 fi
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3595 printf "%s\n" "$ac_cv_objext" >&6; }
3596 OBJEXT=$ac_cv_objext
3597 ac_objext=$OBJEXT
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3599 printf %s "checking whether the compiler supports GNU C... " >&6; }
3600 if test ${ac_cv_c_compiler_gnu+y}
3601 then :
3602 printf %s "(cached) " >&6
3603 else case e in #(
3604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main (void)
3609 {
3610 #ifndef __GNUC__
3611 choke me
3612 #endif
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"
3619 then :
3620 ac_compiler_gnu=yes
3621 else case e in #(
3622 e) ac_compiler_gnu=no ;;
3623 esac
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3627 ;;
3628 esac
3629 fi
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634 if test $ac_compiler_gnu = yes; then
3635 GCC=yes
3636 else
3637 GCC=
3638 fi
3639 ac_test_CFLAGS=${CFLAGS+y}
3640 ac_save_CFLAGS=$CFLAGS
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3642 printf %s "checking whether $CC accepts -g... " >&6; }
3643 if test ${ac_cv_prog_cc_g+y}
3644 then :
3645 printf %s "(cached) " >&6
3646 else case e in #(
3647 e) ac_save_c_werror_flag=$ac_c_werror_flag
3648 ac_c_werror_flag=yes
3649 ac_cv_prog_cc_g=no
3650 CFLAGS="-g"
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653
3654 int
3655 main (void)
3656 {
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"
3663 then :
3664 ac_cv_prog_cc_g=yes
3665 else case e in #(
3666 e) CFLAGS=""
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669
3670 int
3671 main (void)
3672 {
3673
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"
3679 then :
3680
3681 else case e in #(
3682 e) ac_c_werror_flag=$ac_save_c_werror_flag
3683 CFLAGS="-g"
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main (void)
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"
3696 then :
3697 ac_cv_prog_cc_g=yes
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3700 esac
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3703 esac
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3706 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3707 esac
3708 fi
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3710 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3711 if test $ac_test_CFLAGS; then
3712 CFLAGS=$ac_save_CFLAGS
3713 elif test $ac_cv_prog_cc_g = yes; then
3714 if test "$GCC" = yes; then
3715 CFLAGS="-g -O2"
3716 else
3717 CFLAGS="-g"
3718 fi
3719 else
3720 if test "$GCC" = yes; then
3721 CFLAGS="-O2"
3722 else
3723 CFLAGS=
3724 fi
3725 fi
3726 ac_prog_cc_stdc=no
3727 if test x$ac_prog_cc_stdc = xno
3728 then :
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3730 printf %s "checking for $CC option to enable C11 features... " >&6; }
3731 if test ${ac_cv_prog_cc_c11+y}
3732 then :
3733 printf %s "(cached) " >&6
3734 else case e in #(
3735 e) ac_cv_prog_cc_c11=no
3736 ac_save_CC=$CC
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739 $ac_c_conftest_c11_program
3740 _ACEOF
3741 for ac_arg in '' -std=gnu11
3742 do
3743 CC="$ac_save_CC $ac_arg"
3744 if ac_fn_c_try_compile "$LINENO"
3745 then :
3746 ac_cv_prog_cc_c11=$ac_arg
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.beam
3749 test "x$ac_cv_prog_cc_c11" != "xno" && break
3750 done
3751 rm -f conftest.$ac_ext
3752 CC=$ac_save_CC ;;
3753 esac
3754 fi
3755
3756 if test "x$ac_cv_prog_cc_c11" = xno
3757 then :
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3759 printf "%s\n" "unsupported" >&6; }
3760 else case e in #(
3761 e) if test "x$ac_cv_prog_cc_c11" = x
3762 then :
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764 printf "%s\n" "none needed" >&6; }
3765 else case e in #(
3766 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3767 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3768 CC="$CC $ac_cv_prog_cc_c11" ;;
3769 esac
3770 fi
3771 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3772 ac_prog_cc_stdc=c11 ;;
3773 esac
3774 fi
3775 fi
3776 if test x$ac_prog_cc_stdc = xno
3777 then :
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3779 printf %s "checking for $CC option to enable C99 features... " >&6; }
3780 if test ${ac_cv_prog_cc_c99+y}
3781 then :
3782 printf %s "(cached) " >&6
3783 else case e in #(
3784 e) ac_cv_prog_cc_c99=no
3785 ac_save_CC=$CC
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 $ac_c_conftest_c99_program
3789 _ACEOF
3790 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3791 do
3792 CC="$ac_save_CC $ac_arg"
3793 if ac_fn_c_try_compile "$LINENO"
3794 then :
3795 ac_cv_prog_cc_c99=$ac_arg
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.beam
3798 test "x$ac_cv_prog_cc_c99" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC ;;
3802 esac
3803 fi
3804
3805 if test "x$ac_cv_prog_cc_c99" = xno
3806 then :
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3808 printf "%s\n" "unsupported" >&6; }
3809 else case e in #(
3810 e) if test "x$ac_cv_prog_cc_c99" = x
3811 then :
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3813 printf "%s\n" "none needed" >&6; }
3814 else case e in #(
3815 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3816 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3817 CC="$CC $ac_cv_prog_cc_c99" ;;
3818 esac
3819 fi
3820 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3821 ac_prog_cc_stdc=c99 ;;
3822 esac
3823 fi
3824 fi
3825 if test x$ac_prog_cc_stdc = xno
3826 then :
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3828 printf %s "checking for $CC option to enable C89 features... " >&6; }
3829 if test ${ac_cv_prog_cc_c89+y}
3830 then :
3831 printf %s "(cached) " >&6
3832 else case e in #(
3833 e) ac_cv_prog_cc_c89=no
3834 ac_save_CC=$CC
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 $ac_c_conftest_c89_program
3838 _ACEOF
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3840 do
3841 CC="$ac_save_CC $ac_arg"
3842 if ac_fn_c_try_compile "$LINENO"
3843 then :
3844 ac_cv_prog_cc_c89=$ac_arg
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.beam
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC ;;
3851 esac
3852 fi
3853
3854 if test "x$ac_cv_prog_cc_c89" = xno
3855 then :
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3857 printf "%s\n" "unsupported" >&6; }
3858 else case e in #(
3859 e) if test "x$ac_cv_prog_cc_c89" = x
3860 then :
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3862 printf "%s\n" "none needed" >&6; }
3863 else case e in #(
3864 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3865 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3866 CC="$CC $ac_cv_prog_cc_c89" ;;
3867 esac
3868 fi
3869 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3870 ac_prog_cc_stdc=c89 ;;
3871 esac
3872 fi
3873 fi
3874
3875 ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880
3881
3882 ac_header= ac_cache=
3883 for ac_item in $ac_header_c_list
3884 do
3885 if test $ac_cache; then
3886 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3887 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3888 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3889 fi
3890 ac_header= ac_cache=
3891 elif test $ac_header; then
3892 ac_cache=$ac_item
3893 else
3894 ac_header=$ac_item
3895 fi
3896 done
3897
3898
3899
3900
3901
3902
3903
3904
3905 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3906 then :
3907
3908 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3909
3910 fi
3911
3912
3913
3914
3915
3916
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3918 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3919 if test ${ac_cv_safe_to_define___extensions__+y}
3920 then :
3921 printf %s "(cached) " >&6
3922 else case e in #(
3923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925
3926 # define __EXTENSIONS__ 1
3927 $ac_includes_default
3928 int
3929 main (void)
3930 {
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_compile "$LINENO"
3937 then :
3938 ac_cv_safe_to_define___extensions__=yes
3939 else case e in #(
3940 e) ac_cv_safe_to_define___extensions__=no ;;
3941 esac
3942 fi
3943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3944 esac
3945 fi
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3947 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3948
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3950 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3951 if test ${ac_cv_should_define__xopen_source+y}
3952 then :
3953 printf %s "(cached) " >&6
3954 else case e in #(
3955 e) ac_cv_should_define__xopen_source=no
3956 if test $ac_cv_header_wchar_h = yes
3957 then :
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960
3961 #include <wchar.h>
3962 mbstate_t x;
3963 int
3964 main (void)
3965 {
3966
3967 ;
3968 return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"
3972 then :
3973
3974 else case e in #(
3975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977
3978 #define _XOPEN_SOURCE 500
3979 #include <wchar.h>
3980 mbstate_t x;
3981 int
3982 main (void)
3983 {
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 if ac_fn_c_try_compile "$LINENO"
3990 then :
3991 ac_cv_should_define__xopen_source=yes
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3994 esac
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3997 fi ;;
3998 esac
3999 fi
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4001 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4002
4003 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4004
4005 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4006
4007 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4008
4009 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4010
4011 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4012
4013 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4014
4015 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4016
4017 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4018
4019 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4020
4021 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4022
4023 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4024
4025 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4026
4027 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4028
4029 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4030
4031 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4032
4033 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4034
4035 if test $ac_cv_header_minix_config_h = yes
4036 then :
4037 MINIX=yes
4038 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4039
4040 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4041
4042 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4043
4044 else case e in #(
4045 e) MINIX= ;;
4046 esac
4047 fi
4048 if test $ac_cv_safe_to_define___extensions__ = yes
4049 then :
4050 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4051
4052 fi
4053 if test $ac_cv_should_define__xopen_source = yes
4054 then :
4055 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4056
4057 fi
4058
4059
4060
4061 ac_includes_default="$ac_includes_default
4062 #ifndef __cplusplus
4063 extern int main(void);
4064 #endif"
4065 _pa_find_flags_done=no
4066
4067 if test x$_pa_find_flags_done != xyes
4068 then :
4069
4070
4071
4072
4073 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4074
4075 if test ${pa_cv_CFLAGS__std_c23+y}
4076 then :
4077 printf %s "(cached) " >&6
4078 else case e in #(
4079 e) as_fn_append CFLAGS ' -std=c23'
4080 pa_cv_CFLAGS__std_c23=yes
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087 if test "x$pa_cv_CFLAGS__std_c23" = xyes
4088 then :
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -std=c23" >&5
4090 printf %s "checking whether $CC accepts -std=c23... " >&6; }
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093
4094 int
4095 main (void)
4096 {
4097
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"
4103 then :
4104
4105 else case e in #(
4106 e) pa_cv_CFLAGS__std_c23=no ;;
4107 esac
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__std_c23" >&5
4111 printf "%s\n" "$pa_cv_CFLAGS__std_c23" >&6; }
4112
4113 fi
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120
4121 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4122 ;;
4123 esac
4124 fi
4125
4126
4127 if test "x$pa_cv_CFLAGS__std_c23" = xyes
4128 then :
4129 as_fn_append CFLAGS ' -std=c23'
4130
4131 printf "%s\n" "#define CFLAGS_STD_C23 1" >>confdefs.h
4132
4133 _pa_find_flags_done=yes
4134 fi
4135
4136
4137
4138
4139
4140 fi
4141 if test x$_pa_find_flags_done != xyes
4142 then :
4143
4144
4145
4146
4147 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4148
4149 if test ${pa_cv_CFLAGS__std_c17+y}
4150 then :
4151 printf %s "(cached) " >&6
4152 else case e in #(
4153 e) as_fn_append CFLAGS ' -std=c17'
4154 pa_cv_CFLAGS__std_c17=yes
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161 if test "x$pa_cv_CFLAGS__std_c17" = xyes
4162 then :
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -std=c17" >&5
4164 printf %s "checking whether $CC accepts -std=c17... " >&6; }
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167
4168 int
4169 main (void)
4170 {
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"
4177 then :
4178
4179 else case e in #(
4180 e) pa_cv_CFLAGS__std_c17=no ;;
4181 esac
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__std_c17" >&5
4185 printf "%s\n" "$pa_cv_CFLAGS__std_c17" >&6; }
4186
4187 fi
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193
4194
4195 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4196 ;;
4197 esac
4198 fi
4199
4200
4201 if test "x$pa_cv_CFLAGS__std_c17" = xyes
4202 then :
4203 as_fn_append CFLAGS ' -std=c17'
4204
4205 printf "%s\n" "#define CFLAGS_STD_C17 1" >>confdefs.h
4206
4207 _pa_find_flags_done=yes
4208 fi
4209
4210
4211
4212
4213
4214 fi
4215 if test x$_pa_find_flags_done != xyes
4216 then :
4217
4218
4219
4220
4221 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4222
4223 if test ${pa_cv_CFLAGS__std_c11+y}
4224 then :
4225 printf %s "(cached) " >&6
4226 else case e in #(
4227 e) as_fn_append CFLAGS ' -std=c11'
4228 pa_cv_CFLAGS__std_c11=yes
4229 ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235 if test "x$pa_cv_CFLAGS__std_c11" = xyes
4236 then :
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -std=c11" >&5
4238 printf %s "checking whether $CC accepts -std=c11... " >&6; }
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241
4242 int
4243 main (void)
4244 {
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 if ac_fn_c_try_compile "$LINENO"
4251 then :
4252
4253 else case e in #(
4254 e) pa_cv_CFLAGS__std_c11=no ;;
4255 esac
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__std_c11" >&5
4259 printf "%s\n" "$pa_cv_CFLAGS__std_c11" >&6; }
4260
4261 fi
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268
4269 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4270 ;;
4271 esac
4272 fi
4273
4274
4275 if test "x$pa_cv_CFLAGS__std_c11" = xyes
4276 then :
4277 as_fn_append CFLAGS ' -std=c11'
4278
4279 printf "%s\n" "#define CFLAGS_STD_C11 1" >>confdefs.h
4280
4281 _pa_find_flags_done=yes
4282 fi
4283
4284
4285
4286
4287
4288 fi
4289 if test x$_pa_find_flags_done != xyes
4290 then :
4291
4292
4293
4294
4295 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4296
4297 if test ${pa_cv_CFLAGS__std_c99+y}
4298 then :
4299 printf %s "(cached) " >&6
4300 else case e in #(
4301 e) as_fn_append CFLAGS ' -std=c99'
4302 pa_cv_CFLAGS__std_c99=yes
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309 if test "x$pa_cv_CFLAGS__std_c99" = xyes
4310 then :
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -std=c99" >&5
4312 printf %s "checking whether $CC accepts -std=c99... " >&6; }
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315
4316 int
4317 main (void)
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"
4325 then :
4326
4327 else case e in #(
4328 e) pa_cv_CFLAGS__std_c99=no ;;
4329 esac
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__std_c99" >&5
4333 printf "%s\n" "$pa_cv_CFLAGS__std_c99" >&6; }
4334
4335 fi
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342
4343 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4344 ;;
4345 esac
4346 fi
4347
4348
4349 if test "x$pa_cv_CFLAGS__std_c99" = xyes
4350 then :
4351 as_fn_append CFLAGS ' -std=c99'
4352
4353 printf "%s\n" "#define CFLAGS_STD_C99 1" >>confdefs.h
4354
4355 _pa_find_flags_done=yes
4356 fi
4357
4358
4359
4360
4361
4362 fi
4363
4364
4365
4366
4367
4368
4369 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4370
4371 if test ${pa_cv_CFLAGS__U__STRICT_ANSI__+y}
4372 then :
4373 printf %s "(cached) " >&6
4374 else case e in #(
4375 e) as_fn_append CFLAGS ' -U__STRICT_ANSI__'
4376 pa_cv_CFLAGS__U__STRICT_ANSI__=yes
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383 if test "x$pa_cv_CFLAGS__U__STRICT_ANSI__" = xyes
4384 then :
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -U__STRICT_ANSI__" >&5
4386 printf %s "checking whether $CC accepts -U__STRICT_ANSI__... " >&6; }
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389
4390 int
4391 main (void)
4392 {
4393
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"
4399 then :
4400
4401 else case e in #(
4402 e) pa_cv_CFLAGS__U__STRICT_ANSI__=no ;;
4403 esac
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__U__STRICT_ANSI__" >&5
4407 printf "%s\n" "$pa_cv_CFLAGS__U__STRICT_ANSI__" >&6; }
4408
4409 fi
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416
4417 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4418 ;;
4419 esac
4420 fi
4421
4422
4423 if test "x$pa_cv_CFLAGS__U__STRICT_ANSI__" = xyes
4424 then :
4425 as_fn_append CFLAGS ' -U__STRICT_ANSI__'
4426
4427 printf "%s\n" "#define CFLAGS_U_STRICT_ANSI_ 1" >>confdefs.h
4428
4429
4430 fi
4431
4432
4433
4434
4435
4436
4437
4438
4439 # Check whether --enable-gdb was given.
4440 if test ${enable_gdb+y}
4441 then :
4442 enableval=$enable_gdb; pa_arg_bool_enableval="$enableval"
4443 else case e in #(
4444 e) pa_arg_bool_enableval="yes" ;;
4445 esac
4446 fi
4447
4448
4449 if test x"$pa_arg_bool_enableval" != xno
4450 then :
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456
4457 _pa_find_flags_done=no
4458
4459 if test x$_pa_find_flags_done != xyes
4460 then :
4461
4462
4463
4464
4465 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4466
4467 if test ${pa_cv_CFLAGS__ggdb3+y}
4468 then :
4469 printf %s "(cached) " >&6
4470 else case e in #(
4471 e) as_fn_append CFLAGS ' -ggdb3'
4472 pa_cv_CFLAGS__ggdb3=yes
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479 if test "x$pa_cv_CFLAGS__ggdb3" = xyes
4480 then :
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -ggdb3" >&5
4482 printf %s "checking whether $CC accepts -ggdb3... " >&6; }
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 int
4487 main (void)
4488 {
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 if ac_fn_c_try_compile "$LINENO"
4495 then :
4496
4497 else case e in #(
4498 e) pa_cv_CFLAGS__ggdb3=no ;;
4499 esac
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__ggdb3" >&5
4503 printf "%s\n" "$pa_cv_CFLAGS__ggdb3" >&6; }
4504
4505 fi
4506 ac_ext=c
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511
4512
4513 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4514 ;;
4515 esac
4516 fi
4517
4518
4519 if test "x$pa_cv_CFLAGS__ggdb3" = xyes
4520 then :
4521 as_fn_append CFLAGS ' -ggdb3'
4522
4523 printf "%s\n" "#define CFLAGS_GGDB3 1" >>confdefs.h
4524
4525 _pa_find_flags_done=yes
4526 fi
4527
4528
4529
4530
4531
4532 fi
4533 if test x$_pa_find_flags_done != xyes
4534 then :
4535
4536
4537
4538
4539 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4540
4541 if test ${pa_cv_CFLAGS__g3+y}
4542 then :
4543 printf %s "(cached) " >&6
4544 else case e in #(
4545 e) as_fn_append CFLAGS ' -g3'
4546 pa_cv_CFLAGS__g3=yes
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552
4553 if test "x$pa_cv_CFLAGS__g3" = xyes
4554 then :
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g3" >&5
4556 printf %s "checking whether $CC accepts -g3... " >&6; }
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559
4560 int
4561 main (void)
4562 {
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570
4571 else case e in #(
4572 e) pa_cv_CFLAGS__g3=no ;;
4573 esac
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__g3" >&5
4577 printf "%s\n" "$pa_cv_CFLAGS__g3" >&6; }
4578
4579 fi
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4588 ;;
4589 esac
4590 fi
4591
4592
4593 if test "x$pa_cv_CFLAGS__g3" = xyes
4594 then :
4595 as_fn_append CFLAGS ' -g3'
4596
4597 printf "%s\n" "#define CFLAGS_G3 1" >>confdefs.h
4598
4599 _pa_find_flags_done=yes
4600 fi
4601
4602
4603
4604
4605
4606 fi
4607 ac_ext=c
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612
4613
4614 else case e in #(
4615 e) ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620
4621 _pa_find_flags_done=no
4622
4623 if test x$_pa_find_flags_done != xyes
4624 then :
4625
4626
4627
4628
4629 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4630
4631 if test ${pa_cv_CFLAGS__g3+y}
4632 then :
4633 printf %s "(cached) " >&6
4634 else case e in #(
4635 e) as_fn_append CFLAGS ' -g3'
4636 pa_cv_CFLAGS__g3=yes
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643 if test "x$pa_cv_CFLAGS__g3" = xyes
4644 then :
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g3" >&5
4646 printf %s "checking whether $CC accepts -g3... " >&6; }
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649
4650 int
4651 main (void)
4652 {
4653
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_compile "$LINENO"
4659 then :
4660
4661 else case e in #(
4662 e) pa_cv_CFLAGS__g3=no ;;
4663 esac
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__g3" >&5
4667 printf "%s\n" "$pa_cv_CFLAGS__g3" >&6; }
4668
4669 fi
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676
4677 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4678 ;;
4679 esac
4680 fi
4681
4682
4683 if test "x$pa_cv_CFLAGS__g3" = xyes
4684 then :
4685 as_fn_append CFLAGS ' -g3'
4686
4687 printf "%s\n" "#define CFLAGS_G3 1" >>confdefs.h
4688
4689 _pa_find_flags_done=yes
4690 fi
4691
4692
4693
4694
4695
4696 fi
4697 ac_ext=c
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702
4703 ;;
4704 esac
4705 fi
4706
4707
4708
4709 # Check whether --enable-debug was given.
4710 if test ${enable_debug+y}
4711 then :
4712 enableval=$enable_debug; pa_arg_bool_enableval="$enableval"
4713 else case e in #(
4714 e) pa_arg_bool_enableval="no" ;;
4715 esac
4716 fi
4717
4718
4719 if test x"$pa_arg_bool_enableval" != xno
4720 then :
4721 ac_ext=c
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726
4727 _pa_find_flags_done=no
4728
4729 if test x$_pa_find_flags_done != xyes
4730 then :
4731
4732
4733
4734
4735 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4736
4737 if test ${pa_cv_CFLAGS__Og+y}
4738 then :
4739 printf %s "(cached) " >&6
4740 else case e in #(
4741 e) as_fn_append CFLAGS ' -Og'
4742 pa_cv_CFLAGS__Og=yes
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749 if test "x$pa_cv_CFLAGS__Og" = xyes
4750 then :
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Og" >&5
4752 printf %s "checking whether $CC accepts -Og... " >&6; }
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755
4756 int
4757 main (void)
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"
4765 then :
4766
4767 else case e in #(
4768 e) pa_cv_CFLAGS__Og=no ;;
4769 esac
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Og" >&5
4773 printf "%s\n" "$pa_cv_CFLAGS__Og" >&6; }
4774
4775 fi
4776 ac_ext=c
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781
4782
4783 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4784 ;;
4785 esac
4786 fi
4787
4788
4789 if test "x$pa_cv_CFLAGS__Og" = xyes
4790 then :
4791 as_fn_append CFLAGS ' -Og'
4792
4793 printf "%s\n" "#define CFLAGS_OG 1" >>confdefs.h
4794
4795 _pa_find_flags_done=yes
4796 fi
4797
4798
4799
4800
4801
4802 fi
4803 if test x$_pa_find_flags_done != xyes
4804 then :
4805
4806
4807
4808
4809 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4810
4811 if test ${pa_cv_CFLAGS__O0+y}
4812 then :
4813 printf %s "(cached) " >&6
4814 else case e in #(
4815 e) as_fn_append CFLAGS ' -O0'
4816 pa_cv_CFLAGS__O0=yes
4817 ac_ext=c
4818 ac_cpp='$CPP $CPPFLAGS'
4819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822
4823 if test "x$pa_cv_CFLAGS__O0" = xyes
4824 then :
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O0" >&5
4826 printf %s "checking whether $CC accepts -O0... " >&6; }
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4829
4830 int
4831 main (void)
4832 {
4833
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"
4839 then :
4840
4841 else case e in #(
4842 e) pa_cv_CFLAGS__O0=no ;;
4843 esac
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__O0" >&5
4847 printf "%s\n" "$pa_cv_CFLAGS__O0" >&6; }
4848
4849 fi
4850 ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
4856
4857 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4858 ;;
4859 esac
4860 fi
4861
4862
4863 if test "x$pa_cv_CFLAGS__O0" = xyes
4864 then :
4865 as_fn_append CFLAGS ' -O0'
4866
4867 printf "%s\n" "#define CFLAGS_O0 1" >>confdefs.h
4868
4869 _pa_find_flags_done=yes
4870 fi
4871
4872
4873
4874
4875
4876 fi
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883
4884
4885 fi
4886
4887
4888
4889 # Check whether --enable-profiling was given.
4890 if test ${enable_profiling+y}
4891 then :
4892 enableval=$enable_profiling; pa_arg_bool_enableval="$enableval"
4893 else case e in #(
4894 e) pa_arg_bool_enableval="no" ;;
4895 esac
4896 fi
4897
4898
4899 if test x"$pa_arg_bool_enableval" != xno
4900 then :
4901 ac_ext=c
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907 _pa_find_flags_done=no
4908
4909 if test x$_pa_find_flags_done != xyes
4910 then :
4911
4912
4913
4914
4915 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
4916
4917 if test ${pa_cv_CFLAGS__pg+y}
4918 then :
4919 printf %s "(cached) " >&6
4920 else case e in #(
4921 e) as_fn_append CFLAGS ' -pg'
4922 pa_cv_CFLAGS__pg=yes
4923 ac_ext=c
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4928
4929 if test "x$pa_cv_CFLAGS__pg" = xyes
4930 then :
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pg" >&5
4932 printf %s "checking whether $CC accepts -pg... " >&6; }
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935
4936 int
4937 main (void)
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"
4945 then :
4946
4947 else case e in #(
4948 e) pa_cv_CFLAGS__pg=no ;;
4949 esac
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__pg" >&5
4953 printf "%s\n" "$pa_cv_CFLAGS__pg" >&6; }
4954
4955 fi
4956 ac_ext=c
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961
4962
4963 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
4964 ;;
4965 esac
4966 fi
4967
4968
4969 if test "x$pa_cv_CFLAGS__pg" = xyes
4970 then :
4971 as_fn_append CFLAGS ' -pg'
4972
4973 printf "%s\n" "#define CFLAGS_PG 1" >>confdefs.h
4974
4975 _pa_find_flags_done=yes
4976 fi
4977
4978
4979
4980
4981
4982 fi
4983 ac_ext=c
4984 ac_cpp='$CPP $CPPFLAGS'
4985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988
4989
4990 fi
4991
4992
4993 # Check whether --enable-largefile was given.
4994 if test ${enable_largefile+y}
4995 then :
4996 enableval=$enable_largefile;
4997 fi
4998 if test "$enable_largefile,$enable_year2038" != no,no
4999 then :
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
5001 printf %s "checking for $CC option to enable large file support... " >&6; }
5002 if test ${ac_cv_sys_largefile_opts+y}
5003 then :
5004 printf %s "(cached) " >&6
5005 else case e in #(
5006 e) ac_save_CC="$CC"
5007 ac_opt_found=no
5008 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
5009 if test x"$ac_opt" != x"none needed"
5010 then :
5011 CC="$ac_save_CC $ac_opt"
5012 fi
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 #include <sys/types.h>
5016 #ifndef FTYPE
5017 # define FTYPE off_t
5018 #endif
5019 /* Check that FTYPE can represent 2**63 - 1 correctly.
5020 We can't simply define LARGE_FTYPE to be 9223372036854775807,
5021 since some C++ compilers masquerading as C compilers
5022 incorrectly reject 9223372036854775807. */
5023 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
5024 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
5025 && LARGE_FTYPE % 2147483647 == 1)
5026 ? 1 : -1];
5027 int
5028 main (void)
5029 {
5030
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"
5036 then :
5037 if test x"$ac_opt" = x"none needed"
5038 then :
5039 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
5040 CC="$CC -DFTYPE=ino_t"
5041 if ac_fn_c_try_compile "$LINENO"
5042 then :
5043
5044 else case e in #(
5045 e) CC="$CC -D_FILE_OFFSET_BITS=64"
5046 if ac_fn_c_try_compile "$LINENO"
5047 then :
5048 ac_opt='-D_FILE_OFFSET_BITS=64'
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
5051 esac
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext conftest.beam
5054 fi
5055 ac_cv_sys_largefile_opts=$ac_opt
5056 ac_opt_found=yes
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5059 test $ac_opt_found = no || break
5060 done
5061 CC="$ac_save_CC"
5062
5063 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
5064 esac
5065 fi
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
5067 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
5068
5069 ac_have_largefile=yes
5070 case $ac_cv_sys_largefile_opts in #(
5071 "none needed") :
5072 ;; #(
5073 "supported through gnulib") :
5074 ;; #(
5075 "support not detected") :
5076 ac_have_largefile=no ;; #(
5077 "-D_FILE_OFFSET_BITS=64") :
5078
5079 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
5080 ;; #(
5081 "-D_LARGE_FILES=1") :
5082
5083 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
5084 ;; #(
5085 "-n32") :
5086 CC="$CC -n32" ;; #(
5087 *) :
5088 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
5089 esac
5090
5091 if test "$enable_year2038" != no
5092 then :
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
5094 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
5095 if test ${ac_cv_sys_year2038_opts+y}
5096 then :
5097 printf %s "(cached) " >&6
5098 else case e in #(
5099 e) ac_save_CPPFLAGS="$CPPFLAGS"
5100 ac_opt_found=no
5101 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
5102 if test x"$ac_opt" != x"none needed"
5103 then :
5104 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
5105 fi
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108
5109 #include <time.h>
5110 /* Check that time_t can represent 2**32 - 1 correctly. */
5111 #define LARGE_TIME_T \\
5112 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
5113 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
5114 && LARGE_TIME_T % 65537 == 0)
5115 ? 1 : -1];
5116
5117 int
5118 main (void)
5119 {
5120
5121 ;
5122 return 0;
5123 }
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"
5126 then :
5127 ac_cv_sys_year2038_opts="$ac_opt"
5128 ac_opt_found=yes
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5131 test $ac_opt_found = no || break
5132 done
5133 CPPFLAGS="$ac_save_CPPFLAGS"
5134 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
5135 esac
5136 fi
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
5138 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
5139
5140 ac_have_year2038=yes
5141 case $ac_cv_sys_year2038_opts in #(
5142 "none needed") :
5143 ;; #(
5144 "support not detected") :
5145 ac_have_year2038=no ;; #(
5146 "-D_TIME_BITS=64") :
5147
5148 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
5149 ;; #(
5150 "-D__MINGW_USE_VC2005_COMPAT") :
5151
5152 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
5153 ;; #(
5154 "-U_USE_32_BIT_TIME_T"*) :
5155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5156 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5157 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
5158 will stop working after mid-January 2038. Remove
5159 _USE_32BIT_TIME_T from the compiler flags.
5160 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5161 *) :
5162 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
5163 esac
5164
5165 fi
5166
5167 fi
5168
5169
5170
5171 # Check whether --enable-panic-abort was given.
5172 if test ${enable_panic_abort+y}
5173 then :
5174 enableval=$enable_panic_abort; pa_arg_bool_enableval="$enableval"
5175 else case e in #(
5176 e) pa_arg_bool_enableval="no" ;;
5177 esac
5178 fi
5179
5180
5181 if test x"$pa_arg_bool_enableval" != xno
5182 then :
5183 printf "%s\n" "#define ABORT_ON_PANIC 1" >>confdefs.h
5184
5185 fi
5186
5187
5188
5189
5190 # Check whether --with-zlib was given.
5191 if test ${with_zlib+y}
5192 then :
5193 withval=$with_zlib; if test "x$with_zlib" = xno
5194 then :
5195 ac_cv_search_inflate=no
5196 else case e in #(
5197 e) if test -d "x$with_zlib"
5198 then :
5199 for p in "$with_zlib"/include "$with_zlib"
5200 do
5201 if test -d "$p"
5202 then :
5203 CPPFLAGS="$CPPFLAGS -I$p"
5204 fi
5205 done
5206 for p in "$with_zlib"/lib64 "$with_zlib"/lib "$with_zlib"
5207 do
5208 if test -d "$p"
5209 then :
5210 LDFLAGS="-L$p $LDFLAGS"
5211 fi
5212 done
5213 fi ;;
5214 esac
5215 fi
5216 fi
5217
5218
5219 if test "x$ac_cv_search_inflate" != xno
5220 then :
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inflate" >&5
5222 printf %s "checking for library containing inflate... " >&6; }
5223 if test ${ac_cv_search_inflate+y}
5224 then :
5225 printf %s "(cached) " >&6
5226 else case e in #(
5227 e) ac_func_search_save_LIBS=$LIBS
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230
5231 /* Override any GCC internal prototype to avoid an error.
5232 Use char because int might match the return type of a GCC
5233 builtin and then its argument prototype would still apply.
5234 The 'extern "C"' is for builds by C++ compilers;
5235 although this is not generally supported in C code supporting it here
5236 has little cost and some practical benefit (sr 110532). */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 char inflate (void);
5241 int
5242 main (void)
5243 {
5244 return inflate ();
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 for ac_lib in '' z zlib
5250 do
5251 if test -z "$ac_lib"; then
5252 ac_res="none required"
5253 else
5254 ac_res=-l$ac_lib
5255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5256 fi
5257 if ac_fn_c_try_link "$LINENO"
5258 then :
5259 ac_cv_search_inflate=$ac_res
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5262 conftest$ac_exeext
5263 if test ${ac_cv_search_inflate+y}
5264 then :
5265 break
5266 fi
5267 done
5268 if test ${ac_cv_search_inflate+y}
5269 then :
5270
5271 else case e in #(
5272 e) ac_cv_search_inflate=no ;;
5273 esac
5274 fi
5275 rm conftest.$ac_ext
5276 LIBS=$ac_func_search_save_LIBS ;;
5277 esac
5278 fi
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflate" >&5
5280 printf "%s\n" "$ac_cv_search_inflate" >&6; }
5281 ac_res=$ac_cv_search_inflate
5282 if test "$ac_res" != no
5283 then :
5284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5285
5286 fi
5287
5288 fi
5289
5290 if test "x$ac_cv_search_inflate" = xno
5291 then :
5292 ZLIB='$(ZLIBOBJ)'
5293
5294 ZLIBINC='-I$(top_srcdir)/zlib'
5295
5296 fi
5297
5298 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5299 if test "x$ac_cv_type_size_t" = xyes
5300 then :
5301
5302 else case e in #(
5303 e)
5304 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5305 ;;
5306 esac
5307 fi
5308
5309
5310
5311
5312
5313
5314 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
5315
5316 if test ${pa_cv_CFLAGS__Werror_unknown_warning_option+y}
5317 then :
5318 printf %s "(cached) " >&6
5319 else case e in #(
5320 e) as_fn_append CFLAGS ' -Werror=unknown-warning-option'
5321 pa_cv_CFLAGS__Werror_unknown_warning_option=yes
5322 ac_ext=c
5323 ac_cpp='$CPP $CPPFLAGS'
5324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5327
5328 if test "x$pa_cv_CFLAGS__Werror_unknown_warning_option" = xyes
5329 then :
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=unknown-warning-option" >&5
5331 printf %s "checking whether $CC accepts -Werror=unknown-warning-option... " >&6; }
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334
5335 int
5336 main (void)
5337 {
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"
5344 then :
5345
5346 else case e in #(
5347 e) pa_cv_CFLAGS__Werror_unknown_warning_option=no ;;
5348 esac
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_unknown_warning_option" >&5
5352 printf "%s\n" "$pa_cv_CFLAGS__Werror_unknown_warning_option" >&6; }
5353
5354 fi
5355 ac_ext=c
5356 ac_cpp='$CPP $CPPFLAGS'
5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360
5361
5362 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
5363 ;;
5364 esac
5365 fi
5366
5367
5368 if test "x$pa_cv_CFLAGS__Werror_unknown_warning_option" = xyes
5369 then :
5370 as_fn_append CFLAGS ' -Werror=unknown-warning-option'
5371
5372 printf "%s\n" "#define CFLAGS_WERROR_UNKNOWN_WARNING_OPTION 1" >>confdefs.h
5373
5374
5375 fi
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
5387
5388 if test ${pa_cv_CFLAGS__fwrapv+y}
5389 then :
5390 printf %s "(cached) " >&6
5391 else case e in #(
5392 e) as_fn_append CFLAGS ' -fwrapv'
5393 pa_cv_CFLAGS__fwrapv=yes
5394 ac_ext=c
5395 ac_cpp='$CPP $CPPFLAGS'
5396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
5400 if test "x$pa_cv_CFLAGS__fwrapv" = xyes
5401 then :
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fwrapv" >&5
5403 printf %s "checking whether $CC accepts -fwrapv... " >&6; }
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406
5407 int
5408 main (void)
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"
5416 then :
5417
5418 else case e in #(
5419 e) pa_cv_CFLAGS__fwrapv=no ;;
5420 esac
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fwrapv" >&5
5424 printf "%s\n" "$pa_cv_CFLAGS__fwrapv" >&6; }
5425
5426 fi
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432
5433
5434 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
5435 ;;
5436 esac
5437 fi
5438
5439
5440 if test "x$pa_cv_CFLAGS__fwrapv" = xyes
5441 then :
5442 as_fn_append CFLAGS ' -fwrapv'
5443
5444 printf "%s\n" "#define CFLAGS_FWRAPV 1" >>confdefs.h
5445
5446
5447 fi
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
5459
5460 if test ${pa_cv_CFLAGS__ftrivial_auto_var_init_zero+y}
5461 then :
5462 printf %s "(cached) " >&6
5463 else case e in #(
5464 e) as_fn_append CFLAGS ' -ftrivial-auto-var-init=zero'
5465 pa_cv_CFLAGS__ftrivial_auto_var_init_zero=yes
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471
5472 if test "x$pa_cv_CFLAGS__ftrivial_auto_var_init_zero" = xyes
5473 then :
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -ftrivial-auto-var-init=zero" >&5
5475 printf %s "checking whether $CC accepts -ftrivial-auto-var-init=zero... " >&6; }
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478
5479 int
5480 main (void)
5481 {
5482
5483 ;
5484 return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_c_try_compile "$LINENO"
5488 then :
5489
5490 else case e in #(
5491 e) pa_cv_CFLAGS__ftrivial_auto_var_init_zero=no ;;
5492 esac
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__ftrivial_auto_var_init_zero" >&5
5496 printf "%s\n" "$pa_cv_CFLAGS__ftrivial_auto_var_init_zero" >&6; }
5497
5498 fi
5499 ac_ext=c
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504
5505
5506 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
5507 ;;
5508 esac
5509 fi
5510
5511
5512 if test "x$pa_cv_CFLAGS__ftrivial_auto_var_init_zero" = xyes
5513 then :
5514 as_fn_append CFLAGS ' -ftrivial-auto-var-init=zero'
5515
5516 printf "%s\n" "#define CFLAGS_FTRIVIAL_AUTO_VAR_INIT_ZERO 1" >>confdefs.h
5517
5518
5519 fi
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
5531
5532 if test ${pa_cv_CFLAGS__fno_common+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else case e in #(
5536 e) as_fn_append CFLAGS ' -fno-common'
5537 pa_cv_CFLAGS__fno_common=yes
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543
5544 if test "x$pa_cv_CFLAGS__fno_common" = xyes
5545 then :
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-common" >&5
5547 printf %s "checking whether $CC accepts -fno-common... " >&6; }
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550
5551 int
5552 main (void)
5553 {
5554
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 if ac_fn_c_try_compile "$LINENO"
5560 then :
5561
5562 else case e in #(
5563 e) pa_cv_CFLAGS__fno_common=no ;;
5564 esac
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fno_common" >&5
5568 printf "%s\n" "$pa_cv_CFLAGS__fno_common" >&6; }
5569
5570 fi
5571 ac_ext=c
5572 ac_cpp='$CPP $CPPFLAGS'
5573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576
5577
5578 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
5579 ;;
5580 esac
5581 fi
5582
5583
5584 if test "x$pa_cv_CFLAGS__fno_common" = xyes
5585 then :
5586 as_fn_append CFLAGS ' -fno-common'
5587
5588 printf "%s\n" "#define CFLAGS_FNO_COMMON 1" >>confdefs.h
5589
5590
5591 fi
5592
5593
5594
5595
5596
5597
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of library files" >&5
5599 printf %s "checking for suffix of library files... " >&6; }
5600 if test x"$LIBEXT" = x; then
5601 case "$OBJEXT" in
5602 obj)
5603 LIBEXT=lib
5604 ;;
5605 *)
5606 LIBEXT=a
5607 ;;
5608 esac
5609 fi
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBEXT" >&5
5611 printf "%s\n" "$LIBEXT" >&6; }
5612
5613
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5615 printf %s "checking whether ln -s works... " >&6; }
5616 LN_S=$as_ln_s
5617 if test "$LN_S" = "ln -s"; then
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619 printf "%s\n" "yes" >&6; }
5620 else
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5622 printf "%s\n" "no, using $LN_S" >&6; }
5623 fi
5624
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5626 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5627 set x ${MAKE-make}
5628 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5629 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5630 then :
5631 printf %s "(cached) " >&6
5632 else case e in #(
5633 e) cat >conftest.make <<\_ACEOF
5634 SHELL = /bin/sh
5635 all:
5636 @echo '@@@%%%=$(MAKE)=@@@%%%'
5637 _ACEOF
5638 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5640 *@@@%%%=?*=@@@%%%*)
5641 eval ac_cv_prog_make_${ac_make}_set=yes;;
5642 *)
5643 eval ac_cv_prog_make_${ac_make}_set=no;;
5644 esac
5645 rm -f conftest.make ;;
5646 esac
5647 fi
5648 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 printf "%s\n" "yes" >&6; }
5651 SET_MAKE=
5652 else
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 printf "%s\n" "no" >&6; }
5655 SET_MAKE="MAKE=${MAKE-make}"
5656 fi
5657
5658
5659 # Find a good install program. We prefer a C program (faster),
5660 # so one script is as good as another. But avoid the broken or
5661 # incompatible versions:
5662 # SysV /etc/install, /usr/sbin/install
5663 # SunOS /usr/etc/install
5664 # IRIX /sbin/install
5665 # AIX /bin/install
5666 # AmigaOS /C/install, which installs bootblocks on floppy discs
5667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5670 # OS/2's system install, which has a completely different semantic
5671 # ./install, which can be erroneously created by make from ./install.sh.
5672 # Reject install programs that cannot install multiple files.
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5674 printf %s "checking for a BSD-compatible install... " >&6; }
5675 if test -z "$INSTALL"; then
5676 if test ${ac_cv_path_install+y}
5677 then :
5678 printf %s "(cached) " >&6
5679 else case e in #(
5680 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683 IFS=$as_save_IFS
5684 case $as_dir in #(((
5685 '') as_dir=./ ;;
5686 */) ;;
5687 *) as_dir=$as_dir/ ;;
5688 esac
5689 # Account for fact that we put trailing slashes in our PATH walk.
5690 case $as_dir in #((
5691 ./ | /[cC]/* | \
5692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5694 /usr/ucb/* ) ;;
5695 *)
5696 # OSF1 and SCO ODT 3.0 have their own names for install.
5697 # Don't use installbsd from OSF since it installs stuff as root
5698 # by default.
5699 for ac_prog in ginstall scoinst install; do
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5702 if test $ac_prog = install &&
5703 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5704 # AIX install. It has an incompatible calling convention.
5705 :
5706 elif test $ac_prog = install &&
5707 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5708 # program-specific install script used by HP pwplus--don't use.
5709 :
5710 else
5711 rm -rf conftest.one conftest.two conftest.dir
5712 echo one > conftest.one
5713 echo two > conftest.two
5714 mkdir conftest.dir
5715 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5716 test -s conftest.one && test -s conftest.two &&
5717 test -s conftest.dir/conftest.one &&
5718 test -s conftest.dir/conftest.two
5719 then
5720 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5721 break 3
5722 fi
5723 fi
5724 fi
5725 done
5726 done
5727 ;;
5728 esac
5729
5730 done
5731 IFS=$as_save_IFS
5732
5733 rm -rf conftest.one conftest.two conftest.dir
5734 ;;
5735 esac
5736 fi
5737 if test ${ac_cv_path_install+y}; then
5738 INSTALL=$ac_cv_path_install
5739 else
5740 # As a last resort, use the slow shell script. Don't cache a
5741 # value for INSTALL within a source directory, because that will
5742 # break other packages using the cache if that directory is
5743 # removed, or if the value is a relative name.
5744 INSTALL=$ac_install_sh
5745 fi
5746 fi
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5748 printf "%s\n" "$INSTALL" >&6; }
5749
5750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5751 # It thinks the first close brace ends the variable substitution.
5752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5753
5754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5755
5756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5757
5758
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
5760 printf %s "checking for a race-free mkdir -p... " >&6; }
5761 if test -z "$MKDIR_P"; then
5762 if test ${ac_cv_path_mkdir+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else case e in #(
5766 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5768 do
5769 IFS=$as_save_IFS
5770 case $as_dir in #(((
5771 '') as_dir=./ ;;
5772 */) ;;
5773 *) as_dir=$as_dir/ ;;
5774 esac
5775 for ac_prog in mkdir gmkdir; do
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
5778 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
5779 'mkdir ('*'coreutils) '* | \
5780 *'BusyBox '* | \
5781 'mkdir (fileutils) '4.1*)
5782 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
5783 break 3;;
5784 esac
5785 done
5786 done
5787 done
5788 IFS=$as_save_IFS
5789 ;;
5790 esac
5791 fi
5792
5793 test -d ./--version && rmdir ./--version
5794 if test ${ac_cv_path_mkdir+y}; then
5795 MKDIR_P="$ac_cv_path_mkdir -p"
5796 else
5797 # As a last resort, use plain mkdir -p,
5798 # in the hope it doesn't have the bugs of ancient mkdir.
5799 MKDIR_P='mkdir -p'
5800 fi
5801 fi
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5803 printf "%s\n" "$MKDIR_P" >&6; }
5804
5805
5806 for ac_prog in nroff
5807 do
5808 # Extract the first word of "$ac_prog", so it can be a program name with args.
5809 set dummy $ac_prog; ac_word=$2
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 printf %s "checking for $ac_word... " >&6; }
5812 if test ${ac_cv_prog_NROFF+y}
5813 then :
5814 printf %s "(cached) " >&6
5815 else case e in #(
5816 e) if test -n "$NROFF"; then
5817 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 case $as_dir in #(((
5824 '') as_dir=./ ;;
5825 */) ;;
5826 *) as_dir=$as_dir/ ;;
5827 esac
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_NROFF="$ac_prog"
5831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834 done
5835 done
5836 IFS=$as_save_IFS
5837
5838 fi ;;
5839 esac
5840 fi
5841 NROFF=$ac_cv_prog_NROFF
5842 if test -n "$NROFF"; then
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5844 printf "%s\n" "$NROFF" >&6; }
5845 else
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 printf "%s\n" "no" >&6; }
5848 fi
5849
5850
5851 test -n "$NROFF" && break
5852 done
5853 test -n "$NROFF" || NROFF="false"
5854
5855 for ac_prog in asciidoc
5856 do
5857 # Extract the first word of "$ac_prog", so it can be a program name with args.
5858 set dummy $ac_prog; ac_word=$2
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 printf %s "checking for $ac_word... " >&6; }
5861 if test ${ac_cv_prog_ASCIIDOC+y}
5862 then :
5863 printf %s "(cached) " >&6
5864 else case e in #(
5865 e) if test -n "$ASCIIDOC"; then
5866 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 case $as_dir in #(((
5873 '') as_dir=./ ;;
5874 */) ;;
5875 *) as_dir=$as_dir/ ;;
5876 esac
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_ASCIIDOC="$ac_prog"
5880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi ;;
5888 esac
5889 fi
5890 ASCIIDOC=$ac_cv_prog_ASCIIDOC
5891 if test -n "$ASCIIDOC"; then
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5893 printf "%s\n" "$ASCIIDOC" >&6; }
5894 else
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 printf "%s\n" "no" >&6; }
5897 fi
5898
5899
5900 test -n "$ASCIIDOC" && break
5901 done
5902 test -n "$ASCIIDOC" || ASCIIDOC="false"
5903
5904 for ac_prog in xmlto
5905 do
5906 # Extract the first word of "$ac_prog", so it can be a program name with args.
5907 set dummy $ac_prog; ac_word=$2
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 printf %s "checking for $ac_word... " >&6; }
5910 if test ${ac_cv_prog_XMLTO+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else case e in #(
5914 e) if test -n "$XMLTO"; then
5915 ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 case $as_dir in #(((
5922 '') as_dir=./ ;;
5923 */) ;;
5924 *) as_dir=$as_dir/ ;;
5925 esac
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_XMLTO="$ac_prog"
5929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936 fi ;;
5937 esac
5938 fi
5939 XMLTO=$ac_cv_prog_XMLTO
5940 if test -n "$XMLTO"; then
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5942 printf "%s\n" "$XMLTO" >&6; }
5943 else
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 printf "%s\n" "no" >&6; }
5946 fi
5947
5948
5949 test -n "$XMLTO" && break
5950 done
5951 test -n "$XMLTO" || XMLTO="false"
5952
5953 for ac_prog in xz
5954 do
5955 # Extract the first word of "$ac_prog", so it can be a program name with args.
5956 set dummy $ac_prog; ac_word=$2
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 printf %s "checking for $ac_word... " >&6; }
5959 if test ${ac_cv_prog_XZ+y}
5960 then :
5961 printf %s "(cached) " >&6
5962 else case e in #(
5963 e) if test -n "$XZ"; then
5964 ac_cv_prog_XZ="$XZ" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 case $as_dir in #(((
5971 '') as_dir=./ ;;
5972 */) ;;
5973 *) as_dir=$as_dir/ ;;
5974 esac
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_XZ="$ac_prog"
5978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi ;;
5986 esac
5987 fi
5988 XZ=$ac_cv_prog_XZ
5989 if test -n "$XZ"; then
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
5991 printf "%s\n" "$XZ" >&6; }
5992 else
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 printf "%s\n" "no" >&6; }
5995 fi
5996
5997
5998 test -n "$XZ" && break
5999 done
6000 test -n "$XZ" || XZ="false"
6001
6002 for ac_prog in python3 python
6003 do
6004 # Extract the first word of "$ac_prog", so it can be a program name with args.
6005 set dummy $ac_prog; ac_word=$2
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 printf %s "checking for $ac_word... " >&6; }
6008 if test ${ac_cv_prog_PYTHON3+y}
6009 then :
6010 printf %s "(cached) " >&6
6011 else case e in #(
6012 e) if test -n "$PYTHON3"; then
6013 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 case $as_dir in #(((
6020 '') as_dir=./ ;;
6021 */) ;;
6022 *) as_dir=$as_dir/ ;;
6023 esac
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_PYTHON3="$ac_prog"
6027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi ;;
6035 esac
6036 fi
6037 PYTHON3=$ac_cv_prog_PYTHON3
6038 if test -n "$PYTHON3"; then
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
6040 printf "%s\n" "$PYTHON3" >&6; }
6041 else
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 printf "%s\n" "no" >&6; }
6044 fi
6045
6046
6047 test -n "$PYTHON3" && break
6048 done
6049 test -n "$PYTHON3" || PYTHON3="false"
6050
6051
6052 MANPAGES=manpages
6053 if test x$ASCIIDOC = xfalse
6054 then :
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No asciidoc package found, cannot build man pages" >&5
6056 printf "%s\n" "$as_me: WARNING: No asciidoc package found, cannot build man pages" >&2;}
6057 MANPAGES=''
6058
6059 fi
6060 if test x"$XMLTO" = xfalse
6061 then :
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No xmlto package found, cannot build man pages" >&5
6063 printf "%s\n" "$as_me: WARNING: No xmlto package found, cannot build man pages" >&2;}
6064 MANPAGES=''
6065
6066 fi
6067
6068
6069 if test x"$XZ" = xfalse
6070 then :
6071
6072 else case e in #(
6073 e) XZFILES=xzfiles ;;
6074 esac
6075 fi
6076
6077
6078
6079 # Check whether --with-nsis was given.
6080 if test ${with_nsis+y}
6081 then :
6082 withval=$with_nsis;
6083 else case e in #(
6084 e) with_nsis=yes ;;
6085 esac
6086 fi
6087
6088 if test x"$MAKENSIS" = x
6089 then :
6090
6091 else case e in #(
6092 e) if test x"$with_nsis" = xno
6093 then :
6094
6095 with_nsis="$MAKENSIS"
6096 fi ;;
6097 esac
6098 fi
6099
6100 MAKENSIS=false
6101
6102 case $host in #(
6103 *-win* | *-mingw*) :
6104 if test x"$with_nsis" = xno
6105 then :
6106
6107 else case e in #(
6108 e) NSIS=nsis
6109 if test x"$with_nsis" = xyes
6110 then :
6111 if test -n "$ac_tool_prefix"; then
6112 # Extract the first word of "${ac_tool_prefix}makensis", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}makensis; ac_word=$2
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 printf %s "checking for $ac_word... " >&6; }
6116 if test ${ac_cv_prog_MAKENSIS_TOOL+y}
6117 then :
6118 printf %s "(cached) " >&6
6119 else case e in #(
6120 e) if test -n "$MAKENSIS_TOOL"; then
6121 ac_cv_prog_MAKENSIS_TOOL="$MAKENSIS_TOOL" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 case $as_dir in #(((
6128 '') as_dir=./ ;;
6129 */) ;;
6130 *) as_dir=$as_dir/ ;;
6131 esac
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_MAKENSIS_TOOL="${ac_tool_prefix}makensis"
6135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi ;;
6143 esac
6144 fi
6145 MAKENSIS_TOOL=$ac_cv_prog_MAKENSIS_TOOL
6146 if test -n "$MAKENSIS_TOOL"; then
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKENSIS_TOOL" >&5
6148 printf "%s\n" "$MAKENSIS_TOOL" >&6; }
6149 else
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 printf "%s\n" "no" >&6; }
6152 fi
6153
6154
6155 fi
6156 if test -z "$ac_cv_prog_MAKENSIS_TOOL"; then
6157 ac_ct_MAKENSIS_TOOL=$MAKENSIS_TOOL
6158 # Extract the first word of "makensis", so it can be a program name with args.
6159 set dummy makensis; ac_word=$2
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 printf %s "checking for $ac_word... " >&6; }
6162 if test ${ac_cv_prog_ac_ct_MAKENSIS_TOOL+y}
6163 then :
6164 printf %s "(cached) " >&6
6165 else case e in #(
6166 e) if test -n "$ac_ct_MAKENSIS_TOOL"; then
6167 ac_cv_prog_ac_ct_MAKENSIS_TOOL="$ac_ct_MAKENSIS_TOOL" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172 IFS=$as_save_IFS
6173 case $as_dir in #(((
6174 '') as_dir=./ ;;
6175 */) ;;
6176 *) as_dir=$as_dir/ ;;
6177 esac
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_ac_ct_MAKENSIS_TOOL="makensis"
6181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi ;;
6189 esac
6190 fi
6191 ac_ct_MAKENSIS_TOOL=$ac_cv_prog_ac_ct_MAKENSIS_TOOL
6192 if test -n "$ac_ct_MAKENSIS_TOOL"; then
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MAKENSIS_TOOL" >&5
6194 printf "%s\n" "$ac_ct_MAKENSIS_TOOL" >&6; }
6195 else
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 printf "%s\n" "no" >&6; }
6198 fi
6199
6200 if test "x$ac_ct_MAKENSIS_TOOL" = x; then
6201 MAKENSIS_TOOL="false"
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209 MAKENSIS_TOOL=$ac_ct_MAKENSIS_TOOL
6210 fi
6211 else
6212 MAKENSIS_TOOL="$ac_cv_prog_MAKENSIS_TOOL"
6213 fi
6214
6215 MAKENSIS="$MAKENSIS_TOOL"
6216 if test x"$MAKENSIS" = xfalse
6217 then :
6218 for ac_prog in makensis
6219 do
6220 # Extract the first word of "$ac_prog", so it can be a program name with args.
6221 set dummy $ac_prog; ac_word=$2
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 printf %s "checking for $ac_word... " >&6; }
6224 if test ${ac_cv_prog_MAKENSIS_PLAIN+y}
6225 then :
6226 printf %s "(cached) " >&6
6227 else case e in #(
6228 e) if test -n "$MAKENSIS_PLAIN"; then
6229 ac_cv_prog_MAKENSIS_PLAIN="$MAKENSIS_PLAIN" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 case $as_dir in #(((
6236 '') as_dir=./ ;;
6237 */) ;;
6238 *) as_dir=$as_dir/ ;;
6239 esac
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_MAKENSIS_PLAIN="$ac_prog"
6243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi ;;
6251 esac
6252 fi
6253 MAKENSIS_PLAIN=$ac_cv_prog_MAKENSIS_PLAIN
6254 if test -n "$MAKENSIS_PLAIN"; then
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKENSIS_PLAIN" >&5
6256 printf "%s\n" "$MAKENSIS_PLAIN" >&6; }
6257 else
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 printf "%s\n" "no" >&6; }
6260 fi
6261
6262
6263 test -n "$MAKENSIS_PLAIN" && break
6264 done
6265 test -n "$MAKENSIS_PLAIN" || MAKENSIS_PLAIN="false"
6266
6267 MAKENSIS="$MAKENSIS_PLAIN"
6268 fi
6269 if test x"$MAKENSIS" = xfalse
6270 then :
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no makensis found, cannot build installer" >&5
6272 printf "%s\n" "$as_me: WARNING: no makensis found, cannot build installer" >&2;}
6273 NSIS=''
6274 fi
6275 else case e in #(
6276 e) MAKENSIS="$with_nsis" ;;
6277 esac
6278 fi ;;
6279 esac
6280 fi ;; #(
6281 *) :
6282 ;;
6283 esac
6284
6285
6286
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}ar; ac_word=$2
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 printf %s "checking for $ac_word... " >&6; }
6292 if test ${ac_cv_prog_AR+y}
6293 then :
6294 printf %s "(cached) " >&6
6295 else case e in #(
6296 e) if test -n "$AR"; then
6297 ac_cv_prog_AR="$AR" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 case $as_dir in #(((
6304 '') as_dir=./ ;;
6305 */) ;;
6306 *) as_dir=$as_dir/ ;;
6307 esac
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_AR="${ac_tool_prefix}ar"
6311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318 fi ;;
6319 esac
6320 fi
6321 AR=$ac_cv_prog_AR
6322 if test -n "$AR"; then
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6324 printf "%s\n" "$AR" >&6; }
6325 else
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 printf "%s\n" "no" >&6; }
6328 fi
6329
6330
6331 fi
6332 if test -z "$ac_cv_prog_AR"; then
6333 ac_ct_AR=$AR
6334 # Extract the first word of "ar", so it can be a program name with args.
6335 set dummy ar; ac_word=$2
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 printf %s "checking for $ac_word... " >&6; }
6338 if test ${ac_cv_prog_ac_ct_AR+y}
6339 then :
6340 printf %s "(cached) " >&6
6341 else case e in #(
6342 e) if test -n "$ac_ct_AR"; then
6343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 case $as_dir in #(((
6350 '') as_dir=./ ;;
6351 */) ;;
6352 *) as_dir=$as_dir/ ;;
6353 esac
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_AR="ar"
6357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi ;;
6365 esac
6366 fi
6367 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6368 if test -n "$ac_ct_AR"; then
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6370 printf "%s\n" "$ac_ct_AR" >&6; }
6371 else
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 printf "%s\n" "no" >&6; }
6374 fi
6375
6376 if test "x$ac_ct_AR" = x; then
6377 AR=""
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 AR=$ac_ct_AR
6386 fi
6387 else
6388 AR="$ac_cv_prog_AR"
6389 fi
6390
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 printf %s "checking for $ac_word... " >&6; }
6396 if test ${ac_cv_prog_RANLIB+y}
6397 then :
6398 printf %s "(cached) " >&6
6399 else case e in #(
6400 e) if test -n "$RANLIB"; then
6401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 case $as_dir in #(((
6408 '') as_dir=./ ;;
6409 */) ;;
6410 *) as_dir=$as_dir/ ;;
6411 esac
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 fi ;;
6423 esac
6424 fi
6425 RANLIB=$ac_cv_prog_RANLIB
6426 if test -n "$RANLIB"; then
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6428 printf "%s\n" "$RANLIB" >&6; }
6429 else
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 printf "%s\n" "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_RANLIB"; then
6437 ac_ct_RANLIB=$RANLIB
6438 # Extract the first word of "ranlib", so it can be a program name with args.
6439 set dummy ranlib; ac_word=$2
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 printf %s "checking for $ac_word... " >&6; }
6442 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6443 then :
6444 printf %s "(cached) " >&6
6445 else case e in #(
6446 e) if test -n "$ac_ct_RANLIB"; then
6447 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 case $as_dir in #(((
6454 '') as_dir=./ ;;
6455 */) ;;
6456 *) as_dir=$as_dir/ ;;
6457 esac
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_ac_ct_RANLIB="ranlib"
6461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi ;;
6469 esac
6470 fi
6471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6472 if test -n "$ac_ct_RANLIB"; then
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6475 else
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 printf "%s\n" "no" >&6; }
6478 fi
6479
6480 if test "x$ac_ct_RANLIB" = x; then
6481 RANLIB=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 RANLIB=$ac_ct_RANLIB
6490 fi
6491 else
6492 RANLIB="$ac_cv_prog_RANLIB"
6493 fi
6494
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}strip; ac_word=$2
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 printf %s "checking for $ac_word... " >&6; }
6500 if test ${ac_cv_prog_STRIP+y}
6501 then :
6502 printf %s "(cached) " >&6
6503 else case e in #(
6504 e) if test -n "$STRIP"; then
6505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 case $as_dir in #(((
6512 '') as_dir=./ ;;
6513 */) ;;
6514 *) as_dir=$as_dir/ ;;
6515 esac
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 fi ;;
6527 esac
6528 fi
6529 STRIP=$ac_cv_prog_STRIP
6530 if test -n "$STRIP"; then
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6532 printf "%s\n" "$STRIP" >&6; }
6533 else
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 printf "%s\n" "no" >&6; }
6536 fi
6537
6538
6539 fi
6540 if test -z "$ac_cv_prog_STRIP"; then
6541 ac_ct_STRIP=$STRIP
6542 # Extract the first word of "strip", so it can be a program name with args.
6543 set dummy strip; ac_word=$2
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 printf %s "checking for $ac_word... " >&6; }
6546 if test ${ac_cv_prog_ac_ct_STRIP+y}
6547 then :
6548 printf %s "(cached) " >&6
6549 else case e in #(
6550 e) if test -n "$ac_ct_STRIP"; then
6551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556 IFS=$as_save_IFS
6557 case $as_dir in #(((
6558 '') as_dir=./ ;;
6559 */) ;;
6560 *) as_dir=$as_dir/ ;;
6561 esac
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_ac_ct_STRIP="strip"
6565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi ;;
6573 esac
6574 fi
6575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6576 if test -n "$ac_ct_STRIP"; then
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6578 printf "%s\n" "$ac_ct_STRIP" >&6; }
6579 else
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 printf "%s\n" "no" >&6; }
6582 fi
6583
6584 if test "x$ac_ct_STRIP" = x; then
6585 STRIP=""
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593 STRIP=$ac_ct_STRIP
6594 fi
6595 else
6596 STRIP="$ac_cv_prog_STRIP"
6597 fi
6598
6599
6600
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6602 printf %s "checking for an ANSI C-conforming const... " >&6; }
6603 if test ${ac_cv_c_const+y}
6604 then :
6605 printf %s "(cached) " >&6
6606 else case e in #(
6607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609
6610 int
6611 main (void)
6612 {
6613
6614 #ifndef __cplusplus
6615 /* Ultrix mips cc rejects this sort of thing. */
6616 typedef int charset[2];
6617 const charset cs = { 0, 0 };
6618 /* SunOS 4.1.1 cc rejects this. */
6619 char const *const *pcpcc;
6620 char **ppc;
6621 /* NEC SVR4.0.2 mips cc rejects this. */
6622 struct point {int x, y;};
6623 static struct point const zero = {0,0};
6624 /* IBM XL C 1.02.0.0 rejects this.
6625 It does not let you subtract one const X* pointer from another in
6626 an arm of an if-expression whose if-part is not a constant
6627 expression */
6628 const char *g = "string";
6629 pcpcc = &g + (g ? g-g : 0);
6630 /* HPUX 7.0 cc rejects these. */
6631 ++pcpcc;
6632 ppc = (char**) pcpcc;
6633 pcpcc = (char const *const *) ppc;
6634 { /* SCO 3.2v4 cc rejects this sort of thing. */
6635 char tx;
6636 char *t = &tx;
6637 char const *s = 0 ? (char *) 0 : (char const *) 0;
6638
6639 *t++ = 0;
6640 if (s) return 0;
6641 }
6642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6643 int x[] = {25, 17};
6644 const int *foo = &x[0];
6645 ++foo;
6646 }
6647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6648 typedef const int *iptr;
6649 iptr p = 0;
6650 ++p;
6651 }
6652 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6654 struct s { int j; const int *ap[3]; } bx;
6655 struct s *b = &bx; b->j = 5;
6656 }
6657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6658 const int foo = 10;
6659 if (!foo) return 0;
6660 }
6661 return !cs[0] && !zero.x;
6662 #endif
6663
6664 ;
6665 return 0;
6666 }
6667 _ACEOF
6668 if ac_fn_c_try_compile "$LINENO"
6669 then :
6670 ac_cv_c_const=yes
6671 else case e in #(
6672 e) ac_cv_c_const=no ;;
6673 esac
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6676 esac
6677 fi
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6679 printf "%s\n" "$ac_cv_c_const" >&6; }
6680 if test $ac_cv_c_const = no; then
6681
6682 printf "%s\n" "#define const /**/" >>confdefs.h
6683
6684 fi
6685
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6687 printf %s "checking for inline... " >&6; }
6688 if test ${ac_cv_c_inline+y}
6689 then :
6690 printf %s "(cached) " >&6
6691 else case e in #(
6692 e) ac_cv_c_inline=no
6693 for ac_kw in inline __inline__ __inline; do
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #ifndef __cplusplus
6697 typedef int foo_t;
6698 static $ac_kw foo_t static_foo (void) {return 0; }
6699 $ac_kw foo_t foo (void) {return 0; }
6700 #endif
6701
6702 _ACEOF
6703 if ac_fn_c_try_compile "$LINENO"
6704 then :
6705 ac_cv_c_inline=$ac_kw
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6708 test "$ac_cv_c_inline" != no && break
6709 done
6710 ;;
6711 esac
6712 fi
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6714 printf "%s\n" "$ac_cv_c_inline" >&6; }
6715
6716 case $ac_cv_c_inline in
6717 inline | yes) ;;
6718 *)
6719 case $ac_cv_c_inline in
6720 no) ac_val=;;
6721 *) ac_val=$ac_cv_c_inline;;
6722 esac
6723 cat >>confdefs.h <<_ACEOF
6724 #ifndef __cplusplus
6725 #define inline $ac_val
6726 #endif
6727 _ACEOF
6728 ;;
6729 esac
6730
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6732 printf %s "checking for C/C++ restrict keyword... " >&6; }
6733 if test ${ac_cv_c_restrict+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e) ac_cv_c_restrict=no
6738 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
6739 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
6740 # Put 'restrict' last, because C++ lacks it.
6741 for ac_kw in __restrict__ __restrict _Restrict restrict; do
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 typedef int *int_ptr;
6745 int foo (int_ptr $ac_kw ip) { return ip[0]; }
6746 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
6747 int bar (int ip[$ac_kw]) { return ip[0]; }
6748
6749 int
6750 main (void)
6751 {
6752 int s[1];
6753 int *$ac_kw t = s;
6754 t[0] = 0;
6755 return foo (t) + bar (t);
6756
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"
6762 then :
6763 ac_cv_c_restrict=$ac_kw
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6766 test "$ac_cv_c_restrict" != no && break
6767 done
6768 ;;
6769 esac
6770 fi
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6772 printf "%s\n" "$ac_cv_c_restrict" >&6; }
6773
6774 case $ac_cv_c_restrict in
6775 restrict) ;;
6776 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
6777 ;;
6778 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
6779 ;;
6780 esac
6781
6782
6783
6784
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports variadic macros" >&5
6786 printf %s "checking if $CC supports variadic macros... " >&6; }
6787 if test ${pa_cv_variadic_macros+y}
6788 then :
6789 printf %s "(cached) " >&6
6790 else case e in #(
6791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793
6794 $ac_includes_default
6795 #define myprintf(f, ...) printf(f, __VA_ARGS__)
6796 int main(void)
6797 {
6798 myprintf("%s", "Hello, World!\n");
6799 return 0;
6800 }
6801
6802 _ACEOF
6803 if ac_fn_c_try_link "$LINENO"
6804 then :
6805 pa_cv_variadic_macros=yes
6806 else case e in #(
6807 e) pa_cv_variadic_macros=no ;;
6808 esac
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6811 conftest$ac_exeext conftest.$ac_ext ;;
6812 esac
6813 fi
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_variadic_macros" >&5
6815 printf "%s\n" "$pa_cv_variadic_macros" >&6; }
6816 if test "x$pa_cv_variadic_macros" = xyes
6817 then :
6818
6819 printf "%s\n" "#define HAVE_VARIADIC_MACROS 1" >>confdefs.h
6820
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports varadic macro comma dropping" >&5
6822 printf %s "checking if $CC supports varadic macro comma dropping... " >&6; }
6823 if test ${pa_cv_varadic_macros_comma_hack+y}
6824 then :
6825 printf %s "(cached) " >&6
6826 else case e in #(
6827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829
6830 $ac_includes_default
6831 #define myprintf(f, ...) printf(f, ## __VA_ARGS__)
6832 int main(void)
6833 {
6834 myprintf("hello");
6835 return 0;
6836 }
6837
6838 _ACEOF
6839 if ac_fn_c_try_link "$LINENO"
6840 then :
6841
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6844 conftest$ac_exeext conftest.$ac_ext ;;
6845 esac
6846 fi
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_varadic_macros_comma_hack" >&5
6848 printf "%s\n" "$pa_cv_varadic_macros_comma_hack" >&6; }
6849 if test "x$pa_cv_varadic_macros_comma_hack" = xyes
6850 then :
6851
6852 printf "%s\n" "#define HAVE_VARADIC_MACROS_COMMA_HACK 1" >>confdefs.h
6853
6854 fi
6855
6856 fi
6857
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function name constant" >&5
6859 printf %s "checking for function name constant... " >&6; }
6860 if test ${pa_cv_func_name+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else case e in #(
6864 e) pa_cv_func_name=no
6865 for pa_try_func_name in __func__ __FUNCTION__
6866 do :
6867 if test $pa_cv_func_name = no
6868 then :
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871
6872 $ac_includes_default
6873 const char *test_func_name(void);
6874 const char *test_func_name(void)
6875 {
6876 return $pa_try_func_name;
6877 }
6878 int main(void) {
6879 puts(test_func_name());
6880 return 0;
6881 }
6882
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"
6885 then :
6886 pa_cv_func_name=$pa_try_func_name
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6889 conftest$ac_exeext conftest.$ac_ext
6890 fi
6891 done
6892 ;;
6893 esac
6894 fi
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_name" >&5
6896 printf "%s\n" "$pa_cv_func_name" >&6; }
6897 if test $pa_cv_func_name = no
6898 then :
6899
6900 else case e in #(
6901 e)
6902 printf "%s\n" "#define HAVE_FUNC_NAME 1" >>confdefs.h
6903
6904 if test $pa_cv_func_name = __func__
6905 then :
6906
6907 else case e in #(
6908 e)
6909 printf "%s\n" "#define __func__ $pa_cv_func_name" >>confdefs.h
6910 ;;
6911 esac
6912 fi ;;
6913 esac
6914 fi
6915
6916 case $host in #(
6917 *-win* | *-mingw*) :
6918 if test -n "$ac_tool_prefix"; then
6919 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6920 set dummy ${ac_tool_prefix}windres; ac_word=$2
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 printf %s "checking for $ac_word... " >&6; }
6923 if test ${ac_cv_prog_WINDRES+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) if test -n "$WINDRES"; then
6928 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 case $as_dir in #(((
6935 '') as_dir=./ ;;
6936 */) ;;
6937 *) as_dir=$as_dir/ ;;
6938 esac
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi ;;
6950 esac
6951 fi
6952 WINDRES=$ac_cv_prog_WINDRES
6953 if test -n "$WINDRES"; then
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6955 printf "%s\n" "$WINDRES" >&6; }
6956 else
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 printf "%s\n" "no" >&6; }
6959 fi
6960
6961
6962 fi
6963 if test -z "$ac_cv_prog_WINDRES"; then
6964 ac_ct_WINDRES=$WINDRES
6965 # Extract the first word of "windres", so it can be a program name with args.
6966 set dummy windres; ac_word=$2
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 printf %s "checking for $ac_word... " >&6; }
6969 if test ${ac_cv_prog_ac_ct_WINDRES+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else case e in #(
6973 e) if test -n "$ac_ct_WINDRES"; then
6974 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 case $as_dir in #(((
6981 '') as_dir=./ ;;
6982 */) ;;
6983 *) as_dir=$as_dir/ ;;
6984 esac
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_ac_ct_WINDRES="windres"
6988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6989 break 2
6990 fi
6991 done
6992 done
6993 IFS=$as_save_IFS
6994
6995 fi ;;
6996 esac
6997 fi
6998 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6999 if test -n "$ac_ct_WINDRES"; then
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7001 printf "%s\n" "$ac_ct_WINDRES" >&6; }
7002 else
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 printf "%s\n" "no" >&6; }
7005 fi
7006
7007 if test "x$ac_ct_WINDRES" = x; then
7008 WINDRES="false"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011 yes:)
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014 ac_tool_warned=yes ;;
7015 esac
7016 WINDRES=$ac_ct_WINDRES
7017 fi
7018 else
7019 WINDRES="$ac_cv_prog_WINDRES"
7020 fi
7021
7022 if test x"$WINDRES" != xfalse
7023 then :
7024 MANIFEST='win/manifest.$(O)'
7025
7026 fi ;; #(
7027 *) :
7028 ;;
7029 esac
7030
7031
7032 if test "x$ac_cv_header_string_h" = xyes
7033 then :
7034 ac_includes_default="$ac_includes_default
7035 #include <string.h>"
7036
7037 fi
7038
7039
7040
7041 if test "x$ac_cv_header_stdarg_h" = xyes
7042 then :
7043 ac_includes_default="$ac_includes_default
7044 #include <stdarg.h>"
7045
7046 fi
7047
7048
7049 if test "x$ac_cv_header_inttypes_h" = xyes
7050 then :
7051 ac_includes_default="$ac_includes_default
7052 #include <inttypes.h>"
7053
7054 fi
7055
7056 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
7057 if test "x$ac_cv_header_strings_h" = xyes
7058 then :
7059 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
7060
7061 fi
7062
7063 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7064 if test "x$ac_cv_type__Bool" = xyes
7065 then :
7066
7067 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
7068
7069
7070 fi
7071
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
7073 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
7074 if test ${ac_cv_header_stdbool_h+y}
7075 then :
7076 printf %s "(cached) " >&6
7077 else case e in #(
7078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080 #include <stdbool.h>
7081
7082 /* "true" and "false" should be usable in #if expressions and
7083 integer constant expressions, and "bool" should be a valid
7084 type name.
7085
7086 Although C99 requires bool, true, and false to be macros,
7087 C23 and C++11 overrule that, so do not test for that.
7088 Although C99 requires __bool_true_false_are_defined and
7089 _Bool, C23 says they are obsolescent, so do not require
7090 them. */
7091
7092 #if !true
7093 #error "'true' is not true"
7094 #endif
7095 #if true != 1
7096 #error "'true' is not equal to 1"
7097 #endif
7098 char b[true == 1 ? 1 : -1];
7099 char c[true];
7100
7101 #if false
7102 #error "'false' is not false"
7103 #endif
7104 #if false != 0
7105 #error "'false' is not equal to 0"
7106 #endif
7107 char d[false == 0 ? 1 : -1];
7108
7109 enum { e = false, f = true, g = false * true, h = true * 256 };
7110
7111 char i[(bool) 0.5 == true ? 1 : -1];
7112 char j[(bool) 0.0 == false ? 1 : -1];
7113 char k[sizeof (bool) > 0 ? 1 : -1];
7114
7115 struct sb { bool s: 1; bool t; } s;
7116 char l[sizeof s.t > 0 ? 1 : -1];
7117
7118 /* The following fails for
7119 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7120 bool m[h];
7121 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
7122 char o[-1 - (bool) 0 < 0 ? 1 : -1];
7123 /* Catch a bug in an HP-UX C compiler. See
7124 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7125 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
7126 */
7127 bool p = true;
7128 bool *pp = &p;
7129
7130 int
7131 main (void)
7132 {
7133
7134 bool ps = &s;
7135 *pp |= p;
7136 *pp |= ! p;
7137
7138 /* Refer to every declared value, so they cannot be
7139 discarded as unused. */
7140 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7141 + !l + !m + !n + !o + !p + !pp + !ps);
7142
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"
7148 then :
7149 ac_cv_header_stdbool_h=yes
7150 else case e in #(
7151 e) ac_cv_header_stdbool_h=no ;;
7152 esac
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7155 esac
7156 fi
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7158 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
7159
7160 if test $ac_cv_header_stdbool_h = yes; then
7161
7162 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
7163
7164 fi
7165
7166 ac_fn_c_check_header_compile "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default"
7167 if test "x$ac_cv_header_stdnoreturn_h" = xyes
7168 then :
7169 printf "%s\n" "#define HAVE_STDNORETURN_H 1" >>confdefs.h
7170
7171 fi
7172
7173 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
7174 if test "x$ac_cv_header_io_h" = xyes
7175 then :
7176 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
7177
7178 fi
7179
7180 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
7181 if test "x$ac_cv_header_fcntl_h" = xyes
7182 then :
7183 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
7184
7185 fi
7186
7187 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7188 if test "x$ac_cv_header_unistd_h" = xyes
7189 then :
7190 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
7191
7192 fi
7193
7194 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
7195 if test "x$ac_cv_header_sys_mman_h" = xyes
7196 then :
7197 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
7198
7199 fi
7200
7201 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
7202 if test "x$ac_cv_header_sys_types_h" = xyes
7203 then :
7204 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
7205
7206 fi
7207
7208 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
7209 if test "x$ac_cv_header_sys_stat_h" = xyes
7210 then :
7211 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
7212
7213 fi
7214
7215 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
7216 if test "x$ac_cv_header_sys_resource_h" = xyes
7217 then :
7218 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
7219
7220 fi
7221
7222
7223 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
7224 if test "x$ac_cv_func_strcasecmp" = xyes
7225 then :
7226 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
7227
7228 fi
7229 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
7230 if test "x$ac_cv_func_stricmp" = xyes
7231 then :
7232 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
7233
7234 fi
7235
7236 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
7237 if test "x$ac_cv_func_strncasecmp" = xyes
7238 then :
7239 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
7240
7241 fi
7242 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
7243 if test "x$ac_cv_func_strnicmp" = xyes
7244 then :
7245 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
7246
7247 fi
7248
7249 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
7250 if test "x$ac_cv_func_strsep" = xyes
7251 then :
7252 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
7253
7254 fi
7255
7256 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
7257 if test "x$ac_cv_func_strnlen" = xyes
7258 then :
7259 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
7260
7261 fi
7262
7263 ac_fn_c_check_func "$LINENO" "strrchrnul" "ac_cv_func_strrchrnul"
7264 if test "x$ac_cv_func_strrchrnul" = xyes
7265 then :
7266 printf "%s\n" "#define HAVE_STRRCHRNUL 1" >>confdefs.h
7267
7268 fi
7269
7270 ac_fn_c_check_func "$LINENO" "iscntrl" "ac_cv_func_iscntrl"
7271 if test "x$ac_cv_func_iscntrl" = xyes
7272 then :
7273 printf "%s\n" "#define HAVE_ISCNTRL 1" >>confdefs.h
7274
7275 fi
7276
7277 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
7278 if test "x$ac_cv_func_isascii" = xyes
7279 then :
7280 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
7281
7282 fi
7283
7284 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
7285 if test "x$ac_cv_func_mempcpy" = xyes
7286 then :
7287 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
7288
7289 fi
7290
7291 ac_fn_c_check_func "$LINENO" "mempset" "ac_cv_func_mempset"
7292 if test "x$ac_cv_func_mempset" = xyes
7293 then :
7294 printf "%s\n" "#define HAVE_MEMPSET 1" >>confdefs.h
7295
7296 fi
7297
7298
7299 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
7300 if test "x$ac_cv_func_getuid" = xyes
7301 then :
7302 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
7303
7304 fi
7305
7306 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
7307 if test "x$ac_cv_func_getgid" = xyes
7308 then :
7309 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
7310
7311 fi
7312
7313 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
7314 if test "x$ac_cv_func_getrlimit" = xyes
7315 then :
7316 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
7317
7318 fi
7319
7320
7321 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
7322 if test "x$ac_cv_func_realpath" = xyes
7323 then :
7324 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
7325
7326 fi
7327
7328 ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
7329 if test "x$ac_cv_func_canonicalize_file_name" = xyes
7330 then :
7331 printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
7332
7333 fi
7334
7335 ac_fn_c_check_func "$LINENO" "_fullpath" "ac_cv_func__fullpath"
7336 if test "x$ac_cv_func__fullpath" = xyes
7337 then :
7338 printf "%s\n" "#define HAVE__FULLPATH 1" >>confdefs.h
7339
7340 fi
7341
7342 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
7343 if test "x$ac_cv_func_pathconf" = xyes
7344 then :
7345 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
7346
7347 fi
7348
7349
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
7351 printf %s "checking for declarations of fseeko and ftello... " >&6; }
7352 if test ${ac_cv_func_fseeko_ftello+y}
7353 then :
7354 printf %s "(cached) " >&6
7355 else case e in #(
7356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358
7359 #if defined __hpux && !defined _LARGEFILE_SOURCE
7360 # include <limits.h>
7361 # if LONG_MAX >> 31 == 0
7362 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
7363 # endif
7364 #endif
7365 #include <sys/types.h> /* for off_t */
7366 #include <stdio.h>
7367
7368 int
7369 main (void)
7370 {
7371
7372 int (*fp1) (FILE *, off_t, int) = fseeko;
7373 off_t (*fp2) (FILE *) = ftello;
7374 return fseeko (stdin, 0, 0)
7375 && fp1 (stdin, 0, 0)
7376 && ftello (stdin) >= 0
7377 && fp2 (stdin) >= 0;
7378
7379 ;
7380 return 0;
7381 }
7382 _ACEOF
7383 if ac_fn_c_try_compile "$LINENO"
7384 then :
7385 ac_cv_func_fseeko_ftello=yes
7386 else case e in #(
7387 e) ac_save_CPPFLAGS="$CPPFLAGS"
7388 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391
7392 #if defined __hpux && !defined _LARGEFILE_SOURCE
7393 # include <limits.h>
7394 # if LONG_MAX >> 31 == 0
7395 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
7396 # endif
7397 #endif
7398 #include <sys/types.h> /* for off_t */
7399 #include <stdio.h>
7400
7401 int
7402 main (void)
7403 {
7404
7405 int (*fp1) (FILE *, off_t, int) = fseeko;
7406 off_t (*fp2) (FILE *) = ftello;
7407 return fseeko (stdin, 0, 0)
7408 && fp1 (stdin, 0, 0)
7409 && ftello (stdin) >= 0
7410 && fp2 (stdin) >= 0;
7411
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 if ac_fn_c_try_compile "$LINENO"
7417 then :
7418 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
7419 else case e in #(
7420 e) ac_cv_func_fseeko_ftello=no ;;
7421 esac
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7424 esac
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7427 esac
7428 fi
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
7430 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
7431 if test "$ac_cv_func_fseeko_ftello" != no
7432 then :
7433
7434 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
7435
7436 fi
7437 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
7438 then :
7439
7440 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7441
7442 fi
7443
7444 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
7445 if test "x$ac_cv_func__fseeki64" = xyes
7446 then :
7447 printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h
7448
7449 fi
7450
7451 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
7452 if test "x$ac_cv_func_ftruncate" = xyes
7453 then :
7454 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
7455
7456 fi
7457 ac_fn_c_check_func "$LINENO" "_chsize" "ac_cv_func__chsize"
7458 if test "x$ac_cv_func__chsize" = xyes
7459 then :
7460 printf "%s\n" "#define HAVE__CHSIZE 1" >>confdefs.h
7461
7462 fi
7463 ac_fn_c_check_func "$LINENO" "_chsize_s" "ac_cv_func__chsize_s"
7464 if test "x$ac_cv_func__chsize_s" = xyes
7465 then :
7466 printf "%s\n" "#define HAVE__CHSIZE_S 1" >>confdefs.h
7467
7468 fi
7469
7470 ac_fn_c_check_func "$LINENO" "fileno" "ac_cv_func_fileno"
7471 if test "x$ac_cv_func_fileno" = xyes
7472 then :
7473 printf "%s\n" "#define HAVE_FILENO 1" >>confdefs.h
7474
7475 fi
7476 ac_fn_c_check_func "$LINENO" "_fileno" "ac_cv_func__fileno"
7477 if test "x$ac_cv_func__fileno" = xyes
7478 then :
7479 printf "%s\n" "#define HAVE__FILENO 1" >>confdefs.h
7480
7481 fi
7482
7483
7484
7485 ac_func=
7486 for ac_item in $ac_func_c_list
7487 do
7488 if test $ac_func; then
7489 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
7490 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
7491 echo "#define $ac_item 1" >> confdefs.h
7492 fi
7493 ac_func=
7494 else
7495 ac_func=$ac_item
7496 fi
7497 done
7498
7499
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7501 printf %s "checking for working mmap... " >&6; }
7502 if test ${ac_cv_func_mmap_fixed_mapped+y}
7503 then :
7504 printf %s "(cached) " >&6
7505 else case e in #(
7506 e) if test "$cross_compiling" = yes
7507 then :
7508 case "$host_os" in # ((
7509 # Guess yes on platforms where we know the result.
7510 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
7511 # If we don't know, assume the worst.
7512 *) ac_cv_func_mmap_fixed_mapped=no ;;
7513 esac
7514 else case e in #(
7515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 $ac_includes_default
7518 /* malloc might have been renamed as rpl_malloc. */
7519 #undef malloc
7520
7521 /* Thanks to Mike Haertel and Jim Avera for this test.
7522 Here is a matrix of mmap possibilities:
7523 mmap private not fixed
7524 mmap private fixed at somewhere currently unmapped
7525 mmap private fixed at somewhere already mapped
7526 mmap shared not fixed
7527 mmap shared fixed at somewhere currently unmapped
7528 mmap shared fixed at somewhere already mapped
7529 For private mappings, we should verify that changes cannot be read()
7530 back from the file, nor mmap's back from the file at a different
7531 address. (There have been systems where private was not correctly
7532 implemented like the infamous i386 svr4.0, and systems where the
7533 VM page cache was not coherent with the file system buffer cache
7534 like early versions of FreeBSD and possibly contemporary NetBSD.)
7535 For shared mappings, we should conversely verify that changes get
7536 propagated back to all the places they're supposed to be. */
7537
7538 #include <fcntl.h>
7539 #include <sys/mman.h>
7540
7541 #ifndef getpagesize
7542 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
7543 been removed from POSIX and is limited to page sizes that fit in 'int'. */
7544 # ifdef _SC_PAGESIZE
7545 # define getpagesize() sysconf (_SC_PAGESIZE)
7546 # elif defined _SC_PAGE_SIZE
7547 # define getpagesize() sysconf (_SC_PAGE_SIZE)
7548 # elif HAVE_GETPAGESIZE
7549 int getpagesize ();
7550 # else
7551 # ifdef HAVE_SYS_PARAM_H
7552 # include <sys/param.h>
7553 # ifdef EXEC_PAGESIZE
7554 # define getpagesize() EXEC_PAGESIZE
7555 # else /* no EXEC_PAGESIZE */
7556 # ifdef NBPG
7557 # define getpagesize() NBPG * CLSIZE
7558 # ifndef CLSIZE
7559 # define CLSIZE 1
7560 # endif /* no CLSIZE */
7561 # else /* no NBPG */
7562 # ifdef NBPC
7563 # define getpagesize() NBPC
7564 # else /* no NBPC */
7565 # ifdef PAGESIZE
7566 # define getpagesize() PAGESIZE
7567 # endif /* PAGESIZE */
7568 # endif /* no NBPC */
7569 # endif /* no NBPG */
7570 # endif /* no EXEC_PAGESIZE */
7571 # else /* no HAVE_SYS_PARAM_H */
7572 # define getpagesize() 8192 /* punt totally */
7573 # endif /* no HAVE_SYS_PARAM_H */
7574 # endif
7575 #endif
7576
7577 int
7578 main (void)
7579 {
7580 char *data, *data2, *data3;
7581 const char *cdata2;
7582 long i, pagesize;
7583 int fd, fd2;
7584
7585 pagesize = getpagesize ();
7586
7587 /* First, make a file with some known garbage in it. */
7588 data = (char *) malloc (pagesize);
7589 if (!data)
7590 return 1;
7591 for (i = 0; i < pagesize; ++i)
7592 *(data + i) = rand ();
7593 umask (0);
7594 fd = creat ("conftest.mmap", 0600);
7595 if (fd < 0)
7596 return 2;
7597 if (write (fd, data, pagesize) != pagesize)
7598 return 3;
7599 close (fd);
7600
7601 /* Next, check that the tail of a page is zero-filled. File must have
7602 non-zero length, otherwise we risk SIGBUS for entire page. */
7603 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7604 if (fd2 < 0)
7605 return 4;
7606 cdata2 = "";
7607 if (write (fd2, cdata2, 1) != 1)
7608 return 5;
7609 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7610 if (data2 == MAP_FAILED)
7611 return 6;
7612 for (i = 0; i < pagesize; ++i)
7613 if (*(data2 + i))
7614 return 7;
7615 close (fd2);
7616 /* 'return 8;' not currently used. */
7617
7618 /* Next, try to mmap the file at a fixed address which already has
7619 something else allocated at it. If we can, also make sure that
7620 we see the same garbage. */
7621 fd = open ("conftest.mmap", O_RDWR);
7622 if (fd < 0)
7623 return 9;
7624 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7625 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7626 return 10;
7627 for (i = 0; i < pagesize; ++i)
7628 if (*(data + i) != *(data2 + i))
7629 return 11;
7630
7631 /* Finally, make sure that changes to the mapped area do not
7632 percolate back to the file as seen by read(). (This is a bug on
7633 some variants of i386 svr4.0.) */
7634 for (i = 0; i < pagesize; ++i)
7635 *(data2 + i) = *(data2 + i) + 1;
7636 data3 = (char *) malloc (pagesize);
7637 if (!data3)
7638 return 12;
7639 if (read (fd, data3, pagesize) != pagesize)
7640 return 13;
7641 for (i = 0; i < pagesize; ++i)
7642 if (*(data + i) != *(data3 + i))
7643 return 14;
7644 close (fd);
7645 free (data);
7646 free (data3);
7647 return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_run "$LINENO"
7651 then :
7652 ac_cv_func_mmap_fixed_mapped=yes
7653 else case e in #(
7654 e) ac_cv_func_mmap_fixed_mapped=no ;;
7655 esac
7656 fi
7657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7658 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7659 esac
7660 fi
7661 ;;
7662 esac
7663 fi
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7665 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
7666 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7667
7668 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
7669
7670 fi
7671 rm -f conftest.mmap conftest.txt
7672
7673 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7674 if test "x$ac_cv_func_getpagesize" = xyes
7675 then :
7676 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
7677
7678 fi
7679
7680 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
7681 if test "x$ac_cv_func_sysconf" = xyes
7682 then :
7683 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
7684
7685 fi
7686
7687
7688 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
7689 if test "x$ac_cv_func_access" = xyes
7690 then :
7691 printf "%s\n" "#define HAVE_ACCESS 1" >>confdefs.h
7692
7693 fi
7694 ac_fn_c_check_func "$LINENO" "_access" "ac_cv_func__access"
7695 if test "x$ac_cv_func__access" = xyes
7696 then :
7697 printf "%s\n" "#define HAVE__ACCESS 1" >>confdefs.h
7698
7699 fi
7700 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
7701 if test "x$ac_cv_func_faccessat" = xyes
7702 then :
7703 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
7704
7705 fi
7706
7707
7708
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7710 printf %s "checking for __builtin_expect... " >&6; }
7711 if test ${pa_cv_func___builtin_expect+y}
7712 then :
7713 printf %s "(cached) " >&6
7714 else case e in #(
7715 e)
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719
7720 int
7721 main (void)
7722 {
7723
7724 (void)__builtin_expect(1,1);
7725
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"
7731 then :
7732 pa_cv_func___builtin_expect=yes
7733 else case e in #(
7734 e) pa_cv_func___builtin_expect=no ;;
7735 esac
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7738 conftest$ac_exeext conftest.$ac_ext
7739 ;;
7740 esac
7741 fi
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_expect" >&5
7743 printf "%s\n" "$pa_cv_func___builtin_expect" >&6; }
7744
7745 if test "x$pa_cv_func___builtin_expect" = xyes
7746 then :
7747
7748 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
7749
7750 fi
7751
7752
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sprintf" >&5
7754 printf %s "checking for sprintf... " >&6; }
7755 if test ${pa_cv_func_snprintf+y}
7756 then :
7757 printf %s "(cached) " >&6
7758 else case e in #(
7759 e) pa_cv_func_snprintf=no
7760 for pa_try_func_snprintf in snprintf _snprintf
7761 do
7762 if test $pa_cv_func_snprintf = no
7763 then :
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766
7767 $ac_includes_default
7768
7769 const char *snprintf_test(int x);
7770 const char *snprintf_test(int x)
7771 {
7772 static char buf[256];
7773 size_t sz;
7774 sz = $pa_try_func_snprintf(buf, sizeof buf, "Hello = %d", x);
7775 return (sz < sizeof buf) ? buf : NULL;
7776 }
7777
7778 int
7779 main (void)
7780 {
7781
7782 puts(snprintf_test(33));
7783
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_link "$LINENO"
7789 then :
7790 pa_cv_func_snprintf=$pa_try_func_snprintf
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7793 conftest$ac_exeext conftest.$ac_ext
7794 fi
7795 done
7796 ;;
7797 esac
7798 fi
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_snprintf" >&5
7800 printf "%s\n" "$pa_cv_func_snprintf" >&6; }
7801 if test $pa_cv_func_snprintf = no
7802 then :
7803
7804 else case e in #(
7805 e)
7806 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
7807
7808 if test $pa_cv_func_snprintf = snprintf
7809 then :
7810
7811 else case e in #(
7812 e)
7813 printf "%s\n" "#define snprintf $pa_cv_func_snprintf" >>confdefs.h
7814 ;;
7815 esac
7816 fi ;;
7817 esac
7818 fi
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vsnprintf" >&5
7820 printf %s "checking for vsnprintf... " >&6; }
7821 if test ${pa_cv_func_vsnprintf+y}
7822 then :
7823 printf %s "(cached) " >&6
7824 else case e in #(
7825 e) pa_cv_func_vsnprintf=no
7826 for pa_try_func_vsnprintf in vsnprintf _vsnprintf
7827 do
7828 if test $pa_cv_func_vsnprintf = no
7829 then :
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832
7833 $ac_includes_default
7834
7835 #include <stdarg.h>
7836
7837 const char *vsnprintf_test(const char *fmt, va_list va);
7838 const char *vsnprintf_test(const char *fmt, va_list va)
7839 {
7840 static char buf[256];
7841 size_t sz;
7842 sz = $pa_try_func_vsnprintf(buf, sizeof buf, fmt, va);
7843 return (sz < sizeof buf) ? buf : NULL;
7844 }
7845
7846 const char *vsnprintf_caller(const char *fmt, ...);
7847 const char *vsnprintf_caller(const char *fmt, ...)
7848 {
7849 const char *what;
7850 va_list va;
7851 va_start(va, fmt);
7852 what = vsnprintf_test(fmt, va);
7853 va_end(va);
7854 return what;
7855 }
7856 int
7857 main (void)
7858 {
7859
7860 puts(vsnprintf_caller("Hello = %d", 33));
7861 return 0;
7862
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"
7868 then :
7869 pa_cv_func_vsnprintf=$pa_try_func_vsnprintf
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7872 conftest$ac_exeext conftest.$ac_ext
7873 fi
7874 done
7875 ;;
7876 esac
7877 fi
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_vsnprintf" >&5
7879 printf "%s\n" "$pa_cv_func_vsnprintf" >&6; }
7880 if test $pa_cv_func_vsnprintf = no
7881 then :
7882
7883 else case e in #(
7884 e)
7885 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
7886
7887 if test $pa_cv_func_vsnprintf = vsnprintf
7888 then :
7889
7890 else case e in #(
7891 e)
7892 printf "%s\n" "#define vsnprintf $pa_cv_func_vsnprintf" >>confdefs.h
7893 ;;
7894 esac
7895 fi ;;
7896 esac
7897 fi
7898 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
7899 if test "x$ac_cv_func_strlcpy" = xyes
7900 then :
7901 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
7902
7903 fi
7904
7905 ac_fn_c_check_func "$LINENO" "strrchrnul" "ac_cv_func_strrchrnul"
7906 if test "x$ac_cv_func_strrchrnul" = xyes
7907 then :
7908 printf "%s\n" "#define HAVE_STRRCHRNUL 1" >>confdefs.h
7909
7910 fi
7911
7912
7913 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
7914 if test "x$ac_cv_type_struct_stat" = xyes
7915 then :
7916
7917 printf "%s\n" "#define HAVE_STRUCT_STAT 1" >>confdefs.h
7918
7919 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
7920 if test "x$ac_cv_func_stat" = xyes
7921 then :
7922 printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
7923
7924 fi
7925 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
7926 if test "x$ac_cv_func_fstat" = xyes
7927 then :
7928 printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
7929
7930 fi
7931
7932 fi
7933
7934 ac_fn_c_check_type "$LINENO" "struct _stati64" "ac_cv_type_struct__stati64" "$ac_includes_default"
7935 if test "x$ac_cv_type_struct__stati64" = xyes
7936 then :
7937
7938 printf "%s\n" "#define HAVE_STRUCT__STATI64 1" >>confdefs.h
7939
7940 ac_fn_c_check_func "$LINENO" "_stati64" "ac_cv_func__stati64"
7941 if test "x$ac_cv_func__stati64" = xyes
7942 then :
7943 printf "%s\n" "#define HAVE__STATI64 1" >>confdefs.h
7944
7945 fi
7946 ac_fn_c_check_func "$LINENO" "_fstati64" "ac_cv_func__fstati64"
7947 if test "x$ac_cv_func__fstati64" = xyes
7948 then :
7949 printf "%s\n" "#define HAVE__FSTATI64 1" >>confdefs.h
7950
7951 fi
7952
7953 fi
7954
7955
7956
7957
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S_ISREG" >&5
7959 printf %s "checking for S_ISREG... " >&6; }
7960 if test ${pa_cv_func_S_ISREG+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else case e in #(
7964 e)
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 #ifdef HAVE_UNISTD_H
7969 #include <unistd.h>
7970 #endif
7971 #ifdef HAVE_FCNTL_H
7972 #include <fcntl.h>
7973 #endif
7974 #ifdef HAVE_SYS_STAT_H
7975 #include <sys/stat.h>
7976 #endif
7977 #ifdef HAVE_IO_H
7978 #include <io.h>
7979 #endif
7980
7981 int
7982 main (void)
7983 {
7984
7985 (void)S_ISREG(0);
7986
7987 ;
7988 return 0;
7989 }
7990 _ACEOF
7991 if ac_fn_c_try_link "$LINENO"
7992 then :
7993 pa_cv_func_S_ISREG=yes
7994 else case e in #(
7995 e) pa_cv_func_S_ISREG=no ;;
7996 esac
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7999 conftest$ac_exeext conftest.$ac_ext
8000 ;;
8001 esac
8002 fi
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_S_ISREG" >&5
8004 printf "%s\n" "$pa_cv_func_S_ISREG" >&6; }
8005
8006 if test "x$pa_cv_func_S_ISREG" = xyes
8007 then :
8008
8009 printf "%s\n" "#define HAVE_S_ISREG 1" >>confdefs.h
8010
8011 fi
8012
8013
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8015 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8016 if test ${ac_cv_c_undeclared_builtin_options+y}
8017 then :
8018 printf %s "(cached) " >&6
8019 else case e in #(
8020 e) ac_save_CFLAGS=$CFLAGS
8021 ac_cv_c_undeclared_builtin_options='cannot detect'
8022 for ac_arg in '' -fno-builtin; do
8023 CFLAGS="$ac_save_CFLAGS $ac_arg"
8024 # This test program should *not* compile successfully.
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027
8028 int
8029 main (void)
8030 {
8031 (void) strchr;
8032 ;
8033 return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_compile "$LINENO"
8037 then :
8038
8039 else case e in #(
8040 e) # This test program should compile successfully.
8041 # No library function is consistently available on
8042 # freestanding implementations, so test against a dummy
8043 # declaration. Include always-available headers on the
8044 # off chance that they somehow elicit warnings.
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 #include <float.h>
8048 #include <limits.h>
8049 #include <stdarg.h>
8050 #include <stddef.h>
8051 extern void ac_decl (int, char *);
8052
8053 int
8054 main (void)
8055 {
8056 (void) ac_decl (0, (char *) 0);
8057 (void) ac_decl;
8058
8059 ;
8060 return 0;
8061 }
8062 _ACEOF
8063 if ac_fn_c_try_compile "$LINENO"
8064 then :
8065 if test x"$ac_arg" = x
8066 then :
8067 ac_cv_c_undeclared_builtin_options='none needed'
8068 else case e in #(
8069 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8070 esac
8071 fi
8072 break
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8075 esac
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8078 done
8079 CFLAGS=$ac_save_CFLAGS
8080 ;;
8081 esac
8082 fi
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8084 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8085 case $ac_cv_c_undeclared_builtin_options in #(
8086 'cannot detect') :
8087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8088 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8089 as_fn_error $? "cannot make $CC report undeclared builtins
8090 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8091 'none needed') :
8092 ac_c_undeclared_builtin_options='' ;; #(
8093 *) :
8094 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8095 esac
8096
8097 ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8098 if test "x$ac_cv_have_decl_strcasecmp" = xyes
8099 then :
8100 ac_have_decl=1
8101 else case e in #(
8102 e) ac_have_decl=0 ;;
8103 esac
8104 fi
8105 printf "%s\n" "#define HAVE_DECL_STRCASECMP $ac_have_decl" >>confdefs.h
8106
8107 ac_fn_check_decl "$LINENO" "stricmp" "ac_cv_have_decl_stricmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8108 if test "x$ac_cv_have_decl_stricmp" = xyes
8109 then :
8110 ac_have_decl=1
8111 else case e in #(
8112 e) ac_have_decl=0 ;;
8113 esac
8114 fi
8115 printf "%s\n" "#define HAVE_DECL_STRICMP $ac_have_decl" >>confdefs.h
8116
8117 ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8118 if test "x$ac_cv_have_decl_strncasecmp" = xyes
8119 then :
8120 ac_have_decl=1
8121 else case e in #(
8122 e) ac_have_decl=0 ;;
8123 esac
8124 fi
8125 printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h
8126
8127 ac_fn_check_decl "$LINENO" "strnicmp" "ac_cv_have_decl_strnicmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8128 if test "x$ac_cv_have_decl_strnicmp" = xyes
8129 then :
8130 ac_have_decl=1
8131 else case e in #(
8132 e) ac_have_decl=0 ;;
8133 esac
8134 fi
8135 printf "%s\n" "#define HAVE_DECL_STRNICMP $ac_have_decl" >>confdefs.h
8136
8137 ac_fn_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8138 if test "x$ac_cv_have_decl_strsep" = xyes
8139 then :
8140 ac_have_decl=1
8141 else case e in #(
8142 e) ac_have_decl=0 ;;
8143 esac
8144 fi
8145 printf "%s\n" "#define HAVE_DECL_STRSEP $ac_have_decl" >>confdefs.h
8146
8147 ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8148 if test "x$ac_cv_have_decl_strlcpy" = xyes
8149 then :
8150 ac_have_decl=1
8151 else case e in #(
8152 e) ac_have_decl=0 ;;
8153 esac
8154 fi
8155 printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
8156
8157 ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8158 if test "x$ac_cv_have_decl_strnlen" = xyes
8159 then :
8160 ac_have_decl=1
8161 else case e in #(
8162 e) ac_have_decl=0 ;;
8163 esac
8164 fi
8165 printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
8166
8167 ac_fn_check_decl "$LINENO" "strrchrnul" "ac_cv_have_decl_strrchrnul" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
8168 if test "x$ac_cv_have_decl_strrchrnul" = xyes
8169 then :
8170 ac_have_decl=1
8171 else case e in #(
8172 e) ac_have_decl=0 ;;
8173 esac
8174 fi
8175 printf "%s\n" "#define HAVE_DECL_STRRCHRNUL $ac_have_decl" >>confdefs.h
8176
8177
8178
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8180 printf %s "checking for unsigned long long int... " >&6; }
8181 if test ${ac_cv_type_unsigned_long_long_int+y}
8182 then :
8183 printf %s "(cached) " >&6
8184 else case e in #(
8185 e) ac_cv_type_unsigned_long_long_int=yes
8186 case $ac_prog_cc_stdc in
8187 no | c89) ;;
8188 *)
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191
8192 /* For now, do not test the preprocessor; as of 2007 there are too many
8193 implementations with broken preprocessors. Perhaps this can
8194 be revisited in 2012. In the meantime, code should not expect
8195 #if to work with literals wider than 32 bits. */
8196 /* Test literals. */
8197 long long int ll = 9223372036854775807ll;
8198 long long int nll = -9223372036854775807LL;
8199 unsigned long long int ull = 18446744073709551615ULL;
8200 /* Test constant expressions. */
8201 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8202 ? 1 : -1)];
8203 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8204 ? 1 : -1)];
8205 int i = 63;
8206 int
8207 main (void)
8208 {
8209 /* Test availability of runtime routines for shift and division. */
8210 long long int llmax = 9223372036854775807ll;
8211 unsigned long long int ullmax = 18446744073709551615ull;
8212 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8213 | (llmax / ll) | (llmax % ll)
8214 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8215 | (ullmax / ull) | (ullmax % ull));
8216 ;
8217 return 0;
8218 }
8219
8220 _ACEOF
8221 if ac_fn_c_try_link "$LINENO"
8222 then :
8223
8224 else case e in #(
8225 e) ac_cv_type_unsigned_long_long_int=no ;;
8226 esac
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8229 conftest$ac_exeext conftest.$ac_ext;;
8230 esac ;;
8231 esac
8232 fi
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8234 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
8235 if test $ac_cv_type_unsigned_long_long_int = yes; then
8236
8237 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8238
8239 fi
8240
8241
8242
8243 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8244 if test "x$ac_cv_type_uintmax_t" = xyes
8245 then :
8246
8247 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
8248
8249 else case e in #(
8250 e) test $ac_cv_type_unsigned_long_long_int = yes \
8251 && ac_type='unsigned long long int' \
8252 || ac_type='unsigned long int'
8253
8254 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
8255 ;;
8256 esac
8257 fi
8258
8259
8260
8261 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8262 if test "x$ac_cv_type_uintptr_t" = xyes
8263 then :
8264
8265 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
8266
8267 else case e in #(
8268 e) for ac_type in 'unsigned int' 'unsigned long int' \
8269 'unsigned long long int'; do
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 int
8274 main (void)
8275 {
8276 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
8277 test_array [0] = 0;
8278 return test_array [0];
8279
8280 ;
8281 return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"
8285 then :
8286
8287 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
8288
8289 ac_type=
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8292 test -z "$ac_type" && break
8293 done ;;
8294 esac
8295 fi
8296
8297
8298
8299
8300
8301 # Check whether --enable-pdf-compression was given.
8302 if test ${enable_pdf_compression+y}
8303 then :
8304 enableval=$enable_pdf_compression; pa_arg_bool_enableval="$enableval"
8305 else case e in #(
8306 e) pa_arg_bool_enableval="yes" ;;
8307 esac
8308 fi
8309
8310
8311 if test x"$pa_arg_bool_enableval" != xno
8312 then :
8313
8314 else case e in #(
8315 e) PDFOPT='-nocompress' ;;
8316 esac
8317 fi
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8328 printf %s "checking whether byte ordering is bigendian... " >&6; }
8329 if test ${ac_cv_c_bigendian+y}
8330 then :
8331 printf %s "(cached) " >&6
8332 else case e in #(
8333 e) ac_cv_c_bigendian=unknown
8334 # See if we're dealing with a universal compiler.
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #ifndef __APPLE_CC__
8338 not a universal capable compiler
8339 #endif
8340 typedef int dummy;
8341
8342 _ACEOF
8343 if ac_fn_c_try_compile "$LINENO"
8344 then :
8345
8346 # Check for potential -arch flags. It is not universal unless
8347 # there are at least two -arch flags with different values.
8348 ac_arch=
8349 ac_prev=
8350 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8351 if test -n "$ac_prev"; then
8352 case $ac_word in
8353 i?86 | x86_64 | ppc | ppc64)
8354 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8355 ac_arch=$ac_word
8356 else
8357 ac_cv_c_bigendian=universal
8358 break
8359 fi
8360 ;;
8361 esac
8362 ac_prev=
8363 elif test "x$ac_word" = "x-arch"; then
8364 ac_prev=arch
8365 fi
8366 done
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8369 if test $ac_cv_c_bigendian = unknown; then
8370 # See if sys/param.h defines the BYTE_ORDER macro.
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #include <sys/types.h>
8374 #include <sys/param.h>
8375
8376 int
8377 main (void)
8378 {
8379 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
8380 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
8381 && LITTLE_ENDIAN)
8382 bogus endian macros
8383 #endif
8384
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 if ac_fn_c_try_compile "$LINENO"
8390 then :
8391 # It does; now see whether it defined to BIG_ENDIAN or not.
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 #include <sys/types.h>
8395 #include <sys/param.h>
8396
8397 int
8398 main (void)
8399 {
8400 #if BYTE_ORDER != BIG_ENDIAN
8401 not big endian
8402 #endif
8403
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_compile "$LINENO"
8409 then :
8410 ac_cv_c_bigendian=yes
8411 else case e in #(
8412 e) ac_cv_c_bigendian=no ;;
8413 esac
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418 fi
8419 if test $ac_cv_c_bigendian = unknown; then
8420 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423 #include <limits.h>
8424
8425 int
8426 main (void)
8427 {
8428 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8429 bogus endian macros
8430 #endif
8431
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"
8437 then :
8438 # It does; now see whether it defined to _BIG_ENDIAN or not.
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #include <limits.h>
8442
8443 int
8444 main (void)
8445 {
8446 #ifndef _BIG_ENDIAN
8447 not big endian
8448 #endif
8449
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"
8455 then :
8456 ac_cv_c_bigendian=yes
8457 else case e in #(
8458 e) ac_cv_c_bigendian=no ;;
8459 esac
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8464 fi
8465 if test $ac_cv_c_bigendian = unknown; then
8466 # Compile a test program.
8467 if test "$cross_compiling" = yes
8468 then :
8469 # Try to guess by grepping values from an object file.
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 unsigned short int ascii_mm[] =
8473 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8474 unsigned short int ascii_ii[] =
8475 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8476 int use_ascii (int i) {
8477 return ascii_mm[i] + ascii_ii[i];
8478 }
8479 unsigned short int ebcdic_ii[] =
8480 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8481 unsigned short int ebcdic_mm[] =
8482 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8483 int use_ebcdic (int i) {
8484 return ebcdic_mm[i] + ebcdic_ii[i];
8485 }
8486 int
8487 main (int argc, char **argv)
8488 {
8489 /* Intimidate the compiler so that it does not
8490 optimize the arrays away. */
8491 char *p = argv[0];
8492 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
8493 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
8494 return use_ascii (argc) == use_ebcdic (*p);
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"
8498 then :
8499 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
8500 ac_cv_c_bigendian=yes
8501 fi
8502 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
8503 if test "$ac_cv_c_bigendian" = unknown; then
8504 ac_cv_c_bigendian=no
8505 else
8506 # finding both strings is unlikely to happen, but who knows?
8507 ac_cv_c_bigendian=unknown
8508 fi
8509 fi
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8512 conftest$ac_exeext conftest.$ac_ext
8513 else case e in #(
8514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 $ac_includes_default
8517 int
8518 main (void)
8519 {
8520
8521 /* Are we little or big endian? From Harbison&Steele. */
8522 union
8523 {
8524 long int l;
8525 char c[sizeof (long int)];
8526 } u;
8527 u.l = 1;
8528 return u.c[sizeof (long int) - 1] == 1;
8529
8530 ;
8531 return 0;
8532 }
8533 _ACEOF
8534 if ac_fn_c_try_run "$LINENO"
8535 then :
8536 ac_cv_c_bigendian=no
8537 else case e in #(
8538 e) ac_cv_c_bigendian=yes ;;
8539 esac
8540 fi
8541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8542 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8543 esac
8544 fi
8545
8546 fi ;;
8547 esac
8548 fi
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8550 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
8551 case $ac_cv_c_bigendian in #(
8552 yes)
8553 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
8554 ;; #(
8555 no)
8556 printf "%s\n" "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
8557 ;; #(
8558 universal)
8559
8560 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8561
8562 ;; #(
8563 *)
8564 as_fn_error $? "unknown endianness
8565 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8566 esac
8567
8568
8569
8570 if test x$ac_cv_c_bigendian = xno
8571 then :
8572
8573
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htole16" >&5
8575 printf %s "checking for htole16... " >&6; }
8576 if test ${pa_cv_func_htole16+y}
8577 then :
8578 printf %s "(cached) " >&6
8579 else case e in #(
8580 e)
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #ifdef HAVE_ENDIAN_H
8585 #include <endian.h>
8586 #endif
8587 #ifdef HAVE_SYS_ENDIAN_H
8588 #include <sys/endian.h>
8589 #endif
8590 #ifdef HAVE_MACHINE_ENDIAN_H
8591 #include <machine/endian.h>
8592 #endif
8593
8594 int
8595 main (void)
8596 {
8597
8598 (void)htole16(0);
8599
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_link "$LINENO"
8605 then :
8606 pa_cv_func_htole16=yes
8607 else case e in #(
8608 e) pa_cv_func_htole16=no ;;
8609 esac
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8612 conftest$ac_exeext conftest.$ac_ext
8613 ;;
8614 esac
8615 fi
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htole16" >&5
8617 printf "%s\n" "$pa_cv_func_htole16" >&6; }
8618
8619 if test "x$pa_cv_func_htole16" = xyes
8620 then :
8621
8622 printf "%s\n" "#define HAVE_HTOLE16 1" >>confdefs.h
8623
8624 fi
8625
8626
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htole32" >&5
8628 printf %s "checking for htole32... " >&6; }
8629 if test ${pa_cv_func_htole32+y}
8630 then :
8631 printf %s "(cached) " >&6
8632 else case e in #(
8633 e)
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #ifdef HAVE_ENDIAN_H
8638 #include <endian.h>
8639 #endif
8640 #ifdef HAVE_SYS_ENDIAN_H
8641 #include <sys/endian.h>
8642 #endif
8643 #ifdef HAVE_MACHINE_ENDIAN_H
8644 #include <machine/endian.h>
8645 #endif
8646
8647 int
8648 main (void)
8649 {
8650
8651 (void)htole32(0);
8652
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 if ac_fn_c_try_link "$LINENO"
8658 then :
8659 pa_cv_func_htole32=yes
8660 else case e in #(
8661 e) pa_cv_func_htole32=no ;;
8662 esac
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8665 conftest$ac_exeext conftest.$ac_ext
8666 ;;
8667 esac
8668 fi
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htole32" >&5
8670 printf "%s\n" "$pa_cv_func_htole32" >&6; }
8671
8672 if test "x$pa_cv_func_htole32" = xyes
8673 then :
8674
8675 printf "%s\n" "#define HAVE_HTOLE32 1" >>confdefs.h
8676
8677 fi
8678
8679
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htole64" >&5
8681 printf %s "checking for htole64... " >&6; }
8682 if test ${pa_cv_func_htole64+y}
8683 then :
8684 printf %s "(cached) " >&6
8685 else case e in #(
8686 e)
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #ifdef HAVE_ENDIAN_H
8691 #include <endian.h>
8692 #endif
8693 #ifdef HAVE_SYS_ENDIAN_H
8694 #include <sys/endian.h>
8695 #endif
8696 #ifdef HAVE_MACHINE_ENDIAN_H
8697 #include <machine/endian.h>
8698 #endif
8699
8700 int
8701 main (void)
8702 {
8703
8704 (void)htole64(0);
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"
8711 then :
8712 pa_cv_func_htole64=yes
8713 else case e in #(
8714 e) pa_cv_func_htole64=no ;;
8715 esac
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8718 conftest$ac_exeext conftest.$ac_ext
8719 ;;
8720 esac
8721 fi
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htole64" >&5
8723 printf "%s\n" "$pa_cv_func_htole64" >&6; }
8724
8725 if test "x$pa_cv_func_htole64" = xyes
8726 then :
8727
8728 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
8729
8730 fi
8731
8732
8733 else case e in #(
8734 e)
8735 pa_find_func_found=no
8736
8737 if test x"$pa_find_func_found" != xyes
8738 then :
8739
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htole16" >&5
8741 printf %s "checking for htole16... " >&6; }
8742 if test ${pa_cv_func_htole16+y}
8743 then :
8744 printf %s "(cached) " >&6
8745 else case e in #(
8746 e)
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 $ac_includes_default
8750 #ifdef HAVE_ENDIAN_H
8751 #include <endian.h>
8752 #endif
8753 #ifdef HAVE_SYS_ENDIAN_H
8754 #include <sys/endian.h>
8755 #endif
8756 #ifdef HAVE_MACHINE_ENDIAN_H
8757 #include <machine/endian.h>
8758 #endif
8759
8760 int
8761 main (void)
8762 {
8763
8764 (void)htole16(0);
8765
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_c_try_link "$LINENO"
8771 then :
8772 pa_cv_func_htole16=yes
8773 else case e in #(
8774 e) pa_cv_func_htole16=no ;;
8775 esac
8776 fi
8777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8778 conftest$ac_exeext conftest.$ac_ext
8779 ;;
8780 esac
8781 fi
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htole16" >&5
8783 printf "%s\n" "$pa_cv_func_htole16" >&6; }
8784
8785 if test "x$pa_cv_func_htole16" = xyes
8786 then :
8787
8788 printf "%s\n" "#define HAVE_HTOLE16 1" >>confdefs.h
8789
8790 fi
8791
8792 pa_find_func_found="$pa_cv_func_htole16"
8793
8794 fi
8795 if test x"$pa_find_func_found" != xyes
8796 then :
8797
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
8799 printf %s "checking for __builtin_bswap16... " >&6; }
8800 if test ${pa_cv_func___builtin_bswap16+y}
8801 then :
8802 printf %s "(cached) " >&6
8803 else case e in #(
8804 e)
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 $ac_includes_default
8808
8809 int
8810 main (void)
8811 {
8812
8813 (void)__builtin_bswap16(0);
8814
8815 ;
8816 return 0;
8817 }
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"
8820 then :
8821 pa_cv_func___builtin_bswap16=yes
8822 else case e in #(
8823 e) pa_cv_func___builtin_bswap16=no ;;
8824 esac
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8827 conftest$ac_exeext conftest.$ac_ext
8828 ;;
8829 esac
8830 fi
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_bswap16" >&5
8832 printf "%s\n" "$pa_cv_func___builtin_bswap16" >&6; }
8833
8834 if test "x$pa_cv_func___builtin_bswap16" = xyes
8835 then :
8836
8837 printf "%s\n" "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h
8838
8839 fi
8840
8841 pa_find_func_found="$pa_cv_func___builtin_bswap16"
8842
8843 fi
8844 if test x"$pa_find_func_found" != xyes
8845 then :
8846
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_16" >&5
8848 printf %s "checking for bswap_16... " >&6; }
8849 if test ${pa_cv_func_bswap_16+y}
8850 then :
8851 printf %s "(cached) " >&6
8852 else case e in #(
8853 e)
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 $ac_includes_default
8857 #ifdef HAVE_BYTESWAP_H
8858 #include <byteswap.h>
8859 #endif
8860
8861 int
8862 main (void)
8863 {
8864
8865 (void)bswap_16(0);
8866
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"
8872 then :
8873 pa_cv_func_bswap_16=yes
8874 else case e in #(
8875 e) pa_cv_func_bswap_16=no ;;
8876 esac
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8879 conftest$ac_exeext conftest.$ac_ext
8880 ;;
8881 esac
8882 fi
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_bswap_16" >&5
8884 printf "%s\n" "$pa_cv_func_bswap_16" >&6; }
8885
8886 if test "x$pa_cv_func_bswap_16" = xyes
8887 then :
8888
8889 printf "%s\n" "#define HAVE_BSWAP_16 1" >>confdefs.h
8890
8891 fi
8892
8893 pa_find_func_found="$pa_cv_func_bswap_16"
8894
8895 fi
8896 if test x"$pa_find_func_found" != xyes
8897 then :
8898
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ushort" >&5
8900 printf %s "checking for _byteswap_ushort... " >&6; }
8901 if test ${pa_cv_func__byteswap_ushort+y}
8902 then :
8903 printf %s "(cached) " >&6
8904 else case e in #(
8905 e)
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 $ac_includes_default
8909 #ifdef HAVE_STDLIB_H
8910 #include <stdlib.h>
8911 #endif
8912
8913 int
8914 main (void)
8915 {
8916
8917 (void)_byteswap_ushort(0);
8918
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"
8924 then :
8925 pa_cv_func__byteswap_ushort=yes
8926 else case e in #(
8927 e) pa_cv_func__byteswap_ushort=no ;;
8928 esac
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8931 conftest$ac_exeext conftest.$ac_ext
8932 ;;
8933 esac
8934 fi
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__byteswap_ushort" >&5
8936 printf "%s\n" "$pa_cv_func__byteswap_ushort" >&6; }
8937
8938 if test "x$pa_cv_func__byteswap_ushort" = xyes
8939 then :
8940
8941 printf "%s\n" "#define HAVE__BYTESWAP_USHORT 1" >>confdefs.h
8942
8943 fi
8944
8945 pa_find_func_found="$pa_cv_func__byteswap_ushort"
8946
8947 fi
8948 if test x"$pa_find_func_found" != xyes
8949 then :
8950
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le16" >&5
8952 printf %s "checking for cpu_to_le16... " >&6; }
8953 if test ${pa_cv_func_cpu_to_le16+y}
8954 then :
8955 printf %s "(cached) " >&6
8956 else case e in #(
8957 e)
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 $ac_includes_default
8961
8962 int
8963 main (void)
8964 {
8965
8966 (void)cpu_to_le16(0);
8967
8968 ;
8969 return 0;
8970 }
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"
8973 then :
8974 pa_cv_func_cpu_to_le16=yes
8975 else case e in #(
8976 e) pa_cv_func_cpu_to_le16=no ;;
8977 esac
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8980 conftest$ac_exeext conftest.$ac_ext
8981 ;;
8982 esac
8983 fi
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_cpu_to_le16" >&5
8985 printf "%s\n" "$pa_cv_func_cpu_to_le16" >&6; }
8986
8987 if test "x$pa_cv_func_cpu_to_le16" = xyes
8988 then :
8989
8990 printf "%s\n" "#define HAVE_CPU_TO_LE16 1" >>confdefs.h
8991
8992 fi
8993
8994 pa_find_func_found="$pa_cv_func_cpu_to_le16"
8995
8996 fi
8997 if test x"$pa_find_func_found" != xyes
8998 then :
8999
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le16" >&5
9001 printf %s "checking for __cpu_to_le16... " >&6; }
9002 if test ${pa_cv_func___cpu_to_le16+y}
9003 then :
9004 printf %s "(cached) " >&6
9005 else case e in #(
9006 e)
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 $ac_includes_default
9010
9011 int
9012 main (void)
9013 {
9014
9015 (void)__cpu_to_le16(0);
9016
9017 ;
9018 return 0;
9019 }
9020 _ACEOF
9021 if ac_fn_c_try_link "$LINENO"
9022 then :
9023 pa_cv_func___cpu_to_le16=yes
9024 else case e in #(
9025 e) pa_cv_func___cpu_to_le16=no ;;
9026 esac
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9029 conftest$ac_exeext conftest.$ac_ext
9030 ;;
9031 esac
9032 fi
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___cpu_to_le16" >&5
9034 printf "%s\n" "$pa_cv_func___cpu_to_le16" >&6; }
9035
9036 if test "x$pa_cv_func___cpu_to_le16" = xyes
9037 then :
9038
9039 printf "%s\n" "#define HAVE___CPU_TO_LE16 1" >>confdefs.h
9040
9041 fi
9042
9043 pa_find_func_found="$pa_cv_func___cpu_to_le16"
9044
9045 fi
9046 pa_find_func_found=no
9047
9048 if test x"$pa_find_func_found" != xyes
9049 then :
9050
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htole32" >&5
9052 printf %s "checking for htole32... " >&6; }
9053 if test ${pa_cv_func_htole32+y}
9054 then :
9055 printf %s "(cached) " >&6
9056 else case e in #(
9057 e)
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 #ifdef HAVE_ENDIAN_H
9062 #include <endian.h>
9063 #endif
9064 #ifdef HAVE_SYS_ENDIAN_H
9065 #include <sys/endian.h>
9066 #endif
9067 #ifdef HAVE_MACHINE_ENDIAN_H
9068 #include <machine/endian.h>
9069 #endif
9070
9071 int
9072 main (void)
9073 {
9074
9075 (void)htole32(0);
9076
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_c_try_link "$LINENO"
9082 then :
9083 pa_cv_func_htole32=yes
9084 else case e in #(
9085 e) pa_cv_func_htole32=no ;;
9086 esac
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9089 conftest$ac_exeext conftest.$ac_ext
9090 ;;
9091 esac
9092 fi
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htole32" >&5
9094 printf "%s\n" "$pa_cv_func_htole32" >&6; }
9095
9096 if test "x$pa_cv_func_htole32" = xyes
9097 then :
9098
9099 printf "%s\n" "#define HAVE_HTOLE32 1" >>confdefs.h
9100
9101 fi
9102
9103 pa_find_func_found="$pa_cv_func_htole32"
9104
9105 fi
9106 if test x"$pa_find_func_found" != xyes
9107 then :
9108
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
9110 printf %s "checking for __builtin_bswap32... " >&6; }
9111 if test ${pa_cv_func___builtin_bswap32+y}
9112 then :
9113 printf %s "(cached) " >&6
9114 else case e in #(
9115 e)
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119
9120 int
9121 main (void)
9122 {
9123
9124 (void)__builtin_bswap32(0);
9125
9126 ;
9127 return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_link "$LINENO"
9131 then :
9132 pa_cv_func___builtin_bswap32=yes
9133 else case e in #(
9134 e) pa_cv_func___builtin_bswap32=no ;;
9135 esac
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9138 conftest$ac_exeext conftest.$ac_ext
9139 ;;
9140 esac
9141 fi
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_bswap32" >&5
9143 printf "%s\n" "$pa_cv_func___builtin_bswap32" >&6; }
9144
9145 if test "x$pa_cv_func___builtin_bswap32" = xyes
9146 then :
9147
9148 printf "%s\n" "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
9149
9150 fi
9151
9152 pa_find_func_found="$pa_cv_func___builtin_bswap32"
9153
9154 fi
9155 if test x"$pa_find_func_found" != xyes
9156 then :
9157
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_32" >&5
9159 printf %s "checking for bswap_32... " >&6; }
9160 if test ${pa_cv_func_bswap_32+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else case e in #(
9164 e)
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 $ac_includes_default
9168 #ifdef HAVE_BYTESWAP_H
9169 #include <byteswap.h>
9170 #endif
9171
9172 int
9173 main (void)
9174 {
9175
9176 (void)bswap_32(0);
9177
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"
9183 then :
9184 pa_cv_func_bswap_32=yes
9185 else case e in #(
9186 e) pa_cv_func_bswap_32=no ;;
9187 esac
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9190 conftest$ac_exeext conftest.$ac_ext
9191 ;;
9192 esac
9193 fi
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_bswap_32" >&5
9195 printf "%s\n" "$pa_cv_func_bswap_32" >&6; }
9196
9197 if test "x$pa_cv_func_bswap_32" = xyes
9198 then :
9199
9200 printf "%s\n" "#define HAVE_BSWAP_32 1" >>confdefs.h
9201
9202 fi
9203
9204 pa_find_func_found="$pa_cv_func_bswap_32"
9205
9206 fi
9207 if test x"$pa_find_func_found" != xyes
9208 then :
9209
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ulong" >&5
9211 printf %s "checking for _byteswap_ulong... " >&6; }
9212 if test ${pa_cv_func__byteswap_ulong+y}
9213 then :
9214 printf %s "(cached) " >&6
9215 else case e in #(
9216 e)
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 $ac_includes_default
9220 #ifdef HAVE_STDLIB_H
9221 #include <stdlib.h>
9222 #endif
9223
9224 int
9225 main (void)
9226 {
9227
9228 (void)_byteswap_ulong(0);
9229
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 if ac_fn_c_try_link "$LINENO"
9235 then :
9236 pa_cv_func__byteswap_ulong=yes
9237 else case e in #(
9238 e) pa_cv_func__byteswap_ulong=no ;;
9239 esac
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9242 conftest$ac_exeext conftest.$ac_ext
9243 ;;
9244 esac
9245 fi
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__byteswap_ulong" >&5
9247 printf "%s\n" "$pa_cv_func__byteswap_ulong" >&6; }
9248
9249 if test "x$pa_cv_func__byteswap_ulong" = xyes
9250 then :
9251
9252 printf "%s\n" "#define HAVE__BYTESWAP_ULONG 1" >>confdefs.h
9253
9254 fi
9255
9256 pa_find_func_found="$pa_cv_func__byteswap_ulong"
9257
9258 fi
9259 if test x"$pa_find_func_found" != xyes
9260 then :
9261
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le32" >&5
9263 printf %s "checking for cpu_to_le32... " >&6; }
9264 if test ${pa_cv_func_cpu_to_le32+y}
9265 then :
9266 printf %s "(cached) " >&6
9267 else case e in #(
9268 e)
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 $ac_includes_default
9272
9273 int
9274 main (void)
9275 {
9276
9277 (void)cpu_to_le32(0);
9278
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_c_try_link "$LINENO"
9284 then :
9285 pa_cv_func_cpu_to_le32=yes
9286 else case e in #(
9287 e) pa_cv_func_cpu_to_le32=no ;;
9288 esac
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9291 conftest$ac_exeext conftest.$ac_ext
9292 ;;
9293 esac
9294 fi
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_cpu_to_le32" >&5
9296 printf "%s\n" "$pa_cv_func_cpu_to_le32" >&6; }
9297
9298 if test "x$pa_cv_func_cpu_to_le32" = xyes
9299 then :
9300
9301 printf "%s\n" "#define HAVE_CPU_TO_LE32 1" >>confdefs.h
9302
9303 fi
9304
9305 pa_find_func_found="$pa_cv_func_cpu_to_le32"
9306
9307 fi
9308 if test x"$pa_find_func_found" != xyes
9309 then :
9310
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le32" >&5
9312 printf %s "checking for __cpu_to_le32... " >&6; }
9313 if test ${pa_cv_func___cpu_to_le32+y}
9314 then :
9315 printf %s "(cached) " >&6
9316 else case e in #(
9317 e)
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 $ac_includes_default
9321
9322 int
9323 main (void)
9324 {
9325
9326 (void)__cpu_to_le32(0);
9327
9328 ;
9329 return 0;
9330 }
9331 _ACEOF
9332 if ac_fn_c_try_link "$LINENO"
9333 then :
9334 pa_cv_func___cpu_to_le32=yes
9335 else case e in #(
9336 e) pa_cv_func___cpu_to_le32=no ;;
9337 esac
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9340 conftest$ac_exeext conftest.$ac_ext
9341 ;;
9342 esac
9343 fi
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___cpu_to_le32" >&5
9345 printf "%s\n" "$pa_cv_func___cpu_to_le32" >&6; }
9346
9347 if test "x$pa_cv_func___cpu_to_le32" = xyes
9348 then :
9349
9350 printf "%s\n" "#define HAVE___CPU_TO_LE32 1" >>confdefs.h
9351
9352 fi
9353
9354 pa_find_func_found="$pa_cv_func___cpu_to_le32"
9355
9356 fi
9357 pa_find_func_found=no
9358
9359 if test x"$pa_find_func_found" != xyes
9360 then :
9361
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htole64" >&5
9363 printf %s "checking for htole64... " >&6; }
9364 if test ${pa_cv_func_htole64+y}
9365 then :
9366 printf %s "(cached) " >&6
9367 else case e in #(
9368 e)
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 $ac_includes_default
9372 #ifdef HAVE_ENDIAN_H
9373 #include <endian.h>
9374 #endif
9375 #ifdef HAVE_SYS_ENDIAN_H
9376 #include <sys/endian.h>
9377 #endif
9378 #ifdef HAVE_MACHINE_ENDIAN_H
9379 #include <machine/endian.h>
9380 #endif
9381
9382 int
9383 main (void)
9384 {
9385
9386 (void)htole64(0);
9387
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"
9393 then :
9394 pa_cv_func_htole64=yes
9395 else case e in #(
9396 e) pa_cv_func_htole64=no ;;
9397 esac
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9400 conftest$ac_exeext conftest.$ac_ext
9401 ;;
9402 esac
9403 fi
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htole64" >&5
9405 printf "%s\n" "$pa_cv_func_htole64" >&6; }
9406
9407 if test "x$pa_cv_func_htole64" = xyes
9408 then :
9409
9410 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
9411
9412 fi
9413
9414 pa_find_func_found="$pa_cv_func_htole64"
9415
9416 fi
9417 if test x"$pa_find_func_found" != xyes
9418 then :
9419
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
9421 printf %s "checking for __builtin_bswap64... " >&6; }
9422 if test ${pa_cv_func___builtin_bswap64+y}
9423 then :
9424 printf %s "(cached) " >&6
9425 else case e in #(
9426 e)
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 $ac_includes_default
9430
9431 int
9432 main (void)
9433 {
9434
9435 (void)__builtin_bswap64(0);
9436
9437 ;
9438 return 0;
9439 }
9440 _ACEOF
9441 if ac_fn_c_try_link "$LINENO"
9442 then :
9443 pa_cv_func___builtin_bswap64=yes
9444 else case e in #(
9445 e) pa_cv_func___builtin_bswap64=no ;;
9446 esac
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9449 conftest$ac_exeext conftest.$ac_ext
9450 ;;
9451 esac
9452 fi
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_bswap64" >&5
9454 printf "%s\n" "$pa_cv_func___builtin_bswap64" >&6; }
9455
9456 if test "x$pa_cv_func___builtin_bswap64" = xyes
9457 then :
9458
9459 printf "%s\n" "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h
9460
9461 fi
9462
9463 pa_find_func_found="$pa_cv_func___builtin_bswap64"
9464
9465 fi
9466 if test x"$pa_find_func_found" != xyes
9467 then :
9468
9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_64" >&5
9470 printf %s "checking for bswap_64... " >&6; }
9471 if test ${pa_cv_func_bswap_64+y}
9472 then :
9473 printf %s "(cached) " >&6
9474 else case e in #(
9475 e)
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 $ac_includes_default
9479 #ifdef HAVE_BYTESWAP_H
9480 #include <byteswap.h>
9481 #endif
9482
9483 int
9484 main (void)
9485 {
9486
9487 (void)bswap_64(0);
9488
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"
9494 then :
9495 pa_cv_func_bswap_64=yes
9496 else case e in #(
9497 e) pa_cv_func_bswap_64=no ;;
9498 esac
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9501 conftest$ac_exeext conftest.$ac_ext
9502 ;;
9503 esac
9504 fi
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_bswap_64" >&5
9506 printf "%s\n" "$pa_cv_func_bswap_64" >&6; }
9507
9508 if test "x$pa_cv_func_bswap_64" = xyes
9509 then :
9510
9511 printf "%s\n" "#define HAVE_BSWAP_64 1" >>confdefs.h
9512
9513 fi
9514
9515 pa_find_func_found="$pa_cv_func_bswap_64"
9516
9517 fi
9518 if test x"$pa_find_func_found" != xyes
9519 then :
9520
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_uint64" >&5
9522 printf %s "checking for _byteswap_uint64... " >&6; }
9523 if test ${pa_cv_func__byteswap_uint64+y}
9524 then :
9525 printf %s "(cached) " >&6
9526 else case e in #(
9527 e)
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 $ac_includes_default
9531 #ifdef HAVE_STDLIB_H
9532 #include <stdlib.h>
9533 #endif
9534
9535 int
9536 main (void)
9537 {
9538
9539 (void)_byteswap_uint64(0);
9540
9541 ;
9542 return 0;
9543 }
9544 _ACEOF
9545 if ac_fn_c_try_link "$LINENO"
9546 then :
9547 pa_cv_func__byteswap_uint64=yes
9548 else case e in #(
9549 e) pa_cv_func__byteswap_uint64=no ;;
9550 esac
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9553 conftest$ac_exeext conftest.$ac_ext
9554 ;;
9555 esac
9556 fi
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__byteswap_uint64" >&5
9558 printf "%s\n" "$pa_cv_func__byteswap_uint64" >&6; }
9559
9560 if test "x$pa_cv_func__byteswap_uint64" = xyes
9561 then :
9562
9563 printf "%s\n" "#define HAVE__BYTESWAP_UINT64 1" >>confdefs.h
9564
9565 fi
9566
9567 pa_find_func_found="$pa_cv_func__byteswap_uint64"
9568
9569 fi
9570 if test x"$pa_find_func_found" != xyes
9571 then :
9572
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le64" >&5
9574 printf %s "checking for cpu_to_le64... " >&6; }
9575 if test ${pa_cv_func_cpu_to_le64+y}
9576 then :
9577 printf %s "(cached) " >&6
9578 else case e in #(
9579 e)
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 $ac_includes_default
9583
9584 int
9585 main (void)
9586 {
9587
9588 (void)cpu_to_le64(0);
9589
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 if ac_fn_c_try_link "$LINENO"
9595 then :
9596 pa_cv_func_cpu_to_le64=yes
9597 else case e in #(
9598 e) pa_cv_func_cpu_to_le64=no ;;
9599 esac
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9602 conftest$ac_exeext conftest.$ac_ext
9603 ;;
9604 esac
9605 fi
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_cpu_to_le64" >&5
9607 printf "%s\n" "$pa_cv_func_cpu_to_le64" >&6; }
9608
9609 if test "x$pa_cv_func_cpu_to_le64" = xyes
9610 then :
9611
9612 printf "%s\n" "#define HAVE_CPU_TO_LE64 1" >>confdefs.h
9613
9614 fi
9615
9616 pa_find_func_found="$pa_cv_func_cpu_to_le64"
9617
9618 fi
9619 if test x"$pa_find_func_found" != xyes
9620 then :
9621
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le64" >&5
9623 printf %s "checking for __cpu_to_le64... " >&6; }
9624 if test ${pa_cv_func___cpu_to_le64+y}
9625 then :
9626 printf %s "(cached) " >&6
9627 else case e in #(
9628 e)
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 $ac_includes_default
9632
9633 int
9634 main (void)
9635 {
9636
9637 (void)__cpu_to_le64(0);
9638
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 if ac_fn_c_try_link "$LINENO"
9644 then :
9645 pa_cv_func___cpu_to_le64=yes
9646 else case e in #(
9647 e) pa_cv_func___cpu_to_le64=no ;;
9648 esac
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9651 conftest$ac_exeext conftest.$ac_ext
9652 ;;
9653 esac
9654 fi
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___cpu_to_le64" >&5
9656 printf "%s\n" "$pa_cv_func___cpu_to_le64" >&6; }
9657
9658 if test "x$pa_cv_func___cpu_to_le64" = xyes
9659 then :
9660
9661 printf "%s\n" "#define HAVE___CPU_TO_LE64 1" >>confdefs.h
9662
9663 fi
9664
9665 pa_find_func_found="$pa_cv_func___cpu_to_le64"
9666
9667 fi
9668 ;;
9669 esac
9670 fi
9671 if test x$ac_cv_c_bigendian = xyes
9672 then :
9673
9674
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe16" >&5
9676 printf %s "checking for htobe16... " >&6; }
9677 if test ${pa_cv_func_htobe16+y}
9678 then :
9679 printf %s "(cached) " >&6
9680 else case e in #(
9681 e)
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 #ifdef HAVE_ENDIAN_H
9686 #include <endian.h>
9687 #endif
9688 #ifdef HAVE_SYS_ENDIAN_H
9689 #include <sys/endian.h>
9690 #endif
9691 #ifdef HAVE_MACHINE_ENDIAN_H
9692 #include <machine/endian.h>
9693 #endif
9694
9695 int
9696 main (void)
9697 {
9698
9699 (void)htobe16(0);
9700
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 if ac_fn_c_try_link "$LINENO"
9706 then :
9707 pa_cv_func_htobe16=yes
9708 else case e in #(
9709 e) pa_cv_func_htobe16=no ;;
9710 esac
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9713 conftest$ac_exeext conftest.$ac_ext
9714 ;;
9715 esac
9716 fi
9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htobe16" >&5
9718 printf "%s\n" "$pa_cv_func_htobe16" >&6; }
9719
9720 if test "x$pa_cv_func_htobe16" = xyes
9721 then :
9722
9723 printf "%s\n" "#define HAVE_HTOBE16 1" >>confdefs.h
9724
9725 fi
9726
9727
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe32" >&5
9729 printf %s "checking for htobe32... " >&6; }
9730 if test ${pa_cv_func_htobe32+y}
9731 then :
9732 printf %s "(cached) " >&6
9733 else case e in #(
9734 e)
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 $ac_includes_default
9738 #ifdef HAVE_ENDIAN_H
9739 #include <endian.h>
9740 #endif
9741 #ifdef HAVE_SYS_ENDIAN_H
9742 #include <sys/endian.h>
9743 #endif
9744 #ifdef HAVE_MACHINE_ENDIAN_H
9745 #include <machine/endian.h>
9746 #endif
9747
9748 int
9749 main (void)
9750 {
9751
9752 (void)htobe32(0);
9753
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"
9759 then :
9760 pa_cv_func_htobe32=yes
9761 else case e in #(
9762 e) pa_cv_func_htobe32=no ;;
9763 esac
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9766 conftest$ac_exeext conftest.$ac_ext
9767 ;;
9768 esac
9769 fi
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htobe32" >&5
9771 printf "%s\n" "$pa_cv_func_htobe32" >&6; }
9772
9773 if test "x$pa_cv_func_htobe32" = xyes
9774 then :
9775
9776 printf "%s\n" "#define HAVE_HTOBE32 1" >>confdefs.h
9777
9778 fi
9779
9780
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
9782 printf %s "checking for htobe64... " >&6; }
9783 if test ${pa_cv_func_htobe64+y}
9784 then :
9785 printf %s "(cached) " >&6
9786 else case e in #(
9787 e)
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 $ac_includes_default
9791 #ifdef HAVE_ENDIAN_H
9792 #include <endian.h>
9793 #endif
9794 #ifdef HAVE_SYS_ENDIAN_H
9795 #include <sys/endian.h>
9796 #endif
9797 #ifdef HAVE_MACHINE_ENDIAN_H
9798 #include <machine/endian.h>
9799 #endif
9800
9801 int
9802 main (void)
9803 {
9804
9805 (void)htobe64(0);
9806
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"
9812 then :
9813 pa_cv_func_htobe64=yes
9814 else case e in #(
9815 e) pa_cv_func_htobe64=no ;;
9816 esac
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9819 conftest$ac_exeext conftest.$ac_ext
9820 ;;
9821 esac
9822 fi
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htobe64" >&5
9824 printf "%s\n" "$pa_cv_func_htobe64" >&6; }
9825
9826 if test "x$pa_cv_func_htobe64" = xyes
9827 then :
9828
9829 printf "%s\n" "#define HAVE_HTOBE64 1" >>confdefs.h
9830
9831 fi
9832
9833
9834 else case e in #(
9835 e)
9836 pa_find_func_found=no
9837
9838 if test x"$pa_find_func_found" != xyes
9839 then :
9840
9841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe16" >&5
9842 printf %s "checking for htobe16... " >&6; }
9843 if test ${pa_cv_func_htobe16+y}
9844 then :
9845 printf %s "(cached) " >&6
9846 else case e in #(
9847 e)
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #ifdef HAVE_ENDIAN_H
9852 #include <endian.h>
9853 #endif
9854 #ifdef HAVE_SYS_ENDIAN_H
9855 #include <sys/endian.h>
9856 #endif
9857 #ifdef HAVE_MACHINE_ENDIAN_H
9858 #include <machine/endian.h>
9859 #endif
9860
9861 int
9862 main (void)
9863 {
9864
9865 (void)htobe16(0);
9866
9867 ;
9868 return 0;
9869 }
9870 _ACEOF
9871 if ac_fn_c_try_link "$LINENO"
9872 then :
9873 pa_cv_func_htobe16=yes
9874 else case e in #(
9875 e) pa_cv_func_htobe16=no ;;
9876 esac
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9879 conftest$ac_exeext conftest.$ac_ext
9880 ;;
9881 esac
9882 fi
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htobe16" >&5
9884 printf "%s\n" "$pa_cv_func_htobe16" >&6; }
9885
9886 if test "x$pa_cv_func_htobe16" = xyes
9887 then :
9888
9889 printf "%s\n" "#define HAVE_HTOBE16 1" >>confdefs.h
9890
9891 fi
9892
9893 pa_find_func_found="$pa_cv_func_htobe16"
9894
9895 fi
9896 if test x"$pa_find_func_found" != xyes
9897 then :
9898
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htons" >&5
9900 printf %s "checking for htons... " >&6; }
9901 if test ${pa_cv_func_htons+y}
9902 then :
9903 printf %s "(cached) " >&6
9904 else case e in #(
9905 e)
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 $ac_includes_default
9909 #ifdef HAVE_ARPA_INET_H
9910 #include <arpa/inet.h>
9911 #endif
9912
9913 int
9914 main (void)
9915 {
9916
9917 (void)htons(0);
9918
9919 ;
9920 return 0;
9921 }
9922 _ACEOF
9923 if ac_fn_c_try_link "$LINENO"
9924 then :
9925 pa_cv_func_htons=yes
9926 else case e in #(
9927 e) pa_cv_func_htons=no ;;
9928 esac
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9931 conftest$ac_exeext conftest.$ac_ext
9932 ;;
9933 esac
9934 fi
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htons" >&5
9936 printf "%s\n" "$pa_cv_func_htons" >&6; }
9937
9938 if test "x$pa_cv_func_htons" = xyes
9939 then :
9940
9941 printf "%s\n" "#define HAVE_HTONS 1" >>confdefs.h
9942
9943 fi
9944
9945 pa_find_func_found="$pa_cv_func_htons"
9946
9947 fi
9948 if test x"$pa_find_func_found" != xyes
9949 then :
9950
9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
9952 printf %s "checking for __builtin_bswap16... " >&6; }
9953 if test ${pa_cv_func___builtin_bswap16+y}
9954 then :
9955 printf %s "(cached) " >&6
9956 else case e in #(
9957 e)
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 $ac_includes_default
9961
9962 int
9963 main (void)
9964 {
9965
9966 (void)__builtin_bswap16(0);
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"
9973 then :
9974 pa_cv_func___builtin_bswap16=yes
9975 else case e in #(
9976 e) pa_cv_func___builtin_bswap16=no ;;
9977 esac
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9980 conftest$ac_exeext conftest.$ac_ext
9981 ;;
9982 esac
9983 fi
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_bswap16" >&5
9985 printf "%s\n" "$pa_cv_func___builtin_bswap16" >&6; }
9986
9987 if test "x$pa_cv_func___builtin_bswap16" = xyes
9988 then :
9989
9990 printf "%s\n" "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h
9991
9992 fi
9993
9994 pa_find_func_found="$pa_cv_func___builtin_bswap16"
9995
9996 fi
9997 if test x"$pa_find_func_found" != xyes
9998 then :
9999
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_16" >&5
10001 printf %s "checking for bswap_16... " >&6; }
10002 if test ${pa_cv_func_bswap_16+y}
10003 then :
10004 printf %s "(cached) " >&6
10005 else case e in #(
10006 e)
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 #ifdef HAVE_BYTESWAP_H
10011 #include <byteswap.h>
10012 #endif
10013
10014 int
10015 main (void)
10016 {
10017
10018 (void)bswap_16(0);
10019
10020 ;
10021 return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"
10025 then :
10026 pa_cv_func_bswap_16=yes
10027 else case e in #(
10028 e) pa_cv_func_bswap_16=no ;;
10029 esac
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10032 conftest$ac_exeext conftest.$ac_ext
10033 ;;
10034 esac
10035 fi
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_bswap_16" >&5
10037 printf "%s\n" "$pa_cv_func_bswap_16" >&6; }
10038
10039 if test "x$pa_cv_func_bswap_16" = xyes
10040 then :
10041
10042 printf "%s\n" "#define HAVE_BSWAP_16 1" >>confdefs.h
10043
10044 fi
10045
10046 pa_find_func_found="$pa_cv_func_bswap_16"
10047
10048 fi
10049 if test x"$pa_find_func_found" != xyes
10050 then :
10051
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ushort" >&5
10053 printf %s "checking for _byteswap_ushort... " >&6; }
10054 if test ${pa_cv_func__byteswap_ushort+y}
10055 then :
10056 printf %s "(cached) " >&6
10057 else case e in #(
10058 e)
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 $ac_includes_default
10062 #ifdef HAVE_STDLIB_H
10063 #include <stdlib.h>
10064 #endif
10065
10066 int
10067 main (void)
10068 {
10069
10070 (void)_byteswap_ushort(0);
10071
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"
10077 then :
10078 pa_cv_func__byteswap_ushort=yes
10079 else case e in #(
10080 e) pa_cv_func__byteswap_ushort=no ;;
10081 esac
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10084 conftest$ac_exeext conftest.$ac_ext
10085 ;;
10086 esac
10087 fi
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__byteswap_ushort" >&5
10089 printf "%s\n" "$pa_cv_func__byteswap_ushort" >&6; }
10090
10091 if test "x$pa_cv_func__byteswap_ushort" = xyes
10092 then :
10093
10094 printf "%s\n" "#define HAVE__BYTESWAP_USHORT 1" >>confdefs.h
10095
10096 fi
10097
10098 pa_find_func_found="$pa_cv_func__byteswap_ushort"
10099
10100 fi
10101 if test x"$pa_find_func_found" != xyes
10102 then :
10103
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpu_to_be16" >&5
10105 printf %s "checking for cpu_to_be16... " >&6; }
10106 if test ${pa_cv_func_cpu_to_be16+y}
10107 then :
10108 printf %s "(cached) " >&6
10109 else case e in #(
10110 e)
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 $ac_includes_default
10114
10115 int
10116 main (void)
10117 {
10118
10119 (void)cpu_to_be16(0);
10120
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"
10126 then :
10127 pa_cv_func_cpu_to_be16=yes
10128 else case e in #(
10129 e) pa_cv_func_cpu_to_be16=no ;;
10130 esac
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10133 conftest$ac_exeext conftest.$ac_ext
10134 ;;
10135 esac
10136 fi
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_cpu_to_be16" >&5
10138 printf "%s\n" "$pa_cv_func_cpu_to_be16" >&6; }
10139
10140 if test "x$pa_cv_func_cpu_to_be16" = xyes
10141 then :
10142
10143 printf "%s\n" "#define HAVE_CPU_TO_BE16 1" >>confdefs.h
10144
10145 fi
10146
10147 pa_find_func_found="$pa_cv_func_cpu_to_be16"
10148
10149 fi
10150 if test x"$pa_find_func_found" != xyes
10151 then :
10152
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_be16" >&5
10154 printf %s "checking for __cpu_to_be16... " >&6; }
10155 if test ${pa_cv_func___cpu_to_be16+y}
10156 then :
10157 printf %s "(cached) " >&6
10158 else case e in #(
10159 e)
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163
10164 int
10165 main (void)
10166 {
10167
10168 (void)__cpu_to_be16(0);
10169
10170 ;
10171 return 0;
10172 }
10173 _ACEOF
10174 if ac_fn_c_try_link "$LINENO"
10175 then :
10176 pa_cv_func___cpu_to_be16=yes
10177 else case e in #(
10178 e) pa_cv_func___cpu_to_be16=no ;;
10179 esac
10180 fi
10181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10182 conftest$ac_exeext conftest.$ac_ext
10183 ;;
10184 esac
10185 fi
10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___cpu_to_be16" >&5
10187 printf "%s\n" "$pa_cv_func___cpu_to_be16" >&6; }
10188
10189 if test "x$pa_cv_func___cpu_to_be16" = xyes
10190 then :
10191
10192 printf "%s\n" "#define HAVE___CPU_TO_BE16 1" >>confdefs.h
10193
10194 fi
10195
10196 pa_find_func_found="$pa_cv_func___cpu_to_be16"
10197
10198 fi
10199 pa_find_func_found=no
10200
10201 if test x"$pa_find_func_found" != xyes
10202 then :
10203
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe32" >&5
10205 printf %s "checking for htobe32... " >&6; }
10206 if test ${pa_cv_func_htobe32+y}
10207 then :
10208 printf %s "(cached) " >&6
10209 else case e in #(
10210 e)
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10213 $ac_includes_default
10214 #ifdef HAVE_ENDIAN_H
10215 #include <endian.h>
10216 #endif
10217 #ifdef HAVE_SYS_ENDIAN_H
10218 #include <sys/endian.h>
10219 #endif
10220 #ifdef HAVE_MACHINE_ENDIAN_H
10221 #include <machine/endian.h>
10222 #endif
10223
10224 int
10225 main (void)
10226 {
10227
10228 (void)htobe32(0);
10229
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"
10235 then :
10236 pa_cv_func_htobe32=yes
10237 else case e in #(
10238 e) pa_cv_func_htobe32=no ;;
10239 esac
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10242 conftest$ac_exeext conftest.$ac_ext
10243 ;;
10244 esac
10245 fi
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htobe32" >&5
10247 printf "%s\n" "$pa_cv_func_htobe32" >&6; }
10248
10249 if test "x$pa_cv_func_htobe32" = xyes
10250 then :
10251
10252 printf "%s\n" "#define HAVE_HTOBE32 1" >>confdefs.h
10253
10254 fi
10255
10256 pa_find_func_found="$pa_cv_func_htobe32"
10257
10258 fi
10259 if test x"$pa_find_func_found" != xyes
10260 then :
10261
10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htonl" >&5
10263 printf %s "checking for htonl... " >&6; }
10264 if test ${pa_cv_func_htonl+y}
10265 then :
10266 printf %s "(cached) " >&6
10267 else case e in #(
10268 e)
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #ifdef HAVE_ARPA_INET_H
10273 #include <arpa/inet.h>
10274 #endif
10275
10276 int
10277 main (void)
10278 {
10279
10280 (void)htonl(0);
10281
10282 ;
10283 return 0;
10284 }
10285 _ACEOF
10286 if ac_fn_c_try_link "$LINENO"
10287 then :
10288 pa_cv_func_htonl=yes
10289 else case e in #(
10290 e) pa_cv_func_htonl=no ;;
10291 esac
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10294 conftest$ac_exeext conftest.$ac_ext
10295 ;;
10296 esac
10297 fi
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htonl" >&5
10299 printf "%s\n" "$pa_cv_func_htonl" >&6; }
10300
10301 if test "x$pa_cv_func_htonl" = xyes
10302 then :
10303
10304 printf "%s\n" "#define HAVE_HTONL 1" >>confdefs.h
10305
10306 fi
10307
10308 pa_find_func_found="$pa_cv_func_htonl"
10309
10310 fi
10311 if test x"$pa_find_func_found" != xyes
10312 then :
10313
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
10315 printf %s "checking for __builtin_bswap32... " >&6; }
10316 if test ${pa_cv_func___builtin_bswap32+y}
10317 then :
10318 printf %s "(cached) " >&6
10319 else case e in #(
10320 e)
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 $ac_includes_default
10324
10325 int
10326 main (void)
10327 {
10328
10329 (void)__builtin_bswap32(0);
10330
10331 ;
10332 return 0;
10333 }
10334 _ACEOF
10335 if ac_fn_c_try_link "$LINENO"
10336 then :
10337 pa_cv_func___builtin_bswap32=yes
10338 else case e in #(
10339 e) pa_cv_func___builtin_bswap32=no ;;
10340 esac
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10343 conftest$ac_exeext conftest.$ac_ext
10344 ;;
10345 esac
10346 fi
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_bswap32" >&5
10348 printf "%s\n" "$pa_cv_func___builtin_bswap32" >&6; }
10349
10350 if test "x$pa_cv_func___builtin_bswap32" = xyes
10351 then :
10352
10353 printf "%s\n" "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
10354
10355 fi
10356
10357 pa_find_func_found="$pa_cv_func___builtin_bswap32"
10358
10359 fi
10360 if test x"$pa_find_func_found" != xyes
10361 then :
10362
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_32" >&5
10364 printf %s "checking for bswap_32... " >&6; }
10365 if test ${pa_cv_func_bswap_32+y}
10366 then :
10367 printf %s "(cached) " >&6
10368 else case e in #(
10369 e)
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 $ac_includes_default
10373 #ifdef HAVE_BYTESWAP_H
10374 #include <byteswap.h>
10375 #endif
10376
10377 int
10378 main (void)
10379 {
10380
10381 (void)bswap_32(0);
10382
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"
10388 then :
10389 pa_cv_func_bswap_32=yes
10390 else case e in #(
10391 e) pa_cv_func_bswap_32=no ;;
10392 esac
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10395 conftest$ac_exeext conftest.$ac_ext
10396 ;;
10397 esac
10398 fi
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_bswap_32" >&5
10400 printf "%s\n" "$pa_cv_func_bswap_32" >&6; }
10401
10402 if test "x$pa_cv_func_bswap_32" = xyes
10403 then :
10404
10405 printf "%s\n" "#define HAVE_BSWAP_32 1" >>confdefs.h
10406
10407 fi
10408
10409 pa_find_func_found="$pa_cv_func_bswap_32"
10410
10411 fi
10412 if test x"$pa_find_func_found" != xyes
10413 then :
10414
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ulong" >&5
10416 printf %s "checking for _byteswap_ulong... " >&6; }
10417 if test ${pa_cv_func__byteswap_ulong+y}
10418 then :
10419 printf %s "(cached) " >&6
10420 else case e in #(
10421 e)
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 $ac_includes_default
10425 #ifdef HAVE_STDLIB_H
10426 #include <stdlib.h>
10427 #endif
10428
10429 int
10430 main (void)
10431 {
10432
10433 (void)_byteswap_ulong(0);
10434
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"
10440 then :
10441 pa_cv_func__byteswap_ulong=yes
10442 else case e in #(
10443 e) pa_cv_func__byteswap_ulong=no ;;
10444 esac
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10447 conftest$ac_exeext conftest.$ac_ext
10448 ;;
10449 esac
10450 fi
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__byteswap_ulong" >&5
10452 printf "%s\n" "$pa_cv_func__byteswap_ulong" >&6; }
10453
10454 if test "x$pa_cv_func__byteswap_ulong" = xyes
10455 then :
10456
10457 printf "%s\n" "#define HAVE__BYTESWAP_ULONG 1" >>confdefs.h
10458
10459 fi
10460
10461 pa_find_func_found="$pa_cv_func__byteswap_ulong"
10462
10463 fi
10464 if test x"$pa_find_func_found" != xyes
10465 then :
10466
10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpu_to_be32" >&5
10468 printf %s "checking for cpu_to_be32... " >&6; }
10469 if test ${pa_cv_func_cpu_to_be32+y}
10470 then :
10471 printf %s "(cached) " >&6
10472 else case e in #(
10473 e)
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 $ac_includes_default
10477
10478 int
10479 main (void)
10480 {
10481
10482 (void)cpu_to_be32(0);
10483
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_link "$LINENO"
10489 then :
10490 pa_cv_func_cpu_to_be32=yes
10491 else case e in #(
10492 e) pa_cv_func_cpu_to_be32=no ;;
10493 esac
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496 conftest$ac_exeext conftest.$ac_ext
10497 ;;
10498 esac
10499 fi
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_cpu_to_be32" >&5
10501 printf "%s\n" "$pa_cv_func_cpu_to_be32" >&6; }
10502
10503 if test "x$pa_cv_func_cpu_to_be32" = xyes
10504 then :
10505
10506 printf "%s\n" "#define HAVE_CPU_TO_BE32 1" >>confdefs.h
10507
10508 fi
10509
10510 pa_find_func_found="$pa_cv_func_cpu_to_be32"
10511
10512 fi
10513 if test x"$pa_find_func_found" != xyes
10514 then :
10515
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le32" >&5
10517 printf %s "checking for __cpu_to_le32... " >&6; }
10518 if test ${pa_cv_func___cpu_to_le32+y}
10519 then :
10520 printf %s "(cached) " >&6
10521 else case e in #(
10522 e)
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 $ac_includes_default
10526
10527 int
10528 main (void)
10529 {
10530
10531 (void)__cpu_to_le32(0);
10532
10533 ;
10534 return 0;
10535 }
10536 _ACEOF
10537 if ac_fn_c_try_link "$LINENO"
10538 then :
10539 pa_cv_func___cpu_to_le32=yes
10540 else case e in #(
10541 e) pa_cv_func___cpu_to_le32=no ;;
10542 esac
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10545 conftest$ac_exeext conftest.$ac_ext
10546 ;;
10547 esac
10548 fi
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___cpu_to_le32" >&5
10550 printf "%s\n" "$pa_cv_func___cpu_to_le32" >&6; }
10551
10552 if test "x$pa_cv_func___cpu_to_le32" = xyes
10553 then :
10554
10555 printf "%s\n" "#define HAVE___CPU_TO_LE32 1" >>confdefs.h
10556
10557 fi
10558
10559 pa_find_func_found="$pa_cv_func___cpu_to_le32"
10560
10561 fi
10562 pa_find_func_found=no
10563
10564 if test x"$pa_find_func_found" != xyes
10565 then :
10566
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
10568 printf %s "checking for htobe64... " >&6; }
10569 if test ${pa_cv_func_htobe64+y}
10570 then :
10571 printf %s "(cached) " >&6
10572 else case e in #(
10573 e)
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 #ifdef HAVE_ENDIAN_H
10578 #include <endian.h>
10579 #endif
10580 #ifdef HAVE_SYS_ENDIAN_H
10581 #include <sys/endian.h>
10582 #endif
10583 #ifdef HAVE_MACHINE_ENDIAN_H
10584 #include <machine/endian.h>
10585 #endif
10586
10587 int
10588 main (void)
10589 {
10590
10591 (void)htobe64(0);
10592
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"
10598 then :
10599 pa_cv_func_htobe64=yes
10600 else case e in #(
10601 e) pa_cv_func_htobe64=no ;;
10602 esac
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10605 conftest$ac_exeext conftest.$ac_ext
10606 ;;
10607 esac
10608 fi
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htobe64" >&5
10610 printf "%s\n" "$pa_cv_func_htobe64" >&6; }
10611
10612 if test "x$pa_cv_func_htobe64" = xyes
10613 then :
10614
10615 printf "%s\n" "#define HAVE_HTOBE64 1" >>confdefs.h
10616
10617 fi
10618
10619 pa_find_func_found="$pa_cv_func_htobe64"
10620
10621 fi
10622 if test x"$pa_find_func_found" != xyes
10623 then :
10624
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htonq" >&5
10626 printf %s "checking for htonq... " >&6; }
10627 if test ${pa_cv_func_htonq+y}
10628 then :
10629 printf %s "(cached) " >&6
10630 else case e in #(
10631 e)
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 #ifdef HAVE_ARPA_INET_H
10636 #include <arpa/inet.h>
10637 #endif
10638
10639 int
10640 main (void)
10641 {
10642
10643 (void)htonq(0);
10644
10645 ;
10646 return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_c_try_link "$LINENO"
10650 then :
10651 pa_cv_func_htonq=yes
10652 else case e in #(
10653 e) pa_cv_func_htonq=no ;;
10654 esac
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10657 conftest$ac_exeext conftest.$ac_ext
10658 ;;
10659 esac
10660 fi
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_htonq" >&5
10662 printf "%s\n" "$pa_cv_func_htonq" >&6; }
10663
10664 if test "x$pa_cv_func_htonq" = xyes
10665 then :
10666
10667 printf "%s\n" "#define HAVE_HTONQ 1" >>confdefs.h
10668
10669 fi
10670
10671 pa_find_func_found="$pa_cv_func_htonq"
10672
10673 fi
10674 if test x"$pa_find_func_found" != xyes
10675 then :
10676
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
10678 printf %s "checking for __builtin_bswap64... " >&6; }
10679 if test ${pa_cv_func___builtin_bswap64+y}
10680 then :
10681 printf %s "(cached) " >&6
10682 else case e in #(
10683 e)
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686 $ac_includes_default
10687
10688 int
10689 main (void)
10690 {
10691
10692 (void)__builtin_bswap64(0);
10693
10694 ;
10695 return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_link "$LINENO"
10699 then :
10700 pa_cv_func___builtin_bswap64=yes
10701 else case e in #(
10702 e) pa_cv_func___builtin_bswap64=no ;;
10703 esac
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10706 conftest$ac_exeext conftest.$ac_ext
10707 ;;
10708 esac
10709 fi
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_bswap64" >&5
10711 printf "%s\n" "$pa_cv_func___builtin_bswap64" >&6; }
10712
10713 if test "x$pa_cv_func___builtin_bswap64" = xyes
10714 then :
10715
10716 printf "%s\n" "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h
10717
10718 fi
10719
10720 pa_find_func_found="$pa_cv_func___builtin_bswap64"
10721
10722 fi
10723 if test x"$pa_find_func_found" != xyes
10724 then :
10725
10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_64" >&5
10727 printf %s "checking for bswap_64... " >&6; }
10728 if test ${pa_cv_func_bswap_64+y}
10729 then :
10730 printf %s "(cached) " >&6
10731 else case e in #(
10732 e)
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 $ac_includes_default
10736 #ifdef HAVE_BYTESWAP_H
10737 #include <byteswap.h>
10738 #endif
10739
10740 int
10741 main (void)
10742 {
10743
10744 (void)bswap_64(0);
10745
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"
10751 then :
10752 pa_cv_func_bswap_64=yes
10753 else case e in #(
10754 e) pa_cv_func_bswap_64=no ;;
10755 esac
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10758 conftest$ac_exeext conftest.$ac_ext
10759 ;;
10760 esac
10761 fi
10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_bswap_64" >&5
10763 printf "%s\n" "$pa_cv_func_bswap_64" >&6; }
10764
10765 if test "x$pa_cv_func_bswap_64" = xyes
10766 then :
10767
10768 printf "%s\n" "#define HAVE_BSWAP_64 1" >>confdefs.h
10769
10770 fi
10771
10772 pa_find_func_found="$pa_cv_func_bswap_64"
10773
10774 fi
10775 if test x"$pa_find_func_found" != xyes
10776 then :
10777
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_uint64" >&5
10779 printf %s "checking for _byteswap_uint64... " >&6; }
10780 if test ${pa_cv_func__byteswap_uint64+y}
10781 then :
10782 printf %s "(cached) " >&6
10783 else case e in #(
10784 e)
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787 $ac_includes_default
10788 #ifdef HAVE_STDLIB_H
10789 #include <stdlib.h>
10790 #endif
10791
10792 int
10793 main (void)
10794 {
10795
10796 (void)_byteswap_uint64(0);
10797
10798 ;
10799 return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_c_try_link "$LINENO"
10803 then :
10804 pa_cv_func__byteswap_uint64=yes
10805 else case e in #(
10806 e) pa_cv_func__byteswap_uint64=no ;;
10807 esac
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10810 conftest$ac_exeext conftest.$ac_ext
10811 ;;
10812 esac
10813 fi
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__byteswap_uint64" >&5
10815 printf "%s\n" "$pa_cv_func__byteswap_uint64" >&6; }
10816
10817 if test "x$pa_cv_func__byteswap_uint64" = xyes
10818 then :
10819
10820 printf "%s\n" "#define HAVE__BYTESWAP_UINT64 1" >>confdefs.h
10821
10822 fi
10823
10824 pa_find_func_found="$pa_cv_func__byteswap_uint64"
10825
10826 fi
10827 if test x"$pa_find_func_found" != xyes
10828 then :
10829
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpu_to_be64" >&5
10831 printf %s "checking for cpu_to_be64... " >&6; }
10832 if test ${pa_cv_func_cpu_to_be64+y}
10833 then :
10834 printf %s "(cached) " >&6
10835 else case e in #(
10836 e)
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 $ac_includes_default
10840
10841 int
10842 main (void)
10843 {
10844
10845 (void)cpu_to_be64(0);
10846
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"
10852 then :
10853 pa_cv_func_cpu_to_be64=yes
10854 else case e in #(
10855 e) pa_cv_func_cpu_to_be64=no ;;
10856 esac
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10859 conftest$ac_exeext conftest.$ac_ext
10860 ;;
10861 esac
10862 fi
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_cpu_to_be64" >&5
10864 printf "%s\n" "$pa_cv_func_cpu_to_be64" >&6; }
10865
10866 if test "x$pa_cv_func_cpu_to_be64" = xyes
10867 then :
10868
10869 printf "%s\n" "#define HAVE_CPU_TO_BE64 1" >>confdefs.h
10870
10871 fi
10872
10873 pa_find_func_found="$pa_cv_func_cpu_to_be64"
10874
10875 fi
10876 if test x"$pa_find_func_found" != xyes
10877 then :
10878
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_be64" >&5
10880 printf %s "checking for __cpu_to_be64... " >&6; }
10881 if test ${pa_cv_func___cpu_to_be64+y}
10882 then :
10883 printf %s "(cached) " >&6
10884 else case e in #(
10885 e)
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 $ac_includes_default
10889
10890 int
10891 main (void)
10892 {
10893
10894 (void)__cpu_to_be64(0);
10895
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"
10901 then :
10902 pa_cv_func___cpu_to_be64=yes
10903 else case e in #(
10904 e) pa_cv_func___cpu_to_be64=no ;;
10905 esac
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10908 conftest$ac_exeext conftest.$ac_ext
10909 ;;
10910 esac
10911 fi
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___cpu_to_be64" >&5
10913 printf "%s\n" "$pa_cv_func___cpu_to_be64" >&6; }
10914
10915 if test "x$pa_cv_func___cpu_to_be64" = xyes
10916 then :
10917
10918 printf "%s\n" "#define HAVE___CPU_TO_BE64 1" >>confdefs.h
10919
10920 fi
10921
10922 pa_find_func_found="$pa_cv_func___cpu_to_be64"
10923
10924 fi
10925 ;;
10926 esac
10927 fi
10928
10929
10930
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdc_leading_zeros" >&5
10932 printf %s "checking for stdc_leading_zeros... " >&6; }
10933 if test ${pa_cv_func_stdc_leading_zeros+y}
10934 then :
10935 printf %s "(cached) " >&6
10936 else case e in #(
10937 e)
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 $ac_includes_default
10941 #ifdef HAVE_STDBIT_H
10942 #include <stdbit.h>
10943 #endif
10944
10945 int
10946 main (void)
10947 {
10948
10949 (void)stdc_leading_zeros(0U);
10950
10951 ;
10952 return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"
10956 then :
10957 pa_cv_func_stdc_leading_zeros=yes
10958 else case e in #(
10959 e) pa_cv_func_stdc_leading_zeros=no ;;
10960 esac
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10963 conftest$ac_exeext conftest.$ac_ext
10964 ;;
10965 esac
10966 fi
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_stdc_leading_zeros" >&5
10968 printf "%s\n" "$pa_cv_func_stdc_leading_zeros" >&6; }
10969
10970 if test "x$pa_cv_func_stdc_leading_zeros" = xyes
10971 then :
10972
10973 printf "%s\n" "#define HAVE_STDC_LEADING_ZEROS 1" >>confdefs.h
10974
10975 fi
10976
10977
10978 if test x$pa_cv_func_stdc_leading_zeros != xyes
10979 then :
10980 pa_find_func_found=no
10981
10982 if test x"$pa_find_func_found" != xyes
10983 then :
10984
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
10986 printf %s "checking for __builtin_clz... " >&6; }
10987 if test ${pa_cv_func___builtin_clz+y}
10988 then :
10989 printf %s "(cached) " >&6
10990 else case e in #(
10991 e)
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994 $ac_includes_default
10995
10996 int
10997 main (void)
10998 {
10999
11000 (void)__builtin_clz(0U);
11001
11002 ;
11003 return 0;
11004 }
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"
11007 then :
11008 pa_cv_func___builtin_clz=yes
11009 else case e in #(
11010 e) pa_cv_func___builtin_clz=no ;;
11011 esac
11012 fi
11013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11014 conftest$ac_exeext conftest.$ac_ext
11015 ;;
11016 esac
11017 fi
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_clz" >&5
11019 printf "%s\n" "$pa_cv_func___builtin_clz" >&6; }
11020
11021 if test "x$pa_cv_func___builtin_clz" = xyes
11022 then :
11023
11024 printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
11025
11026 fi
11027
11028 pa_find_func_found="$pa_cv_func___builtin_clz"
11029
11030 fi
11031 if test x"$pa_find_func_found" != xyes
11032 then :
11033
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse" >&5
11035 printf %s "checking for _BitScanReverse... " >&6; }
11036 if test ${pa_cv_func__BitScanReverse+y}
11037 then :
11038 printf %s "(cached) " >&6
11039 else case e in #(
11040 e)
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043 $ac_includes_default
11044 #ifdef HAVE_INTRIN_H
11045 #include <intrin.h>
11046 #endif
11047
11048 int
11049 main (void)
11050 {
11051
11052 (void)_BitScanReverse(0UL);
11053
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"
11059 then :
11060 pa_cv_func__BitScanReverse=yes
11061 else case e in #(
11062 e) pa_cv_func__BitScanReverse=no ;;
11063 esac
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11066 conftest$ac_exeext conftest.$ac_ext
11067 ;;
11068 esac
11069 fi
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__BitScanReverse" >&5
11071 printf "%s\n" "$pa_cv_func__BitScanReverse" >&6; }
11072
11073 if test "x$pa_cv_func__BitScanReverse" = xyes
11074 then :
11075
11076 printf "%s\n" "#define HAVE__BITSCANREVERSE 1" >>confdefs.h
11077
11078 fi
11079
11080 pa_find_func_found="$pa_cv_func__BitScanReverse"
11081
11082 fi
11083 pa_find_func_found=no
11084
11085 if test x"$pa_find_func_found" != xyes
11086 then :
11087
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
11089 printf %s "checking for __builtin_clzll... " >&6; }
11090 if test ${pa_cv_func___builtin_clzll+y}
11091 then :
11092 printf %s "(cached) " >&6
11093 else case e in #(
11094 e)
11095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11097 $ac_includes_default
11098
11099 int
11100 main (void)
11101 {
11102
11103 (void)__builtin_clzll(0ULL);
11104
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"
11110 then :
11111 pa_cv_func___builtin_clzll=yes
11112 else case e in #(
11113 e) pa_cv_func___builtin_clzll=no ;;
11114 esac
11115 fi
11116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11117 conftest$ac_exeext conftest.$ac_ext
11118 ;;
11119 esac
11120 fi
11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_clzll" >&5
11122 printf "%s\n" "$pa_cv_func___builtin_clzll" >&6; }
11123
11124 if test "x$pa_cv_func___builtin_clzll" = xyes
11125 then :
11126
11127 printf "%s\n" "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
11128
11129 fi
11130
11131 pa_find_func_found="$pa_cv_func___builtin_clzll"
11132
11133 fi
11134 if test x"$pa_find_func_found" != xyes
11135 then :
11136
11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse64" >&5
11138 printf %s "checking for _BitScanReverse64... " >&6; }
11139 if test ${pa_cv_func__BitScanReverse64+y}
11140 then :
11141 printf %s "(cached) " >&6
11142 else case e in #(
11143 e)
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 #ifdef HAVE_INTRIN_H
11148 #include <intrin.h>
11149 #endif
11150
11151 int
11152 main (void)
11153 {
11154
11155 (void)_BitScanReverse64(0ULL);
11156
11157 ;
11158 return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_c_try_link "$LINENO"
11162 then :
11163 pa_cv_func__BitScanReverse64=yes
11164 else case e in #(
11165 e) pa_cv_func__BitScanReverse64=no ;;
11166 esac
11167 fi
11168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11169 conftest$ac_exeext conftest.$ac_ext
11170 ;;
11171 esac
11172 fi
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func__BitScanReverse64" >&5
11174 printf "%s\n" "$pa_cv_func__BitScanReverse64" >&6; }
11175
11176 if test "x$pa_cv_func__BitScanReverse64" = xyes
11177 then :
11178
11179 printf "%s\n" "#define HAVE__BITSCANREVERSE64 1" >>confdefs.h
11180
11181 fi
11182
11183 pa_find_func_found="$pa_cv_func__BitScanReverse64"
11184
11185 fi
11186 fi
11187
11188
11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
11190 printf %s "checking for __builtin_constant_p... " >&6; }
11191 if test ${pa_cv_func___builtin_constant_p+y}
11192 then :
11193 printf %s "(cached) " >&6
11194 else case e in #(
11195 e)
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198 $ac_includes_default
11199
11200 int
11201 main (void)
11202 {
11203
11204 (void)__builtin_constant_p(0);
11205
11206 ;
11207 return 0;
11208 }
11209 _ACEOF
11210 if ac_fn_c_try_link "$LINENO"
11211 then :
11212 pa_cv_func___builtin_constant_p=yes
11213 else case e in #(
11214 e) pa_cv_func___builtin_constant_p=no ;;
11215 esac
11216 fi
11217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11218 conftest$ac_exeext conftest.$ac_ext
11219 ;;
11220 esac
11221 fi
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_constant_p" >&5
11223 printf "%s\n" "$pa_cv_func___builtin_constant_p" >&6; }
11224
11225 if test "x$pa_cv_func___builtin_constant_p" = xyes
11226 then :
11227
11228 printf "%s\n" "#define HAVE___BUILTIN_CONSTANT_P 1" >>confdefs.h
11229
11230 fi
11231
11232
11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr" >&5
11234 printf %s "checking for __builtin_choose_expr... " >&6; }
11235 if test ${pa_cv_func___builtin_choose_expr+y}
11236 then :
11237 printf %s "(cached) " >&6
11238 else case e in #(
11239 e)
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11242 $ac_includes_default
11243
11244 int
11245 main (void)
11246 {
11247
11248 (void)__builtin_choose_expr(0,1,2);
11249
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"
11255 then :
11256 pa_cv_func___builtin_choose_expr=yes
11257 else case e in #(
11258 e) pa_cv_func___builtin_choose_expr=no ;;
11259 esac
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11262 conftest$ac_exeext conftest.$ac_ext
11263 ;;
11264 esac
11265 fi
11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_choose_expr" >&5
11267 printf "%s\n" "$pa_cv_func___builtin_choose_expr" >&6; }
11268
11269 if test "x$pa_cv_func___builtin_choose_expr" = xyes
11270 then :
11271
11272 printf "%s\n" "#define HAVE___BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
11273
11274 fi
11275
11276
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_prefetch" >&5
11278 printf %s "checking for __builtin_prefetch... " >&6; }
11279 if test ${pa_cv_func___builtin_prefetch+y}
11280 then :
11281 printf %s "(cached) " >&6
11282 else case e in #(
11283 e)
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286 $ac_includes_default
11287
11288 int
11289 main (void)
11290 {
11291
11292 (void)__builtin_prefetch(NULL);
11293
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"
11299 then :
11300 pa_cv_func___builtin_prefetch=yes
11301 else case e in #(
11302 e) pa_cv_func___builtin_prefetch=no ;;
11303 esac
11304 fi
11305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11306 conftest$ac_exeext conftest.$ac_ext
11307 ;;
11308 esac
11309 fi
11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func___builtin_prefetch" >&5
11311 printf "%s\n" "$pa_cv_func___builtin_prefetch" >&6; }
11312
11313 if test "x$pa_cv_func___builtin_prefetch" = xyes
11314 then :
11315
11316 printf "%s\n" "#define HAVE___BUILTIN_PREFETCH 1" >>confdefs.h
11317
11318 fi
11319
11320
11321
11322
11323
11324
11325 _PA_ADD_FLAGS_CPPFLAGS_orig=$CPPFLAGS
11326
11327 if test ${pa_cv_CPPFLAGS__Werror_attributes+y}
11328 then :
11329 printf %s "(cached) " >&6
11330 else case e in #(
11331 e) as_fn_append CPPFLAGS ' -Werror=attributes'
11332 pa_cv_CPPFLAGS__Werror_attributes=yes
11333 ac_ext=c
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11338
11339 if test "x$pa_cv_CPPFLAGS__Werror_attributes" = xyes
11340 then :
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=attributes" >&5
11342 printf %s "checking whether $CC accepts -Werror=attributes... " >&6; }
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345
11346 int
11347 main (void)
11348 {
11349
11350 ;
11351 return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_c_try_compile "$LINENO"
11355 then :
11356
11357 else case e in #(
11358 e) pa_cv_CPPFLAGS__Werror_attributes=no ;;
11359 esac
11360 fi
11361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CPPFLAGS__Werror_attributes" >&5
11363 printf "%s\n" "$pa_cv_CPPFLAGS__Werror_attributes" >&6; }
11364
11365 fi
11366 ac_ext=c
11367 ac_cpp='$CPP $CPPFLAGS'
11368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11371
11372
11373 CPPFLAGS=$_PA_ADD_FLAGS_CPPFLAGS_orig
11374 ;;
11375 esac
11376 fi
11377
11378
11379 if test "x$pa_cv_CPPFLAGS__Werror_attributes" = xyes
11380 then :
11381 as_fn_append CPPFLAGS ' -Werror=attributes'
11382
11383 printf "%s\n" "#define CPPFLAGS_WERROR_ATTRIBUTES 1" >>confdefs.h
11384
11385
11386 fi
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the noreturn function attribute" >&5
11397 printf %s "checking whether $CC supports the noreturn function attribute... " >&6; }
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11400
11401 $ac_includes_default
11402 #include "autoconf/attribute.h"
11403
11404
11405 extern void * ATTRIBUTE(noreturn)
11406 bar(int);
11407 void * foo(void);
11408 void * foo(void)
11409 {
11410 return
11411 bar(1);
11412 }
11413
11414 _ACEOF
11415 if ac_fn_c_try_compile "$LINENO"
11416 then :
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11418 printf "%s\n" "yes" >&6; }
11419
11420 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h
11421
11422 else case e in #(
11423 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 printf "%s\n" "no" >&6; } ;;
11425 esac
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11428
11429
11430
11431
11432
11433
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the noreturn function attribute on pointers" >&5
11435 printf %s "checking whether $CC supports the noreturn function attribute on pointers... " >&6; }
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438
11439 $ac_includes_default
11440 #include "autoconf/attribute.h"
11441
11442
11443 extern void * ATTRIBUTE(noreturn)
11444 (*bar1)(int);
11445 void * foo1(void);
11446 void * foo1(void)
11447 {
11448 return
11449 bar1(1);
11450 }
11451
11452 typedef void * ATTRIBUTE(noreturn)
11453 (*bar_t)(int);
11454 extern bar_t bar2;
11455 void * foo2(void);
11456 void * foo2(void)
11457 {
11458 return
11459 bar2(1);
11460 }
11461
11462 _ACEOF
11463 if ac_fn_c_try_compile "$LINENO"
11464 then :
11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11466 printf "%s\n" "yes" >&6; }
11467
11468 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_NORETURN 1" >>confdefs.h
11469
11470 else case e in #(
11471 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 printf "%s\n" "no" >&6; } ;;
11473 esac
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11476
11477
11478
11479
11480
11481
11482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the returns_nonnull function attribute" >&5
11483 printf %s "checking whether $CC supports the returns_nonnull function attribute... " >&6; }
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486
11487 $ac_includes_default
11488 #include "autoconf/attribute.h"
11489
11490
11491 extern void * ATTRIBUTE(returns_nonnull)
11492 bar(int);
11493 void * foo(void);
11494 void * foo(void)
11495 {
11496 return
11497 bar(1);
11498 }
11499
11500 _ACEOF
11501 if ac_fn_c_try_compile "$LINENO"
11502 then :
11503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504 printf "%s\n" "yes" >&6; }
11505
11506 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
11507
11508 else case e in #(
11509 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 printf "%s\n" "no" >&6; } ;;
11511 esac
11512 fi
11513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11514
11515
11516
11517
11518
11519
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the returns_nonnull function attribute on pointers" >&5
11521 printf %s "checking whether $CC supports the returns_nonnull function attribute on pointers... " >&6; }
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524
11525 $ac_includes_default
11526 #include "autoconf/attribute.h"
11527
11528
11529 extern void * ATTRIBUTE(returns_nonnull)
11530 (*bar1)(int);
11531 void * foo1(void);
11532 void * foo1(void)
11533 {
11534 return
11535 bar1(1);
11536 }
11537
11538 typedef void * ATTRIBUTE(returns_nonnull)
11539 (*bar_t)(int);
11540 extern bar_t bar2;
11541 void * foo2(void);
11542 void * foo2(void)
11543 {
11544 return
11545 bar2(1);
11546 }
11547
11548 _ACEOF
11549 if ac_fn_c_try_compile "$LINENO"
11550 then :
11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11552 printf "%s\n" "yes" >&6; }
11553
11554 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
11555
11556 else case e in #(
11557 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 printf "%s\n" "no" >&6; } ;;
11559 esac
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11562
11563
11564
11565
11566
11567
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the malloc function attribute" >&5
11569 printf %s "checking whether $CC supports the malloc function attribute... " >&6; }
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 $ac_includes_default
11574 #include "autoconf/attribute.h"
11575
11576
11577 extern void * ATTRIBUTE(malloc)
11578 bar(int);
11579 void * foo(void);
11580 void * foo(void)
11581 {
11582 return
11583 bar(1);
11584 }
11585
11586 _ACEOF
11587 if ac_fn_c_try_compile "$LINENO"
11588 then :
11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11590 printf "%s\n" "yes" >&6; }
11591
11592 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h
11593
11594 else case e in #(
11595 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 printf "%s\n" "no" >&6; } ;;
11597 esac
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11600
11601
11602
11603
11604
11605
11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the malloc function attribute on pointers" >&5
11607 printf %s "checking whether $CC supports the malloc function attribute on pointers... " >&6; }
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11610
11611 $ac_includes_default
11612 #include "autoconf/attribute.h"
11613
11614
11615 extern void * ATTRIBUTE(malloc)
11616 (*bar1)(int);
11617 void * foo1(void);
11618 void * foo1(void)
11619 {
11620 return
11621 bar1(1);
11622 }
11623
11624 typedef void * ATTRIBUTE(malloc)
11625 (*bar_t)(int);
11626 extern bar_t bar2;
11627 void * foo2(void);
11628 void * foo2(void)
11629 {
11630 return
11631 bar2(1);
11632 }
11633
11634 _ACEOF
11635 if ac_fn_c_try_compile "$LINENO"
11636 then :
11637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 printf "%s\n" "yes" >&6; }
11639
11640 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_MALLOC 1" >>confdefs.h
11641
11642 else case e in #(
11643 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 printf "%s\n" "no" >&6; } ;;
11645 esac
11646 fi
11647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11648
11649
11650
11651
11652
11653
11654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the alloc_size(1) function attribute" >&5
11655 printf %s "checking whether $CC supports the alloc_size(1) function attribute... " >&6; }
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11658
11659 $ac_includes_default
11660 #include "autoconf/attribute.h"
11661
11662
11663 extern void * ATTRIBUTE(alloc_size(1))
11664 bar(int);
11665 void * foo(void);
11666 void * foo(void)
11667 {
11668 return
11669 bar(80);
11670 }
11671
11672 _ACEOF
11673 if ac_fn_c_try_compile "$LINENO"
11674 then :
11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676 printf "%s\n" "yes" >&6; }
11677
11678 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_1_ALLOC_SIZE 1" >>confdefs.h
11679
11680 else case e in #(
11681 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 printf "%s\n" "no" >&6; } ;;
11683 esac
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11686
11687
11688
11689
11690
11691
11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the alloc_size(1) function attribute on pointers" >&5
11693 printf %s "checking whether $CC supports the alloc_size(1) function attribute on pointers... " >&6; }
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696
11697 $ac_includes_default
11698 #include "autoconf/attribute.h"
11699
11700
11701 extern void * ATTRIBUTE(alloc_size(1))
11702 (*bar1)(int);
11703 void * foo1(void);
11704 void * foo1(void)
11705 {
11706 return
11707 bar1(80);
11708 }
11709
11710 typedef void * ATTRIBUTE(alloc_size(1))
11711 (*bar_t)(int);
11712 extern bar_t bar2;
11713 void * foo2(void);
11714 void * foo2(void)
11715 {
11716 return
11717 bar2(80);
11718 }
11719
11720 _ACEOF
11721 if ac_fn_c_try_compile "$LINENO"
11722 then :
11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 printf "%s\n" "yes" >&6; }
11725
11726 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_1_ALLOC_SIZE 1" >>confdefs.h
11727
11728 else case e in #(
11729 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 printf "%s\n" "no" >&6; } ;;
11731 esac
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11734
11735
11736
11737
11738
11739
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the alloc_size(1,2) function attribute" >&5
11741 printf %s "checking whether $CC supports the alloc_size(1,2) function attribute... " >&6; }
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744
11745 $ac_includes_default
11746 #include "autoconf/attribute.h"
11747
11748
11749 extern void * ATTRIBUTE(alloc_size(1,2))
11750 bar(int,int);
11751 void * foo(void);
11752 void * foo(void)
11753 {
11754 return
11755 bar(20,40);
11756 }
11757
11758 _ACEOF
11759 if ac_fn_c_try_compile "$LINENO"
11760 then :
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 printf "%s\n" "yes" >&6; }
11763
11764 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_2_ALLOC_SIZE 1" >>confdefs.h
11765
11766 else case e in #(
11767 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 printf "%s\n" "no" >&6; } ;;
11769 esac
11770 fi
11771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11772
11773
11774
11775
11776
11777
11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the alloc_size(1,2) function attribute on pointers" >&5
11779 printf %s "checking whether $CC supports the alloc_size(1,2) function attribute on pointers... " >&6; }
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11782
11783 $ac_includes_default
11784 #include "autoconf/attribute.h"
11785
11786
11787 extern void * ATTRIBUTE(alloc_size(1,2))
11788 (*bar1)(int,int);
11789 void * foo1(void);
11790 void * foo1(void)
11791 {
11792 return
11793 bar1(20,40);
11794 }
11795
11796 typedef void * ATTRIBUTE(alloc_size(1,2))
11797 (*bar_t)(int,int);
11798 extern bar_t bar2;
11799 void * foo2(void);
11800 void * foo2(void)
11801 {
11802 return
11803 bar2(20,40);
11804 }
11805
11806 _ACEOF
11807 if ac_fn_c_try_compile "$LINENO"
11808 then :
11809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11810 printf "%s\n" "yes" >&6; }
11811
11812 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_2_ALLOC_SIZE 1" >>confdefs.h
11813
11814 else case e in #(
11815 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 printf "%s\n" "no" >&6; } ;;
11817 esac
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11820
11821
11822
11823
11824
11825
11826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the sentinel function attribute" >&5
11827 printf %s "checking whether $CC supports the sentinel function attribute... " >&6; }
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 $ac_includes_default
11832 #include "autoconf/attribute.h"
11833
11834
11835 extern void * ATTRIBUTE(sentinel)
11836 bar(const char *, ...);
11837 void * foo(void);
11838 void * foo(void)
11839 {
11840 return
11841 bar("a","b",NULL);
11842 }
11843
11844 _ACEOF
11845 if ac_fn_c_try_compile "$LINENO"
11846 then :
11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11848 printf "%s\n" "yes" >&6; }
11849
11850 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_SENTINEL 1" >>confdefs.h
11851
11852 else case e in #(
11853 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 printf "%s\n" "no" >&6; } ;;
11855 esac
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11858
11859
11860
11861
11862
11863
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the sentinel function attribute on pointers" >&5
11865 printf %s "checking whether $CC supports the sentinel function attribute on pointers... " >&6; }
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
11869 $ac_includes_default
11870 #include "autoconf/attribute.h"
11871
11872
11873 extern void * ATTRIBUTE(sentinel)
11874 (*bar1)(const char *, ...);
11875 void * foo1(void);
11876 void * foo1(void)
11877 {
11878 return
11879 bar1("a","b",NULL);
11880 }
11881
11882 typedef void * ATTRIBUTE(sentinel)
11883 (*bar_t)(const char *, ...);
11884 extern bar_t bar2;
11885 void * foo2(void);
11886 void * foo2(void)
11887 {
11888 return
11889 bar2("a","b",NULL);
11890 }
11891
11892 _ACEOF
11893 if ac_fn_c_try_compile "$LINENO"
11894 then :
11895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896 printf "%s\n" "yes" >&6; }
11897
11898 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_SENTINEL 1" >>confdefs.h
11899
11900 else case e in #(
11901 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 printf "%s\n" "no" >&6; } ;;
11903 esac
11904 fi
11905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11906
11907
11908
11909
11910
11911
11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the format(printf,1,2) function attribute" >&5
11913 printf %s "checking whether $CC supports the format(printf,1,2) function attribute... " >&6; }
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916
11917 $ac_includes_default
11918 #include "autoconf/attribute.h"
11919
11920
11921 extern int ATTRIBUTE(format(printf,1,2))
11922 bar(const char *, ...);
11923 int foo(void);
11924 int foo(void)
11925 {
11926 return
11927 bar("%d",1);
11928 }
11929
11930 _ACEOF
11931 if ac_fn_c_try_compile "$LINENO"
11932 then :
11933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 printf "%s\n" "yes" >&6; }
11935
11936 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_3_FORMAT 1" >>confdefs.h
11937
11938 else case e in #(
11939 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 printf "%s\n" "no" >&6; } ;;
11941 esac
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11944
11945
11946
11947
11948
11949
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the format(printf,1,2) function attribute on pointers" >&5
11951 printf %s "checking whether $CC supports the format(printf,1,2) function attribute on pointers... " >&6; }
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954
11955 $ac_includes_default
11956 #include "autoconf/attribute.h"
11957
11958
11959 extern int ATTRIBUTE(format(printf,1,2))
11960 (*bar1)(const char *, ...);
11961 int foo1(void);
11962 int foo1(void)
11963 {
11964 return
11965 bar1("%d",1);
11966 }
11967
11968 typedef int ATTRIBUTE(format(printf,1,2))
11969 (*bar_t)(const char *, ...);
11970 extern bar_t bar2;
11971 int foo2(void);
11972 int foo2(void)
11973 {
11974 return
11975 bar2("%d",1);
11976 }
11977
11978 _ACEOF
11979 if ac_fn_c_try_compile "$LINENO"
11980 then :
11981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982 printf "%s\n" "yes" >&6; }
11983
11984 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_3_FORMAT 1" >>confdefs.h
11985
11986 else case e in #(
11987 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 printf "%s\n" "no" >&6; } ;;
11989 esac
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11992
11993
11994
11995
11996
11997
11998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the const function attribute" >&5
11999 printf %s "checking whether $CC supports the const function attribute... " >&6; }
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002
12003 $ac_includes_default
12004 #include "autoconf/attribute.h"
12005
12006
12007 extern void * ATTRIBUTE(const)
12008 bar(int);
12009 void * foo(void);
12010 void * foo(void)
12011 {
12012 return
12013 bar(1);
12014 }
12015
12016 _ACEOF
12017 if ac_fn_c_try_compile "$LINENO"
12018 then :
12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12020 printf "%s\n" "yes" >&6; }
12021
12022 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_CONST 1" >>confdefs.h
12023
12024 else case e in #(
12025 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 printf "%s\n" "no" >&6; } ;;
12027 esac
12028 fi
12029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12030
12031
12032
12033
12034
12035
12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the const function attribute on pointers" >&5
12037 printf %s "checking whether $CC supports the const function attribute on pointers... " >&6; }
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040
12041 $ac_includes_default
12042 #include "autoconf/attribute.h"
12043
12044
12045 extern void * ATTRIBUTE(const)
12046 (*bar1)(int);
12047 void * foo1(void);
12048 void * foo1(void)
12049 {
12050 return
12051 bar1(1);
12052 }
12053
12054 typedef void * ATTRIBUTE(const)
12055 (*bar_t)(int);
12056 extern bar_t bar2;
12057 void * foo2(void);
12058 void * foo2(void)
12059 {
12060 return
12061 bar2(1);
12062 }
12063
12064 _ACEOF
12065 if ac_fn_c_try_compile "$LINENO"
12066 then :
12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12068 printf "%s\n" "yes" >&6; }
12069
12070 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_CONST 1" >>confdefs.h
12071
12072 else case e in #(
12073 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 printf "%s\n" "no" >&6; } ;;
12075 esac
12076 fi
12077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12078
12079
12080
12081
12082
12083
12084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the unsequenced function attribute" >&5
12085 printf %s "checking whether $CC supports the unsequenced function attribute... " >&6; }
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088
12089 $ac_includes_default
12090 #include "autoconf/attribute.h"
12091
12092
12093 extern void * ATTRIBUTE(unsequenced)
12094 bar(int);
12095 void * foo(void);
12096 void * foo(void)
12097 {
12098 return
12099 bar(1);
12100 }
12101
12102 _ACEOF
12103 if ac_fn_c_try_compile "$LINENO"
12104 then :
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12106 printf "%s\n" "yes" >&6; }
12107
12108 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_UNSEQUENCED 1" >>confdefs.h
12109
12110 else case e in #(
12111 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 printf "%s\n" "no" >&6; } ;;
12113 esac
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12116
12117
12118
12119
12120
12121
12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the unsequenced function attribute on pointers" >&5
12123 printf %s "checking whether $CC supports the unsequenced function attribute on pointers... " >&6; }
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126
12127 $ac_includes_default
12128 #include "autoconf/attribute.h"
12129
12130
12131 extern void * ATTRIBUTE(unsequenced)
12132 (*bar1)(int);
12133 void * foo1(void);
12134 void * foo1(void)
12135 {
12136 return
12137 bar1(1);
12138 }
12139
12140 typedef void * ATTRIBUTE(unsequenced)
12141 (*bar_t)(int);
12142 extern bar_t bar2;
12143 void * foo2(void);
12144 void * foo2(void)
12145 {
12146 return
12147 bar2(1);
12148 }
12149
12150 _ACEOF
12151 if ac_fn_c_try_compile "$LINENO"
12152 then :
12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12154 printf "%s\n" "yes" >&6; }
12155
12156 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_UNSEQUENCED 1" >>confdefs.h
12157
12158 else case e in #(
12159 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 printf "%s\n" "no" >&6; } ;;
12161 esac
12162 fi
12163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12164
12165
12166
12167
12168
12169
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the reproducible function attribute" >&5
12171 printf %s "checking whether $CC supports the reproducible function attribute... " >&6; }
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174
12175 $ac_includes_default
12176 #include "autoconf/attribute.h"
12177
12178
12179 extern void * ATTRIBUTE(reproducible)
12180 bar(int);
12181 void * foo(void);
12182 void * foo(void)
12183 {
12184 return
12185 bar(1);
12186 }
12187
12188 _ACEOF
12189 if ac_fn_c_try_compile "$LINENO"
12190 then :
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12192 printf "%s\n" "yes" >&6; }
12193
12194 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_REPRODUCIBLE 1" >>confdefs.h
12195
12196 else case e in #(
12197 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 printf "%s\n" "no" >&6; } ;;
12199 esac
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12202
12203
12204
12205
12206
12207
12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the reproducible function attribute on pointers" >&5
12209 printf %s "checking whether $CC supports the reproducible function attribute on pointers... " >&6; }
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212
12213 $ac_includes_default
12214 #include "autoconf/attribute.h"
12215
12216
12217 extern void * ATTRIBUTE(reproducible)
12218 (*bar1)(int);
12219 void * foo1(void);
12220 void * foo1(void)
12221 {
12222 return
12223 bar1(1);
12224 }
12225
12226 typedef void * ATTRIBUTE(reproducible)
12227 (*bar_t)(int);
12228 extern bar_t bar2;
12229 void * foo2(void);
12230 void * foo2(void)
12231 {
12232 return
12233 bar2(1);
12234 }
12235
12236 _ACEOF
12237 if ac_fn_c_try_compile "$LINENO"
12238 then :
12239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12240 printf "%s\n" "yes" >&6; }
12241
12242 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_REPRODUCIBLE 1" >>confdefs.h
12243
12244 else case e in #(
12245 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 printf "%s\n" "no" >&6; } ;;
12247 esac
12248 fi
12249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12250
12251
12252
12253
12254
12255
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the pure function attribute" >&5
12257 printf %s "checking whether $CC supports the pure function attribute... " >&6; }
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260
12261 $ac_includes_default
12262 #include "autoconf/attribute.h"
12263
12264
12265 extern void * ATTRIBUTE(pure)
12266 bar(int);
12267 void * foo(void);
12268 void * foo(void)
12269 {
12270 return
12271 bar(1);
12272 }
12273
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"
12276 then :
12277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12278 printf "%s\n" "yes" >&6; }
12279
12280 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_PURE 1" >>confdefs.h
12281
12282 else case e in #(
12283 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 printf "%s\n" "no" >&6; } ;;
12285 esac
12286 fi
12287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12288
12289
12290
12291
12292
12293
12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the pure function attribute on pointers" >&5
12295 printf %s "checking whether $CC supports the pure function attribute on pointers... " >&6; }
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298
12299 $ac_includes_default
12300 #include "autoconf/attribute.h"
12301
12302
12303 extern void * ATTRIBUTE(pure)
12304 (*bar1)(int);
12305 void * foo1(void);
12306 void * foo1(void)
12307 {
12308 return
12309 bar1(1);
12310 }
12311
12312 typedef void * ATTRIBUTE(pure)
12313 (*bar_t)(int);
12314 extern bar_t bar2;
12315 void * foo2(void);
12316 void * foo2(void)
12317 {
12318 return
12319 bar2(1);
12320 }
12321
12322 _ACEOF
12323 if ac_fn_c_try_compile "$LINENO"
12324 then :
12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12326 printf "%s\n" "yes" >&6; }
12327
12328 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_PURE 1" >>confdefs.h
12329
12330 else case e in #(
12331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 printf "%s\n" "no" >&6; } ;;
12333 esac
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12336
12337
12338
12339
12340
12341
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the cold function attribute" >&5
12343 printf %s "checking whether $CC supports the cold function attribute... " >&6; }
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346
12347 $ac_includes_default
12348 #include "autoconf/attribute.h"
12349
12350
12351 extern void * ATTRIBUTE(cold)
12352 bar(int);
12353 void * foo(void);
12354 void * foo(void)
12355 {
12356 return
12357 bar(1);
12358 }
12359
12360 _ACEOF
12361 if ac_fn_c_try_compile "$LINENO"
12362 then :
12363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12364 printf "%s\n" "yes" >&6; }
12365
12366 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_COLD 1" >>confdefs.h
12367
12368 else case e in #(
12369 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 printf "%s\n" "no" >&6; } ;;
12371 esac
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12374
12375
12376
12377
12378
12379
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the cold function attribute on pointers" >&5
12381 printf %s "checking whether $CC supports the cold function attribute on pointers... " >&6; }
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384
12385 $ac_includes_default
12386 #include "autoconf/attribute.h"
12387
12388
12389 extern void * ATTRIBUTE(cold)
12390 (*bar1)(int);
12391 void * foo1(void);
12392 void * foo1(void)
12393 {
12394 return
12395 bar1(1);
12396 }
12397
12398 typedef void * ATTRIBUTE(cold)
12399 (*bar_t)(int);
12400 extern bar_t bar2;
12401 void * foo2(void);
12402 void * foo2(void)
12403 {
12404 return
12405 bar2(1);
12406 }
12407
12408 _ACEOF
12409 if ac_fn_c_try_compile "$LINENO"
12410 then :
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 printf "%s\n" "yes" >&6; }
12413
12414 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_COLD 1" >>confdefs.h
12415
12416 else case e in #(
12417 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 printf "%s\n" "no" >&6; } ;;
12419 esac
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12422
12423
12424
12425
12426
12427
12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the maybe_unused function attribute" >&5
12429 printf %s "checking whether $CC supports the maybe_unused function attribute... " >&6; }
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432
12433 $ac_includes_default
12434 #include "autoconf/attribute.h"
12435
12436
12437 extern void * ATTRIBUTE(maybe_unused)
12438 bar(int);
12439 void * foo(void);
12440 void * foo(void)
12441 {
12442 return
12443 bar(1);
12444 }
12445
12446 _ACEOF
12447 if ac_fn_c_try_compile "$LINENO"
12448 then :
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12450 printf "%s\n" "yes" >&6; }
12451
12452 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_MAYBE_UNUSED 1" >>confdefs.h
12453
12454 else case e in #(
12455 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 printf "%s\n" "no" >&6; } ;;
12457 esac
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12460
12461
12462
12463
12464
12465
12466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the maybe_unused function attribute on pointers" >&5
12467 printf %s "checking whether $CC supports the maybe_unused function attribute on pointers... " >&6; }
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470
12471 $ac_includes_default
12472 #include "autoconf/attribute.h"
12473
12474
12475 extern void * ATTRIBUTE(maybe_unused)
12476 (*bar1)(int);
12477 void * foo1(void);
12478 void * foo1(void)
12479 {
12480 return
12481 bar1(1);
12482 }
12483
12484 typedef void * ATTRIBUTE(maybe_unused)
12485 (*bar_t)(int);
12486 extern bar_t bar2;
12487 void * foo2(void);
12488 void * foo2(void)
12489 {
12490 return
12491 bar2(1);
12492 }
12493
12494 _ACEOF
12495 if ac_fn_c_try_compile "$LINENO"
12496 then :
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12498 printf "%s\n" "yes" >&6; }
12499
12500 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_MAYBE_UNUSED 1" >>confdefs.h
12501
12502 else case e in #(
12503 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 printf "%s\n" "no" >&6; } ;;
12505 esac
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12508
12509
12510
12511
12512
12513
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the unused function attribute" >&5
12515 printf %s "checking whether $CC supports the unused function attribute... " >&6; }
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 $ac_includes_default
12520 #include "autoconf/attribute.h"
12521
12522
12523 extern void * ATTRIBUTE(unused)
12524 bar(int);
12525 void * foo(void);
12526 void * foo(void)
12527 {
12528 return
12529 bar(1);
12530 }
12531
12532 _ACEOF
12533 if ac_fn_c_try_compile "$LINENO"
12534 then :
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 printf "%s\n" "yes" >&6; }
12537
12538 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_UNUSED 1" >>confdefs.h
12539
12540 else case e in #(
12541 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 printf "%s\n" "no" >&6; } ;;
12543 esac
12544 fi
12545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12546
12547
12548
12549
12550
12551
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the unused function attribute on pointers" >&5
12553 printf %s "checking whether $CC supports the unused function attribute on pointers... " >&6; }
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12556
12557 $ac_includes_default
12558 #include "autoconf/attribute.h"
12559
12560
12561 extern void * ATTRIBUTE(unused)
12562 (*bar1)(int);
12563 void * foo1(void);
12564 void * foo1(void)
12565 {
12566 return
12567 bar1(1);
12568 }
12569
12570 typedef void * ATTRIBUTE(unused)
12571 (*bar_t)(int);
12572 extern bar_t bar2;
12573 void * foo2(void);
12574 void * foo2(void)
12575 {
12576 return
12577 bar2(1);
12578 }
12579
12580 _ACEOF
12581 if ac_fn_c_try_compile "$LINENO"
12582 then :
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584 printf "%s\n" "yes" >&6; }
12585
12586 printf "%s\n" "#define HAVE_FUNC_PTR_ATTRIBUTE_UNUSED 1" >>confdefs.h
12587
12588 else case e in #(
12589 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 printf "%s\n" "no" >&6; } ;;
12591 esac
12592 fi
12593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12594
12595
12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the error function attribute" >&5
12597 printf %s "checking whether $CC supports the error function attribute... " >&6; }
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600
12601 $ac_includes_default
12602 #include "autoconf/attribute.h"
12603
12604
12605 extern ATTRIBUTE(error("message")) void barf(void);
12606 void foo(void);
12607 void foo(void)
12608 {
12609 if (0)
12610 barf();
12611 }
12612
12613 _ACEOF
12614 if ac_fn_c_try_compile "$LINENO"
12615 then :
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 printf "%s\n" "yes" >&6; }
12618
12619 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_ERROR 1" >>confdefs.h
12620
12621 else case e in #(
12622 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 printf "%s\n" "no" >&6; } ;;
12624 esac
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12627
12628
12629
12630
12631 # Check whether --enable-gc was given.
12632 if test ${enable_gc+y}
12633 then :
12634 enableval=$enable_gc; pa_arg_bool_enableval="$enableval"
12635 else case e in #(
12636 e) pa_arg_bool_enableval="yes" ;;
12637 esac
12638 fi
12639
12640
12641 if test x"$pa_arg_bool_enableval" != xno
12642 then :
12643
12644
12645
12646
12647 _PA_ADD_FLAGS_LDFLAGS_orig=$LDFLAGS
12648
12649 if test ${pa_cv_LDFLAGS__Wl___as_needed+y}
12650 then :
12651 printf %s "(cached) " >&6
12652 else case e in #(
12653 e) as_fn_append LDFLAGS ' -Wl,--as-needed'
12654 pa_cv_LDFLAGS__Wl___as_needed=yes
12655 ac_ext=c
12656 ac_cpp='$CPP $CPPFLAGS'
12657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12660
12661 if test "x$pa_cv_LDFLAGS__Wl___as_needed" = xyes
12662 then :
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wl,--as-needed" >&5
12664 printf %s "checking whether $CC accepts -Wl,--as-needed... " >&6; }
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667
12668 int
12669 main (void)
12670 {
12671
12672 ;
12673 return 0;
12674 }
12675 _ACEOF
12676 if ac_fn_c_try_link "$LINENO"
12677 then :
12678
12679 else case e in #(
12680 e) pa_cv_LDFLAGS__Wl___as_needed=no ;;
12681 esac
12682 fi
12683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12684 conftest$ac_exeext conftest.$ac_ext
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_LDFLAGS__Wl___as_needed" >&5
12686 printf "%s\n" "$pa_cv_LDFLAGS__Wl___as_needed" >&6; }
12687
12688 fi
12689 ac_ext=c
12690 ac_cpp='$CPP $CPPFLAGS'
12691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12694
12695
12696 LDFLAGS=$_PA_ADD_FLAGS_LDFLAGS_orig
12697 ;;
12698 esac
12699 fi
12700
12701
12702 if test "x$pa_cv_LDFLAGS__Wl___as_needed" = xyes
12703 then :
12704 as_fn_append LDFLAGS ' -Wl,--as-needed'
12705
12706 printf "%s\n" "#define LDFLAGS_WL_AS_NEEDED 1" >>confdefs.h
12707
12708
12709 fi
12710
12711
12712
12713
12714
12715 ac_ext=c
12716 ac_cpp='$CPP $CPPFLAGS'
12717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721 _pa_find_flags_done=no
12722
12723 if test x$_pa_find_flags_done != xyes
12724 then :
12725
12726
12727
12728
12729 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
12730
12731 if test ${pa_cv_CFLAGS__ffunction_sections+y}
12732 then :
12733 printf %s "(cached) " >&6
12734 else case e in #(
12735 e) as_fn_append CFLAGS ' -ffunction-sections'
12736 pa_cv_CFLAGS__ffunction_sections=yes
12737 ac_ext=c
12738 ac_cpp='$CPP $CPPFLAGS'
12739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742
12743 if test "x$pa_cv_CFLAGS__ffunction_sections" = xyes
12744 then :
12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -ffunction-sections" >&5
12746 printf %s "checking whether $CC accepts -ffunction-sections... " >&6; }
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749
12750 int
12751 main (void)
12752 {
12753
12754 ;
12755 return 0;
12756 }
12757 _ACEOF
12758 if ac_fn_c_try_compile "$LINENO"
12759 then :
12760
12761 else case e in #(
12762 e) pa_cv_CFLAGS__ffunction_sections=no ;;
12763 esac
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__ffunction_sections" >&5
12767 printf "%s\n" "$pa_cv_CFLAGS__ffunction_sections" >&6; }
12768
12769 fi
12770 ac_ext=c
12771 ac_cpp='$CPP $CPPFLAGS'
12772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12775
12776
12777 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
12778 ;;
12779 esac
12780 fi
12781
12782
12783 if test "x$pa_cv_CFLAGS__ffunction_sections" = xyes
12784 then :
12785 as_fn_append CFLAGS ' -ffunction-sections'
12786
12787 printf "%s\n" "#define CFLAGS_FFUNCTION_SECTIONS 1" >>confdefs.h
12788
12789 _pa_find_flags_done=yes
12790 fi
12791
12792
12793
12794
12795
12796 fi
12797 ac_ext=c
12798 ac_cpp='$CPP $CPPFLAGS'
12799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803
12804 ac_ext=c
12805 ac_cpp='$CPP $CPPFLAGS'
12806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12809
12810 _pa_find_flags_done=no
12811
12812 if test x$_pa_find_flags_done != xyes
12813 then :
12814
12815
12816
12817
12818 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
12819
12820 if test ${pa_cv_CFLAGS__fdata_sections+y}
12821 then :
12822 printf %s "(cached) " >&6
12823 else case e in #(
12824 e) as_fn_append CFLAGS ' -fdata-sections'
12825 pa_cv_CFLAGS__fdata_sections=yes
12826 ac_ext=c
12827 ac_cpp='$CPP $CPPFLAGS'
12828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12831
12832 if test "x$pa_cv_CFLAGS__fdata_sections" = xyes
12833 then :
12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fdata-sections" >&5
12835 printf %s "checking whether $CC accepts -fdata-sections... " >&6; }
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12838
12839 int
12840 main (void)
12841 {
12842
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_compile "$LINENO"
12848 then :
12849
12850 else case e in #(
12851 e) pa_cv_CFLAGS__fdata_sections=no ;;
12852 esac
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fdata_sections" >&5
12856 printf "%s\n" "$pa_cv_CFLAGS__fdata_sections" >&6; }
12857
12858 fi
12859 ac_ext=c
12860 ac_cpp='$CPP $CPPFLAGS'
12861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12864
12865
12866 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
12867 ;;
12868 esac
12869 fi
12870
12871
12872 if test "x$pa_cv_CFLAGS__fdata_sections" = xyes
12873 then :
12874 as_fn_append CFLAGS ' -fdata-sections'
12875
12876 printf "%s\n" "#define CFLAGS_FDATA_SECTIONS 1" >>confdefs.h
12877
12878 _pa_find_flags_done=yes
12879 fi
12880
12881
12882
12883
12884
12885 fi
12886 ac_ext=c
12887 ac_cpp='$CPP $CPPFLAGS'
12888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12891
12892
12893
12894
12895
12896
12897 _PA_ADD_FLAGS_LDFLAGS_orig=$LDFLAGS
12898
12899 if test ${pa_cv_LDFLAGS__Wl___gc_sections+y}
12900 then :
12901 printf %s "(cached) " >&6
12902 else case e in #(
12903 e) as_fn_append LDFLAGS ' -Wl,--gc-sections'
12904 pa_cv_LDFLAGS__Wl___gc_sections=yes
12905 ac_ext=c
12906 ac_cpp='$CPP $CPPFLAGS'
12907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12910
12911 if test "x$pa_cv_LDFLAGS__Wl___gc_sections" = xyes
12912 then :
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wl,--gc-sections" >&5
12914 printf %s "checking whether $CC accepts -Wl,--gc-sections... " >&6; }
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917
12918 int
12919 main (void)
12920 {
12921
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"
12927 then :
12928
12929 else case e in #(
12930 e) pa_cv_LDFLAGS__Wl___gc_sections=no ;;
12931 esac
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12934 conftest$ac_exeext conftest.$ac_ext
12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_LDFLAGS__Wl___gc_sections" >&5
12936 printf "%s\n" "$pa_cv_LDFLAGS__Wl___gc_sections" >&6; }
12937
12938 fi
12939 ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945
12946 LDFLAGS=$_PA_ADD_FLAGS_LDFLAGS_orig
12947 ;;
12948 esac
12949 fi
12950
12951
12952 if test "x$pa_cv_LDFLAGS__Wl___gc_sections" = xyes
12953 then :
12954 as_fn_append LDFLAGS ' -Wl,--gc-sections'
12955
12956 printf "%s\n" "#define LDFLAGS_WL_GC_SECTIONS 1" >>confdefs.h
12957
12958
12959 fi
12960
12961
12962
12963
12964
12965 fi
12966
12967
12968
12969
12970 # Check whether --enable-lto was given.
12971 if test ${enable_lto+y}
12972 then :
12973 enableval=$enable_lto; pa_arg_bool_enableval="$enableval"
12974 else case e in #(
12975 e) pa_arg_bool_enableval="no" ;;
12976 esac
12977 fi
12978
12979
12980 if test x"$pa_arg_bool_enableval" != xno
12981 then :
12982 _pa_find_flags_done=no
12983
12984 if test x$_pa_find_flags_done != xyes
12985 then :
12986
12987
12988
12989
12990 _PA_ADD_FLAGS__flto_auto_orig=$_flto_auto
12991
12992 if test ${pa_cv__flto_auto__flto+y}
12993 then :
12994 printf %s "(cached) " >&6
12995 else case e in #(
12996 e) as_fn_append _flto_auto ' -flto'
12997 pa_cv__flto_auto__flto=yes
12998 ac_ext=c
12999 ac_cpp='$CPP $CPPFLAGS'
13000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13003
13004 if test "x$pa_cv__flto_auto__flto" = xyes
13005 then :
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -flto" >&5
13007 printf %s "checking whether $CC accepts -flto... " >&6; }
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010
13011 int
13012 main (void)
13013 {
13014
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_compile "$LINENO"
13020 then :
13021
13022 else case e in #(
13023 e) pa_cv__flto_auto__flto=no ;;
13024 esac
13025 fi
13026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv__flto_auto__flto" >&5
13028 printf "%s\n" "$pa_cv__flto_auto__flto" >&6; }
13029
13030 fi
13031 ac_ext=c
13032 ac_cpp='$CPP $CPPFLAGS'
13033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13036
13037
13038 _flto_auto=$_PA_ADD_FLAGS__flto_auto_orig
13039 ;;
13040 esac
13041 fi
13042
13043
13044 if test "x$pa_cv__flto_auto__flto" = xyes
13045 then :
13046 as_fn_append _flto_auto ' -flto'
13047
13048 printf "%s\n" "#define _FLTO_AUTO_FLTO 1" >>confdefs.h
13049
13050 _pa_find_flags_done=yes
13051 fi
13052
13053
13054
13055
13056
13057 fi
13058 _pa_find_flags_done=no
13059
13060 _pa_find_flags_done=no
13061
13062
13063 if test x$ac_compiler_gnu = xyes
13064 then :
13065 if test -n "$ac_tool_prefix"; then
13066 # Extract the first word of "${ac_tool_prefix}gcc-ar", so it can be a program name with args.
13067 set dummy ${ac_tool_prefix}gcc-ar; ac_word=$2
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 printf %s "checking for $ac_word... " >&6; }
13070 if test ${ac_cv_prog_AR+y}
13071 then :
13072 printf %s "(cached) " >&6
13073 else case e in #(
13074 e) if test -n "$AR"; then
13075 ac_cv_prog_AR="$AR" # Let the user override the test.
13076 else
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 as_dummy=":"
13079 for as_dir in $as_dummy
13080 do
13081 IFS=$as_save_IFS
13082 case $as_dir in #(((
13083 '') as_dir=./ ;;
13084 */) ;;
13085 *) as_dir=$as_dir/ ;;
13086 esac
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13089 ac_cv_prog_AR="${ac_tool_prefix}gcc-ar"
13090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13091 break 2
13092 fi
13093 done
13094 done
13095 IFS=$as_save_IFS
13096
13097 fi ;;
13098 esac
13099 fi
13100 AR=$ac_cv_prog_AR
13101 if test -n "$AR"; then
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13103 printf "%s\n" "$AR" >&6; }
13104 else
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 printf "%s\n" "no" >&6; }
13107 fi
13108
13109
13110 fi
13111 if test -z "$ac_cv_prog_AR"; then
13112 ac_ct_AR=$AR
13113 # Extract the first word of "gcc-ar", so it can be a program name with args.
13114 set dummy gcc-ar; ac_word=$2
13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116 printf %s "checking for $ac_word... " >&6; }
13117 if test ${ac_cv_prog_ac_ct_AR+y}
13118 then :
13119 printf %s "(cached) " >&6
13120 else case e in #(
13121 e) if test -n "$ac_ct_AR"; then
13122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13123 else
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 as_dummy=":"
13126 for as_dir in $as_dummy
13127 do
13128 IFS=$as_save_IFS
13129 case $as_dir in #(((
13130 '') as_dir=./ ;;
13131 */) ;;
13132 *) as_dir=$as_dir/ ;;
13133 esac
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13136 ac_cv_prog_ac_ct_AR="gcc-ar"
13137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13138 break 2
13139 fi
13140 done
13141 done
13142 IFS=$as_save_IFS
13143
13144 fi ;;
13145 esac
13146 fi
13147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13148 if test -n "$ac_ct_AR"; then
13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13150 printf "%s\n" "$ac_ct_AR" >&6; }
13151 else
13152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 printf "%s\n" "no" >&6; }
13154 fi
13155
13156 if test "x$ac_ct_AR" = x; then
13157 AR="ar"
13158 else
13159 case $cross_compiling:$ac_tool_warned in
13160 yes:)
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13162 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13163 ac_tool_warned=yes ;;
13164 esac
13165 AR=$ac_ct_AR
13166 fi
13167 else
13168 AR="$ac_cv_prog_AR"
13169 fi
13170
13171 if test -n "$ac_tool_prefix"; then
13172 # Extract the first word of "${ac_tool_prefix}gcc-ranlib", so it can be a program name with args.
13173 set dummy ${ac_tool_prefix}gcc-ranlib; ac_word=$2
13174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 printf %s "checking for $ac_word... " >&6; }
13176 if test ${ac_cv_prog_RANLIB+y}
13177 then :
13178 printf %s "(cached) " >&6
13179 else case e in #(
13180 e) if test -n "$RANLIB"; then
13181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 as_dummy=":"
13185 for as_dir in $as_dummy
13186 do
13187 IFS=$as_save_IFS
13188 case $as_dir in #(((
13189 '') as_dir=./ ;;
13190 */) ;;
13191 *) as_dir=$as_dir/ ;;
13192 esac
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13195 ac_cv_prog_RANLIB="${ac_tool_prefix}gcc-ranlib"
13196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13197 break 2
13198 fi
13199 done
13200 done
13201 IFS=$as_save_IFS
13202
13203 fi ;;
13204 esac
13205 fi
13206 RANLIB=$ac_cv_prog_RANLIB
13207 if test -n "$RANLIB"; then
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13209 printf "%s\n" "$RANLIB" >&6; }
13210 else
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 printf "%s\n" "no" >&6; }
13213 fi
13214
13215
13216 fi
13217 if test -z "$ac_cv_prog_RANLIB"; then
13218 ac_ct_RANLIB=$RANLIB
13219 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13220 set dummy gcc-ranlib; ac_word=$2
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 printf %s "checking for $ac_word... " >&6; }
13223 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13224 then :
13225 printf %s "(cached) " >&6
13226 else case e in #(
13227 e) if test -n "$ac_ct_RANLIB"; then
13228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13229 else
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 as_dummy=":"
13232 for as_dir in $as_dummy
13233 do
13234 IFS=$as_save_IFS
13235 case $as_dir in #(((
13236 '') as_dir=./ ;;
13237 */) ;;
13238 *) as_dir=$as_dir/ ;;
13239 esac
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13242 ac_cv_prog_ac_ct_RANLIB="gcc-ranlib"
13243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13244 break 2
13245 fi
13246 done
13247 done
13248 IFS=$as_save_IFS
13249
13250 fi ;;
13251 esac
13252 fi
13253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13254 if test -n "$ac_ct_RANLIB"; then
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13256 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13257 else
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 printf "%s\n" "no" >&6; }
13260 fi
13261
13262 if test "x$ac_ct_RANLIB" = x; then
13263 RANLIB="ranlib"
13264 else
13265 case $cross_compiling:$ac_tool_warned in
13266 yes:)
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13268 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13269 ac_tool_warned=yes ;;
13270 esac
13271 RANLIB=$ac_ct_RANLIB
13272 fi
13273 else
13274 RANLIB="$ac_cv_prog_RANLIB"
13275 fi
13276
13277 fi
13278 fi
13279
13280
13281
13282
13283 # Check whether --enable-sanitizer was given.
13284 if test ${enable_sanitizer+y}
13285 then :
13286 enableval=$enable_sanitizer; pa_arg_bool_enableval="$enableval"
13287 else case e in #(
13288 e) pa_arg_bool_enableval="no" ;;
13289 esac
13290 fi
13291
13292
13293 if test x"$pa_arg_bool_enableval" != xno
13294 then :
13295 ac_ext=c
13296 ac_cpp='$CPP $CPPFLAGS'
13297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13300
13301 _pa_find_flags_done=no
13302
13303 if test x$_pa_find_flags_done != xyes
13304 then :
13305
13306
13307
13308
13309 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13310
13311 if test ${pa_cv_CFLAGS__fno_omit_frame_pointer+y}
13312 then :
13313 printf %s "(cached) " >&6
13314 else case e in #(
13315 e) as_fn_append CFLAGS ' -fno-omit-frame-pointer'
13316 pa_cv_CFLAGS__fno_omit_frame_pointer=yes
13317 ac_ext=c
13318 ac_cpp='$CPP $CPPFLAGS'
13319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13322
13323 if test "x$pa_cv_CFLAGS__fno_omit_frame_pointer" = xyes
13324 then :
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-omit-frame-pointer" >&5
13326 printf %s "checking whether $CC accepts -fno-omit-frame-pointer... " >&6; }
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329
13330 int
13331 main (void)
13332 {
13333
13334 ;
13335 return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_c_try_compile "$LINENO"
13339 then :
13340
13341 else case e in #(
13342 e) pa_cv_CFLAGS__fno_omit_frame_pointer=no ;;
13343 esac
13344 fi
13345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fno_omit_frame_pointer" >&5
13347 printf "%s\n" "$pa_cv_CFLAGS__fno_omit_frame_pointer" >&6; }
13348
13349 fi
13350 ac_ext=c
13351 ac_cpp='$CPP $CPPFLAGS'
13352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355
13356
13357 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13358 ;;
13359 esac
13360 fi
13361
13362
13363 if test "x$pa_cv_CFLAGS__fno_omit_frame_pointer" = xyes
13364 then :
13365 as_fn_append CFLAGS ' -fno-omit-frame-pointer'
13366
13367 printf "%s\n" "#define CFLAGS_FNO_OMIT_FRAME_POINTER 1" >>confdefs.h
13368
13369 _pa_find_flags_done=yes
13370 fi
13371
13372
13373
13374
13375
13376 fi
13377 ac_ext=c
13378 ac_cpp='$CPP $CPPFLAGS'
13379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13382
13383
13384 ac_ext=c
13385 ac_cpp='$CPP $CPPFLAGS'
13386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13389
13390 _pa_find_flags_done=no
13391
13392 if test x$_pa_find_flags_done != xyes
13393 then :
13394
13395
13396
13397
13398 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13399
13400 if test ${pa_cv_CFLAGS__fsanitize_address+y}
13401 then :
13402 printf %s "(cached) " >&6
13403 else case e in #(
13404 e) as_fn_append CFLAGS ' -fsanitize=address'
13405 pa_cv_CFLAGS__fsanitize_address=yes
13406 ac_ext=c
13407 ac_cpp='$CPP $CPPFLAGS'
13408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13411
13412 if test "x$pa_cv_CFLAGS__fsanitize_address" = xyes
13413 then :
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fsanitize=address" >&5
13415 printf %s "checking whether $CC accepts -fsanitize=address... " >&6; }
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418
13419 int
13420 main (void)
13421 {
13422
13423 ;
13424 return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_compile "$LINENO"
13428 then :
13429
13430 else case e in #(
13431 e) pa_cv_CFLAGS__fsanitize_address=no ;;
13432 esac
13433 fi
13434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fsanitize_address" >&5
13436 printf "%s\n" "$pa_cv_CFLAGS__fsanitize_address" >&6; }
13437
13438 fi
13439 ac_ext=c
13440 ac_cpp='$CPP $CPPFLAGS'
13441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13444
13445
13446 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13447 ;;
13448 esac
13449 fi
13450
13451
13452 if test "x$pa_cv_CFLAGS__fsanitize_address" = xyes
13453 then :
13454 as_fn_append CFLAGS ' -fsanitize=address'
13455
13456 printf "%s\n" "#define CFLAGS_FSANITIZE_ADDRESS 1" >>confdefs.h
13457
13458 _pa_find_flags_done=yes
13459 fi
13460
13461
13462
13463
13464
13465 fi
13466 ac_ext=c
13467 ac_cpp='$CPP $CPPFLAGS'
13468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13471
13472
13473 ac_ext=c
13474 ac_cpp='$CPP $CPPFLAGS'
13475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13478
13479 _pa_find_flags_done=no
13480
13481 if test x$_pa_find_flags_done != xyes
13482 then :
13483
13484
13485
13486
13487 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13488
13489 if test ${pa_cv_CFLAGS__fsanitize_undefined+y}
13490 then :
13491 printf %s "(cached) " >&6
13492 else case e in #(
13493 e) as_fn_append CFLAGS ' -fsanitize=undefined'
13494 pa_cv_CFLAGS__fsanitize_undefined=yes
13495 ac_ext=c
13496 ac_cpp='$CPP $CPPFLAGS'
13497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13500
13501 if test "x$pa_cv_CFLAGS__fsanitize_undefined" = xyes
13502 then :
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fsanitize=undefined" >&5
13504 printf %s "checking whether $CC accepts -fsanitize=undefined... " >&6; }
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507
13508 int
13509 main (void)
13510 {
13511
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_compile "$LINENO"
13517 then :
13518
13519 else case e in #(
13520 e) pa_cv_CFLAGS__fsanitize_undefined=no ;;
13521 esac
13522 fi
13523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fsanitize_undefined" >&5
13525 printf "%s\n" "$pa_cv_CFLAGS__fsanitize_undefined" >&6; }
13526
13527 fi
13528 ac_ext=c
13529 ac_cpp='$CPP $CPPFLAGS'
13530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13533
13534
13535 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13536 ;;
13537 esac
13538 fi
13539
13540
13541 if test "x$pa_cv_CFLAGS__fsanitize_undefined" = xyes
13542 then :
13543 as_fn_append CFLAGS ' -fsanitize=undefined'
13544
13545 printf "%s\n" "#define CFLAGS_FSANITIZE_UNDEFINED 1" >>confdefs.h
13546
13547 _pa_find_flags_done=yes
13548 fi
13549
13550
13551
13552
13553
13554 fi
13555 ac_ext=c
13556 ac_cpp='$CPP $CPPFLAGS'
13557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13560
13561
13562 fi
13563
13564
13565
13566
13567
13568
13569 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13570
13571 if test ${pa_cv_CFLAGS__fvisibility_hidden+y}
13572 then :
13573 printf %s "(cached) " >&6
13574 else case e in #(
13575 e) as_fn_append CFLAGS ' -fvisibility=hidden'
13576 pa_cv_CFLAGS__fvisibility_hidden=yes
13577 ac_ext=c
13578 ac_cpp='$CPP $CPPFLAGS'
13579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13582
13583 if test "x$pa_cv_CFLAGS__fvisibility_hidden" = xyes
13584 then :
13585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fvisibility=hidden" >&5
13586 printf %s "checking whether $CC accepts -fvisibility=hidden... " >&6; }
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589
13590 int
13591 main (void)
13592 {
13593
13594 ;
13595 return 0;
13596 }
13597 _ACEOF
13598 if ac_fn_c_try_compile "$LINENO"
13599 then :
13600
13601 else case e in #(
13602 e) pa_cv_CFLAGS__fvisibility_hidden=no ;;
13603 esac
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fvisibility_hidden" >&5
13607 printf "%s\n" "$pa_cv_CFLAGS__fvisibility_hidden" >&6; }
13608
13609 fi
13610 ac_ext=c
13611 ac_cpp='$CPP $CPPFLAGS'
13612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13615
13616
13617 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13618 ;;
13619 esac
13620 fi
13621
13622
13623 if test "x$pa_cv_CFLAGS__fvisibility_hidden" = xyes
13624 then :
13625 as_fn_append CFLAGS ' -fvisibility=hidden'
13626
13627 printf "%s\n" "#define CFLAGS_FVISIBILITY_HIDDEN 1" >>confdefs.h
13628
13629
13630 fi
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13642
13643 if test ${pa_cv_CFLAGS__Wall+y}
13644 then :
13645 printf %s "(cached) " >&6
13646 else case e in #(
13647 e) as_fn_append CFLAGS ' -Wall'
13648 pa_cv_CFLAGS__Wall=yes
13649 ac_ext=c
13650 ac_cpp='$CPP $CPPFLAGS'
13651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13654
13655 if test "x$pa_cv_CFLAGS__Wall" = xyes
13656 then :
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
13658 printf %s "checking whether $CC accepts -Wall... " >&6; }
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661
13662 int
13663 main (void)
13664 {
13665
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_compile "$LINENO"
13671 then :
13672
13673 else case e in #(
13674 e) pa_cv_CFLAGS__Wall=no ;;
13675 esac
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wall" >&5
13679 printf "%s\n" "$pa_cv_CFLAGS__Wall" >&6; }
13680
13681 fi
13682 ac_ext=c
13683 ac_cpp='$CPP $CPPFLAGS'
13684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687
13688
13689 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13690 ;;
13691 esac
13692 fi
13693
13694
13695 if test "x$pa_cv_CFLAGS__Wall" = xyes
13696 then :
13697 as_fn_append CFLAGS ' -Wall'
13698
13699 printf "%s\n" "#define CFLAGS_WALL 1" >>confdefs.h
13700
13701
13702 fi
13703
13704
13705
13706
13707
13708
13709
13710 # Check whether --enable-pedantic was given.
13711 if test ${enable_pedantic+y}
13712 then :
13713 enableval=$enable_pedantic; pa_arg_bool_enableval="$enableval"
13714 else case e in #(
13715 e) pa_arg_bool_enableval="yes" ;;
13716 esac
13717 fi
13718
13719
13720 if test x"$pa_arg_bool_enableval" != xno
13721 then :
13722
13723
13724
13725
13726 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13727
13728 if test ${pa_cv_CFLAGS__W+y}
13729 then :
13730 printf %s "(cached) " >&6
13731 else case e in #(
13732 e) as_fn_append CFLAGS ' -W'
13733 pa_cv_CFLAGS__W=yes
13734 ac_ext=c
13735 ac_cpp='$CPP $CPPFLAGS'
13736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13739
13740 if test "x$pa_cv_CFLAGS__W" = xyes
13741 then :
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -W" >&5
13743 printf %s "checking whether $CC accepts -W... " >&6; }
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746
13747 int
13748 main (void)
13749 {
13750
13751 ;
13752 return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"
13756 then :
13757
13758 else case e in #(
13759 e) pa_cv_CFLAGS__W=no ;;
13760 esac
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__W" >&5
13764 printf "%s\n" "$pa_cv_CFLAGS__W" >&6; }
13765
13766 fi
13767 ac_ext=c
13768 ac_cpp='$CPP $CPPFLAGS'
13769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13772
13773
13774 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13775 ;;
13776 esac
13777 fi
13778
13779
13780 if test "x$pa_cv_CFLAGS__W" = xyes
13781 then :
13782 as_fn_append CFLAGS ' -W'
13783
13784 printf "%s\n" "#define CFLAGS_W 1" >>confdefs.h
13785
13786
13787 fi
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13798
13799 if test ${pa_cv_CFLAGS__pedantic+y}
13800 then :
13801 printf %s "(cached) " >&6
13802 else case e in #(
13803 e) as_fn_append CFLAGS ' -pedantic'
13804 pa_cv_CFLAGS__pedantic=yes
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811 if test "x$pa_cv_CFLAGS__pedantic" = xyes
13812 then :
13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pedantic" >&5
13814 printf %s "checking whether $CC accepts -pedantic... " >&6; }
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817
13818 int
13819 main (void)
13820 {
13821
13822 ;
13823 return 0;
13824 }
13825 _ACEOF
13826 if ac_fn_c_try_compile "$LINENO"
13827 then :
13828
13829 else case e in #(
13830 e) pa_cv_CFLAGS__pedantic=no ;;
13831 esac
13832 fi
13833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__pedantic" >&5
13835 printf "%s\n" "$pa_cv_CFLAGS__pedantic" >&6; }
13836
13837 fi
13838 ac_ext=c
13839 ac_cpp='$CPP $CPPFLAGS'
13840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13843
13844
13845 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13846 ;;
13847 esac
13848 fi
13849
13850
13851 if test "x$pa_cv_CFLAGS__pedantic" = xyes
13852 then :
13853 as_fn_append CFLAGS ' -pedantic'
13854
13855 printf "%s\n" "#define CFLAGS_PEDANTIC 1" >>confdefs.h
13856
13857
13858 fi
13859
13860
13861
13862
13863
13864
13865 fi
13866
13867
13868
13869 # Check whether --enable-werror was given.
13870 if test ${enable_werror+y}
13871 then :
13872 enableval=$enable_werror; pa_arg_bool_enableval="$enableval"
13873 else case e in #(
13874 e) pa_arg_bool_enableval="no" ;;
13875 esac
13876 fi
13877
13878
13879 if test x"$pa_arg_bool_enableval" != xno
13880 then :
13881
13882
13883
13884
13885 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13886
13887 if test ${pa_cv_CFLAGS__Werror+y}
13888 then :
13889 printf %s "(cached) " >&6
13890 else case e in #(
13891 e) as_fn_append CFLAGS ' -Werror'
13892 pa_cv_CFLAGS__Werror=yes
13893 ac_ext=c
13894 ac_cpp='$CPP $CPPFLAGS'
13895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898
13899 if test "x$pa_cv_CFLAGS__Werror" = xyes
13900 then :
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror" >&5
13902 printf %s "checking whether $CC accepts -Werror... " >&6; }
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905
13906 int
13907 main (void)
13908 {
13909
13910 ;
13911 return 0;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_compile "$LINENO"
13915 then :
13916
13917 else case e in #(
13918 e) pa_cv_CFLAGS__Werror=no ;;
13919 esac
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror" >&5
13923 printf "%s\n" "$pa_cv_CFLAGS__Werror" >&6; }
13924
13925 fi
13926 ac_ext=c
13927 ac_cpp='$CPP $CPPFLAGS'
13928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13931
13932
13933 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
13934 ;;
13935 esac
13936 fi
13937
13938
13939 if test "x$pa_cv_CFLAGS__Werror" = xyes
13940 then :
13941 as_fn_append CFLAGS ' -Werror'
13942
13943 printf "%s\n" "#define CFLAGS_WERROR 1" >>confdefs.h
13944
13945
13946 fi
13947
13948
13949
13950
13951
13952 else case e in #(
13953 e)
13954
13955
13956
13957 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
13958
13959 if test ${pa_cv_CFLAGS__Werror_implicit+y}
13960 then :
13961 printf %s "(cached) " >&6
13962 else case e in #(
13963 e) as_fn_append CFLAGS ' -Werror=implicit'
13964 pa_cv_CFLAGS__Werror_implicit=yes
13965 ac_ext=c
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971 if test "x$pa_cv_CFLAGS__Werror_implicit" = xyes
13972 then :
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=implicit" >&5
13974 printf %s "checking whether $CC accepts -Werror=implicit... " >&6; }
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977
13978 int
13979 main (void)
13980 {
13981
13982 ;
13983 return 0;
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_compile "$LINENO"
13987 then :
13988
13989 else case e in #(
13990 e) pa_cv_CFLAGS__Werror_implicit=no ;;
13991 esac
13992 fi
13993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_implicit" >&5
13995 printf "%s\n" "$pa_cv_CFLAGS__Werror_implicit" >&6; }
13996
13997 fi
13998 ac_ext=c
13999 ac_cpp='$CPP $CPPFLAGS'
14000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14003
14004
14005 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14006 ;;
14007 esac
14008 fi
14009
14010
14011 if test "x$pa_cv_CFLAGS__Werror_implicit" = xyes
14012 then :
14013 as_fn_append CFLAGS ' -Werror=implicit'
14014
14015 printf "%s\n" "#define CFLAGS_WERROR_IMPLICIT 1" >>confdefs.h
14016
14017
14018 fi
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14029
14030 if test ${pa_cv_CFLAGS__Werror_missing_braces+y}
14031 then :
14032 printf %s "(cached) " >&6
14033 else case e in #(
14034 e) as_fn_append CFLAGS ' -Werror=missing-braces'
14035 pa_cv_CFLAGS__Werror_missing_braces=yes
14036 ac_ext=c
14037 ac_cpp='$CPP $CPPFLAGS'
14038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14041
14042 if test "x$pa_cv_CFLAGS__Werror_missing_braces" = xyes
14043 then :
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=missing-braces" >&5
14045 printf %s "checking whether $CC accepts -Werror=missing-braces... " >&6; }
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048
14049 int
14050 main (void)
14051 {
14052
14053 ;
14054 return 0;
14055 }
14056 _ACEOF
14057 if ac_fn_c_try_compile "$LINENO"
14058 then :
14059
14060 else case e in #(
14061 e) pa_cv_CFLAGS__Werror_missing_braces=no ;;
14062 esac
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_missing_braces" >&5
14066 printf "%s\n" "$pa_cv_CFLAGS__Werror_missing_braces" >&6; }
14067
14068 fi
14069 ac_ext=c
14070 ac_cpp='$CPP $CPPFLAGS'
14071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14074
14075
14076 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14077 ;;
14078 esac
14079 fi
14080
14081
14082 if test "x$pa_cv_CFLAGS__Werror_missing_braces" = xyes
14083 then :
14084 as_fn_append CFLAGS ' -Werror=missing-braces'
14085
14086 printf "%s\n" "#define CFLAGS_WERROR_MISSING_BRACES 1" >>confdefs.h
14087
14088
14089 fi
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14100
14101 if test ${pa_cv_CFLAGS__Werror_return_type+y}
14102 then :
14103 printf %s "(cached) " >&6
14104 else case e in #(
14105 e) as_fn_append CFLAGS ' -Werror=return-type'
14106 pa_cv_CFLAGS__Werror_return_type=yes
14107 ac_ext=c
14108 ac_cpp='$CPP $CPPFLAGS'
14109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14112
14113 if test "x$pa_cv_CFLAGS__Werror_return_type" = xyes
14114 then :
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=return-type" >&5
14116 printf %s "checking whether $CC accepts -Werror=return-type... " >&6; }
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14119
14120 int
14121 main (void)
14122 {
14123
14124 ;
14125 return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_compile "$LINENO"
14129 then :
14130
14131 else case e in #(
14132 e) pa_cv_CFLAGS__Werror_return_type=no ;;
14133 esac
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_return_type" >&5
14137 printf "%s\n" "$pa_cv_CFLAGS__Werror_return_type" >&6; }
14138
14139 fi
14140 ac_ext=c
14141 ac_cpp='$CPP $CPPFLAGS'
14142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14145
14146
14147 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14148 ;;
14149 esac
14150 fi
14151
14152
14153 if test "x$pa_cv_CFLAGS__Werror_return_type" = xyes
14154 then :
14155 as_fn_append CFLAGS ' -Werror=return-type'
14156
14157 printf "%s\n" "#define CFLAGS_WERROR_RETURN_TYPE 1" >>confdefs.h
14158
14159
14160 fi
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14171
14172 if test ${pa_cv_CFLAGS__Werror_trigraphs+y}
14173 then :
14174 printf %s "(cached) " >&6
14175 else case e in #(
14176 e) as_fn_append CFLAGS ' -Werror=trigraphs'
14177 pa_cv_CFLAGS__Werror_trigraphs=yes
14178 ac_ext=c
14179 ac_cpp='$CPP $CPPFLAGS'
14180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14183
14184 if test "x$pa_cv_CFLAGS__Werror_trigraphs" = xyes
14185 then :
14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=trigraphs" >&5
14187 printf %s "checking whether $CC accepts -Werror=trigraphs... " >&6; }
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190
14191 int
14192 main (void)
14193 {
14194
14195 ;
14196 return 0;
14197 }
14198 _ACEOF
14199 if ac_fn_c_try_compile "$LINENO"
14200 then :
14201
14202 else case e in #(
14203 e) pa_cv_CFLAGS__Werror_trigraphs=no ;;
14204 esac
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_trigraphs" >&5
14208 printf "%s\n" "$pa_cv_CFLAGS__Werror_trigraphs" >&6; }
14209
14210 fi
14211 ac_ext=c
14212 ac_cpp='$CPP $CPPFLAGS'
14213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14216
14217
14218 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14219 ;;
14220 esac
14221 fi
14222
14223
14224 if test "x$pa_cv_CFLAGS__Werror_trigraphs" = xyes
14225 then :
14226 as_fn_append CFLAGS ' -Werror=trigraphs'
14227
14228 printf "%s\n" "#define CFLAGS_WERROR_TRIGRAPHS 1" >>confdefs.h
14229
14230
14231 fi
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14242
14243 if test ${pa_cv_CFLAGS__Werror_pointer_arith+y}
14244 then :
14245 printf %s "(cached) " >&6
14246 else case e in #(
14247 e) as_fn_append CFLAGS ' -Werror=pointer-arith'
14248 pa_cv_CFLAGS__Werror_pointer_arith=yes
14249 ac_ext=c
14250 ac_cpp='$CPP $CPPFLAGS'
14251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14254
14255 if test "x$pa_cv_CFLAGS__Werror_pointer_arith" = xyes
14256 then :
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=pointer-arith" >&5
14258 printf %s "checking whether $CC accepts -Werror=pointer-arith... " >&6; }
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261
14262 int
14263 main (void)
14264 {
14265
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_compile "$LINENO"
14271 then :
14272
14273 else case e in #(
14274 e) pa_cv_CFLAGS__Werror_pointer_arith=no ;;
14275 esac
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_pointer_arith" >&5
14279 printf "%s\n" "$pa_cv_CFLAGS__Werror_pointer_arith" >&6; }
14280
14281 fi
14282 ac_ext=c
14283 ac_cpp='$CPP $CPPFLAGS'
14284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
14288
14289 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14290 ;;
14291 esac
14292 fi
14293
14294
14295 if test "x$pa_cv_CFLAGS__Werror_pointer_arith" = xyes
14296 then :
14297 as_fn_append CFLAGS ' -Werror=pointer-arith'
14298
14299 printf "%s\n" "#define CFLAGS_WERROR_POINTER_ARITH 1" >>confdefs.h
14300
14301
14302 fi
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14313
14314 if test ${pa_cv_CFLAGS__Werror_comment+y}
14315 then :
14316 printf %s "(cached) " >&6
14317 else case e in #(
14318 e) as_fn_append CFLAGS ' -Werror=comment'
14319 pa_cv_CFLAGS__Werror_comment=yes
14320 ac_ext=c
14321 ac_cpp='$CPP $CPPFLAGS'
14322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14325
14326 if test "x$pa_cv_CFLAGS__Werror_comment" = xyes
14327 then :
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=comment" >&5
14329 printf %s "checking whether $CC accepts -Werror=comment... " >&6; }
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332
14333 int
14334 main (void)
14335 {
14336
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_compile "$LINENO"
14342 then :
14343
14344 else case e in #(
14345 e) pa_cv_CFLAGS__Werror_comment=no ;;
14346 esac
14347 fi
14348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_comment" >&5
14350 printf "%s\n" "$pa_cv_CFLAGS__Werror_comment" >&6; }
14351
14352 fi
14353 ac_ext=c
14354 ac_cpp='$CPP $CPPFLAGS'
14355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14358
14359
14360 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14361 ;;
14362 esac
14363 fi
14364
14365
14366 if test "x$pa_cv_CFLAGS__Werror_comment" = xyes
14367 then :
14368 as_fn_append CFLAGS ' -Werror=comment'
14369
14370 printf "%s\n" "#define CFLAGS_WERROR_COMMENT 1" >>confdefs.h
14371
14372
14373 fi
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14384
14385 if test ${pa_cv_CFLAGS__Werror_vla+y}
14386 then :
14387 printf %s "(cached) " >&6
14388 else case e in #(
14389 e) as_fn_append CFLAGS ' -Werror=vla'
14390 pa_cv_CFLAGS__Werror_vla=yes
14391 ac_ext=c
14392 ac_cpp='$CPP $CPPFLAGS'
14393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14396
14397 if test "x$pa_cv_CFLAGS__Werror_vla" = xyes
14398 then :
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=vla" >&5
14400 printf %s "checking whether $CC accepts -Werror=vla... " >&6; }
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14403
14404 int
14405 main (void)
14406 {
14407
14408 ;
14409 return 0;
14410 }
14411 _ACEOF
14412 if ac_fn_c_try_compile "$LINENO"
14413 then :
14414
14415 else case e in #(
14416 e) pa_cv_CFLAGS__Werror_vla=no ;;
14417 esac
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_vla" >&5
14421 printf "%s\n" "$pa_cv_CFLAGS__Werror_vla" >&6; }
14422
14423 fi
14424 ac_ext=c
14425 ac_cpp='$CPP $CPPFLAGS'
14426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429
14430
14431 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14432 ;;
14433 esac
14434 fi
14435
14436
14437 if test "x$pa_cv_CFLAGS__Werror_vla" = xyes
14438 then :
14439 as_fn_append CFLAGS ' -Werror=vla'
14440
14441 printf "%s\n" "#define CFLAGS_WERROR_VLA 1" >>confdefs.h
14442
14443
14444 fi
14445
14446
14447
14448
14449
14450 ;;
14451 esac
14452 fi
14453
14454
14455
14456
14457
14458
14459 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14460
14461 if test ${pa_cv_CFLAGS__Werror_strict_prototypes+y}
14462 then :
14463 printf %s "(cached) " >&6
14464 else case e in #(
14465 e) as_fn_append CFLAGS ' -Werror=strict-prototypes'
14466 pa_cv_CFLAGS__Werror_strict_prototypes=yes
14467 ac_ext=c
14468 ac_cpp='$CPP $CPPFLAGS'
14469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14472
14473 if test "x$pa_cv_CFLAGS__Werror_strict_prototypes" = xyes
14474 then :
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=strict-prototypes" >&5
14476 printf %s "checking whether $CC accepts -Werror=strict-prototypes... " >&6; }
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479
14480 int
14481 main (void)
14482 {
14483
14484 ;
14485 return 0;
14486 }
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"
14489 then :
14490
14491 else case e in #(
14492 e) pa_cv_CFLAGS__Werror_strict_prototypes=no ;;
14493 esac
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_strict_prototypes" >&5
14497 printf "%s\n" "$pa_cv_CFLAGS__Werror_strict_prototypes" >&6; }
14498
14499 fi
14500 ac_ext=c
14501 ac_cpp='$CPP $CPPFLAGS'
14502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14505
14506
14507 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14508 ;;
14509 esac
14510 fi
14511
14512
14513 if test "x$pa_cv_CFLAGS__Werror_strict_prototypes" = xyes
14514 then :
14515 as_fn_append CFLAGS ' -Werror=strict-prototypes'
14516
14517 printf "%s\n" "#define CFLAGS_WERROR_STRICT_PROTOTYPES 1" >>confdefs.h
14518
14519
14520 fi
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14531
14532 if test ${pa_cv_CFLAGS__Werror_missing_prototypes+y}
14533 then :
14534 printf %s "(cached) " >&6
14535 else case e in #(
14536 e) as_fn_append CFLAGS ' -Werror=missing-prototypes'
14537 pa_cv_CFLAGS__Werror_missing_prototypes=yes
14538 ac_ext=c
14539 ac_cpp='$CPP $CPPFLAGS'
14540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14543
14544 if test "x$pa_cv_CFLAGS__Werror_missing_prototypes" = xyes
14545 then :
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=missing-prototypes" >&5
14547 printf %s "checking whether $CC accepts -Werror=missing-prototypes... " >&6; }
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550
14551 int
14552 main (void)
14553 {
14554
14555 ;
14556 return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_c_try_compile "$LINENO"
14560 then :
14561
14562 else case e in #(
14563 e) pa_cv_CFLAGS__Werror_missing_prototypes=no ;;
14564 esac
14565 fi
14566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_missing_prototypes" >&5
14568 printf "%s\n" "$pa_cv_CFLAGS__Werror_missing_prototypes" >&6; }
14569
14570 fi
14571 ac_ext=c
14572 ac_cpp='$CPP $CPPFLAGS'
14573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14576
14577
14578 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14579 ;;
14580 esac
14581 fi
14582
14583
14584 if test "x$pa_cv_CFLAGS__Werror_missing_prototypes" = xyes
14585 then :
14586 as_fn_append CFLAGS ' -Werror=missing-prototypes'
14587
14588 printf "%s\n" "#define CFLAGS_WERROR_MISSING_PROTOTYPES 1" >>confdefs.h
14589
14590
14591 fi
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14602
14603 if test ${pa_cv_CFLAGS__Werror_missing_declarations+y}
14604 then :
14605 printf %s "(cached) " >&6
14606 else case e in #(
14607 e) as_fn_append CFLAGS ' -Werror=missing-declarations'
14608 pa_cv_CFLAGS__Werror_missing_declarations=yes
14609 ac_ext=c
14610 ac_cpp='$CPP $CPPFLAGS'
14611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14614
14615 if test "x$pa_cv_CFLAGS__Werror_missing_declarations" = xyes
14616 then :
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=missing-declarations" >&5
14618 printf %s "checking whether $CC accepts -Werror=missing-declarations... " >&6; }
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14621
14622 int
14623 main (void)
14624 {
14625
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 if ac_fn_c_try_compile "$LINENO"
14631 then :
14632
14633 else case e in #(
14634 e) pa_cv_CFLAGS__Werror_missing_declarations=no ;;
14635 esac
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Werror_missing_declarations" >&5
14639 printf "%s\n" "$pa_cv_CFLAGS__Werror_missing_declarations" >&6; }
14640
14641 fi
14642 ac_ext=c
14643 ac_cpp='$CPP $CPPFLAGS'
14644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14647
14648
14649 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14650 ;;
14651 esac
14652 fi
14653
14654
14655 if test "x$pa_cv_CFLAGS__Werror_missing_declarations" = xyes
14656 then :
14657 as_fn_append CFLAGS ' -Werror=missing-declarations'
14658
14659 printf "%s\n" "#define CFLAGS_WERROR_MISSING_DECLARATIONS 1" >>confdefs.h
14660
14661
14662 fi
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14674
14675 if test ${pa_cv_CFLAGS__Wvariadic_macros+y}
14676 then :
14677 printf %s "(cached) " >&6
14678 else case e in #(
14679 e) as_fn_append CFLAGS ' -Wvariadic-macros'
14680 pa_cv_CFLAGS__Wvariadic_macros=yes
14681 ac_ext=c
14682 ac_cpp='$CPP $CPPFLAGS'
14683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14686
14687 if test "x$pa_cv_CFLAGS__Wvariadic_macros" = xyes
14688 then :
14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wvariadic-macros" >&5
14690 printf %s "checking whether $CC accepts -Wvariadic-macros... " >&6; }
14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14693
14694 int
14695 main (void)
14696 {
14697
14698 ;
14699 return 0;
14700 }
14701 _ACEOF
14702 if ac_fn_c_try_compile "$LINENO"
14703 then :
14704
14705 else case e in #(
14706 e) pa_cv_CFLAGS__Wvariadic_macros=no ;;
14707 esac
14708 fi
14709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wvariadic_macros" >&5
14711 printf "%s\n" "$pa_cv_CFLAGS__Wvariadic_macros" >&6; }
14712
14713 fi
14714 ac_ext=c
14715 ac_cpp='$CPP $CPPFLAGS'
14716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14719
14720
14721 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14722 ;;
14723 esac
14724 fi
14725
14726
14727 if test "x$pa_cv_CFLAGS__Wvariadic_macros" = xyes
14728 then :
14729 as_fn_append CFLAGS ' -Wno-variadic-macros'
14730
14731 printf "%s\n" "#define CFLAGS_WNO_VARIADIC_MACROS 1" >>confdefs.h
14732
14733
14734 fi
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14745
14746 if test ${pa_cv_CFLAGS__Wpedantic_ms_format+y}
14747 then :
14748 printf %s "(cached) " >&6
14749 else case e in #(
14750 e) as_fn_append CFLAGS ' -Wpedantic-ms-format'
14751 pa_cv_CFLAGS__Wpedantic_ms_format=yes
14752 ac_ext=c
14753 ac_cpp='$CPP $CPPFLAGS'
14754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14757
14758 if test "x$pa_cv_CFLAGS__Wpedantic_ms_format" = xyes
14759 then :
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wpedantic-ms-format" >&5
14761 printf %s "checking whether $CC accepts -Wpedantic-ms-format... " >&6; }
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764
14765 int
14766 main (void)
14767 {
14768
14769 ;
14770 return 0;
14771 }
14772 _ACEOF
14773 if ac_fn_c_try_compile "$LINENO"
14774 then :
14775
14776 else case e in #(
14777 e) pa_cv_CFLAGS__Wpedantic_ms_format=no ;;
14778 esac
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wpedantic_ms_format" >&5
14782 printf "%s\n" "$pa_cv_CFLAGS__Wpedantic_ms_format" >&6; }
14783
14784 fi
14785 ac_ext=c
14786 ac_cpp='$CPP $CPPFLAGS'
14787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14790
14791
14792 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14793 ;;
14794 esac
14795 fi
14796
14797
14798 if test "x$pa_cv_CFLAGS__Wpedantic_ms_format" = xyes
14799 then :
14800 as_fn_append CFLAGS ' -Wno-pedantic-ms-format'
14801
14802 printf "%s\n" "#define CFLAGS_WNO_PEDANTIC_MS_FORMAT 1" >>confdefs.h
14803
14804
14805 fi
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14816
14817 if test ${pa_cv_CFLAGS__Wlong_long+y}
14818 then :
14819 printf %s "(cached) " >&6
14820 else case e in #(
14821 e) as_fn_append CFLAGS ' -Wlong-long'
14822 pa_cv_CFLAGS__Wlong_long=yes
14823 ac_ext=c
14824 ac_cpp='$CPP $CPPFLAGS'
14825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14828
14829 if test "x$pa_cv_CFLAGS__Wlong_long" = xyes
14830 then :
14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wlong-long" >&5
14832 printf %s "checking whether $CC accepts -Wlong-long... " >&6; }
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835
14836 int
14837 main (void)
14838 {
14839
14840 ;
14841 return 0;
14842 }
14843 _ACEOF
14844 if ac_fn_c_try_compile "$LINENO"
14845 then :
14846
14847 else case e in #(
14848 e) pa_cv_CFLAGS__Wlong_long=no ;;
14849 esac
14850 fi
14851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wlong_long" >&5
14853 printf "%s\n" "$pa_cv_CFLAGS__Wlong_long" >&6; }
14854
14855 fi
14856 ac_ext=c
14857 ac_cpp='$CPP $CPPFLAGS'
14858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14861
14862
14863 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14864 ;;
14865 esac
14866 fi
14867
14868
14869 if test "x$pa_cv_CFLAGS__Wlong_long" = xyes
14870 then :
14871 as_fn_append CFLAGS ' -Wno-long-long'
14872
14873 printf "%s\n" "#define CFLAGS_WNO_LONG_LONG 1" >>confdefs.h
14874
14875
14876 fi
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14887
14888 if test ${pa_cv_CFLAGS__Wstringop_truncation+y}
14889 then :
14890 printf %s "(cached) " >&6
14891 else case e in #(
14892 e) as_fn_append CFLAGS ' -Wstringop-truncation'
14893 pa_cv_CFLAGS__Wstringop_truncation=yes
14894 ac_ext=c
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899
14900 if test "x$pa_cv_CFLAGS__Wstringop_truncation" = xyes
14901 then :
14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wstringop-truncation" >&5
14903 printf %s "checking whether $CC accepts -Wstringop-truncation... " >&6; }
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906
14907 int
14908 main (void)
14909 {
14910
14911 ;
14912 return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_compile "$LINENO"
14916 then :
14917
14918 else case e in #(
14919 e) pa_cv_CFLAGS__Wstringop_truncation=no ;;
14920 esac
14921 fi
14922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wstringop_truncation" >&5
14924 printf "%s\n" "$pa_cv_CFLAGS__Wstringop_truncation" >&6; }
14925
14926 fi
14927 ac_ext=c
14928 ac_cpp='$CPP $CPPFLAGS'
14929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14932
14933
14934 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
14935 ;;
14936 esac
14937 fi
14938
14939
14940 if test "x$pa_cv_CFLAGS__Wstringop_truncation" = xyes
14941 then :
14942 as_fn_append CFLAGS ' -Wno-stringop-truncation'
14943
14944 printf "%s\n" "#define CFLAGS_WNO_STRINGOP_TRUNCATION 1" >>confdefs.h
14945
14946
14947 fi
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
14958
14959 if test ${pa_cv_CFLAGS__Wshift_negative_value+y}
14960 then :
14961 printf %s "(cached) " >&6
14962 else case e in #(
14963 e) as_fn_append CFLAGS ' -Wshift-negative-value'
14964 pa_cv_CFLAGS__Wshift_negative_value=yes
14965 ac_ext=c
14966 ac_cpp='$CPP $CPPFLAGS'
14967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14970
14971 if test "x$pa_cv_CFLAGS__Wshift_negative_value" = xyes
14972 then :
14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wshift-negative-value" >&5
14974 printf %s "checking whether $CC accepts -Wshift-negative-value... " >&6; }
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977
14978 int
14979 main (void)
14980 {
14981
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 if ac_fn_c_try_compile "$LINENO"
14987 then :
14988
14989 else case e in #(
14990 e) pa_cv_CFLAGS__Wshift_negative_value=no ;;
14991 esac
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wshift_negative_value" >&5
14995 printf "%s\n" "$pa_cv_CFLAGS__Wshift_negative_value" >&6; }
14996
14997 fi
14998 ac_ext=c
14999 ac_cpp='$CPP $CPPFLAGS'
15000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15003
15004
15005 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15006 ;;
15007 esac
15008 fi
15009
15010
15011 if test "x$pa_cv_CFLAGS__Wshift_negative_value" = xyes
15012 then :
15013 as_fn_append CFLAGS ' -Wno-shift-negative-value'
15014
15015 printf "%s\n" "#define CFLAGS_WNO_SHIFT_NEGATIVE_VALUE 1" >>confdefs.h
15016
15017
15018 fi
15019
15020
15021
15022
15023
15024
15025
15026
15027 # Check whether --enable-suggestions was given.
15028 if test ${enable_suggestions+y}
15029 then :
15030 enableval=$enable_suggestions; pa_arg_bool_enableval="$enableval"
15031 else case e in #(
15032 e) pa_arg_bool_enableval="no" ;;
15033 esac
15034 fi
15035
15036
15037 if test x"$pa_arg_bool_enableval" != xno
15038 then :
15039
15040
15041
15042
15043 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
15044
15045 if test ${pa_cv_CFLAGS__Wsuggest_attribute_pure+y}
15046 then :
15047 printf %s "(cached) " >&6
15048 else case e in #(
15049 e) as_fn_append CFLAGS ' -Wsuggest-attribute=pure'
15050 pa_cv_CFLAGS__Wsuggest_attribute_pure=yes
15051 ac_ext=c
15052 ac_cpp='$CPP $CPPFLAGS'
15053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15056
15057 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_pure" = xyes
15058 then :
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsuggest-attribute=pure" >&5
15060 printf %s "checking whether $CC accepts -Wsuggest-attribute=pure... " >&6; }
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063
15064 int
15065 main (void)
15066 {
15067
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 if ac_fn_c_try_compile "$LINENO"
15073 then :
15074
15075 else case e in #(
15076 e) pa_cv_CFLAGS__Wsuggest_attribute_pure=no ;;
15077 esac
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wsuggest_attribute_pure" >&5
15081 printf "%s\n" "$pa_cv_CFLAGS__Wsuggest_attribute_pure" >&6; }
15082
15083 fi
15084 ac_ext=c
15085 ac_cpp='$CPP $CPPFLAGS'
15086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15089
15090
15091 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15092 ;;
15093 esac
15094 fi
15095
15096
15097 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_pure" = xyes
15098 then :
15099 as_fn_append CFLAGS ' -Wsuggest-attribute=pure'
15100
15101 printf "%s\n" "#define CFLAGS_WSUGGEST_ATTRIBUTE_PURE 1" >>confdefs.h
15102
15103
15104 fi
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
15115
15116 if test ${pa_cv_CFLAGS__Wsuggest_attribute_const+y}
15117 then :
15118 printf %s "(cached) " >&6
15119 else case e in #(
15120 e) as_fn_append CFLAGS ' -Wsuggest-attribute=const'
15121 pa_cv_CFLAGS__Wsuggest_attribute_const=yes
15122 ac_ext=c
15123 ac_cpp='$CPP $CPPFLAGS'
15124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15127
15128 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_const" = xyes
15129 then :
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsuggest-attribute=const" >&5
15131 printf %s "checking whether $CC accepts -Wsuggest-attribute=const... " >&6; }
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134
15135 int
15136 main (void)
15137 {
15138
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_c_try_compile "$LINENO"
15144 then :
15145
15146 else case e in #(
15147 e) pa_cv_CFLAGS__Wsuggest_attribute_const=no ;;
15148 esac
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wsuggest_attribute_const" >&5
15152 printf "%s\n" "$pa_cv_CFLAGS__Wsuggest_attribute_const" >&6; }
15153
15154 fi
15155 ac_ext=c
15156 ac_cpp='$CPP $CPPFLAGS'
15157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15160
15161
15162 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15163 ;;
15164 esac
15165 fi
15166
15167
15168 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_const" = xyes
15169 then :
15170 as_fn_append CFLAGS ' -Wsuggest-attribute=const'
15171
15172 printf "%s\n" "#define CFLAGS_WSUGGEST_ATTRIBUTE_CONST 1" >>confdefs.h
15173
15174
15175 fi
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
15186
15187 if test ${pa_cv_CFLAGS__Wsuggest_attribute_noreturn+y}
15188 then :
15189 printf %s "(cached) " >&6
15190 else case e in #(
15191 e) as_fn_append CFLAGS ' -Wsuggest-attribute=noreturn'
15192 pa_cv_CFLAGS__Wsuggest_attribute_noreturn=yes
15193 ac_ext=c
15194 ac_cpp='$CPP $CPPFLAGS'
15195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15198
15199 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_noreturn" = xyes
15200 then :
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsuggest-attribute=noreturn" >&5
15202 printf %s "checking whether $CC accepts -Wsuggest-attribute=noreturn... " >&6; }
15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15205
15206 int
15207 main (void)
15208 {
15209
15210 ;
15211 return 0;
15212 }
15213 _ACEOF
15214 if ac_fn_c_try_compile "$LINENO"
15215 then :
15216
15217 else case e in #(
15218 e) pa_cv_CFLAGS__Wsuggest_attribute_noreturn=no ;;
15219 esac
15220 fi
15221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wsuggest_attribute_noreturn" >&5
15223 printf "%s\n" "$pa_cv_CFLAGS__Wsuggest_attribute_noreturn" >&6; }
15224
15225 fi
15226 ac_ext=c
15227 ac_cpp='$CPP $CPPFLAGS'
15228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15231
15232
15233 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15234 ;;
15235 esac
15236 fi
15237
15238
15239 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_noreturn" = xyes
15240 then :
15241 as_fn_append CFLAGS ' -Wsuggest-attribute=noreturn'
15242
15243 printf "%s\n" "#define CFLAGS_WSUGGEST_ATTRIBUTE_NORETURN 1" >>confdefs.h
15244
15245
15246 fi
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
15257
15258 if test ${pa_cv_CFLAGS__Wsuggest_attribute_format+y}
15259 then :
15260 printf %s "(cached) " >&6
15261 else case e in #(
15262 e) as_fn_append CFLAGS ' -Wsuggest-attribute=format'
15263 pa_cv_CFLAGS__Wsuggest_attribute_format=yes
15264 ac_ext=c
15265 ac_cpp='$CPP $CPPFLAGS'
15266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15269
15270 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_format" = xyes
15271 then :
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsuggest-attribute=format" >&5
15273 printf %s "checking whether $CC accepts -Wsuggest-attribute=format... " >&6; }
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276
15277 int
15278 main (void)
15279 {
15280
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_compile "$LINENO"
15286 then :
15287
15288 else case e in #(
15289 e) pa_cv_CFLAGS__Wsuggest_attribute_format=no ;;
15290 esac
15291 fi
15292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wsuggest_attribute_format" >&5
15294 printf "%s\n" "$pa_cv_CFLAGS__Wsuggest_attribute_format" >&6; }
15295
15296 fi
15297 ac_ext=c
15298 ac_cpp='$CPP $CPPFLAGS'
15299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15302
15303
15304 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15305 ;;
15306 esac
15307 fi
15308
15309
15310 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_format" = xyes
15311 then :
15312 as_fn_append CFLAGS ' -Wsuggest-attribute=format'
15313
15314 printf "%s\n" "#define CFLAGS_WSUGGEST_ATTRIBUTE_FORMAT 1" >>confdefs.h
15315
15316
15317 fi
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
15328
15329 if test ${pa_cv_CFLAGS__Wsuggest_attribute_cold+y}
15330 then :
15331 printf %s "(cached) " >&6
15332 else case e in #(
15333 e) as_fn_append CFLAGS ' -Wsuggest-attribute=cold'
15334 pa_cv_CFLAGS__Wsuggest_attribute_cold=yes
15335 ac_ext=c
15336 ac_cpp='$CPP $CPPFLAGS'
15337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15340
15341 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_cold" = xyes
15342 then :
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsuggest-attribute=cold" >&5
15344 printf %s "checking whether $CC accepts -Wsuggest-attribute=cold... " >&6; }
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347
15348 int
15349 main (void)
15350 {
15351
15352 ;
15353 return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_compile "$LINENO"
15357 then :
15358
15359 else case e in #(
15360 e) pa_cv_CFLAGS__Wsuggest_attribute_cold=no ;;
15361 esac
15362 fi
15363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wsuggest_attribute_cold" >&5
15365 printf "%s\n" "$pa_cv_CFLAGS__Wsuggest_attribute_cold" >&6; }
15366
15367 fi
15368 ac_ext=c
15369 ac_cpp='$CPP $CPPFLAGS'
15370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15373
15374
15375 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15376 ;;
15377 esac
15378 fi
15379
15380
15381 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_cold" = xyes
15382 then :
15383 as_fn_append CFLAGS ' -Wsuggest-attribute=cold'
15384
15385 printf "%s\n" "#define CFLAGS_WSUGGEST_ATTRIBUTE_COLD 1" >>confdefs.h
15386
15387
15388 fi
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
15399
15400 if test ${pa_cv_CFLAGS__Wsuggest_attribute_malloc+y}
15401 then :
15402 printf %s "(cached) " >&6
15403 else case e in #(
15404 e) as_fn_append CFLAGS ' -Wsuggest-attribute=malloc'
15405 pa_cv_CFLAGS__Wsuggest_attribute_malloc=yes
15406 ac_ext=c
15407 ac_cpp='$CPP $CPPFLAGS'
15408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15411
15412 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_malloc" = xyes
15413 then :
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsuggest-attribute=malloc" >&5
15415 printf %s "checking whether $CC accepts -Wsuggest-attribute=malloc... " >&6; }
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418
15419 int
15420 main (void)
15421 {
15422
15423 ;
15424 return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_compile "$LINENO"
15428 then :
15429
15430 else case e in #(
15431 e) pa_cv_CFLAGS__Wsuggest_attribute_malloc=no ;;
15432 esac
15433 fi
15434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__Wsuggest_attribute_malloc" >&5
15436 printf "%s\n" "$pa_cv_CFLAGS__Wsuggest_attribute_malloc" >&6; }
15437
15438 fi
15439 ac_ext=c
15440 ac_cpp='$CPP $CPPFLAGS'
15441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15444
15445
15446 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15447 ;;
15448 esac
15449 fi
15450
15451
15452 if test "x$pa_cv_CFLAGS__Wsuggest_attribute_malloc" = xyes
15453 then :
15454 as_fn_append CFLAGS ' -Wsuggest-attribute=malloc'
15455
15456 printf "%s\n" "#define CFLAGS_WSUGGEST_ATTRIBUTE_MALLOC 1" >>confdefs.h
15457
15458
15459 fi
15460
15461
15462
15463
15464
15465 fi
15466
15467
15468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports C99 external inlines" >&5
15469 printf %s "checking if $CC supports C99 external inlines... " >&6; }
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472
15473 $ac_includes_default
15474
15475 /* Don't mistake GNU inlines for c99 */
15476 #if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
15477 # error "Using gnu inline standard"
15478 #endif
15479
15480 inline int foo(int x)
15481 {
15482 return x+1;
15483 }
15484
15485 _ACEOF
15486 if ac_fn_c_try_compile "$LINENO"
15487 then :
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15489 printf "%s\n" "yes" >&6; }
15490
15491 printf "%s\n" "#define HAVE_STDC_INLINE 1" >>confdefs.h
15492
15493 else case e in #(
15494 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15495 printf "%s\n" "no" >&6; }
15496
15497
15498
15499
15500 _PA_ADD_FLAGS_CFLAGS_orig=$CFLAGS
15501
15502 if test ${pa_cv_CFLAGS__fgnu89_inline+y}
15503 then :
15504 printf %s "(cached) " >&6
15505 else case e in #(
15506 e) as_fn_append CFLAGS ' -fgnu89-inline'
15507 pa_cv_CFLAGS__fgnu89_inline=yes
15508 ac_ext=c
15509 ac_cpp='$CPP $CPPFLAGS'
15510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15513
15514 if test "x$pa_cv_CFLAGS__fgnu89_inline" = xyes
15515 then :
15516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fgnu89-inline" >&5
15517 printf %s "checking whether $CC accepts -fgnu89-inline... " >&6; }
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520
15521 int
15522 main (void)
15523 {
15524
15525 ;
15526 return 0;
15527 }
15528 _ACEOF
15529 if ac_fn_c_try_compile "$LINENO"
15530 then :
15531
15532 else case e in #(
15533 e) pa_cv_CFLAGS__fgnu89_inline=no ;;
15534 esac
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_CFLAGS__fgnu89_inline" >&5
15538 printf "%s\n" "$pa_cv_CFLAGS__fgnu89_inline" >&6; }
15539
15540 fi
15541 ac_ext=c
15542 ac_cpp='$CPP $CPPFLAGS'
15543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15546
15547
15548 CFLAGS=$_PA_ADD_FLAGS_CFLAGS_orig
15549 ;;
15550 esac
15551 fi
15552
15553
15554 if test "x$pa_cv_CFLAGS__fgnu89_inline" = xyes
15555 then :
15556 as_fn_append CFLAGS ' -fgnu89-inline'
15557
15558 printf "%s\n" "#define CFLAGS_FGNU89_INLINE 1" >>confdefs.h
15559
15560
15561 fi
15562
15563
15564
15565
15566 ;;
15567 esac
15568 fi
15569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports typeof" >&5
15571 printf %s "checking if $CC supports typeof... " >&6; }
15572 if test ${pa_cv_typeof+y}
15573 then :
15574 printf %s "(cached) " >&6
15575 else case e in #(
15576 e) pa_cv_typeof=no
15577 for pa_typeof_try in typeof __typeof __typeof__ decltype __decltype __decltype__ _Decltype
15578 do
15579 if test $pa_cv_typeof = no
15580 then :
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583
15584 $ac_includes_default
15585 int testme(int x);
15586 int testme(int x)
15587 {
15588 $pa_typeof_try(x) y = x*x;
15589 return y;
15590 }
15591
15592 _ACEOF
15593 if ac_fn_c_try_compile "$LINENO"
15594 then :
15595 pa_cv_typeof=$pa_typeof_try
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15598 fi
15599 done
15600 ;;
15601 esac
15602 fi
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pa_cv_typeof" >&5
15604 printf "%s\n" "$pa_cv_typeof" >&6; }
15605 if test $pa_cv_typeof = no
15606 then :
15607
15608 else case e in #(
15609 e)
15610 printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h
15611
15612 if test $pa_cv_typeof = typeof
15613 then :
15614
15615 else case e in #(
15616 e)
15617 printf "%s\n" "#define typeof $pa_cv_typeof" >>confdefs.h
15618 ;;
15619 esac
15620 fi ;;
15621 esac
15622 fi
15623
15624 ac_config_files="$ac_config_files Makefile doc/Makefile misc/Makefile test/Makefile"
15625
15626 cat >confcache <<\_ACEOF
15627 # This file is a shell script that caches the results of configure
15628 # tests run on this system so they can be shared between configure
15629 # scripts and configure runs, see configure's option --config-cache.
15630 # It is not useful on other systems. If it contains results you don't
15631 # want to keep, you may remove or edit it.
15632 #
15633 # config.status only pays attention to the cache file if you give it
15634 # the --recheck option to rerun configure.
15635 #
15636 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15637 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15638 # following values.
15639
15640 _ACEOF
15641
15642 # The following way of writing the cache mishandles newlines in values,
15643 # but we know of no workaround that is simple, portable, and efficient.
15644 # So, we kill variables containing newlines.
15645 # Ultrix sh set writes to stderr and can't be redirected directly,
15646 # and sets the high bit in the cache file unless we assign to the vars.
15647 (
15648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15649 eval ac_val=\$$ac_var
15650 case $ac_val in #(
15651 *${as_nl}*)
15652 case $ac_var in #(
15653 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pa_cv_func___builtin_prefetch variable $ac_var contains a newline" >&5
15654 printf "%s\n" "$as_me: WARNING: pa_cv_func___builtin_prefetch variable $ac_var contains a newline" >&2;} ;;
15655 esac
15656 case $ac_var in #(
15657 _ | IFS | as_nl) ;; #(
15658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15659 *) { eval $ac_var=; unset $ac_var;} ;;
15660 esac ;;
15661 esac
15662 done
15663
15664 (set) 2>&1 |
15665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15666 *${as_nl}ac_space=\ *)
15667 # 'set' does not quote correctly, so add quotes: double-quote
15668 # substitution turns \\\\ into \\, and sed turns \\ into \.
15669 sed -n \
15670 "s/'/'\\\\''/g;
15671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15672 ;; #(
15673 *)
15674 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15676 ;;
15677 esac |
15678 sort
15679 ) |
15680 sed '
15681 /^ac_cv_env_/b end
15682 t clear
15683 :clear
15684 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15685 t end
15686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15687 :end' >>confcache
15688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15689 if test -w "$cache_file"; then
15690 if test "x$cache_file" != "x/dev/null"; then
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating pa_cv_func___builtin_prefetch $cache_file" >&5
15692 printf "%s\n" "$as_me: updating pa_cv_func___builtin_prefetch $cache_file" >&6;}
15693 if test ! -f "$cache_file" || test -h "$cache_file"; then
15694 cat confcache >"$cache_file"
15695 else
15696 case $cache_file in #(
15697 */* | ?:*)
15698 mv -f confcache "$cache_file"$$ &&
15699 mv -f "$cache_file"$$ "$cache_file" ;; #(
15700 *)
15701 mv -f confcache "$cache_file" ;;
15702 esac
15703 fi
15704 fi
15705 else
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable pa_cv_func___builtin_prefetch $cache_file" >&5
15707 printf "%s\n" "$as_me: not updating unwritable pa_cv_func___builtin_prefetch $cache_file" >&6;}
15708 fi
15709 fi
15710 rm -f confcache
15711
15712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15713 # Let make expand exec_prefix.
15714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15715
15716 DEFS=-DHAVE_CONFIG_H
15717
15718 ac_libobjs=
15719 ac_ltlibobjs=
15720 U=
15721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15722 # 1. Remove the extension, and $U if already installed.
15723 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15724 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15726 # will be set to the directory where LIBOBJS objects are built.
15727 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15728 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15729 done
15730 LIBOBJS=$ac_libobjs
15731
15732 LTLIBOBJS=$ac_ltlibobjs
15733
15734
15735 # Check whether --enable-year2038 was given.
15736 if test ${enable_year2038+y}
15737 then :
15738 enableval=$enable_year2038;
15739 fi
15740
15741
15742
15743 : "${CONFIG_STATUS=./config.status}"
15744 ac_write_fail=0
15745 ac_clean_files_save=$ac_clean_files
15746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15748 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15749 as_write_fail=0
15750 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15751 #! $SHELL
15752 # Generated by $as_me.
15753 # Run this file to recreate the current configuration.
15754 # Compiler output produced by configure, useful for debugging
15755 # configure, is in config.log if it exists.
15756
15757 debug=false
15758 ac_cs_recheck=false
15759 ac_cs_silent=false
15760
15761 SHELL=\${CONFIG_SHELL-$SHELL}
15762 export SHELL
15763 _ASEOF
15764 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15765 ## -------------------- ##
15766 ## M4sh Initialization. ##
15767 ## -------------------- ##
15768
15769 # Be more Bourne compatible
15770 DUALCASE=1; export DUALCASE # for MKS sh
15771 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15772 then :
15773 emulate sh
15774 NULLCMD=:
15775 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15776 # is contrary to our usage. Disable this feature.
15777 alias -g '${1+"$@"}'='"$@"'
15778 setopt NO_GLOB_SUBST
15779 else case e in #(
15780 e) case `(set -o) 2>/dev/null` in #(
15781 *posix*) :
15782 set -o posix ;; #(
15783 *) :
15784 ;;
15785 esac ;;
15786 esac
15787 fi
15788
15789
15790
15791 # Reset variables that may have inherited troublesome values from
15792 # the environment.
15793
15794 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15795 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15796 # side effect of setting IFS to empty, thus disabling word splitting.)
15797 # Quoting is to prevent editors from complaining about space-tab.
15798 as_nl='
15799 '
15800 export as_nl
15801 IFS=" "" $as_nl"
15802
15803 PS1='$ '
15804 PS2='> '
15805 PS4='+ '
15806
15807 # Ensure predictable behavior from utilities with locale-dependent output.
15808 LC_ALL=C
15809 export LC_ALL
15810 LANGUAGE=C
15811 export LANGUAGE
15812
15813 # We cannot yet rely on "unset" to work, but we need these variables
15814 # to be unset--not just set to an empty or harmless value--now, to
15815 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15816 # also avoids known problems related to "unset" and subshell syntax
15817 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15818 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15819 do eval test \${$as_var+y} \
15820 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15821 done
15822
15823 # Ensure that fds 0, 1, and 2 are open.
15824 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15825 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15826 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15827
15828 # The user is always right.
15829 if ${PATH_SEPARATOR+false} :; then
15830 PATH_SEPARATOR=:
15831 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15832 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15833 PATH_SEPARATOR=';'
15834 }
15835 fi
15836
15837
15838 # Find who we are. Look in the path if we contain no directory separator.
15839 as_myself=
15840 case $0 in #((
15841 *[\\/]* ) as_myself=$0 ;;
15842 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15843 for as_dir in $PATH
15844 do
15845 IFS=$as_save_IFS
15846 case $as_dir in #(((
15847 '') as_dir=./ ;;
15848 */) ;;
15849 *) as_dir=$as_dir/ ;;
15850 esac
15851 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15852 done
15853 IFS=$as_save_IFS
15854
15855 ;;
15856 esac
15857 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15858 # in which case we are not to be found in the path.
15859 if test "x$as_myself" = x; then
15860 as_myself=$0
15861 fi
15862 if test ! -f "$as_myself"; then
15863 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15864 exit 1
15865 fi
15866
15867
15868
15869 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15870 # ----------------------------------------
15871 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15872 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15873 # script with STATUS, using 1 if that was 0.
15874 as_fn_error ()
15875 {
15876 as_status=$1; test $as_status -eq 0 && as_status=1
15877 if test "$4"; then
15878 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15880 fi
15881 printf "%s\n" "$as_me: error: $2" >&2
15882 as_fn_exit $as_status
15883 } # as_fn_error
15884
15885
15886 # as_fn_set_status STATUS
15887 # -----------------------
15888 # Set $? to STATUS, without forking.
15889 as_fn_set_status ()
15890 {
15891 return $1
15892 } # as_fn_set_status
15893
15894 # as_fn_exit STATUS
15895 # -----------------
15896 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15897 as_fn_exit ()
15898 {
15899 set +e
15900 as_fn_set_status $1
15901 exit $1
15902 } # as_fn_exit
15903
15904 # as_fn_unset VAR
15905 # ---------------
15906 # Portably unset VAR.
15907 as_fn_unset ()
15908 {
15909 { eval $1=; unset $1;}
15910 }
15911 as_unset=as_fn_unset
15912
15913 # as_fn_append VAR VALUE
15914 # ----------------------
15915 # Append the text in VALUE to the end of the definition contained in VAR. Take
15916 # advantage of any shell optimizations that allow amortized linear growth over
15917 # repeated appends, instead of the typical quadratic growth present in naive
15918 # implementations.
15919 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15920 then :
15921 eval 'as_fn_append ()
15922 {
15923 eval $1+=\$2
15924 }'
15925 else case e in #(
15926 e) as_fn_append ()
15927 {
15928 eval $1=\$$1\$2
15929 } ;;
15930 esac
15931 fi # as_fn_append
15932
15933 # as_fn_arith ARG...
15934 # ------------------
15935 # Perform arithmetic evaluation on the ARGs, and store the result in the
15936 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15937 # must be portable across $(()) and expr.
15938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15939 then :
15940 eval 'as_fn_arith ()
15941 {
15942 as_val=$(( $* ))
15943 }'
15944 else case e in #(
15945 e) as_fn_arith ()
15946 {
15947 as_val=`expr "$@" || test $? -eq 1`
15948 } ;;
15949 esac
15950 fi # as_fn_arith
15951
15952
15953 if expr a : '\(a\)' >/dev/null 2>&1 &&
15954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15955 as_expr=expr
15956 else
15957 as_expr=false
15958 fi
15959
15960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15961 as_basename=basename
15962 else
15963 as_basename=false
15964 fi
15965
15966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15967 as_dirname=dirname
15968 else
15969 as_dirname=false
15970 fi
15971
15972 as_me=`$as_basename -- "$0" ||
15973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15974 X"$0" : 'X\(//\)$' \| \
15975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15976 printf "%s\n" X/"$0" |
15977 sed '/^.*\/\([^/][^/]*\)\/*$/{
15978 s//\1/
15979 q
15980 }
15981 /^X\/\(\/\/\)$/{
15982 s//\1/
15983 q
15984 }
15985 /^X\/\(\/\).*/{
15986 s//\1/
15987 q
15988 }
15989 s/.*/./; q'`
15990
15991 # Avoid depending upon Character Ranges.
15992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15995 as_cr_digits='0123456789'
15996 as_cr_alnum=$as_cr_Letters$as_cr_digits
15997
15998
15999 # Determine whether it's possible to make 'echo' print without a newline.
16000 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16001 # for compatibility with existing Makefiles.
16002 ECHO_C= ECHO_N= ECHO_T=
16003 case `echo -n x` in #(((((
16004 -n*)
16005 case `echo 'xy\c'` in
16006 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16007 xy) ECHO_C='\c';;
16008 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16009 ECHO_T=' ';;
16010 esac;;
16011 *)
16012 ECHO_N='-n';;
16013 esac
16014
16015 # For backward compatibility with old third-party macros, we provide
16016 # the shell variables $as_echo and $as_echo_n. New code should use
16017 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16018 as_echo='printf %s\n'
16019 as_echo_n='printf %s'
16020
16021 rm -f conf$$ conf$$.exe conf$$.file
16022 if test -d conf$$.dir; then
16023 rm -f conf$$.dir/conf$$.file
16024 else
16025 rm -f conf$$.dir
16026 mkdir conf$$.dir 2>/dev/null
16027 fi
16028 if (echo >conf$$.file) 2>/dev/null; then
16029 if ln -s conf$$.file conf$$ 2>/dev/null; then
16030 as_ln_s='ln -s'
16031 # ... but there are two gotchas:
16032 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16033 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16034 # In both cases, we have to default to 'cp -pR'.
16035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16036 as_ln_s='cp -pR'
16037 elif ln conf$$.file conf$$ 2>/dev/null; then
16038 as_ln_s=ln
16039 else
16040 as_ln_s='cp -pR'
16041 fi
16042 else
16043 as_ln_s='cp -pR'
16044 fi
16045 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16046 rmdir conf$$.dir 2>/dev/null
16047
16048
16049 # as_fn_mkdir_p
16050 # -------------
16051 # Create "$as_dir" as a directory, including parents if necessary.
16052 as_fn_mkdir_p ()
16053 {
16054
16055 case $as_dir in #(
16056 -*) as_dir=./$as_dir;;
16057 esac
16058 test -d "$as_dir" || eval $as_mkdir_p || {
16059 as_dirs=
16060 while :; do
16061 case $as_dir in #(
16062 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16063 *) as_qdir=$as_dir;;
16064 esac
16065 as_dirs="'$as_qdir' $as_dirs"
16066 as_dir=`$as_dirname -- "$as_dir" ||
16067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16068 X"$as_dir" : 'X\(//\)[^/]' \| \
16069 X"$as_dir" : 'X\(//\)$' \| \
16070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16071 printf "%s\n" X"$as_dir" |
16072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16073 s//\1/
16074 q
16075 }
16076 /^X\(\/\/\)[^/].*/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\/\)$/{
16081 s//\1/
16082 q
16083 }
16084 /^X\(\/\).*/{
16085 s//\1/
16086 q
16087 }
16088 s/.*/./; q'`
16089 test -d "$as_dir" && break
16090 done
16091 test -z "$as_dirs" || eval "mkdir $as_dirs"
16092 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16093
16094
16095 } # as_fn_mkdir_p
16096 if mkdir -p . 2>/dev/null; then
16097 as_mkdir_p='mkdir -p "$as_dir"'
16098 else
16099 test -d ./-p && rmdir ./-p
16100 as_mkdir_p=false
16101 fi
16102
16103
16104 # as_fn_executable_p FILE
16105 # -----------------------
16106 # Test if FILE is an executable regular file.
16107 as_fn_executable_p ()
16108 {
16109 test -f "$1" && test -x "$1"
16110 } # as_fn_executable_p
16111 as_test_x='test -x'
16112 as_executable_p=as_fn_executable_p
16113
16114 # Sed expression to map a string onto a valid CPP name.
16115 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16116 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16117
16118 # Sed expression to map a string onto a valid variable name.
16119 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16120 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16121
16122
16123 exec 6>&1
16124 ## ----------------------------------- ##
16125 ## Main body of $CONFIG_STATUS script. ##
16126 ## ----------------------------------- ##
16127 _ASEOF
16128 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16129
16130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131 # Save the log message, to keep $0 and so on meaningful, and to
16132 # report actual input values of CONFIG_FILES etc. instead of their
16133 # values after options handling.
16134 ac_log="
16135 This file was extended by nasm $as_me 3.01, which was
16136 generated by GNU Autoconf 2.72. Invocation command line was
16137
16138 CONFIG_FILES = $CONFIG_FILES
16139 CONFIG_HEADERS = $CONFIG_HEADERS
16140 CONFIG_LINKS = $CONFIG_LINKS
16141 CONFIG_COMMANDS = $CONFIG_COMMANDS
16142 $ $0 $@
16143
16144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16145 "
16146
16147 _ACEOF
16148
16149 case $ac_config_files in *"
16150 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16151 esac
16152
16153 case $ac_config_headers in *"
16154 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16155 esac
16156
16157
16158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16159 # Files that config.status was made for.
16160 config_files="$ac_config_files"
16161 config_headers="$ac_config_headers"
16162
16163 _ACEOF
16164
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 ac_cs_usage="\
16167 '$as_me' instantiates files and other configuration actions
16168 from templates according to the current configuration. Unless the files
16169 and actions are specified as TAGs, all are instantiated by default.
16170
16171 Usage: $0 [OPTION]... [TAG]...
16172
16173 -h, --help print this help, then exit
16174 -V, --version print version number and configuration settings, then exit
16175 --config print configuration, then exit
16176 -q, --quiet, --silent
16177 do not print progress messages
16178 -d, --debug don't remove temporary files
16179 --recheck update $as_me by reconfiguring in the same conditions
16180 --file=FILE[:TEMPLATE]
16181 instantiate the configuration file FILE
16182 --header=FILE[:TEMPLATE]
16183 instantiate the configuration header FILE
16184
16185 Configuration files:
16186 $config_files
16187
16188 Configuration headers:
16189 $config_headers
16190
16191 Report bugs to <https://bugs.nasm.us/>.
16192 nasm home page: <https://www.nasm.us/>."
16193
16194 _ACEOF
16195 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16196 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16198 ac_cs_config='$ac_cs_config_escaped'
16199 ac_cs_version="\\
16200 nasm config.status 3.01
16201 configured by $0, generated by GNU Autoconf 2.72,
16202 with options \\"\$ac_cs_config\\"
16203
16204 Copyright (C) 2023 Free Software Foundation, Inc.
16205 This config.status script is free software; the Free Software Foundation
16206 gives unlimited permission to copy, distribute and modify it."
16207
16208 ac_pwd='$ac_pwd'
16209 srcdir='$srcdir'
16210 INSTALL='$INSTALL'
16211 MKDIR_P='$MKDIR_P'
16212 test -n "\$AWK" || AWK=awk
16213 _ACEOF
16214
16215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16216 # The default lists apply if the user does not specify any file.
16217 ac_need_defaults=:
16218 while test $# != 0
16219 do
16220 case $1 in
16221 --*=?*)
16222 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16223 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16224 ac_shift=:
16225 ;;
16226 --*=)
16227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16228 ac_optarg=
16229 ac_shift=:
16230 ;;
16231 *)
16232 ac_option=$1
16233 ac_optarg=$2
16234 ac_shift=shift
16235 ;;
16236 esac
16237
16238 case $ac_option in
16239 # Handling of the options.
16240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16241 ac_cs_recheck=: ;;
16242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16243 printf "%s\n" "$ac_cs_version"; exit ;;
16244 --config | --confi | --conf | --con | --co | --c )
16245 printf "%s\n" "$ac_cs_config"; exit ;;
16246 --debug | --debu | --deb | --de | --d | -d )
16247 debug=: ;;
16248 --file | --fil | --fi | --f )
16249 $ac_shift
16250 case $ac_optarg in
16251 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16252 '') as_fn_error $? "missing file argument" ;;
16253 esac
16254 as_fn_append CONFIG_FILES " '$ac_optarg'"
16255 ac_need_defaults=false;;
16256 --header | --heade | --head | --hea )
16257 $ac_shift
16258 case $ac_optarg in
16259 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16260 esac
16261 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16262 ac_need_defaults=false;;
16263 --he | --h)
16264 # Conflict between --help and --header
16265 as_fn_error $? "ambiguous option: '$1'
16266 Try '$0 --help' for more information.";;
16267 --help | --hel | -h )
16268 printf "%s\n" "$ac_cs_usage"; exit ;;
16269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16270 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16271 ac_cs_silent=: ;;
16272
16273 # This is an error.
16274 -*) as_fn_error $? "unrecognized option: '$1'
16275 Try '$0 --help' for more information." ;;
16276
16277 *) as_fn_append ac_config_targets " $1"
16278 ac_need_defaults=false ;;
16279
16280 esac
16281 shift
16282 done
16283
16284 ac_configure_extra_args=
16285
16286 if $ac_cs_silent; then
16287 exec 6>/dev/null
16288 ac_configure_extra_args="$ac_configure_extra_args --silent"
16289 fi
16290
16291 _ACEOF
16292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16293 if \$ac_cs_recheck; then
16294 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16295 shift
16296 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16297 CONFIG_SHELL='$SHELL'
16298 export CONFIG_SHELL
16299 exec "\$@"
16300 fi
16301
16302 _ACEOF
16303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16304 exec 5>>config.log
16305 {
16306 echo
16307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16308 ## Running $as_me. ##
16309 _ASBOX
16310 printf "%s\n" "$ac_log"
16311 } >&5
16312
16313 _ACEOF
16314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315 _ACEOF
16316
16317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16318
16319 # Handling of arguments.
16320 for ac_config_target in $ac_config_targets
16321 do
16322 case $ac_config_target in
16323 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
16324 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16325 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16326 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
16327 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16328
16329 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16330 esac
16331 done
16332
16333
16334 # If the user did not use the arguments to specify the items to instantiate,
16335 # then the envvar interface is used. Set only those that are not.
16336 # We use the long form for the default assignment because of an extremely
16337 # bizarre bug on SunOS 4.1.3.
16338 if $ac_need_defaults; then
16339 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16340 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16341 fi
16342
16343 # Have a temporary directory for convenience. Make it in the build tree
16344 # simply because there is no reason against having it here, and in addition,
16345 # creating and moving files from /tmp can sometimes cause problems.
16346 # Hook for its removal unless debugging.
16347 # Note that there is a small window in which the directory will not be cleaned:
16348 # after its creation but before its name has been assigned to '$tmp'.
16349 $debug ||
16350 {
16351 tmp= ac_tmp=
16352 trap 'exit_status=$?
16353 : "${ac_tmp:=$tmp}"
16354 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16355 ' 0
16356 trap 'as_fn_exit 1' 1 2 13 15
16357 }
16358 # Create a (secure) tmp directory for tmp files.
16359
16360 {
16361 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16362 test -d "$tmp"
16363 } ||
16364 {
16365 tmp=./conf$$-$RANDOM
16366 (umask 077 && mkdir "$tmp")
16367 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16368 ac_tmp=$tmp
16369
16370 # Set up the scripts for CONFIG_FILES section.
16371 # No need to generate them if there are no CONFIG_FILES.
16372 # This happens for instance with './config.status config.h'.
16373 if test -n "$CONFIG_FILES"; then
16374
16375
16376 ac_cr=`echo X | tr X '\015'`
16377 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16378 # But we know of no other shell where ac_cr would be empty at this
16379 # point, so we can use a bashism as a fallback.
16380 if test "x$ac_cr" = x; then
16381 eval ac_cr=\$\'\\r\'
16382 fi
16383 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16384 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16385 ac_cs_awk_cr='\\r'
16386 else
16387 ac_cs_awk_cr=$ac_cr
16388 fi
16389
16390 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16391 _ACEOF
16392
16393
16394 {
16395 echo "cat >conf$$subs.awk <<_ACEOF" &&
16396 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16397 echo "_ACEOF"
16398 } >conf$$subs.sh ||
16399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16400 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16401 ac_delim='%!_!# '
16402 for ac_last_try in false false false false false :; do
16403 . ./conf$$subs.sh ||
16404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16405
16406 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16407 if test $ac_delim_n = $ac_delim_num; then
16408 break
16409 elif $ac_last_try; then
16410 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16411 else
16412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16413 fi
16414 done
16415 rm -f conf$$subs.sh
16416
16417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16418 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16419 _ACEOF
16420 sed -n '
16421 h
16422 s/^/S["/; s/!.*/"]=/
16423 p
16424 g
16425 s/^[^!]*!//
16426 :repl
16427 t repl
16428 s/'"$ac_delim"'$//
16429 t delim
16430 :nl
16431 h
16432 s/\(.\{148\}\)..*/\1/
16433 t more1
16434 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16435 p
16436 n
16437 b repl
16438 :more1
16439 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16440 p
16441 g
16442 s/.\{148\}//
16443 t nl
16444 :delim
16445 h
16446 s/\(.\{148\}\)..*/\1/
16447 t more2
16448 s/["\\]/\\&/g; s/^/"/; s/$/"/
16449 p
16450 b
16451 :more2
16452 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16453 p
16454 g
16455 s/.\{148\}//
16456 t delim
16457 ' <conf$$subs.awk | sed '
16458 /^[^""]/{
16459 N
16460 s/\n//
16461 }
16462 ' >>$CONFIG_STATUS || ac_write_fail=1
16463 rm -f conf$$subs.awk
16464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16465 _ACAWK
16466 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16467 for (key in S) S_is_set[key] = 1
16468 FS = ""
16469
16470 }
16471 {
16472 line = $ 0
16473 nfields = split(line, field, "@")
16474 substed = 0
16475 len = length(field[1])
16476 for (i = 2; i < nfields; i++) {
16477 key = field[i]
16478 keylen = length(key)
16479 if (S_is_set[key]) {
16480 value = S[key]
16481 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16482 len += length(value) + length(field[++i])
16483 substed = 1
16484 } else
16485 len += 1 + keylen
16486 }
16487
16488 print line
16489 }
16490
16491 _ACAWK
16492 _ACEOF
16493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16494 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16495 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16496 else
16497 cat
16498 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16499 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16500 _ACEOF
16501
16502 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16503 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16504 # trailing colons and then remove the whole line if VPATH becomes empty
16505 # (actually we leave an empty line to preserve line numbers).
16506 if test "x$srcdir" = x.; then
16507 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16508 h
16509 s///
16510 s/^/:/
16511 s/[ ]*$/:/
16512 s/:\$(srcdir):/:/g
16513 s/:\${srcdir}:/:/g
16514 s/:@srcdir@:/:/g
16515 s/^:*//
16516 s/:*$//
16517 x
16518 s/\(=[ ]*\).*/\1/
16519 G
16520 s/\n//
16521 s/^[^=]*=[ ]*$//
16522 }'
16523 fi
16524
16525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16526 fi # test -n "$CONFIG_FILES"
16527
16528 # Set up the scripts for CONFIG_HEADERS section.
16529 # No need to generate them if there are no CONFIG_HEADERS.
16530 # This happens for instance with './config.status Makefile'.
16531 if test -n "$CONFIG_HEADERS"; then
16532 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16533 BEGIN {
16534 _ACEOF
16535
16536 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16537 # here-document in config.status, that substitutes the proper values into
16538 # config.h.in to produce config.h.
16539
16540 # Create a delimiter string that does not exist in confdefs.h, to ease
16541 # handling of long lines.
16542 ac_delim='%!_!# '
16543 for ac_last_try in false false :; do
16544 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16545 if test -z "$ac_tt"; then
16546 break
16547 elif $ac_last_try; then
16548 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16549 else
16550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16551 fi
16552 done
16553
16554 # For the awk script, D is an array of macro values keyed by name,
16555 # likewise P contains macro parameters if any. Preserve backslash
16556 # newline sequences.
16557
16558 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16559 sed -n '
16560 s/.\{148\}/&'"$ac_delim"'/g
16561 t rset
16562 :rset
16563 s/^[ ]*#[ ]*define[ ][ ]*/ /
16564 t def
16565 d
16566 :def
16567 s/\\$//
16568 t bsnl
16569 s/["\\]/\\&/g
16570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16571 D["\1"]=" \3"/p
16572 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16573 d
16574 :bsnl
16575 s/["\\]/\\&/g
16576 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16577 D["\1"]=" \3\\\\\\n"\\/p
16578 t cont
16579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16580 t cont
16581 d
16582 :cont
16583 n
16584 s/.\{148\}/&'"$ac_delim"'/g
16585 t clear
16586 :clear
16587 s/\\$//
16588 t bsnlc
16589 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16590 d
16591 :bsnlc
16592 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16593 b cont
16594 ' <confdefs.h | sed '
16595 s/'"$ac_delim"'/"\\\
16596 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16597
16598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16599 for (key in D) D_is_set[key] = 1
16600 FS = ""
16601 }
16602 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16603 line = \$ 0
16604 split(line, arg, " ")
16605 if (arg[1] == "#") {
16606 defundef = arg[2]
16607 mac1 = arg[3]
16608 } else {
16609 defundef = substr(arg[1], 2)
16610 mac1 = arg[2]
16611 }
16612 split(mac1, mac2, "(") #)
16613 macro = mac2[1]
16614 prefix = substr(line, 1, index(line, defundef) - 1)
16615 if (D_is_set[macro]) {
16616 # Preserve the white space surrounding the "#".
16617 print prefix "define", macro P[macro] D[macro]
16618 next
16619 } else {
16620 # Replace #undef with comments. This is necessary, for example,
16621 # in the case of _POSIX_SOURCE, which is predefined and required
16622 # on some systems where configure will not decide to define it.
16623 if (defundef == "undef") {
16624 print "/*", prefix defundef, macro, "*/"
16625 next
16626 }
16627 }
16628 }
16629 { print }
16630 _ACAWK
16631 _ACEOF
16632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16633 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16634 fi # test -n "$CONFIG_HEADERS"
16635
16636
16637 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16638 shift
16639 for ac_tag
16640 do
16641 case $ac_tag in
16642 :[FHLC]) ac_mode=$ac_tag; continue;;
16643 esac
16644 case $ac_mode$ac_tag in
16645 :[FHL]*:*);;
16646 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16647 :[FH]-) ac_tag=-:-;;
16648 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16649 esac
16650 ac_save_IFS=$IFS
16651 IFS=:
16652 set x $ac_tag
16653 IFS=$ac_save_IFS
16654 shift
16655 ac_file=$1
16656 shift
16657
16658 case $ac_mode in
16659 :L) ac_source=$1;;
16660 :[FH])
16661 ac_file_inputs=
16662 for ac_f
16663 do
16664 case $ac_f in
16665 -) ac_f="$ac_tmp/stdin";;
16666 *) # Look for the file first in the build tree, then in the source tree
16667 # (if the path is not absolute). The absolute path cannot be DOS-style,
16668 # because $ac_f cannot contain ':'.
16669 test -f "$ac_f" ||
16670 case $ac_f in
16671 [\\/$]*) false;;
16672 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16673 esac ||
16674 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16675 esac
16676 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16677 as_fn_append ac_file_inputs " '$ac_f'"
16678 done
16679
16680 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16681 # use $as_me), people would be surprised to read:
16682 # /* config.h. Generated by config.status. */
16683 configure_input='Generated from '`
16684 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16685 `' by configure.'
16686 if test x"$ac_file" != x-; then
16687 configure_input="$ac_file. $configure_input"
16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16689 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16690 fi
16691 # Neutralize special characters interpreted by sed in replacement strings.
16692 case $configure_input in #(
16693 *\&* | *\|* | *\\* )
16694 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16695 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16696 *) ac_sed_conf_input=$configure_input;;
16697 esac
16698
16699 case $ac_tag in
16700 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16702 esac
16703 ;;
16704 esac
16705
16706 ac_dir=`$as_dirname -- "$ac_file" ||
16707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16708 X"$ac_file" : 'X\(//\)[^/]' \| \
16709 X"$ac_file" : 'X\(//\)$' \| \
16710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16711 printf "%s\n" X"$ac_file" |
16712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16713 s//\1/
16714 q
16715 }
16716 /^X\(\/\/\)[^/].*/{
16717 s//\1/
16718 q
16719 }
16720 /^X\(\/\/\)$/{
16721 s//\1/
16722 q
16723 }
16724 /^X\(\/\).*/{
16725 s//\1/
16726 q
16727 }
16728 s/.*/./; q'`
16729 as_dir="$ac_dir"; as_fn_mkdir_p
16730 ac_builddir=.
16731
16732 case "$ac_dir" in
16733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16734 *)
16735 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16736 # A ".." for each directory in $ac_dir_suffix.
16737 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16738 case $ac_top_builddir_sub in
16739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16741 esac ;;
16742 esac
16743 ac_abs_top_builddir=$ac_pwd
16744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16745 # for backward compatibility:
16746 ac_top_builddir=$ac_top_build_prefix
16747
16748 case $srcdir in
16749 .) # We are building in place.
16750 ac_srcdir=.
16751 ac_top_srcdir=$ac_top_builddir_sub
16752 ac_abs_top_srcdir=$ac_pwd ;;
16753 [\\/]* | ?:[\\/]* ) # Absolute name.
16754 ac_srcdir=$srcdir$ac_dir_suffix;
16755 ac_top_srcdir=$srcdir
16756 ac_abs_top_srcdir=$srcdir ;;
16757 *) # Relative name.
16758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16759 ac_top_srcdir=$ac_top_build_prefix$srcdir
16760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16761 esac
16762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16763
16764
16765 case $ac_mode in
16766 :F)
16767 #
16768 # CONFIG_FILE
16769 #
16770
16771 case $INSTALL in
16772 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16773 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16774 esac
16775 ac_MKDIR_P=$MKDIR_P
16776 case $MKDIR_P in
16777 [\\/$]* | ?:[\\/]* ) ;;
16778 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16779 esac
16780 _ACEOF
16781
16782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16783 # If the template does not know about datarootdir, expand it.
16784 # FIXME: This hack should be removed a few years after 2.60.
16785 ac_datarootdir_hack=; ac_datarootdir_seen=
16786 ac_sed_dataroot='
16787 /datarootdir/ {
16788 p
16789 q
16790 }
16791 /@datadir@/p
16792 /@docdir@/p
16793 /@infodir@/p
16794 /@localedir@/p
16795 /@mandir@/p'
16796 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16797 *datarootdir*) ac_datarootdir_seen=yes;;
16798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16800 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16801 _ACEOF
16802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16803 ac_datarootdir_hack='
16804 s&@datadir@&$datadir&g
16805 s&@docdir@&$docdir&g
16806 s&@infodir@&$infodir&g
16807 s&@localedir@&$localedir&g
16808 s&@mandir@&$mandir&g
16809 s&\\\${datarootdir}&$datarootdir&g' ;;
16810 esac
16811 _ACEOF
16812
16813 # Neutralize VPATH when '$srcdir' = '.'.
16814 # Shell code in configure.ac might set extrasub.
16815 # FIXME: do we really want to maintain this feature?
16816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16817 ac_sed_extra="$ac_vpsub
16818 $extrasub
16819 _ACEOF
16820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16821 :t
16822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16823 s|@configure_input@|$ac_sed_conf_input|;t t
16824 s&@top_builddir@&$ac_top_builddir_sub&;t t
16825 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16826 s&@srcdir@&$ac_srcdir&;t t
16827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16828 s&@top_srcdir@&$ac_top_srcdir&;t t
16829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16830 s&@builddir@&$ac_builddir&;t t
16831 s&@abs_builddir@&$ac_abs_builddir&;t t
16832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16833 s&@INSTALL@&$ac_INSTALL&;t t
16834 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16835 $ac_datarootdir_hack
16836 "
16837 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16838 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16839
16840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16841 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16842 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16843 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16845 which seems to be undefined. Please make sure it is defined" >&5
16846 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16847 which seems to be undefined. Please make sure it is defined" >&2;}
16848
16849 rm -f "$ac_tmp/stdin"
16850 case $ac_file in
16851 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16852 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16853 esac \
16854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16855 ;;
16856 :H)
16857 #
16858 # CONFIG_HEADER
16859 #
16860 if test x"$ac_file" != x-; then
16861 {
16862 printf "%s\n" "/* $configure_input */" >&1 \
16863 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16864 } >"$ac_tmp/config.h" \
16865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16866 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16868 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16869 else
16870 rm -f "$ac_file"
16871 mv "$ac_tmp/config.h" "$ac_file" \
16872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16873 fi
16874 else
16875 printf "%s\n" "/* $configure_input */" >&1 \
16876 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16877 || as_fn_error $? "could not create -" "$LINENO" 5
16878 fi
16879 ;;
16880
16881
16882 esac
16883
16884 done # for ac_tag
16885
16886
16887 as_fn_exit 0
16888 _ACEOF
16889 ac_clean_files=$ac_clean_files_save
16890
16891 test $ac_write_fail = 0 ||
16892 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16893
16894
16895 # configure is writing to config.log, and then calls config.status.
16896 # config.status does its own redirection, appending to config.log.
16897 # Unfortunately, on DOS this fails, as config.log is still kept open
16898 # by configure, so config.status won't be able to write to it; its
16899 # output is simply discarded. So we exec the FD to /dev/null,
16900 # effectively closing config.log, so it can be properly (re)opened and
16901 # appended to by config.status. When coming back to configure, we
16902 # need to make the FD available again.
16903 if test "$no_create" != yes; then
16904 ac_cs_success=:
16905 ac_config_status_args=
16906 test "$silent" = yes &&
16907 ac_config_status_args="$ac_config_status_args --quiet"
16908 exec 5>/dev/null
16909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16910 exec 5>>config.log
16911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16912 # would make configure fail if this is the last instruction.
16913 $ac_cs_success || as_fn_exit 1
16914 fi
16915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16917 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16918 fi
16919
16920