[ucsim] Apply [patches:461]
[sdcc.git] / sdcc / configure
blob9de81c62e1619a7c4e68bf0e1ef6d6c253920642
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
47 export as_nl
48 IFS=" "" $as_nl"
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
156 esac
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
273 exit 1
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
291 { eval $1=; unset $1;}
293 as_unset=as_fn_unset
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
301 return $1
302 } # as_fn_set_status
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
318 return $?
320 as_nop=as_fn_nop
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
353 /^X\(\/\/\)$/{
354 s//\1/
357 /^X\(\/\).*/{
358 s//\1/
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 } # as_fn_mkdir_p
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else $as_nop
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else $as_nop
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
419 return $?
421 as_nop=as_fn_nop
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
467 /^X\/\(\/\/\)$/{
468 s//\1/
471 /^X\/\(\/\).*/{
472 s//\1/
475 s/.*/./; q'`
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
498 :lineno
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
534 ECHO_N='-n';;
535 esac
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
565 else
566 as_ln_s='cp -pR'
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597 # Initializations.
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
616 ac_unique_file=".version"
617 ac_unique_file="Makefile.in"
618 # Factoring default headers for most tests.
619 ac_includes_default="\
620 #include <stddef.h>
621 #ifdef HAVE_STDIO_H
622 # include <stdio.h>
623 #endif
624 #ifdef HAVE_STDLIB_H
625 # include <stdlib.h>
626 #endif
627 #ifdef HAVE_STRING_H
628 # include <string.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
638 #endif
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
641 #endif
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
644 #endif
645 #ifdef HAVE_UNISTD_H
646 # include <unistd.h>
647 #endif"
649 ac_header_c_list=
650 enable_option_checking=no
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
653 subdirs
654 OPT_ENABLE_LIBGC
655 MAKEINDEX
656 PDFLATEX
657 DVIPDFM
658 LATEX
659 LATEX2HTML
661 OPT_ENABLE_DOC
662 OPT_DISABLE_NON_FREE
663 OPT_DISABLE_SDBINUTILS
664 OPT_DISABLE_SDCDB
665 OPT_DISABLE_SDCPP
666 OPT_DISABLE_PACKIHX
667 OPT_DISABLE_DEVICE_LIB
668 OPT_DISABLE_UCSIM
669 OPT_DISABLE_AVR
670 OPT_DISABLE_MOS65C02
671 OPT_DISABLE_MOS6502
672 OPT_DISABLE_PDK16
673 OPT_DISABLE_PDK15
674 OPT_DISABLE_PDK14
675 OPT_DISABLE_PDK13
676 OPT_DISABLE_STM8
677 OPT_DISABLE_S08
678 OPT_DISABLE_HC08
679 OPT_DISABLE_PIC16
680 OPT_DISABLE_PIC14
681 OPT_DISABLE_DS400
682 OPT_DISABLE_DS390
683 OPT_DISABLE_Z80N
684 OPT_DISABLE_EZ80_Z80
685 OPT_DISABLE_TLCS90
686 OPT_DISABLE_SM83
687 OPT_DISABLE_R3KA
688 OPT_DISABLE_R2KA
689 OPT_DISABLE_R2K
690 OPT_DISABLE_Z180
691 OPT_DISABLE_Z80
692 OPT_DISABLE_MCS51
693 SVN_REVISION
694 GIT_REVISION
695 non_free_lib_dir_suffix
696 lib_dir_suffix
697 non_free_include_dir_suffix
698 non_free_inclib_dir_suffix
699 include_dir_suffix
700 inclib_dir_suffix
701 LIB_TYPE
702 sdccconf_h_dir_separator
703 C99_FLAG
704 WALL_FLAG
705 MAKEDEP_CXX
706 MAKEDEP
707 HAVE_CXX11
708 CCACHE
709 pkgpyexecdir
710 pyexecdir
711 pkgpythondir
712 pythondir
713 PYTHON_PLATFORM
714 PYTHON_EXEC_PREFIX
715 PYTHON_PREFIX
716 PYTHON_VERSION
717 PYTHON
718 YACC
724 STRIP
725 AUTOCONF
726 RANLIB
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 ac_ct_CXX
731 CXXFLAGS
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
741 VERSIONP
742 VERSIONLO
743 VERSIONHI
744 VERSION
745 PACKAGE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 runstatedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 with_ccache
798 enable_mcs51_port
799 enable_z80_port
800 enable_z180_port
801 enable_r2k_port
802 enable_r2ka_port
803 enable_r3ka_port
804 enable_sm83_port
805 enable_tlcs90_port
806 enable_ez80_z80_port
807 enable_z80n_port
808 enable_ds390_port
809 enable_ds400_port
810 enable_pic14_port
811 enable_pic16_port
812 enable_hc08_port
813 enable_s08_port
814 enable_stm8_port
815 enable_pdk13_port
816 enable_pdk14_port
817 enable_pdk15_port
818 enable_pdk16_port
819 enable_mos6502_port
820 enable_mos65c02_port
821 enable_ucsim
822 enable_device_lib
823 enable_packihx
824 enable_sdcpp
825 enable_sdcdb
826 enable_sdbinutils
827 enable_non_free
828 enable_doc
829 enable_libgc
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
841 CXXFLAGS
843 PYTHON
844 sdccconf_h_dir_separator
845 LIB_TYPE
846 inclib_dir_suffix
847 include_dir_suffix
848 non_free_inclib_dir_suffix
849 non_free_include_dir_suffix
850 lib_dir_suffix
851 non_free_lib_dir_suffix
852 docdir'
853 ac_subdirs_all='support/cpp
854 support/packihx
855 sim/ucsim
856 debugger/mcs51
857 support/sdbinutils
858 device/lib/pic14
859 device/non-free/lib/pic14
860 device/lib/pic16
861 device/non-free/lib/pic16'
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 runstatedir='${localstatedir}/run'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
912 ac_prev=
913 ac_dashdash=
914 for ac_option
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
929 case $ac_dashdash$ac_option in
931 ac_dashdash=yes ;;
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
950 --config-cache | -C)
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: \`$ac_useropt'"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: \`$ac_useropt'"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1150 -runstatedir | --runstatedir | --runstatedi | --runstated \
1151 | --runstate | --runstat | --runsta | --runst | --runs \
1152 | --run | --ru | --r)
1153 ac_prev=runstatedir ;;
1154 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1155 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1156 | --run=* | --ru=* | --r=*)
1157 runstatedir=$ac_optarg ;;
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 ac_prev=sbindir ;;
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 | --sbi=* | --sb=*)
1163 sbindir=$ac_optarg ;;
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1168 | --sha | --sh)
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 | --sha=* | --sh=*)
1174 sharedstatedir=$ac_optarg ;;
1176 -site | --site | --sit)
1177 ac_prev=site ;;
1178 -site=* | --site=* | --sit=*)
1179 site=$ac_optarg ;;
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 ac_prev=srcdir ;;
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 verbose=yes ;;
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1204 -with-* | --with-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: \`$ac_useropt'"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: \`$ac_useropt'"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=no ;;
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 case $ac_envvar in #(
1262 '' | [0-9]* | *[!_$as_cr_alnum]* )
1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264 esac
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 esac
1277 done
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 as_fn_error $? "missing argument to $ac_option"
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1286 no) ;;
1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 esac
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir runstatedir
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1300 case $ac_val in
1301 */ )
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1304 esac
1305 # Be sure to have absolute directory names.
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311 done
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 as_fn_error $? "working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 as_fn_error $? "pwd does not report name of working directory"
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 printf "%s\n" X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1361 /^X\(\/\/\)$/{
1362 s//\1/
1365 /^X\(\/\).*/{
1366 s//\1/
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1374 else
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384 pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures this package to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking ...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1465 cat <<\_ACEOF
1467 Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1478 if test -n "$ac_init_help"; then
1480 cat <<\_ACEOF
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-mcs51-port Excludes the Intel mcs51 port
1487 --disable-z80-port Excludes the Z80 port
1488 --disable-z180-port Excludes the Z180 port
1489 --disable-r2k-port Excludes the Rabbit 2000 port
1490 --disable-r2ka-port Excludes the Rabbit 2000A port
1491 --disable-r3ka-port Excludes the Rabbit 3000A port
1492 --disable-sm83-port Excludes the SM83 port
1493 --disable-tlcs90-port Excludes the TLCS-90 port
1494 --disable-ez80_z80-port Excludes the EZ80-Z80 port
1495 --disable-z80n-port Excludes the Z80N port
1496 --disable-ds390-port Excludes the DS390 port
1497 --disable-ds400-port Excludes the DS400 port
1498 --disable-pic14-port Excludes the PIC14 port
1499 --disable-pic16-port Excludes the PIC16 port
1500 --disable-hc08-port Excludes the HC08 port
1501 --disable-s08-port Excludes the S08 port
1502 --disable-stm8-port Excludes the STM8 port
1503 --disable-pdk13-port Excludes the PDK13 port
1504 --disable-pdk14-port Excludes the PDK14 port
1505 --disable-pdk15-port Excludes the PDK15 port
1506 --enable-pdk16-port Includes the PDK16 port
1507 --disable-mos6502-port Excludes the MOS6502 port
1508 --enable-mos65c02-port Includes the MOS65C02 port
1509 --disable-ucsim Disables configuring and building of ucsim
1510 --disable-device-lib Disables building device libraries
1511 --disable-packihx Disables building packihx
1512 --disable-sdcpp Disables building sdcpp
1513 --disable-sdcdb Disables building sdcdb
1514 --disable-sdbinutils Disables configuring and building of sdbinutils
1515 --disable-non-free Disables non-free runtime library parts
1516 --enable-doc Enables building the documentation
1517 --enable-libgc Use the Bohem memory allocator. Lower runtime
1518 footprint.
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --without-ccache do not use ccache even if available
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1533 CPP C preprocessor
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1536 PYTHON the Python interpreter
1537 sdccconf_h_dir_separator
1538 needed in sdccconf.h: either "/" (default) or "\\"
1539 LIB_TYPE library type: LIB, SDCCLIB, AR or RANLIB (default)
1540 inclib_dir_suffix
1541 appended to datadir to define SDCC's include/lib directory
1542 include_dir_suffix
1543 appended to datadir to define SDCC's include directory
1544 non_free_inclib_dir_suffix
1545 appended to datadir to define SDCC's non-free include/lib
1546 directory
1547 non_free_include_dir_suffix
1548 appended to datadir to define SDCC's non-free include directory
1549 lib_dir_suffix
1550 appended to datadir to define SDCC's library root directory
1551 non_free_lib_dir_suffix
1552 appended to datadir to define SDCC's non-free library root
1553 directory
1554 docdir documentation installation directory
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to the package provider.
1560 _ACEOF
1561 ac_status=$?
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for configure.gnu first; this name is used for a wrapper for
1606 # Metaconfig's "Configure" on case-insensitive file systems.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 configure
1624 generated by GNU Autoconf 2.71
1626 Copyright (C) 2021 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1629 _ACEOF
1630 exit
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest.beam
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 printf "%s\n" "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext
1663 then :
1664 ac_retval=0
1665 else $as_nop
1666 printf "%s\n" "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1669 ac_retval=1
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_compile
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 printf "%s\n" "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1701 then :
1702 ac_retval=0
1703 else $as_nop
1704 printf "%s\n" "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=1
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1712 } # ac_fn_c_try_cpp
1714 # ac_fn_cxx_try_compile LINENO
1715 # ----------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_cxx_try_compile ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest.beam
1721 if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 printf "%s\n" "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_cxx_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext
1740 then :
1741 ac_retval=0
1742 else $as_nop
1743 printf "%s\n" "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1751 } # ac_fn_cxx_try_compile
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 printf %s "checking for $2... " >&6; }
1762 if eval test \${$3+y}
1763 then :
1764 printf %s "(cached) " >&6
1765 else $as_nop
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"
1772 then :
1773 eval "$3=yes"
1774 else $as_nop
1775 eval "$3=no"
1777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1779 eval ac_res=\$$3
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_header_compile
1786 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1787 # ---------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_cxx_check_header_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s "checking for $2... " >&6; }
1795 if eval test \${$3+y}
1796 then :
1797 printf %s "(cached) " >&6
1798 else $as_nop
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_cxx_try_compile "$LINENO"
1805 then :
1806 eval "$3=yes"
1807 else $as_nop
1808 eval "$3=no"
1810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1812 eval ac_res=\$$3
1813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 printf "%s\n" "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_cxx_check_header_compile
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_link ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 printf "%s\n" "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 test -x conftest$ac_exeext
1848 then :
1849 ac_retval=0
1850 else $as_nop
1851 printf "%s\n" "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858 # interfere with the next link command; also delete a directory that is
1859 # left behind by Apple's compiler. We do this before executing the actions.
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_link
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 printf %s "checking for $2... " >&6; }
1874 if eval test \${$3+y}
1875 then :
1876 printf %s "(cached) " >&6
1877 else $as_nop
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882 #define $2 innocuous_$2
1884 /* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below. */
1887 #include <limits.h>
1888 #undef $2
1890 /* Override any GCC internal prototype to avoid an error.
1891 Use char because int might match the return type of a GCC
1892 builtin and then its argument prototype would still apply. */
1893 #ifdef __cplusplus
1894 extern "C"
1895 #endif
1896 char $2 ();
1897 /* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900 #if defined __stub_$2 || defined __stub___$2
1901 choke me
1902 #endif
1905 main (void)
1907 return $2 ();
1909 return 0;
1911 _ACEOF
1912 if ac_fn_c_try_link "$LINENO"
1913 then :
1914 eval "$3=yes"
1915 else $as_nop
1916 eval "$3=no"
1918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1919 conftest$ac_exeext conftest.$ac_ext
1921 eval ac_res=\$$3
1922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 printf "%s\n" "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_func
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1931 # executables *can* be run.
1932 ac_fn_c_try_run ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 printf "%s\n" "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>&5
1943 ac_status=$?
1944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1946 { { case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952 (eval "$ac_try") 2>&5
1953 ac_status=$?
1954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; }; }
1956 then :
1957 ac_retval=0
1958 else $as_nop
1959 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1960 printf "%s\n" "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_retval=$ac_status
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1969 } # ac_fn_c_try_run
1971 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1972 # --------------------------------------------
1973 # Tries to find the compile-time value of EXPR in a program that includes
1974 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1975 # computed
1976 ac_fn_c_compute_int ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if test "$cross_compiling" = yes; then
1980 # Depending upon the size, compute the lo and hi bounds.
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 main (void)
1987 static int test_array [1 - 2 * !(($2) >= 0)];
1988 test_array [0] = 0;
1989 return test_array [0];
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"
1996 then :
1997 ac_lo=0 ac_mid=0
1998 while :; do
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2003 main (void)
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 test_array [0] = 0;
2007 return test_array [0];
2010 return 0;
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"
2014 then :
2015 ac_hi=$ac_mid; break
2016 else $as_nop
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2019 ac_lo= ac_hi=
2020 break
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2025 done
2026 else $as_nop
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main (void)
2033 static int test_array [1 - 2 * !(($2) < 0)];
2034 test_array [0] = 0;
2035 return test_array [0];
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"
2042 then :
2043 ac_hi=-1 ac_mid=-1
2044 while :; do
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2049 main (void)
2051 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2052 test_array [0] = 0;
2053 return test_array [0];
2056 return 0;
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"
2060 then :
2061 ac_lo=$ac_mid; break
2062 else $as_nop
2063 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2064 if test $ac_mid -le $ac_hi; then
2065 ac_lo= ac_hi=
2066 break
2068 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2071 done
2072 else $as_nop
2073 ac_lo= ac_hi=
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2078 # Binary search between lo and hi bounds.
2079 while test "x$ac_lo" != "x$ac_hi"; do
2080 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main (void)
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0;
2089 return test_array [0];
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"
2096 then :
2097 ac_hi=$ac_mid
2098 else $as_nop
2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2102 done
2103 case $ac_lo in #((
2104 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2105 '') ac_retval=1 ;;
2106 esac
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 static long int longval (void) { return $2; }
2112 static unsigned long int ulongval (void) { return $2; }
2113 #include <stdio.h>
2114 #include <stdlib.h>
2116 main (void)
2119 FILE *f = fopen ("conftest.val", "w");
2120 if (! f)
2121 return 1;
2122 if (($2) < 0)
2124 long int i = longval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%ld", i);
2129 else
2131 unsigned long int i = ulongval ();
2132 if (i != ($2))
2133 return 1;
2134 fprintf (f, "%lu", i);
2136 /* Do not output a trailing newline, as this causes \r\n confusion
2137 on some platforms. */
2138 return ferror (f) || fclose (f) != 0;
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_run "$LINENO"
2145 then :
2146 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2147 else $as_nop
2148 ac_retval=1
2150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2151 conftest.$ac_objext conftest.beam conftest.$ac_ext
2152 rm -f conftest.val
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_c_compute_int
2159 ac_configure_args_raw=
2160 for ac_arg
2162 case $ac_arg in
2163 *\'*)
2164 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2165 esac
2166 as_fn_append ac_configure_args_raw " '$ac_arg'"
2167 done
2169 case $ac_configure_args_raw in
2170 *$as_nl*)
2171 ac_safe_unquote= ;;
2173 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2174 ac_unsafe_a="$ac_unsafe_z#~"
2175 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2176 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2177 esac
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2183 It was created by $as_me, which was
2184 generated by GNU Autoconf 2.71. Invocation command line was
2186 $ $0$ac_configure_args_raw
2188 _ACEOF
2189 exec 5>>config.log
2191 cat <<_ASUNAME
2192 ## --------- ##
2193 ## Platform. ##
2194 ## --------- ##
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2213 _ASUNAME
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 case $as_dir in #(((
2220 '') as_dir=./ ;;
2221 */) ;;
2222 *) as_dir=$as_dir/ ;;
2223 esac
2224 printf "%s\n" "PATH: $as_dir"
2225 done
2226 IFS=$as_save_IFS
2228 } >&5
2230 cat >&5 <<_ACEOF
2233 ## ----------- ##
2234 ## Core tests. ##
2235 ## ----------- ##
2237 _ACEOF
2240 # Keep a trace of the command line.
2241 # Strip out --no-create and --no-recursion so they do not pile up.
2242 # Strip out --silent because we don't want to record it for future runs.
2243 # Also quote any args containing shell meta-characters.
2244 # Make two passes to allow for proper duplicate-argument suppression.
2245 ac_configure_args=
2246 ac_configure_args0=
2247 ac_configure_args1=
2248 ac_must_keep_next=false
2249 for ac_pass in 1 2
2251 for ac_arg
2253 case $ac_arg in
2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2256 | -silent | --silent | --silen | --sile | --sil)
2257 continue ;;
2258 *\'*)
2259 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 esac
2261 case $ac_pass in
2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264 as_fn_append ac_configure_args1 " '$ac_arg'"
2265 if test $ac_must_keep_next = true; then
2266 ac_must_keep_next=false # Got value, back to normal.
2267 else
2268 case $ac_arg in
2269 *=* | --config-cache | -C | -disable-* | --disable-* \
2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2272 | -with-* | --with-* | -without-* | --without-* | --x)
2273 case "$ac_configure_args0 " in
2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2275 esac
2277 -* ) ac_must_keep_next=true ;;
2278 esac
2280 as_fn_append ac_configure_args " '$ac_arg'"
2282 esac
2283 done
2284 done
2285 { ac_configure_args0=; unset ac_configure_args0;}
2286 { ac_configure_args1=; unset ac_configure_args1;}
2288 # When interrupted or exit'd, cleanup temporary files, and complete
2289 # config.log. We remove comments because anyway the quotes in there
2290 # would cause problems or look ugly.
2291 # WARNING: Use '\'' to represent an apostrophe within the trap.
2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2293 trap 'exit_status=$?
2294 # Sanitize IFS.
2295 IFS=" "" $as_nl"
2296 # Save into config.log some information that might help in debugging.
2298 echo
2300 printf "%s\n" "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 esac |
2332 sort
2334 echo
2336 printf "%s\n" "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2339 echo
2340 for ac_var in $ac_subst_vars
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 printf "%s\n" "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2350 if test -n "$ac_subst_files"; then
2351 printf "%s\n" "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2354 echo
2355 for ac_var in $ac_subst_files
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 printf "%s\n" "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2366 if test -s confdefs.h; then
2367 printf "%s\n" "## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##"
2370 echo
2371 cat confdefs.h
2372 echo
2374 test "$ac_signal" != 0 &&
2375 printf "%s\n" "$as_me: caught signal $ac_signal"
2376 printf "%s\n" "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 done
2385 ac_signal=0
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2390 printf "%s\n" "/* confdefs.h */" > confdefs.h
2392 # Predefined preprocessor variables.
2394 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2396 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2398 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2400 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2402 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2404 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2407 # Let the site file select an alternate cache file if it wants to.
2408 # Prefer an explicitly selected file to automatically selected ones.
2409 if test -n "$CONFIG_SITE"; then
2410 ac_site_files="$CONFIG_SITE"
2411 elif test "x$prefix" != xNONE; then
2412 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2413 else
2414 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2417 for ac_site_file in $ac_site_files
2419 case $ac_site_file in #(
2420 */*) :
2421 ;; #(
2422 *) :
2423 ac_site_file=./$ac_site_file ;;
2424 esac
2425 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2429 . "$ac_site_file" \
2430 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2432 as_fn_error $? "failed to load site script $ac_site_file
2433 See \`config.log' for more details" "$LINENO" 5; }
2435 done
2437 if test -r "$cache_file"; then
2438 # Some versions of bash will fail to source /dev/null (special files
2439 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2440 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2443 case $cache_file in
2444 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2445 *) . "./$cache_file";;
2446 esac
2448 else
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2451 >$cache_file
2454 # Test code for whether the C compiler supports C89 (global declarations)
2455 ac_c_conftest_c89_globals='
2456 /* Does the compiler advertise C89 conformance?
2457 Do not test the value of __STDC__, because some compilers set it to 0
2458 while being otherwise adequately conformant. */
2459 #if !defined __STDC__
2460 # error "Compiler does not advertise C89 conformance"
2461 #endif
2463 #include <stddef.h>
2464 #include <stdarg.h>
2465 struct stat;
2466 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2467 struct buf { int x; };
2468 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2469 static char *e (p, i)
2470 char **p;
2471 int i;
2473 return p[i];
2475 static char *f (char * (*g) (char **, int), char **p, ...)
2477 char *s;
2478 va_list v;
2479 va_start (v,p);
2480 s = g (p, va_arg (v,int));
2481 va_end (v);
2482 return s;
2485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2486 function prototypes and stuff, but not \xHH hex character constants.
2487 These do not provoke an error unfortunately, instead are silently treated
2488 as an "x". The following induces an error, until -std is added to get
2489 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2490 array size at least. It is necessary to write \x00 == 0 to get something
2491 that is true only with -std. */
2492 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2495 inside strings and character constants. */
2496 #define FOO(x) '\''x'\''
2497 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2499 int test (int i, double x);
2500 struct s1 {int (*f) (int a);};
2501 struct s2 {int (*f) (double a);};
2502 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2503 int, int);'
2505 # Test code for whether the C compiler supports C89 (body of main).
2506 ac_c_conftest_c89_main='
2507 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2510 # Test code for whether the C compiler supports C99 (global declarations)
2511 ac_c_conftest_c99_globals='
2512 // Does the compiler advertise C99 conformance?
2513 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2514 # error "Compiler does not advertise C99 conformance"
2515 #endif
2517 #include <stdbool.h>
2518 extern int puts (const char *);
2519 extern int printf (const char *, ...);
2520 extern int dprintf (int, const char *, ...);
2521 extern void *malloc (size_t);
2523 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2524 // dprintf is used instead of fprintf to avoid needing to declare
2525 // FILE and stderr.
2526 #define debug(...) dprintf (2, __VA_ARGS__)
2527 #define showlist(...) puts (#__VA_ARGS__)
2528 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2529 static void
2530 test_varargs_macros (void)
2532 int x = 1234;
2533 int y = 5678;
2534 debug ("Flag");
2535 debug ("X = %d\n", x);
2536 showlist (The first, second, and third items.);
2537 report (x>y, "x is %d but y is %d", x, y);
2540 // Check long long types.
2541 #define BIG64 18446744073709551615ull
2542 #define BIG32 4294967295ul
2543 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2544 #if !BIG_OK
2545 #error "your preprocessor is broken"
2546 #endif
2547 #if BIG_OK
2548 #else
2549 #error "your preprocessor is broken"
2550 #endif
2551 static long long int bignum = -9223372036854775807LL;
2552 static unsigned long long int ubignum = BIG64;
2554 struct incomplete_array
2556 int datasize;
2557 double data[];
2560 struct named_init {
2561 int number;
2562 const wchar_t *name;
2563 double average;
2566 typedef const char *ccp;
2568 static inline int
2569 test_restrict (ccp restrict text)
2571 // See if C++-style comments work.
2572 // Iterate through items via the restricted pointer.
2573 // Also check for declarations in for loops.
2574 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2575 continue;
2576 return 0;
2579 // Check varargs and va_copy.
2580 static bool
2581 test_varargs (const char *format, ...)
2583 va_list args;
2584 va_start (args, format);
2585 va_list args_copy;
2586 va_copy (args_copy, args);
2588 const char *str = "";
2589 int number = 0;
2590 float fnumber = 0;
2592 while (*format)
2594 switch (*format++)
2596 case '\''s'\'': // string
2597 str = va_arg (args_copy, const char *);
2598 break;
2599 case '\''d'\'': // int
2600 number = va_arg (args_copy, int);
2601 break;
2602 case '\''f'\'': // float
2603 fnumber = va_arg (args_copy, double);
2604 break;
2605 default:
2606 break;
2609 va_end (args_copy);
2610 va_end (args);
2612 return *str && number && fnumber;
2616 # Test code for whether the C compiler supports C99 (body of main).
2617 ac_c_conftest_c99_main='
2618 // Check bool.
2619 _Bool success = false;
2620 success |= (argc != 0);
2622 // Check restrict.
2623 if (test_restrict ("String literal") == 0)
2624 success = true;
2625 char *restrict newvar = "Another string";
2627 // Check varargs.
2628 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2629 test_varargs_macros ();
2631 // Check flexible array members.
2632 struct incomplete_array *ia =
2633 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2634 ia->datasize = 10;
2635 for (int i = 0; i < ia->datasize; ++i)
2636 ia->data[i] = i * 1.234;
2638 // Check named initializers.
2639 struct named_init ni = {
2640 .number = 34,
2641 .name = L"Test wide string",
2642 .average = 543.34343,
2645 ni.number = 58;
2647 int dynamic_array[ni.number];
2648 dynamic_array[0] = argv[0][0];
2649 dynamic_array[ni.number - 1] = 543;
2651 // work around unused variable warnings
2652 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2653 || dynamic_array[ni.number - 1] != 543);
2656 # Test code for whether the C compiler supports C11 (global declarations)
2657 ac_c_conftest_c11_globals='
2658 // Does the compiler advertise C11 conformance?
2659 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2660 # error "Compiler does not advertise C11 conformance"
2661 #endif
2663 // Check _Alignas.
2664 char _Alignas (double) aligned_as_double;
2665 char _Alignas (0) no_special_alignment;
2666 extern char aligned_as_int;
2667 char _Alignas (0) _Alignas (int) aligned_as_int;
2669 // Check _Alignof.
2670 enum
2672 int_alignment = _Alignof (int),
2673 int_array_alignment = _Alignof (int[100]),
2674 char_alignment = _Alignof (char)
2676 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2678 // Check _Noreturn.
2679 int _Noreturn does_not_return (void) { for (;;) continue; }
2681 // Check _Static_assert.
2682 struct test_static_assert
2684 int x;
2685 _Static_assert (sizeof (int) <= sizeof (long int),
2686 "_Static_assert does not work in struct");
2687 long int y;
2690 // Check UTF-8 literals.
2691 #define u8 syntax error!
2692 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2694 // Check duplicate typedefs.
2695 typedef long *long_ptr;
2696 typedef long int *long_ptr;
2697 typedef long_ptr long_ptr;
2699 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2700 struct anonymous
2702 union {
2703 struct { int i; int j; };
2704 struct { int k; long int l; } w;
2706 int m;
2707 } v1;
2710 # Test code for whether the C compiler supports C11 (body of main).
2711 ac_c_conftest_c11_main='
2712 _Static_assert ((offsetof (struct anonymous, i)
2713 == offsetof (struct anonymous, w.k)),
2714 "Anonymous union alignment botch");
2715 v1.i = 2;
2716 v1.w.k = 5;
2717 ok |= v1.i != 5;
2720 # Test code for whether the C compiler supports C11 (complete).
2721 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2722 ${ac_c_conftest_c99_globals}
2723 ${ac_c_conftest_c11_globals}
2726 main (int argc, char **argv)
2728 int ok = 0;
2729 ${ac_c_conftest_c89_main}
2730 ${ac_c_conftest_c99_main}
2731 ${ac_c_conftest_c11_main}
2732 return ok;
2736 # Test code for whether the C compiler supports C99 (complete).
2737 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2738 ${ac_c_conftest_c99_globals}
2741 main (int argc, char **argv)
2743 int ok = 0;
2744 ${ac_c_conftest_c89_main}
2745 ${ac_c_conftest_c99_main}
2746 return ok;
2750 # Test code for whether the C compiler supports C89 (complete).
2751 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2754 main (int argc, char **argv)
2756 int ok = 0;
2757 ${ac_c_conftest_c89_main}
2758 return ok;
2762 # Test code for whether the C++ compiler supports C++98 (global declarations)
2763 ac_cxx_conftest_cxx98_globals='
2764 // Does the compiler advertise C++98 conformance?
2765 #if !defined __cplusplus || __cplusplus < 199711L
2766 # error "Compiler does not advertise C++98 conformance"
2767 #endif
2769 // These inclusions are to reject old compilers that
2770 // lack the unsuffixed header files.
2771 #include <cstdlib>
2772 #include <exception>
2774 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2775 extern void assert (int);
2776 namespace std {
2777 extern int strcmp (const char *, const char *);
2780 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2781 using std::exception;
2782 using std::strcmp;
2784 namespace {
2786 void test_exception_syntax()
2788 try {
2789 throw "test";
2790 } catch (const char *s) {
2791 // Extra parentheses suppress a warning when building autoconf itself,
2792 // due to lint rules shared with more typical C programs.
2793 assert (!(strcmp) (s, "test"));
2797 template <typename T> struct test_template
2799 T const val;
2800 explicit test_template(T t) : val(t) {}
2801 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2804 } // anonymous namespace
2807 # Test code for whether the C++ compiler supports C++98 (body of main)
2808 ac_cxx_conftest_cxx98_main='
2809 assert (argc);
2810 assert (! argv[0]);
2812 test_exception_syntax ();
2813 test_template<double> tt (2.0);
2814 assert (tt.add (4) == 6.0);
2815 assert (true && !false);
2819 # Test code for whether the C++ compiler supports C++11 (global declarations)
2820 ac_cxx_conftest_cxx11_globals='
2821 // Does the compiler advertise C++ 2011 conformance?
2822 #if !defined __cplusplus || __cplusplus < 201103L
2823 # error "Compiler does not advertise C++11 conformance"
2824 #endif
2826 namespace cxx11test
2828 constexpr int get_val() { return 20; }
2830 struct testinit
2832 int i;
2833 double d;
2836 class delegate
2838 public:
2839 delegate(int n) : n(n) {}
2840 delegate(): delegate(2354) {}
2842 virtual int getval() { return this->n; };
2843 protected:
2844 int n;
2847 class overridden : public delegate
2849 public:
2850 overridden(int n): delegate(n) {}
2851 virtual int getval() override final { return this->n * 2; }
2854 class nocopy
2856 public:
2857 nocopy(int i): i(i) {}
2858 nocopy() = default;
2859 nocopy(const nocopy&) = delete;
2860 nocopy & operator=(const nocopy&) = delete;
2861 private:
2862 int i;
2865 // for testing lambda expressions
2866 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2868 return f(v);
2871 // for testing variadic templates and trailing return types
2872 template <typename V> auto sum(V first) -> V
2874 return first;
2876 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2878 return first + sum(rest...);
2883 # Test code for whether the C++ compiler supports C++11 (body of main)
2884 ac_cxx_conftest_cxx11_main='
2886 // Test auto and decltype
2887 auto a1 = 6538;
2888 auto a2 = 48573953.4;
2889 auto a3 = "String literal";
2891 int total = 0;
2892 for (auto i = a3; *i; ++i) { total += *i; }
2894 decltype(a2) a4 = 34895.034;
2897 // Test constexpr
2898 short sa[cxx11test::get_val()] = { 0 };
2901 // Test initializer lists
2902 cxx11test::testinit il = { 4323, 435234.23544 };
2905 // Test range-based for
2906 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2907 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2908 for (auto &x : array) { x += 23; }
2911 // Test lambda expressions
2912 using cxx11test::eval;
2913 assert (eval ([](int x) { return x*2; }, 21) == 42);
2914 double d = 2.0;
2915 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2916 assert (d == 5.0);
2917 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2918 assert (d == 5.0);
2921 // Test use of variadic templates
2922 using cxx11test::sum;
2923 auto a = sum(1);
2924 auto b = sum(1, 2);
2925 auto c = sum(1.0, 2.0, 3.0);
2928 // Test constructor delegation
2929 cxx11test::delegate d1;
2930 cxx11test::delegate d2();
2931 cxx11test::delegate d3(45);
2934 // Test override and final
2935 cxx11test::overridden o1(55464);
2938 // Test nullptr
2939 char *c = nullptr;
2942 // Test template brackets
2943 test_template<::test_template<int>> v(test_template<int>(12));
2946 // Unicode literals
2947 char const *utf8 = u8"UTF-8 string \u2500";
2948 char16_t const *utf16 = u"UTF-8 string \u2500";
2949 char32_t const *utf32 = U"UTF-32 string \u2500";
2953 # Test code for whether the C compiler supports C++11 (complete).
2954 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2955 ${ac_cxx_conftest_cxx11_globals}
2958 main (int argc, char **argv)
2960 int ok = 0;
2961 ${ac_cxx_conftest_cxx98_main}
2962 ${ac_cxx_conftest_cxx11_main}
2963 return ok;
2967 # Test code for whether the C compiler supports C++98 (complete).
2968 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2970 main (int argc, char **argv)
2972 int ok = 0;
2973 ${ac_cxx_conftest_cxx98_main}
2974 return ok;
2978 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2979 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2980 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2981 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2982 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2983 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2984 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2985 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2986 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2988 # Auxiliary files required by this configure script.
2989 ac_aux_files="install-sh config.guess config.sub"
2991 # Locations in which to look for auxiliary files.
2992 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2994 # Search for a directory containing all of the required auxiliary files,
2995 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2996 # If we don't find one directory that contains all the files we need,
2997 # we report the set of missing files from the *first* directory in
2998 # $ac_aux_dir_candidates and give up.
2999 ac_missing_aux_files=""
3000 ac_first_candidate=:
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 as_found=false
3004 for as_dir in $ac_aux_dir_candidates
3006 IFS=$as_save_IFS
3007 case $as_dir in #(((
3008 '') as_dir=./ ;;
3009 */) ;;
3010 *) as_dir=$as_dir/ ;;
3011 esac
3012 as_found=:
3014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3015 ac_aux_dir_found=yes
3016 ac_install_sh=
3017 for ac_aux in $ac_aux_files
3019 # As a special case, if "install-sh" is required, that requirement
3020 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3021 # and $ac_install_sh is set appropriately for whichever one is found.
3022 if test x"$ac_aux" = x"install-sh"
3023 then
3024 if test -f "${as_dir}install-sh"; then
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3026 ac_install_sh="${as_dir}install-sh -c"
3027 elif test -f "${as_dir}install.sh"; then
3028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3029 ac_install_sh="${as_dir}install.sh -c"
3030 elif test -f "${as_dir}shtool"; then
3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3032 ac_install_sh="${as_dir}shtool install -c"
3033 else
3034 ac_aux_dir_found=no
3035 if $ac_first_candidate; then
3036 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3037 else
3038 break
3041 else
3042 if test -f "${as_dir}${ac_aux}"; then
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3044 else
3045 ac_aux_dir_found=no
3046 if $ac_first_candidate; then
3047 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3048 else
3049 break
3053 done
3054 if test "$ac_aux_dir_found" = yes; then
3055 ac_aux_dir="$as_dir"
3056 break
3058 ac_first_candidate=false
3060 as_found=false
3061 done
3062 IFS=$as_save_IFS
3063 if $as_found
3064 then :
3066 else $as_nop
3067 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 if test -f "${ac_aux_dir}config.guess"; then
3076 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3078 if test -f "${ac_aux_dir}config.sub"; then
3079 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3081 if test -f "$ac_aux_dir/configure"; then
3082 ac_configure="$SHELL ${ac_aux_dir}configure"
3085 # Check that the precious variables saved in the cache have kept the same
3086 # value.
3087 ac_cache_corrupted=false
3088 for ac_var in $ac_precious_vars; do
3089 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3090 eval ac_new_set=\$ac_env_${ac_var}_set
3091 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3092 eval ac_new_val=\$ac_env_${ac_var}_value
3093 case $ac_old_set,$ac_new_set in
3094 set,)
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3096 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3097 ac_cache_corrupted=: ;;
3098 ,set)
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3100 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3101 ac_cache_corrupted=: ;;
3102 ,);;
3104 if test "x$ac_old_val" != "x$ac_new_val"; then
3105 # differences in whitespace do not lead to failure.
3106 ac_old_val_w=`echo x $ac_old_val`
3107 ac_new_val_w=`echo x $ac_new_val`
3108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3110 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3111 ac_cache_corrupted=:
3112 else
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3114 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3115 eval $ac_var=\$ac_old_val
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3118 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3120 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3121 fi;;
3122 esac
3123 # Pass precious variables to config.status.
3124 if test "$ac_new_set" = set; then
3125 case $ac_new_val in
3126 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3127 *) ac_arg=$ac_var=$ac_new_val ;;
3128 esac
3129 case " $ac_configure_args " in
3130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3131 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3132 esac
3134 done
3135 if $ac_cache_corrupted; then
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3139 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3140 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3141 and start over" "$LINENO" 5
3143 ## -------------------- ##
3144 ## Main body of script. ##
3145 ## -------------------- ##
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 # Determine the host and build type.
3158 # ===========================================================================
3162 # Make sure we can run config.sub.
3163 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3164 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3167 printf %s "checking build system type... " >&6; }
3168 if test ${ac_cv_build+y}
3169 then :
3170 printf %s "(cached) " >&6
3171 else $as_nop
3172 ac_build_alias=$build_alias
3173 test "x$ac_build_alias" = x &&
3174 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3175 test "x$ac_build_alias" = x &&
3176 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3177 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3178 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3182 printf "%s\n" "$ac_cv_build" >&6; }
3183 case $ac_cv_build in
3184 *-*-*) ;;
3185 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3186 esac
3187 build=$ac_cv_build
3188 ac_save_IFS=$IFS; IFS='-'
3189 set x $ac_cv_build
3190 shift
3191 build_cpu=$1
3192 build_vendor=$2
3193 shift; shift
3194 # Remember, the first character of IFS is used to create $*,
3195 # except with old shells:
3196 build_os=$*
3197 IFS=$ac_save_IFS
3198 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3202 printf %s "checking host system type... " >&6; }
3203 if test ${ac_cv_host+y}
3204 then :
3205 printf %s "(cached) " >&6
3206 else $as_nop
3207 if test "x$host_alias" = x; then
3208 ac_cv_host=$ac_cv_build
3209 else
3210 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3211 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3216 printf "%s\n" "$ac_cv_host" >&6; }
3217 case $ac_cv_host in
3218 *-*-*) ;;
3219 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3220 esac
3221 host=$ac_cv_host
3222 ac_save_IFS=$IFS; IFS='-'
3223 set x $ac_cv_host
3224 shift
3225 host_cpu=$1
3226 host_vendor=$2
3227 shift; shift
3228 # Remember, the first character of IFS is used to create $*,
3229 # except with old shells:
3230 host_os=$*
3231 IFS=$ac_save_IFS
3232 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3236 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h sdas/linksrc/asxxxx_config.h"
3239 for ac_prog in gawk mawk nawk awk
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 printf %s "checking for $ac_word... " >&6; }
3245 if test ${ac_cv_prog_AWK+y}
3246 then :
3247 printf %s "(cached) " >&6
3248 else $as_nop
3249 if test -n "$AWK"; then
3250 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 case $as_dir in #(((
3257 '') as_dir=./ ;;
3258 */) ;;
3259 *) as_dir=$as_dir/ ;;
3260 esac
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_AWK="$ac_prog"
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3265 break 2
3267 done
3268 done
3269 IFS=$as_save_IFS
3273 AWK=$ac_cv_prog_AWK
3274 if test -n "$AWK"; then
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3276 printf "%s\n" "$AWK" >&6; }
3277 else
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 printf "%s\n" "no" >&6; }
3283 test -n "$AWK" && break
3284 done
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of the package" >&5
3288 printf %s "checking version of the package... " >&6; }
3289 if test -f ${srcdir}/.version; then
3290 { read VERSION; } < ${srcdir}/.version
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3292 printf "%s\n" "$VERSION" >&6; }
3293 elif test -f ../.version; then
3294 { read VERSION; } < ../.version
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3296 printf "%s\n" "$VERSION" >&6; }
3297 else
3298 VERSION="0.0.0"
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown using 0.0.0" >&5
3300 printf "%s\n" "unknown using 0.0.0" >&6; }
3302 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
3303 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
3304 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
3306 PACKAGE=sdcc
3313 printf "%s\n" "#define SDCC_VERSION_LO ${VERSIONLO}" >>confdefs.h
3316 printf "%s\n" "#define SDCC_VERSION_HI ${VERSIONHI}" >>confdefs.h
3319 printf "%s\n" "#define SDCC_VERSION_P ${VERSIONP}" >>confdefs.h
3322 printf "%s\n" "#define SDCC_VERSION_STR \"${VERSION}\"" >>confdefs.h
3324 test "$program_prefix" != NONE &&
3325 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3326 # Use a double $ so make ignores it.
3327 test "$program_suffix" != NONE &&
3328 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3329 # Double any \ or $.
3330 # By default was `s,x,x', remove it if useless.
3331 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3332 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3334 sdcc_cv_version=$VERSION
3335 sdcc_cv_versionhi=$VERSIONHI
3336 sdcc_cv_versionlo=$VERSIONLO
3337 sdcc_cv_versionp=$VERSIONP
3340 # Required programs
3341 # ===========================================================================
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 printf %s "checking for $ac_word... " >&6; }
3361 if test ${ac_cv_prog_CC+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else $as_nop
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 printf "%s\n" "$CC" >&6; }
3393 else
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 printf "%s\n" "no" >&6; }
3400 if test -z "$ac_cv_prog_CC"; then
3401 ac_ct_CC=$CC
3402 # Extract the first word of "gcc", so it can be a program name with args.
3403 set dummy gcc; ac_word=$2
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 printf %s "checking for $ac_word... " >&6; }
3406 if test ${ac_cv_prog_ac_ct_CC+y}
3407 then :
3408 printf %s "(cached) " >&6
3409 else $as_nop
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 case $as_dir in #(((
3418 '') as_dir=./ ;;
3419 */) ;;
3420 *) as_dir=$as_dir/ ;;
3421 esac
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_ac_ct_CC="gcc"
3425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3430 IFS=$as_save_IFS
3434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 printf "%s\n" "$ac_ct_CC" >&6; }
3438 else
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 printf "%s\n" "no" >&6; }
3443 if test "x$ac_ct_CC" = x; then
3444 CC=""
3445 else
3446 case $cross_compiling:$ac_tool_warned in
3447 yes:)
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3450 ac_tool_warned=yes ;;
3451 esac
3452 CC=$ac_ct_CC
3454 else
3455 CC="$ac_cv_prog_CC"
3458 if test -z "$CC"; then
3459 if test -n "$ac_tool_prefix"; then
3460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3461 set dummy ${ac_tool_prefix}cc; ac_word=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s "checking for $ac_word... " >&6; }
3464 if test ${ac_cv_prog_CC+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else $as_nop
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 case $as_dir in #(((
3476 '') as_dir=./ ;;
3477 */) ;;
3478 *) as_dir=$as_dir/ ;;
3479 esac
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC="${ac_tool_prefix}cc"
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484 break 2
3486 done
3487 done
3488 IFS=$as_save_IFS
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 printf "%s\n" "$CC" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3504 if test -z "$CC"; then
3505 # Extract the first word of "cc", so it can be a program name with args.
3506 set dummy cc; ac_word=$2
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 printf %s "checking for $ac_word... " >&6; }
3509 if test ${ac_cv_prog_CC+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else $as_nop
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 ac_prog_rejected=no
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 case $as_dir in #(((
3522 '') as_dir=./ ;;
3523 */) ;;
3524 *) as_dir=$as_dir/ ;;
3525 esac
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3528 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3529 ac_prog_rejected=yes
3530 continue
3532 ac_cv_prog_CC="cc"
3533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3538 IFS=$as_save_IFS
3540 if test $ac_prog_rejected = yes; then
3541 # We found a bogon in the path, so make sure we never use it.
3542 set dummy $ac_cv_prog_CC
3543 shift
3544 if test $# != 0; then
3545 # We chose a different compiler from the bogus one.
3546 # However, it has the same basename, so the bogon will be chosen
3547 # first if we set CC to just the basename; use the full file name.
3548 shift
3549 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 printf "%s\n" "$CC" >&6; }
3558 else
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 printf "%s\n" "no" >&6; }
3565 if test -z "$CC"; then
3566 if test -n "$ac_tool_prefix"; then
3567 for ac_prog in cl.exe
3569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 printf %s "checking for $ac_word... " >&6; }
3573 if test ${ac_cv_prog_CC+y}
3574 then :
3575 printf %s "(cached) " >&6
3576 else $as_nop
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3583 IFS=$as_save_IFS
3584 case $as_dir in #(((
3585 '') as_dir=./ ;;
3586 */) ;;
3587 *) as_dir=$as_dir/ ;;
3588 esac
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593 break 2
3595 done
3596 done
3597 IFS=$as_save_IFS
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 printf "%s\n" "$CC" >&6; }
3605 else
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3611 test -n "$CC" && break
3612 done
3614 if test -z "$CC"; then
3615 ac_ct_CC=$CC
3616 for ac_prog in cl.exe
3618 # Extract the first word of "$ac_prog", so it can be a program name with args.
3619 set dummy $ac_prog; ac_word=$2
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 printf %s "checking for $ac_word... " >&6; }
3622 if test ${ac_cv_prog_ac_ct_CC+y}
3623 then :
3624 printf %s "(cached) " >&6
3625 else $as_nop
3626 if test -n "$ac_ct_CC"; then
3627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3632 IFS=$as_save_IFS
3633 case $as_dir in #(((
3634 '') as_dir=./ ;;
3635 */) ;;
3636 *) as_dir=$as_dir/ ;;
3637 esac
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_ac_ct_CC="$ac_prog"
3641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3642 break 2
3644 done
3645 done
3646 IFS=$as_save_IFS
3650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651 if test -n "$ac_ct_CC"; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653 printf "%s\n" "$ac_ct_CC" >&6; }
3654 else
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3660 test -n "$ac_ct_CC" && break
3661 done
3663 if test "x$ac_ct_CC" = x; then
3664 CC=""
3665 else
3666 case $cross_compiling:$ac_tool_warned in
3667 yes:)
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3671 esac
3672 CC=$ac_ct_CC
3677 if test -z "$CC"; then
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}clang; ac_word=$2
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 printf %s "checking for $ac_word... " >&6; }
3683 if test ${ac_cv_prog_CC+y}
3684 then :
3685 printf %s "(cached) " >&6
3686 else $as_nop
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3693 IFS=$as_save_IFS
3694 case $as_dir in #(((
3695 '') as_dir=./ ;;
3696 */) ;;
3697 *) as_dir=$as_dir/ ;;
3698 esac
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_CC="${ac_tool_prefix}clang"
3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3703 break 2
3705 done
3706 done
3707 IFS=$as_save_IFS
3711 CC=$ac_cv_prog_CC
3712 if test -n "$CC"; then
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 printf "%s\n" "$CC" >&6; }
3715 else
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3722 if test -z "$ac_cv_prog_CC"; then
3723 ac_ct_CC=$CC
3724 # Extract the first word of "clang", so it can be a program name with args.
3725 set dummy clang; ac_word=$2
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 printf %s "checking for $ac_word... " >&6; }
3728 if test ${ac_cv_prog_ac_ct_CC+y}
3729 then :
3730 printf %s "(cached) " >&6
3731 else $as_nop
3732 if test -n "$ac_ct_CC"; then
3733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 case $as_dir in #(((
3740 '') as_dir=./ ;;
3741 */) ;;
3742 *) as_dir=$as_dir/ ;;
3743 esac
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_ac_ct_CC="clang"
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3748 break 2
3750 done
3751 done
3752 IFS=$as_save_IFS
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 printf "%s\n" "$ac_ct_CC" >&6; }
3760 else
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 printf "%s\n" "no" >&6; }
3765 if test "x$ac_ct_CC" = x; then
3766 CC=""
3767 else
3768 case $cross_compiling:$ac_tool_warned in
3769 yes:)
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3773 esac
3774 CC=$ac_ct_CC
3776 else
3777 CC="$ac_cv_prog_CC"
3783 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details" "$LINENO" 5; }
3788 # Provide some information about the compiler.
3789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion -version; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 printf "%s\n" "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3817 main (void)
3821 return 0;
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3828 # of exeext.
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830 printf %s "checking whether the C compiler works... " >&6; }
3831 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843 done
3844 rm -f $ac_rmfiles
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 printf "%s\n" "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3857 then :
3858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3859 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3860 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3861 # so that the user can short-circuit this test for compilers unknown to
3862 # Autoconf.
3863 for ac_file in $ac_files ''
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869 [ab].out )
3870 # We found the default executable, but exeext='' is most
3871 # certainly right.
3872 break;;
3873 *.* )
3874 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3875 then :; else
3876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 # We set ac_cv_exeext here because the later test for it is not
3879 # safe: cross compilers may not add the suffix if given an `-o'
3880 # argument, so we may need to know it at that point already.
3881 # Even if this section looks crufty: it has the advantage of
3882 # actually working.
3883 break;;
3885 break;;
3886 esac
3887 done
3888 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890 else $as_nop
3891 ac_file=''
3893 if test -z "$ac_file"
3894 then :
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 printf "%s\n" "no" >&6; }
3897 printf "%s\n" "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3900 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error 77 "C compiler cannot create executables
3903 See \`config.log' for more details" "$LINENO" 5; }
3904 else $as_nop
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3906 printf "%s\n" "yes" >&6; }
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3909 printf %s "checking for C compiler default output file name... " >&6; }
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3911 printf "%s\n" "$ac_file" >&6; }
3912 ac_exeext=$ac_cv_exeext
3914 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3915 ac_clean_files=$ac_clean_files_save
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3917 printf %s "checking for suffix of executables... " >&6; }
3918 if { { ac_try="$ac_link"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 printf "%s\n" "$ac_try_echo"; } >&5
3925 (eval "$ac_link") 2>&5
3926 ac_status=$?
3927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }
3929 then :
3930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3932 # work properly (i.e., refer to `conftest.exe'), while it won't with
3933 # `rm'.
3934 for ac_file in conftest.exe conftest conftest.*; do
3935 test -f "$ac_file" || continue
3936 case $ac_file in
3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939 break;;
3940 * ) break;;
3941 esac
3942 done
3943 else $as_nop
3944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3947 See \`config.log' for more details" "$LINENO" 5; }
3949 rm -f conftest conftest$ac_cv_exeext
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3951 printf "%s\n" "$ac_cv_exeext" >&6; }
3953 rm -f conftest.$ac_ext
3954 EXEEXT=$ac_cv_exeext
3955 ac_exeext=$EXEEXT
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958 #include <stdio.h>
3960 main (void)
3962 FILE *f = fopen ("conftest.out", "w");
3963 return ferror (f) || fclose (f) != 0;
3966 return 0;
3968 _ACEOF
3969 ac_clean_files="$ac_clean_files conftest.out"
3970 # Check that the compiler produces executables we can run. If not, either
3971 # the compiler is broken, or we cross compile.
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3973 printf %s "checking whether we are cross compiling... " >&6; }
3974 if test "$cross_compiling" != yes; then
3975 { { ac_try="$ac_link"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 printf "%s\n" "$ac_try_echo"; } >&5
3982 (eval "$ac_link") 2>&5
3983 ac_status=$?
3984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985 test $ac_status = 0; }
3986 if { ac_try='./conftest$ac_cv_exeext'
3987 { { case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 printf "%s\n" "$ac_try_echo"; } >&5
3993 (eval "$ac_try") 2>&5
3994 ac_status=$?
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; }; then
3997 cross_compiling=no
3998 else
3999 if test "$cross_compiling" = maybe; then
4000 cross_compiling=yes
4001 else
4002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error 77 "cannot run C compiled programs.
4005 If you meant to cross compile, use \`--host'.
4006 See \`config.log' for more details" "$LINENO" 5; }
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4011 printf "%s\n" "$cross_compiling" >&6; }
4013 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4014 ac_clean_files=$ac_clean_files_save
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4016 printf %s "checking for suffix of object files... " >&6; }
4017 if test ${ac_cv_objext+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else $as_nop
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4025 main (void)
4029 return 0;
4031 _ACEOF
4032 rm -f conftest.o conftest.obj
4033 if { { ac_try="$ac_compile"
4034 case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 printf "%s\n" "$ac_try_echo"; } >&5
4040 (eval "$ac_compile") 2>&5
4041 ac_status=$?
4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }
4044 then :
4045 for ac_file in conftest.o conftest.obj conftest.*; do
4046 test -f "$ac_file" || continue;
4047 case $ac_file in
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4050 break;;
4051 esac
4052 done
4053 else $as_nop
4054 printf "%s\n" "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $? "cannot compute suffix of object files: cannot compile
4060 See \`config.log' for more details" "$LINENO" 5; }
4062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4065 printf "%s\n" "$ac_cv_objext" >&6; }
4066 OBJEXT=$ac_cv_objext
4067 ac_objext=$OBJEXT
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4069 printf %s "checking whether the compiler supports GNU C... " >&6; }
4070 if test ${ac_cv_c_compiler_gnu+y}
4071 then :
4072 printf %s "(cached) " >&6
4073 else $as_nop
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main (void)
4080 #ifndef __GNUC__
4081 choke me
4082 #endif
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"
4089 then :
4090 ac_compiler_gnu=yes
4091 else $as_nop
4092 ac_compiler_gnu=no
4094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4099 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 if test $ac_compiler_gnu = yes; then
4103 GCC=yes
4104 else
4105 GCC=
4107 ac_test_CFLAGS=${CFLAGS+y}
4108 ac_save_CFLAGS=$CFLAGS
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4110 printf %s "checking whether $CC accepts -g... " >&6; }
4111 if test ${ac_cv_prog_cc_g+y}
4112 then :
4113 printf %s "(cached) " >&6
4114 else $as_nop
4115 ac_save_c_werror_flag=$ac_c_werror_flag
4116 ac_c_werror_flag=yes
4117 ac_cv_prog_cc_g=no
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 main (void)
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"
4131 then :
4132 ac_cv_prog_cc_g=yes
4133 else $as_nop
4134 CFLAGS=""
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4139 main (void)
4143 return 0;
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"
4147 then :
4149 else $as_nop
4150 ac_c_werror_flag=$ac_save_c_werror_flag
4151 CFLAGS="-g"
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4156 main (void)
4160 return 0;
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"
4164 then :
4165 ac_cv_prog_cc_g=yes
4167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4172 ac_c_werror_flag=$ac_save_c_werror_flag
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4175 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4176 if test $ac_test_CFLAGS; then
4177 CFLAGS=$ac_save_CFLAGS
4178 elif test $ac_cv_prog_cc_g = yes; then
4179 if test "$GCC" = yes; then
4180 CFLAGS="-g -O2"
4181 else
4182 CFLAGS="-g"
4184 else
4185 if test "$GCC" = yes; then
4186 CFLAGS="-O2"
4187 else
4188 CFLAGS=
4191 ac_prog_cc_stdc=no
4192 if test x$ac_prog_cc_stdc = xno
4193 then :
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4195 printf %s "checking for $CC option to enable C11 features... " >&6; }
4196 if test ${ac_cv_prog_cc_c11+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else $as_nop
4200 ac_cv_prog_cc_c11=no
4201 ac_save_CC=$CC
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 $ac_c_conftest_c11_program
4205 _ACEOF
4206 for ac_arg in '' -std=gnu11
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"
4210 then :
4211 ac_cv_prog_cc_c11=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext conftest.beam
4214 test "x$ac_cv_prog_cc_c11" != "xno" && break
4215 done
4216 rm -f conftest.$ac_ext
4217 CC=$ac_save_CC
4220 if test "x$ac_cv_prog_cc_c11" = xno
4221 then :
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223 printf "%s\n" "unsupported" >&6; }
4224 else $as_nop
4225 if test "x$ac_cv_prog_cc_c11" = x
4226 then :
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 printf "%s\n" "none needed" >&6; }
4229 else $as_nop
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4231 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4232 CC="$CC $ac_cv_prog_cc_c11"
4234 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4235 ac_prog_cc_stdc=c11
4238 if test x$ac_prog_cc_stdc = xno
4239 then :
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4241 printf %s "checking for $CC option to enable C99 features... " >&6; }
4242 if test ${ac_cv_prog_cc_c99+y}
4243 then :
4244 printf %s "(cached) " >&6
4245 else $as_nop
4246 ac_cv_prog_cc_c99=no
4247 ac_save_CC=$CC
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 $ac_c_conftest_c99_program
4251 _ACEOF
4252 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4254 CC="$ac_save_CC $ac_arg"
4255 if ac_fn_c_try_compile "$LINENO"
4256 then :
4257 ac_cv_prog_cc_c99=$ac_arg
4259 rm -f core conftest.err conftest.$ac_objext conftest.beam
4260 test "x$ac_cv_prog_cc_c99" != "xno" && break
4261 done
4262 rm -f conftest.$ac_ext
4263 CC=$ac_save_CC
4266 if test "x$ac_cv_prog_cc_c99" = xno
4267 then :
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4269 printf "%s\n" "unsupported" >&6; }
4270 else $as_nop
4271 if test "x$ac_cv_prog_cc_c99" = x
4272 then :
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274 printf "%s\n" "none needed" >&6; }
4275 else $as_nop
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4277 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4278 CC="$CC $ac_cv_prog_cc_c99"
4280 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4281 ac_prog_cc_stdc=c99
4284 if test x$ac_prog_cc_stdc = xno
4285 then :
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4287 printf %s "checking for $CC option to enable C89 features... " >&6; }
4288 if test ${ac_cv_prog_cc_c89+y}
4289 then :
4290 printf %s "(cached) " >&6
4291 else $as_nop
4292 ac_cv_prog_cc_c89=no
4293 ac_save_CC=$CC
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 $ac_c_conftest_c89_program
4297 _ACEOF
4298 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"
4302 then :
4303 ac_cv_prog_cc_c89=$ac_arg
4305 rm -f core conftest.err conftest.$ac_objext conftest.beam
4306 test "x$ac_cv_prog_cc_c89" != "xno" && break
4307 done
4308 rm -f conftest.$ac_ext
4309 CC=$ac_save_CC
4312 if test "x$ac_cv_prog_cc_c89" = xno
4313 then :
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 printf "%s\n" "unsupported" >&6; }
4316 else $as_nop
4317 if test "x$ac_cv_prog_cc_c89" = x
4318 then :
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 printf "%s\n" "none needed" >&6; }
4321 else $as_nop
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4323 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4324 CC="$CC $ac_cv_prog_cc_c89"
4326 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4327 ac_prog_cc_stdc=c89
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4343 printf %s "checking how to run the C preprocessor... " >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4346 CPP=
4348 if test -z "$CPP"; then
4349 if test ${ac_cv_prog_CPP+y}
4350 then :
4351 printf %s "(cached) " >&6
4352 else $as_nop
4353 # Double quotes because $CC needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4356 ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # On the NeXT, cc -E runs the code through the compiler's parser,
4362 # not just through cpp. "Syntax error" is here to catch this case.
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365 #include <limits.h>
4366 Syntax error
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"
4369 then :
4371 else $as_nop
4372 # Broken: fails on valid input.
4373 continue
4375 rm -f conftest.err conftest.i conftest.$ac_ext
4377 # OK, works on sane cases. Now check whether nonexistent headers
4378 # can be detected and how.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 #include <ac_nonexistent.h>
4382 _ACEOF
4383 if ac_fn_c_try_cpp "$LINENO"
4384 then :
4385 # Broken: success on invalid input.
4386 continue
4387 else $as_nop
4388 # Passes both tests.
4389 ac_preproc_ok=:
4390 break
4392 rm -f conftest.err conftest.i conftest.$ac_ext
4394 done
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.i conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok
4398 then :
4399 break
4402 done
4403 ac_cv_prog_CPP=$CPP
4406 CPP=$ac_cv_prog_CPP
4407 else
4408 ac_cv_prog_CPP=$CPP
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4411 printf "%s\n" "$CPP" >&6; }
4412 ac_preproc_ok=false
4413 for ac_c_preproc_warn_flag in '' yes
4415 # Use a header file that comes with gcc, so configuring glibc
4416 # with a fresh cross-compiler works.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <limits.h>
4422 Syntax error
4423 _ACEOF
4424 if ac_fn_c_try_cpp "$LINENO"
4425 then :
4427 else $as_nop
4428 # Broken: fails on valid input.
4429 continue
4431 rm -f conftest.err conftest.i conftest.$ac_ext
4433 # OK, works on sane cases. Now check whether nonexistent headers
4434 # can be detected and how.
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <ac_nonexistent.h>
4438 _ACEOF
4439 if ac_fn_c_try_cpp "$LINENO"
4440 then :
4441 # Broken: success on invalid input.
4442 continue
4443 else $as_nop
4444 # Passes both tests.
4445 ac_preproc_ok=:
4446 break
4448 rm -f conftest.err conftest.i conftest.$ac_ext
4450 done
4451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4452 rm -f conftest.i conftest.err conftest.$ac_ext
4453 if $ac_preproc_ok
4454 then :
4456 else $as_nop
4457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details" "$LINENO" 5; }
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 ac_ext=cpp
4476 ac_cpp='$CXXCPP $CPPFLAGS'
4477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4480 if test -z "$CXX"; then
4481 if test -n "$CCC"; then
4482 CXX=$CCC
4483 else
4484 if test -n "$ac_tool_prefix"; then
4485 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 printf %s "checking for $ac_word... " >&6; }
4491 if test ${ac_cv_prog_CXX+y}
4492 then :
4493 printf %s "(cached) " >&6
4494 else $as_nop
4495 if test -n "$CXX"; then
4496 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 case $as_dir in #(((
4503 '') as_dir=./ ;;
4504 */) ;;
4505 *) as_dir=$as_dir/ ;;
4506 esac
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 CXX=$ac_cv_prog_CXX
4520 if test -n "$CXX"; then
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4522 printf "%s\n" "$CXX" >&6; }
4523 else
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 printf "%s\n" "no" >&6; }
4529 test -n "$CXX" && break
4530 done
4532 if test -z "$CXX"; then
4533 ac_ct_CXX=$CXX
4534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537 set dummy $ac_prog; ac_word=$2
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 printf %s "checking for $ac_word... " >&6; }
4540 if test ${ac_cv_prog_ac_ct_CXX+y}
4541 then :
4542 printf %s "(cached) " >&6
4543 else $as_nop
4544 if test -n "$ac_ct_CXX"; then
4545 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 case $as_dir in #(((
4552 '') as_dir=./ ;;
4553 */) ;;
4554 *) as_dir=$as_dir/ ;;
4555 esac
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_CXX="$ac_prog"
4559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4564 IFS=$as_save_IFS
4568 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4569 if test -n "$ac_ct_CXX"; then
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4571 printf "%s\n" "$ac_ct_CXX" >&6; }
4572 else
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 printf "%s\n" "no" >&6; }
4578 test -n "$ac_ct_CXX" && break
4579 done
4581 if test "x$ac_ct_CXX" = x; then
4582 CXX="g++"
4583 else
4584 case $cross_compiling:$ac_tool_warned in
4585 yes:)
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588 ac_tool_warned=yes ;;
4589 esac
4590 CXX=$ac_ct_CXX
4596 # Provide some information about the compiler.
4597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4598 set X $ac_compile
4599 ac_compiler=$2
4600 for ac_option in --version -v -V -qversion; do
4601 { { ac_try="$ac_compiler $ac_option >&5"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607 printf "%s\n" "$ac_try_echo"; } >&5
4608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4609 ac_status=$?
4610 if test -s conftest.err; then
4611 sed '10a\
4612 ... rest of stderr output deleted ...
4613 10q' conftest.err >conftest.er1
4614 cat conftest.er1 >&5
4616 rm -f conftest.er1 conftest.err
4617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 done
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4622 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4623 if test ${ac_cv_cxx_compiler_gnu+y}
4624 then :
4625 printf %s "(cached) " >&6
4626 else $as_nop
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4631 main (void)
4633 #ifndef __GNUC__
4634 choke me
4635 #endif
4638 return 0;
4640 _ACEOF
4641 if ac_fn_cxx_try_compile "$LINENO"
4642 then :
4643 ac_compiler_gnu=yes
4644 else $as_nop
4645 ac_compiler_gnu=no
4647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4648 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4652 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4655 if test $ac_compiler_gnu = yes; then
4656 GXX=yes
4657 else
4658 GXX=
4660 ac_test_CXXFLAGS=${CXXFLAGS+y}
4661 ac_save_CXXFLAGS=$CXXFLAGS
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4663 printf %s "checking whether $CXX accepts -g... " >&6; }
4664 if test ${ac_cv_prog_cxx_g+y}
4665 then :
4666 printf %s "(cached) " >&6
4667 else $as_nop
4668 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4669 ac_cxx_werror_flag=yes
4670 ac_cv_prog_cxx_g=no
4671 CXXFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4676 main (void)
4680 return 0;
4682 _ACEOF
4683 if ac_fn_cxx_try_compile "$LINENO"
4684 then :
4685 ac_cv_prog_cxx_g=yes
4686 else $as_nop
4687 CXXFLAGS=""
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4692 main (void)
4696 return 0;
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"
4700 then :
4702 else $as_nop
4703 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4704 CXXFLAGS="-g"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4709 main (void)
4713 return 0;
4715 _ACEOF
4716 if ac_fn_cxx_try_compile "$LINENO"
4717 then :
4718 ac_cv_prog_cxx_g=yes
4720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4728 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4729 if test $ac_test_CXXFLAGS; then
4730 CXXFLAGS=$ac_save_CXXFLAGS
4731 elif test $ac_cv_prog_cxx_g = yes; then
4732 if test "$GXX" = yes; then
4733 CXXFLAGS="-g -O2"
4734 else
4735 CXXFLAGS="-g"
4737 else
4738 if test "$GXX" = yes; then
4739 CXXFLAGS="-O2"
4740 else
4741 CXXFLAGS=
4744 ac_prog_cxx_stdcxx=no
4745 if test x$ac_prog_cxx_stdcxx = xno
4746 then :
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4748 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4749 if test ${ac_cv_prog_cxx_11+y}
4750 then :
4751 printf %s "(cached) " >&6
4752 else $as_nop
4753 ac_cv_prog_cxx_11=no
4754 ac_save_CXX=$CXX
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 $ac_cxx_conftest_cxx11_program
4758 _ACEOF
4759 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4761 CXX="$ac_save_CXX $ac_arg"
4762 if ac_fn_cxx_try_compile "$LINENO"
4763 then :
4764 ac_cv_prog_cxx_cxx11=$ac_arg
4766 rm -f core conftest.err conftest.$ac_objext conftest.beam
4767 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4768 done
4769 rm -f conftest.$ac_ext
4770 CXX=$ac_save_CXX
4773 if test "x$ac_cv_prog_cxx_cxx11" = xno
4774 then :
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4776 printf "%s\n" "unsupported" >&6; }
4777 else $as_nop
4778 if test "x$ac_cv_prog_cxx_cxx11" = x
4779 then :
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 printf "%s\n" "none needed" >&6; }
4782 else $as_nop
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4784 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4785 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4787 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4788 ac_prog_cxx_stdcxx=cxx11
4791 if test x$ac_prog_cxx_stdcxx = xno
4792 then :
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4794 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4795 if test ${ac_cv_prog_cxx_98+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else $as_nop
4799 ac_cv_prog_cxx_98=no
4800 ac_save_CXX=$CXX
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 $ac_cxx_conftest_cxx98_program
4804 _ACEOF
4805 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4807 CXX="$ac_save_CXX $ac_arg"
4808 if ac_fn_cxx_try_compile "$LINENO"
4809 then :
4810 ac_cv_prog_cxx_cxx98=$ac_arg
4812 rm -f core conftest.err conftest.$ac_objext conftest.beam
4813 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4814 done
4815 rm -f conftest.$ac_ext
4816 CXX=$ac_save_CXX
4819 if test "x$ac_cv_prog_cxx_cxx98" = xno
4820 then :
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4822 printf "%s\n" "unsupported" >&6; }
4823 else $as_nop
4824 if test "x$ac_cv_prog_cxx_cxx98" = x
4825 then :
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4827 printf "%s\n" "none needed" >&6; }
4828 else $as_nop
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4830 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4831 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4833 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4834 ac_prog_cxx_stdcxx=cxx98
4838 ac_ext=c
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 # Find a good install program. We prefer a C program (faster),
4846 # so one script is as good as another. But avoid the broken or
4847 # incompatible versions:
4848 # SysV /etc/install, /usr/sbin/install
4849 # SunOS /usr/etc/install
4850 # IRIX /sbin/install
4851 # AIX /bin/install
4852 # AmigaOS /C/install, which installs bootblocks on floppy discs
4853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4856 # OS/2's system install, which has a completely different semantic
4857 # ./install, which can be erroneously created by make from ./install.sh.
4858 # Reject install programs that cannot install multiple files.
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4860 printf %s "checking for a BSD-compatible install... " >&6; }
4861 if test -z "$INSTALL"; then
4862 if test ${ac_cv_path_install+y}
4863 then :
4864 printf %s "(cached) " >&6
4865 else $as_nop
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 case $as_dir in #(((
4871 '') as_dir=./ ;;
4872 */) ;;
4873 *) as_dir=$as_dir/ ;;
4874 esac
4875 # Account for fact that we put trailing slashes in our PATH walk.
4876 case $as_dir in #((
4877 ./ | /[cC]/* | \
4878 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4879 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4880 /usr/ucb/* ) ;;
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4884 # by default.
4885 for ac_prog in ginstall scoinst install; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4888 if test $ac_prog = install &&
4889 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4890 # AIX install. It has an incompatible calling convention.
4892 elif test $ac_prog = install &&
4893 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4896 else
4897 rm -rf conftest.one conftest.two conftest.dir
4898 echo one > conftest.one
4899 echo two > conftest.two
4900 mkdir conftest.dir
4901 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4902 test -s conftest.one && test -s conftest.two &&
4903 test -s conftest.dir/conftest.one &&
4904 test -s conftest.dir/conftest.two
4905 then
4906 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4907 break 3
4911 done
4912 done
4914 esac
4916 done
4917 IFS=$as_save_IFS
4919 rm -rf conftest.one conftest.two conftest.dir
4922 if test ${ac_cv_path_install+y}; then
4923 INSTALL=$ac_cv_path_install
4924 else
4925 # As a last resort, use the slow shell script. Don't cache a
4926 # value for INSTALL within a source directory, because that will
4927 # break other packages using the cache if that directory is
4928 # removed, or if the value is a relative name.
4929 INSTALL=$ac_install_sh
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4933 printf "%s\n" "$INSTALL" >&6; }
4935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4936 # It thinks the first close brace ends the variable substitution.
4937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4941 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4943 if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 printf %s "checking for $ac_word... " >&6; }
4948 if test ${ac_cv_prog_RANLIB+y}
4949 then :
4950 printf %s "(cached) " >&6
4951 else $as_nop
4952 if test -n "$RANLIB"; then
4953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 case $as_dir in #(((
4960 '') as_dir=./ ;;
4961 */) ;;
4962 *) as_dir=$as_dir/ ;;
4963 esac
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4968 break 2
4970 done
4971 done
4972 IFS=$as_save_IFS
4976 RANLIB=$ac_cv_prog_RANLIB
4977 if test -n "$RANLIB"; then
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4979 printf "%s\n" "$RANLIB" >&6; }
4980 else
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 printf "%s\n" "no" >&6; }
4987 if test -z "$ac_cv_prog_RANLIB"; then
4988 ac_ct_RANLIB=$RANLIB
4989 # Extract the first word of "ranlib", so it can be a program name with args.
4990 set dummy ranlib; ac_word=$2
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 printf %s "checking for $ac_word... " >&6; }
4993 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4994 then :
4995 printf %s "(cached) " >&6
4996 else $as_nop
4997 if test -n "$ac_ct_RANLIB"; then
4998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 case $as_dir in #(((
5005 '') as_dir=./ ;;
5006 */) ;;
5007 *) as_dir=$as_dir/ ;;
5008 esac
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_RANLIB="ranlib"
5012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5017 IFS=$as_save_IFS
5021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5022 if test -n "$ac_ct_RANLIB"; then
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5024 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5025 else
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 printf "%s\n" "no" >&6; }
5030 if test "x$ac_ct_RANLIB" = x; then
5031 RANLIB=":"
5032 else
5033 case $cross_compiling:$ac_tool_warned in
5034 yes:)
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037 ac_tool_warned=yes ;;
5038 esac
5039 RANLIB=$ac_ct_RANLIB
5041 else
5042 RANLIB="$ac_cv_prog_RANLIB"
5045 # Extract the first word of "autoconf", so it can be a program name with args.
5046 set dummy autoconf; ac_word=$2
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 printf %s "checking for $ac_word... " >&6; }
5049 if test ${ac_cv_prog_AUTOCONF+y}
5050 then :
5051 printf %s "(cached) " >&6
5052 else $as_nop
5053 if test -n "$AUTOCONF"; then
5054 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 case $as_dir in #(((
5061 '') as_dir=./ ;;
5062 */) ;;
5063 *) as_dir=$as_dir/ ;;
5064 esac
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_AUTOCONF="autoconf"
5068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5075 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
5078 AUTOCONF=$ac_cv_prog_AUTOCONF
5079 if test -n "$AUTOCONF"; then
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5081 printf "%s\n" "$AUTOCONF" >&6; }
5082 else
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 printf "%s\n" "no" >&6; }
5088 # Extract the first word of "strip", so it can be a program name with args.
5089 set dummy strip; ac_word=$2
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 printf %s "checking for $ac_word... " >&6; }
5092 if test ${ac_cv_prog_STRIP+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else $as_nop
5096 if test -n "$STRIP"; then
5097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 case $as_dir in #(((
5104 '') as_dir=./ ;;
5105 */) ;;
5106 *) as_dir=$as_dir/ ;;
5107 esac
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_STRIP="strip"
5111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5112 break 2
5114 done
5115 done
5116 IFS=$as_save_IFS
5118 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5121 STRIP=$ac_cv_prog_STRIP
5122 if test -n "$STRIP"; then
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5124 printf "%s\n" "$STRIP" >&6; }
5125 else
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 printf "%s\n" "no" >&6; }
5131 # Extract the first word of "as", so it can be a program name with args.
5132 set dummy as; ac_word=$2
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 printf %s "checking for $ac_word... " >&6; }
5135 if test ${ac_cv_prog_AS+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else $as_nop
5139 if test -n "$AS"; then
5140 ac_cv_prog_AS="$AS" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 case $as_dir in #(((
5147 '') as_dir=./ ;;
5148 */) ;;
5149 *) as_dir=$as_dir/ ;;
5150 esac
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_AS="as"
5154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5161 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
5164 AS=$ac_cv_prog_AS
5165 if test -n "$AS"; then
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5167 printf "%s\n" "$AS" >&6; }
5168 else
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 printf "%s\n" "no" >&6; }
5174 # Extract the first word of "cp", so it can be a program name with args.
5175 set dummy cp; ac_word=$2
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 printf %s "checking for $ac_word... " >&6; }
5178 if test ${ac_cv_prog_CP+y}
5179 then :
5180 printf %s "(cached) " >&6
5181 else $as_nop
5182 if test -n "$CP"; then
5183 ac_cv_prog_CP="$CP" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 case $as_dir in #(((
5190 '') as_dir=./ ;;
5191 */) ;;
5192 *) as_dir=$as_dir/ ;;
5193 esac
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_CP="cp"
5197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5204 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5207 CP=$ac_cv_prog_CP
5208 if test -n "$CP"; then
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5210 printf "%s\n" "$CP" >&6; }
5211 else
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 printf "%s\n" "no" >&6; }
5217 # Extract the first word of "ar", so it can be a program name with args.
5218 set dummy ar; ac_word=$2
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 printf %s "checking for $ac_word... " >&6; }
5221 if test ${ac_cv_prog_AR+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else $as_nop
5225 if test -n "$AR"; then
5226 ac_cv_prog_AR="$AR" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
5232 case $as_dir in #(((
5233 '') as_dir=./ ;;
5234 */) ;;
5235 *) as_dir=$as_dir/ ;;
5236 esac
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5239 ac_cv_prog_AR="ar"
5240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5247 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
5250 AR=$ac_cv_prog_AR
5251 if test -n "$AR"; then
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5253 printf "%s\n" "$AR" >&6; }
5254 else
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 printf "%s\n" "no" >&6; }
5260 # Extract the first word of "gm4", so it can be a program name with args.
5261 set dummy gm4; ac_word=$2
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 printf %s "checking for $ac_word... " >&6; }
5264 if test ${ac_cv_prog_M4+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else $as_nop
5268 if test -n "$M4"; then
5269 ac_cv_prog_M4="$M4" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5274 IFS=$as_save_IFS
5275 case $as_dir in #(((
5276 '') as_dir=./ ;;
5277 */) ;;
5278 *) as_dir=$as_dir/ ;;
5279 esac
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_M4="gm4"
5283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5290 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="m4"
5293 M4=$ac_cv_prog_M4
5294 if test -n "$M4"; then
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5296 printf "%s\n" "$M4" >&6; }
5297 else
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 printf "%s\n" "no" >&6; }
5304 for ac_prog in flex lex
5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 printf %s "checking for $ac_word... " >&6; }
5310 if test ${ac_cv_prog_LEX+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 if test -n "$LEX"; then
5315 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5320 IFS=$as_save_IFS
5321 case $as_dir in #(((
5322 '') as_dir=./ ;;
5323 */) ;;
5324 *) as_dir=$as_dir/ ;;
5325 esac
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_LEX="$ac_prog"
5329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 LEX=$ac_cv_prog_LEX
5339 if test -n "$LEX"; then
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5341 printf "%s\n" "$LEX" >&6; }
5342 else
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 printf "%s\n" "no" >&6; }
5348 test -n "$LEX" && break
5349 done
5350 test -n "$LEX" || LEX=":"
5353 for ac_prog in 'bison -y' byacc yacc
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356 set dummy $ac_prog; ac_word=$2
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 printf %s "checking for $ac_word... " >&6; }
5359 if test ${ac_cv_prog_YACC+y}
5360 then :
5361 printf %s "(cached) " >&6
5362 else $as_nop
5363 if test -n "$YACC"; then
5364 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 case $as_dir in #(((
5371 '') as_dir=./ ;;
5372 */) ;;
5373 *) as_dir=$as_dir/ ;;
5374 esac
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_YACC="$ac_prog"
5378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 YACC=$ac_cv_prog_YACC
5388 if test -n "$YACC"; then
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5390 printf "%s\n" "$YACC" >&6; }
5391 else
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 printf "%s\n" "no" >&6; }
5397 test -n "$YACC" && break
5398 done
5399 test -n "$YACC" || YACC=":"
5402 # 2.7 is just a guess for the minimum version. I know it works with 2.7 (and 3.6 and 3.9), but should test if a lower version is sufficient.
5409 if test -n "$PYTHON"; then
5410 # If the user set $PYTHON, use it and don't search something else.
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
5412 printf %s "checking whether $PYTHON version is >= 2.7... " >&6; }
5413 prog="import sys
5414 # split strings by '.' and convert to numeric. Append some zeros
5415 # because we need at least 4 digits for the hex conversion.
5416 # map returns an iterator in Python 3.0 and a list in 2.x
5417 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5418 minverhex = 0
5419 # xrange is not present in Python 3.0 and range returns an iterator
5420 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5421 sys.exit(sys.hexversion < minverhex)"
5422 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5423 ($PYTHON -c "$prog") >&5 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }
5427 then :
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 printf "%s\n" "yes" >&6; }
5430 else $as_nop
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 printf "%s\n" "no" >&6; }
5433 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5435 am_display_PYTHON=$PYTHON
5436 else
5437 # Otherwise, try each interpreter until we find one that satisfies
5438 # VERSION.
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5440 printf %s "checking for a Python interpreter with version >= 2.7... " >&6; }
5441 if test ${am_cv_pathless_PYTHON+y}
5442 then :
5443 printf %s "(cached) " >&6
5444 else $as_nop
5446 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5447 test "$am_cv_pathless_PYTHON" = none && break
5448 prog="import sys
5449 # split strings by '.' and convert to numeric. Append some zeros
5450 # because we need at least 4 digits for the hex conversion.
5451 # map returns an iterator in Python 3.0 and a list in 2.x
5452 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5453 minverhex = 0
5454 # xrange is not present in Python 3.0 and range returns an iterator
5455 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5456 sys.exit(sys.hexversion < minverhex)"
5457 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5458 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }
5462 then :
5463 break
5465 done
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5468 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5469 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5470 if test "$am_cv_pathless_PYTHON" = none; then
5471 PYTHON=:
5472 else
5473 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5474 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 printf %s "checking for $ac_word... " >&6; }
5477 if test ${ac_cv_path_PYTHON+y}
5478 then :
5479 printf %s "(cached) " >&6
5480 else $as_nop
5481 case $PYTHON in
5482 [\\/]* | ?:[\\/]*)
5483 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 case $as_dir in #(((
5491 '') as_dir=./ ;;
5492 */) ;;
5493 *) as_dir=$as_dir/ ;;
5494 esac
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5497 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5499 break 2
5501 done
5502 done
5503 IFS=$as_save_IFS
5506 esac
5508 PYTHON=$ac_cv_path_PYTHON
5509 if test -n "$PYTHON"; then
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5511 printf "%s\n" "$PYTHON" >&6; }
5512 else
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 printf "%s\n" "no" >&6; }
5519 am_display_PYTHON=$am_cv_pathless_PYTHON
5523 if test "$PYTHON" = :; then
5525 else
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5529 printf %s "checking for $am_display_PYTHON version... " >&6; }
5530 if test ${am_cv_python_version+y}
5531 then :
5532 printf %s "(cached) " >&6
5533 else $as_nop
5534 am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_info[:2])"`
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5537 printf "%s\n" "$am_cv_python_version" >&6; }
5538 PYTHON_VERSION=$am_cv_python_version
5542 PYTHON_PREFIX='${prefix}'
5544 PYTHON_EXEC_PREFIX='${exec_prefix}'
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5549 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5550 if test ${am_cv_python_platform+y}
5551 then :
5552 printf %s "(cached) " >&6
5553 else $as_nop
5554 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5557 printf "%s\n" "$am_cv_python_platform" >&6; }
5558 PYTHON_PLATFORM=$am_cv_python_platform
5561 # Just factor out some code duplication.
5562 am_python_setup_sysconfig="\
5563 import sys
5564 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5565 # with python 3.x. See automake bug#10227.
5566 try:
5567 import sysconfig
5568 except ImportError:
5569 can_use_sysconfig = 0
5570 else:
5571 can_use_sysconfig = 1
5572 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5573 # <https://github.com/pypa/virtualenv/issues/118>
5574 try:
5575 from platform import python_implementation
5576 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5577 can_use_sysconfig = 0
5578 except ImportError:
5579 pass"
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5583 printf %s "checking for $am_display_PYTHON script directory... " >&6; }
5584 if test ${am_cv_python_pythondir+y}
5585 then :
5586 printf %s "(cached) " >&6
5587 else $as_nop
5588 if test "x$prefix" = xNONE
5589 then
5590 am_py_prefix=$ac_default_prefix
5591 else
5592 am_py_prefix=$prefix
5594 am_cv_python_pythondir=`$PYTHON -c "
5595 $am_python_setup_sysconfig
5596 if can_use_sysconfig:
5597 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5598 else:
5599 from distutils import sysconfig
5600 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5601 sys.stdout.write(sitedir)"`
5602 case $am_cv_python_pythondir in
5603 $am_py_prefix*)
5604 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5605 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5608 case $am_py_prefix in
5609 /usr|/System*) ;;
5611 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5613 esac
5615 esac
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5619 printf "%s\n" "$am_cv_python_pythondir" >&6; }
5620 pythondir=$am_cv_python_pythondir
5624 pkgpythondir=\${pythondir}/$PACKAGE
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5628 printf %s "checking for $am_display_PYTHON extension module directory... " >&6; }
5629 if test ${am_cv_python_pyexecdir+y}
5630 then :
5631 printf %s "(cached) " >&6
5632 else $as_nop
5633 if test "x$exec_prefix" = xNONE
5634 then
5635 am_py_exec_prefix=$am_py_prefix
5636 else
5637 am_py_exec_prefix=$exec_prefix
5639 am_cv_python_pyexecdir=`$PYTHON -c "
5640 $am_python_setup_sysconfig
5641 if can_use_sysconfig:
5642 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5643 else:
5644 from distutils import sysconfig
5645 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5646 sys.stdout.write(sitedir)"`
5647 case $am_cv_python_pyexecdir in
5648 $am_py_exec_prefix*)
5649 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5650 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5653 case $am_py_exec_prefix in
5654 /usr|/System*) ;;
5656 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5658 esac
5660 esac
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5664 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
5665 pyexecdir=$am_cv_python_pyexecdir
5669 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5679 if test "$YACC" = ":"; then
5680 as_fn_error $? "Cannot find required program bison." "$LINENO" 5
5683 if test "$LEX" = ":"; then
5684 as_fn_error $? "Cannot find required program flex." "$LINENO" 5
5688 ac_ext=c
5689 ac_cpp='$CPP $CPPFLAGS'
5690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 ac_header= ac_cache=
5697 for ac_item in $ac_header_c_list
5699 if test $ac_cache; then
5700 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5701 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5702 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5704 ac_header= ac_cache=
5705 elif test $ac_header; then
5706 ac_cache=$ac_item
5707 else
5708 ac_header=$ac_item
5710 done
5719 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5720 then :
5722 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5725 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5726 if test "x$ac_cv_header_endian_h" = xyes
5727 then :
5728 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5731 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5732 if test "x$ac_cv_header_sys_endian_h" = xyes
5733 then :
5734 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5737 ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
5738 if test "x$ac_cv_header_machine_endian_h" = xyes
5739 then :
5740 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
5743 ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
5744 if test "x$ac_cv_header_sys_isa_defs_h" = xyes
5745 then :
5746 printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
5750 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
5751 if test "x$ac_cv_header_uchar_h" = xyes
5752 then :
5753 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
5757 ac_ext=cpp
5758 ac_cpp='$CXXCPP $CPPFLAGS'
5759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5764 for ac_header in treedec/combinations.hpp
5765 do :
5766 ac_fn_cxx_check_header_compile "$LINENO" "treedec/combinations.hpp" "ac_cv_header_treedec_combinations_hpp" "$ac_includes_default"
5767 if test "x$ac_cv_header_treedec_combinations_hpp" = xyes
5768 then :
5769 printf "%s\n" "#define HAVE_TREEDEC_COMBINATIONS_HPP 1" >>confdefs.h
5771 else $as_nop
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: treedec library missing, falling back to Thorup." >&5
5773 printf "%s\n" "$as_me: treedec library missing, falling back to Thorup." >&6;}
5776 done
5777 ac_fn_cxx_check_header_compile "$LINENO" "gala/graph.h" "ac_cv_header_gala_graph_h" "$ac_includes_default"
5778 if test "x$ac_cv_header_gala_graph_h" = xyes
5779 then :
5780 printf "%s\n" "#define HAVE_GALA_GRAPH_H 1" >>confdefs.h
5784 for ac_header in boost/graph/adjacency_list.hpp
5785 do :
5786 ac_fn_cxx_check_header_compile "$LINENO" "boost/graph/adjacency_list.hpp" "ac_cv_header_boost_graph_adjacency_list_hpp" "$ac_includes_default"
5787 if test "x$ac_cv_header_boost_graph_adjacency_list_hpp" = xyes
5788 then :
5789 printf "%s\n" "#define HAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP 1" >>confdefs.h
5791 else $as_nop
5792 as_fn_error $? "boost library not found (boost/graph/adjacency_list.hpp)." "$LINENO" 5
5795 done
5796 ac_ext=c
5797 ac_cpp='$CPP $CPPFLAGS'
5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804 # Check whether --with-ccache was given.
5805 if test ${with_ccache+y}
5806 then :
5807 withval=$with_ccache;
5810 case x${with_ccache-yes} in
5811 xyes) # Extract the first word of "ccache", so it can be a program name with args.
5812 set dummy ccache; ac_word=$2
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 printf %s "checking for $ac_word... " >&6; }
5815 if test ${ac_cv_prog_CCACHE+y}
5816 then :
5817 printf %s "(cached) " >&6
5818 else $as_nop
5819 if test -n "$CCACHE"; then
5820 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5825 IFS=$as_save_IFS
5826 case $as_dir in #(((
5827 '') as_dir=./ ;;
5828 */) ;;
5829 *) as_dir=$as_dir/ ;;
5830 esac
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_CCACHE="ccache"
5834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5835 break 2
5837 done
5838 done
5839 IFS=$as_save_IFS
5843 CCACHE=$ac_cv_prog_CCACHE
5844 if test -n "$CCACHE"; then
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
5846 printf "%s\n" "$CCACHE" >&6; }
5847 else
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 printf "%s\n" "no" >&6; }
5853 xno) ;;
5854 *) CCACHE=$with_ccache
5856 esac
5859 # Checking for functions
5860 # ===========================================================================
5861 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
5862 if test "x$ac_cv_func_mkstemp" = xyes
5863 then :
5864 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
5867 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
5868 if test "x$ac_cv_func_strndup" = xyes
5869 then :
5870 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
5873 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
5874 if test "x$ac_cv_func_setrlimit" = xyes
5875 then :
5876 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
5879 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
5880 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes
5881 then :
5882 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS_FD 1" >>confdefs.h
5888 # Macro definitions
5889 # ===========================================================================
5891 # _sdcc_EXECUTE_IFELSE_BODY(COMMAND)
5892 # -----------------------
5893 # Shell function body for _AC_EXECUTE_IFELSE.
5894 # _sdcc_EXECUTE_IFELSE_BODY
5896 # sdcc_EXECUTE_IFELSE(COMMAND[ACTION-IF-TRUE], [ACTION-IF-FALSE])
5897 # ----------------------------------------------------------------
5898 # Try to execute COMMAND.
5899 # sdcc_EXECUTE_IFELSE
5901 # Check whether the compiler for the current language is SunPRO.
5905 # sdcc_IS_VALID_OPTION macro checks if the current compiler, selected by
5906 # AC_LANG, supports option specified as the 1st parameter. The test fails if
5907 # the compiler returns an error or in case something is writeen to stderr.
5908 # For example: sdcc_VALID_OPT(-fPIC)
5912 # This macro expands DIR and assigns it to RET.
5913 # If DIR is NONE, then it's replaced by DEFAULT.
5915 # Based on AC_DEFINE_DIR
5917 # Examples:
5919 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
5923 # adl_NORMALIZE_PATH
5925 # - empty paths are changed to '.'
5926 # - trailing slashes are removed
5927 # - repeated slashes are squeezed except a leading doubled slash '//'
5928 # (which might indicate a networked disk on some OS).
5931 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
5932 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
5933 # are turned into backslashes, otherwise they are all turned into slashes.
5935 # This makes processing of DOS filenames quite easier, because you can turn a
5936 # filename to the Unix notation, make your processing, and turn it back to
5937 # original notation.
5942 # adl_COMPUTE_RELATIVE_PATH
5944 # PATH_LIST is a space-separated list of colon-separated triplets of the form
5945 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
5946 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
5947 # absolute filenames for this macro to success.
5951 ## Note:
5952 ## *****
5953 ## The following helper macros are too fragile to be used out
5954 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
5955 ## paths are normalized), that's why I'm keeping them in the same file.
5956 ## Still, some of them maybe worth to reuse.
5973 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5974 ac_ext=cpp
5975 ac_cpp='$CXXCPP $CPPFLAGS'
5976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5979 ac_success=no
5981 if test x$ac_success = xno; then
5982 for alternative in ${ax_cxx_compile_alternatives}; do
5983 switch="-std=gnu++${alternative}"
5984 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5986 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
5987 if eval test \${$cachevar+y}
5988 then :
5989 printf %s "(cached) " >&6
5990 else $as_nop
5991 ac_save_CXX="$CXX"
5992 CXX="$CXX $switch"
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5997 // If the compiler admits that it is not ready for C++11, why torture it?
5998 // Hopefully, this will speed up the test.
6000 #ifndef __cplusplus
6002 #error "This is not a C++ compiler"
6004 #elif __cplusplus < 201103L
6006 #error "This is not a C++11 compiler"
6008 #else
6010 namespace cxx11
6013 namespace test_static_assert
6016 template <typename T>
6017 struct check
6019 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6024 namespace test_final_override
6027 struct Base
6029 virtual void f() {}
6032 struct Derived : public Base
6034 virtual void f() override {}
6039 namespace test_double_right_angle_brackets
6042 template < typename T >
6043 struct check {};
6045 typedef check<void> single_type;
6046 typedef check<check<void>> double_type;
6047 typedef check<check<check<void>>> triple_type;
6048 typedef check<check<check<check<void>>>> quadruple_type;
6052 namespace test_decltype
6058 int a = 1;
6059 decltype(a) b = 2;
6060 return a + b;
6065 namespace test_type_deduction
6068 template < typename T1, typename T2 >
6069 struct is_same
6071 static const bool value = false;
6074 template < typename T >
6075 struct is_same<T, T>
6077 static const bool value = true;
6080 template < typename T1, typename T2 >
6081 auto
6082 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6084 return a1 + a2;
6088 test(const int c, volatile int v)
6090 static_assert(is_same<int, decltype(0)>::value == true, "");
6091 static_assert(is_same<int, decltype(c)>::value == false, "");
6092 static_assert(is_same<int, decltype(v)>::value == false, "");
6093 auto ac = c;
6094 auto av = v;
6095 auto sumi = ac + av + 'x';
6096 auto sumf = ac + av + 1.0;
6097 static_assert(is_same<int, decltype(ac)>::value == true, "");
6098 static_assert(is_same<int, decltype(av)>::value == true, "");
6099 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6100 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6101 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6102 return (sumf > 0.0) ? sumi : add(c, v);
6107 namespace test_noexcept
6110 int f() { return 0; }
6111 int g() noexcept { return 0; }
6113 static_assert(noexcept(f()) == false, "");
6114 static_assert(noexcept(g()) == true, "");
6118 namespace test_constexpr
6121 template < typename CharT >
6122 unsigned long constexpr
6123 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6125 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6128 template < typename CharT >
6129 unsigned long constexpr
6130 strlen_c(const CharT *const s) noexcept
6132 return strlen_c_r(s, 0UL);
6135 static_assert(strlen_c("") == 0UL, "");
6136 static_assert(strlen_c("1") == 1UL, "");
6137 static_assert(strlen_c("example") == 7UL, "");
6138 static_assert(strlen_c("another\0example") == 7UL, "");
6142 namespace test_rvalue_references
6145 template < int N >
6146 struct answer
6148 static constexpr int value = N;
6151 answer<1> f(int&) { return answer<1>(); }
6152 answer<2> f(const int&) { return answer<2>(); }
6153 answer<3> f(int&&) { return answer<3>(); }
6155 void
6156 test()
6158 int i = 0;
6159 const int c = 0;
6160 static_assert(decltype(f(i))::value == 1, "");
6161 static_assert(decltype(f(c))::value == 2, "");
6162 static_assert(decltype(f(0))::value == 3, "");
6167 namespace test_uniform_initialization
6170 struct test
6172 static const int zero {};
6173 static const int one {1};
6176 static_assert(test::zero == 0, "");
6177 static_assert(test::one == 1, "");
6181 namespace test_lambdas
6184 void
6185 test1()
6187 auto lambda1 = [](){};
6188 auto lambda2 = lambda1;
6189 lambda1();
6190 lambda2();
6194 test2()
6196 auto a = [](int i, int j){ return i + j; }(1, 2);
6197 auto b = []() -> int { return '0'; }();
6198 auto c = [=](){ return a + b; }();
6199 auto d = [&](){ return c; }();
6200 auto e = [a, &b](int x) mutable {
6201 const auto identity = [](int y){ return y; };
6202 for (auto i = 0; i < a; ++i)
6203 a += b--;
6204 return x + identity(a + b);
6205 }(0);
6206 return a + b + c + d + e;
6210 test3()
6212 const auto nullary = [](){ return 0; };
6213 const auto unary = [](int x){ return x; };
6214 using nullary_t = decltype(nullary);
6215 using unary_t = decltype(unary);
6216 const auto higher1st = [](nullary_t f){ return f(); };
6217 const auto higher2nd = [unary](nullary_t f1){
6218 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6220 return higher1st(nullary) + higher2nd(nullary)(unary);
6225 namespace test_variadic_templates
6228 template <int...>
6229 struct sum;
6231 template <int N0, int... N1toN>
6232 struct sum<N0, N1toN...>
6234 static constexpr auto value = N0 + sum<N1toN...>::value;
6237 template <>
6238 struct sum<>
6240 static constexpr auto value = 0;
6243 static_assert(sum<>::value == 0, "");
6244 static_assert(sum<1>::value == 1, "");
6245 static_assert(sum<23>::value == 23, "");
6246 static_assert(sum<1, 2>::value == 3, "");
6247 static_assert(sum<5, 5, 11>::value == 21, "");
6248 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6252 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6253 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6254 // because of this.
6255 namespace test_template_alias_sfinae
6258 struct foo {};
6260 template<typename T>
6261 using member = typename T::member_type;
6263 template<typename T>
6264 void func(...) {}
6266 template<typename T>
6267 void func(member<T>*) {}
6269 void test();
6271 void test() { func<foo>(0); }
6275 } // namespace cxx11
6277 #endif // __cplusplus >= 201103L
6281 _ACEOF
6282 if ac_fn_cxx_try_compile "$LINENO"
6283 then :
6284 eval $cachevar=yes
6285 else $as_nop
6286 eval $cachevar=no
6288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6289 CXX="$ac_save_CXX"
6291 eval ac_res=\$$cachevar
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6293 printf "%s\n" "$ac_res" >&6; }
6294 if eval test x\$$cachevar = xyes; then
6295 CXX="$CXX $switch"
6296 if test -n "$CXXCPP" ; then
6297 CXXCPP="$CXXCPP $switch"
6299 ac_success=yes
6300 break
6302 done
6305 if test x$ac_success = xno; then
6306 for alternative in ${ax_cxx_compile_alternatives}; do
6307 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6308 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6310 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6311 if eval test \${$cachevar+y}
6312 then :
6313 printf %s "(cached) " >&6
6314 else $as_nop
6315 ac_save_CXX="$CXX"
6316 CXX="$CXX $switch"
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6321 // If the compiler admits that it is not ready for C++11, why torture it?
6322 // Hopefully, this will speed up the test.
6324 #ifndef __cplusplus
6326 #error "This is not a C++ compiler"
6328 #elif __cplusplus < 201103L
6330 #error "This is not a C++11 compiler"
6332 #else
6334 namespace cxx11
6337 namespace test_static_assert
6340 template <typename T>
6341 struct check
6343 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6348 namespace test_final_override
6351 struct Base
6353 virtual void f() {}
6356 struct Derived : public Base
6358 virtual void f() override {}
6363 namespace test_double_right_angle_brackets
6366 template < typename T >
6367 struct check {};
6369 typedef check<void> single_type;
6370 typedef check<check<void>> double_type;
6371 typedef check<check<check<void>>> triple_type;
6372 typedef check<check<check<check<void>>>> quadruple_type;
6376 namespace test_decltype
6382 int a = 1;
6383 decltype(a) b = 2;
6384 return a + b;
6389 namespace test_type_deduction
6392 template < typename T1, typename T2 >
6393 struct is_same
6395 static const bool value = false;
6398 template < typename T >
6399 struct is_same<T, T>
6401 static const bool value = true;
6404 template < typename T1, typename T2 >
6405 auto
6406 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6408 return a1 + a2;
6412 test(const int c, volatile int v)
6414 static_assert(is_same<int, decltype(0)>::value == true, "");
6415 static_assert(is_same<int, decltype(c)>::value == false, "");
6416 static_assert(is_same<int, decltype(v)>::value == false, "");
6417 auto ac = c;
6418 auto av = v;
6419 auto sumi = ac + av + 'x';
6420 auto sumf = ac + av + 1.0;
6421 static_assert(is_same<int, decltype(ac)>::value == true, "");
6422 static_assert(is_same<int, decltype(av)>::value == true, "");
6423 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6424 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6425 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6426 return (sumf > 0.0) ? sumi : add(c, v);
6431 namespace test_noexcept
6434 int f() { return 0; }
6435 int g() noexcept { return 0; }
6437 static_assert(noexcept(f()) == false, "");
6438 static_assert(noexcept(g()) == true, "");
6442 namespace test_constexpr
6445 template < typename CharT >
6446 unsigned long constexpr
6447 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6449 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6452 template < typename CharT >
6453 unsigned long constexpr
6454 strlen_c(const CharT *const s) noexcept
6456 return strlen_c_r(s, 0UL);
6459 static_assert(strlen_c("") == 0UL, "");
6460 static_assert(strlen_c("1") == 1UL, "");
6461 static_assert(strlen_c("example") == 7UL, "");
6462 static_assert(strlen_c("another\0example") == 7UL, "");
6466 namespace test_rvalue_references
6469 template < int N >
6470 struct answer
6472 static constexpr int value = N;
6475 answer<1> f(int&) { return answer<1>(); }
6476 answer<2> f(const int&) { return answer<2>(); }
6477 answer<3> f(int&&) { return answer<3>(); }
6479 void
6480 test()
6482 int i = 0;
6483 const int c = 0;
6484 static_assert(decltype(f(i))::value == 1, "");
6485 static_assert(decltype(f(c))::value == 2, "");
6486 static_assert(decltype(f(0))::value == 3, "");
6491 namespace test_uniform_initialization
6494 struct test
6496 static const int zero {};
6497 static const int one {1};
6500 static_assert(test::zero == 0, "");
6501 static_assert(test::one == 1, "");
6505 namespace test_lambdas
6508 void
6509 test1()
6511 auto lambda1 = [](){};
6512 auto lambda2 = lambda1;
6513 lambda1();
6514 lambda2();
6518 test2()
6520 auto a = [](int i, int j){ return i + j; }(1, 2);
6521 auto b = []() -> int { return '0'; }();
6522 auto c = [=](){ return a + b; }();
6523 auto d = [&](){ return c; }();
6524 auto e = [a, &b](int x) mutable {
6525 const auto identity = [](int y){ return y; };
6526 for (auto i = 0; i < a; ++i)
6527 a += b--;
6528 return x + identity(a + b);
6529 }(0);
6530 return a + b + c + d + e;
6534 test3()
6536 const auto nullary = [](){ return 0; };
6537 const auto unary = [](int x){ return x; };
6538 using nullary_t = decltype(nullary);
6539 using unary_t = decltype(unary);
6540 const auto higher1st = [](nullary_t f){ return f(); };
6541 const auto higher2nd = [unary](nullary_t f1){
6542 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6544 return higher1st(nullary) + higher2nd(nullary)(unary);
6549 namespace test_variadic_templates
6552 template <int...>
6553 struct sum;
6555 template <int N0, int... N1toN>
6556 struct sum<N0, N1toN...>
6558 static constexpr auto value = N0 + sum<N1toN...>::value;
6561 template <>
6562 struct sum<>
6564 static constexpr auto value = 0;
6567 static_assert(sum<>::value == 0, "");
6568 static_assert(sum<1>::value == 1, "");
6569 static_assert(sum<23>::value == 23, "");
6570 static_assert(sum<1, 2>::value == 3, "");
6571 static_assert(sum<5, 5, 11>::value == 21, "");
6572 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6576 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6577 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6578 // because of this.
6579 namespace test_template_alias_sfinae
6582 struct foo {};
6584 template<typename T>
6585 using member = typename T::member_type;
6587 template<typename T>
6588 void func(...) {}
6590 template<typename T>
6591 void func(member<T>*) {}
6593 void test();
6595 void test() { func<foo>(0); }
6599 } // namespace cxx11
6601 #endif // __cplusplus >= 201103L
6605 _ACEOF
6606 if ac_fn_cxx_try_compile "$LINENO"
6607 then :
6608 eval $cachevar=yes
6609 else $as_nop
6610 eval $cachevar=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6613 CXX="$ac_save_CXX"
6615 eval ac_res=\$$cachevar
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6617 printf "%s\n" "$ac_res" >&6; }
6618 if eval test x\$$cachevar = xyes; then
6619 CXX="$CXX $switch"
6620 if test -n "$CXXCPP" ; then
6621 CXXCPP="$CXXCPP $switch"
6623 ac_success=yes
6624 break
6626 done
6627 if test x$ac_success = xyes; then
6628 break
6630 done
6632 ac_ext=c
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6639 if test x$ac_success = xno; then
6640 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6643 if test x$ac_success = xno; then
6644 HAVE_CXX11=0
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6646 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
6647 else
6648 HAVE_CXX11=1
6650 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
6656 # Checking characteristics of compilers and other programs
6657 # ===========================================================================
6658 if test "$ac_cv_c_compiler_gnu" = "yes"; then
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
6660 printf %s "checking whether preprocessor accepts -MM or -M... " >&6; }
6661 if test ${sdcc_cv_MM+y}
6662 then :
6663 printf %s "(cached) " >&6
6664 else $as_nop
6665 echo "#include <stdio.h>" >_test_.c
6666 echo "" >>_test_.c
6667 $CPP -v -MM _test_.c 1>&5 2>&5
6668 if test "$?" = "0"; then
6669 sdcc_cv_MM="-MM"
6670 else
6671 sdcc_cv_MM="-M"
6673 rm -f _test_.*
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
6676 printf "%s\n" "$sdcc_cv_MM" >&6; }
6678 # This is the first time when CFLAGS are set/modified!!
6679 arg1=`echo -ggdb | sed -e"s/^-*//" -e"s/-/_/"`
6680 ac_test_CFLAGS=${CFLAGS+set}
6681 sdcc_save_CFLAGS=$CFLAGS
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -ggdb" >&5
6683 printf %s "checking whether C accepts -ggdb... " >&6; }
6684 if eval test \${sdcc_cv_c_$arg1+y}
6685 then :
6686 printf %s "(cached) " >&6
6687 else $as_nop
6688 sdcc_save_c_werror_flag=$ac_c_werror_flag
6689 ac_c_werror_flag=yes
6691 CFLAGS="-ggdb"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6696 main (void)
6700 return 0;
6702 _ACEOF
6703 if ac_fn_c_try_compile "$LINENO"
6704 then :
6705 eval sdcc_cv_c_$arg1=yes
6706 else $as_nop
6707 eval sdcc_cv_c_$arg1=no
6709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6710 ac_c_werror_flag=$sdcc_save_c_werror_flag
6712 eval ac_res=\$sdcc_cv_c_$arg1
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6714 printf "%s\n" "$ac_res" >&6; }
6715 CFLAGS=$sdcc_save_CFLAGS
6717 if test "$sdcc_cv_c_ggdb" = "yes"; then
6718 CFLAGS="-ggdb ${CFLAGS}"
6719 CXXFLAGS="-ggdb ${CXXFLAGS}"
6722 arg1=`echo -pipe | sed -e"s/^-*//" -e"s/-/_/"`
6723 ac_test_CFLAGS=${CFLAGS+set}
6724 sdcc_save_CFLAGS=$CFLAGS
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -pipe" >&5
6726 printf %s "checking whether C accepts -pipe... " >&6; }
6727 if eval test \${sdcc_cv_c_$arg1+y}
6728 then :
6729 printf %s "(cached) " >&6
6730 else $as_nop
6731 sdcc_save_c_werror_flag=$ac_c_werror_flag
6732 ac_c_werror_flag=yes
6734 CFLAGS="-pipe"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6739 main (void)
6743 return 0;
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"
6747 then :
6748 eval sdcc_cv_c_$arg1=yes
6749 else $as_nop
6750 eval sdcc_cv_c_$arg1=no
6752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6753 ac_c_werror_flag=$sdcc_save_c_werror_flag
6755 eval ac_res=\$sdcc_cv_c_$arg1
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6757 printf "%s\n" "$ac_res" >&6; }
6758 CFLAGS=$sdcc_save_CFLAGS
6760 if test "$sdcc_cv_c_pipe" = "yes"; then
6761 CFLAGS="-pipe ${CFLAGS}"
6762 # Don't use "-pipe" on x86 Solaris g++, since src/z80/ralloc2.cc dies with:
6763 # Assembler: ralloc2.cc
6764 # "<stdin>", line 117637 : Internal: Out of symbol table
6765 if test `uname` != "SunOS" -o \( `uname` = "SunOS" -a `uname -m` != "i86pc" \); then
6766 CXXFLAGS="-pipe ${CXXFLAGS}"
6770 WALL_FLAG="-Wall -Wno-parentheses"
6771 C99_FLAG="--std=c99"
6772 MAKEDEP_CXX="$CXX $sdcc_cv_MM"
6773 MAKEDEP="$CC $sdcc_cv_MM"
6774 else
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
6776 printf %s "checking whether we are using the SunPRO C compiler... " >&6; }
6777 if test ${sdcc_cv_c_compiler_sunpro+y}
6778 then :
6779 printf %s "(cached) " >&6
6780 else $as_nop
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6785 main (void)
6787 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
6788 choke me
6789 #endif
6792 return 0;
6794 _ACEOF
6795 if ac_fn_c_try_compile "$LINENO"
6796 then :
6797 sdcc_cv_c_compiler_sunpro=yes
6798 else $as_nop
6799 sdcc_cv_c_compiler_sunpro=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_c_compiler_sunpro" >&5
6805 printf "%s\n" "$sdcc_cv_c_compiler_sunpro" >&6; }
6806 if test "$sdcc_cv_c_compiler_sunpro" = "yes"; then
6807 C99_FLAG="-xc99"
6808 CFLAGS="-xO2 ${C99_FLAG} ${CFLAGS}"
6809 CXXFLAGS="-xO2 ${CXXFLAGS}"
6810 WALL_FLAG=
6811 MAKEDEP="$CC ${C99_FLAG} -xM1"
6812 MAKEDEP_CXX="$CXX -xM1"
6821 # Try to append a c99 flag
6822 # -------------------------------------------------------------------------
6824 if test "$ac_cv_prog_cc_c99" != "no"; then
6825 CFLAGS="$ac_cv_prog_cc_c99 ${CFLAGS}"
6828 # Checks for typedefs, structures, and compiler characteristics.
6829 # ===========================================================================
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6831 printf %s "checking return type of signal handlers... " >&6; }
6832 if test ${ac_cv_type_signal+y}
6833 then :
6834 printf %s "(cached) " >&6
6835 else $as_nop
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #include <sys/types.h>
6839 #include <signal.h>
6842 main (void)
6844 return *(signal (0, 0)) (0) == 1;
6846 return 0;
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"
6850 then :
6851 ac_cv_type_signal=int
6852 else $as_nop
6853 ac_cv_type_signal=void
6855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6858 printf "%s\n" "$ac_cv_type_signal" >&6; }
6860 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
6864 # The cast to long int works around a bug in the HP C Compiler
6865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6867 # This bug is HP SR number 8606223364.
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6869 printf %s "checking size of char... " >&6; }
6870 if test ${ac_cv_sizeof_char+y}
6871 then :
6872 printf %s "(cached) " >&6
6873 else $as_nop
6874 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
6875 then :
6877 else $as_nop
6878 if test "$ac_cv_type_char" = yes; then
6879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6880 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6881 as_fn_error 77 "cannot compute sizeof (char)
6882 See \`config.log' for more details" "$LINENO" 5; }
6883 else
6884 ac_cv_sizeof_char=0
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6890 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
6894 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
6897 # The cast to long int works around a bug in the HP C Compiler
6898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6900 # This bug is HP SR number 8606223364.
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6902 printf %s "checking size of short... " >&6; }
6903 if test ${ac_cv_sizeof_short+y}
6904 then :
6905 printf %s "(cached) " >&6
6906 else $as_nop
6907 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
6908 then :
6910 else $as_nop
6911 if test "$ac_cv_type_short" = yes; then
6912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6914 as_fn_error 77 "cannot compute sizeof (short)
6915 See \`config.log' for more details" "$LINENO" 5; }
6916 else
6917 ac_cv_sizeof_short=0
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6923 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
6927 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
6930 # The cast to long int works around a bug in the HP C Compiler
6931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6933 # This bug is HP SR number 8606223364.
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6935 printf %s "checking size of int... " >&6; }
6936 if test ${ac_cv_sizeof_int+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else $as_nop
6940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
6941 then :
6943 else $as_nop
6944 if test "$ac_cv_type_int" = yes; then
6945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6947 as_fn_error 77 "cannot compute sizeof (int)
6948 See \`config.log' for more details" "$LINENO" 5; }
6949 else
6950 ac_cv_sizeof_int=0
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6956 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
6960 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
6963 # The cast to long int works around a bug in the HP C Compiler
6964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6966 # This bug is HP SR number 8606223364.
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6968 printf %s "checking size of long... " >&6; }
6969 if test ${ac_cv_sizeof_long+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else $as_nop
6973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
6974 then :
6976 else $as_nop
6977 if test "$ac_cv_type_long" = yes; then
6978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6979 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6980 as_fn_error 77 "cannot compute sizeof (long)
6981 See \`config.log' for more details" "$LINENO" 5; }
6982 else
6983 ac_cv_sizeof_long=0
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6989 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
6993 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
6996 # The cast to long int works around a bug in the HP C Compiler
6997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6999 # This bug is HP SR number 8606223364.
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7001 printf %s "checking size of long long... " >&6; }
7002 if test ${ac_cv_sizeof_long_long+y}
7003 then :
7004 printf %s "(cached) " >&6
7005 else $as_nop
7006 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
7007 then :
7009 else $as_nop
7010 if test "$ac_cv_type_long_long" = yes; then
7011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7012 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7013 as_fn_error 77 "cannot compute sizeof (long long)
7014 See \`config.log' for more details" "$LINENO" 5; }
7015 else
7016 ac_cv_sizeof_long_long=0
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7022 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
7026 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7030 printf %s "checking whether char is unsigned... " >&6; }
7031 if test ${ac_cv_c_char_unsigned+y}
7032 then :
7033 printf %s "(cached) " >&6
7034 else $as_nop
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 $ac_includes_default
7039 main (void)
7041 static int test_array [1 - 2 * !(((char) -1) < 0)];
7042 test_array [0] = 0;
7043 return test_array [0];
7046 return 0;
7048 _ACEOF
7049 if ac_fn_c_try_compile "$LINENO"
7050 then :
7051 ac_cv_c_char_unsigned=no
7052 else $as_nop
7053 ac_cv_c_char_unsigned=yes
7055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7058 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7059 if test $ac_cv_c_char_unsigned = yes; then
7060 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7065 type_name()
7067 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
7068 echo "char"
7069 exit
7071 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
7072 echo "short"
7073 exit
7075 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
7076 echo "int"
7077 exit
7079 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
7080 echo "long"
7081 exit
7083 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
7084 echo "long long"
7085 exit
7087 echo "long"
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
7091 printf %s "checking type name for byte... " >&6; }
7092 TYPE_CHAR=`type_name 1`
7093 if test "$ac_cv_c_char_unsigned" = "yes"; then
7094 TYPE_BYTE="signed $TYPE_CHAR"
7095 else
7096 TYPE_BYTE=$TYPE_CHAR
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
7099 printf "%s\n" "$TYPE_BYTE" >&6; }
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
7101 printf %s "checking type name for word... " >&6; }
7102 TYPE_WORD=`type_name 2`
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
7104 printf "%s\n" "$TYPE_WORD" >&6; }
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for dword" >&5
7106 printf %s "checking type name for dword... " >&6; }
7107 TYPE_DWORD=`type_name 4`
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_DWORD" >&5
7109 printf "%s\n" "$TYPE_DWORD" >&6; }
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for qword" >&5
7111 printf %s "checking type name for qword... " >&6; }
7112 TYPE_QWORD=`type_name 8`
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_QWORD" >&5
7114 printf "%s\n" "$TYPE_QWORD" >&6; }
7117 printf "%s\n" "#define TYPE_BYTE $TYPE_BYTE" >>confdefs.h
7120 printf "%s\n" "#define TYPE_WORD $TYPE_WORD" >>confdefs.h
7123 printf "%s\n" "#define TYPE_DWORD $TYPE_DWORD" >>confdefs.h
7126 printf "%s\n" "#define TYPE_QWORD $TYPE_QWORD" >>confdefs.h
7130 printf "%s\n" "#define TYPE_UBYTE unsigned $TYPE_CHAR" >>confdefs.h
7133 printf "%s\n" "#define TYPE_UWORD unsigned $TYPE_WORD" >>confdefs.h
7136 printf "%s\n" "#define TYPE_UDWORD unsigned $TYPE_DWORD" >>confdefs.h
7139 printf "%s\n" "#define TYPE_UQWORD unsigned $TYPE_QWORD" >>confdefs.h
7142 case "${host}" in
7143 *x86_64*cygwin*)
7144 LDFLAGS="$LDFLAGS -Wl,--stack,4194304"
7146 *x86_64*mingw*)
7147 LDFLAGS="$LDFLAGS -Wl,--stack,4194304"
7149 esac
7151 # Checking whether byte ordering is bigendian
7152 # ===========================================================================
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7154 printf %s "checking whether byte ordering is bigendian... " >&6; }
7155 if test ${ac_cv_c_bigendian+y}
7156 then :
7157 printf %s "(cached) " >&6
7158 else $as_nop
7159 ac_cv_c_bigendian=unknown
7160 # See if we're dealing with a universal compiler.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #ifndef __APPLE_CC__
7164 not a universal capable compiler
7165 #endif
7166 typedef int dummy;
7168 _ACEOF
7169 if ac_fn_c_try_compile "$LINENO"
7170 then :
7172 # Check for potential -arch flags. It is not universal unless
7173 # there are at least two -arch flags with different values.
7174 ac_arch=
7175 ac_prev=
7176 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7177 if test -n "$ac_prev"; then
7178 case $ac_word in
7179 i?86 | x86_64 | ppc | ppc64)
7180 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7181 ac_arch=$ac_word
7182 else
7183 ac_cv_c_bigendian=universal
7184 break
7187 esac
7188 ac_prev=
7189 elif test "x$ac_word" = "x-arch"; then
7190 ac_prev=arch
7192 done
7194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7195 if test $ac_cv_c_bigendian = unknown; then
7196 # See if sys/param.h defines the BYTE_ORDER macro.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <sys/types.h>
7200 #include <sys/param.h>
7203 main (void)
7205 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7206 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7207 && LITTLE_ENDIAN)
7208 bogus endian macros
7209 #endif
7212 return 0;
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"
7216 then :
7217 # It does; now see whether it defined to BIG_ENDIAN or not.
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 #include <sys/types.h>
7221 #include <sys/param.h>
7224 main (void)
7226 #if BYTE_ORDER != BIG_ENDIAN
7227 not big endian
7228 #endif
7231 return 0;
7233 _ACEOF
7234 if ac_fn_c_try_compile "$LINENO"
7235 then :
7236 ac_cv_c_bigendian=yes
7237 else $as_nop
7238 ac_cv_c_bigendian=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7244 if test $ac_cv_c_bigendian = unknown; then
7245 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <limits.h>
7251 main (void)
7253 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7254 bogus endian macros
7255 #endif
7258 return 0;
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"
7262 then :
7263 # It does; now see whether it defined to _BIG_ENDIAN or not.
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 #include <limits.h>
7269 main (void)
7271 #ifndef _BIG_ENDIAN
7272 not big endian
7273 #endif
7276 return 0;
7278 _ACEOF
7279 if ac_fn_c_try_compile "$LINENO"
7280 then :
7281 ac_cv_c_bigendian=yes
7282 else $as_nop
7283 ac_cv_c_bigendian=no
7285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7289 if test $ac_cv_c_bigendian = unknown; then
7290 # Compile a test program.
7291 if test "$cross_compiling" = yes
7292 then :
7293 # Try to guess by grepping values from an object file.
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 unsigned short int ascii_mm[] =
7297 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7298 unsigned short int ascii_ii[] =
7299 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7300 int use_ascii (int i) {
7301 return ascii_mm[i] + ascii_ii[i];
7303 unsigned short int ebcdic_ii[] =
7304 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7305 unsigned short int ebcdic_mm[] =
7306 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7307 int use_ebcdic (int i) {
7308 return ebcdic_mm[i] + ebcdic_ii[i];
7310 extern int foo;
7313 main (void)
7315 return use_ascii (foo) == use_ebcdic (foo);
7317 return 0;
7319 _ACEOF
7320 if ac_fn_c_try_compile "$LINENO"
7321 then :
7322 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7323 ac_cv_c_bigendian=yes
7325 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7326 if test "$ac_cv_c_bigendian" = unknown; then
7327 ac_cv_c_bigendian=no
7328 else
7329 # finding both strings is unlikely to happen, but who knows?
7330 ac_cv_c_bigendian=unknown
7334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7335 else $as_nop
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338 $ac_includes_default
7340 main (void)
7343 /* Are we little or big endian? From Harbison&Steele. */
7344 union
7346 long int l;
7347 char c[sizeof (long int)];
7348 } u;
7349 u.l = 1;
7350 return u.c[sizeof (long int) - 1] == 1;
7353 return 0;
7355 _ACEOF
7356 if ac_fn_c_try_run "$LINENO"
7357 then :
7358 ac_cv_c_bigendian=no
7359 else $as_nop
7360 ac_cv_c_bigendian=yes
7362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7363 conftest.$ac_objext conftest.beam conftest.$ac_ext
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7369 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7370 case $ac_cv_c_bigendian in #(
7371 yes)
7372 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7373 ;; #(
7375 ;; #(
7376 universal)
7378 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7380 ;; #(
7382 as_fn_error $? "unknown endianness
7383 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7384 esac
7387 # Set standard installation paths
7388 # ===========================================================================
7390 # In the Makefiles we need paths with '/' as directory separator, even if
7391 # crosscompiling for Win32.
7392 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
7393 # The variables in the Makefiles are replaced by AC_SUBST()
7395 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
7397 # The macros are expanded for the header.
7398 # The variables in the header are replaced by AC_*DEFINE*()
7399 # sdccconf_h_dir_separator contains a backslash.
7401 if test "x${sdccconf_h_dir_separator}" = "x"; then
7402 sdccconf_h_dir_separator="/"
7405 # Makefiles
7406 ###########
7408 # LIB_TYPE:
7409 # *nix default: "RANLIB"
7412 if test "${LIB_TYPE}" = ""; then
7413 LIB_TYPE="RANLIB"
7416 # include_dir_suffix:
7417 # *nix default: "sdcc/include"
7420 if test "${inclib_dir_suffix}" = ""; then
7421 inclib_dir_suffix="sdcc"
7425 if test "${include_dir_suffix}" = ""; then
7426 include_dir_suffix="${inclib_dir_suffix}/include"
7430 if test "${non_free_inclib_dir_suffix}" = ""; then
7431 non_free_inclib_dir_suffix="sdcc/non-free"
7434 # non_free_include_dir_suffix:
7435 # *nix default: "sdcc/non-free/include"
7438 if test "${non_free_include_dir_suffix}" = ""; then
7439 non_free_include_dir_suffix="${non_free_inclib_dir_suffix}/include"
7442 # lib_dir_suffix:
7443 # *nix default: "sdcc/lib"
7445 if test "${lib_dir_suffix}" = ""; then
7446 lib_dir_suffix="${inclib_dir_suffix}/lib"
7449 # non_free_lib_dir_suffix:
7450 # *nix default: "sdcc/non-free/lib"
7452 if test "${non_free_lib_dir_suffix}" = ""; then
7453 non_free_lib_dir_suffix="${non_free_inclib_dir_suffix}/lib"
7456 # docdir:
7457 # *nix default: "${datadir}/sdcc/doc"
7459 if test "${docdir}" = ""; then
7460 docdir="\${datadir}"/sdcc/doc
7465 # sdccconf.h
7466 ############
7469 printf "%s\n" "#define DIR_SEPARATOR_STRING \"${sdccconf_h_dir_separator}\"" >>confdefs.h
7472 printf "%s\n" "#define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'" >>confdefs.h
7475 # prefix:
7476 # default: "NONE", ${ac_default_prefix}: "/usr/local"
7478 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7479 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7480 ac_expand=$prefix
7481 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
7482 ac_expand=`eval echo $ac_expand`
7483 expanded_prefix=`eval echo $ac_expand`
7486 ac_ndu=$expanded_prefix
7487 case ":$ac_ndu:" in
7488 ::) ac_ndu='.' ;;
7489 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7490 :*:) ;;
7491 esac
7492 case $sdccconf_h_dir_separator in
7494 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7495 s,^[\\/],\\\\\\\\,'` ;;
7497 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7498 esac
7500 printf "%s\n" "#define PREFIX \"${ac_ndu}\"" >>confdefs.h
7504 # exec_prefix:
7505 # default: "${prefix}"
7507 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7509 ac_expand=$exec_prefix
7510 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
7511 ac_expand=`eval echo $ac_expand`
7512 expanded_exec_prefix=`eval echo $ac_expand`
7515 ac_ndu=$expanded_exec_prefix
7516 case ":$ac_ndu:" in
7517 ::) ac_ndu='.' ;;
7518 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7519 :*:) ;;
7520 esac
7521 case $sdccconf_h_dir_separator in
7523 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7524 s,^[\\/],\\\\\\\\,'` ;;
7526 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7527 esac
7529 printf "%s\n" "#define EXEC_PREFIX \"${ac_ndu}\"" >>confdefs.h
7533 # bindir:
7534 # default: "${exec_prefix}/bin"
7536 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7538 ac_expand=$bindir
7539 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
7540 ac_expand=`eval echo $ac_expand`
7541 expanded_bindir=`eval echo $ac_expand`
7544 ac_ndu=$expanded_bindir
7545 case ":$ac_ndu:" in
7546 ::) ac_ndu='.' ;;
7547 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7548 :*:) ;;
7549 esac
7550 case $sdccconf_h_dir_separator in
7552 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7553 s,^[\\/],\\\\\\\\,'` ;;
7555 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7556 esac
7558 printf "%s\n" "#define BINDIR \"${ac_ndu}\"" >>confdefs.h
7562 # datadir:
7563 # default: "${prefix}/share"
7565 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7567 ac_expand=$datadir
7568 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
7569 ac_expand=`eval echo $ac_expand`
7570 expanded_datadir=`eval echo $ac_expand`
7573 ac_ndu=$expanded_datadir
7574 case ":$ac_ndu:" in
7575 ::) ac_ndu='.' ;;
7576 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7577 :*:) ;;
7578 esac
7579 case $sdccconf_h_dir_separator in
7581 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7582 s,^[\\/],\\\\\\\\,'` ;;
7584 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7585 esac
7587 printf "%s\n" "#define DATADIR \"${ac_ndu}\"" >>confdefs.h
7591 # include/lib suffix
7592 norm_inc_dir_suffix=${include_dir_suffix}
7593 case ":$norm_inc_dir_suffix:" in
7594 ::) norm_inc_dir_suffix='.' ;;
7595 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7596 :*:) ;;
7597 esac
7598 case $sdccconf_h_dir_separator in
7600 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7601 s,^[\\/],\\\\\\\\,'` ;;
7603 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7604 esac
7606 printf "%s\n" "#define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_inc_dir_suffix}\"" >>confdefs.h
7608 norm_non_free_inc_dir_suffix=${non_free_include_dir_suffix}
7609 case ":$norm_non_free_inc_dir_suffix:" in
7610 ::) norm_non_free_inc_dir_suffix='.' ;;
7611 :*[\\/]:) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7612 :*:) ;;
7613 esac
7614 case $sdccconf_h_dir_separator in
7616 *\\*) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7617 s,^[\\/],\\\\\\\\,'` ;;
7619 *) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7620 esac
7622 printf "%s\n" "#define NON_FREE_INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_inc_dir_suffix}\"" >>confdefs.h
7625 norm_lib_dir_suffix=${lib_dir_suffix}
7626 case ":$norm_lib_dir_suffix:" in
7627 ::) norm_lib_dir_suffix='.' ;;
7628 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7629 :*:) ;;
7630 esac
7631 case $sdccconf_h_dir_separator in
7633 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7634 s,^[\\/],\\\\\\\\,'` ;;
7636 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7637 esac
7639 printf "%s\n" "#define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_lib_dir_suffix}\"" >>confdefs.h
7641 norm_non_free_lib_dir_suffix=${non_free_lib_dir_suffix}
7642 case ":$norm_non_free_lib_dir_suffix:" in
7643 ::) norm_non_free_lib_dir_suffix='.' ;;
7644 :*[\\/]:) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7645 :*:) ;;
7646 esac
7647 case $sdccconf_h_dir_separator in
7649 *\\*) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7650 s,^[\\/],\\\\\\\\,'` ;;
7652 *) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7653 esac
7655 printf "%s\n" "#define NON_FREE_LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_lib_dir_suffix}\"" >>confdefs.h
7658 # relative paths
7659 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
7660 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7661 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7662 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7663 _lcl_receval="$_lcl_from"
7664 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7665 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7666 _lcl_receval_old=''
7667 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7668 _lcl_receval_old="$_lcl_receval"
7669 eval _lcl_receval="\"$_lcl_receval\""
7670 done
7671 echo "$_lcl_receval")`
7672 _lcl_receval="$_lcl_to"
7673 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7674 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7675 _lcl_receval_old=''
7676 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7677 _lcl_receval_old="$_lcl_receval"
7678 eval _lcl_receval="\"$_lcl_receval\""
7679 done
7680 echo "$_lcl_receval")`
7681 _lcl_notation="$_lcl_from$_lcl_to"
7682 case ":$_lcl_from:" in
7683 ::) _lcl_from='.' ;;
7684 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7685 :*:) ;;
7686 esac
7687 case '/' in
7689 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7690 s,^[\\/],\\\\\\\\,'` ;;
7692 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7693 esac
7694 case ":$_lcl_to:" in
7695 ::) _lcl_to='.' ;;
7696 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7697 :*:) ;;
7698 esac
7699 case '/' in
7701 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7702 s,^[\\/],\\\\\\\\,'` ;;
7704 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7705 esac
7706 _lcl_common_prefix=''
7707 _lcl_second_prefix_match=''
7708 while test "$_lcl_second_prefix_match" != 0; do
7709 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7710 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7711 if test "$_lcl_second_prefix_match" != 0; then
7712 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7713 _lcl_common_prefix="$_lcl_first_prefix"
7714 else
7715 _lcl_second_prefix_match=0
7718 done
7719 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7720 _lcl_first_rel=''
7721 _lcl_tmp='xxx'
7722 while test "$_lcl_tmp" != ''; do
7723 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7724 if test "$_lcl_first_suffix" != ''; then
7725 _lcl_first_suffix="$_lcl_tmp"
7726 _lcl_first_rel="../$_lcl_first_rel"
7728 done
7729 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7730 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7731 case ":$_lcl_result_tmp:" in
7732 ::) _lcl_result_tmp='.' ;;
7733 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7734 :*:) ;;
7735 esac
7736 case "$_lcl_notation" in
7738 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7739 s,^[\\/],\\\\\\\\,'` ;;
7741 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7742 esac
7743 eval $_lcl_result_var='$_lcl_result_tmp'
7744 done
7745 case ":$bin2data_dir:" in
7746 ::) bin2data_dir='.' ;;
7747 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
7748 :*:) ;;
7749 esac
7750 case $sdccconf_h_dir_separator in
7752 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7753 s,^[\\/],\\\\\\\\,'` ;;
7755 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7756 esac
7758 printf "%s\n" "#define BIN2DATA_DIR DIR_SEPARATOR_STRING \"${bin2data_dir}\"" >>confdefs.h
7761 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
7762 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7763 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7764 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7765 _lcl_receval="$_lcl_from"
7766 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7767 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7768 _lcl_receval_old=''
7769 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7770 _lcl_receval_old="$_lcl_receval"
7771 eval _lcl_receval="\"$_lcl_receval\""
7772 done
7773 echo "$_lcl_receval")`
7774 _lcl_receval="$_lcl_to"
7775 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7776 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7777 _lcl_receval_old=''
7778 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7779 _lcl_receval_old="$_lcl_receval"
7780 eval _lcl_receval="\"$_lcl_receval\""
7781 done
7782 echo "$_lcl_receval")`
7783 _lcl_notation="$_lcl_from$_lcl_to"
7784 case ":$_lcl_from:" in
7785 ::) _lcl_from='.' ;;
7786 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7787 :*:) ;;
7788 esac
7789 case '/' in
7791 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7792 s,^[\\/],\\\\\\\\,'` ;;
7794 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7795 esac
7796 case ":$_lcl_to:" in
7797 ::) _lcl_to='.' ;;
7798 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7799 :*:) ;;
7800 esac
7801 case '/' in
7803 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7804 s,^[\\/],\\\\\\\\,'` ;;
7806 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7807 esac
7808 _lcl_common_prefix=''
7809 _lcl_second_prefix_match=''
7810 while test "$_lcl_second_prefix_match" != 0; do
7811 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7812 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7813 if test "$_lcl_second_prefix_match" != 0; then
7814 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7815 _lcl_common_prefix="$_lcl_first_prefix"
7816 else
7817 _lcl_second_prefix_match=0
7820 done
7821 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7822 _lcl_first_rel=''
7823 _lcl_tmp='xxx'
7824 while test "$_lcl_tmp" != ''; do
7825 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7826 if test "$_lcl_first_suffix" != ''; then
7827 _lcl_first_suffix="$_lcl_tmp"
7828 _lcl_first_rel="../$_lcl_first_rel"
7830 done
7831 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7832 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7833 case ":$_lcl_result_tmp:" in
7834 ::) _lcl_result_tmp='.' ;;
7835 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7836 :*:) ;;
7837 esac
7838 case "$_lcl_notation" in
7840 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7841 s,^[\\/],\\\\\\\\,'` ;;
7843 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7844 esac
7845 eval $_lcl_result_var='$_lcl_result_tmp'
7846 done
7847 case ":$prefix2bin_dir:" in
7848 ::) prefix2bin_dir='.' ;;
7849 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
7850 :*:) ;;
7851 esac
7852 case $sdccconf_h_dir_separator in
7854 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7855 s,^[\\/],\\\\\\\\,'` ;;
7857 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7858 esac
7860 printf "%s\n" "#define PREFIX2BIN_DIR DIR_SEPARATOR_STRING \"${prefix2bin_dir}\"" >>confdefs.h
7863 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
7864 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7865 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7866 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7867 _lcl_receval="$_lcl_from"
7868 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7869 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7870 _lcl_receval_old=''
7871 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7872 _lcl_receval_old="$_lcl_receval"
7873 eval _lcl_receval="\"$_lcl_receval\""
7874 done
7875 echo "$_lcl_receval")`
7876 _lcl_receval="$_lcl_to"
7877 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7878 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7879 _lcl_receval_old=''
7880 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7881 _lcl_receval_old="$_lcl_receval"
7882 eval _lcl_receval="\"$_lcl_receval\""
7883 done
7884 echo "$_lcl_receval")`
7885 _lcl_notation="$_lcl_from$_lcl_to"
7886 case ":$_lcl_from:" in
7887 ::) _lcl_from='.' ;;
7888 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7889 :*:) ;;
7890 esac
7891 case '/' in
7893 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7894 s,^[\\/],\\\\\\\\,'` ;;
7896 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7897 esac
7898 case ":$_lcl_to:" in
7899 ::) _lcl_to='.' ;;
7900 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7901 :*:) ;;
7902 esac
7903 case '/' in
7905 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7906 s,^[\\/],\\\\\\\\,'` ;;
7908 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7909 esac
7910 _lcl_common_prefix=''
7911 _lcl_second_prefix_match=''
7912 while test "$_lcl_second_prefix_match" != 0; do
7913 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7914 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7915 if test "$_lcl_second_prefix_match" != 0; then
7916 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7917 _lcl_common_prefix="$_lcl_first_prefix"
7918 else
7919 _lcl_second_prefix_match=0
7922 done
7923 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7924 _lcl_first_rel=''
7925 _lcl_tmp='xxx'
7926 while test "$_lcl_tmp" != ''; do
7927 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7928 if test "$_lcl_first_suffix" != ''; then
7929 _lcl_first_suffix="$_lcl_tmp"
7930 _lcl_first_rel="../$_lcl_first_rel"
7932 done
7933 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7934 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7935 case ":$_lcl_result_tmp:" in
7936 ::) _lcl_result_tmp='.' ;;
7937 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7938 :*:) ;;
7939 esac
7940 case "$_lcl_notation" in
7942 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7943 s,^[\\/],\\\\\\\\,'` ;;
7945 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7946 esac
7947 eval $_lcl_result_var='$_lcl_result_tmp'
7948 done
7949 case ":$prefix2data_dir:" in
7950 ::) prefix2data_dir='.' ;;
7951 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
7952 :*:) ;;
7953 esac
7954 case $sdccconf_h_dir_separator in
7956 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7957 s,^[\\/],\\\\\\\\,'` ;;
7959 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7960 esac
7961 if test "${prefix2data_dir}" = "."; then
7962 # small optimization for Mingw32; otherwise Borut will complain ;-)
7964 printf "%s\n" "#define PREFIX2DATA_DIR \"\"" >>confdefs.h
7966 else
7968 printf "%s\n" "#define PREFIX2DATA_DIR DIR_SEPARATOR_STRING \"${prefix2data_dir}\"" >>confdefs.h
7972 # standard libs
7974 printf "%s\n" "#define STD_LIB \"libsdcc\"" >>confdefs.h
7977 printf "%s\n" "#define STD_INT_LIB \"libint\"" >>confdefs.h
7980 printf "%s\n" "#define STD_LONG_LIB \"liblong\"" >>confdefs.h
7983 printf "%s\n" "#define STD_FP_LIB \"libfloat\"" >>confdefs.h
7986 printf "%s\n" "#define STD_DS390_LIB \"libds390\"" >>confdefs.h
7989 printf "%s\n" "#define STD_DS400_LIB \"libds400\"" >>confdefs.h
7992 # SDCC runtime environment variables
7993 sdcc_dir_name="SDCC_HOME"
7995 printf "%s\n" "#define SDCC_DIR_NAME \"${sdcc_dir_name}\"" >>confdefs.h
7998 sdcc_include_name="SDCC_INCLUDE"
8000 printf "%s\n" "#define SDCC_INCLUDE_NAME \"${sdcc_include_name}\"" >>confdefs.h
8003 sdcc_lib_name="SDCC_LIB"
8005 printf "%s\n" "#define SDCC_LIB_NAME \"${sdcc_lib_name}\"" >>confdefs.h
8008 # add include guard and custom stuff to sdccconf.h
8012 # Port selection helper
8013 # ===========================================================================
8014 # macro AC_DO_ENABLER()
8015 # $1 used to access enable_$1, e.g. enable_doc
8016 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
8017 # $3 help string
8020 # macro AC_DO_DISABLER()
8021 # $1 used to access disable_$1, e.g. ucsim
8022 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
8023 # $3 help string
8026 # macro AC_DO_PORT($1, $2, $3, $4)
8027 # $1 used to access enable_$2_port, e.g. sm83
8028 # $2 port name in ports.all and ports.build, e.g. z80
8029 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8030 # $4 help string
8033 # macro AC_DO_PORT_ENABLER($1, $2, $3, $4)
8034 # $1 used to access enable_$2_port, e.g. sm83
8035 # $2 port name in ports.all and ports.build, e.g. z80
8036 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8037 # $4 help string
8040 # Revision number
8041 # ===============
8043 GIT_REVISION=""
8044 SVN_REVISION="unknown"
8045 if test -d "${srcdir}/.git"; then
8046 GIT_REVISION=$( git log --pretty=format:'%h' -n 1u )
8047 echo "Found Git repo... $GIT_REVISION"
8048 SVN_REVISION=$( git log -1 | tail -n1 | cut -f2 -d @ | cut -f1 -d" " )
8053 # Now handle the port selection
8054 # ===========================================================================
8055 rm -f ports.all ports.build
8057 # Supported targets
8059 # Check whether --enable-mcs51-port was given.
8060 if test ${enable_mcs51_port+y}
8061 then :
8062 enableval=$enable_mcs51_port;
8066 if test "$enable_mcs51_port" = "no"; then
8067 OPT_DISABLE_MCS51=1
8068 else
8069 enable_mcs51_port="yes"
8070 OPT_DISABLE_MCS51=0
8074 printf "%s\n" "#define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51" >>confdefs.h
8078 echo mcs51 >>ports.all
8079 if test $OPT_DISABLE_MCS51 = 0; then
8080 echo mcs51 >>ports.build
8084 # Check whether --enable-z80-port was given.
8085 if test ${enable_z80_port+y}
8086 then :
8087 enableval=$enable_z80_port;
8091 if test "$enable_z80_port" = "no"; then
8092 OPT_DISABLE_Z80=1
8093 else
8094 enable_z80_port="yes"
8095 OPT_DISABLE_Z80=0
8099 printf "%s\n" "#define OPT_DISABLE_Z80 $OPT_DISABLE_Z80" >>confdefs.h
8103 echo z80 >>ports.all
8104 if test $OPT_DISABLE_Z80 = 0; then
8105 echo z80 >>ports.build
8109 # Check whether --enable-z180-port was given.
8110 if test ${enable_z180_port+y}
8111 then :
8112 enableval=$enable_z180_port;
8116 if test "$enable_z180_port" = "no"; then
8117 OPT_DISABLE_Z180=1
8118 else
8119 enable_z180_port="yes"
8120 OPT_DISABLE_Z180=0
8124 printf "%s\n" "#define OPT_DISABLE_Z180 $OPT_DISABLE_Z180" >>confdefs.h
8128 echo z80 >>ports.all
8129 if test $OPT_DISABLE_Z180 = 0; then
8130 echo z80 >>ports.build
8134 # Check whether --enable-r2k-port was given.
8135 if test ${enable_r2k_port+y}
8136 then :
8137 enableval=$enable_r2k_port;
8141 if test "$enable_r2k_port" = "no"; then
8142 OPT_DISABLE_R2K=1
8143 else
8144 enable_r2k_port="yes"
8145 OPT_DISABLE_R2K=0
8149 printf "%s\n" "#define OPT_DISABLE_R2K $OPT_DISABLE_R2K" >>confdefs.h
8153 echo z80 >>ports.all
8154 if test $OPT_DISABLE_R2K = 0; then
8155 echo z80 >>ports.build
8159 # Check whether --enable-r2ka-port was given.
8160 if test ${enable_r2ka_port+y}
8161 then :
8162 enableval=$enable_r2ka_port;
8166 if test "$enable_r2ka_port" = "no"; then
8167 OPT_DISABLE_R2KA=1
8168 else
8169 enable_r2ka_port="yes"
8170 OPT_DISABLE_R2KA=0
8174 printf "%s\n" "#define OPT_DISABLE_R2KA $OPT_DISABLE_R2KA" >>confdefs.h
8178 echo z80 >>ports.all
8179 if test $OPT_DISABLE_R2KA = 0; then
8180 echo z80 >>ports.build
8184 # Check whether --enable-r3ka-port was given.
8185 if test ${enable_r3ka_port+y}
8186 then :
8187 enableval=$enable_r3ka_port;
8191 if test "$enable_r3ka_port" = "no"; then
8192 OPT_DISABLE_R3KA=1
8193 else
8194 enable_r3ka_port="yes"
8195 OPT_DISABLE_R3KA=0
8199 printf "%s\n" "#define OPT_DISABLE_R3KA $OPT_DISABLE_R3KA" >>confdefs.h
8203 echo z80 >>ports.all
8204 if test $OPT_DISABLE_R3KA = 0; then
8205 echo z80 >>ports.build
8209 # Check whether --enable-sm83-port was given.
8210 if test ${enable_sm83_port+y}
8211 then :
8212 enableval=$enable_sm83_port;
8216 if test "$enable_sm83_port" = "no"; then
8217 OPT_DISABLE_SM83=1
8218 else
8219 enable_sm83_port="yes"
8220 OPT_DISABLE_SM83=0
8224 printf "%s\n" "#define OPT_DISABLE_SM83 $OPT_DISABLE_SM83" >>confdefs.h
8228 echo z80 >>ports.all
8229 if test $OPT_DISABLE_SM83 = 0; then
8230 echo z80 >>ports.build
8234 # Check whether --enable-tlcs90-port was given.
8235 if test ${enable_tlcs90_port+y}
8236 then :
8237 enableval=$enable_tlcs90_port;
8241 if test "$enable_tlcs90_port" = "no"; then
8242 OPT_DISABLE_TLCS90=1
8243 else
8244 enable_tlcs90_port="yes"
8245 OPT_DISABLE_TLCS90=0
8249 printf "%s\n" "#define OPT_DISABLE_TLCS90 $OPT_DISABLE_TLCS90" >>confdefs.h
8253 echo z80 >>ports.all
8254 if test $OPT_DISABLE_TLCS90 = 0; then
8255 echo z80 >>ports.build
8259 # Check whether --enable-ez80_z80-port was given.
8260 if test ${enable_ez80_z80_port+y}
8261 then :
8262 enableval=$enable_ez80_z80_port;
8266 if test "$enable_ez80_z80_port" = "no"; then
8267 OPT_DISABLE_EZ80_Z80=1
8268 else
8269 enable_ez80_z80_port="yes"
8270 OPT_DISABLE_EZ80_Z80=0
8274 printf "%s\n" "#define OPT_DISABLE_EZ80_Z80 $OPT_DISABLE_EZ80_Z80" >>confdefs.h
8278 echo z80 >>ports.all
8279 if test $OPT_DISABLE_EZ80_Z80 = 0; then
8280 echo z80 >>ports.build
8284 # Check whether --enable-z80n-port was given.
8285 if test ${enable_z80n_port+y}
8286 then :
8287 enableval=$enable_z80n_port;
8291 if test "$enable_z80n_port" = "no"; then
8292 OPT_DISABLE_Z80N=1
8293 else
8294 enable_z80n_port="yes"
8295 OPT_DISABLE_Z80N=0
8299 printf "%s\n" "#define OPT_DISABLE_Z80N $OPT_DISABLE_Z80N" >>confdefs.h
8303 echo z80 >>ports.all
8304 if test $OPT_DISABLE_Z80N = 0; then
8305 echo z80 >>ports.build
8309 # Check whether --enable-ds390-port was given.
8310 if test ${enable_ds390_port+y}
8311 then :
8312 enableval=$enable_ds390_port;
8316 if test "$enable_ds390_port" = "no"; then
8317 OPT_DISABLE_DS390=1
8318 else
8319 enable_ds390_port="yes"
8320 OPT_DISABLE_DS390=0
8324 printf "%s\n" "#define OPT_DISABLE_DS390 $OPT_DISABLE_DS390" >>confdefs.h
8328 echo ds390 >>ports.all
8329 if test $OPT_DISABLE_DS390 = 0; then
8330 echo ds390 >>ports.build
8334 printf "%s\n" "#define OPT_DISABLE_TININative $OPT_DISABLE_DS390" >>confdefs.h
8337 # Check whether --enable-ds400-port was given.
8338 if test ${enable_ds400_port+y}
8339 then :
8340 enableval=$enable_ds400_port;
8344 if test "$enable_ds400_port" = "no"; then
8345 OPT_DISABLE_DS400=1
8346 else
8347 enable_ds400_port="yes"
8348 OPT_DISABLE_DS400=0
8352 printf "%s\n" "#define OPT_DISABLE_DS400 $OPT_DISABLE_DS400" >>confdefs.h
8356 echo ds390 >>ports.all
8357 if test $OPT_DISABLE_DS400 = 0; then
8358 echo ds390 >>ports.build
8362 # Check whether --enable-pic14-port was given.
8363 if test ${enable_pic14_port+y}
8364 then :
8365 enableval=$enable_pic14_port;
8369 if test "$enable_pic14_port" = "no"; then
8370 OPT_DISABLE_PIC14=1
8371 else
8372 enable_pic14_port="yes"
8373 OPT_DISABLE_PIC14=0
8377 printf "%s\n" "#define OPT_DISABLE_PIC14 $OPT_DISABLE_PIC14" >>confdefs.h
8381 echo pic14 >>ports.all
8382 if test $OPT_DISABLE_PIC14 = 0; then
8383 echo pic14 >>ports.build
8387 # Check whether --enable-pic16-port was given.
8388 if test ${enable_pic16_port+y}
8389 then :
8390 enableval=$enable_pic16_port;
8394 if test "$enable_pic16_port" = "no"; then
8395 OPT_DISABLE_PIC16=1
8396 else
8397 enable_pic16_port="yes"
8398 OPT_DISABLE_PIC16=0
8402 printf "%s\n" "#define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16" >>confdefs.h
8406 echo pic16 >>ports.all
8407 if test $OPT_DISABLE_PIC16 = 0; then
8408 echo pic16 >>ports.build
8412 # Check whether --enable-hc08-port was given.
8413 if test ${enable_hc08_port+y}
8414 then :
8415 enableval=$enable_hc08_port;
8419 if test "$enable_hc08_port" = "no"; then
8420 OPT_DISABLE_HC08=1
8421 else
8422 enable_hc08_port="yes"
8423 OPT_DISABLE_HC08=0
8427 printf "%s\n" "#define OPT_DISABLE_HC08 $OPT_DISABLE_HC08" >>confdefs.h
8431 echo hc08 >>ports.all
8432 if test $OPT_DISABLE_HC08 = 0; then
8433 echo hc08 >>ports.build
8437 # Check whether --enable-s08-port was given.
8438 if test ${enable_s08_port+y}
8439 then :
8440 enableval=$enable_s08_port;
8444 if test "$enable_s08_port" = "no"; then
8445 OPT_DISABLE_S08=1
8446 else
8447 enable_s08_port="yes"
8448 OPT_DISABLE_S08=0
8452 printf "%s\n" "#define OPT_DISABLE_S08 $OPT_DISABLE_S08" >>confdefs.h
8456 echo hc08 >>ports.all
8457 if test $OPT_DISABLE_S08 = 0; then
8458 echo hc08 >>ports.build
8462 # Check whether --enable-stm8-port was given.
8463 if test ${enable_stm8_port+y}
8464 then :
8465 enableval=$enable_stm8_port;
8469 if test "$enable_stm8_port" = "no"; then
8470 OPT_DISABLE_STM8=1
8471 else
8472 enable_stm8_port="yes"
8473 OPT_DISABLE_STM8=0
8477 printf "%s\n" "#define OPT_DISABLE_STM8 $OPT_DISABLE_STM8" >>confdefs.h
8481 echo stm8 >>ports.all
8482 if test $OPT_DISABLE_STM8 = 0; then
8483 echo stm8 >>ports.build
8487 # Check whether --enable-pdk13-port was given.
8488 if test ${enable_pdk13_port+y}
8489 then :
8490 enableval=$enable_pdk13_port;
8494 if test "$enable_pdk13_port" = "no"; then
8495 OPT_DISABLE_PDK13=1
8496 else
8497 enable_pdk13_port="yes"
8498 OPT_DISABLE_PDK13=0
8502 printf "%s\n" "#define OPT_DISABLE_PDK13 $OPT_DISABLE_PDK13" >>confdefs.h
8506 echo pdk >>ports.all
8507 if test $OPT_DISABLE_PDK13 = 0; then
8508 echo pdk >>ports.build
8512 # Check whether --enable-pdk14-port was given.
8513 if test ${enable_pdk14_port+y}
8514 then :
8515 enableval=$enable_pdk14_port;
8519 if test "$enable_pdk14_port" = "no"; then
8520 OPT_DISABLE_PDK14=1
8521 else
8522 enable_pdk14_port="yes"
8523 OPT_DISABLE_PDK14=0
8527 printf "%s\n" "#define OPT_DISABLE_PDK14 $OPT_DISABLE_PDK14" >>confdefs.h
8531 echo pdk >>ports.all
8532 if test $OPT_DISABLE_PDK14 = 0; then
8533 echo pdk >>ports.build
8537 # Check whether --enable-pdk15-port was given.
8538 if test ${enable_pdk15_port+y}
8539 then :
8540 enableval=$enable_pdk15_port;
8544 if test "$enable_pdk15_port" = "no"; then
8545 OPT_DISABLE_PDK15=1
8546 else
8547 enable_pdk15_port="yes"
8548 OPT_DISABLE_PDK15=0
8552 printf "%s\n" "#define OPT_DISABLE_PDK15 $OPT_DISABLE_PDK15" >>confdefs.h
8556 echo pdk >>ports.all
8557 if test $OPT_DISABLE_PDK15 = 0; then
8558 echo pdk >>ports.build
8562 # Check whether --enable-pdk16-port was given.
8563 if test ${enable_pdk16_port+y}
8564 then :
8565 enableval=$enable_pdk16_port;
8569 if test "$enable_pdk16_port" = "yes"; then
8570 OPT_DISABLE_PDK16=0
8571 else
8572 enable_pdk16_port="no"
8573 OPT_DISABLE_PDK16=1
8577 printf "%s\n" "#define OPT_DISABLE_PDK16 $OPT_DISABLE_PDK16" >>confdefs.h
8581 echo pdk >>ports.all
8582 if test $OPT_DISABLE_PDK16 = 0; then
8583 echo pdk >>ports.build
8587 # Check whether --enable-mos6502-port was given.
8588 if test ${enable_mos6502_port+y}
8589 then :
8590 enableval=$enable_mos6502_port;
8594 if test "$enable_mos6502_port" = "no"; then
8595 OPT_DISABLE_MOS6502=1
8596 else
8597 enable_mos6502_port="yes"
8598 OPT_DISABLE_MOS6502=0
8602 printf "%s\n" "#define OPT_DISABLE_MOS6502 $OPT_DISABLE_MOS6502" >>confdefs.h
8606 echo mos6502 >>ports.all
8607 if test $OPT_DISABLE_MOS6502 = 0; then
8608 echo mos6502 >>ports.build
8612 # Check whether --enable-mos65c02-port was given.
8613 if test ${enable_mos65c02_port+y}
8614 then :
8615 enableval=$enable_mos65c02_port;
8619 if test "$enable_mos65c02_port" = "yes"; then
8620 OPT_DISABLE_MOS65C02=0
8621 else
8622 enable_mos65c02_port="no"
8623 OPT_DISABLE_MOS65C02=1
8627 printf "%s\n" "#define OPT_DISABLE_MOS65C02 $OPT_DISABLE_MOS65C02" >>confdefs.h
8631 echo mos6502 >>ports.all
8632 if test $OPT_DISABLE_MOS65C02 = 0; then
8633 echo mos6502 >>ports.build
8637 # Unsupported targets
8638 ####AC_DO_PORT_ENABLER(avr, avr, AVR, [Includes the AVR port (disabled by default)])
8639 OPT_DISABLE_AVR=1
8641 printf "%s\n" "#define OPT_DISABLE_AVR ${OPT_DISABLE_AVR}" >>confdefs.h
8646 # Check whether --enable-ucsim was given.
8647 if test ${enable_ucsim+y}
8648 then :
8649 enableval=$enable_ucsim;
8653 arg1=`echo ucsim | sed s/-/_/`
8655 if test "`eval echo \\$enable_$arg1`" = "no"; then
8656 OPT_DISABLE_UCSIM=1
8657 else
8658 OPT_DISABLE_UCSIM=0
8662 printf "%s\n" "#define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM" >>confdefs.h
8667 # Check whether --enable-device-lib was given.
8668 if test ${enable_device_lib+y}
8669 then :
8670 enableval=$enable_device_lib;
8674 arg1=`echo device-lib | sed s/-/_/`
8676 if test "`eval echo \\$enable_$arg1`" = "no"; then
8677 OPT_DISABLE_DEVICE_LIB=1
8678 else
8679 OPT_DISABLE_DEVICE_LIB=0
8683 printf "%s\n" "#define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB" >>confdefs.h
8688 # Check whether --enable-packihx was given.
8689 if test ${enable_packihx+y}
8690 then :
8691 enableval=$enable_packihx;
8695 arg1=`echo packihx | sed s/-/_/`
8697 if test "`eval echo \\$enable_$arg1`" = "no"; then
8698 OPT_DISABLE_PACKIHX=1
8699 else
8700 OPT_DISABLE_PACKIHX=0
8704 printf "%s\n" "#define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX" >>confdefs.h
8709 # Check whether --enable-sdcpp was given.
8710 if test ${enable_sdcpp+y}
8711 then :
8712 enableval=$enable_sdcpp;
8716 arg1=`echo sdcpp | sed s/-/_/`
8718 if test "`eval echo \\$enable_$arg1`" = "no"; then
8719 OPT_DISABLE_SDCPP=1
8720 else
8721 OPT_DISABLE_SDCPP=0
8725 printf "%s\n" "#define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP" >>confdefs.h
8730 # Check whether --enable-sdcdb was given.
8731 if test ${enable_sdcdb+y}
8732 then :
8733 enableval=$enable_sdcdb;
8737 arg1=`echo sdcdb | sed s/-/_/`
8739 if test "`eval echo \\$enable_$arg1`" = "no"; then
8740 OPT_DISABLE_SDCDB=1
8741 else
8742 OPT_DISABLE_SDCDB=0
8746 printf "%s\n" "#define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB" >>confdefs.h
8751 # Check whether --enable-sdbinutils was given.
8752 if test ${enable_sdbinutils+y}
8753 then :
8754 enableval=$enable_sdbinutils;
8758 arg1=`echo sdbinutils | sed s/-/_/`
8760 if test "`eval echo \\$enable_$arg1`" = "no"; then
8761 OPT_DISABLE_SDBINUTILS=1
8762 else
8763 OPT_DISABLE_SDBINUTILS=0
8767 printf "%s\n" "#define OPT_DISABLE_SDBINUTILS $OPT_DISABLE_SDBINUTILS" >>confdefs.h
8772 # Check whether --enable-non-free was given.
8773 if test ${enable_non_free+y}
8774 then :
8775 enableval=$enable_non_free;
8779 arg1=`echo non-free | sed s/-/_/`
8781 if test "`eval echo \\$enable_$arg1`" = "no"; then
8782 OPT_DISABLE_NON_FREE=1
8783 else
8784 OPT_DISABLE_NON_FREE=0
8788 printf "%s\n" "#define OPT_DISABLE_NON_FREE $OPT_DISABLE_NON_FREE" >>confdefs.h
8794 # Check whether --enable-doc was given.
8795 if test ${enable_doc+y}
8796 then :
8797 enableval=$enable_doc;
8801 if test "$enable_doc" = "yes"; then
8802 OPT_ENABLE_DOC=1
8803 else
8804 OPT_ENABLE_DOC=0
8808 printf "%s\n" "#define OPT_ENABLE_DOC $OPT_ENABLE_DOC" >>confdefs.h
8812 # Extract the first word of "lyx", so it can be a program name with args.
8813 set dummy lyx; ac_word=$2
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815 printf %s "checking for $ac_word... " >&6; }
8816 if test ${ac_cv_prog_LYX+y}
8817 then :
8818 printf %s "(cached) " >&6
8819 else $as_nop
8820 if test -n "$LYX"; then
8821 ac_cv_prog_LYX="$LYX" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 case $as_dir in #(((
8828 '') as_dir=./ ;;
8829 */) ;;
8830 *) as_dir=$as_dir/ ;;
8831 esac
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_LYX="lyx"
8835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8836 break 2
8838 done
8839 done
8840 IFS=$as_save_IFS
8842 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
8845 LYX=$ac_cv_prog_LYX
8846 if test -n "$LYX"; then
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5
8848 printf "%s\n" "$LYX" >&6; }
8849 else
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 printf "%s\n" "no" >&6; }
8855 # Extract the first word of "latex2html", so it can be a program name with args.
8856 set dummy latex2html; ac_word=$2
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 printf %s "checking for $ac_word... " >&6; }
8859 if test ${ac_cv_prog_LATEX2HTML+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else $as_nop
8863 if test -n "$LATEX2HTML"; then
8864 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
8865 else
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in $PATH
8869 IFS=$as_save_IFS
8870 case $as_dir in #(((
8871 '') as_dir=./ ;;
8872 */) ;;
8873 *) as_dir=$as_dir/ ;;
8874 esac
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_LATEX2HTML="latex2html"
8878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8879 break 2
8881 done
8882 done
8883 IFS=$as_save_IFS
8885 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
8888 LATEX2HTML=$ac_cv_prog_LATEX2HTML
8889 if test -n "$LATEX2HTML"; then
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
8891 printf "%s\n" "$LATEX2HTML" >&6; }
8892 else
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 printf "%s\n" "no" >&6; }
8898 # Extract the first word of "latex", so it can be a program name with args.
8899 set dummy latex; ac_word=$2
8900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 printf %s "checking for $ac_word... " >&6; }
8902 if test ${ac_cv_prog_LATEX+y}
8903 then :
8904 printf %s "(cached) " >&6
8905 else $as_nop
8906 if test -n "$LATEX"; then
8907 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8912 IFS=$as_save_IFS
8913 case $as_dir in #(((
8914 '') as_dir=./ ;;
8915 */) ;;
8916 *) as_dir=$as_dir/ ;;
8917 esac
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8920 ac_cv_prog_LATEX="latex"
8921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8922 break 2
8924 done
8925 done
8926 IFS=$as_save_IFS
8928 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
8931 LATEX=$ac_cv_prog_LATEX
8932 if test -n "$LATEX"; then
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
8934 printf "%s\n" "$LATEX" >&6; }
8935 else
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 printf "%s\n" "no" >&6; }
8941 # Extract the first word of "dvipdfm", so it can be a program name with args.
8942 set dummy dvipdfm; ac_word=$2
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 printf %s "checking for $ac_word... " >&6; }
8945 if test ${ac_cv_prog_DVIPDFM+y}
8946 then :
8947 printf %s "(cached) " >&6
8948 else $as_nop
8949 if test -n "$DVIPDFM"; then
8950 ac_cv_prog_DVIPDFM="$DVIPDFM" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8955 IFS=$as_save_IFS
8956 case $as_dir in #(((
8957 '') as_dir=./ ;;
8958 */) ;;
8959 *) as_dir=$as_dir/ ;;
8960 esac
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8963 ac_cv_prog_DVIPDFM="dvipdfm"
8964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8965 break 2
8967 done
8968 done
8969 IFS=$as_save_IFS
8971 test -z "$ac_cv_prog_DVIPDFM" && ac_cv_prog_DVIPDFM=":"
8974 DVIPDFM=$ac_cv_prog_DVIPDFM
8975 if test -n "$DVIPDFM"; then
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPDFM" >&5
8977 printf "%s\n" "$DVIPDFM" >&6; }
8978 else
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 printf "%s\n" "no" >&6; }
8984 # Extract the first word of "pdflatex", so it can be a program name with args.
8985 set dummy pdflatex; ac_word=$2
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 printf %s "checking for $ac_word... " >&6; }
8988 if test ${ac_cv_prog_PDFLATEX+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else $as_nop
8992 if test -n "$PDFLATEX"; then
8993 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
8994 else
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8998 IFS=$as_save_IFS
8999 case $as_dir in #(((
9000 '') as_dir=./ ;;
9001 */) ;;
9002 *) as_dir=$as_dir/ ;;
9003 esac
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9006 ac_cv_prog_PDFLATEX="pdflatex"
9007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9008 break 2
9010 done
9011 done
9012 IFS=$as_save_IFS
9014 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
9017 PDFLATEX=$ac_cv_prog_PDFLATEX
9018 if test -n "$PDFLATEX"; then
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
9020 printf "%s\n" "$PDFLATEX" >&6; }
9021 else
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 printf "%s\n" "no" >&6; }
9027 # Extract the first word of "makeindex", so it can be a program name with args.
9028 set dummy makeindex; ac_word=$2
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 printf %s "checking for $ac_word... " >&6; }
9031 if test ${ac_cv_prog_MAKEINDEX+y}
9032 then :
9033 printf %s "(cached) " >&6
9034 else $as_nop
9035 if test -n "$MAKEINDEX"; then
9036 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 case $as_dir in #(((
9043 '') as_dir=./ ;;
9044 */) ;;
9045 *) as_dir=$as_dir/ ;;
9046 esac
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9049 ac_cv_prog_MAKEINDEX="makeindex"
9050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9051 break 2
9053 done
9054 done
9055 IFS=$as_save_IFS
9057 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
9060 MAKEINDEX=$ac_cv_prog_MAKEINDEX
9061 if test -n "$MAKEINDEX"; then
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
9063 printf "%s\n" "$MAKEINDEX" >&6; }
9064 else
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 printf "%s\n" "no" >&6; }
9071 if test $OPT_ENABLE_DOC = 1; then
9072 if test "$LYX" = ":"; then
9073 as_fn_error $? "Cannot find required program lyx." "$LINENO" 5
9076 if test "$LATEX2HTML" = ":"; then
9077 as_fn_error $? "Cannot find required program latex2html." "$LINENO" 5
9080 if test "$LATEX" = ":"; then
9081 as_fn_error $? "Cannot find required program latex." "$LINENO" 5
9084 if test "$DVIPDFM" = ":"; then
9085 as_fn_error $? "Cannot find required program dvipdfm." "$LINENO" 5
9088 if test "$MAKEINDEX" = ":"; then
9089 as_fn_error $? "Cannot find required program makeindex." "$LINENO" 5
9095 # Check whether --enable-libgc was given.
9096 if test ${enable_libgc+y}
9097 then :
9098 enableval=$enable_libgc;
9102 if test "$enable_libgc" = "yes"; then
9103 OPT_ENABLE_LIBGC=1
9104 else
9105 OPT_ENABLE_LIBGC=0
9109 printf "%s\n" "#define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC" >>confdefs.h
9113 if test $OPT_ENABLE_LIBGC = 1; then
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc" >&5
9115 printf %s "checking for GC_malloc in -lgc... " >&6; }
9116 if test ${ac_cv_lib_gc_GC_malloc+y}
9117 then :
9118 printf %s "(cached) " >&6
9119 else $as_nop
9120 ac_check_lib_save_LIBS=$LIBS
9121 LIBS="-lgc $LIBS"
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 /* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9128 char GC_malloc ();
9130 main (void)
9132 return GC_malloc ();
9134 return 0;
9136 _ACEOF
9137 if ac_fn_c_try_link "$LINENO"
9138 then :
9139 ac_cv_lib_gc_GC_malloc=yes
9140 else $as_nop
9141 ac_cv_lib_gc_GC_malloc=no
9143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9144 conftest$ac_exeext conftest.$ac_ext
9145 LIBS=$ac_check_lib_save_LIBS
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5
9148 printf "%s\n" "$ac_cv_lib_gc_GC_malloc" >&6; }
9149 if test "x$ac_cv_lib_gc_GC_malloc" = xyes
9150 then :
9151 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
9153 LIBS="-lgc $LIBS"
9157 if test $ac_cv_lib_gc_GC_malloc = no; then
9158 as_fn_error $? "Cannot find library libgc with Bohem memory allocator." "$LINENO" 5
9162 #remove duplicates
9163 uniq ports.all ports
9164 mv ports ports.all
9165 uniq ports.build ports
9166 mv ports ports.build
9168 # Generating output files
9169 # ===========================================================================
9170 test $OPT_DISABLE_SDCPP = 0 &&
9172 subdirs="$subdirs support/cpp"
9174 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
9176 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
9178 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
9180 test $OPT_DISABLE_SDBINUTILS = 0 && subdirs="$subdirs support/sdbinutils"
9182 ac_config_files="$ac_config_files doc/Makefile"
9185 ####test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile])
9187 if test $OPT_DISABLE_DS390 = 0 || test $OPT_DISABLE_DS400; then
9188 ac_config_files="$ac_config_files src/ds390/Makefile sdas/as8xcxxx/Makefile"
9190 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile device/lib/ds400/Makefile"
9194 if test $OPT_DISABLE_HC08 = 0 || test $OPT_DISABLE_S08 = 0; then
9195 ac_config_files="$ac_config_files src/hc08/Makefile sdas/as6808/Makefile"
9197 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile device/lib/s08/Makefile"
9201 if test $OPT_DISABLE_MOS6502 = 0 || test $OPT_DISABLE_MOS65C02 = 0; then
9202 ac_config_files="$ac_config_files src/mos6502/Makefile sdas/as6500/Makefile"
9204 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/mos6502/Makefile device/lib/mos6502-stack-auto/Makefile device/lib/mos65c02/Makefile"
9208 if test $OPT_DISABLE_MCS51 = 0; then
9209 ac_config_files="$ac_config_files src/mcs51/Makefile sdas/as8051/Makefile"
9211 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/mcs51/Makefile device/lib/small/Makefile device/lib/medium/Makefile device/lib/large/Makefile device/lib/huge/Makefile"
9215 if test $OPT_DISABLE_PIC14 = 0; then
9216 ac_config_files="$ac_config_files src/pic14/Makefile"
9218 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic14"
9221 if test $OPT_DISABLE_PIC14 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9222 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/non-free/lib/pic14"
9225 if test $OPT_DISABLE_PIC16 = 0; then
9226 ac_config_files="$ac_config_files src/pic16/Makefile"
9228 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
9231 if test $OPT_DISABLE_PIC16 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9232 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/non-free/lib/pic16"
9236 if test $OPT_DISABLE_Z80 = 0 || test $OPT_DISABLE_Z180 = 0 || test $OPT_DISABLE_R2K = 0 || test $OPT_DISABLE_R2KA = 0 || test $OPT_DISABLE_R3KA = 0 || test $OPT_DISABLE_SM83 = 0 || test $OPT_DISABLE_TLCS90 = 0 || test $OPT_DISABLE_EZ80_Z80 = 0 || test $OPT_DISABLE_Z80N = 0; then
9237 ac_config_files="$ac_config_files src/z80/Makefile"
9241 if test $OPT_DISABLE_Z80 = 0 || test $OPT_DISABLE_Z180 = 0 || test $OPT_DISABLE_EZ80_Z80 = 0 || test $OPT_DISABLE_Z80N = 0; then
9242 ac_config_files="$ac_config_files sdas/asz80/Makefile"
9244 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/z180/Makefile device/lib/ez80_z80/Makefile device/lib/z80n/Makefile"
9248 if test $OPT_DISABLE_R2K = 0 || test $OPT_DISABLE_R2KA = 0 || test $OPT_DISABLE_R3KA = 0; then
9249 ac_config_files="$ac_config_files sdas/asrab/Makefile"
9251 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/r2k/Makefile device/lib/r2ka/Makefile device/lib/r3ka/Makefile"
9255 if test $OPT_DISABLE_TLCS90 = 0; then
9256 ac_config_files="$ac_config_files sdas/astlcs90/Makefile"
9258 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/tlcs90/Makefile"
9262 if test $OPT_DISABLE_SM83 = 0; then
9263 ac_config_files="$ac_config_files sdas/asgb/Makefile"
9265 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/sm83/Makefile"
9269 if test $OPT_DISABLE_STM8 = 0; then
9270 ac_config_files="$ac_config_files src/stm8/Makefile sdas/asstm8/Makefile"
9272 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/stm8/Makefile device/lib/stm8-large/Makefile"
9276 if test $OPT_DISABLE_PDK13 = 0 || test $OPT_DISABLE_PDK14 = 0 || test $OPT_DISABLE_PDK15 = 0 || test $OPT_DISABLE_PDK16 = 0; then
9277 ac_config_files="$ac_config_files src/pdk/Makefile"
9281 if test $OPT_DISABLE_PDK13 = 0; then
9282 ac_config_files="$ac_config_files sdas/aspdk13/Makefile"
9284 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk13/Makefile"
9288 if test $OPT_DISABLE_PDK14 = 0; then
9289 ac_config_files="$ac_config_files sdas/aspdk14/Makefile"
9291 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk14/Makefile"
9295 if test $OPT_DISABLE_PDK15 = 0; then
9296 ac_config_files="$ac_config_files sdas/aspdk15/Makefile"
9298 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk15/Makefile device/lib/pdk15-stack-auto/Makefile"
9302 if test $OPT_DISABLE_PDK16 = 0; then
9303 ac_config_files="$ac_config_files sdas/aspdk16/Makefile"
9308 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
9310 test $OPT_DISABLE_DEVICE_LIB = 0 && test $OPT_DISABLE_NON_FREE = 0 && ac_config_files="$ac_config_files device/non-free/lib/Makefile"
9313 ac_config_files="$ac_config_files main.mk:main_in.mk bin/Makefile src/Makefile device/include/Makefile sdas/linksrc/Makefile support/makebin/Makefile support/regression/Makefile support/regression/cases/Makefile support/valdiag/Makefile support/scripts/Makefile support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in Makefile Makefile.common:Makefile.common.in"
9315 ac_config_files="$ac_config_files bin/sdcc"
9317 ac_config_files="$ac_config_files bin/sdcpp"
9319 ac_config_files="$ac_config_files bin/sdar"
9321 ac_config_files="$ac_config_files bin/sdnm"
9323 ac_config_files="$ac_config_files bin/sdranlib"
9325 ac_config_files="$ac_config_files bin/sdobjcopy"
9327 if test $OPT_DISABLE_NON_FREE = 0; then
9328 ac_config_files="$ac_config_files device/non-free/include/Makefile"
9331 cat >confcache <<\_ACEOF
9332 # This file is a shell script that caches the results of configure
9333 # tests run on this system so they can be shared between configure
9334 # scripts and configure runs, see configure's option --config-cache.
9335 # It is not useful on other systems. If it contains results you don't
9336 # want to keep, you may remove or edit it.
9338 # config.status only pays attention to the cache file if you give it
9339 # the --recheck option to rerun configure.
9341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9343 # following values.
9345 _ACEOF
9347 # The following way of writing the cache mishandles newlines in values,
9348 # but we know of no workaround that is simple, portable, and efficient.
9349 # So, we kill variables containing newlines.
9350 # Ultrix sh set writes to stderr and can't be redirected directly,
9351 # and sets the high bit in the cache file unless we assign to the vars.
9353 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9354 eval ac_val=\$$ac_var
9355 case $ac_val in #(
9356 *${as_nl}*)
9357 case $ac_var in #(
9358 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9359 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9360 esac
9361 case $ac_var in #(
9362 _ | IFS | as_nl) ;; #(
9363 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9364 *) { eval $ac_var=; unset $ac_var;} ;;
9365 esac ;;
9366 esac
9367 done
9369 (set) 2>&1 |
9370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9371 *${as_nl}ac_space=\ *)
9372 # `set' does not quote correctly, so add quotes: double-quote
9373 # substitution turns \\\\ into \\, and sed turns \\ into \.
9374 sed -n \
9375 "s/'/'\\\\''/g;
9376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9377 ;; #(
9379 # `set' quotes correctly as required by POSIX, so do not add quotes.
9380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9382 esac |
9383 sort
9385 sed '
9386 /^ac_cv_env_/b end
9387 t clear
9388 :clear
9389 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9390 t end
9391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9392 :end' >>confcache
9393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9394 if test -w "$cache_file"; then
9395 if test "x$cache_file" != "x/dev/null"; then
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9397 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9398 if test ! -f "$cache_file" || test -h "$cache_file"; then
9399 cat confcache >"$cache_file"
9400 else
9401 case $cache_file in #(
9402 */* | ?:*)
9403 mv -f confcache "$cache_file"$$ &&
9404 mv -f "$cache_file"$$ "$cache_file" ;; #(
9406 mv -f confcache "$cache_file" ;;
9407 esac
9410 else
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9412 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9415 rm -f confcache
9417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9418 # Let make expand exec_prefix.
9419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9421 DEFS=-DHAVE_CONFIG_H
9423 ac_libobjs=
9424 ac_ltlibobjs=
9426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9427 # 1. Remove the extension, and $U if already installed.
9428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9429 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9431 # will be set to the directory where LIBOBJS objects are built.
9432 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9433 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9434 done
9435 LIBOBJS=$ac_libobjs
9437 LTLIBOBJS=$ac_ltlibobjs
9442 : "${CONFIG_STATUS=./config.status}"
9443 ac_write_fail=0
9444 ac_clean_files_save=$ac_clean_files
9445 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9447 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9448 as_write_fail=0
9449 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9450 #! $SHELL
9451 # Generated by $as_me.
9452 # Run this file to recreate the current configuration.
9453 # Compiler output produced by configure, useful for debugging
9454 # configure, is in config.log if it exists.
9456 debug=false
9457 ac_cs_recheck=false
9458 ac_cs_silent=false
9460 SHELL=\${CONFIG_SHELL-$SHELL}
9461 export SHELL
9462 _ASEOF
9463 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9464 ## -------------------- ##
9465 ## M4sh Initialization. ##
9466 ## -------------------- ##
9468 # Be more Bourne compatible
9469 DUALCASE=1; export DUALCASE # for MKS sh
9470 as_nop=:
9471 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9472 then :
9473 emulate sh
9474 NULLCMD=:
9475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9476 # is contrary to our usage. Disable this feature.
9477 alias -g '${1+"$@"}'='"$@"'
9478 setopt NO_GLOB_SUBST
9479 else $as_nop
9480 case `(set -o) 2>/dev/null` in #(
9481 *posix*) :
9482 set -o posix ;; #(
9483 *) :
9485 esac
9490 # Reset variables that may have inherited troublesome values from
9491 # the environment.
9493 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9494 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9495 # side effect of setting IFS to empty, thus disabling word splitting.)
9496 # Quoting is to prevent editors from complaining about space-tab.
9497 as_nl='
9499 export as_nl
9500 IFS=" "" $as_nl"
9502 PS1='$ '
9503 PS2='> '
9504 PS4='+ '
9506 # Ensure predictable behavior from utilities with locale-dependent output.
9507 LC_ALL=C
9508 export LC_ALL
9509 LANGUAGE=C
9510 export LANGUAGE
9512 # We cannot yet rely on "unset" to work, but we need these variables
9513 # to be unset--not just set to an empty or harmless value--now, to
9514 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9515 # also avoids known problems related to "unset" and subshell syntax
9516 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9517 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9518 do eval test \${$as_var+y} \
9519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9520 done
9522 # Ensure that fds 0, 1, and 2 are open.
9523 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9524 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9525 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9527 # The user is always right.
9528 if ${PATH_SEPARATOR+false} :; then
9529 PATH_SEPARATOR=:
9530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9531 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9532 PATH_SEPARATOR=';'
9537 # Find who we are. Look in the path if we contain no directory separator.
9538 as_myself=
9539 case $0 in #((
9540 *[\\/]* ) as_myself=$0 ;;
9541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9544 IFS=$as_save_IFS
9545 case $as_dir in #(((
9546 '') as_dir=./ ;;
9547 */) ;;
9548 *) as_dir=$as_dir/ ;;
9549 esac
9550 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9551 done
9552 IFS=$as_save_IFS
9555 esac
9556 # We did not find ourselves, most probably we were run as `sh COMMAND'
9557 # in which case we are not to be found in the path.
9558 if test "x$as_myself" = x; then
9559 as_myself=$0
9561 if test ! -f "$as_myself"; then
9562 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9563 exit 1
9568 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9569 # ----------------------------------------
9570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9572 # script with STATUS, using 1 if that was 0.
9573 as_fn_error ()
9575 as_status=$1; test $as_status -eq 0 && as_status=1
9576 if test "$4"; then
9577 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9580 printf "%s\n" "$as_me: error: $2" >&2
9581 as_fn_exit $as_status
9582 } # as_fn_error
9586 # as_fn_set_status STATUS
9587 # -----------------------
9588 # Set $? to STATUS, without forking.
9589 as_fn_set_status ()
9591 return $1
9592 } # as_fn_set_status
9594 # as_fn_exit STATUS
9595 # -----------------
9596 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9597 as_fn_exit ()
9599 set +e
9600 as_fn_set_status $1
9601 exit $1
9602 } # as_fn_exit
9604 # as_fn_unset VAR
9605 # ---------------
9606 # Portably unset VAR.
9607 as_fn_unset ()
9609 { eval $1=; unset $1;}
9611 as_unset=as_fn_unset
9613 # as_fn_append VAR VALUE
9614 # ----------------------
9615 # Append the text in VALUE to the end of the definition contained in VAR. Take
9616 # advantage of any shell optimizations that allow amortized linear growth over
9617 # repeated appends, instead of the typical quadratic growth present in naive
9618 # implementations.
9619 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9620 then :
9621 eval 'as_fn_append ()
9623 eval $1+=\$2
9625 else $as_nop
9626 as_fn_append ()
9628 eval $1=\$$1\$2
9630 fi # as_fn_append
9632 # as_fn_arith ARG...
9633 # ------------------
9634 # Perform arithmetic evaluation on the ARGs, and store the result in the
9635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9636 # must be portable across $(()) and expr.
9637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9638 then :
9639 eval 'as_fn_arith ()
9641 as_val=$(( $* ))
9643 else $as_nop
9644 as_fn_arith ()
9646 as_val=`expr "$@" || test $? -eq 1`
9648 fi # as_fn_arith
9651 if expr a : '\(a\)' >/dev/null 2>&1 &&
9652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9653 as_expr=expr
9654 else
9655 as_expr=false
9658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9659 as_basename=basename
9660 else
9661 as_basename=false
9664 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9665 as_dirname=dirname
9666 else
9667 as_dirname=false
9670 as_me=`$as_basename -- "$0" ||
9671 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9672 X"$0" : 'X\(//\)$' \| \
9673 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9674 printf "%s\n" X/"$0" |
9675 sed '/^.*\/\([^/][^/]*\)\/*$/{
9676 s//\1/
9679 /^X\/\(\/\/\)$/{
9680 s//\1/
9683 /^X\/\(\/\).*/{
9684 s//\1/
9687 s/.*/./; q'`
9689 # Avoid depending upon Character Ranges.
9690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9693 as_cr_digits='0123456789'
9694 as_cr_alnum=$as_cr_Letters$as_cr_digits
9697 # Determine whether it's possible to make 'echo' print without a newline.
9698 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9699 # for compatibility with existing Makefiles.
9700 ECHO_C= ECHO_N= ECHO_T=
9701 case `echo -n x` in #(((((
9702 -n*)
9703 case `echo 'xy\c'` in
9704 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9705 xy) ECHO_C='\c';;
9706 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9707 ECHO_T=' ';;
9708 esac;;
9710 ECHO_N='-n';;
9711 esac
9713 # For backward compatibility with old third-party macros, we provide
9714 # the shell variables $as_echo and $as_echo_n. New code should use
9715 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9716 as_echo='printf %s\n'
9717 as_echo_n='printf %s'
9719 rm -f conf$$ conf$$.exe conf$$.file
9720 if test -d conf$$.dir; then
9721 rm -f conf$$.dir/conf$$.file
9722 else
9723 rm -f conf$$.dir
9724 mkdir conf$$.dir 2>/dev/null
9726 if (echo >conf$$.file) 2>/dev/null; then
9727 if ln -s conf$$.file conf$$ 2>/dev/null; then
9728 as_ln_s='ln -s'
9729 # ... but there are two gotchas:
9730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9732 # In both cases, we have to default to `cp -pR'.
9733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9734 as_ln_s='cp -pR'
9735 elif ln conf$$.file conf$$ 2>/dev/null; then
9736 as_ln_s=ln
9737 else
9738 as_ln_s='cp -pR'
9740 else
9741 as_ln_s='cp -pR'
9743 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9744 rmdir conf$$.dir 2>/dev/null
9747 # as_fn_mkdir_p
9748 # -------------
9749 # Create "$as_dir" as a directory, including parents if necessary.
9750 as_fn_mkdir_p ()
9753 case $as_dir in #(
9754 -*) as_dir=./$as_dir;;
9755 esac
9756 test -d "$as_dir" || eval $as_mkdir_p || {
9757 as_dirs=
9758 while :; do
9759 case $as_dir in #(
9760 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9761 *) as_qdir=$as_dir;;
9762 esac
9763 as_dirs="'$as_qdir' $as_dirs"
9764 as_dir=`$as_dirname -- "$as_dir" ||
9765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9766 X"$as_dir" : 'X\(//\)[^/]' \| \
9767 X"$as_dir" : 'X\(//\)$' \| \
9768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9769 printf "%s\n" X"$as_dir" |
9770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9771 s//\1/
9774 /^X\(\/\/\)[^/].*/{
9775 s//\1/
9778 /^X\(\/\/\)$/{
9779 s//\1/
9782 /^X\(\/\).*/{
9783 s//\1/
9786 s/.*/./; q'`
9787 test -d "$as_dir" && break
9788 done
9789 test -z "$as_dirs" || eval "mkdir $as_dirs"
9790 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9793 } # as_fn_mkdir_p
9794 if mkdir -p . 2>/dev/null; then
9795 as_mkdir_p='mkdir -p "$as_dir"'
9796 else
9797 test -d ./-p && rmdir ./-p
9798 as_mkdir_p=false
9802 # as_fn_executable_p FILE
9803 # -----------------------
9804 # Test if FILE is an executable regular file.
9805 as_fn_executable_p ()
9807 test -f "$1" && test -x "$1"
9808 } # as_fn_executable_p
9809 as_test_x='test -x'
9810 as_executable_p=as_fn_executable_p
9812 # Sed expression to map a string onto a valid CPP name.
9813 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9815 # Sed expression to map a string onto a valid variable name.
9816 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9819 exec 6>&1
9820 ## ----------------------------------- ##
9821 ## Main body of $CONFIG_STATUS script. ##
9822 ## ----------------------------------- ##
9823 _ASEOF
9824 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9827 # Save the log message, to keep $0 and so on meaningful, and to
9828 # report actual input values of CONFIG_FILES etc. instead of their
9829 # values after options handling.
9830 ac_log="
9831 This file was extended by $as_me, which was
9832 generated by GNU Autoconf 2.71. Invocation command line was
9834 CONFIG_FILES = $CONFIG_FILES
9835 CONFIG_HEADERS = $CONFIG_HEADERS
9836 CONFIG_LINKS = $CONFIG_LINKS
9837 CONFIG_COMMANDS = $CONFIG_COMMANDS
9838 $ $0 $@
9840 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9843 _ACEOF
9845 case $ac_config_files in *"
9846 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9847 esac
9849 case $ac_config_headers in *"
9850 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9851 esac
9854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9855 # Files that config.status was made for.
9856 config_files="$ac_config_files"
9857 config_headers="$ac_config_headers"
9859 _ACEOF
9861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9862 ac_cs_usage="\
9863 \`$as_me' instantiates files and other configuration actions
9864 from templates according to the current configuration. Unless the files
9865 and actions are specified as TAGs, all are instantiated by default.
9867 Usage: $0 [OPTION]... [TAG]...
9869 -h, --help print this help, then exit
9870 -V, --version print version number and configuration settings, then exit
9871 --config print configuration, then exit
9872 -q, --quiet, --silent
9873 do not print progress messages
9874 -d, --debug don't remove temporary files
9875 --recheck update $as_me by reconfiguring in the same conditions
9876 --file=FILE[:TEMPLATE]
9877 instantiate the configuration file FILE
9878 --header=FILE[:TEMPLATE]
9879 instantiate the configuration header FILE
9881 Configuration files:
9882 $config_files
9884 Configuration headers:
9885 $config_headers
9887 Report bugs to the package provider."
9889 _ACEOF
9890 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9891 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9893 ac_cs_config='$ac_cs_config_escaped'
9894 ac_cs_version="\\
9895 config.status
9896 configured by $0, generated by GNU Autoconf 2.71,
9897 with options \\"\$ac_cs_config\\"
9899 Copyright (C) 2021 Free Software Foundation, Inc.
9900 This config.status script is free software; the Free Software Foundation
9901 gives unlimited permission to copy, distribute and modify it."
9903 ac_pwd='$ac_pwd'
9904 srcdir='$srcdir'
9905 INSTALL='$INSTALL'
9906 AWK='$AWK'
9907 test -n "\$AWK" || AWK=awk
9908 _ACEOF
9910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9911 # The default lists apply if the user does not specify any file.
9912 ac_need_defaults=:
9913 while test $# != 0
9915 case $1 in
9916 --*=?*)
9917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9919 ac_shift=:
9921 --*=)
9922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9923 ac_optarg=
9924 ac_shift=:
9927 ac_option=$1
9928 ac_optarg=$2
9929 ac_shift=shift
9931 esac
9933 case $ac_option in
9934 # Handling of the options.
9935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9936 ac_cs_recheck=: ;;
9937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9938 printf "%s\n" "$ac_cs_version"; exit ;;
9939 --config | --confi | --conf | --con | --co | --c )
9940 printf "%s\n" "$ac_cs_config"; exit ;;
9941 --debug | --debu | --deb | --de | --d | -d )
9942 debug=: ;;
9943 --file | --fil | --fi | --f )
9944 $ac_shift
9945 case $ac_optarg in
9946 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9947 '') as_fn_error $? "missing file argument" ;;
9948 esac
9949 as_fn_append CONFIG_FILES " '$ac_optarg'"
9950 ac_need_defaults=false;;
9951 --header | --heade | --head | --hea )
9952 $ac_shift
9953 case $ac_optarg in
9954 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9955 esac
9956 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9957 ac_need_defaults=false;;
9958 --he | --h)
9959 # Conflict between --help and --header
9960 as_fn_error $? "ambiguous option: \`$1'
9961 Try \`$0 --help' for more information.";;
9962 --help | --hel | -h )
9963 printf "%s\n" "$ac_cs_usage"; exit ;;
9964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9965 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9966 ac_cs_silent=: ;;
9968 # This is an error.
9969 -*) as_fn_error $? "unrecognized option: \`$1'
9970 Try \`$0 --help' for more information." ;;
9972 *) as_fn_append ac_config_targets " $1"
9973 ac_need_defaults=false ;;
9975 esac
9976 shift
9977 done
9979 ac_configure_extra_args=
9981 if $ac_cs_silent; then
9982 exec 6>/dev/null
9983 ac_configure_extra_args="$ac_configure_extra_args --silent"
9986 _ACEOF
9987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9988 if \$ac_cs_recheck; then
9989 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9990 shift
9991 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9992 CONFIG_SHELL='$SHELL'
9993 export CONFIG_SHELL
9994 exec "\$@"
9997 _ACEOF
9998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9999 exec 5>>config.log
10001 echo
10002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10003 ## Running $as_me. ##
10004 _ASBOX
10005 printf "%s\n" "$ac_log"
10006 } >&5
10008 _ACEOF
10009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10010 _ACEOF
10012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10014 # Handling of arguments.
10015 for ac_config_target in $ac_config_targets
10017 case $ac_config_target in
10018 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
10019 "sdas/linksrc/asxxxx_config.h") CONFIG_HEADERS="$CONFIG_HEADERS sdas/linksrc/asxxxx_config.h" ;;
10020 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10021 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
10022 "sdas/as8xcxxx/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as8xcxxx/Makefile" ;;
10023 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
10024 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
10025 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
10026 "sdas/as6808/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as6808/Makefile" ;;
10027 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
10028 "device/lib/s08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/s08/Makefile" ;;
10029 "src/mos6502/Makefile") CONFIG_FILES="$CONFIG_FILES src/mos6502/Makefile" ;;
10030 "sdas/as6500/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as6500/Makefile" ;;
10031 "device/lib/mos6502/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos6502/Makefile" ;;
10032 "device/lib/mos6502-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos6502-stack-auto/Makefile" ;;
10033 "device/lib/mos65c02/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos65c02/Makefile" ;;
10034 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
10035 "sdas/as8051/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as8051/Makefile" ;;
10036 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
10037 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
10038 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
10039 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
10040 "device/lib/huge/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/huge/Makefile" ;;
10041 "src/pic14/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic14/Makefile" ;;
10042 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
10043 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
10044 "sdas/asz80/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asz80/Makefile" ;;
10045 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
10046 "device/lib/z180/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z180/Makefile" ;;
10047 "device/lib/ez80_z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ez80_z80/Makefile" ;;
10048 "device/lib/z80n/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80n/Makefile" ;;
10049 "sdas/asrab/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asrab/Makefile" ;;
10050 "device/lib/r2k/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r2k/Makefile" ;;
10051 "device/lib/r2ka/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r2ka/Makefile" ;;
10052 "device/lib/r3ka/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r3ka/Makefile" ;;
10053 "sdas/astlcs90/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/astlcs90/Makefile" ;;
10054 "device/lib/tlcs90/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/tlcs90/Makefile" ;;
10055 "sdas/asgb/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asgb/Makefile" ;;
10056 "device/lib/sm83/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/sm83/Makefile" ;;
10057 "src/stm8/Makefile") CONFIG_FILES="$CONFIG_FILES src/stm8/Makefile" ;;
10058 "sdas/asstm8/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asstm8/Makefile" ;;
10059 "device/lib/stm8/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/stm8/Makefile" ;;
10060 "device/lib/stm8-large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/stm8-large/Makefile" ;;
10061 "src/pdk/Makefile") CONFIG_FILES="$CONFIG_FILES src/pdk/Makefile" ;;
10062 "sdas/aspdk13/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk13/Makefile" ;;
10063 "device/lib/pdk13/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk13/Makefile" ;;
10064 "sdas/aspdk14/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk14/Makefile" ;;
10065 "device/lib/pdk14/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk14/Makefile" ;;
10066 "sdas/aspdk15/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk15/Makefile" ;;
10067 "device/lib/pdk15/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk15/Makefile" ;;
10068 "device/lib/pdk15-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk15-stack-auto/Makefile" ;;
10069 "sdas/aspdk16/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk16/Makefile" ;;
10070 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
10071 "device/non-free/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/non-free/lib/Makefile" ;;
10072 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
10073 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
10074 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10075 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
10076 "sdas/linksrc/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/linksrc/Makefile" ;;
10077 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
10078 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
10079 "support/regression/cases/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/cases/Makefile" ;;
10080 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
10081 "support/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES support/scripts/Makefile" ;;
10082 "support/regression/ports/host/spec.mk") CONFIG_FILES="$CONFIG_FILES support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in" ;;
10083 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10084 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
10085 "bin/sdcc") CONFIG_FILES="$CONFIG_FILES bin/sdcc" ;;
10086 "bin/sdcpp") CONFIG_FILES="$CONFIG_FILES bin/sdcpp" ;;
10087 "bin/sdar") CONFIG_FILES="$CONFIG_FILES bin/sdar" ;;
10088 "bin/sdnm") CONFIG_FILES="$CONFIG_FILES bin/sdnm" ;;
10089 "bin/sdranlib") CONFIG_FILES="$CONFIG_FILES bin/sdranlib" ;;
10090 "bin/sdobjcopy") CONFIG_FILES="$CONFIG_FILES bin/sdobjcopy" ;;
10091 "device/non-free/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/non-free/include/Makefile" ;;
10093 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10094 esac
10095 done
10098 # If the user did not use the arguments to specify the items to instantiate,
10099 # then the envvar interface is used. Set only those that are not.
10100 # We use the long form for the default assignment because of an extremely
10101 # bizarre bug on SunOS 4.1.3.
10102 if $ac_need_defaults; then
10103 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10104 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10107 # Have a temporary directory for convenience. Make it in the build tree
10108 # simply because there is no reason against having it here, and in addition,
10109 # creating and moving files from /tmp can sometimes cause problems.
10110 # Hook for its removal unless debugging.
10111 # Note that there is a small window in which the directory will not be cleaned:
10112 # after its creation but before its name has been assigned to `$tmp'.
10113 $debug ||
10115 tmp= ac_tmp=
10116 trap 'exit_status=$?
10117 : "${ac_tmp:=$tmp}"
10118 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10120 trap 'as_fn_exit 1' 1 2 13 15
10122 # Create a (secure) tmp directory for tmp files.
10125 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10126 test -d "$tmp"
10127 } ||
10129 tmp=./conf$$-$RANDOM
10130 (umask 077 && mkdir "$tmp")
10131 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10132 ac_tmp=$tmp
10134 # Set up the scripts for CONFIG_FILES section.
10135 # No need to generate them if there are no CONFIG_FILES.
10136 # This happens for instance with `./config.status config.h'.
10137 if test -n "$CONFIG_FILES"; then
10140 ac_cr=`echo X | tr X '\015'`
10141 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10142 # But we know of no other shell where ac_cr would be empty at this
10143 # point, so we can use a bashism as a fallback.
10144 if test "x$ac_cr" = x; then
10145 eval ac_cr=\$\'\\r\'
10147 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10148 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10149 ac_cs_awk_cr='\\r'
10150 else
10151 ac_cs_awk_cr=$ac_cr
10154 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10155 _ACEOF
10159 echo "cat >conf$$subs.awk <<_ACEOF" &&
10160 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10161 echo "_ACEOF"
10162 } >conf$$subs.sh ||
10163 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10164 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10165 ac_delim='%!_!# '
10166 for ac_last_try in false false false false false :; do
10167 . ./conf$$subs.sh ||
10168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10170 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10171 if test $ac_delim_n = $ac_delim_num; then
10172 break
10173 elif $ac_last_try; then
10174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10175 else
10176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10178 done
10179 rm -f conf$$subs.sh
10181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10182 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10183 _ACEOF
10184 sed -n '
10186 s/^/S["/; s/!.*/"]=/
10189 s/^[^!]*!//
10190 :repl
10191 t repl
10192 s/'"$ac_delim"'$//
10193 t delim
10196 s/\(.\{148\}\)..*/\1/
10197 t more1
10198 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10201 b repl
10202 :more1
10203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10206 s/.\{148\}//
10207 t nl
10208 :delim
10210 s/\(.\{148\}\)..*/\1/
10211 t more2
10212 s/["\\]/\\&/g; s/^/"/; s/$/"/
10215 :more2
10216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10219 s/.\{148\}//
10220 t delim
10221 ' <conf$$subs.awk | sed '
10222 /^[^""]/{
10224 s/\n//
10226 ' >>$CONFIG_STATUS || ac_write_fail=1
10227 rm -f conf$$subs.awk
10228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10229 _ACAWK
10230 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10231 for (key in S) S_is_set[key] = 1
10232 FS = "\a"
10236 line = $ 0
10237 nfields = split(line, field, "@")
10238 substed = 0
10239 len = length(field[1])
10240 for (i = 2; i < nfields; i++) {
10241 key = field[i]
10242 keylen = length(key)
10243 if (S_is_set[key]) {
10244 value = S[key]
10245 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10246 len += length(value) + length(field[++i])
10247 substed = 1
10248 } else
10249 len += 1 + keylen
10252 print line
10255 _ACAWK
10256 _ACEOF
10257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10258 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10259 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10260 else
10262 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10263 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10264 _ACEOF
10266 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10267 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10268 # trailing colons and then remove the whole line if VPATH becomes empty
10269 # (actually we leave an empty line to preserve line numbers).
10270 if test "x$srcdir" = x.; then
10271 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10273 s///
10274 s/^/:/
10275 s/[ ]*$/:/
10276 s/:\$(srcdir):/:/g
10277 s/:\${srcdir}:/:/g
10278 s/:@srcdir@:/:/g
10279 s/^:*//
10280 s/:*$//
10282 s/\(=[ ]*\).*/\1/
10284 s/\n//
10285 s/^[^=]*=[ ]*$//
10289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10290 fi # test -n "$CONFIG_FILES"
10292 # Set up the scripts for CONFIG_HEADERS section.
10293 # No need to generate them if there are no CONFIG_HEADERS.
10294 # This happens for instance with `./config.status Makefile'.
10295 if test -n "$CONFIG_HEADERS"; then
10296 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10297 BEGIN {
10298 _ACEOF
10300 # Transform confdefs.h into an awk script `defines.awk', embedded as
10301 # here-document in config.status, that substitutes the proper values into
10302 # config.h.in to produce config.h.
10304 # Create a delimiter string that does not exist in confdefs.h, to ease
10305 # handling of long lines.
10306 ac_delim='%!_!# '
10307 for ac_last_try in false false :; do
10308 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10309 if test -z "$ac_tt"; then
10310 break
10311 elif $ac_last_try; then
10312 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10313 else
10314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10316 done
10318 # For the awk script, D is an array of macro values keyed by name,
10319 # likewise P contains macro parameters if any. Preserve backslash
10320 # newline sequences.
10322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10323 sed -n '
10324 s/.\{148\}/&'"$ac_delim"'/g
10325 t rset
10326 :rset
10327 s/^[ ]*#[ ]*define[ ][ ]*/ /
10328 t def
10330 :def
10331 s/\\$//
10332 t bsnl
10333 s/["\\]/\\&/g
10334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10335 D["\1"]=" \3"/p
10336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10338 :bsnl
10339 s/["\\]/\\&/g
10340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10341 D["\1"]=" \3\\\\\\n"\\/p
10342 t cont
10343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10344 t cont
10346 :cont
10348 s/.\{148\}/&'"$ac_delim"'/g
10349 t clear
10350 :clear
10351 s/\\$//
10352 t bsnlc
10353 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10355 :bsnlc
10356 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10357 b cont
10358 ' <confdefs.h | sed '
10359 s/'"$ac_delim"'/"\\\
10360 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10363 for (key in D) D_is_set[key] = 1
10364 FS = "\a"
10366 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10367 line = \$ 0
10368 split(line, arg, " ")
10369 if (arg[1] == "#") {
10370 defundef = arg[2]
10371 mac1 = arg[3]
10372 } else {
10373 defundef = substr(arg[1], 2)
10374 mac1 = arg[2]
10376 split(mac1, mac2, "(") #)
10377 macro = mac2[1]
10378 prefix = substr(line, 1, index(line, defundef) - 1)
10379 if (D_is_set[macro]) {
10380 # Preserve the white space surrounding the "#".
10381 print prefix "define", macro P[macro] D[macro]
10382 next
10383 } else {
10384 # Replace #undef with comments. This is necessary, for example,
10385 # in the case of _POSIX_SOURCE, which is predefined and required
10386 # on some systems where configure will not decide to define it.
10387 if (defundef == "undef") {
10388 print "/*", prefix defundef, macro, "*/"
10389 next
10393 { print }
10394 _ACAWK
10395 _ACEOF
10396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10397 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10398 fi # test -n "$CONFIG_HEADERS"
10401 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10402 shift
10403 for ac_tag
10405 case $ac_tag in
10406 :[FHLC]) ac_mode=$ac_tag; continue;;
10407 esac
10408 case $ac_mode$ac_tag in
10409 :[FHL]*:*);;
10410 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10411 :[FH]-) ac_tag=-:-;;
10412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10413 esac
10414 ac_save_IFS=$IFS
10415 IFS=:
10416 set x $ac_tag
10417 IFS=$ac_save_IFS
10418 shift
10419 ac_file=$1
10420 shift
10422 case $ac_mode in
10423 :L) ac_source=$1;;
10424 :[FH])
10425 ac_file_inputs=
10426 for ac_f
10428 case $ac_f in
10429 -) ac_f="$ac_tmp/stdin";;
10430 *) # Look for the file first in the build tree, then in the source tree
10431 # (if the path is not absolute). The absolute path cannot be DOS-style,
10432 # because $ac_f cannot contain `:'.
10433 test -f "$ac_f" ||
10434 case $ac_f in
10435 [\\/$]*) false;;
10436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10437 esac ||
10438 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10439 esac
10440 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10441 as_fn_append ac_file_inputs " '$ac_f'"
10442 done
10444 # Let's still pretend it is `configure' which instantiates (i.e., don't
10445 # use $as_me), people would be surprised to read:
10446 # /* config.h. Generated by config.status. */
10447 configure_input='Generated from '`
10448 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10449 `' by configure.'
10450 if test x"$ac_file" != x-; then
10451 configure_input="$ac_file. $configure_input"
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10453 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10455 # Neutralize special characters interpreted by sed in replacement strings.
10456 case $configure_input in #(
10457 *\&* | *\|* | *\\* )
10458 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10459 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10460 *) ac_sed_conf_input=$configure_input;;
10461 esac
10463 case $ac_tag in
10464 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10466 esac
10468 esac
10470 ac_dir=`$as_dirname -- "$ac_file" ||
10471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10472 X"$ac_file" : 'X\(//\)[^/]' \| \
10473 X"$ac_file" : 'X\(//\)$' \| \
10474 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10475 printf "%s\n" X"$ac_file" |
10476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10477 s//\1/
10480 /^X\(\/\/\)[^/].*/{
10481 s//\1/
10484 /^X\(\/\/\)$/{
10485 s//\1/
10488 /^X\(\/\).*/{
10489 s//\1/
10492 s/.*/./; q'`
10493 as_dir="$ac_dir"; as_fn_mkdir_p
10494 ac_builddir=.
10496 case "$ac_dir" in
10497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10499 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10500 # A ".." for each directory in $ac_dir_suffix.
10501 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10502 case $ac_top_builddir_sub in
10503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10505 esac ;;
10506 esac
10507 ac_abs_top_builddir=$ac_pwd
10508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10509 # for backward compatibility:
10510 ac_top_builddir=$ac_top_build_prefix
10512 case $srcdir in
10513 .) # We are building in place.
10514 ac_srcdir=.
10515 ac_top_srcdir=$ac_top_builddir_sub
10516 ac_abs_top_srcdir=$ac_pwd ;;
10517 [\\/]* | ?:[\\/]* ) # Absolute name.
10518 ac_srcdir=$srcdir$ac_dir_suffix;
10519 ac_top_srcdir=$srcdir
10520 ac_abs_top_srcdir=$srcdir ;;
10521 *) # Relative name.
10522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10523 ac_top_srcdir=$ac_top_build_prefix$srcdir
10524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10525 esac
10526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10529 case $ac_mode in
10532 # CONFIG_FILE
10535 case $INSTALL in
10536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10537 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10538 esac
10539 _ACEOF
10541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10542 # If the template does not know about datarootdir, expand it.
10543 # FIXME: This hack should be removed a few years after 2.60.
10544 ac_datarootdir_hack=; ac_datarootdir_seen=
10545 ac_sed_dataroot='
10546 /datarootdir/ {
10550 /@datadir@/p
10551 /@docdir@/p
10552 /@infodir@/p
10553 /@localedir@/p
10554 /@mandir@/p'
10555 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10556 *datarootdir*) ac_datarootdir_seen=yes;;
10557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10559 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10560 _ACEOF
10561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10562 ac_datarootdir_hack='
10563 s&@datadir@&$datadir&g
10564 s&@docdir@&$docdir&g
10565 s&@infodir@&$infodir&g
10566 s&@localedir@&$localedir&g
10567 s&@mandir@&$mandir&g
10568 s&\\\${datarootdir}&$datarootdir&g' ;;
10569 esac
10570 _ACEOF
10572 # Neutralize VPATH when `$srcdir' = `.'.
10573 # Shell code in configure.ac might set extrasub.
10574 # FIXME: do we really want to maintain this feature?
10575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10576 ac_sed_extra="$ac_vpsub
10577 $extrasub
10578 _ACEOF
10579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10582 s|@configure_input@|$ac_sed_conf_input|;t t
10583 s&@top_builddir@&$ac_top_builddir_sub&;t t
10584 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10585 s&@srcdir@&$ac_srcdir&;t t
10586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10587 s&@top_srcdir@&$ac_top_srcdir&;t t
10588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10589 s&@builddir@&$ac_builddir&;t t
10590 s&@abs_builddir@&$ac_abs_builddir&;t t
10591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10592 s&@INSTALL@&$ac_INSTALL&;t t
10593 $ac_datarootdir_hack
10595 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10596 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10599 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10601 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10603 which seems to be undefined. Please make sure it is defined" >&5
10604 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10605 which seems to be undefined. Please make sure it is defined" >&2;}
10607 rm -f "$ac_tmp/stdin"
10608 case $ac_file in
10609 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10610 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10611 esac \
10612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10616 # CONFIG_HEADER
10618 if test x"$ac_file" != x-; then
10620 printf "%s\n" "/* $configure_input */" >&1 \
10621 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10622 } >"$ac_tmp/config.h" \
10623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10624 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10626 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10627 else
10628 rm -f "$ac_file"
10629 mv "$ac_tmp/config.h" "$ac_file" \
10630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10632 else
10633 printf "%s\n" "/* $configure_input */" >&1 \
10634 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10635 || as_fn_error $? "could not create -" "$LINENO" 5
10640 esac
10643 case $ac_file$ac_mode in
10644 "bin/sdcc":F) chmod +x bin/sdcc ;;
10645 "bin/sdcpp":F) chmod +x bin/sdcpp ;;
10646 "bin/sdar":F) chmod +x bin/sdar ;;
10647 "bin/sdnm":F) chmod +x bin/sdnm ;;
10648 "bin/sdranlib":F) chmod +x bin/sdranlib ;;
10649 "bin/sdobjcopy":F) chmod +x bin/sdobjcopy ;;
10651 esac
10652 done # for ac_tag
10655 as_fn_exit 0
10656 _ACEOF
10657 ac_clean_files=$ac_clean_files_save
10659 test $ac_write_fail = 0 ||
10660 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10663 # configure is writing to config.log, and then calls config.status.
10664 # config.status does its own redirection, appending to config.log.
10665 # Unfortunately, on DOS this fails, as config.log is still kept open
10666 # by configure, so config.status won't be able to write to it; its
10667 # output is simply discarded. So we exec the FD to /dev/null,
10668 # effectively closing config.log, so it can be properly (re)opened and
10669 # appended to by config.status. When coming back to configure, we
10670 # need to make the FD available again.
10671 if test "$no_create" != yes; then
10672 ac_cs_success=:
10673 ac_config_status_args=
10674 test "$silent" = yes &&
10675 ac_config_status_args="$ac_config_status_args --quiet"
10676 exec 5>/dev/null
10677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10678 exec 5>>config.log
10679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10680 # would make configure fail if this is the last instruction.
10681 $ac_cs_success || as_fn_exit 1
10685 # CONFIG_SUBDIRS section.
10687 if test "$no_recursion" != yes; then
10689 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10690 # so they do not pile up.
10691 ac_sub_configure_args=
10692 ac_prev=
10693 eval "set x $ac_configure_args"
10694 shift
10695 for ac_arg
10697 if test -n "$ac_prev"; then
10698 ac_prev=
10699 continue
10701 case $ac_arg in
10702 -cache-file | --cache-file | --cache-fil | --cache-fi \
10703 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10704 ac_prev=cache_file ;;
10705 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10706 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10707 | --c=*)
10709 --config-cache | -C)
10711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10712 ac_prev=srcdir ;;
10713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10715 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10716 ac_prev=prefix ;;
10717 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10719 --disable-option-checking)
10722 case $ac_arg in
10723 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10724 esac
10725 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10726 esac
10727 done
10729 # Always prepend --prefix to ensure using the same prefix
10730 # in subdir configurations.
10731 ac_arg="--prefix=$prefix"
10732 case $ac_arg in
10733 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10734 esac
10735 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10737 # Pass --silent
10738 if test "$silent" = yes; then
10739 ac_sub_configure_args="--silent $ac_sub_configure_args"
10742 # Always prepend --disable-option-checking to silence warnings, since
10743 # different subdirs can have different --enable and --with options.
10744 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10746 ac_popdir=`pwd`
10747 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10749 # Do not complain, so a configure script can configure whichever
10750 # parts of a large source tree are present.
10751 test -d "$srcdir/$ac_dir" || continue
10753 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10755 printf "%s\n" "$ac_msg" >&6
10756 as_dir="$ac_dir"; as_fn_mkdir_p
10757 ac_builddir=.
10759 case "$ac_dir" in
10760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10762 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10763 # A ".." for each directory in $ac_dir_suffix.
10764 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10765 case $ac_top_builddir_sub in
10766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10768 esac ;;
10769 esac
10770 ac_abs_top_builddir=$ac_pwd
10771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10772 # for backward compatibility:
10773 ac_top_builddir=$ac_top_build_prefix
10775 case $srcdir in
10776 .) # We are building in place.
10777 ac_srcdir=.
10778 ac_top_srcdir=$ac_top_builddir_sub
10779 ac_abs_top_srcdir=$ac_pwd ;;
10780 [\\/]* | ?:[\\/]* ) # Absolute name.
10781 ac_srcdir=$srcdir$ac_dir_suffix;
10782 ac_top_srcdir=$srcdir
10783 ac_abs_top_srcdir=$srcdir ;;
10784 *) # Relative name.
10785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10786 ac_top_srcdir=$ac_top_build_prefix$srcdir
10787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10788 esac
10789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10792 cd "$ac_dir"
10794 # Check for configure.gnu first; this name is used for a wrapper for
10795 # Metaconfig's "Configure" on case-insensitive file systems.
10796 if test -f "$ac_srcdir/configure.gnu"; then
10797 ac_sub_configure=$ac_srcdir/configure.gnu
10798 elif test -f "$ac_srcdir/configure"; then
10799 ac_sub_configure=$ac_srcdir/configure
10800 else
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10802 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10803 ac_sub_configure=
10806 # The recursion is here.
10807 if test -n "$ac_sub_configure"; then
10808 # Make the cache file name correct relative to the subdirectory.
10809 case $cache_file in
10810 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10811 *) # Relative name.
10812 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10813 esac
10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10816 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10817 # The eval makes quoting arguments work.
10818 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10819 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10820 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10823 cd "$ac_popdir"
10824 done
10826 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10828 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10832 # I found no better place
10833 mkdir -p bin
10835 # Prepare result message
10836 # ======================
10838 # In the C-header we need \\ as dir-separator, but in the message only \
10839 dirch=${sdccconf_h_dir_separator}
10840 test ${dirch} = '\\' && dirch='\'
10842 # calc friendly strings
10844 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
10845 case ":$binPath:" in
10846 ::) binPath='.' ;;
10847 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
10848 :*:) ;;
10849 esac
10850 case $dirch in
10852 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10853 s,^[\\/],\\\\\\\\,'` ;;
10855 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10856 esac
10857 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
10860 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
10861 case ":$incPath1:" in
10862 ::) incPath1='.' ;;
10863 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
10864 :*:) ;;
10865 esac
10866 case $dirch in
10868 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10869 s,^[\\/],\\\\\\\\,'` ;;
10871 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10872 esac
10873 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
10876 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
10877 case ":$incPath2:" in
10878 ::) incPath2='.' ;;
10879 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
10880 :*:) ;;
10881 esac
10882 case $dirch in
10884 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10885 s,^[\\/],\\\\\\\\,'` ;;
10887 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10888 esac
10889 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
10892 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
10893 case ":$incPath3:" in
10894 ::) incPath3='.' ;;
10895 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
10896 :*:) ;;
10897 esac
10898 case $dirch in
10900 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10901 s,^[\\/],\\\\\\\\,'` ;;
10903 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10904 esac
10905 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
10908 nonFreeIncPath1=`echo "/${prefix2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
10909 case ":$nonFreeIncPath1:" in
10910 ::) nonFreeIncPath1='.' ;;
10911 :*[\\/]:) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,[\\/]*$,,'` ;;
10912 :*:) ;;
10913 esac
10914 case $dirch in
10916 *\\*) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10917 s,^[\\/],\\\\\\\\,'` ;;
10919 *) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10920 esac
10921 nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\\\\\\\\,\\\\,g'`
10924 nonFreeIncPath2=`echo "/${bin2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
10925 case ":$nonFreeIncPath2:" in
10926 ::) nonFreeIncPath2='.' ;;
10927 :*[\\/]:) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,[\\/]*$,,'` ;;
10928 :*:) ;;
10929 esac
10930 case $dirch in
10932 *\\*) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10933 s,^[\\/],\\\\\\\\,'` ;;
10935 *) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10936 esac
10937 nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\\\\\\\\,\\\\,g'`
10940 nonFreeIncPath3=`echo "${expanded_datadir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
10941 case ":$nonFreeIncPath3:" in
10942 ::) nonFreeIncPath3='.' ;;
10943 :*[\\/]:) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,[\\/]*$,,'` ;;
10944 :*:) ;;
10945 esac
10946 case $dirch in
10948 *\\*) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10949 s,^[\\/],\\\\\\\\,'` ;;
10951 *) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10952 esac
10953 nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\\\\\\\\,\\\\,g'`
10957 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
10958 case ":$libPath1:" in
10959 ::) libPath1='.' ;;
10960 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
10961 :*:) ;;
10962 esac
10963 case $dirch in
10965 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10966 s,^[\\/],\\\\\\\\,'` ;;
10968 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10969 esac
10970 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
10973 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
10974 case ":$libPath2:" in
10975 ::) libPath2='.' ;;
10976 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
10977 :*:) ;;
10978 esac
10979 case $dirch in
10981 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10982 s,^[\\/],\\\\\\\\,'` ;;
10984 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
10985 esac
10986 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
10989 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
10990 case ":$libPath3:" in
10991 ::) libPath3='.' ;;
10992 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
10993 :*:) ;;
10994 esac
10995 case $dirch in
10997 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
10998 s,^[\\/],\\\\\\\\,'` ;;
11000 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11001 esac
11002 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
11005 nonFreeLibPath1=`echo "/${prefix2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11006 case ":$nonFreeLibPath1:" in
11007 ::) nonFreeLibPath1='.' ;;
11008 :*[\\/]:) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,[\\/]*$,,'` ;;
11009 :*:) ;;
11010 esac
11011 case $dirch in
11013 *\\*) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11014 s,^[\\/],\\\\\\\\,'` ;;
11016 *) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11017 esac
11018 nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\\\\\\\\,\\\\,g'`
11021 nonFreeLibPath2=`echo "/${bin2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11022 case ":$nonFreeLibPath2:" in
11023 ::) nonFreeLibPath2='.' ;;
11024 :*[\\/]:) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,[\\/]*$,,'` ;;
11025 :*:) ;;
11026 esac
11027 case $dirch in
11029 *\\*) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11030 s,^[\\/],\\\\\\\\,'` ;;
11032 *) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11033 esac
11034 nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\\\\\\\\,\\\\,g'`
11037 nonFreeLibPath3=`echo "${expanded_datadir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11038 case ":$nonFreeLibPath3:" in
11039 ::) nonFreeLibPath3='.' ;;
11040 :*[\\/]:) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,[\\/]*$,,'` ;;
11041 :*:) ;;
11042 esac
11043 case $dirch in
11045 *\\*) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11046 s,^[\\/],\\\\\\\\,'` ;;
11048 *) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11049 esac
11050 nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\\\\\\\\,\\\\,g'`
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11054 sdcc ${VERSION} is now configured for
11056 Build: ${build}
11057 Host: ${host}
11058 Source directory: ${srcdir}
11059 Yacc: ${YACC}
11060 C compiler: ${CC}
11061 CFLAGS: ${CFLAGS}
11062 C++ compiler: ${CXX}
11063 CXXFLAGS: ${CXXFLAGS}
11064 CPPFLAGS: ${CPPFLAGS}
11065 LDFLAGS: ${LDFLAGS}
11066 MAKEDEP: ${MAKEDEP}
11067 MAKEDEP_CXX: ${MAKEDEP_CXX}
11069 ENABLED Ports:
11070 ds390 ${enable_ds390_port}
11071 ds400 ${enable_ds400_port}
11072 hc08 ${enable_hc08_port}
11073 s08 ${enable_s08_port}
11074 mcs51 ${enable_mcs51_port}
11075 pic14 ${enable_pic14_port}
11076 pic16 ${enable_pic16_port}
11077 z80 ${enable_z80_port}
11078 z180 ${enable_z180_port}
11079 r2k ${enable_r2k_port}
11080 r2ka ${enable_r2ka_port}
11081 r3ka ${enable_r3ka_port}
11082 sm83 ${enable_sm83_port}
11083 tlcs90 ${enable_tlcs90_port}
11084 ez80_z80 ${enable_ez80_z80_port}
11085 z80n ${enable_z80n_port}
11086 stm8 ${enable_stm8_port}
11087 pdk13 ${enable_pdk13_port}
11088 pdk14 ${enable_pdk14_port}
11089 pdk15 ${enable_pdk15_port}
11090 pdk16 ${enable_pdk16_port}
11091 mos6502 ${enable_mos6502_port}
11092 mos65c02 ${enable_mos65c02_port}
11094 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11095 Disable packihx: ${OPT_DISABLE_PACKIHX}
11096 Disable ucsim: ${OPT_DISABLE_UCSIM}
11097 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11098 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11099 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11100 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11101 Enable documentation: ${OPT_ENABLE_DOC}
11102 Enable libgc: ${OPT_ENABLE_LIBGC}
11104 Install paths:
11105 binary files: ${exec_prefix}
11106 include/library files: ${datadir}/${inclib_dir_suffix}
11107 include files: ${datadir}/${include_dir_suffix}
11108 library files: ${datadir}/${lib_dir_suffix}
11109 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11110 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11111 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11112 documentation: ${docdir}
11114 prefix: ${prefix}
11115 datadir: ${datadir}
11116 datarootdir: ${datarootdir}
11118 Search paths (incomplete, see manual for all search paths):
11119 binary files: \$SDCC_HOME${binPath}
11120 include files: ${incPath1}
11121 path(argv[0])${incPath2}
11122 ${incPath3}
11123 ${nonFreeIncPath1}
11124 path(argv[0])${nonFreeIncPath2}
11125 ${nonFreeIncPath3}
11126 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11127 path(argv[0])${libPath2}${dirch}<model>
11128 ${libPath3}${dirch}<model>
11129 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11130 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11131 ${nonFreeLibPath3}${dirch}<model>
11132 " >&5
11133 printf "%s\n" "
11134 sdcc ${VERSION} is now configured for
11136 Build: ${build}
11137 Host: ${host}
11138 Source directory: ${srcdir}
11139 Yacc: ${YACC}
11140 C compiler: ${CC}
11141 CFLAGS: ${CFLAGS}
11142 C++ compiler: ${CXX}
11143 CXXFLAGS: ${CXXFLAGS}
11144 CPPFLAGS: ${CPPFLAGS}
11145 LDFLAGS: ${LDFLAGS}
11146 MAKEDEP: ${MAKEDEP}
11147 MAKEDEP_CXX: ${MAKEDEP_CXX}
11149 ENABLED Ports:
11150 ds390 ${enable_ds390_port}
11151 ds400 ${enable_ds400_port}
11152 hc08 ${enable_hc08_port}
11153 s08 ${enable_s08_port}
11154 mcs51 ${enable_mcs51_port}
11155 pic14 ${enable_pic14_port}
11156 pic16 ${enable_pic16_port}
11157 z80 ${enable_z80_port}
11158 z180 ${enable_z180_port}
11159 r2k ${enable_r2k_port}
11160 r2ka ${enable_r2ka_port}
11161 r3ka ${enable_r3ka_port}
11162 sm83 ${enable_sm83_port}
11163 tlcs90 ${enable_tlcs90_port}
11164 ez80_z80 ${enable_ez80_z80_port}
11165 z80n ${enable_z80n_port}
11166 stm8 ${enable_stm8_port}
11167 pdk13 ${enable_pdk13_port}
11168 pdk14 ${enable_pdk14_port}
11169 pdk15 ${enable_pdk15_port}
11170 pdk16 ${enable_pdk16_port}
11171 mos6502 ${enable_mos6502_port}
11172 mos65c02 ${enable_mos65c02_port}
11174 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11175 Disable packihx: ${OPT_DISABLE_PACKIHX}
11176 Disable ucsim: ${OPT_DISABLE_UCSIM}
11177 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11178 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11179 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11180 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11181 Enable documentation: ${OPT_ENABLE_DOC}
11182 Enable libgc: ${OPT_ENABLE_LIBGC}
11184 Install paths:
11185 binary files: ${exec_prefix}
11186 include/library files: ${datadir}/${inclib_dir_suffix}
11187 include files: ${datadir}/${include_dir_suffix}
11188 library files: ${datadir}/${lib_dir_suffix}
11189 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11190 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11191 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11192 documentation: ${docdir}
11194 prefix: ${prefix}
11195 datadir: ${datadir}
11196 datarootdir: ${datarootdir}
11198 Search paths (incomplete, see manual for all search paths):
11199 binary files: \$SDCC_HOME${binPath}
11200 include files: ${incPath1}
11201 path(argv[0])${incPath2}
11202 ${incPath3}
11203 ${nonFreeIncPath1}
11204 path(argv[0])${nonFreeIncPath2}
11205 ${nonFreeIncPath3}
11206 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11207 path(argv[0])${libPath2}${dirch}<model>
11208 ${libPath3}${dirch}<model>
11209 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11210 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11211 ${nonFreeLibPath3}${dirch}<model>
11212 " >&6; }
11213 # End of configure/configure.in