new date 20231021
[pcc.git] / configure
blob55d501ddd7e9330b14be7766af8081a201271b18
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for Portable C Compiler 1.2.0.DEVEL.
5 # Report bugs to <pcc@lists.ludd.ltu.se>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
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 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
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
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
35 esac
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
49 export as_nl
50 IFS=" "" $as_nl"
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
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
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
158 esac
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -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 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: pcc@lists.ludd.ltu.se about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
276 exit 1
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
294 { eval $1=; unset $1;}
296 as_unset=as_fn_unset
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
304 return $1
305 } # as_fn_set_status
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
321 return $?
323 as_nop=as_fn_nop
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
356 /^X\(\/\/\)$/{
357 s//\1/
360 /^X\(\/\).*/{
361 s//\1/
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 } # as_fn_mkdir_p
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
390 eval $1+=\$2
392 else $as_nop
393 as_fn_append ()
395 eval $1=\$$1\$2
397 fi # as_fn_append
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
408 as_val=$(( $* ))
410 else $as_nop
411 as_fn_arith ()
413 as_val=`expr "$@" || test $? -eq 1`
415 fi # as_fn_arith
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
422 return $?
424 as_nop=as_fn_nop
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
470 /^X\/\(\/\/\)$/{
471 s//\1/
474 /^X\/\(\/\).*/{
475 s//\1/
478 s/.*/./; q'`
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
501 :lineno
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
537 ECHO_N='-n';;
538 esac
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
568 else
569 as_ln_s='cp -pR'
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
600 # Initializations.
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
611 # Identity of this package.
612 PACKAGE_NAME='Portable C Compiler'
613 PACKAGE_TARNAME='pcc'
614 PACKAGE_VERSION='1.2.0.DEVEL'
615 PACKAGE_STRING='Portable C Compiler 1.2.0.DEVEL'
616 PACKAGE_BUGREPORT='pcc@lists.ludd.ltu.se'
617 PACKAGE_URL='http://pcc.ludd.ltu.se/'
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
650 ac_header_c_list=
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
655 CCNAMES
656 ADD_CPPFLAGS
657 ADD_CFLAGS
658 hostos
659 targmachdir
660 targmach
661 targosver
662 targos
663 ALLOCA
664 LEXLIB
665 LEX_OUTPUT_ROOT
667 YFLAGS
668 YACC
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 SET_MAKE
673 CC_FOR_BUILD
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
681 BINPREFIX
682 target_os
683 target_vendor
684 target_cpu
685 target
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 runstatedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_multiarch
737 with_incdir
738 with_libdir
739 with_assembler
740 with_linker
741 with_libvmf
742 enable_tls
743 enable_Werror
744 enable_gcc_compat
745 enable_pcc_debug
746 enable_twopass
747 enable_stripping
748 with_yasm
749 enable_native
751 ac_precious_vars='build_alias
752 host_alias
753 target_alias
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
759 YACC
760 YFLAGS'
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 runstatedir='${localstatedir}/run'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
812 ac_prev=
813 ac_dashdash=
814 for ac_option
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
823 case $ac_option in
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *=) ac_optarg= ;;
826 *) ac_optarg=yes ;;
827 esac
829 case $ac_dashdash$ac_option in
831 ac_dashdash=yes ;;
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
850 --config-cache | -C)
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: \`$ac_useropt'"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: \`$ac_useropt'"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1050 -runstatedir | --runstatedir | --runstatedi | --runstated \
1051 | --runstate | --runstat | --runsta | --runst | --runs \
1052 | --run | --ru | --r)
1053 ac_prev=runstatedir ;;
1054 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1055 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1056 | --run=* | --ru=* | --r=*)
1057 runstatedir=$ac_optarg ;;
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: \`$ac_useropt'"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: \`$ac_useropt'"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 esac
1177 done
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir runstatedir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 printf "%s\n" X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1261 /^X\(\/\/\)$/{
1262 s//\1/
1265 /^X\(\/\).*/{
1266 s//\1/
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1274 else
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1303 # Report the --help message.
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures Portable C Compiler 1.2.0.DEVEL to adapt to many kinds of systems.
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1316 Defaults for the options are specified in brackets.
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 [PREFIX]
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1340 For better control, use the options below.
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/pcc]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1365 cat <<\_ACEOF
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 --target=TARGET configure for building compilers for TARGET [HOST]
1371 _ACEOF
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of Portable C Compiler 1.2.0.DEVEL:";;
1377 esac
1378 cat <<\_ACEOF
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-multiarch=yes/no/auto/<triplet>
1385 Enable use of Linux Multi-Arch paths (default: auto)
1386 --enable-tls Enable Thread-local storage (TLS).
1387 --enable-Werror Enable use of compiler -Werror flag
1388 --disable-gcc-compat Disable GCC compatibility
1389 --disable-pcc-debug Disable PCC debugging
1390 --enable-twopass Link PCC as a two-pass compiler
1391 --disable-stripping Disable stripping of symbols in installed binaries
1392 --enable-native Build the compiler as a native rather than
1393 cross-build compiler
1395 Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-incdir=<path> Specify the default include path.
1399 --with-libdir=<path> Specify the default library path.
1400 --with-assembler=<path> Specify alternate assember.
1401 --with-linker=<path> Specify alternate linker.
1402 --with-libvmf=<path> Use libvmf.
1403 --with-yasm Use yasm assembler
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 YACC The `Yet Another Compiler Compiler' implementation to use.
1414 Defaults to the first program found out of: `bison -y', `byacc',
1415 `yacc'.
1416 YFLAGS The list of arguments that will be passed by default to $YACC.
1417 This script will default YFLAGS to the empty string to avoid a
1418 default value of `-d' given by some make applications.
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to <pcc@lists.ludd.ltu.se>.
1424 Portable C Compiler home page: <http://pcc.ludd.ltu.se/>.
1425 _ACEOF
1426 ac_status=$?
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434 continue
1435 ac_builddir=.
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1453 case $srcdir in
1454 .) # We are building in place.
1455 ac_srcdir=.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1462 *) # Relative name.
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for configure.gnu first; this name is used for a wrapper for
1471 # Metaconfig's "Configure" on case-insensitive file systems.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1478 else
1479 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 fi || ac_status=$?
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1482 done
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487 cat <<\_ACEOF
1488 Portable C Compiler configure 1.2.0.DEVEL
1489 generated by GNU Autoconf 2.71
1491 Copyright (C) 2021 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495 exit
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext conftest.beam
1509 if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 printf "%s\n" "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext
1528 then :
1529 ac_retval=0
1530 else $as_nop
1531 printf "%s\n" "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1534 ac_retval=1
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1539 } # ac_fn_c_try_compile
1541 # ac_fn_c_try_run LINENO
1542 # ----------------------
1543 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1544 # executables *can* be run.
1545 ac_fn_c_try_run ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if { { ac_try="$ac_link"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 printf "%s\n" "$ac_try_echo"; } >&5
1555 (eval "$ac_link") 2>&5
1556 ac_status=$?
1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1559 { { case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 printf "%s\n" "$ac_try_echo"; } >&5
1565 (eval "$ac_try") 2>&5
1566 ac_status=$?
1567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; }; }
1569 then :
1570 ac_retval=0
1571 else $as_nop
1572 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1573 printf "%s\n" "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1576 ac_retval=$ac_status
1578 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1582 } # ac_fn_c_try_run
1584 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists and can be compiled using the include files in
1587 # INCLUDES, setting the cache variable VAR accordingly.
1588 ac_fn_c_check_header_compile ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 printf %s "checking for $2... " >&6; }
1593 if eval test \${$3+y}
1594 then :
1595 printf %s "(cached) " >&6
1596 else $as_nop
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_compile "$LINENO"
1603 then :
1604 eval "$3=yes"
1605 else $as_nop
1606 eval "$3=no"
1608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1610 eval ac_res=\$$3
1611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 printf "%s\n" "$ac_res" >&6; }
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 } # ac_fn_c_check_header_compile
1617 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1618 # --------------------------------------------
1619 # Tries to find the compile-time value of EXPR in a program that includes
1620 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1621 # computed
1622 ac_fn_c_compute_int ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if test "$cross_compiling" = yes; then
1626 # Depending upon the size, compute the lo and hi bounds.
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1631 main (void)
1633 static int test_array [1 - 2 * !(($2) >= 0)];
1634 test_array [0] = 0;
1635 return test_array [0];
1638 return 0;
1640 _ACEOF
1641 if ac_fn_c_try_compile "$LINENO"
1642 then :
1643 ac_lo=0 ac_mid=0
1644 while :; do
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1649 main (void)
1651 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1652 test_array [0] = 0;
1653 return test_array [0];
1656 return 0;
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"
1660 then :
1661 ac_hi=$ac_mid; break
1662 else $as_nop
1663 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1664 if test $ac_lo -le $ac_mid; then
1665 ac_lo= ac_hi=
1666 break
1668 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1671 done
1672 else $as_nop
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1677 main (void)
1679 static int test_array [1 - 2 * !(($2) < 0)];
1680 test_array [0] = 0;
1681 return test_array [0];
1684 return 0;
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"
1688 then :
1689 ac_hi=-1 ac_mid=-1
1690 while :; do
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1695 main (void)
1697 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1698 test_array [0] = 0;
1699 return test_array [0];
1702 return 0;
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"
1706 then :
1707 ac_lo=$ac_mid; break
1708 else $as_nop
1709 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1710 if test $ac_mid -le $ac_hi; then
1711 ac_lo= ac_hi=
1712 break
1714 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1717 done
1718 else $as_nop
1719 ac_lo= ac_hi=
1721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 # Binary search between lo and hi bounds.
1725 while test "x$ac_lo" != "x$ac_hi"; do
1726 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1731 main (void)
1733 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1734 test_array [0] = 0;
1735 return test_array [0];
1738 return 0;
1740 _ACEOF
1741 if ac_fn_c_try_compile "$LINENO"
1742 then :
1743 ac_hi=$ac_mid
1744 else $as_nop
1745 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1748 done
1749 case $ac_lo in #((
1750 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1751 '') ac_retval=1 ;;
1752 esac
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1757 static long int longval (void) { return $2; }
1758 static unsigned long int ulongval (void) { return $2; }
1759 #include <stdio.h>
1760 #include <stdlib.h>
1762 main (void)
1765 FILE *f = fopen ("conftest.val", "w");
1766 if (! f)
1767 return 1;
1768 if (($2) < 0)
1770 long int i = longval ();
1771 if (i != ($2))
1772 return 1;
1773 fprintf (f, "%ld", i);
1775 else
1777 unsigned long int i = ulongval ();
1778 if (i != ($2))
1779 return 1;
1780 fprintf (f, "%lu", i);
1782 /* Do not output a trailing newline, as this causes \r\n confusion
1783 on some platforms. */
1784 return ferror (f) || fclose (f) != 0;
1787 return 0;
1789 _ACEOF
1790 if ac_fn_c_try_run "$LINENO"
1791 then :
1792 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1793 else $as_nop
1794 ac_retval=1
1796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1797 conftest.$ac_objext conftest.beam conftest.$ac_ext
1798 rm -f conftest.val
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_compute_int
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_link ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 printf "%s\n" "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest$ac_exeext
1835 then :
1836 ac_retval=0
1837 else $as_nop
1838 printf "%s\n" "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 ac_retval=1
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_link
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 printf %s "checking for $2... " >&6; }
1861 if eval test \${$3+y}
1862 then :
1863 printf %s "(cached) " >&6
1864 else $as_nop
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below. */
1874 #include <limits.h>
1875 #undef $2
1877 /* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 ();
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1892 main (void)
1894 return $2 ();
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"
1900 then :
1901 eval "$3=yes"
1902 else $as_nop
1903 eval "$3=no"
1905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1906 conftest$ac_exeext conftest.$ac_ext
1908 eval ac_res=\$$3
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 printf "%s\n" "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_func
1915 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1916 # -------------------------------------------
1917 # Tests whether TYPE exists after having included INCLUDES, setting cache
1918 # variable VAR accordingly.
1919 ac_fn_c_check_type ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 printf %s "checking for $2... " >&6; }
1924 if eval test \${$3+y}
1925 then :
1926 printf %s "(cached) " >&6
1927 else $as_nop
1928 eval "$3=no"
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 main (void)
1935 if (sizeof ($2))
1936 return 0;
1938 return 0;
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"
1942 then :
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 main (void)
1949 if (sizeof (($2)))
1950 return 0;
1952 return 0;
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"
1956 then :
1958 else $as_nop
1959 eval "$3=yes"
1961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1965 eval ac_res=\$$3
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 printf "%s\n" "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_type
1971 ac_configure_args_raw=
1972 for ac_arg
1974 case $ac_arg in
1975 *\'*)
1976 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1977 esac
1978 as_fn_append ac_configure_args_raw " '$ac_arg'"
1979 done
1981 case $ac_configure_args_raw in
1982 *$as_nl*)
1983 ac_safe_unquote= ;;
1985 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1986 ac_unsafe_a="$ac_unsafe_z#~"
1987 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1988 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1989 esac
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1995 It was created by Portable C Compiler $as_me 1.2.0.DEVEL, which was
1996 generated by GNU Autoconf 2.71. Invocation command line was
1998 $ $0$ac_configure_args_raw
2000 _ACEOF
2001 exec 5>>config.log
2003 cat <<_ASUNAME
2004 ## --------- ##
2005 ## Platform. ##
2006 ## --------- ##
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2025 _ASUNAME
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2030 IFS=$as_save_IFS
2031 case $as_dir in #(((
2032 '') as_dir=./ ;;
2033 */) ;;
2034 *) as_dir=$as_dir/ ;;
2035 esac
2036 printf "%s\n" "PATH: $as_dir"
2037 done
2038 IFS=$as_save_IFS
2040 } >&5
2042 cat >&5 <<_ACEOF
2045 ## ----------- ##
2046 ## Core tests. ##
2047 ## ----------- ##
2049 _ACEOF
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2057 ac_configure_args=
2058 ac_configure_args0=
2059 ac_configure_args1=
2060 ac_must_keep_next=false
2061 for ac_pass in 1 2
2063 for ac_arg
2065 case $ac_arg in
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2069 continue ;;
2070 *\'*)
2071 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072 esac
2073 case $ac_pass in
2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2076 as_fn_append ac_configure_args1 " '$ac_arg'"
2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2079 else
2080 case $ac_arg in
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087 esac
2089 -* ) ac_must_keep_next=true ;;
2090 esac
2092 as_fn_append ac_configure_args " '$ac_arg'"
2094 esac
2095 done
2096 done
2097 { ac_configure_args0=; unset ac_configure_args0;}
2098 { ac_configure_args1=; unset ac_configure_args1;}
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2106 # Sanitize IFS.
2107 IFS=" "" $as_nl"
2108 # Save into config.log some information that might help in debugging.
2110 echo
2112 printf "%s\n" "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 # The following way of writing the cache mishandles newlines in values,
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in #(
2121 *${as_nl}*)
2122 case $ac_var in #(
2123 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 esac
2126 case $ac_var in #(
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2130 esac ;;
2131 esac
2132 done
2133 (set) 2>&1 |
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2136 sed -n \
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 ;; #(
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2143 esac |
2144 sort
2146 echo
2148 printf "%s\n" "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151 echo
2152 for ac_var in $ac_subst_vars
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 printf "%s\n" "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2162 if test -n "$ac_subst_files"; then
2163 printf "%s\n" "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166 echo
2167 for ac_var in $ac_subst_files
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 printf "%s\n" "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2178 if test -s confdefs.h; then
2179 printf "%s\n" "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182 echo
2183 cat confdefs.h
2184 echo
2186 test "$ac_signal" != 0 &&
2187 printf "%s\n" "$as_me: caught signal $ac_signal"
2188 printf "%s\n" "$as_me: exit $exit_status"
2189 } >&5
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 exit $exit_status
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2202 printf "%s\n" "/* confdefs.h */" > confdefs.h
2204 # Predefined preprocessor variables.
2206 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2208 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2210 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2212 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2214 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2216 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 if test -n "$CONFIG_SITE"; then
2222 ac_site_files="$CONFIG_SITE"
2223 elif test "x$prefix" != xNONE; then
2224 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2225 else
2226 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2229 for ac_site_file in $ac_site_files
2231 case $ac_site_file in #(
2232 */*) :
2233 ;; #(
2234 *) :
2235 ac_site_file=./$ac_site_file ;;
2236 esac
2237 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2241 . "$ac_site_file" \
2242 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2244 as_fn_error $? "failed to load site script $ac_site_file
2245 See \`config.log' for more details" "$LINENO" 5; }
2247 done
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special files
2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2255 case $cache_file in
2256 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257 *) . "./$cache_file";;
2258 esac
2260 else
2261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2263 >$cache_file
2266 # Test code for whether the C compiler supports C89 (global declarations)
2267 ac_c_conftest_c89_globals='
2268 /* Does the compiler advertise C89 conformance?
2269 Do not test the value of __STDC__, because some compilers set it to 0
2270 while being otherwise adequately conformant. */
2271 #if !defined __STDC__
2272 # error "Compiler does not advertise C89 conformance"
2273 #endif
2275 #include <stddef.h>
2276 #include <stdarg.h>
2277 struct stat;
2278 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2279 struct buf { int x; };
2280 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2281 static char *e (p, i)
2282 char **p;
2283 int i;
2285 return p[i];
2287 static char *f (char * (*g) (char **, int), char **p, ...)
2289 char *s;
2290 va_list v;
2291 va_start (v,p);
2292 s = g (p, va_arg (v,int));
2293 va_end (v);
2294 return s;
2297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2298 function prototypes and stuff, but not \xHH hex character constants.
2299 These do not provoke an error unfortunately, instead are silently treated
2300 as an "x". The following induces an error, until -std is added to get
2301 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2302 array size at least. It is necessary to write \x00 == 0 to get something
2303 that is true only with -std. */
2304 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2307 inside strings and character constants. */
2308 #define FOO(x) '\''x'\''
2309 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2311 int test (int i, double x);
2312 struct s1 {int (*f) (int a);};
2313 struct s2 {int (*f) (double a);};
2314 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2315 int, int);'
2317 # Test code for whether the C compiler supports C89 (body of main).
2318 ac_c_conftest_c89_main='
2319 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2322 # Test code for whether the C compiler supports C99 (global declarations)
2323 ac_c_conftest_c99_globals='
2324 // Does the compiler advertise C99 conformance?
2325 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2326 # error "Compiler does not advertise C99 conformance"
2327 #endif
2329 #include <stdbool.h>
2330 extern int puts (const char *);
2331 extern int printf (const char *, ...);
2332 extern int dprintf (int, const char *, ...);
2333 extern void *malloc (size_t);
2335 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2336 // dprintf is used instead of fprintf to avoid needing to declare
2337 // FILE and stderr.
2338 #define debug(...) dprintf (2, __VA_ARGS__)
2339 #define showlist(...) puts (#__VA_ARGS__)
2340 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2341 static void
2342 test_varargs_macros (void)
2344 int x = 1234;
2345 int y = 5678;
2346 debug ("Flag");
2347 debug ("X = %d\n", x);
2348 showlist (The first, second, and third items.);
2349 report (x>y, "x is %d but y is %d", x, y);
2352 // Check long long types.
2353 #define BIG64 18446744073709551615ull
2354 #define BIG32 4294967295ul
2355 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2356 #if !BIG_OK
2357 #error "your preprocessor is broken"
2358 #endif
2359 #if BIG_OK
2360 #else
2361 #error "your preprocessor is broken"
2362 #endif
2363 static long long int bignum = -9223372036854775807LL;
2364 static unsigned long long int ubignum = BIG64;
2366 struct incomplete_array
2368 int datasize;
2369 double data[];
2372 struct named_init {
2373 int number;
2374 const wchar_t *name;
2375 double average;
2378 typedef const char *ccp;
2380 static inline int
2381 test_restrict (ccp restrict text)
2383 // See if C++-style comments work.
2384 // Iterate through items via the restricted pointer.
2385 // Also check for declarations in for loops.
2386 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2387 continue;
2388 return 0;
2391 // Check varargs and va_copy.
2392 static bool
2393 test_varargs (const char *format, ...)
2395 va_list args;
2396 va_start (args, format);
2397 va_list args_copy;
2398 va_copy (args_copy, args);
2400 const char *str = "";
2401 int number = 0;
2402 float fnumber = 0;
2404 while (*format)
2406 switch (*format++)
2408 case '\''s'\'': // string
2409 str = va_arg (args_copy, const char *);
2410 break;
2411 case '\''d'\'': // int
2412 number = va_arg (args_copy, int);
2413 break;
2414 case '\''f'\'': // float
2415 fnumber = va_arg (args_copy, double);
2416 break;
2417 default:
2418 break;
2421 va_end (args_copy);
2422 va_end (args);
2424 return *str && number && fnumber;
2428 # Test code for whether the C compiler supports C99 (body of main).
2429 ac_c_conftest_c99_main='
2430 // Check bool.
2431 _Bool success = false;
2432 success |= (argc != 0);
2434 // Check restrict.
2435 if (test_restrict ("String literal") == 0)
2436 success = true;
2437 char *restrict newvar = "Another string";
2439 // Check varargs.
2440 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2441 test_varargs_macros ();
2443 // Check flexible array members.
2444 struct incomplete_array *ia =
2445 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2446 ia->datasize = 10;
2447 for (int i = 0; i < ia->datasize; ++i)
2448 ia->data[i] = i * 1.234;
2450 // Check named initializers.
2451 struct named_init ni = {
2452 .number = 34,
2453 .name = L"Test wide string",
2454 .average = 543.34343,
2457 ni.number = 58;
2459 int dynamic_array[ni.number];
2460 dynamic_array[0] = argv[0][0];
2461 dynamic_array[ni.number - 1] = 543;
2463 // work around unused variable warnings
2464 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2465 || dynamic_array[ni.number - 1] != 543);
2468 # Test code for whether the C compiler supports C11 (global declarations)
2469 ac_c_conftest_c11_globals='
2470 // Does the compiler advertise C11 conformance?
2471 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2472 # error "Compiler does not advertise C11 conformance"
2473 #endif
2475 // Check _Alignas.
2476 char _Alignas (double) aligned_as_double;
2477 char _Alignas (0) no_special_alignment;
2478 extern char aligned_as_int;
2479 char _Alignas (0) _Alignas (int) aligned_as_int;
2481 // Check _Alignof.
2482 enum
2484 int_alignment = _Alignof (int),
2485 int_array_alignment = _Alignof (int[100]),
2486 char_alignment = _Alignof (char)
2488 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2490 // Check _Noreturn.
2491 int _Noreturn does_not_return (void) { for (;;) continue; }
2493 // Check _Static_assert.
2494 struct test_static_assert
2496 int x;
2497 _Static_assert (sizeof (int) <= sizeof (long int),
2498 "_Static_assert does not work in struct");
2499 long int y;
2502 // Check UTF-8 literals.
2503 #define u8 syntax error!
2504 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2506 // Check duplicate typedefs.
2507 typedef long *long_ptr;
2508 typedef long int *long_ptr;
2509 typedef long_ptr long_ptr;
2511 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2512 struct anonymous
2514 union {
2515 struct { int i; int j; };
2516 struct { int k; long int l; } w;
2518 int m;
2519 } v1;
2522 # Test code for whether the C compiler supports C11 (body of main).
2523 ac_c_conftest_c11_main='
2524 _Static_assert ((offsetof (struct anonymous, i)
2525 == offsetof (struct anonymous, w.k)),
2526 "Anonymous union alignment botch");
2527 v1.i = 2;
2528 v1.w.k = 5;
2529 ok |= v1.i != 5;
2532 # Test code for whether the C compiler supports C11 (complete).
2533 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2534 ${ac_c_conftest_c99_globals}
2535 ${ac_c_conftest_c11_globals}
2538 main (int argc, char **argv)
2540 int ok = 0;
2541 ${ac_c_conftest_c89_main}
2542 ${ac_c_conftest_c99_main}
2543 ${ac_c_conftest_c11_main}
2544 return ok;
2548 # Test code for whether the C compiler supports C99 (complete).
2549 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2550 ${ac_c_conftest_c99_globals}
2553 main (int argc, char **argv)
2555 int ok = 0;
2556 ${ac_c_conftest_c89_main}
2557 ${ac_c_conftest_c99_main}
2558 return ok;
2562 # Test code for whether the C compiler supports C89 (complete).
2563 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2566 main (int argc, char **argv)
2568 int ok = 0;
2569 ${ac_c_conftest_c89_main}
2570 return ok;
2574 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2575 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2576 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2577 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2578 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2579 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2580 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2581 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2582 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2584 # Auxiliary files required by this configure script.
2585 ac_aux_files="install-sh config.guess config.sub"
2587 # Locations in which to look for auxiliary files.
2588 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2590 # Search for a directory containing all of the required auxiliary files,
2591 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2592 # If we don't find one directory that contains all the files we need,
2593 # we report the set of missing files from the *first* directory in
2594 # $ac_aux_dir_candidates and give up.
2595 ac_missing_aux_files=""
2596 ac_first_candidate=:
2597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 as_found=false
2600 for as_dir in $ac_aux_dir_candidates
2602 IFS=$as_save_IFS
2603 case $as_dir in #(((
2604 '') as_dir=./ ;;
2605 */) ;;
2606 *) as_dir=$as_dir/ ;;
2607 esac
2608 as_found=:
2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2611 ac_aux_dir_found=yes
2612 ac_install_sh=
2613 for ac_aux in $ac_aux_files
2615 # As a special case, if "install-sh" is required, that requirement
2616 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2617 # and $ac_install_sh is set appropriately for whichever one is found.
2618 if test x"$ac_aux" = x"install-sh"
2619 then
2620 if test -f "${as_dir}install-sh"; then
2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2622 ac_install_sh="${as_dir}install-sh -c"
2623 elif test -f "${as_dir}install.sh"; then
2624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2625 ac_install_sh="${as_dir}install.sh -c"
2626 elif test -f "${as_dir}shtool"; then
2627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2628 ac_install_sh="${as_dir}shtool install -c"
2629 else
2630 ac_aux_dir_found=no
2631 if $ac_first_candidate; then
2632 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2633 else
2634 break
2637 else
2638 if test -f "${as_dir}${ac_aux}"; then
2639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2640 else
2641 ac_aux_dir_found=no
2642 if $ac_first_candidate; then
2643 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2644 else
2645 break
2649 done
2650 if test "$ac_aux_dir_found" = yes; then
2651 ac_aux_dir="$as_dir"
2652 break
2654 ac_first_candidate=false
2656 as_found=false
2657 done
2658 IFS=$as_save_IFS
2659 if $as_found
2660 then :
2662 else $as_nop
2663 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2667 # These three variables are undocumented and unsupported,
2668 # and are intended to be withdrawn in a future Autoconf release.
2669 # They can cause serious problems if a builder's source tree is in a directory
2670 # whose full name contains unusual characters.
2671 if test -f "${ac_aux_dir}config.guess"; then
2672 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2674 if test -f "${ac_aux_dir}config.sub"; then
2675 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2677 if test -f "$ac_aux_dir/configure"; then
2678 ac_configure="$SHELL ${ac_aux_dir}configure"
2681 # Check that the precious variables saved in the cache have kept the same
2682 # value.
2683 ac_cache_corrupted=false
2684 for ac_var in $ac_precious_vars; do
2685 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2686 eval ac_new_set=\$ac_env_${ac_var}_set
2687 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2688 eval ac_new_val=\$ac_env_${ac_var}_value
2689 case $ac_old_set,$ac_new_set in
2690 set,)
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2692 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2693 ac_cache_corrupted=: ;;
2694 ,set)
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2696 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2697 ac_cache_corrupted=: ;;
2698 ,);;
2700 if test "x$ac_old_val" != "x$ac_new_val"; then
2701 # differences in whitespace do not lead to failure.
2702 ac_old_val_w=`echo x $ac_old_val`
2703 ac_new_val_w=`echo x $ac_new_val`
2704 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2706 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2707 ac_cache_corrupted=:
2708 else
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2710 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2711 eval $ac_var=\$ac_old_val
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2714 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2716 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2717 fi;;
2718 esac
2719 # Pass precious variables to config.status.
2720 if test "$ac_new_set" = set; then
2721 case $ac_new_val in
2722 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2723 *) ac_arg=$ac_var=$ac_new_val ;;
2724 esac
2725 case " $ac_configure_args " in
2726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2727 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2728 esac
2730 done
2731 if $ac_cache_corrupted; then
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2735 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2736 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2737 and start over" "$LINENO" 5
2739 ## -------------------- ##
2740 ## Main body of script. ##
2741 ## -------------------- ##
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 ac_config_headers="$ac_config_headers config.h"
2756 # Make sure we can run config.sub.
2757 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2758 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2761 printf %s "checking build system type... " >&6; }
2762 if test ${ac_cv_build+y}
2763 then :
2764 printf %s "(cached) " >&6
2765 else $as_nop
2766 ac_build_alias=$build_alias
2767 test "x$ac_build_alias" = x &&
2768 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2769 test "x$ac_build_alias" = x &&
2770 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2771 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2772 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2776 printf "%s\n" "$ac_cv_build" >&6; }
2777 case $ac_cv_build in
2778 *-*-*) ;;
2779 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2780 esac
2781 build=$ac_cv_build
2782 ac_save_IFS=$IFS; IFS='-'
2783 set x $ac_cv_build
2784 shift
2785 build_cpu=$1
2786 build_vendor=$2
2787 shift; shift
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2790 build_os=$*
2791 IFS=$ac_save_IFS
2792 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2796 printf %s "checking host system type... " >&6; }
2797 if test ${ac_cv_host+y}
2798 then :
2799 printf %s "(cached) " >&6
2800 else $as_nop
2801 if test "x$host_alias" = x; then
2802 ac_cv_host=$ac_cv_build
2803 else
2804 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2805 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2810 printf "%s\n" "$ac_cv_host" >&6; }
2811 case $ac_cv_host in
2812 *-*-*) ;;
2813 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2814 esac
2815 host=$ac_cv_host
2816 ac_save_IFS=$IFS; IFS='-'
2817 set x $ac_cv_host
2818 shift
2819 host_cpu=$1
2820 host_vendor=$2
2821 shift; shift
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2824 host_os=$*
2825 IFS=$ac_save_IFS
2826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2830 printf %s "checking target system type... " >&6; }
2831 if test ${ac_cv_target+y}
2832 then :
2833 printf %s "(cached) " >&6
2834 else $as_nop
2835 if test "x$target_alias" = x; then
2836 ac_cv_target=$ac_cv_host
2837 else
2838 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2839 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2844 printf "%s\n" "$ac_cv_target" >&6; }
2845 case $ac_cv_target in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2848 esac
2849 target=$ac_cv_target
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_target
2852 shift
2853 target_cpu=$1
2854 target_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 target_os=$*
2859 IFS=$ac_save_IFS
2860 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2863 # The aliases save the names the user supplied, while $host etc.
2864 # will get canonicalized.
2865 test -n "$target_alias" &&
2866 test "$program_prefix$program_suffix$program_transform_name" = \
2867 NONENONEs,x,x, &&
2868 program_prefix=${target_alias}-
2870 abi=unknown
2871 endian=little
2872 targosver=0
2873 tls=no
2874 gcccompat=yes
2875 pccdebug=yes
2876 stripping=yes
2877 native=no
2878 useyasm=no
2879 stabs=no
2880 dwarf=no
2881 # allowed: UNSIGNED (4-char u_int), INT (4-char int), SHORT (2-char u_short)
2882 wchar_type=INT
2884 case "$target_os" in
2886 apple)
2887 targos=apple
2888 abi=classic68k
2889 stabs=yes
2890 case "$target_cpu" in
2891 m68k) targmach=m68k endian=big ;;
2892 esac
2895 bsd)
2896 targos=bsd
2897 abi=aout
2898 case "$target_cpu" in
2899 pdp11) targmach=pdp11 ;;
2900 nova) targmach=nova ;;
2901 esac
2902 wchar_type=USHORT
2905 darwin*)
2906 targos=darwin
2907 abi=macho
2908 stabs=yes
2909 case "$target_os" in
2910 *10.*) targosver=10 ;;
2911 *9.*) targosver=9 ;;
2912 *8.*) targosver=8 ;;
2913 *7.*) targosver=7 ;;
2914 esac
2915 case "$target_cpu" in
2916 i?86) targmach=i386 ;;
2917 powerpc) targmach=powerpc endian=big ;;
2918 x86_64) targmach=amd64 ;;
2919 esac
2922 dragonfly*)
2923 targos=dragonfly
2924 abi=elf
2925 stabs=yes
2926 tls=yes
2927 case "$target_cpu" in
2928 i?86) targmach=i386 ;;
2929 x86_64) targmach=amd64 ;;
2930 esac
2933 freebsd*)
2934 targos=freebsd
2935 abi=elf
2936 stabs=yes
2937 case "$target_os" in
2938 *13.*) targosver=13 ;;
2939 *12.*) targosver=12 ;;
2940 *11.*) targosver=11 ;;
2941 *10.*) targosver=10 ;;
2942 *9.*) targosver=9 ;;
2943 *8.*) targosver=8 ;;
2944 *7.*) targosver=7 ;;
2945 *6.*) targosver=6 ;;
2946 *5.*) targosver=5 ;;
2947 *4.*) targosver=4 ;;
2948 esac
2949 case "$target_cpu" in
2950 i?86) targmach=i386 ;;
2951 sparc64) targmach=sparc64 endian=big ;;
2952 x86_64) targmach=amd64 ;;
2953 esac
2956 linux-android*)
2957 targos=android
2958 abi=elf
2959 stabs=yes
2960 case "$target_cpu" in
2961 arm*) targmach=arm ;;
2962 i?86) targmach=i386 ;;
2963 mips64el) targmach=mips64 ;;
2964 mips64) targmach=mips64 endian=big ;;
2965 mipseb) targmach=mips endian=big ;;
2966 mips*) targmach=mips ;;
2967 x86_64) targmach=amd64 ;;
2968 esac
2971 linux*)
2972 targos=linux
2973 abi=elf
2974 stabs=yes
2975 case "$target_cpu" in
2976 aarch64) targmach=aarch64 ;;
2977 arm*) targmach=arm ;;
2978 i?86) targmach=i386 ;;
2979 m68k) targmach=m68k endian=big target_alias=m68k-linux-gnu ;;
2980 mips64el) targmach=mips64 ;;
2981 mips64) targmach=mips64 endian=big ;;
2982 mipseb) targmach=mips endian=big ;;
2983 mips*) targmach=mips ;;
2984 powerpc*) targmach=powerpc endian=big ;;
2985 x86_64) targmach=amd64 ;;
2986 esac
2987 case "$target_os" in
2988 *-musl*) ADD_CPPFLAGS="$ADD_CPPFLAGS -DUSE_MUSL" ;;
2989 esac
2992 litebsd*)
2993 targos=litebsd
2994 abi=elf
2995 case "$target_cpu" in
2996 mips*) targmach=mips ;;
2997 esac
3000 midnightbsd*)
3001 targos=midnightbsd
3002 abi=elf
3003 stabs=yes
3004 case "$target_cpu" in
3005 i?86) targmach=i386 ;;
3006 sparc64) targmach=sparc64 endian=big ;;
3007 esac
3010 mingw*)
3011 targos=win32
3012 abi=pecoff
3013 wchar_type=USHORT
3014 targmach=i386
3015 altincdir="c:/mingw/include"
3016 altlibdir="c:/mingw/lib"
3019 minix*)
3020 targos=minix
3021 targosver=`uname -v`
3022 stabs=yes
3023 case "$targosver" in
3024 # explicit setting
3025 1.*)
3026 # pcc works for 3.1.6
3027 # not tested for 3.1.7 and 3.1.8
3028 targosver=3.1.x
3029 abi=aout ;;
3030 *3*)
3031 # Minix switched to ELF with 3.2
3032 targosver=3.2+
3033 abi=elf ;;
3035 # default to elf
3036 targosver=unknown
3037 abi=elf ;;
3038 esac
3039 case "$target_cpu" in
3040 i86) targmach=i86 ;;
3041 i?86) targmach=i386 ;;
3042 arm*) targmach=arm ;;
3043 x86_64) targmach=amd64 ;;
3044 esac
3047 mirbsd*)
3048 targos=mirbsd
3049 abi=elf
3050 stabs=yes
3051 wchar_type=USHORT
3052 case "$target_cpu" in
3053 i?86) targmach=i386 ;;
3054 esac
3057 netbsd*)
3058 targos=netbsd
3059 abi=elf
3060 stabs=yes
3061 case "$target_os" in
3062 *7.*) targosver=7 ;;
3063 *6.*) targosver=6 ;;
3064 *5.*) targosver=5 ;;
3065 *4.*) targosver=4 ;;
3066 *3.*) targosver=3 ;;
3067 *2.*) targosver=2 ;;
3068 *1.*) targosver=1 ;;
3069 esac
3070 case "$target_cpu" in
3071 armeb) targmach=arm endian=big ;;
3072 arm*) targmach=arm ;;
3073 i?86) targmach=i386 ;;
3074 m68k*) targmach=m68k endian=big ;;
3075 mips64el) targmach=mips64 ;;
3076 mips64) targmach=mips64 endian=big ;;
3077 mipseb) targmach=mips endian=big ;;
3078 mips*) targmach=mips ;;
3079 pdp10) targmach=pdp10 ;;
3080 powerpc) targmach=powerpc endian=big ;;
3081 riscv32) targmach=riscv32 targmachdir=riscv ;;
3082 riscv64) targmach=riscv64 targmachdir=riscv ;;
3083 sparc64) targmach=sparc64 endian=big ;;
3084 vax) targmach=vax ;;
3085 x86_64) targmach=amd64 ;;
3086 esac
3089 nextstep*)
3090 targos=nextstep
3091 abi=macho
3092 stabs=yes
3093 case "$target_cpu" in
3094 i?86) targmach=i386 ;;
3095 sparc) targmach=sparc endian=big ;;
3096 hppa) targmach=hppa endian=big ;;
3097 esac
3100 openbsd*)
3101 targos=openbsd
3102 abi=elf
3103 stabs=yes
3104 case "$target_cpu" in
3105 i?86) targmach=i386 ;;
3106 vax) targmach=vax ;;
3107 mips64el) targmach=mips64 ;;
3108 mips64) targmach=mips64 endian=big ;;
3109 powerpc) targmach=powerpc endian=big ;;
3110 sparc64) targmach=sparc64 endian=big ;;
3111 m68k) targmach=m68k endian=big ;;
3112 x86_64) targmach=amd64 ;;
3113 esac
3116 sysv4*)
3117 targos=sysv4
3118 abi=elf
3119 case "$target_cpu" in
3120 i?86) targmach=i386 ;;
3121 esac
3124 sunos*|solaris*)
3125 targos=sunos
3126 abi=elf
3127 stabs=yes
3128 case "$target_cpu" in
3129 i?86) targmach=i386 ;;
3130 sparc*) targmach=sparc64 endian=big ;;
3131 x86_64) targmach=amd64 ;;
3132 esac
3135 windows*|pe*)
3136 target_alias=i386-pe
3137 targos=win32
3138 abi=pecoff
3139 wchar_type=USHORT
3140 targmach=i386
3144 targos="$target_os"
3145 case "$target_cpu" in
3146 arm) targmach=arm targos=none abi=$target_os ;;
3147 i86) targmach=i86 ;;
3148 m16c) targmach=m16c ;;
3149 m68k) targmach=m68k endian=big targos=none abi=$target_os ;;
3150 nova) targmach=nova ;;
3151 pdp7) targmach=pdp7 ;;
3152 esac
3154 esac
3156 if test "X$targos" = X -o "X$targmach" = X ; then
3157 as_fn_error $? "'$target' is not (yet) supported by pcc." "$LINENO" 5
3160 if test "X$targmachdir" = X ; then
3161 targmachdir=$targmach
3164 case "$host_os" in
3166 apple)
3167 hostos=apple
3169 bsd)
3170 hostos=bsd
3172 darwin*)
3173 hostos=darwin
3175 dragonfly*)
3176 hostos=dragonfly
3178 freebsd*)
3179 hostos=freebsd
3181 linux*)
3182 ADD_CPPFLAGS="$ADD_CPPFLAGS -D_DEFAULT_SOURCE"
3183 hostos=linux
3185 litebsd*)
3186 hostos=litebsd
3188 midnightbsd*)
3189 hostos=midnightbsd
3191 mingw*)
3192 hostos=win32
3194 minix*)
3195 hostos=minix
3197 mirbsd*)
3198 hostos=mirbsd
3200 netbsd*)
3201 hostos=netbsd
3203 nextstep*)
3204 hostos=nextstep
3206 openbsd*)
3207 hostos=openbsd
3209 sunos*|solaris*)
3210 ADD_CPPFLAGS="$ADD_CPPFLAGS -D_XOPEN_SOURCE=600"
3211 hostos=sunos
3213 pe*|windows*)
3214 # quick hack for cross-build to win32 host
3215 hostos=win32
3216 if "$prefix" = NONE; then
3217 prefix="c:/pcc"
3218 assembler="yasm.exe -p gnu -f win32"
3219 linker="link.exe /nologo"
3220 ADD_CPPFLAGS="$ADD_CPPFLAGS -DMSLINKER"
3224 esac
3226 if test "X$endian" = "Xbig" ; then
3228 printf "%s\n" "#define TARGET_BIG_ENDIAN 1" >>confdefs.h
3230 else
3232 printf "%s\n" "#define TARGET_LITTLE_ENDIAN 1" >>confdefs.h
3236 case "$abi" in
3237 elf*)
3238 printf "%s\n" "#define ELFABI 1" >>confdefs.h
3240 aout)
3241 printf "%s\n" "#define AOUTABI 1" >>confdefs.h
3243 macho)
3244 printf "%s\n" "#define MACHOABI 1" >>confdefs.h
3246 coff)
3247 printf "%s\n" "#define COFFABI 1" >>confdefs.h
3249 ecoff)
3250 printf "%s\n" "#define ECOFFABI 1" >>confdefs.h
3252 pecoff)
3253 printf "%s\n" "#define PECOFFABI 1" >>confdefs.h
3255 classic68k)
3256 printf "%s\n" "#define CLASSIC68K 1" >>confdefs.h
3258 esac
3260 if test "$stabs" = "yes"; then
3262 printf "%s\n" "#define STABS 1" >>confdefs.h
3266 if test "$dwarf" = "yes"; then
3268 printf "%s\n" "#define DWARF 1" >>confdefs.h
3272 # Specify alternate assembler, linker, include and lib paths
3273 # Check whether --enable-multiarch was given.
3274 if test ${enable_multiarch+y}
3275 then :
3276 enableval=$enable_multiarch; multiarch=$enableval
3277 else $as_nop
3278 multiarch=auto
3282 # Check whether --with-incdir was given.
3283 if test ${with_incdir+y}
3284 then :
3285 withval=$with_incdir; altincdir=$withval
3289 # Check whether --with-libdir was given.
3290 if test ${with_libdir+y}
3291 then :
3292 withval=$with_libdir; altlibdir=$withval
3296 # Check whether --with-assembler was given.
3297 if test ${with_assembler+y}
3298 then :
3299 withval=$with_assembler; assembler=$withval
3303 # Check whether --with-linker was given.
3304 if test ${with_linker+y}
3305 then :
3306 withval=$with_linker; linker=$withval
3310 # Check whether --with-libvmf was given.
3311 if test ${with_libvmf+y}
3312 then :
3313 withval=$with_libvmf; libvmf=$withval
3314 else $as_nop
3315 libvmf=no
3318 # Check whether --enable-tls was given.
3319 if test ${enable_tls+y}
3320 then :
3321 enableval=$enable_tls; tls=$enableval
3324 if test "$tls" = "yes"; then
3326 printf "%s\n" "#define TLS 1" >>confdefs.h
3329 # Check whether --enable-Werror was given.
3330 if test ${enable_Werror+y}
3331 then :
3332 enableval=$enable_Werror; werror=$enableval
3335 if test "$werror" = "yes"; then
3336 ADD_CFLAGS="$ADD_CFLAGS -Werror"
3338 # Check whether --enable-gcc-compat was given.
3339 if test ${enable_gcc_compat+y}
3340 then :
3341 enableval=$enable_gcc_compat; gcccompat=$enableval
3344 if test "$gcccompat" = "yes"; then
3345 ADD_CPPFLAGS="$ADD_CPPFLAGS -DGCC_COMPAT";
3347 # Check whether --enable-pcc-debug was given.
3348 if test ${enable_pcc_debug+y}
3349 then :
3350 enableval=$enable_pcc_debug; pccdebug=$enableval
3353 if test "$pccdebug" = "yes"; then
3354 ADD_CPPFLAGS="$ADD_CPPFLAGS -DPCC_DEBUG";
3356 # Check whether --enable-twopass was given.
3357 if test ${enable_twopass+y}
3358 then :
3359 enableval=$enable_twopass; twopass=$enableval
3362 if test "$twopass" = "yes"; then
3363 ADD_CPPFLAGS="$ADD_CPPFLAGS -DTWOPASS";
3364 CCNAMES='$(BINPREFIX)cc0$(EXEEXT) $(BINPREFIX)cc1$(EXEEXT)'
3365 CF0='-DPASS1'
3366 CF1='-DPASS2'
3367 else
3368 CCNAMES='$(BINPREFIX)ccom$(EXEEXT)'
3371 if test "$targmach" = "nova"; then
3372 CCNAMES="`echo $CCNAMES` \$(BINPREFIX)cc2\$(EXEEXT)"
3375 # Check whether --enable-stripping was given.
3376 if test ${enable_stripping+y}
3377 then :
3378 enableval=$enable_stripping; stripping=$enableval
3381 if test "$stripping" = "yes"; then
3382 if test -z "$INSTALL_PROGRAM"; then
3383 INSTALL_PROGRAM='${INSTALL} -s'
3384 else
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Installed binaries may be unstripped" >&5
3386 printf "%s\n" "$as_me: WARNING: Installed binaries may be unstripped" >&2;}
3391 # Check whether --with-yasm was given.
3392 if test ${with_yasm+y}
3393 then :
3394 withval=$with_yasm; useyasm=$withval
3397 if test "$useyasm" = "yes"; then
3398 assembler="yasm"
3399 ADD_CPPFLAGS="$ADD_CPPFLAGS -DUSE_YASM"
3401 # Check whether --enable-native was given.
3402 if test ${enable_native+y}
3403 then :
3404 enableval=$enable_native; native=$enableval
3408 # Setup for ubuntu multiarch
3409 multiarch_path=
3410 case x$multiarch in
3411 xno)
3413 xyes)
3414 multiarch_path=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null` || multiarch_path=
3415 case $multiarch_path in
3416 *-*-*) ;;
3418 as_fn_error $? "Cannot determine Multi-Arch path '$multiarch_path'!" "$LINENO" 5
3420 esac
3422 xauto|x)
3423 multiarch_path=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null` || multiarch_path=
3424 case x$multiarch_path in
3425 x*-*-*) ;;
3426 x) ;;
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unrecognised Multi-Arch path '$multiarch_path'!" >&5
3429 printf "%s\n" "$as_me: WARNING: Ignoring unrecognised Multi-Arch path '$multiarch_path'!" >&2;}
3430 multiarch_path=
3432 esac
3434 x*-*-*)
3435 multiarch_path=$multiarch
3438 as_fn_error $? "Ignoring unrecognised Multi-Arch path '$multiarch_path'!" "$LINENO" 5
3440 esac
3441 if test -n "$multiarch_path"; then
3443 printf "%s\n" "#define MULTIARCH_PATH \"$multiarch_path\"" >>confdefs.h
3445 multiarch="\"$multiarch_path\""
3446 else
3447 multiarch="(no)"
3449 # setup for building a cross-compiler
3450 if test "X$native" = "Xyes" -o "X$target_alias" = "X$host_alias" -o "X$target_alias" = "X"; then
3451 BINPREFIX=""
3452 else
3453 BINPREFIX="${target_alias}-"
3454 test "X$prefix" = XNONE && prefix="$ac_default_prefix"
3455 test "X$exec_prefix" = XNONE && exec_prefix="${prefix}"
3456 if test -z "$altincdir"; then
3457 altincdir=${exec_prefix}/${target_alias}/include
3459 if test -z "$altlibdir"; then
3460 altlibdir=${exec_prefix}/${target_alias}/lib
3462 if test -z "$assembler"; then
3463 assembler=${BINPREFIX}as
3465 if test -z "$linker"; then
3466 linker=${BINPREFIX}ld
3468 preprocessor="${BINPREFIX}cpp"
3469 compiler="${BINPREFIX}ccom"
3470 cc2="${BINPREFIX}cc2"
3472 printf "%s\n" "#define CROSS_COMPILING 1" >>confdefs.h
3477 if test -n "$altincdir"; then
3479 printf "%s\n" "#define STDINC \"$altincdir\"" >>confdefs.h
3482 if test -n "$altlibdir"; then
3484 printf "%s\n" "#define LIBDIR \"${altlibdir}/\"" >>confdefs.h
3487 if test -n "$assembler"; then
3489 printf "%s\n" "#define ASSEMBLER \"$assembler\"" >>confdefs.h
3492 if test -n "$linker"; then
3494 printf "%s\n" "#define LINKER \"$linker\"" >>confdefs.h
3497 if test -n "$preprocessor"; then
3499 printf "%s\n" "#define PREPROCESSOR \"$preprocessor\"" >>confdefs.h
3502 if test -n "$compiler"; then
3504 printf "%s\n" "#define COMPILER \"$compiler\"" >>confdefs.h
3507 if test -n "$cc2"; then
3509 printf "%s\n" "#define CC2 \"$cc2\"" >>confdefs.h
3513 case $wchar_type in
3514 USHORT) wchar_size=2 ;;
3515 UNSIGNED|INT) wchar_size=4 ;;
3516 *) as_fn_error $? "Unknown wchar_t '$wchar_type'." "$LINENO" 5 ;;
3517 esac
3520 printf "%s\n" "#define WCHAR_TYPE $wchar_type" >>confdefs.h
3523 printf "%s\n" "#define WCHAR_SIZE $wchar_size" >>confdefs.h
3526 # check for additional compiler flags
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_CC+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else $as_nop
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 printf "%s\n" "$CC" >&6; }
3578 else
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 printf "%s\n" "no" >&6; }
3585 if test -z "$ac_cv_prog_CC"; then
3586 ac_ct_CC=$CC
3587 # Extract the first word of "gcc", so it can be a program name with args.
3588 set dummy gcc; ac_word=$2
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 printf %s "checking for $ac_word... " >&6; }
3591 if test ${ac_cv_prog_ac_ct_CC+y}
3592 then :
3593 printf %s "(cached) " >&6
3594 else $as_nop
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 case $as_dir in #(((
3603 '') as_dir=./ ;;
3604 */) ;;
3605 *) as_dir=$as_dir/ ;;
3606 esac
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="gcc"
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 printf "%s\n" "$ac_ct_CC" >&6; }
3623 else
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 printf "%s\n" "no" >&6; }
3628 if test "x$ac_ct_CC" = x; then
3629 CC=""
3630 else
3631 case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637 CC=$ac_ct_CC
3639 else
3640 CC="$ac_cv_prog_CC"
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}cc; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else $as_nop
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 case $as_dir in #(((
3661 '') as_dir=./ ;;
3662 */) ;;
3663 *) as_dir=$as_dir/ ;;
3664 esac
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC="${ac_tool_prefix}cc"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3689 if test -z "$CC"; then
3690 # Extract the first word of "cc", so it can be a program name with args.
3691 set dummy cc; ac_word=$2
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 printf %s "checking for $ac_word... " >&6; }
3694 if test ${ac_cv_prog_CC+y}
3695 then :
3696 printf %s "(cached) " >&6
3697 else $as_nop
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 ac_prog_rejected=no
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3705 IFS=$as_save_IFS
3706 case $as_dir in #(((
3707 '') as_dir=./ ;;
3708 */) ;;
3709 *) as_dir=$as_dir/ ;;
3710 esac
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3714 ac_prog_rejected=yes
3715 continue
3717 ac_cv_prog_CC="cc"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3725 if test $ac_prog_rejected = yes; then
3726 # We found a bogon in the path, so make sure we never use it.
3727 set dummy $ac_cv_prog_CC
3728 shift
3729 if test $# != 0; then
3730 # We chose a different compiler from the bogus one.
3731 # However, it has the same basename, so the bogon will be chosen
3732 # first if we set CC to just the basename; use the full file name.
3733 shift
3734 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3739 CC=$ac_cv_prog_CC
3740 if test -n "$CC"; then
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 printf "%s\n" "$CC" >&6; }
3743 else
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 printf "%s\n" "no" >&6; }
3750 if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 for ac_prog in cl.exe
3754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 printf %s "checking for $ac_word... " >&6; }
3758 if test ${ac_cv_prog_CC+y}
3759 then :
3760 printf %s "(cached) " >&6
3761 else $as_nop
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3768 IFS=$as_save_IFS
3769 case $as_dir in #(((
3770 '') as_dir=./ ;;
3771 */) ;;
3772 *) as_dir=$as_dir/ ;;
3773 esac
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3778 break 2
3780 done
3781 done
3782 IFS=$as_save_IFS
3786 CC=$ac_cv_prog_CC
3787 if test -n "$CC"; then
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 printf "%s\n" "$CC" >&6; }
3790 else
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 printf "%s\n" "no" >&6; }
3796 test -n "$CC" && break
3797 done
3799 if test -z "$CC"; then
3800 ac_ct_CC=$CC
3801 for ac_prog in cl.exe
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s "checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_ac_ct_CC+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else $as_nop
3811 if test -n "$ac_ct_CC"; then
3812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3817 IFS=$as_save_IFS
3818 case $as_dir in #(((
3819 '') as_dir=./ ;;
3820 */) ;;
3821 *) as_dir=$as_dir/ ;;
3822 esac
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC="$ac_prog"
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3827 break 2
3829 done
3830 done
3831 IFS=$as_save_IFS
3835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3836 if test -n "$ac_ct_CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838 printf "%s\n" "$ac_ct_CC" >&6; }
3839 else
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3845 test -n "$ac_ct_CC" && break
3846 done
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857 CC=$ac_ct_CC
3862 if test -z "$CC"; then
3863 if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3865 set dummy ${ac_tool_prefix}clang; ac_word=$2
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 printf %s "checking for $ac_word... " >&6; }
3868 if test ${ac_cv_prog_CC+y}
3869 then :
3870 printf %s "(cached) " >&6
3871 else $as_nop
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3878 IFS=$as_save_IFS
3879 case $as_dir in #(((
3880 '') as_dir=./ ;;
3881 */) ;;
3882 *) as_dir=$as_dir/ ;;
3883 esac
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_CC="${ac_tool_prefix}clang"
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3888 break 2
3890 done
3891 done
3892 IFS=$as_save_IFS
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 printf "%s\n" "$CC" >&6; }
3900 else
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3907 if test -z "$ac_cv_prog_CC"; then
3908 ac_ct_CC=$CC
3909 # Extract the first word of "clang", so it can be a program name with args.
3910 set dummy clang; ac_word=$2
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 printf %s "checking for $ac_word... " >&6; }
3913 if test ${ac_cv_prog_ac_ct_CC+y}
3914 then :
3915 printf %s "(cached) " >&6
3916 else $as_nop
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3923 IFS=$as_save_IFS
3924 case $as_dir in #(((
3925 '') as_dir=./ ;;
3926 */) ;;
3927 *) as_dir=$as_dir/ ;;
3928 esac
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_ac_ct_CC="clang"
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3933 break 2
3935 done
3936 done
3937 IFS=$as_save_IFS
3941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 printf "%s\n" "$ac_ct_CC" >&6; }
3945 else
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 printf "%s\n" "no" >&6; }
3950 if test "x$ac_ct_CC" = x; then
3951 CC=""
3952 else
3953 case $cross_compiling:$ac_tool_warned in
3954 yes:)
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959 CC=$ac_ct_CC
3961 else
3962 CC="$ac_cv_prog_CC"
3968 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "no acceptable C compiler found in \$PATH
3971 See \`config.log' for more details" "$LINENO" 5; }
3973 # Provide some information about the compiler.
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3975 set X $ac_compile
3976 ac_compiler=$2
3977 for ac_option in --version -v -V -qversion -version; do
3978 { { ac_try="$ac_compiler $ac_option >&5"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 printf "%s\n" "$ac_try_echo"; } >&5
3985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3986 ac_status=$?
3987 if test -s conftest.err; then
3988 sed '10a\
3989 ... rest of stderr output deleted ...
3990 10q' conftest.err >conftest.er1
3991 cat conftest.er1 >&5
3993 rm -f conftest.er1 conftest.err
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996 done
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4002 main (void)
4006 return 0;
4008 _ACEOF
4009 ac_clean_files_save=$ac_clean_files
4010 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4011 # Try to create an executable without -o first, disregard a.out.
4012 # It will help us diagnose broken compilers, and finding out an intuition
4013 # of exeext.
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4015 printf %s "checking whether the C compiler works... " >&6; }
4016 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4018 # The possible output files:
4019 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4021 ac_rmfiles=
4022 for ac_file in $ac_files
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4027 esac
4028 done
4029 rm -f $ac_rmfiles
4031 if { { ac_try="$ac_link_default"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 printf "%s\n" "$ac_try_echo"; } >&5
4038 (eval "$ac_link_default") 2>&5
4039 ac_status=$?
4040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4042 then :
4043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4046 # so that the user can short-circuit this test for compilers unknown to
4047 # Autoconf.
4048 for ac_file in $ac_files ''
4050 test -f "$ac_file" || continue
4051 case $ac_file in
4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4054 [ab].out )
4055 # We found the default executable, but exeext='' is most
4056 # certainly right.
4057 break;;
4058 *.* )
4059 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4060 then :; else
4061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4063 # We set ac_cv_exeext here because the later test for it is not
4064 # safe: cross compilers may not add the suffix if given an `-o'
4065 # argument, so we may need to know it at that point already.
4066 # Even if this section looks crufty: it has the advantage of
4067 # actually working.
4068 break;;
4070 break;;
4071 esac
4072 done
4073 test "$ac_cv_exeext" = no && ac_cv_exeext=
4075 else $as_nop
4076 ac_file=''
4078 if test -z "$ac_file"
4079 then :
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 printf "%s\n" "no" >&6; }
4082 printf "%s\n" "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error 77 "C compiler cannot create executables
4088 See \`config.log' for more details" "$LINENO" 5; }
4089 else $as_nop
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 printf "%s\n" "yes" >&6; }
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 printf %s "checking for C compiler default output file name... " >&6; }
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4096 printf "%s\n" "$ac_file" >&6; }
4097 ac_exeext=$ac_cv_exeext
4099 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4100 ac_clean_files=$ac_clean_files_save
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4102 printf %s "checking for suffix of executables... " >&6; }
4103 if { { ac_try="$ac_link"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 printf "%s\n" "$ac_try_echo"; } >&5
4110 (eval "$ac_link") 2>&5
4111 ac_status=$?
4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4114 then :
4115 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4116 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4117 # work properly (i.e., refer to `conftest.exe'), while it won't with
4118 # `rm'.
4119 for ac_file in conftest.exe conftest conftest.*; do
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4124 break;;
4125 * ) break;;
4126 esac
4127 done
4128 else $as_nop
4129 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4131 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4132 See \`config.log' for more details" "$LINENO" 5; }
4134 rm -f conftest conftest$ac_cv_exeext
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4136 printf "%s\n" "$ac_cv_exeext" >&6; }
4138 rm -f conftest.$ac_ext
4139 EXEEXT=$ac_cv_exeext
4140 ac_exeext=$EXEEXT
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <stdio.h>
4145 main (void)
4147 FILE *f = fopen ("conftest.out", "w");
4148 return ferror (f) || fclose (f) != 0;
4151 return 0;
4153 _ACEOF
4154 ac_clean_files="$ac_clean_files conftest.out"
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4158 printf %s "checking whether we are cross compiling... " >&6; }
4159 if test "$cross_compiling" != yes; then
4160 { { ac_try="$ac_link"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4166 printf "%s\n" "$ac_try_echo"; } >&5
4167 (eval "$ac_link") 2>&5
4168 ac_status=$?
4169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4170 test $ac_status = 0; }
4171 if { ac_try='./conftest$ac_cv_exeext'
4172 { { case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 printf "%s\n" "$ac_try_echo"; } >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181 test $ac_status = 0; }; }; then
4182 cross_compiling=no
4183 else
4184 if test "$cross_compiling" = maybe; then
4185 cross_compiling=yes
4186 else
4187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error 77 "cannot run C compiled programs.
4190 If you meant to cross compile, use \`--host'.
4191 See \`config.log' for more details" "$LINENO" 5; }
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4196 printf "%s\n" "$cross_compiling" >&6; }
4198 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4199 ac_clean_files=$ac_clean_files_save
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4201 printf %s "checking for suffix of object files... " >&6; }
4202 if test ${ac_cv_objext+y}
4203 then :
4204 printf %s "(cached) " >&6
4205 else $as_nop
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main (void)
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.o conftest.obj
4218 if { { ac_try="$ac_compile"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 printf "%s\n" "$ac_try_echo"; } >&5
4225 (eval "$ac_compile") 2>&5
4226 ac_status=$?
4227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }
4229 then :
4230 for ac_file in conftest.o conftest.obj conftest.*; do
4231 test -f "$ac_file" || continue;
4232 case $ac_file in
4233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4235 break;;
4236 esac
4237 done
4238 else $as_nop
4239 printf "%s\n" "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "cannot compute suffix of object files: cannot compile
4245 See \`config.log' for more details" "$LINENO" 5; }
4247 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4250 printf "%s\n" "$ac_cv_objext" >&6; }
4251 OBJEXT=$ac_cv_objext
4252 ac_objext=$OBJEXT
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4254 printf %s "checking whether the compiler supports GNU C... " >&6; }
4255 if test ${ac_cv_c_compiler_gnu+y}
4256 then :
4257 printf %s "(cached) " >&6
4258 else $as_nop
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4263 main (void)
4265 #ifndef __GNUC__
4266 choke me
4267 #endif
4270 return 0;
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"
4274 then :
4275 ac_compiler_gnu=yes
4276 else $as_nop
4277 ac_compiler_gnu=no
4279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4284 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 if test $ac_compiler_gnu = yes; then
4288 GCC=yes
4289 else
4290 GCC=
4292 ac_test_CFLAGS=${CFLAGS+y}
4293 ac_save_CFLAGS=$CFLAGS
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4295 printf %s "checking whether $CC accepts -g... " >&6; }
4296 if test ${ac_cv_prog_cc_g+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else $as_nop
4300 ac_save_c_werror_flag=$ac_c_werror_flag
4301 ac_c_werror_flag=yes
4302 ac_cv_prog_cc_g=no
4303 CFLAGS="-g"
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4308 main (void)
4312 return 0;
4314 _ACEOF
4315 if ac_fn_c_try_compile "$LINENO"
4316 then :
4317 ac_cv_prog_cc_g=yes
4318 else $as_nop
4319 CFLAGS=""
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4324 main (void)
4328 return 0;
4330 _ACEOF
4331 if ac_fn_c_try_compile "$LINENO"
4332 then :
4334 else $as_nop
4335 ac_c_werror_flag=$ac_save_c_werror_flag
4336 CFLAGS="-g"
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4341 main (void)
4345 return 0;
4347 _ACEOF
4348 if ac_fn_c_try_compile "$LINENO"
4349 then :
4350 ac_cv_prog_cc_g=yes
4352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4357 ac_c_werror_flag=$ac_save_c_werror_flag
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4361 if test $ac_test_CFLAGS; then
4362 CFLAGS=$ac_save_CFLAGS
4363 elif test $ac_cv_prog_cc_g = yes; then
4364 if test "$GCC" = yes; then
4365 CFLAGS="-g -O2"
4366 else
4367 CFLAGS="-g"
4369 else
4370 if test "$GCC" = yes; then
4371 CFLAGS="-O2"
4372 else
4373 CFLAGS=
4376 ac_prog_cc_stdc=no
4377 if test x$ac_prog_cc_stdc = xno
4378 then :
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4380 printf %s "checking for $CC option to enable C11 features... " >&6; }
4381 if test ${ac_cv_prog_cc_c11+y}
4382 then :
4383 printf %s "(cached) " >&6
4384 else $as_nop
4385 ac_cv_prog_cc_c11=no
4386 ac_save_CC=$CC
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 $ac_c_conftest_c11_program
4390 _ACEOF
4391 for ac_arg in '' -std=gnu11
4393 CC="$ac_save_CC $ac_arg"
4394 if ac_fn_c_try_compile "$LINENO"
4395 then :
4396 ac_cv_prog_cc_c11=$ac_arg
4398 rm -f core conftest.err conftest.$ac_objext conftest.beam
4399 test "x$ac_cv_prog_cc_c11" != "xno" && break
4400 done
4401 rm -f conftest.$ac_ext
4402 CC=$ac_save_CC
4405 if test "x$ac_cv_prog_cc_c11" = xno
4406 then :
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4408 printf "%s\n" "unsupported" >&6; }
4409 else $as_nop
4410 if test "x$ac_cv_prog_cc_c11" = x
4411 then :
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4413 printf "%s\n" "none needed" >&6; }
4414 else $as_nop
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4416 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4417 CC="$CC $ac_cv_prog_cc_c11"
4419 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4420 ac_prog_cc_stdc=c11
4423 if test x$ac_prog_cc_stdc = xno
4424 then :
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4426 printf %s "checking for $CC option to enable C99 features... " >&6; }
4427 if test ${ac_cv_prog_cc_c99+y}
4428 then :
4429 printf %s "(cached) " >&6
4430 else $as_nop
4431 ac_cv_prog_cc_c99=no
4432 ac_save_CC=$CC
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 $ac_c_conftest_c99_program
4436 _ACEOF
4437 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4439 CC="$ac_save_CC $ac_arg"
4440 if ac_fn_c_try_compile "$LINENO"
4441 then :
4442 ac_cv_prog_cc_c99=$ac_arg
4444 rm -f core conftest.err conftest.$ac_objext conftest.beam
4445 test "x$ac_cv_prog_cc_c99" != "xno" && break
4446 done
4447 rm -f conftest.$ac_ext
4448 CC=$ac_save_CC
4451 if test "x$ac_cv_prog_cc_c99" = xno
4452 then :
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4454 printf "%s\n" "unsupported" >&6; }
4455 else $as_nop
4456 if test "x$ac_cv_prog_cc_c99" = x
4457 then :
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459 printf "%s\n" "none needed" >&6; }
4460 else $as_nop
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4462 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4463 CC="$CC $ac_cv_prog_cc_c99"
4465 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4466 ac_prog_cc_stdc=c99
4469 if test x$ac_prog_cc_stdc = xno
4470 then :
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4472 printf %s "checking for $CC option to enable C89 features... " >&6; }
4473 if test ${ac_cv_prog_cc_c89+y}
4474 then :
4475 printf %s "(cached) " >&6
4476 else $as_nop
4477 ac_cv_prog_cc_c89=no
4478 ac_save_CC=$CC
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 $ac_c_conftest_c89_program
4482 _ACEOF
4483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4485 CC="$ac_save_CC $ac_arg"
4486 if ac_fn_c_try_compile "$LINENO"
4487 then :
4488 ac_cv_prog_cc_c89=$ac_arg
4490 rm -f core conftest.err conftest.$ac_objext conftest.beam
4491 test "x$ac_cv_prog_cc_c89" != "xno" && break
4492 done
4493 rm -f conftest.$ac_ext
4494 CC=$ac_save_CC
4497 if test "x$ac_cv_prog_cc_c89" = xno
4498 then :
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4500 printf "%s\n" "unsupported" >&6; }
4501 else $as_nop
4502 if test "x$ac_cv_prog_cc_c89" = x
4503 then :
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4505 printf "%s\n" "none needed" >&6; }
4506 else $as_nop
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4508 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4509 CC="$CC $ac_cv_prog_cc_c89"
4511 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4512 ac_prog_cc_stdc=c89
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 DESIRED_FLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate"
4523 for flag in $DESIRED_FLAGS
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $flag" >&5
4526 printf %s "checking whether $CC accepts $flag... " >&6; }
4527 cflags="$CFLAGS"
4528 CFLAGS="$CFLAGS $flag -Werror"
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4535 main (void)
4539 return 0;
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"
4544 then :
4546 use_flag=yes
4548 else $as_nop
4550 use_flag=no
4553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4554 CFLAGS="$cflags"
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_flag" >&5
4557 printf "%s\n" "$use_flag" >&6; }
4558 if test $use_flag = yes; then
4559 ADD_CFLAGS="$ADD_CFLAGS $flag"
4561 done
4563 # setup for cross-compiling mkext
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a C compiler for mkext" >&5
4565 printf %s "checking for a C compiler for mkext... " >&6; }
4566 if test $cross_compiling = yes; then
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross compiling" >&5
4568 printf "%s\n" "cross compiling" >&6; }
4569 for ac_prog in pcc clang gcc cc
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 printf %s "checking for $ac_word... " >&6; }
4575 if test ${ac_cv_prog_CC_FOR_BUILD+y}
4576 then :
4577 printf %s "(cached) " >&6
4578 else $as_nop
4579 if test -n "$CC_FOR_BUILD"; then
4580 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4585 IFS=$as_save_IFS
4586 case $as_dir in #(((
4587 '') as_dir=./ ;;
4588 */) ;;
4589 *) as_dir=$as_dir/ ;;
4590 esac
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
4594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4604 if test -n "$CC_FOR_BUILD"; then
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4606 printf "%s\n" "$CC_FOR_BUILD" >&6; }
4607 else
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 printf "%s\n" "no" >&6; }
4613 test -n "$CC_FOR_BUILD" && break
4614 done
4616 else
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not cross compiling" >&5
4618 printf "%s\n" "not cross compiling" >&6; }
4619 CC_FOR_BUILD=${CC-cc}
4623 ac_header= ac_cache=
4624 for ac_item in $ac_header_c_list
4626 if test $ac_cache; then
4627 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4628 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4629 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4631 ac_header= ac_cache=
4632 elif test $ac_header; then
4633 ac_cache=$ac_item
4634 else
4635 ac_header=$ac_item
4637 done
4646 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4647 then :
4649 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 printf size specifiers" >&5
4653 printf %s "checking for C99 printf size specifiers... " >&6; }
4654 if test ${ac_cv_have_c99_format+y}
4655 then :
4656 printf %s "(cached) " >&6
4657 else $as_nop
4659 if test "$cross_compiling" = yes
4660 then :
4661 ac_cv_have_c99_format=yes
4662 else $as_nop
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4666 $ac_includes_default
4668 main (void)
4671 char buf[64];
4672 if (sprintf(buf, "%lld%hhd%jd%zd%td", (long long int)1, (char)2, (intmax_t)3, (size_t)4, (ptrdiff_t)5) != 5)
4673 exit(1);
4674 else if (strcmp(buf, "12345"))
4675 exit(2);
4678 return 0;
4680 _ACEOF
4681 if ac_fn_c_try_run "$LINENO"
4682 then :
4683 ac_cv_have_c99_format=yes
4684 else $as_nop
4685 ac_cv_have_c99_format=no
4687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4688 conftest.$ac_objext conftest.beam conftest.$ac_ext
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_c99_format" >&5
4694 printf "%s\n" "$ac_cv_have_c99_format" >&6; }
4695 if test $ac_cv_have_c99_format = yes; then
4697 printf "%s\n" "#define HAVE_C99_FORMAT 1" >>confdefs.h
4701 # The cast to long int works around a bug in the HP C Compiler
4702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4704 # This bug is HP SR number 8606223364.
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
4706 printf %s "checking size of int *... " >&6; }
4707 if test ${ac_cv_sizeof_int_p+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else $as_nop
4711 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"
4712 then :
4714 else $as_nop
4715 if test "$ac_cv_type_int_p" = yes; then
4716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4718 as_fn_error 77 "cannot compute sizeof (int *)
4719 See \`config.log' for more details" "$LINENO" 5; }
4720 else
4721 ac_cv_sizeof_int_p=0
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
4727 printf "%s\n" "$ac_cv_sizeof_int_p" >&6; }
4731 printf "%s\n" "#define SIZEOF_INT_P $ac_cv_sizeof_int_p" >>confdefs.h
4735 # Byteorder of host
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4737 printf %s "checking whether byte ordering is bigendian... " >&6; }
4738 if test ${ac_cv_c_bigendian+y}
4739 then :
4740 printf %s "(cached) " >&6
4741 else $as_nop
4742 ac_cv_c_bigendian=unknown
4743 # See if we're dealing with a universal compiler.
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #ifndef __APPLE_CC__
4747 not a universal capable compiler
4748 #endif
4749 typedef int dummy;
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"
4753 then :
4755 # Check for potential -arch flags. It is not universal unless
4756 # there are at least two -arch flags with different values.
4757 ac_arch=
4758 ac_prev=
4759 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4760 if test -n "$ac_prev"; then
4761 case $ac_word in
4762 i?86 | x86_64 | ppc | ppc64)
4763 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4764 ac_arch=$ac_word
4765 else
4766 ac_cv_c_bigendian=universal
4767 break
4770 esac
4771 ac_prev=
4772 elif test "x$ac_word" = "x-arch"; then
4773 ac_prev=arch
4775 done
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4778 if test $ac_cv_c_bigendian = unknown; then
4779 # See if sys/param.h defines the BYTE_ORDER macro.
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #include <sys/types.h>
4783 #include <sys/param.h>
4786 main (void)
4788 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4789 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4790 && LITTLE_ENDIAN)
4791 bogus endian macros
4792 #endif
4795 return 0;
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"
4799 then :
4800 # It does; now see whether it defined to BIG_ENDIAN or not.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 #include <sys/types.h>
4804 #include <sys/param.h>
4807 main (void)
4809 #if BYTE_ORDER != BIG_ENDIAN
4810 not big endian
4811 #endif
4814 return 0;
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"
4818 then :
4819 ac_cv_c_bigendian=yes
4820 else $as_nop
4821 ac_cv_c_bigendian=no
4823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4827 if test $ac_cv_c_bigendian = unknown; then
4828 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #include <limits.h>
4834 main (void)
4836 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4837 bogus endian macros
4838 #endif
4841 return 0;
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"
4845 then :
4846 # It does; now see whether it defined to _BIG_ENDIAN or not.
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #include <limits.h>
4852 main (void)
4854 #ifndef _BIG_ENDIAN
4855 not big endian
4856 #endif
4859 return 0;
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"
4863 then :
4864 ac_cv_c_bigendian=yes
4865 else $as_nop
4866 ac_cv_c_bigendian=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4872 if test $ac_cv_c_bigendian = unknown; then
4873 # Compile a test program.
4874 if test "$cross_compiling" = yes
4875 then :
4876 # Try to guess by grepping values from an object file.
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 unsigned short int ascii_mm[] =
4880 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4881 unsigned short int ascii_ii[] =
4882 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4883 int use_ascii (int i) {
4884 return ascii_mm[i] + ascii_ii[i];
4886 unsigned short int ebcdic_ii[] =
4887 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4888 unsigned short int ebcdic_mm[] =
4889 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4890 int use_ebcdic (int i) {
4891 return ebcdic_mm[i] + ebcdic_ii[i];
4893 extern int foo;
4896 main (void)
4898 return use_ascii (foo) == use_ebcdic (foo);
4900 return 0;
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"
4904 then :
4905 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4906 ac_cv_c_bigendian=yes
4908 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4909 if test "$ac_cv_c_bigendian" = unknown; then
4910 ac_cv_c_bigendian=no
4911 else
4912 # finding both strings is unlikely to happen, but who knows?
4913 ac_cv_c_bigendian=unknown
4917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4918 else $as_nop
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 $ac_includes_default
4923 main (void)
4926 /* Are we little or big endian? From Harbison&Steele. */
4927 union
4929 long int l;
4930 char c[sizeof (long int)];
4931 } u;
4932 u.l = 1;
4933 return u.c[sizeof (long int) - 1] == 1;
4936 return 0;
4938 _ACEOF
4939 if ac_fn_c_try_run "$LINENO"
4940 then :
4941 ac_cv_c_bigendian=no
4942 else $as_nop
4943 ac_cv_c_bigendian=yes
4945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4946 conftest.$ac_objext conftest.beam conftest.$ac_ext
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4952 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
4953 case $ac_cv_c_bigendian in #(
4954 yes)
4956 printf "%s\n" "#define HOST_BIG_ENDIAN 1" >>confdefs.h
4957 ;; #(
4960 printf "%s\n" "#define HOST_LITTLE_ENDIAN 1" >>confdefs.h
4961 ;; #(
4962 universal)
4964 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4966 ;; #(
4968 as_fn_error $? "unknown endianness
4969 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4970 esac
4973 # Checks for programs.
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4975 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4976 set x ${MAKE-make}
4977 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4978 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else $as_nop
4982 cat >conftest.make <<\_ACEOF
4983 SHELL = /bin/sh
4984 all:
4985 @echo '@@@%%%=$(MAKE)=@@@%%%'
4986 _ACEOF
4987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4989 *@@@%%%=?*=@@@%%%*)
4990 eval ac_cv_prog_make_${ac_make}_set=yes;;
4992 eval ac_cv_prog_make_${ac_make}_set=no;;
4993 esac
4994 rm -f conftest.make
4996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4998 printf "%s\n" "yes" >&6; }
4999 SET_MAKE=
5000 else
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 printf "%s\n" "no" >&6; }
5003 SET_MAKE="MAKE=${MAKE-make}"
5007 # Find a good install program. We prefer a C program (faster),
5008 # so one script is as good as another. But avoid the broken or
5009 # incompatible versions:
5010 # SysV /etc/install, /usr/sbin/install
5011 # SunOS /usr/etc/install
5012 # IRIX /sbin/install
5013 # AIX /bin/install
5014 # AmigaOS /C/install, which installs bootblocks on floppy discs
5015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # OS/2's system install, which has a completely different semantic
5019 # ./install, which can be erroneously created by make from ./install.sh.
5020 # Reject install programs that cannot install multiple files.
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5022 printf %s "checking for a BSD-compatible install... " >&6; }
5023 if test -z "$INSTALL"; then
5024 if test ${ac_cv_path_install+y}
5025 then :
5026 printf %s "(cached) " >&6
5027 else $as_nop
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 case $as_dir in #(((
5033 '') as_dir=./ ;;
5034 */) ;;
5035 *) as_dir=$as_dir/ ;;
5036 esac
5037 # Account for fact that we put trailing slashes in our PATH walk.
5038 case $as_dir in #((
5039 ./ | /[cC]/* | \
5040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5041 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5042 /usr/ucb/* ) ;;
5044 # OSF1 and SCO ODT 3.0 have their own names for install.
5045 # Don't use installbsd from OSF since it installs stuff as root
5046 # by default.
5047 for ac_prog in ginstall scoinst install; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5050 if test $ac_prog = install &&
5051 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5052 # AIX install. It has an incompatible calling convention.
5054 elif test $ac_prog = install &&
5055 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5056 # program-specific install script used by HP pwplus--don't use.
5058 else
5059 rm -rf conftest.one conftest.two conftest.dir
5060 echo one > conftest.one
5061 echo two > conftest.two
5062 mkdir conftest.dir
5063 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5064 test -s conftest.one && test -s conftest.two &&
5065 test -s conftest.dir/conftest.one &&
5066 test -s conftest.dir/conftest.two
5067 then
5068 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5069 break 3
5073 done
5074 done
5076 esac
5078 done
5079 IFS=$as_save_IFS
5081 rm -rf conftest.one conftest.two conftest.dir
5084 if test ${ac_cv_path_install+y}; then
5085 INSTALL=$ac_cv_path_install
5086 else
5087 # As a last resort, use the slow shell script. Don't cache a
5088 # value for INSTALL within a source directory, because that will
5089 # break other packages using the cache if that directory is
5090 # removed, or if the value is a relative name.
5091 INSTALL=$ac_install_sh
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5095 printf "%s\n" "$INSTALL" >&6; }
5097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5098 # It thinks the first close brace ends the variable substitution.
5099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5105 for ac_prog in 'bison -y' byacc
5107 # Extract the first word of "$ac_prog", so it can be a program name with args.
5108 set dummy $ac_prog; ac_word=$2
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 printf %s "checking for $ac_word... " >&6; }
5111 if test ${ac_cv_prog_YACC+y}
5112 then :
5113 printf %s "(cached) " >&6
5114 else $as_nop
5115 if test -n "$YACC"; then
5116 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5121 IFS=$as_save_IFS
5122 case $as_dir in #(((
5123 '') as_dir=./ ;;
5124 */) ;;
5125 *) as_dir=$as_dir/ ;;
5126 esac
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_YACC="$ac_prog"
5130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5131 break 2
5133 done
5134 done
5135 IFS=$as_save_IFS
5139 YACC=$ac_cv_prog_YACC
5140 if test -n "$YACC"; then
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5142 printf "%s\n" "$YACC" >&6; }
5143 else
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 printf "%s\n" "no" >&6; }
5149 test -n "$YACC" && break
5150 done
5151 test -n "$YACC" || YACC="yacc"
5153 for ac_prog in flex lex
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 printf %s "checking for $ac_word... " >&6; }
5159 if test ${ac_cv_prog_LEX+y}
5160 then :
5161 printf %s "(cached) " >&6
5162 else $as_nop
5163 if test -n "$LEX"; then
5164 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 case $as_dir in #(((
5171 '') as_dir=./ ;;
5172 */) ;;
5173 *) as_dir=$as_dir/ ;;
5174 esac
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_LEX="$ac_prog"
5178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5179 break 2
5181 done
5182 done
5183 IFS=$as_save_IFS
5187 LEX=$ac_cv_prog_LEX
5188 if test -n "$LEX"; then
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5190 printf "%s\n" "$LEX" >&6; }
5191 else
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 printf "%s\n" "no" >&6; }
5197 test -n "$LEX" && break
5198 done
5199 test -n "$LEX" || LEX=":"
5201 if test "x$LEX" != "x:"; then
5202 cat >conftest.l <<_ACEOF
5204 #ifdef __cplusplus
5205 extern "C"
5206 #endif
5207 int yywrap(void);
5210 a { ECHO; }
5211 b { REJECT; }
5212 c { yymore (); }
5213 d { yyless (1); }
5214 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5215 #ifdef __cplusplus
5216 yyless ((yyinput () != 0));
5217 #else
5218 yyless ((input () != 0));
5219 #endif
5221 f { unput (yytext[0]); }
5222 . { BEGIN INITIAL; }
5224 #ifdef YYTEXT_POINTER
5225 extern char *yytext;
5226 #endif
5228 yywrap (void)
5230 return 1;
5233 main (void)
5235 return ! yylex ();
5237 _ACEOF
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
5239 printf %s "checking for lex output file root... " >&6; }
5240 if test ${ac_cv_prog_lex_root+y}
5241 then :
5242 printf %s "(cached) " >&6
5243 else $as_nop
5245 ac_cv_prog_lex_root=unknown
5246 { { ac_try="$LEX conftest.l"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 printf "%s\n" "$ac_try_echo"; } >&5
5253 (eval "$LEX conftest.l") 2>&5
5254 ac_status=$?
5255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; } &&
5257 if test -f lex.yy.c; then
5258 ac_cv_prog_lex_root=lex.yy
5259 elif test -f lexyy.c; then
5260 ac_cv_prog_lex_root=lexyy
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5264 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
5265 if test "$ac_cv_prog_lex_root" = unknown
5266 then :
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
5268 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
5269 LEX=: LEXLIB=
5271 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5273 if test ${LEXLIB+y}
5274 then :
5276 else $as_nop
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
5279 printf %s "checking for lex library... " >&6; }
5280 if test ${ac_cv_lib_lex+y}
5281 then :
5282 printf %s "(cached) " >&6
5283 else $as_nop
5285 ac_save_LIBS="$LIBS"
5286 ac_found=false
5287 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
5288 case $ac_cv_lib_lex in #(
5289 'none needed') :
5290 ;; #(
5291 'not found') :
5292 break ;; #(
5293 *) :
5294 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
5295 *) :
5297 esac
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301 `cat $LEX_OUTPUT_ROOT.c`
5302 _ACEOF
5303 if ac_fn_c_try_link "$LINENO"
5304 then :
5305 ac_found=:
5307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5308 conftest$ac_exeext conftest.$ac_ext
5309 if $ac_found; then
5310 break
5312 done
5313 LIBS="$ac_save_LIBS"
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5317 printf "%s\n" "$ac_cv_lib_lex" >&6; }
5318 if test "$ac_cv_lib_lex" = 'not found'
5319 then :
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
5321 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
5322 LEX=: LEXLIB=
5323 elif test "$ac_cv_lib_lex" = 'none needed'
5324 then :
5325 LEXLIB=''
5326 else $as_nop
5327 LEXLIB=$ac_cv_lib_lex
5329 ac_save_LIBS="$LIBS"
5330 LIBS=
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
5332 printf %s "checking for library containing yywrap... " >&6; }
5333 if test ${ac_cv_search_yywrap+y}
5334 then :
5335 printf %s "(cached) " >&6
5336 else $as_nop
5337 ac_func_search_save_LIBS=$LIBS
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5341 /* Override any GCC internal prototype to avoid an error.
5342 Use char because int might match the return type of a GCC
5343 builtin and then its argument prototype would still apply. */
5344 char yywrap ();
5346 main (void)
5348 return yywrap ();
5350 return 0;
5352 _ACEOF
5353 for ac_lib in '' fl l
5355 if test -z "$ac_lib"; then
5356 ac_res="none required"
5357 else
5358 ac_res=-l$ac_lib
5359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5361 if ac_fn_c_try_link "$LINENO"
5362 then :
5363 ac_cv_search_yywrap=$ac_res
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5366 conftest$ac_exeext
5367 if test ${ac_cv_search_yywrap+y}
5368 then :
5369 break
5371 done
5372 if test ${ac_cv_search_yywrap+y}
5373 then :
5375 else $as_nop
5376 ac_cv_search_yywrap=no
5378 rm conftest.$ac_ext
5379 LIBS=$ac_func_search_save_LIBS
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
5382 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
5383 ac_res=$ac_cv_search_yywrap
5384 if test "$ac_res" != no
5385 then :
5386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5387 LEXLIB="$LIBS"
5390 LIBS="$ac_save_LIBS"
5394 if test "$LEX" != :
5395 then :
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5398 printf %s "checking whether yytext is a pointer... " >&6; }
5399 if test ${ac_cv_prog_lex_yytext_pointer+y}
5400 then :
5401 printf %s "(cached) " >&6
5402 else $as_nop
5403 # POSIX says lex can declare yytext either as a pointer or an array; the
5404 # default is implementation-dependent. Figure out which it is, since
5405 # not all implementations provide the %pointer and %array declarations.
5406 ac_cv_prog_lex_yytext_pointer=no
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 #define YYTEXT_POINTER 1
5411 `cat $LEX_OUTPUT_ROOT.c`
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"
5414 then :
5415 ac_cv_prog_lex_yytext_pointer=yes
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5421 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
5422 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5424 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
5429 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5433 # Checks for libraries.
5434 if test $libvmf != no ; then
5435 LIBS=-lvmf
5437 printf "%s\n" "#define LIBVMF 1" >>confdefs.h
5439 if test $libvmf != yes ; then
5440 LDFLAGS=-L$libvmf
5444 # Checks for header files.
5445 # AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
5446 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5447 if test "x$ac_cv_header_string_h" = xyes
5448 then :
5449 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5454 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5455 if test ${ac_cv_header_sys_wait_h+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else $as_nop
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #include <sys/types.h>
5462 #include <sys/wait.h>
5463 #ifndef WEXITSTATUS
5464 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5465 #endif
5466 #ifndef WIFEXITED
5467 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5468 #endif
5471 main (void)
5473 int s;
5474 wait (&s);
5475 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5477 return 0;
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"
5481 then :
5482 ac_cv_header_sys_wait_h=yes
5483 else $as_nop
5484 ac_cv_header_sys_wait_h=no
5486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5489 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
5490 if test $ac_cv_header_sys_wait_h = yes; then
5492 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5497 # Checks for library functions.
5498 ## AC_FUNC_STRTOD
5499 # AC_FUNC_VPRINTF
5500 # AC_CHECK_FUNCS([memset strchr strdup strrchr strtol])
5501 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
5502 if test "x$ac_cv_func_strtold" = xyes
5503 then :
5504 printf "%s\n" "#define HAVE_STRTOLD 1" >>confdefs.h
5507 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
5508 if test "x$ac_cv_func_vsnprintf" = xyes
5509 then :
5510 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
5513 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
5514 if test "x$ac_cv_func_snprintf" = xyes
5515 then :
5516 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
5519 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
5520 if test "x$ac_cv_func_mkstemp" = xyes
5521 then :
5522 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
5525 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5526 if test "x$ac_cv_func_strlcat" = xyes
5527 then :
5528 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
5531 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5532 if test "x$ac_cv_func_strlcpy" = xyes
5533 then :
5534 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
5537 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
5538 if test "x$ac_cv_func_getopt" = xyes
5539 then :
5540 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
5543 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
5544 if test "x$ac_cv_func_ffs" = xyes
5545 then :
5546 printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
5549 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
5550 if test "x$ac_cv_func_vfork" = xyes
5551 then :
5552 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
5556 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5557 if test "x$ac_cv_type_size_t" = xyes
5558 then :
5560 else $as_nop
5562 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5566 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5567 # for constant arguments. Useless!
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5569 printf %s "checking for working alloca.h... " >&6; }
5570 if test ${ac_cv_working_alloca_h+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else $as_nop
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #include <alloca.h>
5578 main (void)
5580 char *p = (char *) alloca (2 * sizeof (int));
5581 if (p) return 0;
5583 return 0;
5585 _ACEOF
5586 if ac_fn_c_try_link "$LINENO"
5587 then :
5588 ac_cv_working_alloca_h=yes
5589 else $as_nop
5590 ac_cv_working_alloca_h=no
5592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5593 conftest$ac_exeext conftest.$ac_ext
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5596 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
5597 if test $ac_cv_working_alloca_h = yes; then
5599 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5604 printf %s "checking for alloca... " >&6; }
5605 if test ${ac_cv_func_alloca_works+y}
5606 then :
5607 printf %s "(cached) " >&6
5608 else $as_nop
5609 if test $ac_cv_working_alloca_h = yes; then
5610 ac_cv_func_alloca_works=yes
5611 else
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <stdlib.h>
5615 #include <stddef.h>
5616 #ifndef alloca
5617 # ifdef __GNUC__
5618 # define alloca __builtin_alloca
5619 # elif defined _MSC_VER
5620 # include <malloc.h>
5621 # define alloca _alloca
5622 # else
5623 # ifdef __cplusplus
5624 extern "C"
5625 # endif
5626 void *alloca (size_t);
5627 # endif
5628 #endif
5631 main (void)
5633 char *p = (char *) alloca (1);
5634 if (p) return 0;
5636 return 0;
5638 _ACEOF
5639 if ac_fn_c_try_link "$LINENO"
5640 then :
5641 ac_cv_func_alloca_works=yes
5642 else $as_nop
5643 ac_cv_func_alloca_works=no
5645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5646 conftest$ac_exeext conftest.$ac_ext
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5649 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
5652 if test $ac_cv_func_alloca_works = yes; then
5654 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
5656 else
5657 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5658 # that cause trouble. Some versions do not even contain alloca or
5659 # contain a buggy version. If you still want to use their alloca,
5660 # use ar to extract alloca.o from them instead of compiling alloca.c.
5662 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5664 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5668 printf %s "checking stack direction for C alloca... " >&6; }
5669 if test ${ac_cv_c_stack_direction+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else $as_nop
5673 if test "$cross_compiling" = yes
5674 then :
5675 ac_cv_c_stack_direction=0
5676 else $as_nop
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 $ac_includes_default
5681 find_stack_direction (int *addr, int depth)
5683 int dir, dummy = 0;
5684 if (! addr)
5685 addr = &dummy;
5686 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5687 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5688 return dir + dummy;
5692 main (int argc, char **argv)
5694 return find_stack_direction (0, argc + !argv + 20) < 0;
5696 _ACEOF
5697 if ac_fn_c_try_run "$LINENO"
5698 then :
5699 ac_cv_c_stack_direction=1
5700 else $as_nop
5701 ac_cv_c_stack_direction=-1
5703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5704 conftest.$ac_objext conftest.beam conftest.$ac_ext
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5709 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
5710 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
5736 pcc_major=`echo $PACKAGE_VERSION | awk -F. '{print $1}'`
5737 pcc_minor=`echo $PACKAGE_VERSION | awk -F. '{print $2}'`
5738 pcc_minorminor=`echo $PACKAGE_VERSION | awk -F. '{print $3}'`
5739 test -n "$MPVERSION" && MPVERSION=", $MPVERSION"
5740 versstr="\"$PACKAGE_STRING `cat $srcdir/DATESTAMP` for $target$MPVERSION\""
5741 targstr="\"$target$MPVERSION\""
5744 printf "%s\n" "#define PCC_MAJOR $pcc_major" >>confdefs.h
5747 printf "%s\n" "#define PCC_MINOR $pcc_minor" >>confdefs.h
5750 printf "%s\n" "#define PCC_MINORMINOR $pcc_minorminor" >>confdefs.h
5753 printf "%s\n" "#define VERSSTR $versstr" >>confdefs.h
5756 printf "%s\n" "#define TARGSTR $targstr" >>confdefs.h
5759 ac_config_files="$ac_config_files Makefile cc/Makefile cc/cc/Makefile cc/cpp/Makefile cc/ccom/Makefile cc/cxxcom/Makefile cc/driver/Makefile f77/Makefile f77/f77/Makefile f77/fcom/Makefile"
5761 cat >confcache <<\_ACEOF
5762 # This file is a shell script that caches the results of configure
5763 # tests run on this system so they can be shared between configure
5764 # scripts and configure runs, see configure's option --config-cache.
5765 # It is not useful on other systems. If it contains results you don't
5766 # want to keep, you may remove or edit it.
5768 # config.status only pays attention to the cache file if you give it
5769 # the --recheck option to rerun configure.
5771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5773 # following values.
5775 _ACEOF
5777 # The following way of writing the cache mishandles newlines in values,
5778 # but we know of no workaround that is simple, portable, and efficient.
5779 # So, we kill variables containing newlines.
5780 # Ultrix sh set writes to stderr and can't be redirected directly,
5781 # and sets the high bit in the cache file unless we assign to the vars.
5783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5784 eval ac_val=\$$ac_var
5785 case $ac_val in #(
5786 *${as_nl}*)
5787 case $ac_var in #(
5788 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5789 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5790 esac
5791 case $ac_var in #(
5792 _ | IFS | as_nl) ;; #(
5793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5794 *) { eval $ac_var=; unset $ac_var;} ;;
5795 esac ;;
5796 esac
5797 done
5799 (set) 2>&1 |
5800 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5801 *${as_nl}ac_space=\ *)
5802 # `set' does not quote correctly, so add quotes: double-quote
5803 # substitution turns \\\\ into \\, and sed turns \\ into \.
5804 sed -n \
5805 "s/'/'\\\\''/g;
5806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5807 ;; #(
5809 # `set' quotes correctly as required by POSIX, so do not add quotes.
5810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5812 esac |
5813 sort
5815 sed '
5816 /^ac_cv_env_/b end
5817 t clear
5818 :clear
5819 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5820 t end
5821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5822 :end' >>confcache
5823 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5824 if test -w "$cache_file"; then
5825 if test "x$cache_file" != "x/dev/null"; then
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5827 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5828 if test ! -f "$cache_file" || test -h "$cache_file"; then
5829 cat confcache >"$cache_file"
5830 else
5831 case $cache_file in #(
5832 */* | ?:*)
5833 mv -f confcache "$cache_file"$$ &&
5834 mv -f "$cache_file"$$ "$cache_file" ;; #(
5836 mv -f confcache "$cache_file" ;;
5837 esac
5840 else
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5842 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5845 rm -f confcache
5847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5848 # Let make expand exec_prefix.
5849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5851 DEFS=-DHAVE_CONFIG_H
5853 ac_libobjs=
5854 ac_ltlibobjs=
5856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5857 # 1. Remove the extension, and $U if already installed.
5858 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5859 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5861 # will be set to the directory where LIBOBJS objects are built.
5862 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5863 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5864 done
5865 LIBOBJS=$ac_libobjs
5867 LTLIBOBJS=$ac_ltlibobjs
5872 : "${CONFIG_STATUS=./config.status}"
5873 ac_write_fail=0
5874 ac_clean_files_save=$ac_clean_files
5875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5877 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5878 as_write_fail=0
5879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5880 #! $SHELL
5881 # Generated by $as_me.
5882 # Run this file to recreate the current configuration.
5883 # Compiler output produced by configure, useful for debugging
5884 # configure, is in config.log if it exists.
5886 debug=false
5887 ac_cs_recheck=false
5888 ac_cs_silent=false
5890 SHELL=\${CONFIG_SHELL-$SHELL}
5891 export SHELL
5892 _ASEOF
5893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5894 ## -------------------- ##
5895 ## M4sh Initialization. ##
5896 ## -------------------- ##
5898 # Be more Bourne compatible
5899 DUALCASE=1; export DUALCASE # for MKS sh
5900 as_nop=:
5901 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5902 then :
5903 emulate sh
5904 NULLCMD=:
5905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5906 # is contrary to our usage. Disable this feature.
5907 alias -g '${1+"$@"}'='"$@"'
5908 setopt NO_GLOB_SUBST
5909 else $as_nop
5910 case `(set -o) 2>/dev/null` in #(
5911 *posix*) :
5912 set -o posix ;; #(
5913 *) :
5915 esac
5920 # Reset variables that may have inherited troublesome values from
5921 # the environment.
5923 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5924 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5925 # side effect of setting IFS to empty, thus disabling word splitting.)
5926 # Quoting is to prevent editors from complaining about space-tab.
5927 as_nl='
5929 export as_nl
5930 IFS=" "" $as_nl"
5932 PS1='$ '
5933 PS2='> '
5934 PS4='+ '
5936 # Ensure predictable behavior from utilities with locale-dependent output.
5937 LC_ALL=C
5938 export LC_ALL
5939 LANGUAGE=C
5940 export LANGUAGE
5942 # We cannot yet rely on "unset" to work, but we need these variables
5943 # to be unset--not just set to an empty or harmless value--now, to
5944 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5945 # also avoids known problems related to "unset" and subshell syntax
5946 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5947 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5948 do eval test \${$as_var+y} \
5949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5950 done
5952 # Ensure that fds 0, 1, and 2 are open.
5953 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5954 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5955 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5957 # The user is always right.
5958 if ${PATH_SEPARATOR+false} :; then
5959 PATH_SEPARATOR=:
5960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5962 PATH_SEPARATOR=';'
5967 # Find who we are. Look in the path if we contain no directory separator.
5968 as_myself=
5969 case $0 in #((
5970 *[\\/]* ) as_myself=$0 ;;
5971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5974 IFS=$as_save_IFS
5975 case $as_dir in #(((
5976 '') as_dir=./ ;;
5977 */) ;;
5978 *) as_dir=$as_dir/ ;;
5979 esac
5980 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5981 done
5982 IFS=$as_save_IFS
5985 esac
5986 # We did not find ourselves, most probably we were run as `sh COMMAND'
5987 # in which case we are not to be found in the path.
5988 if test "x$as_myself" = x; then
5989 as_myself=$0
5991 if test ! -f "$as_myself"; then
5992 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5993 exit 1
5998 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5999 # ----------------------------------------
6000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6002 # script with STATUS, using 1 if that was 0.
6003 as_fn_error ()
6005 as_status=$1; test $as_status -eq 0 && as_status=1
6006 if test "$4"; then
6007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6010 printf "%s\n" "$as_me: error: $2" >&2
6011 as_fn_exit $as_status
6012 } # as_fn_error
6016 # as_fn_set_status STATUS
6017 # -----------------------
6018 # Set $? to STATUS, without forking.
6019 as_fn_set_status ()
6021 return $1
6022 } # as_fn_set_status
6024 # as_fn_exit STATUS
6025 # -----------------
6026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6027 as_fn_exit ()
6029 set +e
6030 as_fn_set_status $1
6031 exit $1
6032 } # as_fn_exit
6034 # as_fn_unset VAR
6035 # ---------------
6036 # Portably unset VAR.
6037 as_fn_unset ()
6039 { eval $1=; unset $1;}
6041 as_unset=as_fn_unset
6043 # as_fn_append VAR VALUE
6044 # ----------------------
6045 # Append the text in VALUE to the end of the definition contained in VAR. Take
6046 # advantage of any shell optimizations that allow amortized linear growth over
6047 # repeated appends, instead of the typical quadratic growth present in naive
6048 # implementations.
6049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6050 then :
6051 eval 'as_fn_append ()
6053 eval $1+=\$2
6055 else $as_nop
6056 as_fn_append ()
6058 eval $1=\$$1\$2
6060 fi # as_fn_append
6062 # as_fn_arith ARG...
6063 # ------------------
6064 # Perform arithmetic evaluation on the ARGs, and store the result in the
6065 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6066 # must be portable across $(()) and expr.
6067 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6068 then :
6069 eval 'as_fn_arith ()
6071 as_val=$(( $* ))
6073 else $as_nop
6074 as_fn_arith ()
6076 as_val=`expr "$@" || test $? -eq 1`
6078 fi # as_fn_arith
6081 if expr a : '\(a\)' >/dev/null 2>&1 &&
6082 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6083 as_expr=expr
6084 else
6085 as_expr=false
6088 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6089 as_basename=basename
6090 else
6091 as_basename=false
6094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6095 as_dirname=dirname
6096 else
6097 as_dirname=false
6100 as_me=`$as_basename -- "$0" ||
6101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6102 X"$0" : 'X\(//\)$' \| \
6103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6104 printf "%s\n" X/"$0" |
6105 sed '/^.*\/\([^/][^/]*\)\/*$/{
6106 s//\1/
6109 /^X\/\(\/\/\)$/{
6110 s//\1/
6113 /^X\/\(\/\).*/{
6114 s//\1/
6117 s/.*/./; q'`
6119 # Avoid depending upon Character Ranges.
6120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6123 as_cr_digits='0123456789'
6124 as_cr_alnum=$as_cr_Letters$as_cr_digits
6127 # Determine whether it's possible to make 'echo' print without a newline.
6128 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6129 # for compatibility with existing Makefiles.
6130 ECHO_C= ECHO_N= ECHO_T=
6131 case `echo -n x` in #(((((
6132 -n*)
6133 case `echo 'xy\c'` in
6134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6135 xy) ECHO_C='\c';;
6136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6137 ECHO_T=' ';;
6138 esac;;
6140 ECHO_N='-n';;
6141 esac
6143 # For backward compatibility with old third-party macros, we provide
6144 # the shell variables $as_echo and $as_echo_n. New code should use
6145 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6146 as_echo='printf %s\n'
6147 as_echo_n='printf %s'
6149 rm -f conf$$ conf$$.exe conf$$.file
6150 if test -d conf$$.dir; then
6151 rm -f conf$$.dir/conf$$.file
6152 else
6153 rm -f conf$$.dir
6154 mkdir conf$$.dir 2>/dev/null
6156 if (echo >conf$$.file) 2>/dev/null; then
6157 if ln -s conf$$.file conf$$ 2>/dev/null; then
6158 as_ln_s='ln -s'
6159 # ... but there are two gotchas:
6160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6162 # In both cases, we have to default to `cp -pR'.
6163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6164 as_ln_s='cp -pR'
6165 elif ln conf$$.file conf$$ 2>/dev/null; then
6166 as_ln_s=ln
6167 else
6168 as_ln_s='cp -pR'
6170 else
6171 as_ln_s='cp -pR'
6173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6174 rmdir conf$$.dir 2>/dev/null
6177 # as_fn_mkdir_p
6178 # -------------
6179 # Create "$as_dir" as a directory, including parents if necessary.
6180 as_fn_mkdir_p ()
6183 case $as_dir in #(
6184 -*) as_dir=./$as_dir;;
6185 esac
6186 test -d "$as_dir" || eval $as_mkdir_p || {
6187 as_dirs=
6188 while :; do
6189 case $as_dir in #(
6190 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6191 *) as_qdir=$as_dir;;
6192 esac
6193 as_dirs="'$as_qdir' $as_dirs"
6194 as_dir=`$as_dirname -- "$as_dir" ||
6195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6196 X"$as_dir" : 'X\(//\)[^/]' \| \
6197 X"$as_dir" : 'X\(//\)$' \| \
6198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6199 printf "%s\n" X"$as_dir" |
6200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6201 s//\1/
6204 /^X\(\/\/\)[^/].*/{
6205 s//\1/
6208 /^X\(\/\/\)$/{
6209 s//\1/
6212 /^X\(\/\).*/{
6213 s//\1/
6216 s/.*/./; q'`
6217 test -d "$as_dir" && break
6218 done
6219 test -z "$as_dirs" || eval "mkdir $as_dirs"
6220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6223 } # as_fn_mkdir_p
6224 if mkdir -p . 2>/dev/null; then
6225 as_mkdir_p='mkdir -p "$as_dir"'
6226 else
6227 test -d ./-p && rmdir ./-p
6228 as_mkdir_p=false
6232 # as_fn_executable_p FILE
6233 # -----------------------
6234 # Test if FILE is an executable regular file.
6235 as_fn_executable_p ()
6237 test -f "$1" && test -x "$1"
6238 } # as_fn_executable_p
6239 as_test_x='test -x'
6240 as_executable_p=as_fn_executable_p
6242 # Sed expression to map a string onto a valid CPP name.
6243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6245 # Sed expression to map a string onto a valid variable name.
6246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6249 exec 6>&1
6250 ## ----------------------------------- ##
6251 ## Main body of $CONFIG_STATUS script. ##
6252 ## ----------------------------------- ##
6253 _ASEOF
6254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6257 # Save the log message, to keep $0 and so on meaningful, and to
6258 # report actual input values of CONFIG_FILES etc. instead of their
6259 # values after options handling.
6260 ac_log="
6261 This file was extended by Portable C Compiler $as_me 1.2.0.DEVEL, which was
6262 generated by GNU Autoconf 2.71. Invocation command line was
6264 CONFIG_FILES = $CONFIG_FILES
6265 CONFIG_HEADERS = $CONFIG_HEADERS
6266 CONFIG_LINKS = $CONFIG_LINKS
6267 CONFIG_COMMANDS = $CONFIG_COMMANDS
6268 $ $0 $@
6270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6273 _ACEOF
6275 case $ac_config_files in *"
6276 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6277 esac
6279 case $ac_config_headers in *"
6280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6281 esac
6284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6285 # Files that config.status was made for.
6286 config_files="$ac_config_files"
6287 config_headers="$ac_config_headers"
6289 _ACEOF
6291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6292 ac_cs_usage="\
6293 \`$as_me' instantiates files and other configuration actions
6294 from templates according to the current configuration. Unless the files
6295 and actions are specified as TAGs, all are instantiated by default.
6297 Usage: $0 [OPTION]... [TAG]...
6299 -h, --help print this help, then exit
6300 -V, --version print version number and configuration settings, then exit
6301 --config print configuration, then exit
6302 -q, --quiet, --silent
6303 do not print progress messages
6304 -d, --debug don't remove temporary files
6305 --recheck update $as_me by reconfiguring in the same conditions
6306 --file=FILE[:TEMPLATE]
6307 instantiate the configuration file FILE
6308 --header=FILE[:TEMPLATE]
6309 instantiate the configuration header FILE
6311 Configuration files:
6312 $config_files
6314 Configuration headers:
6315 $config_headers
6317 Report bugs to <pcc@lists.ludd.ltu.se>.
6318 Portable C Compiler home page: <http://pcc.ludd.ltu.se/>."
6320 _ACEOF
6321 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6322 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6324 ac_cs_config='$ac_cs_config_escaped'
6325 ac_cs_version="\\
6326 Portable C Compiler config.status 1.2.0.DEVEL
6327 configured by $0, generated by GNU Autoconf 2.71,
6328 with options \\"\$ac_cs_config\\"
6330 Copyright (C) 2021 Free Software Foundation, Inc.
6331 This config.status script is free software; the Free Software Foundation
6332 gives unlimited permission to copy, distribute and modify it."
6334 ac_pwd='$ac_pwd'
6335 srcdir='$srcdir'
6336 INSTALL='$INSTALL'
6337 test -n "\$AWK" || AWK=awk
6338 _ACEOF
6340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6341 # The default lists apply if the user does not specify any file.
6342 ac_need_defaults=:
6343 while test $# != 0
6345 case $1 in
6346 --*=?*)
6347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6349 ac_shift=:
6351 --*=)
6352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6353 ac_optarg=
6354 ac_shift=:
6357 ac_option=$1
6358 ac_optarg=$2
6359 ac_shift=shift
6361 esac
6363 case $ac_option in
6364 # Handling of the options.
6365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6366 ac_cs_recheck=: ;;
6367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6368 printf "%s\n" "$ac_cs_version"; exit ;;
6369 --config | --confi | --conf | --con | --co | --c )
6370 printf "%s\n" "$ac_cs_config"; exit ;;
6371 --debug | --debu | --deb | --de | --d | -d )
6372 debug=: ;;
6373 --file | --fil | --fi | --f )
6374 $ac_shift
6375 case $ac_optarg in
6376 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6377 '') as_fn_error $? "missing file argument" ;;
6378 esac
6379 as_fn_append CONFIG_FILES " '$ac_optarg'"
6380 ac_need_defaults=false;;
6381 --header | --heade | --head | --hea )
6382 $ac_shift
6383 case $ac_optarg in
6384 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6385 esac
6386 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6387 ac_need_defaults=false;;
6388 --he | --h)
6389 # Conflict between --help and --header
6390 as_fn_error $? "ambiguous option: \`$1'
6391 Try \`$0 --help' for more information.";;
6392 --help | --hel | -h )
6393 printf "%s\n" "$ac_cs_usage"; exit ;;
6394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6396 ac_cs_silent=: ;;
6398 # This is an error.
6399 -*) as_fn_error $? "unrecognized option: \`$1'
6400 Try \`$0 --help' for more information." ;;
6402 *) as_fn_append ac_config_targets " $1"
6403 ac_need_defaults=false ;;
6405 esac
6406 shift
6407 done
6409 ac_configure_extra_args=
6411 if $ac_cs_silent; then
6412 exec 6>/dev/null
6413 ac_configure_extra_args="$ac_configure_extra_args --silent"
6416 _ACEOF
6417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6418 if \$ac_cs_recheck; then
6419 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6420 shift
6421 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6422 CONFIG_SHELL='$SHELL'
6423 export CONFIG_SHELL
6424 exec "\$@"
6427 _ACEOF
6428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6429 exec 5>>config.log
6431 echo
6432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6433 ## Running $as_me. ##
6434 _ASBOX
6435 printf "%s\n" "$ac_log"
6436 } >&5
6438 _ACEOF
6439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6440 _ACEOF
6442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6444 # Handling of arguments.
6445 for ac_config_target in $ac_config_targets
6447 case $ac_config_target in
6448 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6449 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6450 "cc/Makefile") CONFIG_FILES="$CONFIG_FILES cc/Makefile" ;;
6451 "cc/cc/Makefile") CONFIG_FILES="$CONFIG_FILES cc/cc/Makefile" ;;
6452 "cc/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES cc/cpp/Makefile" ;;
6453 "cc/ccom/Makefile") CONFIG_FILES="$CONFIG_FILES cc/ccom/Makefile" ;;
6454 "cc/cxxcom/Makefile") CONFIG_FILES="$CONFIG_FILES cc/cxxcom/Makefile" ;;
6455 "cc/driver/Makefile") CONFIG_FILES="$CONFIG_FILES cc/driver/Makefile" ;;
6456 "f77/Makefile") CONFIG_FILES="$CONFIG_FILES f77/Makefile" ;;
6457 "f77/f77/Makefile") CONFIG_FILES="$CONFIG_FILES f77/f77/Makefile" ;;
6458 "f77/fcom/Makefile") CONFIG_FILES="$CONFIG_FILES f77/fcom/Makefile" ;;
6460 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6461 esac
6462 done
6465 # If the user did not use the arguments to specify the items to instantiate,
6466 # then the envvar interface is used. Set only those that are not.
6467 # We use the long form for the default assignment because of an extremely
6468 # bizarre bug on SunOS 4.1.3.
6469 if $ac_need_defaults; then
6470 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6471 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6474 # Have a temporary directory for convenience. Make it in the build tree
6475 # simply because there is no reason against having it here, and in addition,
6476 # creating and moving files from /tmp can sometimes cause problems.
6477 # Hook for its removal unless debugging.
6478 # Note that there is a small window in which the directory will not be cleaned:
6479 # after its creation but before its name has been assigned to `$tmp'.
6480 $debug ||
6482 tmp= ac_tmp=
6483 trap 'exit_status=$?
6484 : "${ac_tmp:=$tmp}"
6485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6487 trap 'as_fn_exit 1' 1 2 13 15
6489 # Create a (secure) tmp directory for tmp files.
6492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6493 test -d "$tmp"
6494 } ||
6496 tmp=./conf$$-$RANDOM
6497 (umask 077 && mkdir "$tmp")
6498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6499 ac_tmp=$tmp
6501 # Set up the scripts for CONFIG_FILES section.
6502 # No need to generate them if there are no CONFIG_FILES.
6503 # This happens for instance with `./config.status config.h'.
6504 if test -n "$CONFIG_FILES"; then
6507 ac_cr=`echo X | tr X '\015'`
6508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6509 # But we know of no other shell where ac_cr would be empty at this
6510 # point, so we can use a bashism as a fallback.
6511 if test "x$ac_cr" = x; then
6512 eval ac_cr=\$\'\\r\'
6514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6516 ac_cs_awk_cr='\\r'
6517 else
6518 ac_cs_awk_cr=$ac_cr
6521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6522 _ACEOF
6526 echo "cat >conf$$subs.awk <<_ACEOF" &&
6527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6528 echo "_ACEOF"
6529 } >conf$$subs.sh ||
6530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6532 ac_delim='%!_!# '
6533 for ac_last_try in false false false false false :; do
6534 . ./conf$$subs.sh ||
6535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6538 if test $ac_delim_n = $ac_delim_num; then
6539 break
6540 elif $ac_last_try; then
6541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6542 else
6543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6545 done
6546 rm -f conf$$subs.sh
6548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6550 _ACEOF
6551 sed -n '
6553 s/^/S["/; s/!.*/"]=/
6556 s/^[^!]*!//
6557 :repl
6558 t repl
6559 s/'"$ac_delim"'$//
6560 t delim
6563 s/\(.\{148\}\)..*/\1/
6564 t more1
6565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6568 b repl
6569 :more1
6570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6573 s/.\{148\}//
6574 t nl
6575 :delim
6577 s/\(.\{148\}\)..*/\1/
6578 t more2
6579 s/["\\]/\\&/g; s/^/"/; s/$/"/
6582 :more2
6583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6586 s/.\{148\}//
6587 t delim
6588 ' <conf$$subs.awk | sed '
6589 /^[^""]/{
6591 s/\n//
6593 ' >>$CONFIG_STATUS || ac_write_fail=1
6594 rm -f conf$$subs.awk
6595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6596 _ACAWK
6597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6598 for (key in S) S_is_set[key] = 1
6599 FS = "\a"
6603 line = $ 0
6604 nfields = split(line, field, "@")
6605 substed = 0
6606 len = length(field[1])
6607 for (i = 2; i < nfields; i++) {
6608 key = field[i]
6609 keylen = length(key)
6610 if (S_is_set[key]) {
6611 value = S[key]
6612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6613 len += length(value) + length(field[++i])
6614 substed = 1
6615 } else
6616 len += 1 + keylen
6619 print line
6622 _ACAWK
6623 _ACEOF
6624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6627 else
6629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6631 _ACEOF
6633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6635 # trailing colons and then remove the whole line if VPATH becomes empty
6636 # (actually we leave an empty line to preserve line numbers).
6637 if test "x$srcdir" = x.; then
6638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6640 s///
6641 s/^/:/
6642 s/[ ]*$/:/
6643 s/:\$(srcdir):/:/g
6644 s/:\${srcdir}:/:/g
6645 s/:@srcdir@:/:/g
6646 s/^:*//
6647 s/:*$//
6649 s/\(=[ ]*\).*/\1/
6651 s/\n//
6652 s/^[^=]*=[ ]*$//
6656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6657 fi # test -n "$CONFIG_FILES"
6659 # Set up the scripts for CONFIG_HEADERS section.
6660 # No need to generate them if there are no CONFIG_HEADERS.
6661 # This happens for instance with `./config.status Makefile'.
6662 if test -n "$CONFIG_HEADERS"; then
6663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6664 BEGIN {
6665 _ACEOF
6667 # Transform confdefs.h into an awk script `defines.awk', embedded as
6668 # here-document in config.status, that substitutes the proper values into
6669 # config.h.in to produce config.h.
6671 # Create a delimiter string that does not exist in confdefs.h, to ease
6672 # handling of long lines.
6673 ac_delim='%!_!# '
6674 for ac_last_try in false false :; do
6675 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6676 if test -z "$ac_tt"; then
6677 break
6678 elif $ac_last_try; then
6679 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6680 else
6681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6683 done
6685 # For the awk script, D is an array of macro values keyed by name,
6686 # likewise P contains macro parameters if any. Preserve backslash
6687 # newline sequences.
6689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6690 sed -n '
6691 s/.\{148\}/&'"$ac_delim"'/g
6692 t rset
6693 :rset
6694 s/^[ ]*#[ ]*define[ ][ ]*/ /
6695 t def
6697 :def
6698 s/\\$//
6699 t bsnl
6700 s/["\\]/\\&/g
6701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6702 D["\1"]=" \3"/p
6703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6705 :bsnl
6706 s/["\\]/\\&/g
6707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6708 D["\1"]=" \3\\\\\\n"\\/p
6709 t cont
6710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6711 t cont
6713 :cont
6715 s/.\{148\}/&'"$ac_delim"'/g
6716 t clear
6717 :clear
6718 s/\\$//
6719 t bsnlc
6720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6722 :bsnlc
6723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6724 b cont
6725 ' <confdefs.h | sed '
6726 s/'"$ac_delim"'/"\\\
6727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6730 for (key in D) D_is_set[key] = 1
6731 FS = "\a"
6733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6734 line = \$ 0
6735 split(line, arg, " ")
6736 if (arg[1] == "#") {
6737 defundef = arg[2]
6738 mac1 = arg[3]
6739 } else {
6740 defundef = substr(arg[1], 2)
6741 mac1 = arg[2]
6743 split(mac1, mac2, "(") #)
6744 macro = mac2[1]
6745 prefix = substr(line, 1, index(line, defundef) - 1)
6746 if (D_is_set[macro]) {
6747 # Preserve the white space surrounding the "#".
6748 print prefix "define", macro P[macro] D[macro]
6749 next
6750 } else {
6751 # Replace #undef with comments. This is necessary, for example,
6752 # in the case of _POSIX_SOURCE, which is predefined and required
6753 # on some systems where configure will not decide to define it.
6754 if (defundef == "undef") {
6755 print "/*", prefix defundef, macro, "*/"
6756 next
6760 { print }
6761 _ACAWK
6762 _ACEOF
6763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6764 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6765 fi # test -n "$CONFIG_HEADERS"
6768 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6769 shift
6770 for ac_tag
6772 case $ac_tag in
6773 :[FHLC]) ac_mode=$ac_tag; continue;;
6774 esac
6775 case $ac_mode$ac_tag in
6776 :[FHL]*:*);;
6777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6778 :[FH]-) ac_tag=-:-;;
6779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6780 esac
6781 ac_save_IFS=$IFS
6782 IFS=:
6783 set x $ac_tag
6784 IFS=$ac_save_IFS
6785 shift
6786 ac_file=$1
6787 shift
6789 case $ac_mode in
6790 :L) ac_source=$1;;
6791 :[FH])
6792 ac_file_inputs=
6793 for ac_f
6795 case $ac_f in
6796 -) ac_f="$ac_tmp/stdin";;
6797 *) # Look for the file first in the build tree, then in the source tree
6798 # (if the path is not absolute). The absolute path cannot be DOS-style,
6799 # because $ac_f cannot contain `:'.
6800 test -f "$ac_f" ||
6801 case $ac_f in
6802 [\\/$]*) false;;
6803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6804 esac ||
6805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6806 esac
6807 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6808 as_fn_append ac_file_inputs " '$ac_f'"
6809 done
6811 # Let's still pretend it is `configure' which instantiates (i.e., don't
6812 # use $as_me), people would be surprised to read:
6813 # /* config.h. Generated by config.status. */
6814 configure_input='Generated from '`
6815 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6816 `' by configure.'
6817 if test x"$ac_file" != x-; then
6818 configure_input="$ac_file. $configure_input"
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6820 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6822 # Neutralize special characters interpreted by sed in replacement strings.
6823 case $configure_input in #(
6824 *\&* | *\|* | *\\* )
6825 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6827 *) ac_sed_conf_input=$configure_input;;
6828 esac
6830 case $ac_tag in
6831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6833 esac
6835 esac
6837 ac_dir=`$as_dirname -- "$ac_file" ||
6838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6839 X"$ac_file" : 'X\(//\)[^/]' \| \
6840 X"$ac_file" : 'X\(//\)$' \| \
6841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6842 printf "%s\n" X"$ac_file" |
6843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6844 s//\1/
6847 /^X\(\/\/\)[^/].*/{
6848 s//\1/
6851 /^X\(\/\/\)$/{
6852 s//\1/
6855 /^X\(\/\).*/{
6856 s//\1/
6859 s/.*/./; q'`
6860 as_dir="$ac_dir"; as_fn_mkdir_p
6861 ac_builddir=.
6863 case "$ac_dir" in
6864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6866 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6867 # A ".." for each directory in $ac_dir_suffix.
6868 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6869 case $ac_top_builddir_sub in
6870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6872 esac ;;
6873 esac
6874 ac_abs_top_builddir=$ac_pwd
6875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6876 # for backward compatibility:
6877 ac_top_builddir=$ac_top_build_prefix
6879 case $srcdir in
6880 .) # We are building in place.
6881 ac_srcdir=.
6882 ac_top_srcdir=$ac_top_builddir_sub
6883 ac_abs_top_srcdir=$ac_pwd ;;
6884 [\\/]* | ?:[\\/]* ) # Absolute name.
6885 ac_srcdir=$srcdir$ac_dir_suffix;
6886 ac_top_srcdir=$srcdir
6887 ac_abs_top_srcdir=$srcdir ;;
6888 *) # Relative name.
6889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6890 ac_top_srcdir=$ac_top_build_prefix$srcdir
6891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6892 esac
6893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6896 case $ac_mode in
6899 # CONFIG_FILE
6902 case $INSTALL in
6903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6904 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6905 esac
6906 _ACEOF
6908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6909 # If the template does not know about datarootdir, expand it.
6910 # FIXME: This hack should be removed a few years after 2.60.
6911 ac_datarootdir_hack=; ac_datarootdir_seen=
6912 ac_sed_dataroot='
6913 /datarootdir/ {
6917 /@datadir@/p
6918 /@docdir@/p
6919 /@infodir@/p
6920 /@localedir@/p
6921 /@mandir@/p'
6922 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6923 *datarootdir*) ac_datarootdir_seen=yes;;
6924 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6926 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6927 _ACEOF
6928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6929 ac_datarootdir_hack='
6930 s&@datadir@&$datadir&g
6931 s&@docdir@&$docdir&g
6932 s&@infodir@&$infodir&g
6933 s&@localedir@&$localedir&g
6934 s&@mandir@&$mandir&g
6935 s&\\\${datarootdir}&$datarootdir&g' ;;
6936 esac
6937 _ACEOF
6939 # Neutralize VPATH when `$srcdir' = `.'.
6940 # Shell code in configure.ac might set extrasub.
6941 # FIXME: do we really want to maintain this feature?
6942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6943 ac_sed_extra="$ac_vpsub
6944 $extrasub
6945 _ACEOF
6946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6949 s|@configure_input@|$ac_sed_conf_input|;t t
6950 s&@top_builddir@&$ac_top_builddir_sub&;t t
6951 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6952 s&@srcdir@&$ac_srcdir&;t t
6953 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6954 s&@top_srcdir@&$ac_top_srcdir&;t t
6955 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6956 s&@builddir@&$ac_builddir&;t t
6957 s&@abs_builddir@&$ac_abs_builddir&;t t
6958 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6959 s&@INSTALL@&$ac_INSTALL&;t t
6960 $ac_datarootdir_hack
6962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6963 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6968 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6970 which seems to be undefined. Please make sure it is defined" >&5
6971 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6972 which seems to be undefined. Please make sure it is defined" >&2;}
6974 rm -f "$ac_tmp/stdin"
6975 case $ac_file in
6976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6978 esac \
6979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6983 # CONFIG_HEADER
6985 if test x"$ac_file" != x-; then
6987 printf "%s\n" "/* $configure_input */" >&1 \
6988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6989 } >"$ac_tmp/config.h" \
6990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6993 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6994 else
6995 rm -f "$ac_file"
6996 mv "$ac_tmp/config.h" "$ac_file" \
6997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6999 else
7000 printf "%s\n" "/* $configure_input */" >&1 \
7001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7002 || as_fn_error $? "could not create -" "$LINENO" 5
7007 esac
7009 done # for ac_tag
7012 as_fn_exit 0
7013 _ACEOF
7014 ac_clean_files=$ac_clean_files_save
7016 test $ac_write_fail = 0 ||
7017 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7020 # configure is writing to config.log, and then calls config.status.
7021 # config.status does its own redirection, appending to config.log.
7022 # Unfortunately, on DOS this fails, as config.log is still kept open
7023 # by configure, so config.status won't be able to write to it; its
7024 # output is simply discarded. So we exec the FD to /dev/null,
7025 # effectively closing config.log, so it can be properly (re)opened and
7026 # appended to by config.status. When coming back to configure, we
7027 # need to make the FD available again.
7028 if test "$no_create" != yes; then
7029 ac_cs_success=:
7030 ac_config_status_args=
7031 test "$silent" = yes &&
7032 ac_config_status_args="$ac_config_status_args --quiet"
7033 exec 5>/dev/null
7034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7035 exec 5>>config.log
7036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7037 # would make configure fail if this is the last instruction.
7038 $ac_cs_success || as_fn_exit 1
7040 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7042 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7046 eval "exec_prefix=$exec_prefix"
7047 eval "bindir=$bindir"
7048 eval "libexecdir=$libexecdir"
7050 echo
7051 echo "Target CPU is .................... ${targmach}"
7052 echo "Target ABI is .................... ${abi}"
7053 echo "Target OS is ..................... ${targos}"
7054 echo "Compiler is called ............... ${BINPREFIX}pcc${EXEEXT}"
7055 echo "Installing compiler into ......... ${bindir}"
7056 echo "Installing pre-processor into .... ${libexecdir}"
7057 echo "Using assembler .................. ${assembler-<default>}"
7058 echo "Using linker ..................... ${linker-<default>}"
7059 echo "Using Multi-Arch path ............ ${multiarch}"
7060 echo "Using include path ............... ${altincdir-<default>}"
7061 echo "Using library path ............... ${altlibdir-<default>}"
7062 echo "Use libvmf ....................... $libvmf"
7063 echo "Has TLS support .................. $tls"
7064 echo "Has GCC compatibility ............ $gcccompat"
7065 echo "Has PCC debugging ................ $pccdebug"
7066 echo "Type of wchar_t is ............... ${wchar_type} (${wchar_size} chars)"
7067 echo
7068 echo "Configure finished. Do 'make && make install' to compile and install.