aboutsummaryrefslogtreecommitdiffstats
path: root/exec
diff options
context:
space:
mode:
authorPo Lu2023-05-01 08:15:48 +0800
committerPo Lu2023-05-01 08:15:48 +0800
commit9a7c645dd4ef38b72787e932d444a61ed4e04c63 (patch)
tree9f2417c4bdda9751f01b943c2f60302cc6149484 /exec
parent368f6f3942a1f8b9483763a6ac24b3b3021e92bf (diff)
downloademacs-9a7c645dd4ef38b72787e932d444a61ed4e04c63.tar.gz
emacs-9a7c645dd4ef38b72787e932d444a61ed4e04c63.zip
Remove exec/configure
* exec/configure: Remove file. * .gitignore: Add exec/configure.
Diffstat (limited to 'exec')
-rwxr-xr-xexec/configure6940
1 files changed, 0 insertions, 6940 deletions
diff --git a/exec/configure b/exec/configure
deleted file mode 100755
index 5074fa2570a..00000000000
--- a/exec/configure
+++ /dev/null
@@ -1,6940 +0,0 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libexec 30.0.50.
4#
5# Report bugs to <bug-gnu-emacs@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
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.
47as_nl='
48'
49export as_nl
50IFS=" "" $as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export 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).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${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 }
84fi
85
86
87# Find who we are. Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if 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
114fi
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.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $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'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158esac
159fi
160"
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev/null
187then :
188 as_have_required=yes
189else $as_nop
190 as_have_required=no
191fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193then :
194
195else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197as_found=false
198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217then :
218 break 2
219fi
220fi
221 done;;
222 esac
223 as_found=false
224done
225IFS=$as_save_IFS
226if $as_found
227then :
228
229else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi
235fi
236
237
238 if test "x$CONFIG_SHELL" != x
239then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261 if test x$as_have_required = xno
262then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270$0: bug-gnu-emacs@gnu.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303 return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315# as_fn_nop
316# ---------
317# Do nothing but, unlike ":", preserve the value of $?.
318as_fn_nop ()
319{
320 return $?
321}
322as_nop=as_fn_nop
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377 test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414fi # as_fn_arith
415
416# as_fn_nop
417# ---------
418# Do nothing but, unlike ":", preserve the value of $?.
419as_fn_nop ()
420{
421 return $?
422}
423as_nop=as_fn_nop
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444else
445 as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450else
451 as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456else
457 as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520}
521
522
523# Determine whether it's possible to make 'echo' print without a newline.
524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525# for compatibility with existing Makefiles.
526ECHO_C= ECHO_N= ECHO_T=
527case `echo -n x` in #(((((
528-n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535*)
536 ECHO_N='-n';;
537esac
538
539# For backward compatibility with old third-party macros, we provide
540# the shell variables $as_echo and $as_echo_n. New code should use
541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542as_echo='printf %s\n'
543as_echo_n='printf %s'
544
545
546rm -f conf$$ conf$$.exe conf$$.file
547if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552fi
553if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567else
568 as_ln_s='cp -pR'
569fi
570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571rmdir conf$$.dir 2>/dev/null
572
573if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578fi
579
580as_test_x='test -x'
581as_executable_p=as_fn_executable_p
582
583# Sed expression to map a string onto a valid CPP name.
584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585
586# Sed expression to map a string onto a valid variable name.
587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588
589
590test -n "$DJDIR" || exec 7<&0 </dev/null
591exec 6>&1
592
593# Name of the host.
594# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595# so uname gets run too.
596ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597
598#
599# Initializations.
600#
601ac_default_prefix=/usr/local
602ac_clean_files=
603ac_config_libobj_dir=.
604LIBOBJS=
605cross_compiling=no
606subdirs=
607MFLAGS=
608MAKEFLAGS=
609
610# Identity of this package.
611PACKAGE_NAME='libexec'
612PACKAGE_TARNAME='libexec'
613PACKAGE_VERSION='30.0.50'
614PACKAGE_STRING='libexec 30.0.50'
615PACKAGE_BUGREPORT='bug-gnu-emacs@gnu.org'
616PACKAGE_URL='https://www.gnu.org/software/emacs/'
617
618# Factoring default headers for most tests.
619ac_includes_default="\
620#include <stddef.h>
621#ifdef HAVE_STDIO_H
622# include <stdio.h>
623#endif
624#ifdef HAVE_STDLIB_H
625# include <stdlib.h>
626#endif
627#ifdef HAVE_STRING_H
628# include <string.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_STRINGS_H
637# include <strings.h>
638#endif
639#ifdef HAVE_SYS_TYPES_H
640# include <sys/types.h>
641#endif
642#ifdef HAVE_SYS_STAT_H
643# include <sys/stat.h>
644#endif
645#ifdef HAVE_UNISTD_H
646# include <unistd.h>
647#endif"
648
649ac_header_c_list=
650ac_subst_vars='LTLIBOBJS
651LIBOBJS
652OBJS
653MIPS_N32
654exec_loader
655AUTO_DEPEND
656FIND_DELETE
657ASFLAGS
658ARFLAGS
659LOADERFLAGS
660AR
661LD
662AS
663M4
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672INSTALL_DATA
673INSTALL_SCRIPT
674INSTALL_PROGRAM
675CPP
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683target_alias
684host_alias
685build_alias
686LIBS
687ECHO_T
688ECHO_N
689ECHO_C
690DEFS
691mandir
692localedir
693libdir
694psdir
695pdfdir
696dvidir
697htmldir
698infodir
699docdir
700oldincludedir
701includedir
702runstatedir
703localstatedir
704sharedstatedir
705sysconfdir
706datadir
707datarootdir
708libexecdir
709sbindir
710bindir
711program_transform_name
712prefix
713exec_prefix
714PACKAGE_URL
715PACKAGE_BUGREPORT
716PACKAGE_STRING
717PACKAGE_VERSION
718PACKAGE_TARNAME
719PACKAGE_NAME
720PATH_SEPARATOR
721SHELL'
722ac_subst_files=''
723ac_user_opts='
724enable_option_checking
725'
726 ac_precious_vars='build_alias
727host_alias
728target_alias
729CC
730CFLAGS
731LDFLAGS
732LIBS
733CPPFLAGS
734CPP
735M4
736AS
737LD
738LOADERFLAGS
739ARFLAGS
740ASFLAGS'
741
742
743# Initialize some variables set by options.
744ac_init_help=
745ac_init_version=false
746ac_unrecognized_opts=
747ac_unrecognized_sep=
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
770# (The list follows the same order as the GNU Coding Standards.)
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
779runstatedir='${localstatedir}/run'
780includedir='${prefix}/include'
781oldincludedir='/usr/include'
782docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
783infodir='${datarootdir}/info'
784htmldir='${docdir}'
785dvidir='${docdir}'
786pdfdir='${docdir}'
787psdir='${docdir}'
788libdir='${exec_prefix}/lib'
789localedir='${datarootdir}/locale'
790mandir='${datarootdir}/man'
791
792ac_prev=
793ac_dashdash=
794for ac_option
795do
796 # If the previous option needs an argument, assign it.
797 if test -n "$ac_prev"; then
798 eval $ac_prev=\$ac_option
799 ac_prev=
800 continue
801 fi
802
803 case $ac_option in
804 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 *=) ac_optarg= ;;
806 *) ac_optarg=yes ;;
807 esac
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error $? "invalid feature name: \`$ac_useropt'"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
853 *"
854"enable_$ac_useropt"
855"*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
858 esac
859 eval enable_$ac_useropt=no ;;
860
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
865
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
870
871 -enable-* | --enable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: \`$ac_useropt'"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880"enable_$ac_useropt"
881"*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=\$ac_optarg ;;
886
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
895
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
899
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
906
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
911
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
917
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
924
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
929
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
934
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
941
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
946
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
953
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
958
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
962
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
966
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
970
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
979
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
984
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
991
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
998
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1015
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1020
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1025
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1029
1030 -runstatedir | --runstatedir | --runstatedi | --runstated \
1031 | --runstate | --runstat | --runsta | --runst | --runs \
1032 | --run | --ru | --r)
1033 ac_prev=runstatedir ;;
1034 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1035 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1036 | --run=* | --ru=* | --r=*)
1037 runstatedir=$ac_optarg ;;
1038
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040 ac_prev=sbindir ;;
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042 | --sbi=* | --sb=*)
1043 sbindir=$ac_optarg ;;
1044
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1048 | --sha | --sh)
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053 | --sha=* | --sh=*)
1054 sharedstatedir=$ac_optarg ;;
1055
1056 -site | --site | --sit)
1057 ac_prev=site ;;
1058 -site=* | --site=* | --sit=*)
1059 site=$ac_optarg ;;
1060
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062 ac_prev=srcdir ;;
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1065
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1072
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1077
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 verbose=yes ;;
1080
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1083
1084 -with-* | --with-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid package name: \`$ac_useropt'"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093"with_$ac_useropt"
1094"*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=\$ac_optarg ;;
1099
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: \`$ac_useropt'"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1108 *"
1109"with_$ac_useropt"
1110"*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=no ;;
1115
1116 --x)
1117 # Obsolete; use --with-x.
1118 with_x=yes ;;
1119
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1126
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1133
1134 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135Try \`$0 --help' for more information"
1136 ;;
1137
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144 esac
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1147
1148 *)
1149 # FIXME: should be removed in autoconf 3.0.
1150 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154 ;;
1155
1156 esac
1157done
1158
1159if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error $? "missing argument to $ac_option"
1162fi
1163
1164if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1166 no) ;;
1167 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 esac
1170fi
1171
1172# Check all directory arguments for consistency.
1173for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir runstatedir
1177do
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1180 case $ac_val in
1181 */ )
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1184 esac
1185 # Be sure to have absolute directory names.
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191done
1192
1193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
1199
1200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1206 fi
1207fi
1208
1209ac_tool_prefix=
1210test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212test "$silent" = yes && exec 6>/dev/null
1213
1214
1215ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216ac_ls_di=`ls -di .` &&
1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error $? "working directory cannot be determined"
1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error $? "pwd does not report name of working directory"
1221
1222
1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232printf "%s\n" X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\).*/{
1246 s//\1/
1247 q
1248 }
1249 s/.*/./; q'`
1250 srcdir=$ac_confdir
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 srcdir=..
1253 fi
1254else
1255 ac_srcdir_defaulted=no
1256fi
1257if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260fi
1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264 pwd)`
1265# When building in place, set srcdir=.
1266if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1268fi
1269# Remove unnecessary trailing slashes from srcdir.
1270# Double slashes in file names in object file debugging info
1271# mess up M-x gdb in Emacs.
1272case $srcdir in
1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274esac
1275for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280done
1281
1282#
1283# Report the --help message.
1284#
1285if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
1289\`configure' configures libexec 30.0.50 to adapt to many kinds of systems.
1290
1291Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294VAR=VALUE. See below for descriptions of some of the useful variables.
1295
1296Defaults for the options are specified in brackets.
1297
1298Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking ...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308
1309Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 [PREFIX]
1314
1315By default, \`make install' will install all the files in
1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318for instance \`--prefix=\$HOME'.
1319
1320For better control, use the options below.
1321
1322Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/libexec]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343_ACEOF
1344
1345 cat <<\_ACEOF
1346
1347System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350_ACEOF
1351fi
1352
1353if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of libexec 30.0.50:";;
1356 esac
1357 cat <<\_ACEOF
1358
1359Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1367 CPP C preprocessor
1368 M4 `m4' preprocessor command.
1369 AS `as' assembler command.
1370 LD `ld' linker command.
1371 LOADERFLAGS Flags used to link the loader.
1372 ARFLAGS Flags for the archiver.
1373 ASFLAGS Flags for the assembler.
1374
1375Use these variables to override the choices made by `configure' or to help
1376it to find libraries and programs with nonstandard names/locations.
1377
1378Report bugs to <bug-gnu-emacs@gnu.org>.
1379libexec home page: <https://www.gnu.org/software/emacs/>.
1380_ACEOF
1381ac_status=$?
1382fi
1383
1384if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" ||
1388 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1389 continue
1390 ac_builddir=.
1391
1392case "$ac_dir" in
1393.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394*)
1395 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 esac ;;
1402esac
1403ac_abs_top_builddir=$ac_pwd
1404ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405# for backward compatibility:
1406ac_top_builddir=$ac_top_build_prefix
1407
1408case $srcdir in
1409 .) # We are building in place.
1410 ac_srcdir=.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1417 *) # Relative name.
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421esac
1422ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for configure.gnu first; this name is used for a wrapper for
1426 # Metaconfig's "Configure" on case-insensitive file systems.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1438fi
1439
1440test -n "$ac_init_help" && exit $ac_status
1441if $ac_init_version; then
1442 cat <<\_ACEOF
1443libexec configure 30.0.50
1444generated by GNU Autoconf 2.71
1445
1446Copyright (C) 2021 Free Software Foundation, Inc.
1447This configure script is free software; the Free Software Foundation
1448gives unlimited permission to copy, distribute and modify it.
1449_ACEOF
1450 exit
1451fi
1452
1453## ------------------------ ##
1454## Autoconf initialization. ##
1455## ------------------------ ##
1456
1457# ac_fn_c_try_compile LINENO
1458# --------------------------
1459# Try to compile conftest.$ac_ext, and return whether this succeeded.
1460ac_fn_c_try_compile ()
1461{
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 rm -f conftest.$ac_objext conftest.beam
1464 if { { ac_try="$ac_compile"
1465case "(($ac_try" in
1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467 *) ac_try_echo=$ac_try;;
1468esac
1469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470printf "%s\n" "$ac_try_echo"; } >&5
1471 (eval "$ac_compile") 2>conftest.err
1472 ac_status=$?
1473 if test -s conftest.err; then
1474 grep -v '^ *+' conftest.err >conftest.er1
1475 cat conftest.er1 >&5
1476 mv -f conftest.er1 conftest.err
1477 fi
1478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && {
1480 test -z "$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1482 } && test -s conftest.$ac_objext
1483then :
1484 ac_retval=0
1485else $as_nop
1486 printf "%s\n" "$as_me: failed program was:" >&5
1487sed 's/^/| /' conftest.$ac_ext >&5
1488
1489 ac_retval=1
1490fi
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492 as_fn_set_status $ac_retval
1493
1494} # ac_fn_c_try_compile
1495
1496# ac_fn_c_try_cpp LINENO
1497# ----------------------
1498# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1499ac_fn_c_try_cpp ()
1500{
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 if { { ac_try="$ac_cpp conftest.$ac_ext"
1503case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508printf "%s\n" "$ac_try_echo"; } >&5
1509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } > conftest.i && {
1518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 }
1521then :
1522 ac_retval=0
1523else $as_nop
1524 printf "%s\n" "$as_me: failed program was:" >&5
1525sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528fi
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1531
1532} # ac_fn_c_try_cpp
1533
1534# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1535# -------------------------------------------------------
1536# Tests whether HEADER exists and can be compiled using the include files in
1537# INCLUDES, setting the cache variable VAR accordingly.
1538ac_fn_c_check_header_compile ()
1539{
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1542printf %s "checking for $2... " >&6; }
1543if eval test \${$3+y}
1544then :
1545 printf %s "(cached) " >&6
1546else $as_nop
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548/* end confdefs.h. */
1549$4
1550#include <$2>
1551_ACEOF
1552if ac_fn_c_try_compile "$LINENO"
1553then :
1554 eval "$3=yes"
1555else $as_nop
1556 eval "$3=no"
1557fi
1558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1559fi
1560eval ac_res=\$$3
1561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1562printf "%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_find_uintX_t LINENO BITS VAR
1568# ------------------------------------
1569# Finds an unsigned integer type with width BITS, setting cache variable VAR
1570# accordingly.
1571ac_fn_c_find_uintX_t ()
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1575printf %s "checking for uint$2_t... " >&6; }
1576if eval test \${$3+y}
1577then :
1578 printf %s "(cached) " >&6
1579else $as_nop
1580 eval "$3=no"
1581 # Order is important - never check a type that is potentially smaller
1582 # than half of the expected target width.
1583 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1584 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586/* end confdefs.h. */
1587$ac_includes_default
1588int
1589main (void)
1590{
1591static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1592test_array [0] = 0;
1593return test_array [0];
1594
1595 ;
1596 return 0;
1597}
1598_ACEOF
1599if ac_fn_c_try_compile "$LINENO"
1600then :
1601 case $ac_type in #(
1602 uint$2_t) :
1603 eval "$3=yes" ;; #(
1604 *) :
1605 eval "$3=\$ac_type" ;;
1606esac
1607fi
1608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1609 if eval test \"x\$"$3"\" = x"no"
1610then :
1611
1612else $as_nop
1613 break
1614fi
1615 done
1616fi
1617eval ac_res=\$$3
1618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619printf "%s\n" "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621
1622} # ac_fn_c_find_uintX_t
1623
1624# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1625# -------------------------------------------
1626# Tests whether TYPE exists after having included INCLUDES, setting cache
1627# variable VAR accordingly.
1628ac_fn_c_check_type ()
1629{
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632printf %s "checking for $2... " >&6; }
1633if eval test \${$3+y}
1634then :
1635 printf %s "(cached) " >&6
1636else $as_nop
1637 eval "$3=no"
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h. */
1640$4
1641int
1642main (void)
1643{
1644if (sizeof ($2))
1645 return 0;
1646 ;
1647 return 0;
1648}
1649_ACEOF
1650if ac_fn_c_try_compile "$LINENO"
1651then :
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654$4
1655int
1656main (void)
1657{
1658if (sizeof (($2)))
1659 return 0;
1660 ;
1661 return 0;
1662}
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"
1665then :
1666
1667else $as_nop
1668 eval "$3=yes"
1669fi
1670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1671fi
1672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1673fi
1674eval ac_res=\$$3
1675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676printf "%s\n" "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679} # ac_fn_c_check_type
1680
1681# ac_fn_c_try_link LINENO
1682# -----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_link ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694printf "%s\n" "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 test -x conftest$ac_exeext
1709 }
1710then :
1711 ac_retval=0
1712else $as_nop
1713 printf "%s\n" "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_link
1727
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735printf %s "checking for $2... " >&6; }
1736if eval test \${$3+y}
1737then :
1738 printf %s "(cached) " >&6
1739else $as_nop
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h. */
1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1744#define $2 innocuous_$2
1745
1746/* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char $2 (); below. */
1748
1749#include <limits.h>
1750#undef $2
1751
1752/* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755#ifdef __cplusplus
1756extern "C"
1757#endif
1758char $2 ();
1759/* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762#if defined __stub_$2 || defined __stub___$2
1763choke me
1764#endif
1765
1766int
1767main (void)
1768{
1769return $2 ();
1770 ;
1771 return 0;
1772}
1773_ACEOF
1774if ac_fn_c_try_link "$LINENO"
1775then :
1776 eval "$3=yes"
1777else $as_nop
1778 eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext conftest.beam \
1781 conftest$ac_exeext conftest.$ac_ext
1782fi
1783eval ac_res=\$$3
1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785printf "%s\n" "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788} # ac_fn_c_check_func
1789
1790# ac_fn_c_try_run LINENO
1791# ----------------------
1792# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1793# executables *can* be run.
1794ac_fn_c_try_run ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_link"
1798case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803printf "%s\n" "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>&5
1805 ac_status=$?
1806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808 { { case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813printf "%s\n" "$ac_try_echo"; } >&5
1814 (eval "$ac_try") 2>&5
1815 ac_status=$?
1816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; }; }
1818then :
1819 ac_retval=0
1820else $as_nop
1821 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1822 printf "%s\n" "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=$ac_status
1826fi
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_run
1832
1833# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1834# ----------------------------------------------------
1835# Tries to find if the field MEMBER exists in type AGGR, after including
1836# INCLUDES, setting cache variable VAR accordingly.
1837ac_fn_c_check_member ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1841printf %s "checking for $2.$3... " >&6; }
1842if eval test \${$4+y}
1843then :
1844 printf %s "(cached) " >&6
1845else $as_nop
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$5
1849int
1850main (void)
1851{
1852static $2 ac_aggr;
1853if (ac_aggr.$3)
1854return 0;
1855 ;
1856 return 0;
1857}
1858_ACEOF
1859if ac_fn_c_try_compile "$LINENO"
1860then :
1861 eval "$4=yes"
1862else $as_nop
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$5
1866int
1867main (void)
1868{
1869static $2 ac_aggr;
1870if (sizeof ac_aggr.$3)
1871return 0;
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"
1877then :
1878 eval "$4=yes"
1879else $as_nop
1880 eval "$4=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1885fi
1886eval ac_res=\$$4
1887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888printf "%s\n" "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_member
1892
1893# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1894# ------------------------------------------------------------------
1895# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1896# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1897ac_fn_check_decl ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 as_decl_name=`echo $2|sed 's/ *(.*//'`
1901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1902printf %s "checking whether $as_decl_name is declared... " >&6; }
1903if eval test \${$3+y}
1904then :
1905 printf %s "(cached) " >&6
1906else $as_nop
1907 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1908 eval ac_save_FLAGS=\$$6
1909 as_fn_append $6 " $5"
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$4
1913int
1914main (void)
1915{
1916#ifndef $as_decl_name
1917#ifdef __cplusplus
1918 (void) $as_decl_use;
1919#else
1920 (void) $as_decl_name;
1921#endif
1922#endif
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"
1929then :
1930 eval "$3=yes"
1931else $as_nop
1932 eval "$3=no"
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1935 eval $6=\$ac_save_FLAGS
1936
1937fi
1938eval ac_res=\$$3
1939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940printf "%s\n" "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943} # ac_fn_check_decl
1944ac_configure_args_raw=
1945for ac_arg
1946do
1947 case $ac_arg in
1948 *\'*)
1949 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 esac
1951 as_fn_append ac_configure_args_raw " '$ac_arg'"
1952done
1953
1954case $ac_configure_args_raw in
1955 *$as_nl*)
1956 ac_safe_unquote= ;;
1957 *)
1958 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1959 ac_unsafe_a="$ac_unsafe_z#~"
1960 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1961 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1962esac
1963
1964cat >config.log <<_ACEOF
1965This file contains any messages produced by compilers while
1966running configure, to aid debugging if configure makes a mistake.
1967
1968It was created by libexec $as_me 30.0.50, which was
1969generated by GNU Autoconf 2.71. Invocation command line was
1970
1971 $ $0$ac_configure_args_raw
1972
1973_ACEOF
1974exec 5>>config.log
1975{
1976cat <<_ASUNAME
1977## --------- ##
1978## Platform. ##
1979## --------- ##
1980
1981hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986
1987/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989
1990/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1997
1998_ASUNAME
1999
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 case $as_dir in #(((
2005 '') as_dir=./ ;;
2006 */) ;;
2007 *) as_dir=$as_dir/ ;;
2008 esac
2009 printf "%s\n" "PATH: $as_dir"
2010 done
2011IFS=$as_save_IFS
2012
2013} >&5
2014
2015cat >&5 <<_ACEOF
2016
2017
2018## ----------- ##
2019## Core tests. ##
2020## ----------- ##
2021
2022_ACEOF
2023
2024
2025# Keep a trace of the command line.
2026# Strip out --no-create and --no-recursion so they do not pile up.
2027# Strip out --silent because we don't want to record it for future runs.
2028# Also quote any args containing shell meta-characters.
2029# Make two passes to allow for proper duplicate-argument suppression.
2030ac_configure_args=
2031ac_configure_args0=
2032ac_configure_args1=
2033ac_must_keep_next=false
2034for ac_pass in 1 2
2035do
2036 for ac_arg
2037 do
2038 case $ac_arg in
2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041 | -silent | --silent | --silen | --sile | --sil)
2042 continue ;;
2043 *\'*)
2044 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 esac
2046 case $ac_pass in
2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2048 2)
2049 as_fn_append ac_configure_args1 " '$ac_arg'"
2050 if test $ac_must_keep_next = true; then
2051 ac_must_keep_next=false # Got value, back to normal.
2052 else
2053 case $ac_arg in
2054 *=* | --config-cache | -C | -disable-* | --disable-* \
2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2057 | -with-* | --with-* | -without-* | --without-* | --x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 esac
2061 ;;
2062 -* ) ac_must_keep_next=true ;;
2063 esac
2064 fi
2065 as_fn_append ac_configure_args " '$ac_arg'"
2066 ;;
2067 esac
2068 done
2069done
2070{ ac_configure_args0=; unset ac_configure_args0;}
2071{ ac_configure_args1=; unset ac_configure_args1;}
2072
2073# When interrupted or exit'd, cleanup temporary files, and complete
2074# config.log. We remove comments because anyway the quotes in there
2075# would cause problems or look ugly.
2076# WARNING: Use '\'' to represent an apostrophe within the trap.
2077# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078trap 'exit_status=$?
2079 # Sanitize IFS.
2080 IFS=" "" $as_nl"
2081 # Save into config.log some information that might help in debugging.
2082 {
2083 echo
2084
2085 printf "%s\n" "## ---------------- ##
2086## Cache variables. ##
2087## ---------------- ##"
2088 echo
2089 # The following way of writing the cache mishandles newlines in values,
2090(
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in #(
2094 *${as_nl}*)
2095 case $ac_var in #(
2096 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 esac
2099 case $ac_var in #(
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2103 esac ;;
2104 esac
2105 done
2106 (set) 2>&1 |
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2109 sed -n \
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 ;; #(
2113 *)
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 ;;
2116 esac |
2117 sort
2118)
2119 echo
2120
2121 printf "%s\n" "## ----------------- ##
2122## Output variables. ##
2123## ----------------- ##"
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 printf "%s\n" "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 printf "%s\n" "## ------------------- ##
2137## File substitutions. ##
2138## ------------------- ##"
2139 echo
2140 for ac_var in $ac_subst_files
2141 do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 printf "%s\n" "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2149 fi
2150
2151 if test -s confdefs.h; then
2152 printf "%s\n" "## ----------- ##
2153## confdefs.h. ##
2154## ----------- ##"
2155 echo
2156 cat confdefs.h
2157 echo
2158 fi
2159 test "$ac_signal" != 0 &&
2160 printf "%s\n" "$as_me: caught signal $ac_signal"
2161 printf "%s\n" "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2166' 0
2167for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169done
2170ac_signal=0
2171
2172# confdefs.h avoids OS command line length limits that DEFS can exceed.
2173rm -f -r conftest* confdefs.h
2174
2175printf "%s\n" "/* confdefs.h */" > confdefs.h
2176
2177# Predefined preprocessor variables.
2178
2179printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2180
2181printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2182
2183printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2184
2185printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2186
2187printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2188
2189printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2190
2191
2192# Let the site file select an alternate cache file if it wants to.
2193# Prefer an explicitly selected file to automatically selected ones.
2194if test -n "$CONFIG_SITE"; then
2195 ac_site_files="$CONFIG_SITE"
2196elif test "x$prefix" != xNONE; then
2197 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2198else
2199 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2200fi
2201
2202for ac_site_file in $ac_site_files
2203do
2204 case $ac_site_file in #(
2205 */*) :
2206 ;; #(
2207 *) :
2208 ac_site_file=./$ac_site_file ;;
2209esac
2210 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2214 . "$ac_site_file" \
2215 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2217as_fn_error $? "failed to load site script $ac_site_file
2218See \`config.log' for more details" "$LINENO" 5; }
2219 fi
2220done
2221
2222if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2228 case $cache_file in
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2231 esac
2232 fi
2233else
2234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2236 >$cache_file
2237fi
2238
2239# Test code for whether the C compiler supports C89 (global declarations)
2240ac_c_conftest_c89_globals='
2241/* Does the compiler advertise C89 conformance?
2242 Do not test the value of __STDC__, because some compilers set it to 0
2243 while being otherwise adequately conformant. */
2244#if !defined __STDC__
2245# error "Compiler does not advertise C89 conformance"
2246#endif
2247
2248#include <stddef.h>
2249#include <stdarg.h>
2250struct stat;
2251/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2252struct buf { int x; };
2253struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2254static char *e (p, i)
2255 char **p;
2256 int i;
2257{
2258 return p[i];
2259}
2260static char *f (char * (*g) (char **, int), char **p, ...)
2261{
2262 char *s;
2263 va_list v;
2264 va_start (v,p);
2265 s = g (p, va_arg (v,int));
2266 va_end (v);
2267 return s;
2268}
2269
2270/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2271 function prototypes and stuff, but not \xHH hex character constants.
2272 These do not provoke an error unfortunately, instead are silently treated
2273 as an "x". The following induces an error, until -std is added to get
2274 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2275 array size at least. It is necessary to write \x00 == 0 to get something
2276 that is true only with -std. */
2277int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2278
2279/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2280 inside strings and character constants. */
2281#define FOO(x) '\''x'\''
2282int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2283
2284int test (int i, double x);
2285struct s1 {int (*f) (int a);};
2286struct s2 {int (*f) (double a);};
2287int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2288 int, int);'
2289
2290# Test code for whether the C compiler supports C89 (body of main).
2291ac_c_conftest_c89_main='
2292ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2293'
2294
2295# Test code for whether the C compiler supports C99 (global declarations)
2296ac_c_conftest_c99_globals='
2297// Does the compiler advertise C99 conformance?
2298#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2299# error "Compiler does not advertise C99 conformance"
2300#endif
2301
2302#include <stdbool.h>
2303extern int puts (const char *);
2304extern int printf (const char *, ...);
2305extern int dprintf (int, const char *, ...);
2306extern void *malloc (size_t);
2307
2308// Check varargs macros. These examples are taken from C99 6.10.3.5.
2309// dprintf is used instead of fprintf to avoid needing to declare
2310// FILE and stderr.
2311#define debug(...) dprintf (2, __VA_ARGS__)
2312#define showlist(...) puts (#__VA_ARGS__)
2313#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2314static void
2315test_varargs_macros (void)
2316{
2317 int x = 1234;
2318 int y = 5678;
2319 debug ("Flag");
2320 debug ("X = %d\n", x);
2321 showlist (The first, second, and third items.);
2322 report (x>y, "x is %d but y is %d", x, y);
2323}
2324
2325// Check long long types.
2326#define BIG64 18446744073709551615ull
2327#define BIG32 4294967295ul
2328#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2329#if !BIG_OK
2330 #error "your preprocessor is broken"
2331#endif
2332#if BIG_OK
2333#else
2334 #error "your preprocessor is broken"
2335#endif
2336static long long int bignum = -9223372036854775807LL;
2337static unsigned long long int ubignum = BIG64;
2338
2339struct incomplete_array
2340{
2341 int datasize;
2342 double data[];
2343};
2344
2345struct named_init {
2346 int number;
2347 const wchar_t *name;
2348 double average;
2349};
2350
2351typedef const char *ccp;
2352
2353static inline int
2354test_restrict (ccp restrict text)
2355{
2356 // See if C++-style comments work.
2357 // Iterate through items via the restricted pointer.
2358 // Also check for declarations in for loops.
2359 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2360 continue;
2361 return 0;
2362}
2363
2364// Check varargs and va_copy.
2365static bool
2366test_varargs (const char *format, ...)
2367{
2368 va_list args;
2369 va_start (args, format);
2370 va_list args_copy;
2371 va_copy (args_copy, args);
2372
2373 const char *str = "";
2374 int number = 0;
2375 float fnumber = 0;
2376
2377 while (*format)
2378 {
2379 switch (*format++)
2380 {
2381 case '\''s'\'': // string
2382 str = va_arg (args_copy, const char *);
2383 break;
2384 case '\''d'\'': // int
2385 number = va_arg (args_copy, int);
2386 break;
2387 case '\''f'\'': // float
2388 fnumber = va_arg (args_copy, double);
2389 break;
2390 default:
2391 break;
2392 }
2393 }
2394 va_end (args_copy);
2395 va_end (args);
2396
2397 return *str && number && fnumber;
2398}
2399'
2400
2401# Test code for whether the C compiler supports C99 (body of main).
2402ac_c_conftest_c99_main='
2403 // Check bool.
2404 _Bool success = false;
2405 success |= (argc != 0);
2406
2407 // Check restrict.
2408 if (test_restrict ("String literal") == 0)
2409 success = true;
2410 char *restrict newvar = "Another string";
2411
2412 // Check varargs.
2413 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2414 test_varargs_macros ();
2415
2416 // Check flexible array members.
2417 struct incomplete_array *ia =
2418 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2419 ia->datasize = 10;
2420 for (int i = 0; i < ia->datasize; ++i)
2421 ia->data[i] = i * 1.234;
2422
2423 // Check named initializers.
2424 struct named_init ni = {
2425 .number = 34,
2426 .name = L"Test wide string",
2427 .average = 543.34343,
2428 };
2429
2430 ni.number = 58;
2431
2432 int dynamic_array[ni.number];
2433 dynamic_array[0] = argv[0][0];
2434 dynamic_array[ni.number - 1] = 543;
2435
2436 // work around unused variable warnings
2437 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2438 || dynamic_array[ni.number - 1] != 543);
2439'
2440
2441# Test code for whether the C compiler supports C11 (global declarations)
2442ac_c_conftest_c11_globals='
2443// Does the compiler advertise C11 conformance?
2444#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2445# error "Compiler does not advertise C11 conformance"
2446#endif
2447
2448// Check _Alignas.
2449char _Alignas (double) aligned_as_double;
2450char _Alignas (0) no_special_alignment;
2451extern char aligned_as_int;
2452char _Alignas (0) _Alignas (int) aligned_as_int;
2453
2454// Check _Alignof.
2455enum
2456{
2457 int_alignment = _Alignof (int),
2458 int_array_alignment = _Alignof (int[100]),
2459 char_alignment = _Alignof (char)
2460};
2461_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2462
2463// Check _Noreturn.
2464int _Noreturn does_not_return (void) { for (;;) continue; }
2465
2466// Check _Static_assert.
2467struct test_static_assert
2468{
2469 int x;
2470 _Static_assert (sizeof (int) <= sizeof (long int),
2471 "_Static_assert does not work in struct");
2472 long int y;
2473};
2474
2475// Check UTF-8 literals.
2476#define u8 syntax error!
2477char const utf8_literal[] = u8"happens to be ASCII" "another string";
2478
2479// Check duplicate typedefs.
2480typedef long *long_ptr;
2481typedef long int *long_ptr;
2482typedef long_ptr long_ptr;
2483
2484// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2485struct anonymous
2486{
2487 union {
2488 struct { int i; int j; };
2489 struct { int k; long int l; } w;
2490 };
2491 int m;
2492} v1;
2493'
2494
2495# Test code for whether the C compiler supports C11 (body of main).
2496ac_c_conftest_c11_main='
2497 _Static_assert ((offsetof (struct anonymous, i)
2498 == offsetof (struct anonymous, w.k)),
2499 "Anonymous union alignment botch");
2500 v1.i = 2;
2501 v1.w.k = 5;
2502 ok |= v1.i != 5;
2503'
2504
2505# Test code for whether the C compiler supports C11 (complete).
2506ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2507${ac_c_conftest_c99_globals}
2508${ac_c_conftest_c11_globals}
2509
2510int
2511main (int argc, char **argv)
2512{
2513 int ok = 0;
2514 ${ac_c_conftest_c89_main}
2515 ${ac_c_conftest_c99_main}
2516 ${ac_c_conftest_c11_main}
2517 return ok;
2518}
2519"
2520
2521# Test code for whether the C compiler supports C99 (complete).
2522ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2523${ac_c_conftest_c99_globals}
2524
2525int
2526main (int argc, char **argv)
2527{
2528 int ok = 0;
2529 ${ac_c_conftest_c89_main}
2530 ${ac_c_conftest_c99_main}
2531 return ok;
2532}
2533"
2534
2535# Test code for whether the C compiler supports C89 (complete).
2536ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2537
2538int
2539main (int argc, char **argv)
2540{
2541 int ok = 0;
2542 ${ac_c_conftest_c89_main}
2543 return ok;
2544}
2545"
2546
2547as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2548as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2549as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2550as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2551as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2552as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2553as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2554as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2555as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2556
2557# Auxiliary files required by this configure script.
2558ac_aux_files="config.guess config.sub install-sh"
2559
2560# Locations in which to look for auxiliary files.
2561ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2562
2563# Search for a directory containing all of the required auxiliary files,
2564# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2565# If we don't find one directory that contains all the files we need,
2566# we report the set of missing files from the *first* directory in
2567# $ac_aux_dir_candidates and give up.
2568ac_missing_aux_files=""
2569ac_first_candidate=:
2570printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572as_found=false
2573for as_dir in $ac_aux_dir_candidates
2574do
2575 IFS=$as_save_IFS
2576 case $as_dir in #(((
2577 '') as_dir=./ ;;
2578 */) ;;
2579 *) as_dir=$as_dir/ ;;
2580 esac
2581 as_found=:
2582
2583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2584 ac_aux_dir_found=yes
2585 ac_install_sh=
2586 for ac_aux in $ac_aux_files
2587 do
2588 # As a special case, if "install-sh" is required, that requirement
2589 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2590 # and $ac_install_sh is set appropriately for whichever one is found.
2591 if test x"$ac_aux" = x"install-sh"
2592 then
2593 if test -f "${as_dir}install-sh"; then
2594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2595 ac_install_sh="${as_dir}install-sh -c"
2596 elif test -f "${as_dir}install.sh"; then
2597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2598 ac_install_sh="${as_dir}install.sh -c"
2599 elif test -f "${as_dir}shtool"; then
2600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2601 ac_install_sh="${as_dir}shtool install -c"
2602 else
2603 ac_aux_dir_found=no
2604 if $ac_first_candidate; then
2605 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2606 else
2607 break
2608 fi
2609 fi
2610 else
2611 if test -f "${as_dir}${ac_aux}"; then
2612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2613 else
2614 ac_aux_dir_found=no
2615 if $ac_first_candidate; then
2616 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2617 else
2618 break
2619 fi
2620 fi
2621 fi
2622 done
2623 if test "$ac_aux_dir_found" = yes; then
2624 ac_aux_dir="$as_dir"
2625 break
2626 fi
2627 ac_first_candidate=false
2628
2629 as_found=false
2630done
2631IFS=$as_save_IFS
2632if $as_found
2633then :
2634
2635else $as_nop
2636 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2637fi
2638
2639
2640# These three variables are undocumented and unsupported,
2641# and are intended to be withdrawn in a future Autoconf release.
2642# They can cause serious problems if a builder's source tree is in a directory
2643# whose full name contains unusual characters.
2644if test -f "${ac_aux_dir}config.guess"; then
2645 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2646fi
2647if test -f "${ac_aux_dir}config.sub"; then
2648 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2649fi
2650if test -f "$ac_aux_dir/configure"; then
2651 ac_configure="$SHELL ${ac_aux_dir}configure"
2652fi
2653
2654# Check that the precious variables saved in the cache have kept the same
2655# value.
2656ac_cache_corrupted=false
2657for ac_var in $ac_precious_vars; do
2658 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659 eval ac_new_set=\$ac_env_${ac_var}_set
2660 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661 eval ac_new_val=\$ac_env_${ac_var}_value
2662 case $ac_old_set,$ac_new_set in
2663 set,)
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2665printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2667 ,set)
2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2669printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2670 ac_cache_corrupted=: ;;
2671 ,);;
2672 *)
2673 if test "x$ac_old_val" != "x$ac_new_val"; then
2674 # differences in whitespace do not lead to failure.
2675 ac_old_val_w=`echo x $ac_old_val`
2676 ac_new_val_w=`echo x $ac_new_val`
2677 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2679printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2680 ac_cache_corrupted=:
2681 else
2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2683printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684 eval $ac_var=\$ac_old_val
2685 fi
2686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2687printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2689printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2690 fi;;
2691 esac
2692 # Pass precious variables to config.status.
2693 if test "$ac_new_set" = set; then
2694 case $ac_new_val in
2695 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2696 *) ac_arg=$ac_var=$ac_new_val ;;
2697 esac
2698 case " $ac_configure_args " in
2699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2700 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701 esac
2702 fi
2703done
2704if $ac_cache_corrupted; then
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2708printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2709 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2710 and start over" "$LINENO" 5
2711fi
2712## -------------------- ##
2713## Main body of script. ##
2714## -------------------- ##
2715
2716ac_ext=c
2717ac_cpp='$CPP $CPPFLAGS'
2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2742set dummy ${ac_tool_prefix}gcc; ac_word=$2
2743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744printf %s "checking for $ac_word... " >&6; }
2745if test ${ac_cv_prog_CC+y}
2746then :
2747 printf %s "(cached) " >&6
2748else $as_nop
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 case $as_dir in #(((
2757 '') as_dir=./ ;;
2758 */) ;;
2759 *) as_dir=$as_dir/ ;;
2760 esac
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767done
2768 done
2769IFS=$as_save_IFS
2770
2771fi
2772fi
2773CC=$ac_cv_prog_CC
2774if test -n "$CC"; then
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776printf "%s\n" "$CC" >&6; }
2777else
2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779printf "%s\n" "no" >&6; }
2780fi
2781
2782
2783fi
2784if test -z "$ac_cv_prog_CC"; then
2785 ac_ct_CC=$CC
2786 # Extract the first word of "gcc", so it can be a program name with args.
2787set dummy gcc; ac_word=$2
2788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789printf %s "checking for $ac_word... " >&6; }
2790if test ${ac_cv_prog_ac_ct_CC+y}
2791then :
2792 printf %s "(cached) " >&6
2793else $as_nop
2794 if test -n "$ac_ct_CC"; then
2795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 case $as_dir in #(((
2802 '') as_dir=./ ;;
2803 */) ;;
2804 *) as_dir=$as_dir/ ;;
2805 esac
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_ac_ct_CC="gcc"
2809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812done
2813 done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819if test -n "$ac_ct_CC"; then
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2821printf "%s\n" "$ac_ct_CC" >&6; }
2822else
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824printf "%s\n" "no" >&6; }
2825fi
2826
2827 if test "x$ac_ct_CC" = x; then
2828 CC=""
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836 CC=$ac_ct_CC
2837 fi
2838else
2839 CC="$ac_cv_prog_CC"
2840fi
2841
2842if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2845set dummy ${ac_tool_prefix}cc; ac_word=$2
2846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847printf %s "checking for $ac_word... " >&6; }
2848if test ${ac_cv_prog_CC+y}
2849then :
2850 printf %s "(cached) " >&6
2851else $as_nop
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 case $as_dir in #(((
2860 '') as_dir=./ ;;
2861 */) ;;
2862 *) as_dir=$as_dir/ ;;
2863 esac
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="${ac_tool_prefix}cc"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870done
2871 done
2872IFS=$as_save_IFS
2873
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879printf "%s\n" "$CC" >&6; }
2880else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882printf "%s\n" "no" >&6; }
2883fi
2884
2885
2886 fi
2887fi
2888if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890set dummy cc; ac_word=$2
2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892printf %s "checking for $ac_word... " >&6; }
2893if test ${ac_cv_prog_CC+y}
2894then :
2895 printf %s "(cached) " >&6
2896else $as_nop
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899else
2900 ac_prog_rejected=no
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 case $as_dir in #(((
2906 '') as_dir=./ ;;
2907 */) ;;
2908 *) as_dir=$as_dir/ ;;
2909 esac
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2912 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2913 ac_prog_rejected=yes
2914 continue
2915 fi
2916 ac_cv_prog_CC="cc"
2917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920done
2921 done
2922IFS=$as_save_IFS
2923
2924if test $ac_prog_rejected = yes; then
2925 # We found a bogon in the path, so make sure we never use it.
2926 set dummy $ac_cv_prog_CC
2927 shift
2928 if test $# != 0; then
2929 # We chose a different compiler from the bogus one.
2930 # However, it has the same basename, so the bogon will be chosen
2931 # first if we set CC to just the basename; use the full file name.
2932 shift
2933 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2934 fi
2935fi
2936fi
2937fi
2938CC=$ac_cv_prog_CC
2939if test -n "$CC"; then
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941printf "%s\n" "$CC" >&6; }
2942else
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944printf "%s\n" "no" >&6; }
2945fi
2946
2947
2948fi
2949if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
2951 for ac_prog in cl.exe
2952 do
2953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956printf %s "checking for $ac_word... " >&6; }
2957if test ${ac_cv_prog_CC+y}
2958then :
2959 printf %s "(cached) " >&6
2960else $as_nop
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967 IFS=$as_save_IFS
2968 case $as_dir in #(((
2969 '') as_dir=./ ;;
2970 */) ;;
2971 *) as_dir=$as_dir/ ;;
2972 esac
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979done
2980 done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985CC=$ac_cv_prog_CC
2986if test -n "$CC"; then
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988printf "%s\n" "$CC" >&6; }
2989else
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991printf "%s\n" "no" >&6; }
2992fi
2993
2994
2995 test -n "$CC" && break
2996 done
2997fi
2998if test -z "$CC"; then
2999 ac_ct_CC=$CC
3000 for ac_prog in cl.exe
3001do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2
3004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005printf %s "checking for $ac_word... " >&6; }
3006if test ${ac_cv_prog_ac_ct_CC+y}
3007then :
3008 printf %s "(cached) " >&6
3009else $as_nop
3010 if test -n "$ac_ct_CC"; then
3011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 case $as_dir in #(((
3018 '') as_dir=./ ;;
3019 */) ;;
3020 *) as_dir=$as_dir/ ;;
3021 esac
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_CC="$ac_prog"
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029 done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035if test -n "$ac_ct_CC"; then
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037printf "%s\n" "$ac_ct_CC" >&6; }
3038else
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040printf "%s\n" "no" >&6; }
3041fi
3042
3043
3044 test -n "$ac_ct_CC" && break
3045done
3046
3047 if test "x$ac_ct_CC" = x; then
3048 CC=""
3049 else
3050 case $cross_compiling:$ac_tool_warned in
3051yes:)
3052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054ac_tool_warned=yes ;;
3055esac
3056 CC=$ac_ct_CC
3057 fi
3058fi
3059
3060fi
3061if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}clang; ac_word=$2
3065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066printf %s "checking for $ac_word... " >&6; }
3067if test ${ac_cv_prog_CC+y}
3068then :
3069 printf %s "(cached) " >&6
3070else $as_nop
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 case $as_dir in #(((
3079 '') as_dir=./ ;;
3080 */) ;;
3081 *) as_dir=$as_dir/ ;;
3082 esac
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_CC="${ac_tool_prefix}clang"
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089done
3090 done
3091IFS=$as_save_IFS
3092
3093fi
3094fi
3095CC=$ac_cv_prog_CC
3096if test -n "$CC"; then
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098printf "%s\n" "$CC" >&6; }
3099else
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101printf "%s\n" "no" >&6; }
3102fi
3103
3104
3105fi
3106if test -z "$ac_cv_prog_CC"; then
3107 ac_ct_CC=$CC
3108 # Extract the first word of "clang", so it can be a program name with args.
3109set dummy clang; ac_word=$2
3110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111printf %s "checking for $ac_word... " >&6; }
3112if test ${ac_cv_prog_ac_ct_CC+y}
3113then :
3114 printf %s "(cached) " >&6
3115else $as_nop
3116 if test -n "$ac_ct_CC"; then
3117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 case $as_dir in #(((
3124 '') as_dir=./ ;;
3125 */) ;;
3126 *) as_dir=$as_dir/ ;;
3127 esac
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_ac_ct_CC="clang"
3131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134done
3135 done
3136IFS=$as_save_IFS
3137
3138fi
3139fi
3140ac_ct_CC=$ac_cv_prog_ac_ct_CC
3141if test -n "$ac_ct_CC"; then
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3143printf "%s\n" "$ac_ct_CC" >&6; }
3144else
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146printf "%s\n" "no" >&6; }
3147fi
3148
3149 if test "x$ac_ct_CC" = x; then
3150 CC=""
3151 else
3152 case $cross_compiling:$ac_tool_warned in
3153yes:)
3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156ac_tool_warned=yes ;;
3157esac
3158 CC=$ac_ct_CC
3159 fi
3160else
3161 CC="$ac_cv_prog_CC"
3162fi
3163
3164fi
3165
3166
3167test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3169as_fn_error $? "no acceptable C compiler found in \$PATH
3170See \`config.log' for more details" "$LINENO" 5; }
3171
3172# Provide some information about the compiler.
3173printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174set X $ac_compile
3175ac_compiler=$2
3176for ac_option in --version -v -V -qversion -version; do
3177 { { ac_try="$ac_compiler $ac_option >&5"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183printf "%s\n" "$ac_try_echo"; } >&5
3184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3185 ac_status=$?
3186 if test -s conftest.err; then
3187 sed '10a\
3188... rest of stderr output deleted ...
3189 10q' conftest.err >conftest.er1
3190 cat conftest.er1 >&5
3191 fi
3192 rm -f conftest.er1 conftest.err
3193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195done
3196
3197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h. */
3199
3200int
3201main (void)
3202{
3203
3204 ;
3205 return 0;
3206}
3207_ACEOF
3208ac_clean_files_save=$ac_clean_files
3209ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3210# Try to create an executable without -o first, disregard a.out.
3211# It will help us diagnose broken compilers, and finding out an intuition
3212# of exeext.
3213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3214printf %s "checking whether the C compiler works... " >&6; }
3215ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216
3217# The possible output files:
3218ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3219
3220ac_rmfiles=
3221for ac_file in $ac_files
3222do
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3226 esac
3227done
3228rm -f $ac_rmfiles
3229
3230if { { ac_try="$ac_link_default"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236printf "%s\n" "$ac_try_echo"; } >&5
3237 (eval "$ac_link_default") 2>&5
3238 ac_status=$?
3239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }
3241then :
3242 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3243# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3244# in a Makefile. We should not override ac_cv_exeext if it was cached,
3245# so that the user can short-circuit this test for compilers unknown to
3246# Autoconf.
3247for ac_file in $ac_files ''
3248do
3249 test -f "$ac_file" || continue
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3252 ;;
3253 [ab].out )
3254 # We found the default executable, but exeext='' is most
3255 # certainly right.
3256 break;;
3257 *.* )
3258 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3259 then :; else
3260 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261 fi
3262 # We set ac_cv_exeext here because the later test for it is not
3263 # safe: cross compilers may not add the suffix if given an `-o'
3264 # argument, so we may need to know it at that point already.
3265 # Even if this section looks crufty: it has the advantage of
3266 # actually working.
3267 break;;
3268 * )
3269 break;;
3270 esac
3271done
3272test "$ac_cv_exeext" = no && ac_cv_exeext=
3273
3274else $as_nop
3275 ac_file=''
3276fi
3277if test -z "$ac_file"
3278then :
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280printf "%s\n" "no" >&6; }
3281printf "%s\n" "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error 77 "C compiler cannot create executables
3287See \`config.log' for more details" "$LINENO" 5; }
3288else $as_nop
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290printf "%s\n" "yes" >&6; }
3291fi
3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3293printf %s "checking for C compiler default output file name... " >&6; }
3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3295printf "%s\n" "$ac_file" >&6; }
3296ac_exeext=$ac_cv_exeext
3297
3298rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3299ac_clean_files=$ac_clean_files_save
3300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3301printf %s "checking for suffix of executables... " >&6; }
3302if { { ac_try="$ac_link"
3303case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308printf "%s\n" "$ac_try_echo"; } >&5
3309 (eval "$ac_link") 2>&5
3310 ac_status=$?
3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }
3313then :
3314 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3315# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3316# work properly (i.e., refer to `conftest.exe'), while it won't with
3317# `rm'.
3318for ac_file in conftest.exe conftest conftest.*; do
3319 test -f "$ac_file" || continue
3320 case $ac_file in
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 break;;
3324 * ) break;;
3325 esac
3326done
3327else $as_nop
3328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3330as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3331See \`config.log' for more details" "$LINENO" 5; }
3332fi
3333rm -f conftest conftest$ac_cv_exeext
3334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3335printf "%s\n" "$ac_cv_exeext" >&6; }
3336
3337rm -f conftest.$ac_ext
3338EXEEXT=$ac_cv_exeext
3339ac_exeext=$EXEEXT
3340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342#include <stdio.h>
3343int
3344main (void)
3345{
3346FILE *f = fopen ("conftest.out", "w");
3347 return ferror (f) || fclose (f) != 0;
3348
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353ac_clean_files="$ac_clean_files conftest.out"
3354# Check that the compiler produces executables we can run. If not, either
3355# the compiler is broken, or we cross compile.
3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3357printf %s "checking whether we are cross compiling... " >&6; }
3358if test "$cross_compiling" != yes; then
3359 { { ac_try="$ac_link"
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365printf "%s\n" "$ac_try_echo"; } >&5
3366 (eval "$ac_link") 2>&5
3367 ac_status=$?
3368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }
3370 if { ac_try='./conftest$ac_cv_exeext'
3371 { { case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376printf "%s\n" "$ac_try_echo"; } >&5
3377 (eval "$ac_try") 2>&5
3378 ac_status=$?
3379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; }; then
3381 cross_compiling=no
3382 else
3383 if test "$cross_compiling" = maybe; then
3384 cross_compiling=yes
3385 else
3386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3388as_fn_error 77 "cannot run C compiled programs.
3389If you meant to cross compile, use \`--host'.
3390See \`config.log' for more details" "$LINENO" 5; }
3391 fi
3392 fi
3393fi
3394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3395printf "%s\n" "$cross_compiling" >&6; }
3396
3397rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3398ac_clean_files=$ac_clean_files_save
3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3400printf %s "checking for suffix of object files... " >&6; }
3401if test ${ac_cv_objext+y}
3402then :
3403 printf %s "(cached) " >&6
3404else $as_nop
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h. */
3407
3408int
3409main (void)
3410{
3411
3412 ;
3413 return 0;
3414}
3415_ACEOF
3416rm -f conftest.o conftest.obj
3417if { { ac_try="$ac_compile"
3418case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421esac
3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423printf "%s\n" "$ac_try_echo"; } >&5
3424 (eval "$ac_compile") 2>&5
3425 ac_status=$?
3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428then :
3429 for ac_file in conftest.o conftest.obj conftest.*; do
3430 test -f "$ac_file" || continue;
3431 case $ac_file in
3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3434 break;;
3435 esac
3436done
3437else $as_nop
3438 printf "%s\n" "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3443as_fn_error $? "cannot compute suffix of object files: cannot compile
3444See \`config.log' for more details" "$LINENO" 5; }
3445fi
3446rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447fi
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3449printf "%s\n" "$ac_cv_objext" >&6; }
3450OBJEXT=$ac_cv_objext
3451ac_objext=$OBJEXT
3452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3453printf %s "checking whether the compiler supports GNU C... " >&6; }
3454if test ${ac_cv_c_compiler_gnu+y}
3455then :
3456 printf %s "(cached) " >&6
3457else $as_nop
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h. */
3460
3461int
3462main (void)
3463{
3464#ifndef __GNUC__
3465 choke me
3466#endif
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472if ac_fn_c_try_compile "$LINENO"
3473then :
3474 ac_compiler_gnu=yes
3475else $as_nop
3476 ac_compiler_gnu=no
3477fi
3478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3479ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480
3481fi
3482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3483printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486if test $ac_compiler_gnu = yes; then
3487 GCC=yes
3488else
3489 GCC=
3490fi
3491ac_test_CFLAGS=${CFLAGS+y}
3492ac_save_CFLAGS=$CFLAGS
3493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3494printf %s "checking whether $CC accepts -g... " >&6; }
3495if test ${ac_cv_prog_cc_g+y}
3496then :
3497 printf %s "(cached) " >&6
3498else $as_nop
3499 ac_save_c_werror_flag=$ac_c_werror_flag
3500 ac_c_werror_flag=yes
3501 ac_cv_prog_cc_g=no
3502 CFLAGS="-g"
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505
3506int
3507main (void)
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514if ac_fn_c_try_compile "$LINENO"
3515then :
3516 ac_cv_prog_cc_g=yes
3517else $as_nop
3518 CFLAGS=""
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h. */
3521
3522int
3523main (void)
3524{
3525
3526 ;
3527 return 0;
3528}
3529_ACEOF
3530if ac_fn_c_try_compile "$LINENO"
3531then :
3532
3533else $as_nop
3534 ac_c_werror_flag=$ac_save_c_werror_flag
3535 CFLAGS="-g"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h. */
3538
3539int
3540main (void)
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
3547if ac_fn_c_try_compile "$LINENO"
3548then :
3549 ac_cv_prog_cc_g=yes
3550fi
3551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3552fi
3553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3554fi
3555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3556 ac_c_werror_flag=$ac_save_c_werror_flag
3557fi
3558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3559printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3560if test $ac_test_CFLAGS; then
3561 CFLAGS=$ac_save_CFLAGS
3562elif test $ac_cv_prog_cc_g = yes; then
3563 if test "$GCC" = yes; then
3564 CFLAGS="-g -O2"
3565 else
3566 CFLAGS="-g"
3567 fi
3568else
3569 if test "$GCC" = yes; then
3570 CFLAGS="-O2"
3571 else
3572 CFLAGS=
3573 fi
3574fi
3575ac_prog_cc_stdc=no
3576if test x$ac_prog_cc_stdc = xno
3577then :
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3579printf %s "checking for $CC option to enable C11 features... " >&6; }
3580if test ${ac_cv_prog_cc_c11+y}
3581then :
3582 printf %s "(cached) " >&6
3583else $as_nop
3584 ac_cv_prog_cc_c11=no
3585ac_save_CC=$CC
3586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h. */
3588$ac_c_conftest_c11_program
3589_ACEOF
3590for ac_arg in '' -std=gnu11
3591do
3592 CC="$ac_save_CC $ac_arg"
3593 if ac_fn_c_try_compile "$LINENO"
3594then :
3595 ac_cv_prog_cc_c11=$ac_arg
3596fi
3597rm -f core conftest.err conftest.$ac_objext conftest.beam
3598 test "x$ac_cv_prog_cc_c11" != "xno" && break
3599done
3600rm -f conftest.$ac_ext
3601CC=$ac_save_CC
3602fi
3603
3604if test "x$ac_cv_prog_cc_c11" = xno
3605then :
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607printf "%s\n" "unsupported" >&6; }
3608else $as_nop
3609 if test "x$ac_cv_prog_cc_c11" = x
3610then :
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612printf "%s\n" "none needed" >&6; }
3613else $as_nop
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3615printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3616 CC="$CC $ac_cv_prog_cc_c11"
3617fi
3618 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3619 ac_prog_cc_stdc=c11
3620fi
3621fi
3622if test x$ac_prog_cc_stdc = xno
3623then :
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3625printf %s "checking for $CC option to enable C99 features... " >&6; }
3626if test ${ac_cv_prog_cc_c99+y}
3627then :
3628 printf %s "(cached) " >&6
3629else $as_nop
3630 ac_cv_prog_cc_c99=no
3631ac_save_CC=$CC
3632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h. */
3634$ac_c_conftest_c99_program
3635_ACEOF
3636for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3637do
3638 CC="$ac_save_CC $ac_arg"
3639 if ac_fn_c_try_compile "$LINENO"
3640then :
3641 ac_cv_prog_cc_c99=$ac_arg
3642fi
3643rm -f core conftest.err conftest.$ac_objext conftest.beam
3644 test "x$ac_cv_prog_cc_c99" != "xno" && break
3645done
3646rm -f conftest.$ac_ext
3647CC=$ac_save_CC
3648fi
3649
3650if test "x$ac_cv_prog_cc_c99" = xno
3651then :
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3653printf "%s\n" "unsupported" >&6; }
3654else $as_nop
3655 if test "x$ac_cv_prog_cc_c99" = x
3656then :
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3658printf "%s\n" "none needed" >&6; }
3659else $as_nop
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3661printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3662 CC="$CC $ac_cv_prog_cc_c99"
3663fi
3664 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3665 ac_prog_cc_stdc=c99
3666fi
3667fi
3668if test x$ac_prog_cc_stdc = xno
3669then :
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3671printf %s "checking for $CC option to enable C89 features... " >&6; }
3672if test ${ac_cv_prog_cc_c89+y}
3673then :
3674 printf %s "(cached) " >&6
3675else $as_nop
3676 ac_cv_prog_cc_c89=no
3677ac_save_CC=$CC
3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h. */
3680$ac_c_conftest_c89_program
3681_ACEOF
3682for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3683do
3684 CC="$ac_save_CC $ac_arg"
3685 if ac_fn_c_try_compile "$LINENO"
3686then :
3687 ac_cv_prog_cc_c89=$ac_arg
3688fi
3689rm -f core conftest.err conftest.$ac_objext conftest.beam
3690 test "x$ac_cv_prog_cc_c89" != "xno" && break
3691done
3692rm -f conftest.$ac_ext
3693CC=$ac_save_CC
3694fi
3695
3696if test "x$ac_cv_prog_cc_c89" = xno
3697then :
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699printf "%s\n" "unsupported" >&6; }
3700else $as_nop
3701 if test "x$ac_cv_prog_cc_c89" = x
3702then :
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704printf "%s\n" "none needed" >&6; }
3705else $as_nop
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3707printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3708 CC="$CC $ac_cv_prog_cc_c89"
3709fi
3710 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3711 ac_prog_cc_stdc=c89
3712fi
3713fi
3714
3715ac_ext=c
3716ac_cpp='$CPP $CPPFLAGS'
3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720
3721ac_ext=c
3722ac_cpp='$CPP $CPPFLAGS'
3723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3727printf %s "checking how to run the C preprocessor... " >&6; }
3728# On Suns, sometimes $CPP names a directory.
3729if test -n "$CPP" && test -d "$CPP"; then
3730 CPP=
3731fi
3732if test -z "$CPP"; then
3733 if test ${ac_cv_prog_CPP+y}
3734then :
3735 printf %s "(cached) " >&6
3736else $as_nop
3737 # Double quotes because $CC needs to be expanded
3738 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3739 do
3740 ac_preproc_ok=false
3741for ac_c_preproc_warn_flag in '' yes
3742do
3743 # Use a header file that comes with gcc, so configuring glibc
3744 # with a fresh cross-compiler works.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */
3749#include <limits.h>
3750 Syntax error
3751_ACEOF
3752if ac_fn_c_try_cpp "$LINENO"
3753then :
3754
3755else $as_nop
3756 # Broken: fails on valid input.
3757continue
3758fi
3759rm -f conftest.err conftest.i conftest.$ac_ext
3760
3761 # OK, works on sane cases. Now check whether nonexistent headers
3762 # can be detected and how.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765#include <ac_nonexistent.h>
3766_ACEOF
3767if ac_fn_c_try_cpp "$LINENO"
3768then :
3769 # Broken: success on invalid input.
3770continue
3771else $as_nop
3772 # Passes both tests.
3773ac_preproc_ok=:
3774break
3775fi
3776rm -f conftest.err conftest.i conftest.$ac_ext
3777
3778done
3779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780rm -f conftest.i conftest.err conftest.$ac_ext
3781if $ac_preproc_ok
3782then :
3783 break
3784fi
3785
3786 done
3787 ac_cv_prog_CPP=$CPP
3788
3789fi
3790 CPP=$ac_cv_prog_CPP
3791else
3792 ac_cv_prog_CPP=$CPP
3793fi
3794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3795printf "%s\n" "$CPP" >&6; }
3796ac_preproc_ok=false
3797for ac_c_preproc_warn_flag in '' yes
3798do
3799 # Use a header file that comes with gcc, so configuring glibc
3800 # with a fresh cross-compiler works.
3801 # On the NeXT, cc -E runs the code through the compiler's parser,
3802 # not just through cpp. "Syntax error" is here to catch this case.
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h. */
3805#include <limits.h>
3806 Syntax error
3807_ACEOF
3808if ac_fn_c_try_cpp "$LINENO"
3809then :
3810
3811else $as_nop
3812 # Broken: fails on valid input.
3813continue
3814fi
3815rm -f conftest.err conftest.i conftest.$ac_ext
3816
3817 # OK, works on sane cases. Now check whether nonexistent headers
3818 # can be detected and how.
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h. */
3821#include <ac_nonexistent.h>
3822_ACEOF
3823if ac_fn_c_try_cpp "$LINENO"
3824then :
3825 # Broken: success on invalid input.
3826continue
3827else $as_nop
3828 # Passes both tests.
3829ac_preproc_ok=:
3830break
3831fi
3832rm -f conftest.err conftest.i conftest.$ac_ext
3833
3834done
3835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836rm -f conftest.i conftest.err conftest.$ac_ext
3837if $ac_preproc_ok
3838then :
3839
3840else $as_nop
3841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3844See \`config.log' for more details" "$LINENO" 5; }
3845fi
3846
3847ac_ext=c
3848ac_cpp='$CPP $CPPFLAGS'
3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853
3854
3855 # Find a good install program. We prefer a C program (faster),
3856# so one script is as good as another. But avoid the broken or
3857# incompatible versions:
3858# SysV /etc/install, /usr/sbin/install
3859# SunOS /usr/etc/install
3860# IRIX /sbin/install
3861# AIX /bin/install
3862# AmigaOS /C/install, which installs bootblocks on floppy discs
3863# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3864# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3865# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3866# OS/2's system install, which has a completely different semantic
3867# ./install, which can be erroneously created by make from ./install.sh.
3868# Reject install programs that cannot install multiple files.
3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3870printf %s "checking for a BSD-compatible install... " >&6; }
3871if test -z "$INSTALL"; then
3872if test ${ac_cv_path_install+y}
3873then :
3874 printf %s "(cached) " >&6
3875else $as_nop
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 case $as_dir in #(((
3881 '') as_dir=./ ;;
3882 */) ;;
3883 *) as_dir=$as_dir/ ;;
3884 esac
3885 # Account for fact that we put trailing slashes in our PATH walk.
3886case $as_dir in #((
3887 ./ | /[cC]/* | \
3888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3889 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3890 /usr/ucb/* ) ;;
3891 *)
3892 # OSF1 and SCO ODT 3.0 have their own names for install.
3893 # Don't use installbsd from OSF since it installs stuff as root
3894 # by default.
3895 for ac_prog in ginstall scoinst install; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3898 if test $ac_prog = install &&
3899 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3900 # AIX install. It has an incompatible calling convention.
3901 :
3902 elif test $ac_prog = install &&
3903 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3904 # program-specific install script used by HP pwplus--don't use.
3905 :
3906 else
3907 rm -rf conftest.one conftest.two conftest.dir
3908 echo one > conftest.one
3909 echo two > conftest.two
3910 mkdir conftest.dir
3911 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3912 test -s conftest.one && test -s conftest.two &&
3913 test -s conftest.dir/conftest.one &&
3914 test -s conftest.dir/conftest.two
3915 then
3916 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3917 break 3
3918 fi
3919 fi
3920 fi
3921 done
3922 done
3923 ;;
3924esac
3925
3926 done
3927IFS=$as_save_IFS
3928
3929rm -rf conftest.one conftest.two conftest.dir
3930
3931fi
3932 if test ${ac_cv_path_install+y}; then
3933 INSTALL=$ac_cv_path_install
3934 else
3935 # As a last resort, use the slow shell script. Don't cache a
3936 # value for INSTALL within a source directory, because that will
3937 # break other packages using the cache if that directory is
3938 # removed, or if the value is a relative name.
3939 INSTALL=$ac_install_sh
3940 fi
3941fi
3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3943printf "%s\n" "$INSTALL" >&6; }
3944
3945# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3946# It thinks the first close brace ends the variable substitution.
3947test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3948
3949test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3950
3951test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3952
3953
3954
3955ac_header= ac_cache=
3956for ac_item in $ac_header_c_list
3957do
3958 if test $ac_cache; then
3959 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3960 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3961 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3962 fi
3963 ac_header= ac_cache=
3964 elif test $ac_header; then
3965 ac_cache=$ac_item
3966 else
3967 ac_header=$ac_item
3968 fi
3969done
3970
3971
3972
3973
3974
3975
3976
3977
3978if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3979then :
3980
3981printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3982
3983fi
3984ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
3985case $ac_cv_c_uint8_t in #(
3986 no|yes) ;; #(
3987 *)
3988
3989printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
3990
3991
3992printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
3993;;
3994 esac
3995
3996ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
3997case $ac_cv_c_uint16_t in #(
3998 no|yes) ;; #(
3999 *)
4000
4001
4002printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
4003;;
4004 esac
4005
4006ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4007case $ac_cv_c_uint32_t in #(
4008 no|yes) ;; #(
4009 *)
4010
4011printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
4012
4013
4014printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
4015;;
4016 esac
4017
4018ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
4019case $ac_cv_c_uint64_t in #(
4020 no|yes) ;; #(
4021 *)
4022
4023printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
4024
4025
4026printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
4027;;
4028 esac
4029
4030
4031 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
4032if test "x$ac_cv_type_uintptr_t" = xyes
4033then :
4034
4035printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
4036
4037else $as_nop
4038 for ac_type in 'unsigned int' 'unsigned long int' \
4039 'unsigned long long int'; do
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h. */
4042$ac_includes_default
4043int
4044main (void)
4045{
4046static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
4047test_array [0] = 0;
4048return test_array [0];
4049
4050 ;
4051 return 0;
4052}
4053_ACEOF
4054if ac_fn_c_try_compile "$LINENO"
4055then :
4056
4057printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
4058
4059 ac_type=
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4062 test -z "$ac_type" && break
4063 done
4064fi
4065
4066
4067
4068 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
4069"
4070if test "x$ac_cv_type_pid_t" = xyes
4071then :
4072
4073else $as_nop
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h. */
4076
4077 #if defined _WIN64 && !defined __CYGWIN__
4078 LLP64
4079 #endif
4080
4081int
4082main (void)
4083{
4084
4085 ;
4086 return 0;
4087}
4088
4089_ACEOF
4090if ac_fn_c_try_compile "$LINENO"
4091then :
4092 ac_pid_type='int'
4093else $as_nop
4094 ac_pid_type='__int64'
4095fi
4096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4097
4098printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
4099
4100
4101fi
4102
4103
4104
4105ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4106if test "x$ac_cv_type__Bool" = xyes
4107then :
4108
4109printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
4110
4111
4112fi
4113
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4115printf %s "checking for stdbool.h that conforms to C99... " >&6; }
4116if test ${ac_cv_header_stdbool_h+y}
4117then :
4118 printf %s "(cached) " >&6
4119else $as_nop
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h. */
4122#include <stdbool.h>
4123
4124 #ifndef __bool_true_false_are_defined
4125 #error "__bool_true_false_are_defined is not defined"
4126 #endif
4127 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
4128
4129 /* Regardless of whether this is C++ or "_Bool" is a
4130 valid type name, "true" and "false" should be usable
4131 in #if expressions and integer constant expressions,
4132 and "bool" should be a valid type name. */
4133
4134 #if !true
4135 #error "'true' is not true"
4136 #endif
4137 #if true != 1
4138 #error "'true' is not equal to 1"
4139 #endif
4140 char b[true == 1 ? 1 : -1];
4141 char c[true];
4142
4143 #if false
4144 #error "'false' is not false"
4145 #endif
4146 #if false != 0
4147 #error "'false' is not equal to 0"
4148 #endif
4149 char d[false == 0 ? 1 : -1];
4150
4151 enum { e = false, f = true, g = false * true, h = true * 256 };
4152
4153 char i[(bool) 0.5 == true ? 1 : -1];
4154 char j[(bool) 0.0 == false ? 1 : -1];
4155 char k[sizeof (bool) > 0 ? 1 : -1];
4156
4157 struct sb { bool s: 1; bool t; } s;
4158 char l[sizeof s.t > 0 ? 1 : -1];
4159
4160 /* The following fails for
4161 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4162 bool m[h];
4163 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
4164 char o[-1 - (bool) 0 < 0 ? 1 : -1];
4165 /* Catch a bug in an HP-UX C compiler. See
4166 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4167 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4168 */
4169 bool p = true;
4170 bool *pp = &p;
4171
4172 /* C 1999 specifies that bool, true, and false are to be
4173 macros, but C++ 2011 and later overrule this. */
4174 #if __cplusplus < 201103
4175 #ifndef bool
4176 #error "bool is not defined"
4177 #endif
4178 #ifndef false
4179 #error "false is not defined"
4180 #endif
4181 #ifndef true
4182 #error "true is not defined"
4183 #endif
4184 #endif
4185
4186 /* If _Bool is available, repeat with it all the tests
4187 above that used bool. */
4188 #ifdef HAVE__BOOL
4189 struct sB { _Bool s: 1; _Bool t; } t;
4190
4191 char q[(_Bool) 0.5 == true ? 1 : -1];
4192 char r[(_Bool) 0.0 == false ? 1 : -1];
4193 char u[sizeof (_Bool) > 0 ? 1 : -1];
4194 char v[sizeof t.t > 0 ? 1 : -1];
4195
4196 _Bool w[h];
4197 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
4198 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
4199 _Bool z = true;
4200 _Bool *pz = &p;
4201 #endif
4202
4203int
4204main (void)
4205{
4206
4207 bool ps = &s;
4208 *pp |= p;
4209 *pp |= ! p;
4210
4211 #ifdef HAVE__BOOL
4212 _Bool pt = &t;
4213 *pz |= z;
4214 *pz |= ! z;
4215 #endif
4216
4217 /* Refer to every declared value, so they cannot be
4218 discarded as unused. */
4219 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
4220 + !l + !m + !n + !o + !p + !pp + !ps
4221 #ifdef HAVE__BOOL
4222 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
4223 #endif
4224 );
4225
4226 ;
4227 return 0;
4228}
4229_ACEOF
4230if ac_fn_c_try_compile "$LINENO"
4231then :
4232 ac_cv_header_stdbool_h=yes
4233else $as_nop
4234 ac_cv_header_stdbool_h=no
4235fi
4236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4237fi
4238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4239printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
4240
4241if test $ac_cv_header_stdbool_h = yes; then
4242
4243printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
4244
4245fi
4246
4247ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4248if test "x$ac_cv_func_getpagesize" = xyes
4249then :
4250
4251fi
4252
4253
4254
4255
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4257printf %s "checking whether byte ordering is bigendian... " >&6; }
4258if test ${ac_cv_c_bigendian+y}
4259then :
4260 printf %s "(cached) " >&6
4261else $as_nop
4262 ac_cv_c_bigendian=unknown
4263 # See if we're dealing with a universal compiler.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h. */
4266#ifndef __APPLE_CC__
4267 not a universal capable compiler
4268 #endif
4269 typedef int dummy;
4270
4271_ACEOF
4272if ac_fn_c_try_compile "$LINENO"
4273then :
4274
4275 # Check for potential -arch flags. It is not universal unless
4276 # there are at least two -arch flags with different values.
4277 ac_arch=
4278 ac_prev=
4279 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4280 if test -n "$ac_prev"; then
4281 case $ac_word in
4282 i?86 | x86_64 | ppc | ppc64)
4283 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4284 ac_arch=$ac_word
4285 else
4286 ac_cv_c_bigendian=universal
4287 break
4288 fi
4289 ;;
4290 esac
4291 ac_prev=
4292 elif test "x$ac_word" = "x-arch"; then
4293 ac_prev=arch
4294 fi
4295 done
4296fi
4297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4298 if test $ac_cv_c_bigendian = unknown; then
4299 # See if sys/param.h defines the BYTE_ORDER macro.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h. */
4302#include <sys/types.h>
4303 #include <sys/param.h>
4304
4305int
4306main (void)
4307{
4308#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4309 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4310 && LITTLE_ENDIAN)
4311 bogus endian macros
4312 #endif
4313
4314 ;
4315 return 0;
4316}
4317_ACEOF
4318if ac_fn_c_try_compile "$LINENO"
4319then :
4320 # It does; now see whether it defined to BIG_ENDIAN or not.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h. */
4323#include <sys/types.h>
4324 #include <sys/param.h>
4325
4326int
4327main (void)
4328{
4329#if BYTE_ORDER != BIG_ENDIAN
4330 not big endian
4331 #endif
4332
4333 ;
4334 return 0;
4335}
4336_ACEOF
4337if ac_fn_c_try_compile "$LINENO"
4338then :
4339 ac_cv_c_bigendian=yes
4340else $as_nop
4341 ac_cv_c_bigendian=no
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4346 fi
4347 if test $ac_cv_c_bigendian = unknown; then
4348 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h. */
4351#include <limits.h>
4352
4353int
4354main (void)
4355{
4356#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4357 bogus endian macros
4358 #endif
4359
4360 ;
4361 return 0;
4362}
4363_ACEOF
4364if ac_fn_c_try_compile "$LINENO"
4365then :
4366 # It does; now see whether it defined to _BIG_ENDIAN or not.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h. */
4369#include <limits.h>
4370
4371int
4372main (void)
4373{
4374#ifndef _BIG_ENDIAN
4375 not big endian
4376 #endif
4377
4378 ;
4379 return 0;
4380}
4381_ACEOF
4382if ac_fn_c_try_compile "$LINENO"
4383then :
4384 ac_cv_c_bigendian=yes
4385else $as_nop
4386 ac_cv_c_bigendian=no
4387fi
4388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4389fi
4390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4391 fi
4392 if test $ac_cv_c_bigendian = unknown; then
4393 # Compile a test program.
4394 if test "$cross_compiling" = yes
4395then :
4396 # Try to guess by grepping values from an object file.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h. */
4399unsigned short int ascii_mm[] =
4400 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4401 unsigned short int ascii_ii[] =
4402 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4403 int use_ascii (int i) {
4404 return ascii_mm[i] + ascii_ii[i];
4405 }
4406 unsigned short int ebcdic_ii[] =
4407 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4408 unsigned short int ebcdic_mm[] =
4409 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4410 int use_ebcdic (int i) {
4411 return ebcdic_mm[i] + ebcdic_ii[i];
4412 }
4413 extern int foo;
4414
4415int
4416main (void)
4417{
4418return use_ascii (foo) == use_ebcdic (foo);
4419 ;
4420 return 0;
4421}
4422_ACEOF
4423if ac_fn_c_try_compile "$LINENO"
4424then :
4425 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4426 ac_cv_c_bigendian=yes
4427 fi
4428 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4429 if test "$ac_cv_c_bigendian" = unknown; then
4430 ac_cv_c_bigendian=no
4431 else
4432 # finding both strings is unlikely to happen, but who knows?
4433 ac_cv_c_bigendian=unknown
4434 fi
4435 fi
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4438else $as_nop
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h. */
4441$ac_includes_default
4442int
4443main (void)
4444{
4445
4446 /* Are we little or big endian? From Harbison&Steele. */
4447 union
4448 {
4449 long int l;
4450 char c[sizeof (long int)];
4451 } u;
4452 u.l = 1;
4453 return u.c[sizeof (long int) - 1] == 1;
4454
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459if ac_fn_c_try_run "$LINENO"
4460then :
4461 ac_cv_c_bigendian=no
4462else $as_nop
4463 ac_cv_c_bigendian=yes
4464fi
4465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4466 conftest.$ac_objext conftest.beam conftest.$ac_ext
4467fi
4468
4469 fi
4470fi
4471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4472printf "%s\n" "$ac_cv_c_bigendian" >&6; }
4473 case $ac_cv_c_bigendian in #(
4474 yes)
4475 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
4476;; #(
4477 no)
4478 ;; #(
4479 universal)
4480
4481printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4482
4483 ;; #(
4484 *)
4485 as_fn_error $? "unknown endianness
4486 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4487 esac
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510 # Make sure we can run config.sub.
4511$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4512 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4513
4514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4515printf %s "checking build system type... " >&6; }
4516if test ${ac_cv_build+y}
4517then :
4518 printf %s "(cached) " >&6
4519else $as_nop
4520 ac_build_alias=$build_alias
4521test "x$ac_build_alias" = x &&
4522 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4523test "x$ac_build_alias" = x &&
4524 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4525ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4526 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4527
4528fi
4529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4530printf "%s\n" "$ac_cv_build" >&6; }
4531case $ac_cv_build in
4532*-*-*) ;;
4533*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4534esac
4535build=$ac_cv_build
4536ac_save_IFS=$IFS; IFS='-'
4537set x $ac_cv_build
4538shift
4539build_cpu=$1
4540build_vendor=$2
4541shift; shift
4542# Remember, the first character of IFS is used to create $*,
4543# except with old shells:
4544build_os=$*
4545IFS=$ac_save_IFS
4546case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4547
4548
4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4550printf %s "checking host system type... " >&6; }
4551if test ${ac_cv_host+y}
4552then :
4553 printf %s "(cached) " >&6
4554else $as_nop
4555 if test "x$host_alias" = x; then
4556 ac_cv_host=$ac_cv_build
4557else
4558 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4559 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4560fi
4561
4562fi
4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4564printf "%s\n" "$ac_cv_host" >&6; }
4565case $ac_cv_host in
4566*-*-*) ;;
4567*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4568esac
4569host=$ac_cv_host
4570ac_save_IFS=$IFS; IFS='-'
4571set x $ac_cv_host
4572shift
4573host_cpu=$1
4574host_vendor=$2
4575shift; shift
4576# Remember, the first character of IFS is used to create $*,
4577# except with old shells:
4578host_os=$*
4579IFS=$ac_save_IFS
4580case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4581
4582
4583
4584# Look for required tools.
4585
4586
4587
4588
4589
4590# Check for a working m4.
4591for ac_prog in gm4 m4
4592do
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594set dummy $ac_prog; ac_word=$2
4595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596printf %s "checking for $ac_word... " >&6; }
4597if test ${ac_cv_prog_M4+y}
4598then :
4599 printf %s "(cached) " >&6
4600else $as_nop
4601 if test -n "$M4"; then
4602 ac_cv_prog_M4="$M4" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 case $as_dir in #(((
4609 '') as_dir=./ ;;
4610 */) ;;
4611 *) as_dir=$as_dir/ ;;
4612 esac
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_M4="$ac_prog"
4616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619done
4620 done
4621IFS=$as_save_IFS
4622
4623fi
4624fi
4625M4=$ac_cv_prog_M4
4626if test -n "$M4"; then
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4628printf "%s\n" "$M4" >&6; }
4629else
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631printf "%s\n" "no" >&6; }
4632fi
4633
4634
4635 test -n "$M4" && break
4636done
4637test -n "$M4" || M4="as_fn_error $? "Cannot find m4" "$LINENO" 5"
4638
4639
4640# Check for a working assembler.
4641if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4643set dummy ${ac_tool_prefix}as; ac_word=$2
4644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645printf %s "checking for $ac_word... " >&6; }
4646if test ${ac_cv_prog_AS+y}
4647then :
4648 printf %s "(cached) " >&6
4649else $as_nop
4650 if test -n "$AS"; then
4651 ac_cv_prog_AS="$AS" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656 IFS=$as_save_IFS
4657 case $as_dir in #(((
4658 '') as_dir=./ ;;
4659 */) ;;
4660 *) as_dir=$as_dir/ ;;
4661 esac
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_AS="${ac_tool_prefix}as"
4665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669 done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674AS=$ac_cv_prog_AS
4675if test -n "$AS"; then
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4677printf "%s\n" "$AS" >&6; }
4678else
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680printf "%s\n" "no" >&6; }
4681fi
4682
4683
4684fi
4685if test -z "$ac_cv_prog_AS"; then
4686 ac_ct_AS=$AS
4687 # Extract the first word of "as", so it can be a program name with args.
4688set dummy as; ac_word=$2
4689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690printf %s "checking for $ac_word... " >&6; }
4691if test ${ac_cv_prog_ac_ct_AS+y}
4692then :
4693 printf %s "(cached) " >&6
4694else $as_nop
4695 if test -n "$ac_ct_AS"; then
4696 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 case $as_dir in #(((
4703 '') as_dir=./ ;;
4704 */) ;;
4705 *) as_dir=$as_dir/ ;;
4706 esac
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_ac_ct_AS="as"
4710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713done
4714 done
4715IFS=$as_save_IFS
4716
4717fi
4718fi
4719ac_ct_AS=$ac_cv_prog_ac_ct_AS
4720if test -n "$ac_ct_AS"; then
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4722printf "%s\n" "$ac_ct_AS" >&6; }
4723else
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725printf "%s\n" "no" >&6; }
4726fi
4727
4728 if test "x$ac_ct_AS" = x; then
4729 AS="as_fn_error $? "Cannot find a working assembler" "$LINENO" 5"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732yes:)
4733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735ac_tool_warned=yes ;;
4736esac
4737 AS=$ac_ct_AS
4738 fi
4739else
4740 AS="$ac_cv_prog_AS"
4741fi
4742
4743
4744# And ar.
4745if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4747set dummy ${ac_tool_prefix}ar; ac_word=$2
4748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749printf %s "checking for $ac_word... " >&6; }
4750if test ${ac_cv_prog_AR+y}
4751then :
4752 printf %s "(cached) " >&6
4753else $as_nop
4754 if test -n "$AR"; then
4755 ac_cv_prog_AR="$AR" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 case $as_dir in #(((
4762 '') as_dir=./ ;;
4763 */) ;;
4764 *) as_dir=$as_dir/ ;;
4765 esac
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_AR="${ac_tool_prefix}ar"
4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772done
4773 done
4774IFS=$as_save_IFS
4775
4776fi
4777fi
4778AR=$ac_cv_prog_AR
4779if test -n "$AR"; then
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4781printf "%s\n" "$AR" >&6; }
4782else
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784printf "%s\n" "no" >&6; }
4785fi
4786
4787
4788fi
4789if test -z "$ac_cv_prog_AR"; then
4790 ac_ct_AR=$AR
4791 # Extract the first word of "ar", so it can be a program name with args.
4792set dummy ar; ac_word=$2
4793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794printf %s "checking for $ac_word... " >&6; }
4795if test ${ac_cv_prog_ac_ct_AR+y}
4796then :
4797 printf %s "(cached) " >&6
4798else $as_nop
4799 if test -n "$ac_ct_AR"; then
4800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4801else
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 case $as_dir in #(((
4807 '') as_dir=./ ;;
4808 */) ;;
4809 *) as_dir=$as_dir/ ;;
4810 esac
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_ac_ct_AR="ar"
4814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4815 break 2
4816 fi
4817done
4818 done
4819IFS=$as_save_IFS
4820
4821fi
4822fi
4823ac_ct_AR=$ac_cv_prog_ac_ct_AR
4824if test -n "$ac_ct_AR"; then
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4826printf "%s\n" "$ac_ct_AR" >&6; }
4827else
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829printf "%s\n" "no" >&6; }
4830fi
4831
4832 if test "x$ac_ct_AR" = x; then
4833 AR="as_fn_error $? "Cannot find a working ar" "$LINENO" 5"
4834 else
4835 case $cross_compiling:$ac_tool_warned in
4836yes:)
4837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4838printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839ac_tool_warned=yes ;;
4840esac
4841 AR=$ac_ct_AR
4842 fi
4843else
4844 AR="$ac_cv_prog_AR"
4845fi
4846
4847
4848# And ld.
4849if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4851set dummy ${ac_tool_prefix}ld; ac_word=$2
4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853printf %s "checking for $ac_word... " >&6; }
4854if test ${ac_cv_prog_LD+y}
4855then :
4856 printf %s "(cached) " >&6
4857else $as_nop
4858 if test -n "$LD"; then
4859 ac_cv_prog_LD="$LD" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 case $as_dir in #(((
4866 '') as_dir=./ ;;
4867 */) ;;
4868 *) as_dir=$as_dir/ ;;
4869 esac
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_LD="${ac_tool_prefix}ld"
4873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876done
4877 done
4878IFS=$as_save_IFS
4879
4880fi
4881fi
4882LD=$ac_cv_prog_LD
4883if test -n "$LD"; then
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4885printf "%s\n" "$LD" >&6; }
4886else
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888printf "%s\n" "no" >&6; }
4889fi
4890
4891
4892fi
4893if test -z "$ac_cv_prog_LD"; then
4894 ac_ct_LD=$LD
4895 # Extract the first word of "ld", so it can be a program name with args.
4896set dummy ld; ac_word=$2
4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898printf %s "checking for $ac_word... " >&6; }
4899if test ${ac_cv_prog_ac_ct_LD+y}
4900then :
4901 printf %s "(cached) " >&6
4902else $as_nop
4903 if test -n "$ac_ct_LD"; then
4904 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 case $as_dir in #(((
4911 '') as_dir=./ ;;
4912 */) ;;
4913 *) as_dir=$as_dir/ ;;
4914 esac
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4917 ac_cv_prog_ac_ct_LD="ld"
4918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922 done
4923IFS=$as_save_IFS
4924
4925fi
4926fi
4927ac_ct_LD=$ac_cv_prog_ac_ct_LD
4928if test -n "$ac_ct_LD"; then
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
4930printf "%s\n" "$ac_ct_LD" >&6; }
4931else
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933printf "%s\n" "no" >&6; }
4934fi
4935
4936 if test "x$ac_ct_LD" = x; then
4937 LD="as_fn_error $? "Cannot find a working linker" "$LINENO" 5"
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940yes:)
4941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943ac_tool_warned=yes ;;
4944esac
4945 LD=$ac_ct_LD
4946 fi
4947else
4948 LD="$ac_cv_prog_LD"
4949fi
4950
4951
4952# Now check if ld is a C compiler.
4953LDPREFIX=
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ld is a C compiler" >&5
4955printf %s "checking whether ld is a C compiler... " >&6; }
4956if test ${exec_cv_ld_is_cc+y}
4957then :
4958 printf %s "(cached) " >&6
4959else $as_nop
4960 cat <<_ACEOF > conftest.c
4961
4962int
4963main (void)
4964{
4965
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970 exec_cv_ld_is_cc=yes
4971 $LD -c conftest.c -o conftest.$OBJEXT >&5 2>&1 \
4972 || exec_cv_ld_is_cc=no
4973 rm -f conftest.c conftest.$OBJEXT
4974fi
4975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_ld_is_cc" >&5
4976printf "%s\n" "$exec_cv_ld_is_cc" >&6; }
4977
4978# And if as is a C compiler.
4979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether as is a C compiler" >&5
4980printf %s "checking whether as is a C compiler... " >&6; }
4981if test ${exec_cv_as_is_cc+y}
4982then :
4983 printf %s "(cached) " >&6
4984else $as_nop
4985 cat <<_ACEOF > conftest.c
4986
4987int
4988main (void)
4989{
4990
4991 ;
4992 return 0;
4993}
4994_ACEOF
4995 exec_cv_as_is_cc=yes
4996 $AS -c conftest.c -o conftest.$OBJEXT >&5 2>&1 \
4997 || exec_cv_as_is_cc=no
4998 rm -f conftest.c conftest.$OBJEXT
4999fi
5000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_as_is_cc" >&5
5001printf "%s\n" "$exec_cv_as_is_cc" >&6; }
5002
5003# If ld is a C compiler, pass `-nostdlib', `-nostartfiles', and
5004# `-static'. Also, set LDPREFIX to -Wl,
5005if test "x$exec_cv_ld_is_cc" = "xyes"
5006then :
5007 LOADERFLAGS="$LOADERFLAGS -nostdlib -nostartfiles -static"
5008 LDPREFIX=-Wl,
5009fi
5010
5011# If as is a C compiler, add `-c' to ASFLAGS.
5012if test "x$exec_cv_as_is_cc" = "xyes"
5013then :
5014 ASFLAGS="$ASFLAGS -c"
5015fi
5016
5017
5018
5019
5020
5021# Determine the system type and define appropriate macros.
5022exec_loader=
5023is_mips=
5024OBJS="exec.o trace.o"
5025
5026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5027printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5028if test ${ac_cv_c_undeclared_builtin_options+y}
5029then :
5030 printf %s "(cached) " >&6
5031else $as_nop
5032 ac_save_CFLAGS=$CFLAGS
5033 ac_cv_c_undeclared_builtin_options='cannot detect'
5034 for ac_arg in '' -fno-builtin; do
5035 CFLAGS="$ac_save_CFLAGS $ac_arg"
5036 # This test program should *not* compile successfully.
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h. */
5039
5040int
5041main (void)
5042{
5043(void) strchr;
5044 ;
5045 return 0;
5046}
5047_ACEOF
5048if ac_fn_c_try_compile "$LINENO"
5049then :
5050
5051else $as_nop
5052 # This test program should compile successfully.
5053 # No library function is consistently available on
5054 # freestanding implementations, so test against a dummy
5055 # declaration. Include always-available headers on the
5056 # off chance that they somehow elicit warnings.
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058/* end confdefs.h. */
5059#include <float.h>
5060#include <limits.h>
5061#include <stdarg.h>
5062#include <stddef.h>
5063extern void ac_decl (int, char *);
5064
5065int
5066main (void)
5067{
5068(void) ac_decl (0, (char *) 0);
5069 (void) ac_decl;
5070
5071 ;
5072 return 0;
5073}
5074_ACEOF
5075if ac_fn_c_try_compile "$LINENO"
5076then :
5077 if test x"$ac_arg" = x
5078then :
5079 ac_cv_c_undeclared_builtin_options='none needed'
5080else $as_nop
5081 ac_cv_c_undeclared_builtin_options=$ac_arg
5082fi
5083 break
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5088 done
5089 CFLAGS=$ac_save_CFLAGS
5090
5091fi
5092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5093printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5094 case $ac_cv_c_undeclared_builtin_options in #(
5095 'cannot detect') :
5096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5097printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5098as_fn_error $? "cannot make $CC report undeclared builtins
5099See \`config.log' for more details" "$LINENO" 5; } ;; #(
5100 'none needed') :
5101 ac_c_undeclared_builtin_options='' ;; #(
5102 *) :
5103 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5104esac
5105
5106case $host in #(
5107 x86_64-*linux*) :
5108 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rdi" "ac_cv_member_struct_user_regs_struct_rdi" "
5109#include <sys/user.h>
5110
5111"
5112if test "x$ac_cv_member_struct_user_regs_struct_rdi" = xyes
5113then :
5114 printf "%s\n" "#define SYSCALL_HEADER <asm/unistd.h>" >>confdefs.h
5115
5116 printf "%s\n" "#define USER_HEADER <sys/user.h>" >>confdefs.h
5117
5118 printf "%s\n" "#define USER_REGS_STRUCT struct user_regs_struct" >>confdefs.h
5119
5120 printf "%s\n" "#define SYSCALL_NUM_REG orig_rax" >>confdefs.h
5121
5122 printf "%s\n" "#define SYSCALL_RET_REG rax" >>confdefs.h
5123
5124 printf "%s\n" "#define SYSCALL_ARG_REG rdi" >>confdefs.h
5125
5126 printf "%s\n" "#define SYSCALL_ARG1_REG rsi" >>confdefs.h
5127
5128 printf "%s\n" "#define STACK_POINTER rsp" >>confdefs.h
5129
5130 printf "%s\n" "#define EXEC_SYSCALL __NR_execve" >>confdefs.h
5131
5132 printf "%s\n" "#define USER_WORD uintptr_t" >>confdefs.h
5133
5134 printf "%s\n" "#define EXEC_64 1" >>confdefs.h
5135
5136 printf "%s\n" "#define ABI_RED_ZONE 128" >>confdefs.h
5137
5138 printf "%s\n" "#define EXECUTABLE_BASE 0x555555554000" >>confdefs.h
5139
5140 printf "%s\n" "#define INTERPRETER_BASE 0x600000000000" >>confdefs.h
5141
5142 printf "%s\n" "#define STACK_GROWS_DOWNWARDS 1" >>confdefs.h
5143
5144 printf "%s\n" "#define CLONE_SYSCALL __NR_clone" >>confdefs.h
5145
5146
5147ac_fn_check_decl "$LINENO" "__NR_clone3" "ac_cv_have_decl___NR_clone3" "
5148#include <asm/unistd.h>
5149
5150" "$ac_c_undeclared_builtin_options" "CFLAGS"
5151if test "x$ac_cv_have_decl___NR_clone3" = xyes
5152then :
5153 printf "%s\n" "#define CLONE3_SYSCALL __NR_clone3" >>confdefs.h
5154
5155fi
5156
5157 # Make sure the loader doesn't conflict with other position
5158 # dependent code.
5159 LOADERFLAGS="$LOADERFLAGS $LDPREFIX-Ttext=0x200000000000"
5160 exec_loader=loader-x86_64.s
5161else $as_nop
5162 as_fn_error $? "Missing \`rdi' in user_regs_struct" "$LINENO" 5
5163fi
5164 ;; #(
5165 i[34567]86-*linux*) :
5166 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "edi" "ac_cv_member_struct_user_regs_struct_edi" "
5167#include <sys/user.h>
5168
5169"
5170if test "x$ac_cv_member_struct_user_regs_struct_edi" = xyes
5171then :
5172 printf "%s\n" "#define SYSCALL_HEADER <asm/unistd.h>" >>confdefs.h
5173
5174 printf "%s\n" "#define USER_HEADER <sys/user.h>" >>confdefs.h
5175
5176 printf "%s\n" "#define USER_REGS_STRUCT struct user_regs_struct" >>confdefs.h
5177
5178 printf "%s\n" "#define SYSCALL_NUM_REG orig_eax" >>confdefs.h
5179
5180 printf "%s\n" "#define SYSCALL_RET_REG eax" >>confdefs.h
5181
5182 printf "%s\n" "#define SYSCALL_ARG_REG ebx" >>confdefs.h
5183
5184 printf "%s\n" "#define SYSCALL_ARG1_REG ecx" >>confdefs.h
5185
5186 printf "%s\n" "#define STACK_POINTER esp" >>confdefs.h
5187
5188 printf "%s\n" "#define EXEC_SYSCALL __NR_execve" >>confdefs.h
5189
5190 printf "%s\n" "#define USER_WORD uintptr_t" >>confdefs.h
5191
5192 printf "%s\n" "#define EXECUTABLE_BASE 0x0f000000" >>confdefs.h
5193
5194 printf "%s\n" "#define INTERPRETER_BASE 0xaf000000" >>confdefs.h
5195
5196 printf "%s\n" "#define STACK_GROWS_DOWNWARDS 1" >>confdefs.h
5197
5198 printf "%s\n" "#define CLONE_SYSCALL __NR_clone" >>confdefs.h
5199
5200
5201ac_fn_check_decl "$LINENO" "__NR_clone3" "ac_cv_have_decl___NR_clone3" "
5202#include <asm/unistd.h>
5203
5204" "$ac_c_undeclared_builtin_options" "CFLAGS"
5205if test "x$ac_cv_have_decl___NR_clone3" = xyes
5206then :
5207 printf "%s\n" "#define CLONE3_SYSCALL __NR_clone3" >>confdefs.h
5208
5209fi
5210
5211 # Make sure the loader doesn't conflict with other position
5212 # dependent code.
5213 LOADERFLAGS="$LOADERFLAGS $LDPREFIX-Ttext=0xa0000000"
5214 exec_loader=loader-x86.s
5215else $as_nop
5216 as_fn_error $? "Missing \`edi' in user_regs_struct" "$LINENO" 5
5217fi
5218 ;; #(
5219 aarch64-*linux*) :
5220 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "sp" "ac_cv_member_struct_user_regs_struct_sp" "
5221#include <sys/user.h>
5222
5223"
5224if test "x$ac_cv_member_struct_user_regs_struct_sp" = xyes
5225then :
5226 printf "%s\n" "#define SYSCALL_HEADER <asm/unistd.h>" >>confdefs.h
5227
5228 printf "%s\n" "#define USER_HEADER <sys/user.h>" >>confdefs.h
5229
5230 printf "%s\n" "#define USER_REGS_STRUCT struct user_regs_struct" >>confdefs.h
5231
5232 printf "%s\n" "#define SYSCALL_NUM_REG regs[8]" >>confdefs.h
5233
5234 printf "%s\n" "#define SYSCALL_RET_REG regs[0]" >>confdefs.h
5235
5236 printf "%s\n" "#define SYSCALL_ARG_REG regs[0]" >>confdefs.h
5237
5238 printf "%s\n" "#define SYSCALL_ARG1_REG regs[1]" >>confdefs.h
5239
5240 printf "%s\n" "#define STACK_POINTER sp" >>confdefs.h
5241
5242 printf "%s\n" "#define EXEC_SYSCALL __NR_execve" >>confdefs.h
5243
5244 printf "%s\n" "#define USER_WORD uintptr_t" >>confdefs.h
5245
5246 printf "%s\n" "#define EXEC_64 1" >>confdefs.h
5247
5248 printf "%s\n" "#define EXECUTABLE_BASE 0x3000000000" >>confdefs.h
5249
5250 printf "%s\n" "#define INTERPRETER_BASE 0x3f00000000" >>confdefs.h
5251
5252 printf "%s\n" "#define STACK_GROWS_DOWNWARDS 1" >>confdefs.h
5253
5254 printf "%s\n" "#define CLONE_SYSCALL __NR_clone" >>confdefs.h
5255
5256
5257ac_fn_check_decl "$LINENO" "__NR_clone3" "ac_cv_have_decl___NR_clone3" "
5258#include <asm/unistd.h>
5259
5260" "$ac_c_undeclared_builtin_options" "CFLAGS"
5261if test "x$ac_cv_have_decl___NR_clone3" = xyes
5262then :
5263 printf "%s\n" "#define CLONE3_SYSCALL __NR_clone3" >>confdefs.h
5264
5265fi
5266
5267 # Make sure the loader doesn't conflict with other position
5268 # dependent code. ARM places rather significant restrictions on
5269 # virtual addresses for a 64 bit architecture.
5270 LOADERFLAGS="$LOADERFLAGS $LDPREFIX-Ttext=0x2000000000"
5271 exec_loader=loader-aarch64.s
5272else $as_nop
5273 as_fn_error $? "Missing \`sp' in user_regs_struct" "$LINENO" 5
5274fi
5275 ;; #(
5276 arm*linux*eabi* | armv7*linux*) :
5277 ac_fn_c_check_member "$LINENO" "struct user_regs" "uregs" "ac_cv_member_struct_user_regs_uregs" "
5278#include <sys/user.h>
5279
5280"
5281if test "x$ac_cv_member_struct_user_regs_uregs" = xyes
5282then :
5283 printf "%s\n" "#define SYSCALL_HEADER <asm/unistd.h>" >>confdefs.h
5284
5285 printf "%s\n" "#define USER_HEADER <sys/user.h>" >>confdefs.h
5286
5287 printf "%s\n" "#define USER_REGS_STRUCT struct user_regs" >>confdefs.h
5288
5289 printf "%s\n" "#define SYSCALL_NUM_REG uregs[7]" >>confdefs.h
5290
5291 printf "%s\n" "#define SYSCALL_RET_REG uregs[0]" >>confdefs.h
5292
5293 printf "%s\n" "#define SYSCALL_ARG_REG uregs[0]" >>confdefs.h
5294
5295 printf "%s\n" "#define SYSCALL_ARG1_REG uregs[1]" >>confdefs.h
5296
5297 printf "%s\n" "#define STACK_POINTER uregs[13]" >>confdefs.h
5298
5299 printf "%s\n" "#define EXEC_SYSCALL __NR_execve" >>confdefs.h
5300
5301 printf "%s\n" "#define USER_WORD uintptr_t" >>confdefs.h
5302
5303 printf "%s\n" "#define EXECUTABLE_BASE 0x0f000000" >>confdefs.h
5304
5305 printf "%s\n" "#define INTERPRETER_BASE 0x1f000000" >>confdefs.h
5306
5307 printf "%s\n" "#define STACK_GROWS_DOWNWARDS 1" >>confdefs.h
5308
5309 printf "%s\n" "#define CLONE_SYSCALL __NR_clone" >>confdefs.h
5310
5311
5312ac_fn_check_decl "$LINENO" "__NR_clone3" "ac_cv_have_decl___NR_clone3" "
5313#include <asm/unistd.h>
5314
5315" "$ac_c_undeclared_builtin_options" "CFLAGS"
5316if test "x$ac_cv_have_decl___NR_clone3" = xyes
5317then :
5318 printf "%s\n" "#define CLONE3_SYSCALL __NR_clone3" >>confdefs.h
5319
5320fi
5321
5322 LOADERFLAGS="$LOADERFLAGS $LDPREFIX-Ttext=0x20000000"
5323 exec_loader=loader-armeabi.s
5324else $as_nop
5325 as_fn_error $? "Missing \`uregs' in user_regs_struct" "$LINENO" 5
5326fi
5327 ;; #(
5328 mipsel*linux*) :
5329 printf "%s\n" "#define SYSCALL_HEADER <asm/unistd.h>" >>confdefs.h
5330
5331 printf "%s\n" "#define USER_HEADER \"mipsel-user.h\"" >>confdefs.h
5332
5333 printf "%s\n" "#define USER_REGS_STRUCT struct mipsel_regs" >>confdefs.h
5334
5335 printf "%s\n" "#define SYSCALL_NUM_REG gregs[2]" >>confdefs.h
5336 # v0
5337 printf "%s\n" "#define SYSCALL_RET_REG gregs[4]" >>confdefs.h
5338 # a0
5339 printf "%s\n" "#define SYSCALL_ARG_REG gregs[4]" >>confdefs.h
5340 # a0
5341 printf "%s\n" "#define SYSCALL_ARG1_REG gregs[5]" >>confdefs.h
5342 # a1
5343 printf "%s\n" "#define STACK_POINTER gregs[29]" >>confdefs.h
5344 # sp
5345 printf "%s\n" "#define EXEC_SYSCALL __NR_execve" >>confdefs.h
5346
5347 printf "%s\n" "#define USER_WORD uintptr_t" >>confdefs.h
5348
5349 printf "%s\n" "#define EXECUTABLE_BASE 0x0f000000" >>confdefs.h
5350
5351 printf "%s\n" "#define INTERPRETER_BASE 0x1f000000" >>confdefs.h
5352
5353 printf "%s\n" "#define STACK_GROWS_DOWNWARDS 1" >>confdefs.h
5354
5355 printf "%s\n" "#define CLONE_SYSCALL __NR_clone" >>confdefs.h
5356
5357 ac_fn_check_decl "$LINENO" "_MIPS_SIM" "ac_cv_have_decl__MIPS_SIM" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5358if test "x$ac_cv_have_decl__MIPS_SIM" = xyes
5359then :
5360
5361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MIPS NABI calling convention is used" >&5
5362printf %s "checking whether MIPS NABI calling convention is used... " >&6; }
5363if test ${exec_cv_mips_nabi+y}
5364then :
5365 printf %s "(cached) " >&6
5366else $as_nop
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h. */
5369
5370#include <sgidefs.h>
5371
5372int
5373main (void)
5374{
5375
5376#ifndef __mips64__
5377#if _MIPS_SIM == _ABIO32
5378OABI in use.
5379#endif /* _MIPS_SIM == _ABIO32 */
5380#endif /* !__mips64__ */
5381
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"
5387then :
5388 exec_cv_mips_nabi=yes
5389else $as_nop
5390 exec_cv_mips_nabi=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5393fi
5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_mips_nabi" >&5
5395printf "%s\n" "$exec_cv_mips_nabi" >&6; }
5396
5397if test "x$exec_cv_mips_nabi" != "xno"
5398then :
5399
5400printf "%s\n" "#define MIPS_NABI 1" >>confdefs.h
5401
5402else $as_nop
5403 OBJS="$OBJS mipsfpu.o"
5404fi
5405
5406else $as_nop
5407 as_fn_error $? "_MIPS_SIM could not be determined" "$LINENO" 5,
5408 [
5409#include <sgidefs.h>
5410]
5411fi
5412
5413ac_fn_check_decl "$LINENO" "__NR_clone3" "ac_cv_have_decl___NR_clone3" "
5414#include <asm/unistd.h>
5415
5416" "$ac_c_undeclared_builtin_options" "CFLAGS"
5417if test "x$ac_cv_have_decl___NR_clone3" = xyes
5418then :
5419 printf "%s\n" "#define CLONE3_SYSCALL __NR_clone3" >>confdefs.h
5420
5421fi
5422
5423 LOADERFLAGS="$LOADERFLAGS $LDPREFIX-Ttext=0x20000000"
5424 is_mips=yes
5425 exec_loader=loader-mipsel.s ;; #(
5426 mips64el*linux*) :
5427 printf "%s\n" "#define SYSCALL_HEADER <asm/unistd.h>" >>confdefs.h
5428
5429 printf "%s\n" "#define USER_HEADER \"mipsel-user.h\"" >>confdefs.h
5430
5431 printf "%s\n" "#define USER_REGS_STRUCT struct mipsel_regs" >>confdefs.h
5432
5433 printf "%s\n" "#define SYSCALL_NUM_REG gregs[2]" >>confdefs.h
5434 # v0
5435 printf "%s\n" "#define SYSCALL_RET_REG gregs[4]" >>confdefs.h
5436 # a0
5437 printf "%s\n" "#define SYSCALL_ARG_REG gregs[4]" >>confdefs.h
5438 # a0
5439 printf "%s\n" "#define SYSCALL_ARG1_REG gregs[5]" >>confdefs.h
5440 # a1
5441 printf "%s\n" "#define STACK_POINTER gregs[29]" >>confdefs.h
5442 # sp
5443 printf "%s\n" "#define EXEC_SYSCALL __NR_execve" >>confdefs.h
5444
5445 printf "%s\n" "#define USER_WORD uintptr_t" >>confdefs.h
5446
5447 printf "%s\n" "#define EXEC_64 1" >>confdefs.h
5448
5449 printf "%s\n" "#define EXECUTABLE_BASE 0x400000" >>confdefs.h
5450
5451 printf "%s\n" "#define INTERPRETER_BASE 0x3f00000000" >>confdefs.h
5452
5453 printf "%s\n" "#define STACK_GROWS_DOWNWARDS 1" >>confdefs.h
5454
5455 printf "%s\n" "#define CLONE_SYSCALL __NR_clone" >>confdefs.h
5456
5457
5458ac_fn_check_decl "$LINENO" "__NR_clone3" "ac_cv_have_decl___NR_clone3" "
5459#include <asm/unistd.h>
5460
5461" "$ac_c_undeclared_builtin_options" "CFLAGS"
5462if test "x$ac_cv_have_decl___NR_clone3" = xyes
5463then :
5464 printf "%s\n" "#define CLONE3_SYSCALL __NR_clone3" >>confdefs.h
5465
5466fi
5467
5468
5469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MIPS NABI calling convention is used" >&5
5470printf %s "checking whether MIPS NABI calling convention is used... " >&6; }
5471if test ${exec_cv_mips_nabi+y}
5472then :
5473 printf %s "(cached) " >&6
5474else $as_nop
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h. */
5477
5478#include <sgidefs.h>
5479
5480int
5481main (void)
5482{
5483
5484#ifndef __mips64__
5485#if _MIPS_SIM == _ABIO32
5486OABI in use.
5487#endif /* _MIPS_SIM == _ABIO32 */
5488#endif /* !__mips64__ */
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"
5495then :
5496 exec_cv_mips_nabi=yes
5497else $as_nop
5498 exec_cv_mips_nabi=no
5499fi
5500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5501fi
5502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_mips_nabi" >&5
5503printf "%s\n" "$exec_cv_mips_nabi" >&6; }
5504
5505if test "x$exec_cv_mips_nabi" != "xno"
5506then :
5507
5508printf "%s\n" "#define MIPS_NABI 1" >>confdefs.h
5509
5510else $as_nop
5511 OBJS="$OBJS mipsfpu.o"
5512fi
5513
5514 LOADERFLAGS="$LOADERFLAGS $LDPREFIX-Ttext=0x3e00000000"
5515 is_mips=yes
5516 exec_loader=loader-mips64el.s ;; #(
5517 *) :
5518 as_fn_error $? "Please port libexec to $host" "$LINENO" 5 ;; #(
5519 *) :
5520 ;;
5521esac
5522
5523MIPS_N32=$exec_cv_mips_nabi
5524
5525
5526
5527
5528
5529# Make the assembler optimize for code size. Don't do this on MIPS,
5530# as the assembler code manages branch delays manually.
5531
5532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether as understands -O" >&5
5533printf %s "checking whether as understands -O... " >&6; }
5534if test ${exec_cv_as_O+y}
5535then :
5536 printf %s "(cached) " >&6
5537else $as_nop
5538 exec_cv_as_O=no
5539 cat <<_ACEOF >conftest.s
5540 .section text
5541 .global _start
5542_start:
5543
5544_ACEOF
5545 $AS $ASFLAGS -O conftest.s -o conftest.$OBJEXT \
5546 >&5 2>&1 \
5547 && exec_cv_as_O=yes
5548 rm -f conftest.s conftest.$OBJEXT
5549fi
5550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_as_O" >&5
5551printf "%s\n" "$exec_cv_as_O" >&6; }
5552
5553if test "$exec_cv_as_O" = "yes" \
5554 && test "$is_mips" != "yes"
5555then :
5556 ASFLAGS="$ASFLAGS -O"
5557fi
5558
5559# Make the assembler generate debug information.
5560
5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether as understands -g" >&5
5562printf %s "checking whether as understands -g... " >&6; }
5563if test ${exec_cv_as_g+y}
5564then :
5565 printf %s "(cached) " >&6
5566else $as_nop
5567 exec_cv_as_g=no
5568 cat <<_ACEOF >conftest.s
5569 .section text
5570 .global _start
5571_start:
5572
5573_ACEOF
5574 $AS $ASFLAGS -g conftest.s -o conftest.$OBJEXT \
5575 >&5 2>&1 \
5576 && exec_cv_as_g=yes
5577 rm -f conftest.s conftest.$OBJEXT
5578fi
5579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_as_g" >&5
5580printf "%s\n" "$exec_cv_as_g" >&6; }
5581if test "$exec_cv_as_g" = "yes"
5582then :
5583 ASFLAGS="$ASFLAGS -g"
5584fi
5585
5586# Check for the ability to automatically generate dependencies for C
5587# source files.
5588AUTO_DEPEND=no
5589if test "x$GCC" = xyes
5590then :
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
5592printf %s "checking whether gcc understands -MMD -MF... " >&6; }
5593if test ${exec_cv_autodepend+y}
5594then :
5595 printf %s "(cached) " >&6
5596else $as_nop
5597 SAVE_CFLAGS="$CFLAGS"
5598 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h. */
5601
5602int
5603main (void)
5604{
5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_compile "$LINENO"
5611then :
5612 exec_cv_autodepend=yes
5613else $as_nop
5614 exec_cv_autodepend=no
5615fi
5616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5617 CFLAGS="$SAVE_CFLAGS"
5618 test -f deps.d || emacs_cv_autodepend=no
5619 rm -rf deps.d
5620fi
5621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_autodepend" >&5
5622printf "%s\n" "$exec_cv_autodepend" >&6; }
5623 if test "x$exec_cv_autodepend" = xyes
5624then :
5625 AUTO_DEPEND=yes
5626 as_dir=deps; as_fn_mkdir_p
5627fi
5628fi
5629
5630# Now check for some other stuff.
5631
5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'find' args to delete a file" >&5
5633printf %s "checking for 'find' args to delete a file... " >&6; }
5634if test ${exec_cv_find_delete+y}
5635then :
5636 printf %s "(cached) " >&6
5637else $as_nop
5638 if touch conftest.tmp && find conftest.tmp -delete 2>/dev/null &&
5639 test ! -f conftest.tmp
5640then :
5641 exec_cv_find_delete="-delete"
5642else $as_nop
5643 exec_cv_find_delete="-exec rm -f {} ';'"
5644fi
5645fi
5646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $exec_cv_find_delete" >&5
5647printf "%s\n" "$exec_cv_find_delete" >&6; }
5648FIND_DELETE=$exec_cv_find_delete
5649
5650
5651ac_config_headers="$ac_config_headers config.h"
5652
5653ac_config_files="$ac_config_files Makefile config-mips.m4"
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664cat >confcache <<\_ACEOF
5665# This file is a shell script that caches the results of configure
5666# tests run on this system so they can be shared between configure
5667# scripts and configure runs, see configure's option --config-cache.
5668# It is not useful on other systems. If it contains results you don't
5669# want to keep, you may remove or edit it.
5670#
5671# config.status only pays attention to the cache file if you give it
5672# the --recheck option to rerun configure.
5673#
5674# `ac_cv_env_foo' variables (set or unset) will be overridden when
5675# loading this file, other *unset* `ac_cv_foo' will be assigned the
5676# following values.
5677
5678_ACEOF
5679
5680# The following way of writing the cache mishandles newlines in values,
5681# but we know of no workaround that is simple, portable, and efficient.
5682# So, we kill variables containing newlines.
5683# Ultrix sh set writes to stderr and can't be redirected directly,
5684# and sets the high bit in the cache file unless we assign to the vars.
5685(
5686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5687 eval ac_val=\$$ac_var
5688 case $ac_val in #(
5689 *${as_nl}*)
5690 case $ac_var in #(
5691 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5692printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5693 esac
5694 case $ac_var in #(
5695 _ | IFS | as_nl) ;; #(
5696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5697 *) { eval $ac_var=; unset $ac_var;} ;;
5698 esac ;;
5699 esac
5700 done
5701
5702 (set) 2>&1 |
5703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5704 *${as_nl}ac_space=\ *)
5705 # `set' does not quote correctly, so add quotes: double-quote
5706 # substitution turns \\\\ into \\, and sed turns \\ into \.
5707 sed -n \
5708 "s/'/'\\\\''/g;
5709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5710 ;; #(
5711 *)
5712 # `set' quotes correctly as required by POSIX, so do not add quotes.
5713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5714 ;;
5715 esac |
5716 sort
5717) |
5718 sed '
5719 /^ac_cv_env_/b end
5720 t clear
5721 :clear
5722 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5723 t end
5724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5725 :end' >>confcache
5726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5727 if test -w "$cache_file"; then
5728 if test "x$cache_file" != "x/dev/null"; then
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5730printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5731 if test ! -f "$cache_file" || test -h "$cache_file"; then
5732 cat confcache >"$cache_file"
5733 else
5734 case $cache_file in #(
5735 */* | ?:*)
5736 mv -f confcache "$cache_file"$$ &&
5737 mv -f "$cache_file"$$ "$cache_file" ;; #(
5738 *)
5739 mv -f confcache "$cache_file" ;;
5740 esac
5741 fi
5742 fi
5743 else
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5745printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5746 fi
5747fi
5748rm -f confcache
5749
5750test "x$prefix" = xNONE && prefix=$ac_default_prefix
5751# Let make expand exec_prefix.
5752test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5753
5754DEFS=-DHAVE_CONFIG_H
5755
5756ac_libobjs=
5757ac_ltlibobjs=
5758U=
5759for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5760 # 1. Remove the extension, and $U if already installed.
5761 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5762 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5763 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5764 # will be set to the directory where LIBOBJS objects are built.
5765 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5766 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5767done
5768LIBOBJS=$ac_libobjs
5769
5770LTLIBOBJS=$ac_ltlibobjs
5771
5772
5773
5774
5775: "${CONFIG_STATUS=./config.status}"
5776ac_write_fail=0
5777ac_clean_files_save=$ac_clean_files
5778ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5780printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5781as_write_fail=0
5782cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5783#! $SHELL
5784# Generated by $as_me.
5785# Run this file to recreate the current configuration.
5786# Compiler output produced by configure, useful for debugging
5787# configure, is in config.log if it exists.
5788
5789debug=false
5790ac_cs_recheck=false
5791ac_cs_silent=false
5792
5793SHELL=\${CONFIG_SHELL-$SHELL}
5794export SHELL
5795_ASEOF
5796cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5797## -------------------- ##
5798## M4sh Initialization. ##
5799## -------------------- ##
5800
5801# Be more Bourne compatible
5802DUALCASE=1; export DUALCASE # for MKS sh
5803as_nop=:
5804if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5805then :
5806 emulate sh
5807 NULLCMD=:
5808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5809 # is contrary to our usage. Disable this feature.
5810 alias -g '${1+"$@"}'='"$@"'
5811 setopt NO_GLOB_SUBST
5812else $as_nop
5813 case `(set -o) 2>/dev/null` in #(
5814 *posix*) :
5815 set -o posix ;; #(
5816 *) :
5817 ;;
5818esac
5819fi
5820
5821
5822
5823# Reset variables that may have inherited troublesome values from
5824# the environment.
5825
5826# IFS needs to be set, to space, tab, and newline, in precisely that order.
5827# (If _AS_PATH_WALK were called with IFS unset, it would have the
5828# side effect of setting IFS to empty, thus disabling word splitting.)
5829# Quoting is to prevent editors from complaining about space-tab.
5830as_nl='
5831'
5832export as_nl
5833IFS=" "" $as_nl"
5834
5835PS1='$ '
5836PS2='> '
5837PS4='+ '
5838
5839# Ensure predictable behavior from utilities with locale-dependent output.
5840LC_ALL=C
5841export LC_ALL
5842LANGUAGE=C
5843export LANGUAGE
5844
5845# We cannot yet rely on "unset" to work, but we need these variables
5846# to be unset--not just set to an empty or harmless value--now, to
5847# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5848# also avoids known problems related to "unset" and subshell syntax
5849# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5850for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5851do eval test \${$as_var+y} \
5852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5853done
5854
5855# Ensure that fds 0, 1, and 2 are open.
5856if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5857if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5858if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5859
5860# The user is always right.
5861if ${PATH_SEPARATOR+false} :; then
5862 PATH_SEPARATOR=:
5863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5865 PATH_SEPARATOR=';'
5866 }
5867fi
5868
5869
5870# Find who we are. Look in the path if we contain no directory separator.
5871as_myself=
5872case $0 in #((
5873 *[\\/]* ) as_myself=$0 ;;
5874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 case $as_dir in #(((
5879 '') as_dir=./ ;;
5880 */) ;;
5881 *) as_dir=$as_dir/ ;;
5882 esac
5883 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5884 done
5885IFS=$as_save_IFS
5886
5887 ;;
5888esac
5889# We did not find ourselves, most probably we were run as `sh COMMAND'
5890# in which case we are not to be found in the path.
5891if test "x$as_myself" = x; then
5892 as_myself=$0
5893fi
5894if test ! -f "$as_myself"; then
5895 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5896 exit 1
5897fi
5898
5899
5900
5901# as_fn_error STATUS ERROR [LINENO LOG_FD]
5902# ----------------------------------------
5903# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5904# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5905# script with STATUS, using 1 if that was 0.
5906as_fn_error ()
5907{
5908 as_status=$1; test $as_status -eq 0 && as_status=1
5909 if test "$4"; then
5910 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5912 fi
5913 printf "%s\n" "$as_me: error: $2" >&2
5914 as_fn_exit $as_status
5915} # as_fn_error
5916
5917
5918
5919# as_fn_set_status STATUS
5920# -----------------------
5921# Set $? to STATUS, without forking.
5922as_fn_set_status ()
5923{
5924 return $1
5925} # as_fn_set_status
5926
5927# as_fn_exit STATUS
5928# -----------------
5929# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5930as_fn_exit ()
5931{
5932 set +e
5933 as_fn_set_status $1
5934 exit $1
5935} # as_fn_exit
5936
5937# as_fn_unset VAR
5938# ---------------
5939# Portably unset VAR.
5940as_fn_unset ()
5941{
5942 { eval $1=; unset $1;}
5943}
5944as_unset=as_fn_unset
5945
5946# as_fn_append VAR VALUE
5947# ----------------------
5948# Append the text in VALUE to the end of the definition contained in VAR. Take
5949# advantage of any shell optimizations that allow amortized linear growth over
5950# repeated appends, instead of the typical quadratic growth present in naive
5951# implementations.
5952if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5953then :
5954 eval 'as_fn_append ()
5955 {
5956 eval $1+=\$2
5957 }'
5958else $as_nop
5959 as_fn_append ()
5960 {
5961 eval $1=\$$1\$2
5962 }
5963fi # as_fn_append
5964
5965# as_fn_arith ARG...
5966# ------------------
5967# Perform arithmetic evaluation on the ARGs, and store the result in the
5968# global $as_val. Take advantage of shells that can avoid forks. The arguments
5969# must be portable across $(()) and expr.
5970if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5971then :
5972 eval 'as_fn_arith ()
5973 {
5974 as_val=$(( $* ))
5975 }'
5976else $as_nop
5977 as_fn_arith ()
5978 {
5979 as_val=`expr "$@" || test $? -eq 1`
5980 }
5981fi # as_fn_arith
5982
5983
5984if expr a : '\(a\)' >/dev/null 2>&1 &&
5985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5986 as_expr=expr
5987else
5988 as_expr=false
5989fi
5990
5991if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5992 as_basename=basename
5993else
5994 as_basename=false
5995fi
5996
5997if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5998 as_dirname=dirname
5999else
6000 as_dirname=false
6001fi
6002
6003as_me=`$as_basename -- "$0" ||
6004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6005 X"$0" : 'X\(//\)$' \| \
6006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6007printf "%s\n" X/"$0" |
6008 sed '/^.*\/\([^/][^/]*\)\/*$/{
6009 s//\1/
6010 q
6011 }
6012 /^X\/\(\/\/\)$/{
6013 s//\1/
6014 q
6015 }
6016 /^X\/\(\/\).*/{
6017 s//\1/
6018 q
6019 }
6020 s/.*/./; q'`
6021
6022# Avoid depending upon Character Ranges.
6023as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6024as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6025as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6026as_cr_digits='0123456789'
6027as_cr_alnum=$as_cr_Letters$as_cr_digits
6028
6029
6030# Determine whether it's possible to make 'echo' print without a newline.
6031# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6032# for compatibility with existing Makefiles.
6033ECHO_C= ECHO_N= ECHO_T=
6034case `echo -n x` in #(((((
6035-n*)
6036 case `echo 'xy\c'` in
6037 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6038 xy) ECHO_C='\c';;
6039 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6040 ECHO_T=' ';;
6041 esac;;
6042*)
6043 ECHO_N='-n';;
6044esac
6045
6046# For backward compatibility with old third-party macros, we provide
6047# the shell variables $as_echo and $as_echo_n. New code should use
6048# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6049as_echo='printf %s\n'
6050as_echo_n='printf %s'
6051
6052rm -f conf$$ conf$$.exe conf$$.file
6053if test -d conf$$.dir; then
6054 rm -f conf$$.dir/conf$$.file
6055else
6056 rm -f conf$$.dir
6057 mkdir conf$$.dir 2>/dev/null
6058fi
6059if (echo >conf$$.file) 2>/dev/null; then
6060 if ln -s conf$$.file conf$$ 2>/dev/null; then
6061 as_ln_s='ln -s'
6062 # ... but there are two gotchas:
6063 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6064 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6065 # In both cases, we have to default to `cp -pR'.
6066 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6067 as_ln_s='cp -pR'
6068 elif ln conf$$.file conf$$ 2>/dev/null; then
6069 as_ln_s=ln
6070 else
6071 as_ln_s='cp -pR'
6072 fi
6073else
6074 as_ln_s='cp -pR'
6075fi
6076rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6077rmdir conf$$.dir 2>/dev/null
6078
6079
6080# as_fn_mkdir_p
6081# -------------
6082# Create "$as_dir" as a directory, including parents if necessary.
6083as_fn_mkdir_p ()
6084{
6085
6086 case $as_dir in #(
6087 -*) as_dir=./$as_dir;;
6088 esac
6089 test -d "$as_dir" || eval $as_mkdir_p || {
6090 as_dirs=
6091 while :; do
6092 case $as_dir in #(
6093 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6094 *) as_qdir=$as_dir;;
6095 esac
6096 as_dirs="'$as_qdir' $as_dirs"
6097 as_dir=`$as_dirname -- "$as_dir" ||
6098$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6099 X"$as_dir" : 'X\(//\)[^/]' \| \
6100 X"$as_dir" : 'X\(//\)$' \| \
6101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6102printf "%s\n" X"$as_dir" |
6103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6104 s//\1/
6105 q
6106 }
6107 /^X\(\/\/\)[^/].*/{
6108 s//\1/
6109 q
6110 }
6111 /^X\(\/\/\)$/{
6112 s//\1/
6113 q
6114 }
6115 /^X\(\/\).*/{
6116 s//\1/
6117 q
6118 }
6119 s/.*/./; q'`
6120 test -d "$as_dir" && break
6121 done
6122 test -z "$as_dirs" || eval "mkdir $as_dirs"
6123 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6124
6125
6126} # as_fn_mkdir_p
6127if mkdir -p . 2>/dev/null; then
6128 as_mkdir_p='mkdir -p "$as_dir"'
6129else
6130 test -d ./-p && rmdir ./-p
6131 as_mkdir_p=false
6132fi
6133
6134
6135# as_fn_executable_p FILE
6136# -----------------------
6137# Test if FILE is an executable regular file.
6138as_fn_executable_p ()
6139{
6140 test -f "$1" && test -x "$1"
6141} # as_fn_executable_p
6142as_test_x='test -x'
6143as_executable_p=as_fn_executable_p
6144
6145# Sed expression to map a string onto a valid CPP name.
6146as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6147
6148# Sed expression to map a string onto a valid variable name.
6149as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6150
6151
6152exec 6>&1
6153## ----------------------------------- ##
6154## Main body of $CONFIG_STATUS script. ##
6155## ----------------------------------- ##
6156_ASEOF
6157test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6158
6159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6160# Save the log message, to keep $0 and so on meaningful, and to
6161# report actual input values of CONFIG_FILES etc. instead of their
6162# values after options handling.
6163ac_log="
6164This file was extended by libexec $as_me 30.0.50, which was
6165generated by GNU Autoconf 2.71. Invocation command line was
6166
6167 CONFIG_FILES = $CONFIG_FILES
6168 CONFIG_HEADERS = $CONFIG_HEADERS
6169 CONFIG_LINKS = $CONFIG_LINKS
6170 CONFIG_COMMANDS = $CONFIG_COMMANDS
6171 $ $0 $@
6172
6173on `(hostname || uname -n) 2>/dev/null | sed 1q`
6174"
6175
6176_ACEOF
6177
6178case $ac_config_files in *"
6179"*) set x $ac_config_files; shift; ac_config_files=$*;;
6180esac
6181
6182case $ac_config_headers in *"
6183"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6184esac
6185
6186
6187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6188# Files that config.status was made for.
6189config_files="$ac_config_files"
6190config_headers="$ac_config_headers"
6191
6192_ACEOF
6193
6194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6195ac_cs_usage="\
6196\`$as_me' instantiates files and other configuration actions
6197from templates according to the current configuration. Unless the files
6198and actions are specified as TAGs, all are instantiated by default.
6199
6200Usage: $0 [OPTION]... [TAG]...
6201
6202 -h, --help print this help, then exit
6203 -V, --version print version number and configuration settings, then exit
6204 --config print configuration, then exit
6205 -q, --quiet, --silent
6206 do not print progress messages
6207 -d, --debug don't remove temporary files
6208 --recheck update $as_me by reconfiguring in the same conditions
6209 --file=FILE[:TEMPLATE]
6210 instantiate the configuration file FILE
6211 --header=FILE[:TEMPLATE]
6212 instantiate the configuration header FILE
6213
6214Configuration files:
6215$config_files
6216
6217Configuration headers:
6218$config_headers
6219
6220Report bugs to <bug-gnu-emacs@gnu.org>.
6221libexec home page: <https://www.gnu.org/software/emacs/>."
6222
6223_ACEOF
6224ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6225ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6227ac_cs_config='$ac_cs_config_escaped'
6228ac_cs_version="\\
6229libexec config.status 30.0.50
6230configured by $0, generated by GNU Autoconf 2.71,
6231 with options \\"\$ac_cs_config\\"
6232
6233Copyright (C) 2021 Free Software Foundation, Inc.
6234This config.status script is free software; the Free Software Foundation
6235gives unlimited permission to copy, distribute and modify it."
6236
6237ac_pwd='$ac_pwd'
6238srcdir='$srcdir'
6239INSTALL='$INSTALL'
6240test -n "\$AWK" || AWK=awk
6241_ACEOF
6242
6243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6244# The default lists apply if the user does not specify any file.
6245ac_need_defaults=:
6246while test $# != 0
6247do
6248 case $1 in
6249 --*=?*)
6250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6252 ac_shift=:
6253 ;;
6254 --*=)
6255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6256 ac_optarg=
6257 ac_shift=:
6258 ;;
6259 *)
6260 ac_option=$1
6261 ac_optarg=$2
6262 ac_shift=shift
6263 ;;
6264 esac
6265
6266 case $ac_option in
6267 # Handling of the options.
6268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6269 ac_cs_recheck=: ;;
6270 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6271 printf "%s\n" "$ac_cs_version"; exit ;;
6272 --config | --confi | --conf | --con | --co | --c )
6273 printf "%s\n" "$ac_cs_config"; exit ;;
6274 --debug | --debu | --deb | --de | --d | -d )
6275 debug=: ;;
6276 --file | --fil | --fi | --f )
6277 $ac_shift
6278 case $ac_optarg in
6279 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6280 '') as_fn_error $? "missing file argument" ;;
6281 esac
6282 as_fn_append CONFIG_FILES " '$ac_optarg'"
6283 ac_need_defaults=false;;
6284 --header | --heade | --head | --hea )
6285 $ac_shift
6286 case $ac_optarg in
6287 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6288 esac
6289 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6290 ac_need_defaults=false;;
6291 --he | --h)
6292 # Conflict between --help and --header
6293 as_fn_error $? "ambiguous option: \`$1'
6294Try \`$0 --help' for more information.";;
6295 --help | --hel | -h )
6296 printf "%s\n" "$ac_cs_usage"; exit ;;
6297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6299 ac_cs_silent=: ;;
6300
6301 # This is an error.
6302 -*) as_fn_error $? "unrecognized option: \`$1'
6303Try \`$0 --help' for more information." ;;
6304
6305 *) as_fn_append ac_config_targets " $1"
6306 ac_need_defaults=false ;;
6307
6308 esac
6309 shift
6310done
6311
6312ac_configure_extra_args=
6313
6314if $ac_cs_silent; then
6315 exec 6>/dev/null
6316 ac_configure_extra_args="$ac_configure_extra_args --silent"
6317fi
6318
6319_ACEOF
6320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6321if \$ac_cs_recheck; then
6322 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6323 shift
6324 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6325 CONFIG_SHELL='$SHELL'
6326 export CONFIG_SHELL
6327 exec "\$@"
6328fi
6329
6330_ACEOF
6331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6332exec 5>>config.log
6333{
6334 echo
6335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6336## Running $as_me. ##
6337_ASBOX
6338 printf "%s\n" "$ac_log"
6339} >&5
6340
6341_ACEOF
6342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6343_ACEOF
6344
6345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6346
6347# Handling of arguments.
6348for ac_config_target in $ac_config_targets
6349do
6350 case $ac_config_target in
6351 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6352 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6353 "config-mips.m4") CONFIG_FILES="$CONFIG_FILES config-mips.m4" ;;
6354
6355 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6356 esac
6357done
6358
6359
6360# If the user did not use the arguments to specify the items to instantiate,
6361# then the envvar interface is used. Set only those that are not.
6362# We use the long form for the default assignment because of an extremely
6363# bizarre bug on SunOS 4.1.3.
6364if $ac_need_defaults; then
6365 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6366 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6367fi
6368
6369# Have a temporary directory for convenience. Make it in the build tree
6370# simply because there is no reason against having it here, and in addition,
6371# creating and moving files from /tmp can sometimes cause problems.
6372# Hook for its removal unless debugging.
6373# Note that there is a small window in which the directory will not be cleaned:
6374# after its creation but before its name has been assigned to `$tmp'.
6375$debug ||
6376{
6377 tmp= ac_tmp=
6378 trap 'exit_status=$?
6379 : "${ac_tmp:=$tmp}"
6380 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6381' 0
6382 trap 'as_fn_exit 1' 1 2 13 15
6383}
6384# Create a (secure) tmp directory for tmp files.
6385
6386{
6387 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6388 test -d "$tmp"
6389} ||
6390{
6391 tmp=./conf$$-$RANDOM
6392 (umask 077 && mkdir "$tmp")
6393} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6394ac_tmp=$tmp
6395
6396# Set up the scripts for CONFIG_FILES section.
6397# No need to generate them if there are no CONFIG_FILES.
6398# This happens for instance with `./config.status config.h'.
6399if test -n "$CONFIG_FILES"; then
6400
6401
6402ac_cr=`echo X | tr X '\015'`
6403# On cygwin, bash can eat \r inside `` if the user requested igncr.
6404# But we know of no other shell where ac_cr would be empty at this
6405# point, so we can use a bashism as a fallback.
6406if test "x$ac_cr" = x; then
6407 eval ac_cr=\$\'\\r\'
6408fi
6409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6411 ac_cs_awk_cr='\\r'
6412else
6413 ac_cs_awk_cr=$ac_cr
6414fi
6415
6416echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6417_ACEOF
6418
6419
6420{
6421 echo "cat >conf$$subs.awk <<_ACEOF" &&
6422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6423 echo "_ACEOF"
6424} >conf$$subs.sh ||
6425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6426ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6427ac_delim='%!_!# '
6428for ac_last_try in false false false false false :; do
6429 . ./conf$$subs.sh ||
6430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6431
6432 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6433 if test $ac_delim_n = $ac_delim_num; then
6434 break
6435 elif $ac_last_try; then
6436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6437 else
6438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6439 fi
6440done
6441rm -f conf$$subs.sh
6442
6443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6444cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6445_ACEOF
6446sed -n '
6447h
6448s/^/S["/; s/!.*/"]=/
6449p
6450g
6451s/^[^!]*!//
6452:repl
6453t repl
6454s/'"$ac_delim"'$//
6455t delim
6456:nl
6457h
6458s/\(.\{148\}\)..*/\1/
6459t more1
6460s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6461p
6462n
6463b repl
6464:more1
6465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6466p
6467g
6468s/.\{148\}//
6469t nl
6470:delim
6471h
6472s/\(.\{148\}\)..*/\1/
6473t more2
6474s/["\\]/\\&/g; s/^/"/; s/$/"/
6475p
6476b
6477:more2
6478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6479p
6480g
6481s/.\{148\}//
6482t delim
6483' <conf$$subs.awk | sed '
6484/^[^""]/{
6485 N
6486 s/\n//
6487}
6488' >>$CONFIG_STATUS || ac_write_fail=1
6489rm -f conf$$subs.awk
6490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6491_ACAWK
6492cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6493 for (key in S) S_is_set[key] = 1
6494 FS = ""
6495
6496}
6497{
6498 line = $ 0
6499 nfields = split(line, field, "@")
6500 substed = 0
6501 len = length(field[1])
6502 for (i = 2; i < nfields; i++) {
6503 key = field[i]
6504 keylen = length(key)
6505 if (S_is_set[key]) {
6506 value = S[key]
6507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6508 len += length(value) + length(field[++i])
6509 substed = 1
6510 } else
6511 len += 1 + keylen
6512 }
6513
6514 print line
6515}
6516
6517_ACAWK
6518_ACEOF
6519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6520if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6521 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6522else
6523 cat
6524fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6525 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6526_ACEOF
6527
6528# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6529# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6530# trailing colons and then remove the whole line if VPATH becomes empty
6531# (actually we leave an empty line to preserve line numbers).
6532if test "x$srcdir" = x.; then
6533 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6534h
6535s///
6536s/^/:/
6537s/[ ]*$/:/
6538s/:\$(srcdir):/:/g
6539s/:\${srcdir}:/:/g
6540s/:@srcdir@:/:/g
6541s/^:*//
6542s/:*$//
6543x
6544s/\(=[ ]*\).*/\1/
6545G
6546s/\n//
6547s/^[^=]*=[ ]*$//
6548}'
6549fi
6550
6551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6552fi # test -n "$CONFIG_FILES"
6553
6554# Set up the scripts for CONFIG_HEADERS section.
6555# No need to generate them if there are no CONFIG_HEADERS.
6556# This happens for instance with `./config.status Makefile'.
6557if test -n "$CONFIG_HEADERS"; then
6558cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6559BEGIN {
6560_ACEOF
6561
6562# Transform confdefs.h into an awk script `defines.awk', embedded as
6563# here-document in config.status, that substitutes the proper values into
6564# config.h.in to produce config.h.
6565
6566# Create a delimiter string that does not exist in confdefs.h, to ease
6567# handling of long lines.
6568ac_delim='%!_!# '
6569for ac_last_try in false false :; do
6570 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6571 if test -z "$ac_tt"; then
6572 break
6573 elif $ac_last_try; then
6574 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6575 else
6576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6577 fi
6578done
6579
6580# For the awk script, D is an array of macro values keyed by name,
6581# likewise P contains macro parameters if any. Preserve backslash
6582# newline sequences.
6583
6584ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6585sed -n '
6586s/.\{148\}/&'"$ac_delim"'/g
6587t rset
6588:rset
6589s/^[ ]*#[ ]*define[ ][ ]*/ /
6590t def
6591d
6592:def
6593s/\\$//
6594t bsnl
6595s/["\\]/\\&/g
6596s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6597D["\1"]=" \3"/p
6598s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6599d
6600:bsnl
6601s/["\\]/\\&/g
6602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6603D["\1"]=" \3\\\\\\n"\\/p
6604t cont
6605s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6606t cont
6607d
6608:cont
6609n
6610s/.\{148\}/&'"$ac_delim"'/g
6611t clear
6612:clear
6613s/\\$//
6614t bsnlc
6615s/["\\]/\\&/g; s/^/"/; s/$/"/p
6616d
6617:bsnlc
6618s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6619b cont
6620' <confdefs.h | sed '
6621s/'"$ac_delim"'/"\\\
6622"/g' >>$CONFIG_STATUS || ac_write_fail=1
6623
6624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6625 for (key in D) D_is_set[key] = 1
6626 FS = ""
6627}
6628/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6629 line = \$ 0
6630 split(line, arg, " ")
6631 if (arg[1] == "#") {
6632 defundef = arg[2]
6633 mac1 = arg[3]
6634 } else {
6635 defundef = substr(arg[1], 2)
6636 mac1 = arg[2]
6637 }
6638 split(mac1, mac2, "(") #)
6639 macro = mac2[1]
6640 prefix = substr(line, 1, index(line, defundef) - 1)
6641 if (D_is_set[macro]) {
6642 # Preserve the white space surrounding the "#".
6643 print prefix "define", macro P[macro] D[macro]
6644 next
6645 } else {
6646 # Replace #undef with comments. This is necessary, for example,
6647 # in the case of _POSIX_SOURCE, which is predefined and required
6648 # on some systems where configure will not decide to define it.
6649 if (defundef == "undef") {
6650 print "/*", prefix defundef, macro, "*/"
6651 next
6652 }
6653 }
6654}
6655{ print }
6656_ACAWK
6657_ACEOF
6658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6659 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6660fi # test -n "$CONFIG_HEADERS"
6661
6662
6663eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6664shift
6665for ac_tag
6666do
6667 case $ac_tag in
6668 :[FHLC]) ac_mode=$ac_tag; continue;;
6669 esac
6670 case $ac_mode$ac_tag in
6671 :[FHL]*:*);;
6672 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6673 :[FH]-) ac_tag=-:-;;
6674 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6675 esac
6676 ac_save_IFS=$IFS
6677 IFS=:
6678 set x $ac_tag
6679 IFS=$ac_save_IFS
6680 shift
6681 ac_file=$1
6682 shift
6683
6684 case $ac_mode in
6685 :L) ac_source=$1;;
6686 :[FH])
6687 ac_file_inputs=
6688 for ac_f
6689 do
6690 case $ac_f in
6691 -) ac_f="$ac_tmp/stdin";;
6692 *) # Look for the file first in the build tree, then in the source tree
6693 # (if the path is not absolute). The absolute path cannot be DOS-style,
6694 # because $ac_f cannot contain `:'.
6695 test -f "$ac_f" ||
6696 case $ac_f in
6697 [\\/$]*) false;;
6698 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6699 esac ||
6700 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6701 esac
6702 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6703 as_fn_append ac_file_inputs " '$ac_f'"
6704 done
6705
6706 # Let's still pretend it is `configure' which instantiates (i.e., don't
6707 # use $as_me), people would be surprised to read:
6708 # /* config.h. Generated by config.status. */
6709 configure_input='Generated from '`
6710 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6711 `' by configure.'
6712 if test x"$ac_file" != x-; then
6713 configure_input="$ac_file. $configure_input"
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6715printf "%s\n" "$as_me: creating $ac_file" >&6;}
6716 fi
6717 # Neutralize special characters interpreted by sed in replacement strings.
6718 case $configure_input in #(
6719 *\&* | *\|* | *\\* )
6720 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6721 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6722 *) ac_sed_conf_input=$configure_input;;
6723 esac
6724
6725 case $ac_tag in
6726 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6727 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6728 esac
6729 ;;
6730 esac
6731
6732 ac_dir=`$as_dirname -- "$ac_file" ||
6733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6734 X"$ac_file" : 'X\(//\)[^/]' \| \
6735 X"$ac_file" : 'X\(//\)$' \| \
6736 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6737printf "%s\n" X"$ac_file" |
6738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6739 s//\1/
6740 q
6741 }
6742 /^X\(\/\/\)[^/].*/{
6743 s//\1/
6744 q
6745 }
6746 /^X\(\/\/\)$/{
6747 s//\1/
6748 q
6749 }
6750 /^X\(\/\).*/{
6751 s//\1/
6752 q
6753 }
6754 s/.*/./; q'`
6755 as_dir="$ac_dir"; as_fn_mkdir_p
6756 ac_builddir=.
6757
6758case "$ac_dir" in
6759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6760*)
6761 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6762 # A ".." for each directory in $ac_dir_suffix.
6763 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6764 case $ac_top_builddir_sub in
6765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6767 esac ;;
6768esac
6769ac_abs_top_builddir=$ac_pwd
6770ac_abs_builddir=$ac_pwd$ac_dir_suffix
6771# for backward compatibility:
6772ac_top_builddir=$ac_top_build_prefix
6773
6774case $srcdir in
6775 .) # We are building in place.
6776 ac_srcdir=.
6777 ac_top_srcdir=$ac_top_builddir_sub
6778 ac_abs_top_srcdir=$ac_pwd ;;
6779 [\\/]* | ?:[\\/]* ) # Absolute name.
6780 ac_srcdir=$srcdir$ac_dir_suffix;
6781 ac_top_srcdir=$srcdir
6782 ac_abs_top_srcdir=$srcdir ;;
6783 *) # Relative name.
6784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6785 ac_top_srcdir=$ac_top_build_prefix$srcdir
6786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6787esac
6788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6789
6790
6791 case $ac_mode in
6792 :F)
6793 #
6794 # CONFIG_FILE
6795 #
6796
6797 case $INSTALL in
6798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6799 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6800 esac
6801_ACEOF
6802
6803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6804# If the template does not know about datarootdir, expand it.
6805# FIXME: This hack should be removed a few years after 2.60.
6806ac_datarootdir_hack=; ac_datarootdir_seen=
6807ac_sed_dataroot='
6808/datarootdir/ {
6809 p
6810 q
6811}
6812/@datadir@/p
6813/@docdir@/p
6814/@infodir@/p
6815/@localedir@/p
6816/@mandir@/p'
6817case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6818*datarootdir*) ac_datarootdir_seen=yes;;
6819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6821printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6822_ACEOF
6823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6824 ac_datarootdir_hack='
6825 s&@datadir@&$datadir&g
6826 s&@docdir@&$docdir&g
6827 s&@infodir@&$infodir&g
6828 s&@localedir@&$localedir&g
6829 s&@mandir@&$mandir&g
6830 s&\\\${datarootdir}&$datarootdir&g' ;;
6831esac
6832_ACEOF
6833
6834# Neutralize VPATH when `$srcdir' = `.'.
6835# Shell code in configure.ac might set extrasub.
6836# FIXME: do we really want to maintain this feature?
6837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6838ac_sed_extra="$ac_vpsub
6839$extrasub
6840_ACEOF
6841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6842:t
6843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6844s|@configure_input@|$ac_sed_conf_input|;t t
6845s&@top_builddir@&$ac_top_builddir_sub&;t t
6846s&@top_build_prefix@&$ac_top_build_prefix&;t t
6847s&@srcdir@&$ac_srcdir&;t t
6848s&@abs_srcdir@&$ac_abs_srcdir&;t t
6849s&@top_srcdir@&$ac_top_srcdir&;t t
6850s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6851s&@builddir@&$ac_builddir&;t t
6852s&@abs_builddir@&$ac_abs_builddir&;t t
6853s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6854s&@INSTALL@&$ac_INSTALL&;t t
6855$ac_datarootdir_hack
6856"
6857eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6858 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6859
6860test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6861 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6862 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6863 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6865which seems to be undefined. Please make sure it is defined" >&5
6866printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6867which seems to be undefined. Please make sure it is defined" >&2;}
6868
6869 rm -f "$ac_tmp/stdin"
6870 case $ac_file in
6871 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6872 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6873 esac \
6874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6875 ;;
6876 :H)
6877 #
6878 # CONFIG_HEADER
6879 #
6880 if test x"$ac_file" != x-; then
6881 {
6882 printf "%s\n" "/* $configure_input */" >&1 \
6883 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6884 } >"$ac_tmp/config.h" \
6885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6886 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6888printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6889 else
6890 rm -f "$ac_file"
6891 mv "$ac_tmp/config.h" "$ac_file" \
6892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6893 fi
6894 else
6895 printf "%s\n" "/* $configure_input */" >&1 \
6896 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6897 || as_fn_error $? "could not create -" "$LINENO" 5
6898 fi
6899 ;;
6900
6901
6902 esac
6903
6904done # for ac_tag
6905
6906
6907as_fn_exit 0
6908_ACEOF
6909ac_clean_files=$ac_clean_files_save
6910
6911test $ac_write_fail = 0 ||
6912 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6913
6914
6915# configure is writing to config.log, and then calls config.status.
6916# config.status does its own redirection, appending to config.log.
6917# Unfortunately, on DOS this fails, as config.log is still kept open
6918# by configure, so config.status won't be able to write to it; its
6919# output is simply discarded. So we exec the FD to /dev/null,
6920# effectively closing config.log, so it can be properly (re)opened and
6921# appended to by config.status. When coming back to configure, we
6922# need to make the FD available again.
6923if test "$no_create" != yes; then
6924 ac_cs_success=:
6925 ac_config_status_args=
6926 test "$silent" = yes &&
6927 ac_config_status_args="$ac_config_status_args --quiet"
6928 exec 5>/dev/null
6929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6930 exec 5>>config.log
6931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6932 # would make configure fail if this is the last instruction.
6933 $ac_cs_success || as_fn_exit 1
6934fi
6935if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6937printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6938fi
6939
6940