Update svn merge history.
[sdcc.git] / sdcc / configure
blobcfcdddbae9d5fd151d4dadbf0deb3579dd26e3d2
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_F8
671 OPT_DISABLE_MOS65C02
672 OPT_DISABLE_MOS6502
673 OPT_DISABLE_PDK16
674 OPT_DISABLE_PDK15
675 OPT_DISABLE_PDK14
676 OPT_DISABLE_PDK13
677 OPT_DISABLE_STM8
678 OPT_DISABLE_S08
679 OPT_DISABLE_HC08
680 OPT_DISABLE_PIC16
681 OPT_DISABLE_PIC14
682 OPT_DISABLE_DS400
683 OPT_DISABLE_DS390
684 OPT_DISABLE_R800
685 OPT_DISABLE_Z80N
686 OPT_DISABLE_EZ80_Z80
687 OPT_DISABLE_TLCS90
688 OPT_DISABLE_SM83
689 OPT_DISABLE_R3KA
690 OPT_DISABLE_R2KA
691 OPT_DISABLE_R2K
692 OPT_DISABLE_Z180
693 OPT_DISABLE_Z80
694 OPT_DISABLE_MCS51
695 SVN_REVISION
696 GIT_REVISION
697 non_free_lib_dir_suffix
698 lib_dir_suffix
699 non_free_include_dir_suffix
700 non_free_inclib_dir_suffix
701 include_dir_suffix
702 inclib_dir_suffix
703 LIB_TYPE
704 sdccconf_h_dir_separator
705 WALL_FLAG
706 MAKEDEP_CXX
707 MAKEDEP
708 HAVE_CXX11
709 CCACHE
710 pkgpyexecdir
711 pyexecdir
712 pkgpythondir
713 pythondir
714 PYTHON_EXEC_PREFIX
715 PYTHON_PREFIX
716 PYTHON_PLATFORM
717 PYTHON_VERSION
718 PYTHON
719 YACC
725 STRIP
726 AUTOCONF
727 RANLIB
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 ac_ct_CXX
732 CXXFLAGS
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
742 VERSIONP
743 VERSIONLO
744 VERSIONHI
745 VERSION
746 PACKAGE
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 runstatedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 with_python_sys_prefix
799 with_python_prefix
800 with_python_exec_prefix
801 with_ccache
802 enable_mcs51_port
803 enable_z80_port
804 enable_z180_port
805 enable_r2k_port
806 enable_r2ka_port
807 enable_r3ka_port
808 enable_sm83_port
809 enable_tlcs90_port
810 enable_ez80_z80_port
811 enable_z80n_port
812 enable_r800_port
813 enable_ds390_port
814 enable_ds400_port
815 enable_pic14_port
816 enable_pic16_port
817 enable_hc08_port
818 enable_s08_port
819 enable_stm8_port
820 enable_pdk13_port
821 enable_pdk14_port
822 enable_pdk15_port
823 enable_pdk16_port
824 enable_mos6502_port
825 enable_mos65c02_port
826 enable_f8_port
827 enable_ucsim
828 enable_device_lib
829 enable_packihx
830 enable_sdcpp
831 enable_sdcdb
832 enable_sdbinutils
833 enable_non_free
834 enable_doc
835 enable_libgc
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
847 CXXFLAGS
849 PYTHON
850 sdccconf_h_dir_separator
851 LIB_TYPE
852 inclib_dir_suffix
853 include_dir_suffix
854 non_free_inclib_dir_suffix
855 non_free_include_dir_suffix
856 lib_dir_suffix
857 non_free_lib_dir_suffix
858 docdir'
859 ac_subdirs_all='support/cpp
860 support/packihx
861 sim/ucsim
862 debugger/mcs51
863 support/sdbinutils
864 device/lib/pic14
865 device/non-free/lib/pic14
866 device/lib/pic16
867 device/non-free/lib/pic16'
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 runstatedir='${localstatedir}/run'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
918 ac_prev=
919 ac_dashdash=
920 for ac_option
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
925 ac_prev=
926 continue
929 case $ac_option in
930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 *=) ac_optarg= ;;
932 *) ac_optarg=yes ;;
933 esac
935 case $ac_dashdash$ac_option in
937 ac_dashdash=yes ;;
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 ac_prev=bindir ;;
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 bindir=$ac_optarg ;;
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
956 --config-cache | -C)
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
960 ac_prev=datadir ;;
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: \`$ac_useropt'"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
988 ac_prev=docdir ;;
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 docdir=$ac_optarg ;;
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 ac_prev=dvidir ;;
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 dvidir=$ac_optarg ;;
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=\$ac_optarg ;;
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
1020 exec_prefix=$ac_optarg ;;
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1024 with_gas=yes ;;
1026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
1033 -host | --host | --hos | --ho)
1034 ac_prev=host_alias ;;
1035 -host=* | --host=* | --hos=* | --ho=*)
1036 host_alias=$ac_optarg ;;
1038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 ac_prev=htmldir ;;
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 | --ht=*)
1042 htmldir=$ac_optarg ;;
1044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
1049 includedir=$ac_optarg ;;
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 ac_prev=infodir ;;
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054 infodir=$ac_optarg ;;
1056 -libdir | --libdir | --libdi | --libd)
1057 ac_prev=libdir ;;
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059 libdir=$ac_optarg ;;
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
1066 libexecdir=$ac_optarg ;;
1068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1073 -localstatedir | --localstatedir | --localstatedi | --localstated \
1074 | --localstate | --localstat | --localsta | --localst | --locals)
1075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078 localstatedir=$ac_optarg ;;
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 ac_prev=mandir ;;
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083 mandir=$ac_optarg ;;
1085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1087 with_fp=no ;;
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090 | --no-cr | --no-c | -n)
1091 no_create=yes ;;
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 no_recursion=yes ;;
1097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104 oldincludedir=$ac_optarg ;;
1106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 ac_prev=prefix ;;
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109 prefix=$ac_optarg ;;
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116 program_prefix=$ac_optarg ;;
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123 program_suffix=$ac_optarg ;;
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
1140 program_transform_name=$ac_optarg ;;
1142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 ac_prev=pdfdir ;;
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1147 -psdir | --psdir | --psdi | --psd | --ps)
1148 ac_prev=psdir ;;
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 psdir=$ac_optarg ;;
1152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1154 silent=yes ;;
1156 -runstatedir | --runstatedir | --runstatedi | --runstated \
1157 | --runstate | --runstat | --runsta | --runst | --runs \
1158 | --run | --ru | --r)
1159 ac_prev=runstatedir ;;
1160 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1161 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1162 | --run=* | --ru=* | --r=*)
1163 runstatedir=$ac_optarg ;;
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1210 -with-* | --with-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: \`$ac_useropt'"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=\$ac_optarg ;;
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: \`$ac_useropt'"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 esac
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 esac
1283 done
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 esac
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir runstatedir
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1306 case $ac_val in
1307 */ )
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1310 esac
1311 # Be sure to have absolute directory names.
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 printf "%s\n" X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1367 /^X\(\/\/\)$/{
1368 s//\1/
1371 /^X\(\/\).*/{
1372 s//\1/
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1380 else
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1469 _ACEOF
1471 cat <<\_ACEOF
1473 Program names:
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478 System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1484 if test -n "$ac_init_help"; then
1486 cat <<\_ACEOF
1488 Optional Features:
1489 --disable-option-checking ignore unrecognized --enable/--with options
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --disable-mcs51-port Excludes the Intel mcs51 port
1493 --disable-z80-port Excludes the Z80 port
1494 --disable-z180-port Excludes the Z180 port
1495 --disable-r2k-port Excludes the Rabbit 2000 port
1496 --disable-r2ka-port Excludes the Rabbit 2000A port
1497 --disable-r3ka-port Excludes the Rabbit 3000A port
1498 --disable-sm83-port Excludes the SM83 port
1499 --disable-tlcs90-port Excludes the TLCS-90 port
1500 --disable-ez80_z80-port Excludes the EZ80-Z80 port
1501 --disable-z80n-port Excludes the Z80N port
1502 --disable-r800-port Excludes the R800 port
1503 --disable-ds390-port Excludes the DS390 port
1504 --disable-ds400-port Excludes the DS400 port
1505 --disable-pic14-port Excludes the PIC14 port
1506 --disable-pic16-port Excludes the PIC16 port
1507 --disable-hc08-port Excludes the HC08 port
1508 --disable-s08-port Excludes the S08 port
1509 --disable-stm8-port Excludes the STM8 port
1510 --disable-pdk13-port Excludes the PDK13 port
1511 --disable-pdk14-port Excludes the PDK14 port
1512 --disable-pdk15-port Excludes the PDK15 port
1513 --enable-pdk16-port Includes the PDK16 port
1514 --disable-mos6502-port Excludes the MOS6502 port
1515 --disable-mos65c02-port Excludes the MOS65C02 port
1516 --disable-f8-port Excludes the F8 port
1517 --disable-ucsim Disables configuring and building of ucsim
1518 --disable-device-lib Disables building device libraries
1519 --disable-packihx Disables building packihx
1520 --disable-sdcpp Disables building sdcpp
1521 --disable-sdcdb Disables building sdcdb
1522 --disable-sdbinutils Disables configuring and building of sdbinutils
1523 --disable-non-free Disables non-free runtime library parts
1524 --enable-doc Enables building the documentation
1525 --enable-libgc Use the Bohem memory allocator. Lower runtime
1526 footprint.
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-python-sys-prefix
1532 use Python's sys.prefix and sys.exec_prefix values
1533 --with-python_prefix override the default PYTHON_PREFIX
1534 --with-python_exec_prefix
1535 override the default PYTHON_EXEC_PREFIX
1536 --without-ccache do not use ccache even if available
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CPP C preprocessor
1547 CXX C++ compiler command
1548 CXXFLAGS C++ compiler flags
1549 PYTHON the Python interpreter
1550 sdccconf_h_dir_separator
1551 needed in sdccconf.h: either "/" (default) or "\\"
1552 LIB_TYPE library type: LIB, SDCCLIB, AR or RANLIB (default)
1553 inclib_dir_suffix
1554 appended to datadir to define SDCC's include/lib directory
1555 include_dir_suffix
1556 appended to datadir to define SDCC's include directory
1557 non_free_inclib_dir_suffix
1558 appended to datadir to define SDCC's non-free include/lib
1559 directory
1560 non_free_include_dir_suffix
1561 appended to datadir to define SDCC's non-free include directory
1562 lib_dir_suffix
1563 appended to datadir to define SDCC's library root directory
1564 non_free_lib_dir_suffix
1565 appended to datadir to define SDCC's non-free library root
1566 directory
1567 docdir documentation installation directory
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to the package provider.
1573 _ACEOF
1574 ac_status=$?
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 continue
1583 ac_builddir=.
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1601 case $srcdir in
1602 .) # We are building in place.
1603 ac_srcdir=.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1610 *) # Relative name.
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for configure.gnu first; this name is used for a wrapper for
1619 # Metaconfig's "Configure" on case-insensitive file systems.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
1627 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635 cat <<\_ACEOF
1636 configure
1637 generated by GNU Autoconf 2.71
1639 Copyright (C) 2021 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643 exit
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext conftest.beam
1657 if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 printf "%s\n" "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext
1676 then :
1677 ac_retval=0
1678 else $as_nop
1679 printf "%s\n" "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1682 ac_retval=1
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } # ac_fn_c_try_compile
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_cpp ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } > conftest.i && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1714 then :
1715 ac_retval=0
1716 else $as_nop
1717 printf "%s\n" "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_cpp
1727 # ac_fn_cxx_try_compile LINENO
1728 # ----------------------------
1729 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_cxx_try_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest.beam
1734 if { { ac_try="$ac_compile"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 printf "%s\n" "$ac_try_echo"; } >&5
1741 (eval "$ac_compile") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_cxx_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest.$ac_objext
1753 then :
1754 ac_retval=0
1755 else $as_nop
1756 printf "%s\n" "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=1
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_cxx_try_compile
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 printf %s "checking for $2... " >&6; }
1775 if eval test \${$3+y}
1776 then :
1777 printf %s "(cached) " >&6
1778 else $as_nop
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"
1785 then :
1786 eval "$3=yes"
1787 else $as_nop
1788 eval "$3=no"
1790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1792 eval ac_res=\$$3
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 printf "%s\n" "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1800 # ---------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_cxx_check_header_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 printf %s "checking for $2... " >&6; }
1808 if eval test \${$3+y}
1809 then :
1810 printf %s "(cached) " >&6
1811 else $as_nop
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_cxx_try_compile "$LINENO"
1818 then :
1819 eval "$3=yes"
1820 else $as_nop
1821 eval "$3=no"
1823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1825 eval ac_res=\$$3
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 printf "%s\n" "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_cxx_check_header_compile
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 printf "%s\n" "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1861 then :
1862 ac_retval=0
1863 else $as_nop
1864 printf "%s\n" "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_link
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 printf %s "checking for $2... " >&6; }
1887 if eval test \${$3+y}
1888 then :
1889 printf %s "(cached) " >&6
1890 else $as_nop
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895 #define $2 innocuous_$2
1897 /* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below. */
1900 #include <limits.h>
1901 #undef $2
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1906 #ifdef __cplusplus
1907 extern "C"
1908 #endif
1909 char $2 ();
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1914 choke me
1915 #endif
1918 main (void)
1920 return $2 ();
1922 return 0;
1924 _ACEOF
1925 if ac_fn_c_try_link "$LINENO"
1926 then :
1927 eval "$3=yes"
1928 else $as_nop
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1932 conftest$ac_exeext conftest.$ac_ext
1934 eval ac_res=\$$3
1935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 printf "%s\n" "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_func
1941 # ac_fn_c_try_run LINENO
1942 # ----------------------
1943 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1944 # executables *can* be run.
1945 ac_fn_c_try_run ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 printf "%s\n" "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>&5
1956 ac_status=$?
1957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1959 { { case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 printf "%s\n" "$ac_try_echo"; } >&5
1965 (eval "$ac_try") 2>&5
1966 ac_status=$?
1967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; }; }
1969 then :
1970 ac_retval=0
1971 else $as_nop
1972 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1973 printf "%s\n" "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=$ac_status
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1982 } # ac_fn_c_try_run
1984 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1985 # --------------------------------------------
1986 # Tries to find the compile-time value of EXPR in a program that includes
1987 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1988 # computed
1989 ac_fn_c_compute_int ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if test "$cross_compiling" = yes; then
1993 # Depending upon the size, compute the lo and hi bounds.
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1998 main (void)
2000 static int test_array [1 - 2 * !(($2) >= 0)];
2001 test_array [0] = 0;
2002 return test_array [0];
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"
2009 then :
2010 ac_lo=0 ac_mid=0
2011 while :; do
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 main (void)
2018 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2019 test_array [0] = 0;
2020 return test_array [0];
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"
2027 then :
2028 ac_hi=$ac_mid; break
2029 else $as_nop
2030 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031 if test $ac_lo -le $ac_mid; then
2032 ac_lo= ac_hi=
2033 break
2035 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2038 done
2039 else $as_nop
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 main (void)
2046 static int test_array [1 - 2 * !(($2) < 0)];
2047 test_array [0] = 0;
2048 return test_array [0];
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"
2055 then :
2056 ac_hi=-1 ac_mid=-1
2057 while :; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2062 main (void)
2064 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2065 test_array [0] = 0;
2066 return test_array [0];
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"
2073 then :
2074 ac_lo=$ac_mid; break
2075 else $as_nop
2076 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2077 if test $ac_mid -le $ac_hi; then
2078 ac_lo= ac_hi=
2079 break
2081 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2084 done
2085 else $as_nop
2086 ac_lo= ac_hi=
2088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 # Binary search between lo and hi bounds.
2092 while test "x$ac_lo" != "x$ac_hi"; do
2093 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main (void)
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 test_array [0] = 0;
2102 return test_array [0];
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"
2109 then :
2110 ac_hi=$ac_mid
2111 else $as_nop
2112 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2115 done
2116 case $ac_lo in #((
2117 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2118 '') ac_retval=1 ;;
2119 esac
2120 else
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2124 static long int longval (void) { return $2; }
2125 static unsigned long int ulongval (void) { return $2; }
2126 #include <stdio.h>
2127 #include <stdlib.h>
2129 main (void)
2132 FILE *f = fopen ("conftest.val", "w");
2133 if (! f)
2134 return 1;
2135 if (($2) < 0)
2137 long int i = longval ();
2138 if (i != ($2))
2139 return 1;
2140 fprintf (f, "%ld", i);
2142 else
2144 unsigned long int i = ulongval ();
2145 if (i != ($2))
2146 return 1;
2147 fprintf (f, "%lu", i);
2149 /* Do not output a trailing newline, as this causes \r\n confusion
2150 on some platforms. */
2151 return ferror (f) || fclose (f) != 0;
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_run "$LINENO"
2158 then :
2159 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2160 else $as_nop
2161 ac_retval=1
2163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2164 conftest.$ac_objext conftest.beam conftest.$ac_ext
2165 rm -f conftest.val
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status $ac_retval
2171 } # ac_fn_c_compute_int
2172 ac_configure_args_raw=
2173 for ac_arg
2175 case $ac_arg in
2176 *\'*)
2177 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 as_fn_append ac_configure_args_raw " '$ac_arg'"
2180 done
2182 case $ac_configure_args_raw in
2183 *$as_nl*)
2184 ac_safe_unquote= ;;
2186 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2187 ac_unsafe_a="$ac_unsafe_z#~"
2188 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2189 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2190 esac
2192 cat >config.log <<_ACEOF
2193 This file contains any messages produced by compilers while
2194 running configure, to aid debugging if configure makes a mistake.
2196 It was created by $as_me, which was
2197 generated by GNU Autoconf 2.71. Invocation command line was
2199 $ $0$ac_configure_args_raw
2201 _ACEOF
2202 exec 5>>config.log
2204 cat <<_ASUNAME
2205 ## --------- ##
2206 ## Platform. ##
2207 ## --------- ##
2209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2226 _ASUNAME
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 case $as_dir in #(((
2233 '') as_dir=./ ;;
2234 */) ;;
2235 *) as_dir=$as_dir/ ;;
2236 esac
2237 printf "%s\n" "PATH: $as_dir"
2238 done
2239 IFS=$as_save_IFS
2241 } >&5
2243 cat >&5 <<_ACEOF
2246 ## ----------- ##
2247 ## Core tests. ##
2248 ## ----------- ##
2250 _ACEOF
2253 # Keep a trace of the command line.
2254 # Strip out --no-create and --no-recursion so they do not pile up.
2255 # Strip out --silent because we don't want to record it for future runs.
2256 # Also quote any args containing shell meta-characters.
2257 # Make two passes to allow for proper duplicate-argument suppression.
2258 ac_configure_args=
2259 ac_configure_args0=
2260 ac_configure_args1=
2261 ac_must_keep_next=false
2262 for ac_pass in 1 2
2264 for ac_arg
2266 case $ac_arg in
2267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2269 | -silent | --silent | --silen | --sile | --sil)
2270 continue ;;
2271 *\'*)
2272 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 esac
2274 case $ac_pass in
2275 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2277 as_fn_append ac_configure_args1 " '$ac_arg'"
2278 if test $ac_must_keep_next = true; then
2279 ac_must_keep_next=false # Got value, back to normal.
2280 else
2281 case $ac_arg in
2282 *=* | --config-cache | -C | -disable-* | --disable-* \
2283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2285 | -with-* | --with-* | -without-* | --without-* | --x)
2286 case "$ac_configure_args0 " in
2287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2288 esac
2290 -* ) ac_must_keep_next=true ;;
2291 esac
2293 as_fn_append ac_configure_args " '$ac_arg'"
2295 esac
2296 done
2297 done
2298 { ac_configure_args0=; unset ac_configure_args0;}
2299 { ac_configure_args1=; unset ac_configure_args1;}
2301 # When interrupted or exit'd, cleanup temporary files, and complete
2302 # config.log. We remove comments because anyway the quotes in there
2303 # would cause problems or look ugly.
2304 # WARNING: Use '\'' to represent an apostrophe within the trap.
2305 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2306 trap 'exit_status=$?
2307 # Sanitize IFS.
2308 IFS=" "" $as_nl"
2309 # Save into config.log some information that might help in debugging.
2311 echo
2313 printf "%s\n" "## ---------------- ##
2314 ## Cache variables. ##
2315 ## ---------------- ##"
2316 echo
2317 # The following way of writing the cache mishandles newlines in values,
2319 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2320 eval ac_val=\$$ac_var
2321 case $ac_val in #(
2322 *${as_nl}*)
2323 case $ac_var in #(
2324 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2325 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2326 esac
2327 case $ac_var in #(
2328 _ | IFS | as_nl) ;; #(
2329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2330 *) { eval $ac_var=; unset $ac_var;} ;;
2331 esac ;;
2332 esac
2333 done
2334 (set) 2>&1 |
2335 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2336 *${as_nl}ac_space=\ *)
2337 sed -n \
2338 "s/'\''/'\''\\\\'\'''\''/g;
2339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2340 ;; #(
2342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2344 esac |
2345 sort
2347 echo
2349 printf "%s\n" "## ----------------- ##
2350 ## Output variables. ##
2351 ## ----------------- ##"
2352 echo
2353 for ac_var in $ac_subst_vars
2355 eval ac_val=\$$ac_var
2356 case $ac_val in
2357 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 esac
2359 printf "%s\n" "$ac_var='\''$ac_val'\''"
2360 done | sort
2361 echo
2363 if test -n "$ac_subst_files"; then
2364 printf "%s\n" "## ------------------- ##
2365 ## File substitutions. ##
2366 ## ------------------- ##"
2367 echo
2368 for ac_var in $ac_subst_files
2370 eval ac_val=\$$ac_var
2371 case $ac_val in
2372 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373 esac
2374 printf "%s\n" "$ac_var='\''$ac_val'\''"
2375 done | sort
2376 echo
2379 if test -s confdefs.h; then
2380 printf "%s\n" "## ----------- ##
2381 ## confdefs.h. ##
2382 ## ----------- ##"
2383 echo
2384 cat confdefs.h
2385 echo
2387 test "$ac_signal" != 0 &&
2388 printf "%s\n" "$as_me: caught signal $ac_signal"
2389 printf "%s\n" "$as_me: exit $exit_status"
2390 } >&5
2391 rm -f core *.core core.conftest.* &&
2392 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2393 exit $exit_status
2395 for ac_signal in 1 2 13 15; do
2396 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2397 done
2398 ac_signal=0
2400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2401 rm -f -r conftest* confdefs.h
2403 printf "%s\n" "/* confdefs.h */" > confdefs.h
2405 # Predefined preprocessor variables.
2407 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2409 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2411 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2413 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2415 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2417 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2420 # Let the site file select an alternate cache file if it wants to.
2421 # Prefer an explicitly selected file to automatically selected ones.
2422 if test -n "$CONFIG_SITE"; then
2423 ac_site_files="$CONFIG_SITE"
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2426 else
2427 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2430 for ac_site_file in $ac_site_files
2432 case $ac_site_file in #(
2433 */*) :
2434 ;; #(
2435 *) :
2436 ac_site_file=./$ac_site_file ;;
2437 esac
2438 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2440 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2441 sed 's/^/| /' "$ac_site_file" >&5
2442 . "$ac_site_file" \
2443 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2445 as_fn_error $? "failed to load site script $ac_site_file
2446 See \`config.log' for more details" "$LINENO" 5; }
2448 done
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special files
2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2453 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2456 case $cache_file in
2457 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458 *) . "./$cache_file";;
2459 esac
2461 else
2462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2464 >$cache_file
2467 # Test code for whether the C compiler supports C89 (global declarations)
2468 ac_c_conftest_c89_globals='
2469 /* Does the compiler advertise C89 conformance?
2470 Do not test the value of __STDC__, because some compilers set it to 0
2471 while being otherwise adequately conformant. */
2472 #if !defined __STDC__
2473 # error "Compiler does not advertise C89 conformance"
2474 #endif
2476 #include <stddef.h>
2477 #include <stdarg.h>
2478 struct stat;
2479 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2480 struct buf { int x; };
2481 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2482 static char *e (p, i)
2483 char **p;
2484 int i;
2486 return p[i];
2488 static char *f (char * (*g) (char **, int), char **p, ...)
2490 char *s;
2491 va_list v;
2492 va_start (v,p);
2493 s = g (p, va_arg (v,int));
2494 va_end (v);
2495 return s;
2498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2499 function prototypes and stuff, but not \xHH hex character constants.
2500 These do not provoke an error unfortunately, instead are silently treated
2501 as an "x". The following induces an error, until -std is added to get
2502 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2503 array size at least. It is necessary to write \x00 == 0 to get something
2504 that is true only with -std. */
2505 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2508 inside strings and character constants. */
2509 #define FOO(x) '\''x'\''
2510 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2512 int test (int i, double x);
2513 struct s1 {int (*f) (int a);};
2514 struct s2 {int (*f) (double a);};
2515 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2516 int, int);'
2518 # Test code for whether the C compiler supports C89 (body of main).
2519 ac_c_conftest_c89_main='
2520 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2523 # Test code for whether the C compiler supports C99 (global declarations)
2524 ac_c_conftest_c99_globals='
2525 // Does the compiler advertise C99 conformance?
2526 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2527 # error "Compiler does not advertise C99 conformance"
2528 #endif
2530 #include <stdbool.h>
2531 extern int puts (const char *);
2532 extern int printf (const char *, ...);
2533 extern int dprintf (int, const char *, ...);
2534 extern void *malloc (size_t);
2536 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2537 // dprintf is used instead of fprintf to avoid needing to declare
2538 // FILE and stderr.
2539 #define debug(...) dprintf (2, __VA_ARGS__)
2540 #define showlist(...) puts (#__VA_ARGS__)
2541 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2542 static void
2543 test_varargs_macros (void)
2545 int x = 1234;
2546 int y = 5678;
2547 debug ("Flag");
2548 debug ("X = %d\n", x);
2549 showlist (The first, second, and third items.);
2550 report (x>y, "x is %d but y is %d", x, y);
2553 // Check long long types.
2554 #define BIG64 18446744073709551615ull
2555 #define BIG32 4294967295ul
2556 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2557 #if !BIG_OK
2558 #error "your preprocessor is broken"
2559 #endif
2560 #if BIG_OK
2561 #else
2562 #error "your preprocessor is broken"
2563 #endif
2564 static long long int bignum = -9223372036854775807LL;
2565 static unsigned long long int ubignum = BIG64;
2567 struct incomplete_array
2569 int datasize;
2570 double data[];
2573 struct named_init {
2574 int number;
2575 const wchar_t *name;
2576 double average;
2579 typedef const char *ccp;
2581 static inline int
2582 test_restrict (ccp restrict text)
2584 // See if C++-style comments work.
2585 // Iterate through items via the restricted pointer.
2586 // Also check for declarations in for loops.
2587 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2588 continue;
2589 return 0;
2592 // Check varargs and va_copy.
2593 static bool
2594 test_varargs (const char *format, ...)
2596 va_list args;
2597 va_start (args, format);
2598 va_list args_copy;
2599 va_copy (args_copy, args);
2601 const char *str = "";
2602 int number = 0;
2603 float fnumber = 0;
2605 while (*format)
2607 switch (*format++)
2609 case '\''s'\'': // string
2610 str = va_arg (args_copy, const char *);
2611 break;
2612 case '\''d'\'': // int
2613 number = va_arg (args_copy, int);
2614 break;
2615 case '\''f'\'': // float
2616 fnumber = va_arg (args_copy, double);
2617 break;
2618 default:
2619 break;
2622 va_end (args_copy);
2623 va_end (args);
2625 return *str && number && fnumber;
2629 # Test code for whether the C compiler supports C99 (body of main).
2630 ac_c_conftest_c99_main='
2631 // Check bool.
2632 _Bool success = false;
2633 success |= (argc != 0);
2635 // Check restrict.
2636 if (test_restrict ("String literal") == 0)
2637 success = true;
2638 char *restrict newvar = "Another string";
2640 // Check varargs.
2641 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2642 test_varargs_macros ();
2644 // Check flexible array members.
2645 struct incomplete_array *ia =
2646 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2647 ia->datasize = 10;
2648 for (int i = 0; i < ia->datasize; ++i)
2649 ia->data[i] = i * 1.234;
2651 // Check named initializers.
2652 struct named_init ni = {
2653 .number = 34,
2654 .name = L"Test wide string",
2655 .average = 543.34343,
2658 ni.number = 58;
2660 int dynamic_array[ni.number];
2661 dynamic_array[0] = argv[0][0];
2662 dynamic_array[ni.number - 1] = 543;
2664 // work around unused variable warnings
2665 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2666 || dynamic_array[ni.number - 1] != 543);
2669 # Test code for whether the C compiler supports C11 (global declarations)
2670 ac_c_conftest_c11_globals='
2671 // Does the compiler advertise C11 conformance?
2672 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2673 # error "Compiler does not advertise C11 conformance"
2674 #endif
2676 // Check _Alignas.
2677 char _Alignas (double) aligned_as_double;
2678 char _Alignas (0) no_special_alignment;
2679 extern char aligned_as_int;
2680 char _Alignas (0) _Alignas (int) aligned_as_int;
2682 // Check _Alignof.
2683 enum
2685 int_alignment = _Alignof (int),
2686 int_array_alignment = _Alignof (int[100]),
2687 char_alignment = _Alignof (char)
2689 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2691 // Check _Noreturn.
2692 int _Noreturn does_not_return (void) { for (;;) continue; }
2694 // Check _Static_assert.
2695 struct test_static_assert
2697 int x;
2698 _Static_assert (sizeof (int) <= sizeof (long int),
2699 "_Static_assert does not work in struct");
2700 long int y;
2703 // Check UTF-8 literals.
2704 #define u8 syntax error!
2705 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2707 // Check duplicate typedefs.
2708 typedef long *long_ptr;
2709 typedef long int *long_ptr;
2710 typedef long_ptr long_ptr;
2712 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2713 struct anonymous
2715 union {
2716 struct { int i; int j; };
2717 struct { int k; long int l; } w;
2719 int m;
2720 } v1;
2723 # Test code for whether the C compiler supports C11 (body of main).
2724 ac_c_conftest_c11_main='
2725 _Static_assert ((offsetof (struct anonymous, i)
2726 == offsetof (struct anonymous, w.k)),
2727 "Anonymous union alignment botch");
2728 v1.i = 2;
2729 v1.w.k = 5;
2730 ok |= v1.i != 5;
2733 # Test code for whether the C compiler supports C11 (complete).
2734 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2735 ${ac_c_conftest_c99_globals}
2736 ${ac_c_conftest_c11_globals}
2739 main (int argc, char **argv)
2741 int ok = 0;
2742 ${ac_c_conftest_c89_main}
2743 ${ac_c_conftest_c99_main}
2744 ${ac_c_conftest_c11_main}
2745 return ok;
2749 # Test code for whether the C compiler supports C99 (complete).
2750 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2751 ${ac_c_conftest_c99_globals}
2754 main (int argc, char **argv)
2756 int ok = 0;
2757 ${ac_c_conftest_c89_main}
2758 ${ac_c_conftest_c99_main}
2759 return ok;
2763 # Test code for whether the C compiler supports C89 (complete).
2764 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2767 main (int argc, char **argv)
2769 int ok = 0;
2770 ${ac_c_conftest_c89_main}
2771 return ok;
2775 # Test code for whether the C++ compiler supports C++98 (global declarations)
2776 ac_cxx_conftest_cxx98_globals='
2777 // Does the compiler advertise C++98 conformance?
2778 #if !defined __cplusplus || __cplusplus < 199711L
2779 # error "Compiler does not advertise C++98 conformance"
2780 #endif
2782 // These inclusions are to reject old compilers that
2783 // lack the unsuffixed header files.
2784 #include <cstdlib>
2785 #include <exception>
2787 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2788 extern void assert (int);
2789 namespace std {
2790 extern int strcmp (const char *, const char *);
2793 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2794 using std::exception;
2795 using std::strcmp;
2797 namespace {
2799 void test_exception_syntax()
2801 try {
2802 throw "test";
2803 } catch (const char *s) {
2804 // Extra parentheses suppress a warning when building autoconf itself,
2805 // due to lint rules shared with more typical C programs.
2806 assert (!(strcmp) (s, "test"));
2810 template <typename T> struct test_template
2812 T const val;
2813 explicit test_template(T t) : val(t) {}
2814 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2817 } // anonymous namespace
2820 # Test code for whether the C++ compiler supports C++98 (body of main)
2821 ac_cxx_conftest_cxx98_main='
2822 assert (argc);
2823 assert (! argv[0]);
2825 test_exception_syntax ();
2826 test_template<double> tt (2.0);
2827 assert (tt.add (4) == 6.0);
2828 assert (true && !false);
2832 # Test code for whether the C++ compiler supports C++11 (global declarations)
2833 ac_cxx_conftest_cxx11_globals='
2834 // Does the compiler advertise C++ 2011 conformance?
2835 #if !defined __cplusplus || __cplusplus < 201103L
2836 # error "Compiler does not advertise C++11 conformance"
2837 #endif
2839 namespace cxx11test
2841 constexpr int get_val() { return 20; }
2843 struct testinit
2845 int i;
2846 double d;
2849 class delegate
2851 public:
2852 delegate(int n) : n(n) {}
2853 delegate(): delegate(2354) {}
2855 virtual int getval() { return this->n; };
2856 protected:
2857 int n;
2860 class overridden : public delegate
2862 public:
2863 overridden(int n): delegate(n) {}
2864 virtual int getval() override final { return this->n * 2; }
2867 class nocopy
2869 public:
2870 nocopy(int i): i(i) {}
2871 nocopy() = default;
2872 nocopy(const nocopy&) = delete;
2873 nocopy & operator=(const nocopy&) = delete;
2874 private:
2875 int i;
2878 // for testing lambda expressions
2879 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2881 return f(v);
2884 // for testing variadic templates and trailing return types
2885 template <typename V> auto sum(V first) -> V
2887 return first;
2889 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2891 return first + sum(rest...);
2896 # Test code for whether the C++ compiler supports C++11 (body of main)
2897 ac_cxx_conftest_cxx11_main='
2899 // Test auto and decltype
2900 auto a1 = 6538;
2901 auto a2 = 48573953.4;
2902 auto a3 = "String literal";
2904 int total = 0;
2905 for (auto i = a3; *i; ++i) { total += *i; }
2907 decltype(a2) a4 = 34895.034;
2910 // Test constexpr
2911 short sa[cxx11test::get_val()] = { 0 };
2914 // Test initializer lists
2915 cxx11test::testinit il = { 4323, 435234.23544 };
2918 // Test range-based for
2919 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2920 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2921 for (auto &x : array) { x += 23; }
2924 // Test lambda expressions
2925 using cxx11test::eval;
2926 assert (eval ([](int x) { return x*2; }, 21) == 42);
2927 double d = 2.0;
2928 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2929 assert (d == 5.0);
2930 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2931 assert (d == 5.0);
2934 // Test use of variadic templates
2935 using cxx11test::sum;
2936 auto a = sum(1);
2937 auto b = sum(1, 2);
2938 auto c = sum(1.0, 2.0, 3.0);
2941 // Test constructor delegation
2942 cxx11test::delegate d1;
2943 cxx11test::delegate d2();
2944 cxx11test::delegate d3(45);
2947 // Test override and final
2948 cxx11test::overridden o1(55464);
2951 // Test nullptr
2952 char *c = nullptr;
2955 // Test template brackets
2956 test_template<::test_template<int>> v(test_template<int>(12));
2959 // Unicode literals
2960 char const *utf8 = u8"UTF-8 string \u2500";
2961 char16_t const *utf16 = u"UTF-8 string \u2500";
2962 char32_t const *utf32 = U"UTF-32 string \u2500";
2966 # Test code for whether the C compiler supports C++11 (complete).
2967 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2968 ${ac_cxx_conftest_cxx11_globals}
2971 main (int argc, char **argv)
2973 int ok = 0;
2974 ${ac_cxx_conftest_cxx98_main}
2975 ${ac_cxx_conftest_cxx11_main}
2976 return ok;
2980 # Test code for whether the C compiler supports C++98 (complete).
2981 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2983 main (int argc, char **argv)
2985 int ok = 0;
2986 ${ac_cxx_conftest_cxx98_main}
2987 return ok;
2991 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2992 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2993 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2994 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2995 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2996 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2997 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2998 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2999 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3001 # Auxiliary files required by this configure script.
3002 ac_aux_files="install-sh config.guess config.sub"
3004 # Locations in which to look for auxiliary files.
3005 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3007 # Search for a directory containing all of the required auxiliary files,
3008 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3009 # If we don't find one directory that contains all the files we need,
3010 # we report the set of missing files from the *first* directory in
3011 # $ac_aux_dir_candidates and give up.
3012 ac_missing_aux_files=""
3013 ac_first_candidate=:
3014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 as_found=false
3017 for as_dir in $ac_aux_dir_candidates
3019 IFS=$as_save_IFS
3020 case $as_dir in #(((
3021 '') as_dir=./ ;;
3022 */) ;;
3023 *) as_dir=$as_dir/ ;;
3024 esac
3025 as_found=:
3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3028 ac_aux_dir_found=yes
3029 ac_install_sh=
3030 for ac_aux in $ac_aux_files
3032 # As a special case, if "install-sh" is required, that requirement
3033 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3034 # and $ac_install_sh is set appropriately for whichever one is found.
3035 if test x"$ac_aux" = x"install-sh"
3036 then
3037 if test -f "${as_dir}install-sh"; then
3038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3039 ac_install_sh="${as_dir}install-sh -c"
3040 elif test -f "${as_dir}install.sh"; then
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3042 ac_install_sh="${as_dir}install.sh -c"
3043 elif test -f "${as_dir}shtool"; then
3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3045 ac_install_sh="${as_dir}shtool install -c"
3046 else
3047 ac_aux_dir_found=no
3048 if $ac_first_candidate; then
3049 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3050 else
3051 break
3054 else
3055 if test -f "${as_dir}${ac_aux}"; then
3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3057 else
3058 ac_aux_dir_found=no
3059 if $ac_first_candidate; then
3060 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3061 else
3062 break
3066 done
3067 if test "$ac_aux_dir_found" = yes; then
3068 ac_aux_dir="$as_dir"
3069 break
3071 ac_first_candidate=false
3073 as_found=false
3074 done
3075 IFS=$as_save_IFS
3076 if $as_found
3077 then :
3079 else $as_nop
3080 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3084 # These three variables are undocumented and unsupported,
3085 # and are intended to be withdrawn in a future Autoconf release.
3086 # They can cause serious problems if a builder's source tree is in a directory
3087 # whose full name contains unusual characters.
3088 if test -f "${ac_aux_dir}config.guess"; then
3089 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3091 if test -f "${ac_aux_dir}config.sub"; then
3092 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3094 if test -f "$ac_aux_dir/configure"; then
3095 ac_configure="$SHELL ${ac_aux_dir}configure"
3098 # Check that the precious variables saved in the cache have kept the same
3099 # value.
3100 ac_cache_corrupted=false
3101 for ac_var in $ac_precious_vars; do
3102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3103 eval ac_new_set=\$ac_env_${ac_var}_set
3104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3105 eval ac_new_val=\$ac_env_${ac_var}_value
3106 case $ac_old_set,$ac_new_set in
3107 set,)
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3109 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3110 ac_cache_corrupted=: ;;
3111 ,set)
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3113 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3114 ac_cache_corrupted=: ;;
3115 ,);;
3117 if test "x$ac_old_val" != "x$ac_new_val"; then
3118 # differences in whitespace do not lead to failure.
3119 ac_old_val_w=`echo x $ac_old_val`
3120 ac_new_val_w=`echo x $ac_new_val`
3121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3123 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3124 ac_cache_corrupted=:
3125 else
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3127 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3128 eval $ac_var=\$ac_old_val
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3131 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3133 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3134 fi;;
3135 esac
3136 # Pass precious variables to config.status.
3137 if test "$ac_new_set" = set; then
3138 case $ac_new_val in
3139 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3140 *) ac_arg=$ac_var=$ac_new_val ;;
3141 esac
3142 case " $ac_configure_args " in
3143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3144 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3145 esac
3147 done
3148 if $ac_cache_corrupted; then
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3152 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3153 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3154 and start over" "$LINENO" 5
3156 ## -------------------- ##
3157 ## Main body of script. ##
3158 ## -------------------- ##
3160 ac_ext=c
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 # Determine the host and build type.
3171 # ===========================================================================
3175 # Make sure we can run config.sub.
3176 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3177 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3180 printf %s "checking build system type... " >&6; }
3181 if test ${ac_cv_build+y}
3182 then :
3183 printf %s "(cached) " >&6
3184 else $as_nop
3185 ac_build_alias=$build_alias
3186 test "x$ac_build_alias" = x &&
3187 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3188 test "x$ac_build_alias" = x &&
3189 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3190 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3191 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3195 printf "%s\n" "$ac_cv_build" >&6; }
3196 case $ac_cv_build in
3197 *-*-*) ;;
3198 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3199 esac
3200 build=$ac_cv_build
3201 ac_save_IFS=$IFS; IFS='-'
3202 set x $ac_cv_build
3203 shift
3204 build_cpu=$1
3205 build_vendor=$2
3206 shift; shift
3207 # Remember, the first character of IFS is used to create $*,
3208 # except with old shells:
3209 build_os=$*
3210 IFS=$ac_save_IFS
3211 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3215 printf %s "checking host system type... " >&6; }
3216 if test ${ac_cv_host+y}
3217 then :
3218 printf %s "(cached) " >&6
3219 else $as_nop
3220 if test "x$host_alias" = x; then
3221 ac_cv_host=$ac_cv_build
3222 else
3223 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3224 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3229 printf "%s\n" "$ac_cv_host" >&6; }
3230 case $ac_cv_host in
3231 *-*-*) ;;
3232 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3233 esac
3234 host=$ac_cv_host
3235 ac_save_IFS=$IFS; IFS='-'
3236 set x $ac_cv_host
3237 shift
3238 host_cpu=$1
3239 host_vendor=$2
3240 shift; shift
3241 # Remember, the first character of IFS is used to create $*,
3242 # except with old shells:
3243 host_os=$*
3244 IFS=$ac_save_IFS
3245 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3249 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h sdas/linksrc/asxxxx_config.h"
3252 for ac_prog in gawk mawk nawk awk
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy $ac_prog; ac_word=$2
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 printf %s "checking for $ac_word... " >&6; }
3258 if test ${ac_cv_prog_AWK+y}
3259 then :
3260 printf %s "(cached) " >&6
3261 else $as_nop
3262 if test -n "$AWK"; then
3263 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3268 IFS=$as_save_IFS
3269 case $as_dir in #(((
3270 '') as_dir=./ ;;
3271 */) ;;
3272 *) as_dir=$as_dir/ ;;
3273 esac
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_AWK="$ac_prog"
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3278 break 2
3280 done
3281 done
3282 IFS=$as_save_IFS
3286 AWK=$ac_cv_prog_AWK
3287 if test -n "$AWK"; then
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3289 printf "%s\n" "$AWK" >&6; }
3290 else
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 printf "%s\n" "no" >&6; }
3296 test -n "$AWK" && break
3297 done
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of the package" >&5
3301 printf %s "checking version of the package... " >&6; }
3302 if test -f ${srcdir}/.version; then
3303 { read VERSION; } < ${srcdir}/.version
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3305 printf "%s\n" "$VERSION" >&6; }
3306 elif test -f ../.version; then
3307 { read VERSION; } < ../.version
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3309 printf "%s\n" "$VERSION" >&6; }
3310 else
3311 VERSION="0.0.0"
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown using 0.0.0" >&5
3313 printf "%s\n" "unknown using 0.0.0" >&6; }
3315 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
3316 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
3317 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
3319 PACKAGE=sdcc
3326 printf "%s\n" "#define SDCC_VERSION_LO ${VERSIONLO}" >>confdefs.h
3329 printf "%s\n" "#define SDCC_VERSION_HI ${VERSIONHI}" >>confdefs.h
3332 printf "%s\n" "#define SDCC_VERSION_P ${VERSIONP}" >>confdefs.h
3335 printf "%s\n" "#define SDCC_VERSION_STR \"${VERSION}\"" >>confdefs.h
3337 test "$program_prefix" != NONE &&
3338 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3339 # Use a double $ so make ignores it.
3340 test "$program_suffix" != NONE &&
3341 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3342 # Double any \ or $.
3343 # By default was `s,x,x', remove it if useless.
3344 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3345 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3347 sdcc_cv_version=$VERSION
3348 sdcc_cv_versionhi=$VERSIONHI
3349 sdcc_cv_versionlo=$VERSIONLO
3350 sdcc_cv_versionp=$VERSIONP
3353 # Required programs
3354 # ===========================================================================
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 printf %s "checking for $ac_word... " >&6; }
3374 if test ${ac_cv_prog_CC+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else $as_nop
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3384 IFS=$as_save_IFS
3385 case $as_dir in #(((
3386 '') as_dir=./ ;;
3387 */) ;;
3388 *) as_dir=$as_dir/ ;;
3389 esac
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3398 IFS=$as_save_IFS
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 printf "%s\n" "$CC" >&6; }
3406 else
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3413 if test -z "$ac_cv_prog_CC"; then
3414 ac_ct_CC=$CC
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 printf %s "checking for $ac_word... " >&6; }
3419 if test ${ac_cv_prog_ac_ct_CC+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else $as_nop
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 case $as_dir in #(((
3431 '') as_dir=./ ;;
3432 */) ;;
3433 *) as_dir=$as_dir/ ;;
3434 esac
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_CC="gcc"
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3439 break 2
3441 done
3442 done
3443 IFS=$as_save_IFS
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 printf "%s\n" "$ac_ct_CC" >&6; }
3451 else
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 printf "%s\n" "no" >&6; }
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3467 else
3468 CC="$ac_cv_prog_CC"
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 printf %s "checking for $ac_word... " >&6; }
3477 if test ${ac_cv_prog_CC+y}
3478 then :
3479 printf %s "(cached) " >&6
3480 else $as_nop
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
3488 case $as_dir in #(((
3489 '') as_dir=./ ;;
3490 */) ;;
3491 *) as_dir=$as_dir/ ;;
3492 esac
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="${ac_tool_prefix}cc"
3496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 printf "%s\n" "$CC" >&6; }
3509 else
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 printf "%s\n" "no" >&6; }
3517 if test -z "$CC"; then
3518 # Extract the first word of "cc", so it can be a program name with args.
3519 set dummy cc; ac_word=$2
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 printf %s "checking for $ac_word... " >&6; }
3522 if test ${ac_cv_prog_CC+y}
3523 then :
3524 printf %s "(cached) " >&6
3525 else $as_nop
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 ac_prog_rejected=no
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3533 IFS=$as_save_IFS
3534 case $as_dir in #(((
3535 '') as_dir=./ ;;
3536 */) ;;
3537 *) as_dir=$as_dir/ ;;
3538 esac
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542 ac_prog_rejected=yes
3543 continue
3545 ac_cv_prog_CC="cc"
3546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3547 break 2
3549 done
3550 done
3551 IFS=$as_save_IFS
3553 if test $ac_prog_rejected = yes; then
3554 # We found a bogon in the path, so make sure we never use it.
3555 set dummy $ac_cv_prog_CC
3556 shift
3557 if test $# != 0; then
3558 # We chose a different compiler from the bogus one.
3559 # However, it has the same basename, so the bogon will be chosen
3560 # first if we set CC to just the basename; use the full file name.
3561 shift
3562 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 printf "%s\n" "$CC" >&6; }
3571 else
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 printf "%s\n" "no" >&6; }
3578 if test -z "$CC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in cl.exe
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s "checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else $as_nop
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3596 IFS=$as_save_IFS
3597 case $as_dir in #(((
3598 '') as_dir=./ ;;
3599 */) ;;
3600 *) as_dir=$as_dir/ ;;
3601 esac
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3606 break 2
3608 done
3609 done
3610 IFS=$as_save_IFS
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 printf "%s\n" "$CC" >&6; }
3618 else
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 printf "%s\n" "no" >&6; }
3624 test -n "$CC" && break
3625 done
3627 if test -z "$CC"; then
3628 ac_ct_CC=$CC
3629 for ac_prog in cl.exe
3631 # Extract the first word of "$ac_prog", so it can be a program name with args.
3632 set dummy $ac_prog; ac_word=$2
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 printf %s "checking for $ac_word... " >&6; }
3635 if test ${ac_cv_prog_ac_ct_CC+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 case $as_dir in #(((
3647 '') as_dir=./ ;;
3648 */) ;;
3649 *) as_dir=$as_dir/ ;;
3650 esac
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_ac_ct_CC="$ac_prog"
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3655 break 2
3657 done
3658 done
3659 IFS=$as_save_IFS
3663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664 if test -n "$ac_ct_CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666 printf "%s\n" "$ac_ct_CC" >&6; }
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3673 test -n "$ac_ct_CC" && break
3674 done
3676 if test "x$ac_ct_CC" = x; then
3677 CC=""
3678 else
3679 case $cross_compiling:$ac_tool_warned in
3680 yes:)
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned=yes ;;
3684 esac
3685 CC=$ac_ct_CC
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3693 set dummy ${ac_tool_prefix}clang; ac_word=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s "checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_CC+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else $as_nop
3700 if test -n "$CC"; then
3701 ac_cv_prog_CC="$CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3706 IFS=$as_save_IFS
3707 case $as_dir in #(((
3708 '') as_dir=./ ;;
3709 */) ;;
3710 *) as_dir=$as_dir/ ;;
3711 esac
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CC="${ac_tool_prefix}clang"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3718 done
3719 done
3720 IFS=$as_save_IFS
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 printf "%s\n" "$CC" >&6; }
3728 else
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3735 if test -z "$ac_cv_prog_CC"; then
3736 ac_ct_CC=$CC
3737 # Extract the first word of "clang", so it can be a program name with args.
3738 set dummy clang; ac_word=$2
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 printf %s "checking for $ac_word... " >&6; }
3741 if test ${ac_cv_prog_ac_ct_CC+y}
3742 then :
3743 printf %s "(cached) " >&6
3744 else $as_nop
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 case $as_dir in #(((
3753 '') as_dir=./ ;;
3754 */) ;;
3755 *) as_dir=$as_dir/ ;;
3756 esac
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_CC="clang"
3760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 printf "%s\n" "$ac_ct_CC" >&6; }
3773 else
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 printf "%s\n" "no" >&6; }
3778 if test "x$ac_ct_CC" = x; then
3779 CC=""
3780 else
3781 case $cross_compiling:$ac_tool_warned in
3782 yes:)
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3786 esac
3787 CC=$ac_ct_CC
3789 else
3790 CC="$ac_cv_prog_CC"
3796 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error $? "no acceptable C compiler found in \$PATH
3799 See \`config.log' for more details" "$LINENO" 5; }
3801 # Provide some information about the compiler.
3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3803 set X $ac_compile
3804 ac_compiler=$2
3805 for ac_option in --version -v -V -qversion -version; do
3806 { { ac_try="$ac_compiler $ac_option >&5"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 printf "%s\n" "$ac_try_echo"; } >&5
3813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814 ac_status=$?
3815 if test -s conftest.err; then
3816 sed '10a\
3817 ... rest of stderr output deleted ...
3818 10q' conftest.err >conftest.er1
3819 cat conftest.er1 >&5
3821 rm -f conftest.er1 conftest.err
3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }
3824 done
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3830 main (void)
3834 return 0;
3836 _ACEOF
3837 ac_clean_files_save=$ac_clean_files
3838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3839 # Try to create an executable without -o first, disregard a.out.
3840 # It will help us diagnose broken compilers, and finding out an intuition
3841 # of exeext.
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3843 printf %s "checking whether the C compiler works... " >&6; }
3844 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3846 # The possible output files:
3847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3849 ac_rmfiles=
3850 for ac_file in $ac_files
3852 case $ac_file in
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3855 esac
3856 done
3857 rm -f $ac_rmfiles
3859 if { { ac_try="$ac_link_default"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 printf "%s\n" "$ac_try_echo"; } >&5
3866 (eval "$ac_link_default") 2>&5
3867 ac_status=$?
3868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }
3870 then :
3871 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3872 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3873 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3874 # so that the user can short-circuit this test for compilers unknown to
3875 # Autoconf.
3876 for ac_file in $ac_files ''
3878 test -f "$ac_file" || continue
3879 case $ac_file in
3880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3882 [ab].out )
3883 # We found the default executable, but exeext='' is most
3884 # certainly right.
3885 break;;
3886 *.* )
3887 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3888 then :; else
3889 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891 # We set ac_cv_exeext here because the later test for it is not
3892 # safe: cross compilers may not add the suffix if given an `-o'
3893 # argument, so we may need to know it at that point already.
3894 # Even if this section looks crufty: it has the advantage of
3895 # actually working.
3896 break;;
3898 break;;
3899 esac
3900 done
3901 test "$ac_cv_exeext" = no && ac_cv_exeext=
3903 else $as_nop
3904 ac_file=''
3906 if test -z "$ac_file"
3907 then :
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 printf "%s\n" "no" >&6; }
3910 printf "%s\n" "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error 77 "C compiler cannot create executables
3916 See \`config.log' for more details" "$LINENO" 5; }
3917 else $as_nop
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3919 printf "%s\n" "yes" >&6; }
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3922 printf %s "checking for C compiler default output file name... " >&6; }
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3924 printf "%s\n" "$ac_file" >&6; }
3925 ac_exeext=$ac_cv_exeext
3927 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3928 ac_clean_files=$ac_clean_files_save
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3930 printf %s "checking for suffix of executables... " >&6; }
3931 if { { ac_try="$ac_link"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 printf "%s\n" "$ac_try_echo"; } >&5
3938 (eval "$ac_link") 2>&5
3939 ac_status=$?
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }
3942 then :
3943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3944 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3945 # work properly (i.e., refer to `conftest.exe'), while it won't with
3946 # `rm'.
3947 for ac_file in conftest.exe conftest conftest.*; do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952 break;;
3953 * ) break;;
3954 esac
3955 done
3956 else $as_nop
3957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3960 See \`config.log' for more details" "$LINENO" 5; }
3962 rm -f conftest conftest$ac_cv_exeext
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3964 printf "%s\n" "$ac_cv_exeext" >&6; }
3966 rm -f conftest.$ac_ext
3967 EXEEXT=$ac_cv_exeext
3968 ac_exeext=$EXEEXT
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <stdio.h>
3973 main (void)
3975 FILE *f = fopen ("conftest.out", "w");
3976 return ferror (f) || fclose (f) != 0;
3979 return 0;
3981 _ACEOF
3982 ac_clean_files="$ac_clean_files conftest.out"
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 printf %s "checking whether we are cross compiling... " >&6; }
3987 if test "$cross_compiling" != yes; then
3988 { { ac_try="$ac_link"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 printf "%s\n" "$ac_try_echo"; } >&5
3995 (eval "$ac_link") 2>&5
3996 ac_status=$?
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 if { ac_try='./conftest$ac_cv_exeext'
4000 { { case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 printf "%s\n" "$ac_try_echo"; } >&5
4006 (eval "$ac_try") 2>&5
4007 ac_status=$?
4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; }; then
4010 cross_compiling=no
4011 else
4012 if test "$cross_compiling" = maybe; then
4013 cross_compiling=yes
4014 else
4015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error 77 "cannot run C compiled programs.
4018 If you meant to cross compile, use \`--host'.
4019 See \`config.log' for more details" "$LINENO" 5; }
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4024 printf "%s\n" "$cross_compiling" >&6; }
4026 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4027 ac_clean_files=$ac_clean_files_save
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029 printf %s "checking for suffix of object files... " >&6; }
4030 if test ${ac_cv_objext+y}
4031 then :
4032 printf %s "(cached) " >&6
4033 else $as_nop
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4038 main (void)
4042 return 0;
4044 _ACEOF
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 printf "%s\n" "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4054 ac_status=$?
4055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }
4057 then :
4058 for ac_file in conftest.o conftest.obj conftest.*; do
4059 test -f "$ac_file" || continue;
4060 case $ac_file in
4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4062 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4063 break;;
4064 esac
4065 done
4066 else $as_nop
4067 printf "%s\n" "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "cannot compute suffix of object files: cannot compile
4073 See \`config.log' for more details" "$LINENO" 5; }
4075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4078 printf "%s\n" "$ac_cv_objext" >&6; }
4079 OBJEXT=$ac_cv_objext
4080 ac_objext=$OBJEXT
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4082 printf %s "checking whether the compiler supports GNU C... " >&6; }
4083 if test ${ac_cv_c_compiler_gnu+y}
4084 then :
4085 printf %s "(cached) " >&6
4086 else $as_nop
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main (void)
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4098 return 0;
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"
4102 then :
4103 ac_compiler_gnu=yes
4104 else $as_nop
4105 ac_compiler_gnu=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 if test $ac_compiler_gnu = yes; then
4116 GCC=yes
4117 else
4118 GCC=
4120 ac_test_CFLAGS=${CFLAGS+y}
4121 ac_save_CFLAGS=$CFLAGS
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123 printf %s "checking whether $CC accepts -g... " >&6; }
4124 if test ${ac_cv_prog_cc_g+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else $as_nop
4128 ac_save_c_werror_flag=$ac_c_werror_flag
4129 ac_c_werror_flag=yes
4130 ac_cv_prog_cc_g=no
4131 CFLAGS="-g"
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4136 main (void)
4140 return 0;
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"
4144 then :
4145 ac_cv_prog_cc_g=yes
4146 else $as_nop
4147 CFLAGS=""
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4152 main (void)
4156 return 0;
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"
4160 then :
4162 else $as_nop
4163 ac_c_werror_flag=$ac_save_c_werror_flag
4164 CFLAGS="-g"
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main (void)
4173 return 0;
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"
4177 then :
4178 ac_cv_prog_cc_g=yes
4180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4188 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4189 if test $ac_test_CFLAGS; then
4190 CFLAGS=$ac_save_CFLAGS
4191 elif test $ac_cv_prog_cc_g = yes; then
4192 if test "$GCC" = yes; then
4193 CFLAGS="-g -O2"
4194 else
4195 CFLAGS="-g"
4197 else
4198 if test "$GCC" = yes; then
4199 CFLAGS="-O2"
4200 else
4201 CFLAGS=
4204 ac_prog_cc_stdc=no
4205 if test x$ac_prog_cc_stdc = xno
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4208 printf %s "checking for $CC option to enable C11 features... " >&6; }
4209 if test ${ac_cv_prog_cc_c11+y}
4210 then :
4211 printf %s "(cached) " >&6
4212 else $as_nop
4213 ac_cv_prog_cc_c11=no
4214 ac_save_CC=$CC
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 $ac_c_conftest_c11_program
4218 _ACEOF
4219 for ac_arg in '' -std=gnu11
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224 ac_cv_prog_cc_c11=$ac_arg
4226 rm -f core conftest.err conftest.$ac_objext conftest.beam
4227 test "x$ac_cv_prog_cc_c11" != "xno" && break
4228 done
4229 rm -f conftest.$ac_ext
4230 CC=$ac_save_CC
4233 if test "x$ac_cv_prog_cc_c11" = xno
4234 then :
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 printf "%s\n" "unsupported" >&6; }
4237 else $as_nop
4238 if test "x$ac_cv_prog_cc_c11" = x
4239 then :
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 printf "%s\n" "none needed" >&6; }
4242 else $as_nop
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4244 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4245 CC="$CC $ac_cv_prog_cc_c11"
4247 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4248 ac_prog_cc_stdc=c11
4251 if test x$ac_prog_cc_stdc = xno
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4254 printf %s "checking for $CC option to enable C99 features... " >&6; }
4255 if test ${ac_cv_prog_cc_c99+y}
4256 then :
4257 printf %s "(cached) " >&6
4258 else $as_nop
4259 ac_cv_prog_cc_c99=no
4260 ac_save_CC=$CC
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 $ac_c_conftest_c99_program
4264 _ACEOF
4265 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4267 CC="$ac_save_CC $ac_arg"
4268 if ac_fn_c_try_compile "$LINENO"
4269 then :
4270 ac_cv_prog_cc_c99=$ac_arg
4272 rm -f core conftest.err conftest.$ac_objext conftest.beam
4273 test "x$ac_cv_prog_cc_c99" != "xno" && break
4274 done
4275 rm -f conftest.$ac_ext
4276 CC=$ac_save_CC
4279 if test "x$ac_cv_prog_cc_c99" = xno
4280 then :
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 printf "%s\n" "unsupported" >&6; }
4283 else $as_nop
4284 if test "x$ac_cv_prog_cc_c99" = x
4285 then :
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4287 printf "%s\n" "none needed" >&6; }
4288 else $as_nop
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4290 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4291 CC="$CC $ac_cv_prog_cc_c99"
4293 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4294 ac_prog_cc_stdc=c99
4297 if test x$ac_prog_cc_stdc = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4300 printf %s "checking for $CC option to enable C89 features... " >&6; }
4301 if test ${ac_cv_prog_cc_c89+y}
4302 then :
4303 printf %s "(cached) " >&6
4304 else $as_nop
4305 ac_cv_prog_cc_c89=no
4306 ac_save_CC=$CC
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 $ac_c_conftest_c89_program
4310 _ACEOF
4311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4313 CC="$ac_save_CC $ac_arg"
4314 if ac_fn_c_try_compile "$LINENO"
4315 then :
4316 ac_cv_prog_cc_c89=$ac_arg
4318 rm -f core conftest.err conftest.$ac_objext conftest.beam
4319 test "x$ac_cv_prog_cc_c89" != "xno" && break
4320 done
4321 rm -f conftest.$ac_ext
4322 CC=$ac_save_CC
4325 if test "x$ac_cv_prog_cc_c89" = xno
4326 then :
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 printf "%s\n" "unsupported" >&6; }
4329 else $as_nop
4330 if test "x$ac_cv_prog_cc_c89" = x
4331 then :
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4333 printf "%s\n" "none needed" >&6; }
4334 else $as_nop
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4336 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4337 CC="$CC $ac_cv_prog_cc_c89"
4339 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4340 ac_prog_cc_stdc=c89
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 printf %s "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4359 CPP=
4361 if test -z "$CPP"; then
4362 if test ${ac_cv_prog_CPP+y}
4363 then :
4364 printf %s "(cached) " >&6
4365 else $as_nop
4366 # Double quotes because $CC needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4369 ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # On the NeXT, cc -E runs the code through the compiler's parser,
4375 # not just through cpp. "Syntax error" is here to catch this case.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <limits.h>
4379 Syntax error
4380 _ACEOF
4381 if ac_fn_c_try_cpp "$LINENO"
4382 then :
4384 else $as_nop
4385 # Broken: fails on valid input.
4386 continue
4388 rm -f conftest.err conftest.i conftest.$ac_ext
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <ac_nonexistent.h>
4395 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"
4397 then :
4398 # Broken: success on invalid input.
4399 continue
4400 else $as_nop
4401 # Passes both tests.
4402 ac_preproc_ok=:
4403 break
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4407 done
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.i conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok
4411 then :
4412 break
4415 done
4416 ac_cv_prog_CPP=$CPP
4419 CPP=$ac_cv_prog_CPP
4420 else
4421 ac_cv_prog_CPP=$CPP
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4424 printf "%s\n" "$CPP" >&6; }
4425 ac_preproc_ok=false
4426 for ac_c_preproc_warn_flag in '' yes
4428 # Use a header file that comes with gcc, so configuring glibc
4429 # with a fresh cross-compiler works.
4430 # On the NeXT, cc -E runs the code through the compiler's parser,
4431 # not just through cpp. "Syntax error" is here to catch this case.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <limits.h>
4435 Syntax error
4436 _ACEOF
4437 if ac_fn_c_try_cpp "$LINENO"
4438 then :
4440 else $as_nop
4441 # Broken: fails on valid input.
4442 continue
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4446 # OK, works on sane cases. Now check whether nonexistent headers
4447 # can be detected and how.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4451 _ACEOF
4452 if ac_fn_c_try_cpp "$LINENO"
4453 then :
4454 # Broken: success on invalid input.
4455 continue
4456 else $as_nop
4457 # Passes both tests.
4458 ac_preproc_ok=:
4459 break
4461 rm -f conftest.err conftest.i conftest.$ac_ext
4463 done
4464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4465 rm -f conftest.i conftest.err conftest.$ac_ext
4466 if $ac_preproc_ok
4467 then :
4469 else $as_nop
4470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4473 See \`config.log' for more details" "$LINENO" 5; }
4476 ac_ext=c
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 ac_ext=cpp
4489 ac_cpp='$CXXCPP $CPPFLAGS'
4490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4493 if test -z "$CXX"; then
4494 if test -n "$CCC"; then
4495 CXX=$CCC
4496 else
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 printf %s "checking for $ac_word... " >&6; }
4504 if test ${ac_cv_prog_CXX+y}
4505 then :
4506 printf %s "(cached) " >&6
4507 else $as_nop
4508 if test -n "$CXX"; then
4509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 case $as_dir in #(((
4516 '') as_dir=./ ;;
4517 */) ;;
4518 *) as_dir=$as_dir/ ;;
4519 esac
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4528 IFS=$as_save_IFS
4532 CXX=$ac_cv_prog_CXX
4533 if test -n "$CXX"; then
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4535 printf "%s\n" "$CXX" >&6; }
4536 else
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 printf "%s\n" "no" >&6; }
4542 test -n "$CXX" && break
4543 done
4545 if test -z "$CXX"; then
4546 ac_ct_CXX=$CXX
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 printf %s "checking for $ac_word... " >&6; }
4553 if test ${ac_cv_prog_ac_ct_CXX+y}
4554 then :
4555 printf %s "(cached) " >&6
4556 else $as_nop
4557 if test -n "$ac_ct_CXX"; then
4558 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 case $as_dir in #(((
4565 '') as_dir=./ ;;
4566 */) ;;
4567 *) as_dir=$as_dir/ ;;
4568 esac
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_CXX="$ac_prog"
4572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4582 if test -n "$ac_ct_CXX"; then
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4584 printf "%s\n" "$ac_ct_CXX" >&6; }
4585 else
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 printf "%s\n" "no" >&6; }
4591 test -n "$ac_ct_CXX" && break
4592 done
4594 if test "x$ac_ct_CXX" = x; then
4595 CXX="g++"
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603 CXX=$ac_ct_CXX
4609 # Provide some information about the compiler.
4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4611 set X $ac_compile
4612 ac_compiler=$2
4613 for ac_option in --version -v -V -qversion; do
4614 { { ac_try="$ac_compiler $ac_option >&5"
4615 case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 printf "%s\n" "$ac_try_echo"; } >&5
4621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4622 ac_status=$?
4623 if test -s conftest.err; then
4624 sed '10a\
4625 ... rest of stderr output deleted ...
4626 10q' conftest.err >conftest.er1
4627 cat conftest.er1 >&5
4629 rm -f conftest.er1 conftest.err
4630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4632 done
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4635 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4636 if test ${ac_cv_cxx_compiler_gnu+y}
4637 then :
4638 printf %s "(cached) " >&6
4639 else $as_nop
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4644 main (void)
4646 #ifndef __GNUC__
4647 choke me
4648 #endif
4651 return 0;
4653 _ACEOF
4654 if ac_fn_cxx_try_compile "$LINENO"
4655 then :
4656 ac_compiler_gnu=yes
4657 else $as_nop
4658 ac_compiler_gnu=no
4660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4661 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4665 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4668 if test $ac_compiler_gnu = yes; then
4669 GXX=yes
4670 else
4671 GXX=
4673 ac_test_CXXFLAGS=${CXXFLAGS+y}
4674 ac_save_CXXFLAGS=$CXXFLAGS
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676 printf %s "checking whether $CXX accepts -g... " >&6; }
4677 if test ${ac_cv_prog_cxx_g+y}
4678 then :
4679 printf %s "(cached) " >&6
4680 else $as_nop
4681 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4682 ac_cxx_werror_flag=yes
4683 ac_cv_prog_cxx_g=no
4684 CXXFLAGS="-g"
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4689 main (void)
4693 return 0;
4695 _ACEOF
4696 if ac_fn_cxx_try_compile "$LINENO"
4697 then :
4698 ac_cv_prog_cxx_g=yes
4699 else $as_nop
4700 CXXFLAGS=""
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4705 main (void)
4709 return 0;
4711 _ACEOF
4712 if ac_fn_cxx_try_compile "$LINENO"
4713 then :
4715 else $as_nop
4716 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4717 CXXFLAGS="-g"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4722 main (void)
4726 return 0;
4728 _ACEOF
4729 if ac_fn_cxx_try_compile "$LINENO"
4730 then :
4731 ac_cv_prog_cxx_g=yes
4733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4742 if test $ac_test_CXXFLAGS; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4757 ac_prog_cxx_stdcxx=no
4758 if test x$ac_prog_cxx_stdcxx = xno
4759 then :
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4761 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4762 if test ${ac_cv_prog_cxx_cxx11+y}
4763 then :
4764 printf %s "(cached) " >&6
4765 else $as_nop
4766 ac_cv_prog_cxx_cxx11=no
4767 ac_save_CXX=$CXX
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 $ac_cxx_conftest_cxx11_program
4771 _ACEOF
4772 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4774 CXX="$ac_save_CXX $ac_arg"
4775 if ac_fn_cxx_try_compile "$LINENO"
4776 then :
4777 ac_cv_prog_cxx_cxx11=$ac_arg
4779 rm -f core conftest.err conftest.$ac_objext conftest.beam
4780 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4781 done
4782 rm -f conftest.$ac_ext
4783 CXX=$ac_save_CXX
4786 if test "x$ac_cv_prog_cxx_cxx11" = xno
4787 then :
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4789 printf "%s\n" "unsupported" >&6; }
4790 else $as_nop
4791 if test "x$ac_cv_prog_cxx_cxx11" = x
4792 then :
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4794 printf "%s\n" "none needed" >&6; }
4795 else $as_nop
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4797 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4798 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4800 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4801 ac_prog_cxx_stdcxx=cxx11
4804 if test x$ac_prog_cxx_stdcxx = xno
4805 then :
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4807 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4808 if test ${ac_cv_prog_cxx_cxx98+y}
4809 then :
4810 printf %s "(cached) " >&6
4811 else $as_nop
4812 ac_cv_prog_cxx_cxx98=no
4813 ac_save_CXX=$CXX
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 $ac_cxx_conftest_cxx98_program
4817 _ACEOF
4818 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4820 CXX="$ac_save_CXX $ac_arg"
4821 if ac_fn_cxx_try_compile "$LINENO"
4822 then :
4823 ac_cv_prog_cxx_cxx98=$ac_arg
4825 rm -f core conftest.err conftest.$ac_objext conftest.beam
4826 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4827 done
4828 rm -f conftest.$ac_ext
4829 CXX=$ac_save_CXX
4832 if test "x$ac_cv_prog_cxx_cxx98" = xno
4833 then :
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4835 printf "%s\n" "unsupported" >&6; }
4836 else $as_nop
4837 if test "x$ac_cv_prog_cxx_cxx98" = x
4838 then :
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4840 printf "%s\n" "none needed" >&6; }
4841 else $as_nop
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4843 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4844 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4846 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4847 ac_prog_cxx_stdcxx=cxx98
4851 ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858 # Find a good install program. We prefer a C program (faster),
4859 # so one script is as good as another. But avoid the broken or
4860 # incompatible versions:
4861 # SysV /etc/install, /usr/sbin/install
4862 # SunOS /usr/etc/install
4863 # IRIX /sbin/install
4864 # AIX /bin/install
4865 # AmigaOS /C/install, which installs bootblocks on floppy discs
4866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4869 # OS/2's system install, which has a completely different semantic
4870 # ./install, which can be erroneously created by make from ./install.sh.
4871 # Reject install programs that cannot install multiple files.
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4873 printf %s "checking for a BSD-compatible install... " >&6; }
4874 if test -z "$INSTALL"; then
4875 if test ${ac_cv_path_install+y}
4876 then :
4877 printf %s "(cached) " >&6
4878 else $as_nop
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 case $as_dir in #(((
4884 '') as_dir=./ ;;
4885 */) ;;
4886 *) as_dir=$as_dir/ ;;
4887 esac
4888 # Account for fact that we put trailing slashes in our PATH walk.
4889 case $as_dir in #((
4890 ./ | /[cC]/* | \
4891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4892 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4893 /usr/ucb/* ) ;;
4895 # OSF1 and SCO ODT 3.0 have their own names for install.
4896 # Don't use installbsd from OSF since it installs stuff as root
4897 # by default.
4898 for ac_prog in ginstall scoinst install; do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4901 if test $ac_prog = install &&
4902 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4903 # AIX install. It has an incompatible calling convention.
4905 elif test $ac_prog = install &&
4906 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4907 # program-specific install script used by HP pwplus--don't use.
4909 else
4910 rm -rf conftest.one conftest.two conftest.dir
4911 echo one > conftest.one
4912 echo two > conftest.two
4913 mkdir conftest.dir
4914 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4915 test -s conftest.one && test -s conftest.two &&
4916 test -s conftest.dir/conftest.one &&
4917 test -s conftest.dir/conftest.two
4918 then
4919 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4920 break 3
4924 done
4925 done
4927 esac
4929 done
4930 IFS=$as_save_IFS
4932 rm -rf conftest.one conftest.two conftest.dir
4935 if test ${ac_cv_path_install+y}; then
4936 INSTALL=$ac_cv_path_install
4937 else
4938 # As a last resort, use the slow shell script. Don't cache a
4939 # value for INSTALL within a source directory, because that will
4940 # break other packages using the cache if that directory is
4941 # removed, or if the value is a relative name.
4942 INSTALL=$ac_install_sh
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4946 printf "%s\n" "$INSTALL" >&6; }
4948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4949 # It thinks the first close brace ends the variable substitution.
4950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4956 if test -n "$ac_tool_prefix"; then
4957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 printf %s "checking for $ac_word... " >&6; }
4961 if test ${ac_cv_prog_RANLIB+y}
4962 then :
4963 printf %s "(cached) " >&6
4964 else $as_nop
4965 if test -n "$RANLIB"; then
4966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4971 IFS=$as_save_IFS
4972 case $as_dir in #(((
4973 '') as_dir=./ ;;
4974 */) ;;
4975 *) as_dir=$as_dir/ ;;
4976 esac
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 RANLIB=$ac_cv_prog_RANLIB
4990 if test -n "$RANLIB"; then
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4992 printf "%s\n" "$RANLIB" >&6; }
4993 else
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 printf "%s\n" "no" >&6; }
5000 if test -z "$ac_cv_prog_RANLIB"; then
5001 ac_ct_RANLIB=$RANLIB
5002 # Extract the first word of "ranlib", so it can be a program name with args.
5003 set dummy ranlib; ac_word=$2
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 printf %s "checking for $ac_word... " >&6; }
5006 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5007 then :
5008 printf %s "(cached) " >&6
5009 else $as_nop
5010 if test -n "$ac_ct_RANLIB"; then
5011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 case $as_dir in #(((
5018 '') as_dir=./ ;;
5019 */) ;;
5020 *) as_dir=$as_dir/ ;;
5021 esac
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_ac_ct_RANLIB="ranlib"
5025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5030 IFS=$as_save_IFS
5034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5037 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5038 else
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 printf "%s\n" "no" >&6; }
5043 if test "x$ac_ct_RANLIB" = x; then
5044 RANLIB=":"
5045 else
5046 case $cross_compiling:$ac_tool_warned in
5047 yes:)
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050 ac_tool_warned=yes ;;
5051 esac
5052 RANLIB=$ac_ct_RANLIB
5054 else
5055 RANLIB="$ac_cv_prog_RANLIB"
5058 # Extract the first word of "autoconf", so it can be a program name with args.
5059 set dummy autoconf; ac_word=$2
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 printf %s "checking for $ac_word... " >&6; }
5062 if test ${ac_cv_prog_AUTOCONF+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 if test -n "$AUTOCONF"; then
5067 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5072 IFS=$as_save_IFS
5073 case $as_dir in #(((
5074 '') as_dir=./ ;;
5075 */) ;;
5076 *) as_dir=$as_dir/ ;;
5077 esac
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_AUTOCONF="autoconf"
5081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5082 break 2
5084 done
5085 done
5086 IFS=$as_save_IFS
5088 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
5091 AUTOCONF=$ac_cv_prog_AUTOCONF
5092 if test -n "$AUTOCONF"; then
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5094 printf "%s\n" "$AUTOCONF" >&6; }
5095 else
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 printf "%s\n" "no" >&6; }
5101 # Extract the first word of "strip", so it can be a program name with args.
5102 set dummy strip; ac_word=$2
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 printf %s "checking for $ac_word... " >&6; }
5105 if test ${ac_cv_prog_STRIP+y}
5106 then :
5107 printf %s "(cached) " >&6
5108 else $as_nop
5109 if test -n "$STRIP"; then
5110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5115 IFS=$as_save_IFS
5116 case $as_dir in #(((
5117 '') as_dir=./ ;;
5118 */) ;;
5119 *) as_dir=$as_dir/ ;;
5120 esac
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_STRIP="strip"
5124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5125 break 2
5127 done
5128 done
5129 IFS=$as_save_IFS
5131 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5134 STRIP=$ac_cv_prog_STRIP
5135 if test -n "$STRIP"; then
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5137 printf "%s\n" "$STRIP" >&6; }
5138 else
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 printf "%s\n" "no" >&6; }
5144 # Extract the first word of "as", so it can be a program name with args.
5145 set dummy as; ac_word=$2
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 printf %s "checking for $ac_word... " >&6; }
5148 if test ${ac_cv_prog_AS+y}
5149 then :
5150 printf %s "(cached) " >&6
5151 else $as_nop
5152 if test -n "$AS"; then
5153 ac_cv_prog_AS="$AS" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5158 IFS=$as_save_IFS
5159 case $as_dir in #(((
5160 '') as_dir=./ ;;
5161 */) ;;
5162 *) as_dir=$as_dir/ ;;
5163 esac
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_AS="as"
5167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5174 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
5177 AS=$ac_cv_prog_AS
5178 if test -n "$AS"; then
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5180 printf "%s\n" "$AS" >&6; }
5181 else
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 printf "%s\n" "no" >&6; }
5187 # Extract the first word of "cp", so it can be a program name with args.
5188 set dummy cp; ac_word=$2
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 printf %s "checking for $ac_word... " >&6; }
5191 if test ${ac_cv_prog_CP+y}
5192 then :
5193 printf %s "(cached) " >&6
5194 else $as_nop
5195 if test -n "$CP"; then
5196 ac_cv_prog_CP="$CP" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201 IFS=$as_save_IFS
5202 case $as_dir in #(((
5203 '') as_dir=./ ;;
5204 */) ;;
5205 *) as_dir=$as_dir/ ;;
5206 esac
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_CP="cp"
5210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5211 break 2
5213 done
5214 done
5215 IFS=$as_save_IFS
5217 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5220 CP=$ac_cv_prog_CP
5221 if test -n "$CP"; then
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5223 printf "%s\n" "$CP" >&6; }
5224 else
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 printf "%s\n" "no" >&6; }
5230 # Extract the first word of "ar", so it can be a program name with args.
5231 set dummy ar; ac_word=$2
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 printf %s "checking for $ac_word... " >&6; }
5234 if test ${ac_cv_prog_AR+y}
5235 then :
5236 printf %s "(cached) " >&6
5237 else $as_nop
5238 if test -n "$AR"; then
5239 ac_cv_prog_AR="$AR" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5244 IFS=$as_save_IFS
5245 case $as_dir in #(((
5246 '') as_dir=./ ;;
5247 */) ;;
5248 *) as_dir=$as_dir/ ;;
5249 esac
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_AR="ar"
5253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5254 break 2
5256 done
5257 done
5258 IFS=$as_save_IFS
5260 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
5263 AR=$ac_cv_prog_AR
5264 if test -n "$AR"; then
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5266 printf "%s\n" "$AR" >&6; }
5267 else
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 printf "%s\n" "no" >&6; }
5273 # Extract the first word of "gm4", so it can be a program name with args.
5274 set dummy gm4; ac_word=$2
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 printf %s "checking for $ac_word... " >&6; }
5277 if test ${ac_cv_prog_M4+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
5281 if test -n "$M4"; then
5282 ac_cv_prog_M4="$M4" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 case $as_dir in #(((
5289 '') as_dir=./ ;;
5290 */) ;;
5291 *) as_dir=$as_dir/ ;;
5292 esac
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_M4="gm4"
5296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5303 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="m4"
5306 M4=$ac_cv_prog_M4
5307 if test -n "$M4"; then
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5309 printf "%s\n" "$M4" >&6; }
5310 else
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 printf "%s\n" "no" >&6; }
5317 for ac_prog in flex lex
5319 # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 printf %s "checking for $ac_word... " >&6; }
5323 if test ${ac_cv_prog_LEX+y}
5324 then :
5325 printf %s "(cached) " >&6
5326 else $as_nop
5327 if test -n "$LEX"; then
5328 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5333 IFS=$as_save_IFS
5334 case $as_dir in #(((
5335 '') as_dir=./ ;;
5336 */) ;;
5337 *) as_dir=$as_dir/ ;;
5338 esac
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_LEX="$ac_prog"
5342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5351 LEX=$ac_cv_prog_LEX
5352 if test -n "$LEX"; then
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5354 printf "%s\n" "$LEX" >&6; }
5355 else
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 printf "%s\n" "no" >&6; }
5361 test -n "$LEX" && break
5362 done
5363 test -n "$LEX" || LEX=":"
5366 for ac_prog in 'bison -y' byacc yacc
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 printf %s "checking for $ac_word... " >&6; }
5372 if test ${ac_cv_prog_YACC+y}
5373 then :
5374 printf %s "(cached) " >&6
5375 else $as_nop
5376 if test -n "$YACC"; then
5377 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5382 IFS=$as_save_IFS
5383 case $as_dir in #(((
5384 '') as_dir=./ ;;
5385 */) ;;
5386 *) as_dir=$as_dir/ ;;
5387 esac
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_YACC="$ac_prog"
5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5392 break 2
5394 done
5395 done
5396 IFS=$as_save_IFS
5400 YACC=$ac_cv_prog_YACC
5401 if test -n "$YACC"; then
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5403 printf "%s\n" "$YACC" >&6; }
5404 else
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 printf "%s\n" "no" >&6; }
5410 test -n "$YACC" && break
5411 done
5412 test -n "$YACC" || YACC=":"
5415 # 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.
5422 if test -n "$PYTHON"; then
5423 # If the user set $PYTHON, use it and don't search something else.
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
5425 printf %s "checking whether $PYTHON version is >= 2.7... " >&6; }
5426 prog="import sys
5427 # split strings by '.' and convert to numeric. Append some zeros
5428 # because we need at least 4 digits for the hex conversion.
5429 # map returns an iterator in Python 3.0 and a list in 2.x
5430 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5431 minverhex = 0
5432 # xrange is not present in Python 3.0 and range returns an iterator
5433 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5434 sys.exit(sys.hexversion < minverhex)"
5435 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5436 ($PYTHON -c "$prog") >&5 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }
5440 then :
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 printf "%s\n" "yes" >&6; }
5443 else $as_nop
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 printf "%s\n" "no" >&6; }
5446 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5448 am_display_PYTHON=$PYTHON
5449 else
5450 # Otherwise, try each interpreter until we find one that satisfies
5451 # VERSION.
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5453 printf %s "checking for a Python interpreter with version >= 2.7... " >&6; }
5454 if test ${am_cv_pathless_PYTHON+y}
5455 then :
5456 printf %s "(cached) " >&6
5457 else $as_nop
5459 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 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
5460 test "$am_cv_pathless_PYTHON" = none && break
5461 prog="import sys
5462 # split strings by '.' and convert to numeric. Append some zeros
5463 # because we need at least 4 digits for the hex conversion.
5464 # map returns an iterator in Python 3.0 and a list in 2.x
5465 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5466 minverhex = 0
5467 # xrange is not present in Python 3.0 and range returns an iterator
5468 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5469 sys.exit(sys.hexversion < minverhex)"
5470 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5471 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }
5475 then :
5476 break
5478 done
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5481 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5482 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5483 if test "$am_cv_pathless_PYTHON" = none; then
5484 PYTHON=:
5485 else
5486 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5487 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 printf %s "checking for $ac_word... " >&6; }
5490 if test ${ac_cv_path_PYTHON+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else $as_nop
5494 case $PYTHON in
5495 [\\/]* | ?:[\\/]*)
5496 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5502 IFS=$as_save_IFS
5503 case $as_dir in #(((
5504 '') as_dir=./ ;;
5505 */) ;;
5506 *) as_dir=$as_dir/ ;;
5507 esac
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5510 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5519 esac
5521 PYTHON=$ac_cv_path_PYTHON
5522 if test -n "$PYTHON"; then
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5524 printf "%s\n" "$PYTHON" >&6; }
5525 else
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 printf "%s\n" "no" >&6; }
5532 am_display_PYTHON=$am_cv_pathless_PYTHON
5536 if test "$PYTHON" = :; then
5538 else
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5541 printf %s "checking for $am_display_PYTHON version... " >&6; }
5542 if test ${am_cv_python_version+y}
5543 then :
5544 printf %s "(cached) " >&6
5545 else $as_nop
5546 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5549 printf "%s\n" "$am_cv_python_version" >&6; }
5550 PYTHON_VERSION=$am_cv_python_version
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5554 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5555 if test ${am_cv_python_platform+y}
5556 then :
5557 printf %s "(cached) " >&6
5558 else $as_nop
5559 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5562 printf "%s\n" "$am_cv_python_platform" >&6; }
5563 PYTHON_PLATFORM=$am_cv_python_platform
5566 if test "x$prefix" = xNONE; then
5567 am__usable_prefix=$ac_default_prefix
5568 else
5569 am__usable_prefix=$prefix
5572 # Allow user to request using sys.* values from Python,
5573 # instead of the GNU $prefix values.
5575 # Check whether --with-python-sys-prefix was given.
5576 if test ${with_python_sys_prefix+y}
5577 then :
5578 withval=$with_python_sys_prefix; am_use_python_sys=:
5579 else $as_nop
5580 am_use_python_sys=false
5584 # Allow user to override whatever the default Python prefix is.
5586 # Check whether --with-python_prefix was given.
5587 if test ${with_python_prefix+y}
5588 then :
5589 withval=$with_python_prefix; am_python_prefix_subst=$withval
5590 am_cv_python_prefix=$withval
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5592 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5594 printf "%s\n" "$am_cv_python_prefix" >&6; }
5595 else $as_nop
5597 if $am_use_python_sys; then
5598 # using python sys.prefix value, not GNU
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5600 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5601 if test ${am_cv_python_prefix+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else $as_nop
5605 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5608 printf "%s\n" "$am_cv_python_prefix" >&6; }
5610 case $am_cv_python_prefix in
5611 $am__usable_prefix*)
5612 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
5613 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
5616 am_python_prefix_subst=$am_cv_python_prefix
5618 esac
5619 else # using GNU prefix value, not python sys.prefix
5620 am_python_prefix_subst='${prefix}'
5621 am_python_prefix=$am_python_prefix_subst
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5623 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5625 printf "%s\n" "$am_python_prefix" >&6; }
5629 # Substituting python_prefix_subst value.
5630 PYTHON_PREFIX=$am_python_prefix_subst
5633 # emacs-page Now do it all over again for Python exec_prefix, but with yet
5634 # another conditional: fall back to regular prefix if that was specified.
5636 # Check whether --with-python_exec_prefix was given.
5637 if test ${with_python_exec_prefix+y}
5638 then :
5639 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5640 am_cv_python_exec_prefix=$withval
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5642 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5644 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5645 else $as_nop
5647 # no explicit --with-python_exec_prefix, but if
5648 # --with-python_prefix was given, use its value for python_exec_prefix too.
5649 if test -n "$with_python_prefix"
5650 then :
5651 am_python_exec_prefix_subst=$with_python_prefix
5652 am_cv_python_exec_prefix=$with_python_prefix
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5654 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5656 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5657 else $as_nop
5659 # Set am__usable_exec_prefix whether using GNU or Python values,
5660 # since we use that variable for pyexecdir.
5661 if test "x$exec_prefix" = xNONE; then
5662 am__usable_exec_prefix=$am__usable_prefix
5663 else
5664 am__usable_exec_prefix=$exec_prefix
5667 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5669 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5670 if test ${am_cv_python_exec_prefix+y}
5671 then :
5672 printf %s "(cached) " >&6
5673 else $as_nop
5674 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5677 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5678 case $am_cv_python_exec_prefix in
5679 $am__usable_exec_prefix*)
5680 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
5681 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5684 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5686 esac
5687 else # using GNU $exec_prefix, not python sys.exec_prefix
5688 am_python_exec_prefix_subst='${exec_prefix}'
5689 am_python_exec_prefix=$am_python_exec_prefix_subst
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5691 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5693 printf "%s\n" "$am_python_exec_prefix" >&6; }
5698 # Substituting python_exec_prefix_subst.
5699 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5702 # Factor out some code duplication into this shell variable.
5703 am_python_setup_sysconfig="\
5704 import sys
5705 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5706 # with python 3.x. See automake bug#10227.
5707 try:
5708 import sysconfig
5709 except ImportError:
5710 can_use_sysconfig = 0
5711 else:
5712 can_use_sysconfig = 1
5713 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5714 # <https://github.com/pypa/virtualenv/issues/118>
5715 try:
5716 from platform import python_implementation
5717 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5718 can_use_sysconfig = 0
5719 except ImportError:
5720 pass"
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5724 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5725 if test ${am_cv_python_pythondir+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else $as_nop
5729 if test "x$am_cv_python_prefix" = x; then
5730 am_py_prefix=$am__usable_prefix
5731 else
5732 am_py_prefix=$am_cv_python_prefix
5734 am_cv_python_pythondir=`$PYTHON -c "
5735 $am_python_setup_sysconfig
5736 if can_use_sysconfig:
5737 if hasattr(sysconfig, 'get_default_scheme'):
5738 scheme = sysconfig.get_default_scheme()
5739 else:
5740 scheme = sysconfig._get_default_scheme()
5741 if scheme == 'posix_local':
5742 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5743 scheme = 'posix_prefix'
5744 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
5745 else:
5746 from distutils import sysconfig
5747 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5748 sys.stdout.write(sitedir)"`
5750 case $am_cv_python_pythondir in
5751 $am_py_prefix*)
5752 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5753 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5756 case $am_py_prefix in
5757 /usr|/System*) ;;
5758 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5760 esac
5762 esac
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5766 printf "%s\n" "$am_cv_python_pythondir" >&6; }
5767 pythondir=$am_cv_python_pythondir
5770 pkgpythondir=\${pythondir}/$PACKAGE
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
5774 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
5775 if test ${am_cv_python_pyexecdir+y}
5776 then :
5777 printf %s "(cached) " >&6
5778 else $as_nop
5779 if test "x$am_cv_python_exec_prefix" = x; then
5780 am_py_exec_prefix=$am__usable_exec_prefix
5781 else
5782 am_py_exec_prefix=$am_cv_python_exec_prefix
5784 am_cv_python_pyexecdir=`$PYTHON -c "
5785 $am_python_setup_sysconfig
5786 if can_use_sysconfig:
5787 if hasattr(sysconfig, 'get_default_scheme'):
5788 scheme = sysconfig.get_default_scheme()
5789 else:
5790 scheme = sysconfig._get_default_scheme()
5791 if scheme == 'posix_local':
5792 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5793 scheme = 'posix_prefix'
5794 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
5795 else:
5796 from distutils import sysconfig
5797 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
5798 sys.stdout.write(sitedir)"`
5800 case $am_cv_python_pyexecdir in
5801 $am_py_exec_prefix*)
5802 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5803 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
5806 case $am_py_exec_prefix in
5807 /usr|/System*) ;;
5808 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5810 esac
5812 esac
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5816 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
5817 pyexecdir=$am_cv_python_pyexecdir
5820 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5829 if test "$YACC" = ":"; then
5830 as_fn_error $? "Cannot find required program bison." "$LINENO" 5
5833 if test "$LEX" = ":"; then
5834 as_fn_error $? "Cannot find required program flex." "$LINENO" 5
5838 ac_ext=c
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 ac_header= ac_cache=
5847 for ac_item in $ac_header_c_list
5849 if test $ac_cache; then
5850 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5851 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5852 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5854 ac_header= ac_cache=
5855 elif test $ac_header; then
5856 ac_cache=$ac_item
5857 else
5858 ac_header=$ac_item
5860 done
5869 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5870 then :
5872 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5875 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5876 if test "x$ac_cv_header_endian_h" = xyes
5877 then :
5878 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5881 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5882 if test "x$ac_cv_header_sys_endian_h" = xyes
5883 then :
5884 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5887 ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
5888 if test "x$ac_cv_header_machine_endian_h" = xyes
5889 then :
5890 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
5893 ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
5894 if test "x$ac_cv_header_sys_isa_defs_h" = xyes
5895 then :
5896 printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
5900 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
5901 if test "x$ac_cv_header_uchar_h" = xyes
5902 then :
5903 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
5907 # zlib is not needed by sdcc itself, but by sdcpp and sdbinutils.
5908 for ac_header in zlib.h
5909 do :
5910 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5911 if test "x$ac_cv_header_zlib_h" = xyes
5912 then :
5913 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
5915 else $as_nop
5916 as_fn_error $? "zlib library not found (zlib.h)." "$LINENO" 5
5919 done
5920 ac_ext=cpp
5921 ac_cpp='$CXXCPP $CPPFLAGS'
5922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5927 for ac_header in treedec/combinations.hpp
5928 do :
5929 ac_fn_cxx_check_header_compile "$LINENO" "treedec/combinations.hpp" "ac_cv_header_treedec_combinations_hpp" "$ac_includes_default"
5930 if test "x$ac_cv_header_treedec_combinations_hpp" = xyes
5931 then :
5932 printf "%s\n" "#define HAVE_TREEDEC_COMBINATIONS_HPP 1" >>confdefs.h
5934 else $as_nop
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: treedec library missing, falling back to Thorup." >&5
5936 printf "%s\n" "$as_me: treedec library missing, falling back to Thorup." >&6;}
5939 done
5940 ac_fn_cxx_check_header_compile "$LINENO" "gala/graph.h" "ac_cv_header_gala_graph_h" "$ac_includes_default"
5941 if test "x$ac_cv_header_gala_graph_h" = xyes
5942 then :
5943 printf "%s\n" "#define HAVE_GALA_GRAPH_H 1" >>confdefs.h
5947 for ac_header in boost/graph/adjacency_list.hpp
5948 do :
5949 ac_fn_cxx_check_header_compile "$LINENO" "boost/graph/adjacency_list.hpp" "ac_cv_header_boost_graph_adjacency_list_hpp" "$ac_includes_default"
5950 if test "x$ac_cv_header_boost_graph_adjacency_list_hpp" = xyes
5951 then :
5952 printf "%s\n" "#define HAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP 1" >>confdefs.h
5954 else $as_nop
5955 as_fn_error $? "boost library not found (boost/graph/adjacency_list.hpp)." "$LINENO" 5
5958 done
5959 ac_ext=c
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967 # Check whether --with-ccache was given.
5968 if test ${with_ccache+y}
5969 then :
5970 withval=$with_ccache;
5973 case x${with_ccache-yes} in
5974 xyes) # Extract the first word of "ccache", so it can be a program name with args.
5975 set dummy ccache; ac_word=$2
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 printf %s "checking for $ac_word... " >&6; }
5978 if test ${ac_cv_prog_CCACHE+y}
5979 then :
5980 printf %s "(cached) " >&6
5981 else $as_nop
5982 if test -n "$CCACHE"; then
5983 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5988 IFS=$as_save_IFS
5989 case $as_dir in #(((
5990 '') as_dir=./ ;;
5991 */) ;;
5992 *) as_dir=$as_dir/ ;;
5993 esac
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_CCACHE="ccache"
5997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5998 break 2
6000 done
6001 done
6002 IFS=$as_save_IFS
6006 CCACHE=$ac_cv_prog_CCACHE
6007 if test -n "$CCACHE"; then
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6009 printf "%s\n" "$CCACHE" >&6; }
6010 else
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 printf "%s\n" "no" >&6; }
6016 xno) ;;
6017 *) CCACHE=$with_ccache
6019 esac
6022 # Checking for functions
6023 # ===========================================================================
6024 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
6025 if test "x$ac_cv_func_mkstemp" = xyes
6026 then :
6027 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
6030 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
6031 if test "x$ac_cv_func_strndup" = xyes
6032 then :
6033 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
6036 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6037 if test "x$ac_cv_func_setrlimit" = xyes
6038 then :
6039 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6042 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
6043 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes
6044 then :
6045 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS_FD 1" >>confdefs.h
6051 # Macro definitions
6052 # ===========================================================================
6054 # _sdcc_EXECUTE_IFELSE_BODY(COMMAND)
6055 # -----------------------
6056 # Shell function body for _AC_EXECUTE_IFELSE.
6057 # _sdcc_EXECUTE_IFELSE_BODY
6059 # sdcc_EXECUTE_IFELSE(COMMAND[ACTION-IF-TRUE], [ACTION-IF-FALSE])
6060 # ----------------------------------------------------------------
6061 # Try to execute COMMAND.
6062 # sdcc_EXECUTE_IFELSE
6064 # Check whether the compiler for the current language is SunPRO.
6068 # sdcc_IS_VALID_OPTION macro checks if the current compiler, selected by
6069 # AC_LANG, supports option specified as the 1st parameter. The test fails if
6070 # the compiler returns an error or in case something is writeen to stderr.
6071 # For example: sdcc_VALID_OPT(-fPIC)
6075 # This macro expands DIR and assigns it to RET.
6076 # If DIR is NONE, then it's replaced by DEFAULT.
6078 # Based on AC_DEFINE_DIR
6080 # Examples:
6082 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
6086 # adl_NORMALIZE_PATH
6088 # - empty paths are changed to '.'
6089 # - trailing slashes are removed
6090 # - repeated slashes are squeezed except a leading doubled slash '//'
6091 # (which might indicate a networked disk on some OS).
6094 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
6095 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
6096 # are turned into backslashes, otherwise they are all turned into slashes.
6098 # This makes processing of DOS filenames quite easier, because you can turn a
6099 # filename to the Unix notation, make your processing, and turn it back to
6100 # original notation.
6105 # adl_COMPUTE_RELATIVE_PATH
6107 # PATH_LIST is a space-separated list of colon-separated triplets of the form
6108 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
6109 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
6110 # absolute filenames for this macro to success.
6114 ## Note:
6115 ## *****
6116 ## The following helper macros are too fragile to be used out
6117 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
6118 ## paths are normalized), that's why I'm keeping them in the same file.
6119 ## Still, some of them maybe worth to reuse.
6136 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6137 ac_ext=cpp
6138 ac_cpp='$CXXCPP $CPPFLAGS'
6139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142 ac_success=no
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6145 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
6146 if test ${ax_cv_cxx_compile_cxx11+y}
6147 then :
6148 printf %s "(cached) " >&6
6149 else $as_nop
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6154 // If the compiler admits that it is not ready for C++11, why torture it?
6155 // Hopefully, this will speed up the test.
6157 #ifndef __cplusplus
6159 #error "This is not a C++ compiler"
6161 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6162 // only set it correctly if /Zc:__cplusplus is specified as well as a
6163 // /std:c++NN switch:
6164 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6165 #elif __cplusplus < 201103L && !defined _MSC_VER
6167 #error "This is not a C++11 compiler"
6169 #else
6171 namespace cxx11
6174 namespace test_static_assert
6177 template <typename T>
6178 struct check
6180 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6185 namespace test_final_override
6188 struct Base
6190 virtual ~Base() {}
6191 virtual void f() {}
6194 struct Derived : public Base
6196 virtual ~Derived() override {}
6197 virtual void f() override {}
6202 namespace test_double_right_angle_brackets
6205 template < typename T >
6206 struct check {};
6208 typedef check<void> single_type;
6209 typedef check<check<void>> double_type;
6210 typedef check<check<check<void>>> triple_type;
6211 typedef check<check<check<check<void>>>> quadruple_type;
6215 namespace test_decltype
6221 int a = 1;
6222 decltype(a) b = 2;
6223 return a + b;
6228 namespace test_type_deduction
6231 template < typename T1, typename T2 >
6232 struct is_same
6234 static const bool value = false;
6237 template < typename T >
6238 struct is_same<T, T>
6240 static const bool value = true;
6243 template < typename T1, typename T2 >
6244 auto
6245 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6247 return a1 + a2;
6251 test(const int c, volatile int v)
6253 static_assert(is_same<int, decltype(0)>::value == true, "");
6254 static_assert(is_same<int, decltype(c)>::value == false, "");
6255 static_assert(is_same<int, decltype(v)>::value == false, "");
6256 auto ac = c;
6257 auto av = v;
6258 auto sumi = ac + av + 'x';
6259 auto sumf = ac + av + 1.0;
6260 static_assert(is_same<int, decltype(ac)>::value == true, "");
6261 static_assert(is_same<int, decltype(av)>::value == true, "");
6262 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6263 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6264 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6265 return (sumf > 0.0) ? sumi : add(c, v);
6270 namespace test_noexcept
6273 int f() { return 0; }
6274 int g() noexcept { return 0; }
6276 static_assert(noexcept(f()) == false, "");
6277 static_assert(noexcept(g()) == true, "");
6281 namespace test_constexpr
6284 template < typename CharT >
6285 unsigned long constexpr
6286 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6288 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6291 template < typename CharT >
6292 unsigned long constexpr
6293 strlen_c(const CharT *const s) noexcept
6295 return strlen_c_r(s, 0UL);
6298 static_assert(strlen_c("") == 0UL, "");
6299 static_assert(strlen_c("1") == 1UL, "");
6300 static_assert(strlen_c("example") == 7UL, "");
6301 static_assert(strlen_c("another\0example") == 7UL, "");
6305 namespace test_rvalue_references
6308 template < int N >
6309 struct answer
6311 static constexpr int value = N;
6314 answer<1> f(int&) { return answer<1>(); }
6315 answer<2> f(const int&) { return answer<2>(); }
6316 answer<3> f(int&&) { return answer<3>(); }
6318 void
6319 test()
6321 int i = 0;
6322 const int c = 0;
6323 static_assert(decltype(f(i))::value == 1, "");
6324 static_assert(decltype(f(c))::value == 2, "");
6325 static_assert(decltype(f(0))::value == 3, "");
6330 namespace test_uniform_initialization
6333 struct test
6335 static const int zero {};
6336 static const int one {1};
6339 static_assert(test::zero == 0, "");
6340 static_assert(test::one == 1, "");
6344 namespace test_lambdas
6347 void
6348 test1()
6350 auto lambda1 = [](){};
6351 auto lambda2 = lambda1;
6352 lambda1();
6353 lambda2();
6357 test2()
6359 auto a = [](int i, int j){ return i + j; }(1, 2);
6360 auto b = []() -> int { return '0'; }();
6361 auto c = [=](){ return a + b; }();
6362 auto d = [&](){ return c; }();
6363 auto e = [a, &b](int x) mutable {
6364 const auto identity = [](int y){ return y; };
6365 for (auto i = 0; i < a; ++i)
6366 a += b--;
6367 return x + identity(a + b);
6368 }(0);
6369 return a + b + c + d + e;
6373 test3()
6375 const auto nullary = [](){ return 0; };
6376 const auto unary = [](int x){ return x; };
6377 using nullary_t = decltype(nullary);
6378 using unary_t = decltype(unary);
6379 const auto higher1st = [](nullary_t f){ return f(); };
6380 const auto higher2nd = [unary](nullary_t f1){
6381 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6383 return higher1st(nullary) + higher2nd(nullary)(unary);
6388 namespace test_variadic_templates
6391 template <int...>
6392 struct sum;
6394 template <int N0, int... N1toN>
6395 struct sum<N0, N1toN...>
6397 static constexpr auto value = N0 + sum<N1toN...>::value;
6400 template <>
6401 struct sum<>
6403 static constexpr auto value = 0;
6406 static_assert(sum<>::value == 0, "");
6407 static_assert(sum<1>::value == 1, "");
6408 static_assert(sum<23>::value == 23, "");
6409 static_assert(sum<1, 2>::value == 3, "");
6410 static_assert(sum<5, 5, 11>::value == 21, "");
6411 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6415 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6416 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6417 // because of this.
6418 namespace test_template_alias_sfinae
6421 struct foo {};
6423 template<typename T>
6424 using member = typename T::member_type;
6426 template<typename T>
6427 void func(...) {}
6429 template<typename T>
6430 void func(member<T>*) {}
6432 void test();
6434 void test() { func<foo>(0); }
6438 } // namespace cxx11
6440 #endif // __cplusplus >= 201103L
6444 _ACEOF
6445 if ac_fn_cxx_try_compile "$LINENO"
6446 then :
6447 ax_cv_cxx_compile_cxx11=yes
6448 else $as_nop
6449 ax_cv_cxx_compile_cxx11=no
6451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6454 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
6455 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6456 ac_success=yes
6459 if test x$ac_success = xno; then
6460 for alternative in ${ax_cxx_compile_alternatives}; do
6461 switch="-std=gnu++${alternative}"
6462 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6464 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6465 if eval test \${$cachevar+y}
6466 then :
6467 printf %s "(cached) " >&6
6468 else $as_nop
6469 ac_save_CXX="$CXX"
6470 CXX="$CXX $switch"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6475 // If the compiler admits that it is not ready for C++11, why torture it?
6476 // Hopefully, this will speed up the test.
6478 #ifndef __cplusplus
6480 #error "This is not a C++ compiler"
6482 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6483 // only set it correctly if /Zc:__cplusplus is specified as well as a
6484 // /std:c++NN switch:
6485 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6486 #elif __cplusplus < 201103L && !defined _MSC_VER
6488 #error "This is not a C++11 compiler"
6490 #else
6492 namespace cxx11
6495 namespace test_static_assert
6498 template <typename T>
6499 struct check
6501 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6506 namespace test_final_override
6509 struct Base
6511 virtual ~Base() {}
6512 virtual void f() {}
6515 struct Derived : public Base
6517 virtual ~Derived() override {}
6518 virtual void f() override {}
6523 namespace test_double_right_angle_brackets
6526 template < typename T >
6527 struct check {};
6529 typedef check<void> single_type;
6530 typedef check<check<void>> double_type;
6531 typedef check<check<check<void>>> triple_type;
6532 typedef check<check<check<check<void>>>> quadruple_type;
6536 namespace test_decltype
6542 int a = 1;
6543 decltype(a) b = 2;
6544 return a + b;
6549 namespace test_type_deduction
6552 template < typename T1, typename T2 >
6553 struct is_same
6555 static const bool value = false;
6558 template < typename T >
6559 struct is_same<T, T>
6561 static const bool value = true;
6564 template < typename T1, typename T2 >
6565 auto
6566 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6568 return a1 + a2;
6572 test(const int c, volatile int v)
6574 static_assert(is_same<int, decltype(0)>::value == true, "");
6575 static_assert(is_same<int, decltype(c)>::value == false, "");
6576 static_assert(is_same<int, decltype(v)>::value == false, "");
6577 auto ac = c;
6578 auto av = v;
6579 auto sumi = ac + av + 'x';
6580 auto sumf = ac + av + 1.0;
6581 static_assert(is_same<int, decltype(ac)>::value == true, "");
6582 static_assert(is_same<int, decltype(av)>::value == true, "");
6583 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6584 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6585 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6586 return (sumf > 0.0) ? sumi : add(c, v);
6591 namespace test_noexcept
6594 int f() { return 0; }
6595 int g() noexcept { return 0; }
6597 static_assert(noexcept(f()) == false, "");
6598 static_assert(noexcept(g()) == true, "");
6602 namespace test_constexpr
6605 template < typename CharT >
6606 unsigned long constexpr
6607 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6609 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6612 template < typename CharT >
6613 unsigned long constexpr
6614 strlen_c(const CharT *const s) noexcept
6616 return strlen_c_r(s, 0UL);
6619 static_assert(strlen_c("") == 0UL, "");
6620 static_assert(strlen_c("1") == 1UL, "");
6621 static_assert(strlen_c("example") == 7UL, "");
6622 static_assert(strlen_c("another\0example") == 7UL, "");
6626 namespace test_rvalue_references
6629 template < int N >
6630 struct answer
6632 static constexpr int value = N;
6635 answer<1> f(int&) { return answer<1>(); }
6636 answer<2> f(const int&) { return answer<2>(); }
6637 answer<3> f(int&&) { return answer<3>(); }
6639 void
6640 test()
6642 int i = 0;
6643 const int c = 0;
6644 static_assert(decltype(f(i))::value == 1, "");
6645 static_assert(decltype(f(c))::value == 2, "");
6646 static_assert(decltype(f(0))::value == 3, "");
6651 namespace test_uniform_initialization
6654 struct test
6656 static const int zero {};
6657 static const int one {1};
6660 static_assert(test::zero == 0, "");
6661 static_assert(test::one == 1, "");
6665 namespace test_lambdas
6668 void
6669 test1()
6671 auto lambda1 = [](){};
6672 auto lambda2 = lambda1;
6673 lambda1();
6674 lambda2();
6678 test2()
6680 auto a = [](int i, int j){ return i + j; }(1, 2);
6681 auto b = []() -> int { return '0'; }();
6682 auto c = [=](){ return a + b; }();
6683 auto d = [&](){ return c; }();
6684 auto e = [a, &b](int x) mutable {
6685 const auto identity = [](int y){ return y; };
6686 for (auto i = 0; i < a; ++i)
6687 a += b--;
6688 return x + identity(a + b);
6689 }(0);
6690 return a + b + c + d + e;
6694 test3()
6696 const auto nullary = [](){ return 0; };
6697 const auto unary = [](int x){ return x; };
6698 using nullary_t = decltype(nullary);
6699 using unary_t = decltype(unary);
6700 const auto higher1st = [](nullary_t f){ return f(); };
6701 const auto higher2nd = [unary](nullary_t f1){
6702 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6704 return higher1st(nullary) + higher2nd(nullary)(unary);
6709 namespace test_variadic_templates
6712 template <int...>
6713 struct sum;
6715 template <int N0, int... N1toN>
6716 struct sum<N0, N1toN...>
6718 static constexpr auto value = N0 + sum<N1toN...>::value;
6721 template <>
6722 struct sum<>
6724 static constexpr auto value = 0;
6727 static_assert(sum<>::value == 0, "");
6728 static_assert(sum<1>::value == 1, "");
6729 static_assert(sum<23>::value == 23, "");
6730 static_assert(sum<1, 2>::value == 3, "");
6731 static_assert(sum<5, 5, 11>::value == 21, "");
6732 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6736 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6737 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6738 // because of this.
6739 namespace test_template_alias_sfinae
6742 struct foo {};
6744 template<typename T>
6745 using member = typename T::member_type;
6747 template<typename T>
6748 void func(...) {}
6750 template<typename T>
6751 void func(member<T>*) {}
6753 void test();
6755 void test() { func<foo>(0); }
6759 } // namespace cxx11
6761 #endif // __cplusplus >= 201103L
6765 _ACEOF
6766 if ac_fn_cxx_try_compile "$LINENO"
6767 then :
6768 eval $cachevar=yes
6769 else $as_nop
6770 eval $cachevar=no
6772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6773 CXX="$ac_save_CXX"
6775 eval ac_res=\$$cachevar
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6777 printf "%s\n" "$ac_res" >&6; }
6778 if eval test x\$$cachevar = xyes; then
6779 CXX="$CXX $switch"
6780 if test -n "$CXXCPP" ; then
6781 CXXCPP="$CXXCPP $switch"
6783 ac_success=yes
6784 break
6786 done
6789 if test x$ac_success = xno; then
6790 for alternative in ${ax_cxx_compile_alternatives}; do
6791 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6792 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6794 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6795 if eval test \${$cachevar+y}
6796 then :
6797 printf %s "(cached) " >&6
6798 else $as_nop
6799 ac_save_CXX="$CXX"
6800 CXX="$CXX $switch"
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6805 // If the compiler admits that it is not ready for C++11, why torture it?
6806 // Hopefully, this will speed up the test.
6808 #ifndef __cplusplus
6810 #error "This is not a C++ compiler"
6812 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6813 // only set it correctly if /Zc:__cplusplus is specified as well as a
6814 // /std:c++NN switch:
6815 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6816 #elif __cplusplus < 201103L && !defined _MSC_VER
6818 #error "This is not a C++11 compiler"
6820 #else
6822 namespace cxx11
6825 namespace test_static_assert
6828 template <typename T>
6829 struct check
6831 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6836 namespace test_final_override
6839 struct Base
6841 virtual ~Base() {}
6842 virtual void f() {}
6845 struct Derived : public Base
6847 virtual ~Derived() override {}
6848 virtual void f() override {}
6853 namespace test_double_right_angle_brackets
6856 template < typename T >
6857 struct check {};
6859 typedef check<void> single_type;
6860 typedef check<check<void>> double_type;
6861 typedef check<check<check<void>>> triple_type;
6862 typedef check<check<check<check<void>>>> quadruple_type;
6866 namespace test_decltype
6872 int a = 1;
6873 decltype(a) b = 2;
6874 return a + b;
6879 namespace test_type_deduction
6882 template < typename T1, typename T2 >
6883 struct is_same
6885 static const bool value = false;
6888 template < typename T >
6889 struct is_same<T, T>
6891 static const bool value = true;
6894 template < typename T1, typename T2 >
6895 auto
6896 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6898 return a1 + a2;
6902 test(const int c, volatile int v)
6904 static_assert(is_same<int, decltype(0)>::value == true, "");
6905 static_assert(is_same<int, decltype(c)>::value == false, "");
6906 static_assert(is_same<int, decltype(v)>::value == false, "");
6907 auto ac = c;
6908 auto av = v;
6909 auto sumi = ac + av + 'x';
6910 auto sumf = ac + av + 1.0;
6911 static_assert(is_same<int, decltype(ac)>::value == true, "");
6912 static_assert(is_same<int, decltype(av)>::value == true, "");
6913 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6914 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6915 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6916 return (sumf > 0.0) ? sumi : add(c, v);
6921 namespace test_noexcept
6924 int f() { return 0; }
6925 int g() noexcept { return 0; }
6927 static_assert(noexcept(f()) == false, "");
6928 static_assert(noexcept(g()) == true, "");
6932 namespace test_constexpr
6935 template < typename CharT >
6936 unsigned long constexpr
6937 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6939 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6942 template < typename CharT >
6943 unsigned long constexpr
6944 strlen_c(const CharT *const s) noexcept
6946 return strlen_c_r(s, 0UL);
6949 static_assert(strlen_c("") == 0UL, "");
6950 static_assert(strlen_c("1") == 1UL, "");
6951 static_assert(strlen_c("example") == 7UL, "");
6952 static_assert(strlen_c("another\0example") == 7UL, "");
6956 namespace test_rvalue_references
6959 template < int N >
6960 struct answer
6962 static constexpr int value = N;
6965 answer<1> f(int&) { return answer<1>(); }
6966 answer<2> f(const int&) { return answer<2>(); }
6967 answer<3> f(int&&) { return answer<3>(); }
6969 void
6970 test()
6972 int i = 0;
6973 const int c = 0;
6974 static_assert(decltype(f(i))::value == 1, "");
6975 static_assert(decltype(f(c))::value == 2, "");
6976 static_assert(decltype(f(0))::value == 3, "");
6981 namespace test_uniform_initialization
6984 struct test
6986 static const int zero {};
6987 static const int one {1};
6990 static_assert(test::zero == 0, "");
6991 static_assert(test::one == 1, "");
6995 namespace test_lambdas
6998 void
6999 test1()
7001 auto lambda1 = [](){};
7002 auto lambda2 = lambda1;
7003 lambda1();
7004 lambda2();
7008 test2()
7010 auto a = [](int i, int j){ return i + j; }(1, 2);
7011 auto b = []() -> int { return '0'; }();
7012 auto c = [=](){ return a + b; }();
7013 auto d = [&](){ return c; }();
7014 auto e = [a, &b](int x) mutable {
7015 const auto identity = [](int y){ return y; };
7016 for (auto i = 0; i < a; ++i)
7017 a += b--;
7018 return x + identity(a + b);
7019 }(0);
7020 return a + b + c + d + e;
7024 test3()
7026 const auto nullary = [](){ return 0; };
7027 const auto unary = [](int x){ return x; };
7028 using nullary_t = decltype(nullary);
7029 using unary_t = decltype(unary);
7030 const auto higher1st = [](nullary_t f){ return f(); };
7031 const auto higher2nd = [unary](nullary_t f1){
7032 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7034 return higher1st(nullary) + higher2nd(nullary)(unary);
7039 namespace test_variadic_templates
7042 template <int...>
7043 struct sum;
7045 template <int N0, int... N1toN>
7046 struct sum<N0, N1toN...>
7048 static constexpr auto value = N0 + sum<N1toN...>::value;
7051 template <>
7052 struct sum<>
7054 static constexpr auto value = 0;
7057 static_assert(sum<>::value == 0, "");
7058 static_assert(sum<1>::value == 1, "");
7059 static_assert(sum<23>::value == 23, "");
7060 static_assert(sum<1, 2>::value == 3, "");
7061 static_assert(sum<5, 5, 11>::value == 21, "");
7062 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7066 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7067 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7068 // because of this.
7069 namespace test_template_alias_sfinae
7072 struct foo {};
7074 template<typename T>
7075 using member = typename T::member_type;
7077 template<typename T>
7078 void func(...) {}
7080 template<typename T>
7081 void func(member<T>*) {}
7083 void test();
7085 void test() { func<foo>(0); }
7089 } // namespace cxx11
7091 #endif // __cplusplus >= 201103L
7095 _ACEOF
7096 if ac_fn_cxx_try_compile "$LINENO"
7097 then :
7098 eval $cachevar=yes
7099 else $as_nop
7100 eval $cachevar=no
7102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7103 CXX="$ac_save_CXX"
7105 eval ac_res=\$$cachevar
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7107 printf "%s\n" "$ac_res" >&6; }
7108 if eval test x\$$cachevar = xyes; then
7109 CXX="$CXX $switch"
7110 if test -n "$CXXCPP" ; then
7111 CXXCPP="$CXXCPP $switch"
7113 ac_success=yes
7114 break
7116 done
7117 if test x$ac_success = xyes; then
7118 break
7120 done
7122 ac_ext=c
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7128 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7129 if test x$ac_success = xno; then
7130 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7133 if test x$ac_success = xno; then
7134 HAVE_CXX11=0
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7136 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
7137 else
7138 HAVE_CXX11=1
7140 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
7146 # Checking characteristics of compilers and other programs
7147 # ===========================================================================
7148 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
7150 printf %s "checking whether preprocessor accepts -MM or -M... " >&6; }
7151 if test ${sdcc_cv_MM+y}
7152 then :
7153 printf %s "(cached) " >&6
7154 else $as_nop
7155 echo "#include <stdio.h>" >_test_.c
7156 echo "" >>_test_.c
7157 $CPP -v -MM _test_.c 1>&5 2>&5
7158 if test "$?" = "0"; then
7159 sdcc_cv_MM="-MM"
7160 else
7161 sdcc_cv_MM="-M"
7163 rm -f _test_.*
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
7166 printf "%s\n" "$sdcc_cv_MM" >&6; }
7168 # This is the first time when CFLAGS are set/modified!!
7169 arg1=`echo -ggdb | sed -e"s/^-*//" -e"s/-/_/"`
7170 ac_test_CFLAGS=${CFLAGS+set}
7171 sdcc_save_CFLAGS=$CFLAGS
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -ggdb" >&5
7173 printf %s "checking whether C accepts -ggdb... " >&6; }
7174 if eval test \${sdcc_cv_c_$arg1+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else $as_nop
7178 sdcc_save_c_werror_flag=$ac_c_werror_flag
7179 ac_c_werror_flag=yes
7181 CFLAGS="-ggdb"
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7186 main (void)
7190 return 0;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"
7194 then :
7195 eval sdcc_cv_c_$arg1=yes
7196 else $as_nop
7197 eval sdcc_cv_c_$arg1=no
7199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7200 ac_c_werror_flag=$sdcc_save_c_werror_flag
7202 eval ac_res=\$sdcc_cv_c_$arg1
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7204 printf "%s\n" "$ac_res" >&6; }
7205 CFLAGS=$sdcc_save_CFLAGS
7207 if test "$sdcc_cv_c_ggdb" = "yes"; then
7208 CFLAGS="-ggdb ${CFLAGS}"
7209 CXXFLAGS="-ggdb ${CXXFLAGS}"
7212 arg1=`echo -pipe | sed -e"s/^-*//" -e"s/-/_/"`
7213 ac_test_CFLAGS=${CFLAGS+set}
7214 sdcc_save_CFLAGS=$CFLAGS
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -pipe" >&5
7216 printf %s "checking whether C accepts -pipe... " >&6; }
7217 if eval test \${sdcc_cv_c_$arg1+y}
7218 then :
7219 printf %s "(cached) " >&6
7220 else $as_nop
7221 sdcc_save_c_werror_flag=$ac_c_werror_flag
7222 ac_c_werror_flag=yes
7224 CFLAGS="-pipe"
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7229 main (void)
7233 return 0;
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"
7237 then :
7238 eval sdcc_cv_c_$arg1=yes
7239 else $as_nop
7240 eval sdcc_cv_c_$arg1=no
7242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243 ac_c_werror_flag=$sdcc_save_c_werror_flag
7245 eval ac_res=\$sdcc_cv_c_$arg1
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7247 printf "%s\n" "$ac_res" >&6; }
7248 CFLAGS=$sdcc_save_CFLAGS
7250 if test "$sdcc_cv_c_pipe" = "yes"; then
7251 CFLAGS="-pipe ${CFLAGS}"
7252 # Don't use "-pipe" on x86 Solaris g++, since src/z80/ralloc2.cc dies with:
7253 # Assembler: ralloc2.cc
7254 # "<stdin>", line 117637 : Internal: Out of symbol table
7255 if test `uname` != "SunOS" -o \( `uname` = "SunOS" -a `uname -m` != "i86pc" \); then
7256 CXXFLAGS="-pipe ${CXXFLAGS}"
7260 WALL_FLAG="-Wall -Wno-parentheses"
7261 MAKEDEP_CXX="$CXX $sdcc_cv_MM"
7262 MAKEDEP="$CC $sdcc_cv_MM"
7263 else
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
7265 printf %s "checking whether we are using the SunPRO C compiler... " >&6; }
7266 if test ${sdcc_cv_c_compiler_sunpro+y}
7267 then :
7268 printf %s "(cached) " >&6
7269 else $as_nop
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7274 main (void)
7276 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
7277 choke me
7278 #endif
7281 return 0;
7283 _ACEOF
7284 if ac_fn_c_try_compile "$LINENO"
7285 then :
7286 sdcc_cv_c_compiler_sunpro=yes
7287 else $as_nop
7288 sdcc_cv_c_compiler_sunpro=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_c_compiler_sunpro" >&5
7294 printf "%s\n" "$sdcc_cv_c_compiler_sunpro" >&6; }
7301 # Check for c11
7302 # -------------------------------------------------------------------------
7303 if test "$ac_cv_prog_cc_c11" == "no"; then
7304 as_fn_error $? "Could not find C11-capable host compiler." "$LINENO" 5
7307 # Checks for typedefs, structures, and compiler characteristics.
7308 # ===========================================================================
7310 # The cast to long int works around a bug in the HP C Compiler
7311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7313 # This bug is HP SR number 8606223364.
7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7315 printf %s "checking size of char... " >&6; }
7316 if test ${ac_cv_sizeof_char+y}
7317 then :
7318 printf %s "(cached) " >&6
7319 else $as_nop
7320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
7321 then :
7323 else $as_nop
7324 if test "$ac_cv_type_char" = yes; then
7325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7327 as_fn_error 77 "cannot compute sizeof (char)
7328 See \`config.log' for more details" "$LINENO" 5; }
7329 else
7330 ac_cv_sizeof_char=0
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7336 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
7340 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
7343 # The cast to long int works around a bug in the HP C Compiler
7344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7346 # This bug is HP SR number 8606223364.
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7348 printf %s "checking size of short... " >&6; }
7349 if test ${ac_cv_sizeof_short+y}
7350 then :
7351 printf %s "(cached) " >&6
7352 else $as_nop
7353 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
7354 then :
7356 else $as_nop
7357 if test "$ac_cv_type_short" = yes; then
7358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7359 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7360 as_fn_error 77 "cannot compute sizeof (short)
7361 See \`config.log' for more details" "$LINENO" 5; }
7362 else
7363 ac_cv_sizeof_short=0
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7369 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
7373 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
7376 # The cast to long int works around a bug in the HP C Compiler
7377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7379 # This bug is HP SR number 8606223364.
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7381 printf %s "checking size of int... " >&6; }
7382 if test ${ac_cv_sizeof_int+y}
7383 then :
7384 printf %s "(cached) " >&6
7385 else $as_nop
7386 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
7387 then :
7389 else $as_nop
7390 if test "$ac_cv_type_int" = yes; then
7391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7392 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7393 as_fn_error 77 "cannot compute sizeof (int)
7394 See \`config.log' for more details" "$LINENO" 5; }
7395 else
7396 ac_cv_sizeof_int=0
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7402 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
7406 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
7409 # The cast to long int works around a bug in the HP C Compiler
7410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7412 # This bug is HP SR number 8606223364.
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7414 printf %s "checking size of long... " >&6; }
7415 if test ${ac_cv_sizeof_long+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else $as_nop
7419 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
7420 then :
7422 else $as_nop
7423 if test "$ac_cv_type_long" = yes; then
7424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7425 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7426 as_fn_error 77 "cannot compute sizeof (long)
7427 See \`config.log' for more details" "$LINENO" 5; }
7428 else
7429 ac_cv_sizeof_long=0
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7435 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
7439 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
7442 # The cast to long int works around a bug in the HP C Compiler
7443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7445 # This bug is HP SR number 8606223364.
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7447 printf %s "checking size of long long... " >&6; }
7448 if test ${ac_cv_sizeof_long_long+y}
7449 then :
7450 printf %s "(cached) " >&6
7451 else $as_nop
7452 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
7453 then :
7455 else $as_nop
7456 if test "$ac_cv_type_long_long" = yes; then
7457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7458 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7459 as_fn_error 77 "cannot compute sizeof (long long)
7460 See \`config.log' for more details" "$LINENO" 5; }
7461 else
7462 ac_cv_sizeof_long_long=0
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7468 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
7472 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7476 printf %s "checking whether char is unsigned... " >&6; }
7477 if test ${ac_cv_c_char_unsigned+y}
7478 then :
7479 printf %s "(cached) " >&6
7480 else $as_nop
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 $ac_includes_default
7485 main (void)
7487 static int test_array [1 - 2 * !(((char) -1) < 0)];
7488 test_array [0] = 0;
7489 return test_array [0];
7492 return 0;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"
7496 then :
7497 ac_cv_c_char_unsigned=no
7498 else $as_nop
7499 ac_cv_c_char_unsigned=yes
7501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7504 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7505 if test $ac_cv_c_char_unsigned = yes; then
7506 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7511 type_name()
7513 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
7514 echo "char"
7515 exit
7517 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
7518 echo "short"
7519 exit
7521 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
7522 echo "int"
7523 exit
7525 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
7526 echo "long"
7527 exit
7529 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
7530 echo "long long"
7531 exit
7533 echo "long"
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
7537 printf %s "checking type name for byte... " >&6; }
7538 TYPE_CHAR=`type_name 1`
7539 if test "$ac_cv_c_char_unsigned" = "yes"; then
7540 TYPE_BYTE="signed $TYPE_CHAR"
7541 else
7542 TYPE_BYTE=$TYPE_CHAR
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
7545 printf "%s\n" "$TYPE_BYTE" >&6; }
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
7547 printf %s "checking type name for word... " >&6; }
7548 TYPE_WORD=`type_name 2`
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
7550 printf "%s\n" "$TYPE_WORD" >&6; }
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for dword" >&5
7552 printf %s "checking type name for dword... " >&6; }
7553 TYPE_DWORD=`type_name 4`
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_DWORD" >&5
7555 printf "%s\n" "$TYPE_DWORD" >&6; }
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for qword" >&5
7557 printf %s "checking type name for qword... " >&6; }
7558 TYPE_QWORD=`type_name 8`
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_QWORD" >&5
7560 printf "%s\n" "$TYPE_QWORD" >&6; }
7563 printf "%s\n" "#define TYPE_BYTE $TYPE_BYTE" >>confdefs.h
7566 printf "%s\n" "#define TYPE_WORD $TYPE_WORD" >>confdefs.h
7569 printf "%s\n" "#define TYPE_DWORD $TYPE_DWORD" >>confdefs.h
7572 printf "%s\n" "#define TYPE_QWORD $TYPE_QWORD" >>confdefs.h
7576 printf "%s\n" "#define TYPE_UBYTE unsigned $TYPE_CHAR" >>confdefs.h
7579 printf "%s\n" "#define TYPE_UWORD unsigned $TYPE_WORD" >>confdefs.h
7582 printf "%s\n" "#define TYPE_UDWORD unsigned $TYPE_DWORD" >>confdefs.h
7585 printf "%s\n" "#define TYPE_UQWORD unsigned $TYPE_QWORD" >>confdefs.h
7588 case "${host}" in
7589 *x86_64*cygwin*)
7590 LDFLAGS="$LDFLAGS -Wl,--stack,4194304"
7592 *x86_64*mingw*)
7593 LDFLAGS="$LDFLAGS -Wl,--stack,4194304"
7595 esac
7597 # Checking whether byte ordering is bigendian
7598 # ===========================================================================
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7600 printf %s "checking whether byte ordering is bigendian... " >&6; }
7601 if test ${ac_cv_c_bigendian+y}
7602 then :
7603 printf %s "(cached) " >&6
7604 else $as_nop
7605 ac_cv_c_bigendian=unknown
7606 # See if we're dealing with a universal compiler.
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 #ifndef __APPLE_CC__
7610 not a universal capable compiler
7611 #endif
7612 typedef int dummy;
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"
7616 then :
7618 # Check for potential -arch flags. It is not universal unless
7619 # there are at least two -arch flags with different values.
7620 ac_arch=
7621 ac_prev=
7622 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7623 if test -n "$ac_prev"; then
7624 case $ac_word in
7625 i?86 | x86_64 | ppc | ppc64)
7626 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7627 ac_arch=$ac_word
7628 else
7629 ac_cv_c_bigendian=universal
7630 break
7633 esac
7634 ac_prev=
7635 elif test "x$ac_word" = "x-arch"; then
7636 ac_prev=arch
7638 done
7640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7641 if test $ac_cv_c_bigendian = unknown; then
7642 # See if sys/param.h defines the BYTE_ORDER macro.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <sys/types.h>
7646 #include <sys/param.h>
7649 main (void)
7651 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7652 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7653 && LITTLE_ENDIAN)
7654 bogus endian macros
7655 #endif
7658 return 0;
7660 _ACEOF
7661 if ac_fn_c_try_compile "$LINENO"
7662 then :
7663 # It does; now see whether it defined to BIG_ENDIAN or not.
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <sys/types.h>
7667 #include <sys/param.h>
7670 main (void)
7672 #if BYTE_ORDER != BIG_ENDIAN
7673 not big endian
7674 #endif
7677 return 0;
7679 _ACEOF
7680 if ac_fn_c_try_compile "$LINENO"
7681 then :
7682 ac_cv_c_bigendian=yes
7683 else $as_nop
7684 ac_cv_c_bigendian=no
7686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7690 if test $ac_cv_c_bigendian = unknown; then
7691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <limits.h>
7697 main (void)
7699 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7700 bogus endian macros
7701 #endif
7704 return 0;
7706 _ACEOF
7707 if ac_fn_c_try_compile "$LINENO"
7708 then :
7709 # It does; now see whether it defined to _BIG_ENDIAN or not.
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #include <limits.h>
7715 main (void)
7717 #ifndef _BIG_ENDIAN
7718 not big endian
7719 #endif
7722 return 0;
7724 _ACEOF
7725 if ac_fn_c_try_compile "$LINENO"
7726 then :
7727 ac_cv_c_bigendian=yes
7728 else $as_nop
7729 ac_cv_c_bigendian=no
7731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7735 if test $ac_cv_c_bigendian = unknown; then
7736 # Compile a test program.
7737 if test "$cross_compiling" = yes
7738 then :
7739 # Try to guess by grepping values from an object file.
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7742 unsigned short int ascii_mm[] =
7743 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7744 unsigned short int ascii_ii[] =
7745 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7746 int use_ascii (int i) {
7747 return ascii_mm[i] + ascii_ii[i];
7749 unsigned short int ebcdic_ii[] =
7750 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7751 unsigned short int ebcdic_mm[] =
7752 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7753 int use_ebcdic (int i) {
7754 return ebcdic_mm[i] + ebcdic_ii[i];
7756 extern int foo;
7759 main (void)
7761 return use_ascii (foo) == use_ebcdic (foo);
7763 return 0;
7765 _ACEOF
7766 if ac_fn_c_try_compile "$LINENO"
7767 then :
7768 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7769 ac_cv_c_bigendian=yes
7771 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7772 if test "$ac_cv_c_bigendian" = unknown; then
7773 ac_cv_c_bigendian=no
7774 else
7775 # finding both strings is unlikely to happen, but who knows?
7776 ac_cv_c_bigendian=unknown
7780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7781 else $as_nop
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 $ac_includes_default
7786 main (void)
7789 /* Are we little or big endian? From Harbison&Steele. */
7790 union
7792 long int l;
7793 char c[sizeof (long int)];
7794 } u;
7795 u.l = 1;
7796 return u.c[sizeof (long int) - 1] == 1;
7799 return 0;
7801 _ACEOF
7802 if ac_fn_c_try_run "$LINENO"
7803 then :
7804 ac_cv_c_bigendian=no
7805 else $as_nop
7806 ac_cv_c_bigendian=yes
7808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7809 conftest.$ac_objext conftest.beam conftest.$ac_ext
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7815 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7816 case $ac_cv_c_bigendian in #(
7817 yes)
7818 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7819 ;; #(
7821 ;; #(
7822 universal)
7824 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7826 ;; #(
7828 as_fn_error $? "unknown endianness
7829 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7830 esac
7833 # Set standard installation paths
7834 # ===========================================================================
7836 # In the Makefiles we need paths with '/' as directory separator, even if
7837 # crosscompiling for Win32.
7838 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
7839 # The variables in the Makefiles are replaced by AC_SUBST()
7841 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
7843 # The macros are expanded for the header.
7844 # The variables in the header are replaced by AC_*DEFINE*()
7845 # sdccconf_h_dir_separator contains a backslash.
7847 if test "x${sdccconf_h_dir_separator}" = "x"; then
7848 sdccconf_h_dir_separator="/"
7851 # Makefiles
7852 ###########
7854 # LIB_TYPE:
7855 # *nix default: "RANLIB"
7858 if test "${LIB_TYPE}" = ""; then
7859 LIB_TYPE="RANLIB"
7862 # include_dir_suffix:
7863 # *nix default: "sdcc/include"
7866 if test "${inclib_dir_suffix}" = ""; then
7867 inclib_dir_suffix="sdcc"
7871 if test "${include_dir_suffix}" = ""; then
7872 include_dir_suffix="${inclib_dir_suffix}/include"
7876 if test "${non_free_inclib_dir_suffix}" = ""; then
7877 non_free_inclib_dir_suffix="sdcc/non-free"
7880 # non_free_include_dir_suffix:
7881 # *nix default: "sdcc/non-free/include"
7884 if test "${non_free_include_dir_suffix}" = ""; then
7885 non_free_include_dir_suffix="${non_free_inclib_dir_suffix}/include"
7888 # lib_dir_suffix:
7889 # *nix default: "sdcc/lib"
7891 if test "${lib_dir_suffix}" = ""; then
7892 lib_dir_suffix="${inclib_dir_suffix}/lib"
7895 # non_free_lib_dir_suffix:
7896 # *nix default: "sdcc/non-free/lib"
7898 if test "${non_free_lib_dir_suffix}" = ""; then
7899 non_free_lib_dir_suffix="${non_free_inclib_dir_suffix}/lib"
7902 # docdir:
7903 # *nix default: "${datadir}/sdcc/doc"
7905 if test "${docdir}" = ""; then
7906 docdir="\${datadir}"/sdcc/doc
7911 # sdccconf.h
7912 ############
7915 printf "%s\n" "#define DIR_SEPARATOR_STRING \"${sdccconf_h_dir_separator}\"" >>confdefs.h
7918 printf "%s\n" "#define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'" >>confdefs.h
7921 # prefix:
7922 # default: "NONE", ${ac_default_prefix}: "/usr/local"
7924 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7926 ac_expand=$prefix
7927 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
7928 ac_expand=`eval echo $ac_expand`
7929 expanded_prefix=`eval echo $ac_expand`
7932 ac_ndu=$expanded_prefix
7933 case ":$ac_ndu:" in
7934 ::) ac_ndu='.' ;;
7935 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7936 :*:) ;;
7937 esac
7938 case $sdccconf_h_dir_separator in
7940 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7941 s,^[\\/],\\\\\\\\,'` ;;
7943 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7944 esac
7946 printf "%s\n" "#define PREFIX \"${ac_ndu}\"" >>confdefs.h
7950 # exec_prefix:
7951 # default: "${prefix}"
7953 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7955 ac_expand=$exec_prefix
7956 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
7957 ac_expand=`eval echo $ac_expand`
7958 expanded_exec_prefix=`eval echo $ac_expand`
7961 ac_ndu=$expanded_exec_prefix
7962 case ":$ac_ndu:" in
7963 ::) ac_ndu='.' ;;
7964 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7965 :*:) ;;
7966 esac
7967 case $sdccconf_h_dir_separator in
7969 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7970 s,^[\\/],\\\\\\\\,'` ;;
7972 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7973 esac
7975 printf "%s\n" "#define EXEC_PREFIX \"${ac_ndu}\"" >>confdefs.h
7979 # bindir:
7980 # default: "${exec_prefix}/bin"
7982 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7984 ac_expand=$bindir
7985 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
7986 ac_expand=`eval echo $ac_expand`
7987 expanded_bindir=`eval echo $ac_expand`
7990 ac_ndu=$expanded_bindir
7991 case ":$ac_ndu:" in
7992 ::) ac_ndu='.' ;;
7993 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7994 :*:) ;;
7995 esac
7996 case $sdccconf_h_dir_separator in
7998 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7999 s,^[\\/],\\\\\\\\,'` ;;
8001 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8002 esac
8004 printf "%s\n" "#define BINDIR \"${ac_ndu}\"" >>confdefs.h
8008 # datadir:
8009 # default: "${prefix}/share"
8011 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8013 ac_expand=$datadir
8014 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
8015 ac_expand=`eval echo $ac_expand`
8016 expanded_datadir=`eval echo $ac_expand`
8019 ac_ndu=$expanded_datadir
8020 case ":$ac_ndu:" in
8021 ::) ac_ndu='.' ;;
8022 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
8023 :*:) ;;
8024 esac
8025 case $sdccconf_h_dir_separator in
8027 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8028 s,^[\\/],\\\\\\\\,'` ;;
8030 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8031 esac
8033 printf "%s\n" "#define DATADIR \"${ac_ndu}\"" >>confdefs.h
8037 # include/lib suffix
8038 norm_inc_dir_suffix=${include_dir_suffix}
8039 case ":$norm_inc_dir_suffix:" in
8040 ::) norm_inc_dir_suffix='.' ;;
8041 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8042 :*:) ;;
8043 esac
8044 case $sdccconf_h_dir_separator in
8046 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8047 s,^[\\/],\\\\\\\\,'` ;;
8049 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8050 esac
8052 printf "%s\n" "#define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_inc_dir_suffix}\"" >>confdefs.h
8054 norm_non_free_inc_dir_suffix=${non_free_include_dir_suffix}
8055 case ":$norm_non_free_inc_dir_suffix:" in
8056 ::) norm_non_free_inc_dir_suffix='.' ;;
8057 :*[\\/]:) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8058 :*:) ;;
8059 esac
8060 case $sdccconf_h_dir_separator in
8062 *\\*) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8063 s,^[\\/],\\\\\\\\,'` ;;
8065 *) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8066 esac
8068 printf "%s\n" "#define NON_FREE_INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_inc_dir_suffix}\"" >>confdefs.h
8071 norm_lib_dir_suffix=${lib_dir_suffix}
8072 case ":$norm_lib_dir_suffix:" in
8073 ::) norm_lib_dir_suffix='.' ;;
8074 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8075 :*:) ;;
8076 esac
8077 case $sdccconf_h_dir_separator in
8079 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8080 s,^[\\/],\\\\\\\\,'` ;;
8082 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8083 esac
8085 printf "%s\n" "#define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_lib_dir_suffix}\"" >>confdefs.h
8087 norm_non_free_lib_dir_suffix=${non_free_lib_dir_suffix}
8088 case ":$norm_non_free_lib_dir_suffix:" in
8089 ::) norm_non_free_lib_dir_suffix='.' ;;
8090 :*[\\/]:) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8091 :*:) ;;
8092 esac
8093 case $sdccconf_h_dir_separator in
8095 *\\*) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8096 s,^[\\/],\\\\\\\\,'` ;;
8098 *) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8099 esac
8101 printf "%s\n" "#define NON_FREE_LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_lib_dir_suffix}\"" >>confdefs.h
8104 # relative paths
8105 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
8106 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8107 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8108 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8109 _lcl_receval="$_lcl_from"
8110 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8111 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8112 _lcl_receval_old=''
8113 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8114 _lcl_receval_old="$_lcl_receval"
8115 eval _lcl_receval="\"$_lcl_receval\""
8116 done
8117 echo "$_lcl_receval")`
8118 _lcl_receval="$_lcl_to"
8119 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8120 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8121 _lcl_receval_old=''
8122 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8123 _lcl_receval_old="$_lcl_receval"
8124 eval _lcl_receval="\"$_lcl_receval\""
8125 done
8126 echo "$_lcl_receval")`
8127 _lcl_notation="$_lcl_from$_lcl_to"
8128 case ":$_lcl_from:" in
8129 ::) _lcl_from='.' ;;
8130 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8131 :*:) ;;
8132 esac
8133 case '/' in
8135 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8136 s,^[\\/],\\\\\\\\,'` ;;
8138 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8139 esac
8140 case ":$_lcl_to:" in
8141 ::) _lcl_to='.' ;;
8142 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8143 :*:) ;;
8144 esac
8145 case '/' in
8147 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8148 s,^[\\/],\\\\\\\\,'` ;;
8150 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8151 esac
8152 _lcl_common_prefix=''
8153 _lcl_second_prefix_match=''
8154 while test "$_lcl_second_prefix_match" != 0; do
8155 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8156 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8157 if test "$_lcl_second_prefix_match" != 0; then
8158 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8159 _lcl_common_prefix="$_lcl_first_prefix"
8160 else
8161 _lcl_second_prefix_match=0
8164 done
8165 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8166 _lcl_first_rel=''
8167 _lcl_tmp='xxx'
8168 while test "$_lcl_tmp" != ''; do
8169 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8170 if test "$_lcl_first_suffix" != ''; then
8171 _lcl_first_suffix="$_lcl_tmp"
8172 _lcl_first_rel="../$_lcl_first_rel"
8174 done
8175 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8176 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
8177 case ":$_lcl_result_tmp:" in
8178 ::) _lcl_result_tmp='.' ;;
8179 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8180 :*:) ;;
8181 esac
8182 case "$_lcl_notation" in
8184 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8185 s,^[\\/],\\\\\\\\,'` ;;
8187 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8188 esac
8189 eval $_lcl_result_var='$_lcl_result_tmp'
8190 done
8191 case ":$bin2data_dir:" in
8192 ::) bin2data_dir='.' ;;
8193 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
8194 :*:) ;;
8195 esac
8196 case $sdccconf_h_dir_separator in
8198 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8199 s,^[\\/],\\\\\\\\,'` ;;
8201 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8202 esac
8204 printf "%s\n" "#define BIN2DATA_DIR DIR_SEPARATOR_STRING \"${bin2data_dir}\"" >>confdefs.h
8207 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
8208 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8209 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8210 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8211 _lcl_receval="$_lcl_from"
8212 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8213 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8214 _lcl_receval_old=''
8215 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8216 _lcl_receval_old="$_lcl_receval"
8217 eval _lcl_receval="\"$_lcl_receval\""
8218 done
8219 echo "$_lcl_receval")`
8220 _lcl_receval="$_lcl_to"
8221 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8222 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8223 _lcl_receval_old=''
8224 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8225 _lcl_receval_old="$_lcl_receval"
8226 eval _lcl_receval="\"$_lcl_receval\""
8227 done
8228 echo "$_lcl_receval")`
8229 _lcl_notation="$_lcl_from$_lcl_to"
8230 case ":$_lcl_from:" in
8231 ::) _lcl_from='.' ;;
8232 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8233 :*:) ;;
8234 esac
8235 case '/' in
8237 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8238 s,^[\\/],\\\\\\\\,'` ;;
8240 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8241 esac
8242 case ":$_lcl_to:" in
8243 ::) _lcl_to='.' ;;
8244 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8245 :*:) ;;
8246 esac
8247 case '/' in
8249 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8250 s,^[\\/],\\\\\\\\,'` ;;
8252 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8253 esac
8254 _lcl_common_prefix=''
8255 _lcl_second_prefix_match=''
8256 while test "$_lcl_second_prefix_match" != 0; do
8257 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8258 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8259 if test "$_lcl_second_prefix_match" != 0; then
8260 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8261 _lcl_common_prefix="$_lcl_first_prefix"
8262 else
8263 _lcl_second_prefix_match=0
8266 done
8267 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8268 _lcl_first_rel=''
8269 _lcl_tmp='xxx'
8270 while test "$_lcl_tmp" != ''; do
8271 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8272 if test "$_lcl_first_suffix" != ''; then
8273 _lcl_first_suffix="$_lcl_tmp"
8274 _lcl_first_rel="../$_lcl_first_rel"
8276 done
8277 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8278 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
8279 case ":$_lcl_result_tmp:" in
8280 ::) _lcl_result_tmp='.' ;;
8281 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8282 :*:) ;;
8283 esac
8284 case "$_lcl_notation" in
8286 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8287 s,^[\\/],\\\\\\\\,'` ;;
8289 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8290 esac
8291 eval $_lcl_result_var='$_lcl_result_tmp'
8292 done
8293 case ":$prefix2bin_dir:" in
8294 ::) prefix2bin_dir='.' ;;
8295 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
8296 :*:) ;;
8297 esac
8298 case $sdccconf_h_dir_separator in
8300 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8301 s,^[\\/],\\\\\\\\,'` ;;
8303 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8304 esac
8306 printf "%s\n" "#define PREFIX2BIN_DIR DIR_SEPARATOR_STRING \"${prefix2bin_dir}\"" >>confdefs.h
8309 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
8310 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8311 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8312 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8313 _lcl_receval="$_lcl_from"
8314 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8315 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8316 _lcl_receval_old=''
8317 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8318 _lcl_receval_old="$_lcl_receval"
8319 eval _lcl_receval="\"$_lcl_receval\""
8320 done
8321 echo "$_lcl_receval")`
8322 _lcl_receval="$_lcl_to"
8323 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8324 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8325 _lcl_receval_old=''
8326 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8327 _lcl_receval_old="$_lcl_receval"
8328 eval _lcl_receval="\"$_lcl_receval\""
8329 done
8330 echo "$_lcl_receval")`
8331 _lcl_notation="$_lcl_from$_lcl_to"
8332 case ":$_lcl_from:" in
8333 ::) _lcl_from='.' ;;
8334 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8335 :*:) ;;
8336 esac
8337 case '/' in
8339 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8340 s,^[\\/],\\\\\\\\,'` ;;
8342 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8343 esac
8344 case ":$_lcl_to:" in
8345 ::) _lcl_to='.' ;;
8346 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8347 :*:) ;;
8348 esac
8349 case '/' in
8351 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8352 s,^[\\/],\\\\\\\\,'` ;;
8354 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8355 esac
8356 _lcl_common_prefix=''
8357 _lcl_second_prefix_match=''
8358 while test "$_lcl_second_prefix_match" != 0; do
8359 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8360 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8361 if test "$_lcl_second_prefix_match" != 0; then
8362 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8363 _lcl_common_prefix="$_lcl_first_prefix"
8364 else
8365 _lcl_second_prefix_match=0
8368 done
8369 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8370 _lcl_first_rel=''
8371 _lcl_tmp='xxx'
8372 while test "$_lcl_tmp" != ''; do
8373 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8374 if test "$_lcl_first_suffix" != ''; then
8375 _lcl_first_suffix="$_lcl_tmp"
8376 _lcl_first_rel="../$_lcl_first_rel"
8378 done
8379 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8380 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
8381 case ":$_lcl_result_tmp:" in
8382 ::) _lcl_result_tmp='.' ;;
8383 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8384 :*:) ;;
8385 esac
8386 case "$_lcl_notation" in
8388 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8389 s,^[\\/],\\\\\\\\,'` ;;
8391 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8392 esac
8393 eval $_lcl_result_var='$_lcl_result_tmp'
8394 done
8395 case ":$prefix2data_dir:" in
8396 ::) prefix2data_dir='.' ;;
8397 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
8398 :*:) ;;
8399 esac
8400 case $sdccconf_h_dir_separator in
8402 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8403 s,^[\\/],\\\\\\\\,'` ;;
8405 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8406 esac
8407 if test "${prefix2data_dir}" = "."; then
8408 # small optimization for Mingw32; otherwise Borut will complain ;-)
8410 printf "%s\n" "#define PREFIX2DATA_DIR \"\"" >>confdefs.h
8412 else
8414 printf "%s\n" "#define PREFIX2DATA_DIR DIR_SEPARATOR_STRING \"${prefix2data_dir}\"" >>confdefs.h
8418 # standard libs
8420 printf "%s\n" "#define STD_LIB \"libsdcc\"" >>confdefs.h
8423 printf "%s\n" "#define STD_INT_LIB \"libint\"" >>confdefs.h
8426 printf "%s\n" "#define STD_LONG_LIB \"liblong\"" >>confdefs.h
8429 printf "%s\n" "#define STD_FP_LIB \"libfloat\"" >>confdefs.h
8432 printf "%s\n" "#define STD_DS390_LIB \"libds390\"" >>confdefs.h
8435 printf "%s\n" "#define STD_DS400_LIB \"libds400\"" >>confdefs.h
8438 # SDCC runtime environment variables
8439 sdcc_dir_name="SDCC_HOME"
8441 printf "%s\n" "#define SDCC_DIR_NAME \"${sdcc_dir_name}\"" >>confdefs.h
8444 sdcc_include_name="SDCC_INCLUDE"
8446 printf "%s\n" "#define SDCC_INCLUDE_NAME \"${sdcc_include_name}\"" >>confdefs.h
8449 sdcc_lib_name="SDCC_LIB"
8451 printf "%s\n" "#define SDCC_LIB_NAME \"${sdcc_lib_name}\"" >>confdefs.h
8454 # add include guard and custom stuff to sdccconf.h
8458 # Port selection helper
8459 # ===========================================================================
8460 # macro AC_DO_ENABLER()
8461 # $1 used to access enable_$1, e.g. enable_doc
8462 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
8463 # $3 help string
8466 # macro AC_DO_DISABLER()
8467 # $1 used to access disable_$1, e.g. ucsim
8468 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
8469 # $3 help string
8472 # macro AC_DO_PORT($1, $2, $3, $4)
8473 # $1 used to access enable_$2_port, e.g. sm83
8474 # $2 port name in ports.all and ports.build, e.g. z80
8475 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8476 # $4 help string
8479 # macro AC_DO_PORT_ENABLER($1, $2, $3, $4)
8480 # $1 used to access enable_$2_port, e.g. sm83
8481 # $2 port name in ports.all and ports.build, e.g. z80
8482 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8483 # $4 help string
8486 # Revision number
8487 # ===============
8489 GIT_REVISION=""
8490 SVN_REVISION="unknown"
8491 if test -d "${srcdir}/.git"; then
8492 GIT_REVISION=$( git log --pretty=format:'%h' -n 1u )
8493 echo "Found Git repo... $GIT_REVISION"
8494 SVN_REVISION=$( git log -1 | tail -n1 | cut -f2 -d @ | cut -f1 -d" " )
8499 # Now handle the port selection
8500 # ===========================================================================
8501 rm -f ports.all ports.build
8503 # Supported targets
8505 # Check whether --enable-mcs51-port was given.
8506 if test ${enable_mcs51_port+y}
8507 then :
8508 enableval=$enable_mcs51_port;
8512 if test "$enable_mcs51_port" = "no"; then
8513 OPT_DISABLE_MCS51=1
8514 else
8515 enable_mcs51_port="yes"
8516 OPT_DISABLE_MCS51=0
8520 printf "%s\n" "#define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51" >>confdefs.h
8524 echo mcs51 >>ports.all
8525 if test $OPT_DISABLE_MCS51 = 0; then
8526 echo mcs51 >>ports.build
8530 # Check whether --enable-z80-port was given.
8531 if test ${enable_z80_port+y}
8532 then :
8533 enableval=$enable_z80_port;
8537 if test "$enable_z80_port" = "no"; then
8538 OPT_DISABLE_Z80=1
8539 else
8540 enable_z80_port="yes"
8541 OPT_DISABLE_Z80=0
8545 printf "%s\n" "#define OPT_DISABLE_Z80 $OPT_DISABLE_Z80" >>confdefs.h
8549 echo z80 >>ports.all
8550 if test $OPT_DISABLE_Z80 = 0; then
8551 echo z80 >>ports.build
8555 # Check whether --enable-z180-port was given.
8556 if test ${enable_z180_port+y}
8557 then :
8558 enableval=$enable_z180_port;
8562 if test "$enable_z180_port" = "no"; then
8563 OPT_DISABLE_Z180=1
8564 else
8565 enable_z180_port="yes"
8566 OPT_DISABLE_Z180=0
8570 printf "%s\n" "#define OPT_DISABLE_Z180 $OPT_DISABLE_Z180" >>confdefs.h
8574 echo z80 >>ports.all
8575 if test $OPT_DISABLE_Z180 = 0; then
8576 echo z80 >>ports.build
8580 # Check whether --enable-r2k-port was given.
8581 if test ${enable_r2k_port+y}
8582 then :
8583 enableval=$enable_r2k_port;
8587 if test "$enable_r2k_port" = "no"; then
8588 OPT_DISABLE_R2K=1
8589 else
8590 enable_r2k_port="yes"
8591 OPT_DISABLE_R2K=0
8595 printf "%s\n" "#define OPT_DISABLE_R2K $OPT_DISABLE_R2K" >>confdefs.h
8599 echo z80 >>ports.all
8600 if test $OPT_DISABLE_R2K = 0; then
8601 echo z80 >>ports.build
8605 # Check whether --enable-r2ka-port was given.
8606 if test ${enable_r2ka_port+y}
8607 then :
8608 enableval=$enable_r2ka_port;
8612 if test "$enable_r2ka_port" = "no"; then
8613 OPT_DISABLE_R2KA=1
8614 else
8615 enable_r2ka_port="yes"
8616 OPT_DISABLE_R2KA=0
8620 printf "%s\n" "#define OPT_DISABLE_R2KA $OPT_DISABLE_R2KA" >>confdefs.h
8624 echo z80 >>ports.all
8625 if test $OPT_DISABLE_R2KA = 0; then
8626 echo z80 >>ports.build
8630 # Check whether --enable-r3ka-port was given.
8631 if test ${enable_r3ka_port+y}
8632 then :
8633 enableval=$enable_r3ka_port;
8637 if test "$enable_r3ka_port" = "no"; then
8638 OPT_DISABLE_R3KA=1
8639 else
8640 enable_r3ka_port="yes"
8641 OPT_DISABLE_R3KA=0
8645 printf "%s\n" "#define OPT_DISABLE_R3KA $OPT_DISABLE_R3KA" >>confdefs.h
8649 echo z80 >>ports.all
8650 if test $OPT_DISABLE_R3KA = 0; then
8651 echo z80 >>ports.build
8655 # Check whether --enable-sm83-port was given.
8656 if test ${enable_sm83_port+y}
8657 then :
8658 enableval=$enable_sm83_port;
8662 if test "$enable_sm83_port" = "no"; then
8663 OPT_DISABLE_SM83=1
8664 else
8665 enable_sm83_port="yes"
8666 OPT_DISABLE_SM83=0
8670 printf "%s\n" "#define OPT_DISABLE_SM83 $OPT_DISABLE_SM83" >>confdefs.h
8674 echo z80 >>ports.all
8675 if test $OPT_DISABLE_SM83 = 0; then
8676 echo z80 >>ports.build
8680 # Check whether --enable-tlcs90-port was given.
8681 if test ${enable_tlcs90_port+y}
8682 then :
8683 enableval=$enable_tlcs90_port;
8687 if test "$enable_tlcs90_port" = "no"; then
8688 OPT_DISABLE_TLCS90=1
8689 else
8690 enable_tlcs90_port="yes"
8691 OPT_DISABLE_TLCS90=0
8695 printf "%s\n" "#define OPT_DISABLE_TLCS90 $OPT_DISABLE_TLCS90" >>confdefs.h
8699 echo z80 >>ports.all
8700 if test $OPT_DISABLE_TLCS90 = 0; then
8701 echo z80 >>ports.build
8705 # Check whether --enable-ez80_z80-port was given.
8706 if test ${enable_ez80_z80_port+y}
8707 then :
8708 enableval=$enable_ez80_z80_port;
8712 if test "$enable_ez80_z80_port" = "no"; then
8713 OPT_DISABLE_EZ80_Z80=1
8714 else
8715 enable_ez80_z80_port="yes"
8716 OPT_DISABLE_EZ80_Z80=0
8720 printf "%s\n" "#define OPT_DISABLE_EZ80_Z80 $OPT_DISABLE_EZ80_Z80" >>confdefs.h
8724 echo z80 >>ports.all
8725 if test $OPT_DISABLE_EZ80_Z80 = 0; then
8726 echo z80 >>ports.build
8730 # Check whether --enable-z80n-port was given.
8731 if test ${enable_z80n_port+y}
8732 then :
8733 enableval=$enable_z80n_port;
8737 if test "$enable_z80n_port" = "no"; then
8738 OPT_DISABLE_Z80N=1
8739 else
8740 enable_z80n_port="yes"
8741 OPT_DISABLE_Z80N=0
8745 printf "%s\n" "#define OPT_DISABLE_Z80N $OPT_DISABLE_Z80N" >>confdefs.h
8749 echo z80 >>ports.all
8750 if test $OPT_DISABLE_Z80N = 0; then
8751 echo z80 >>ports.build
8755 # Check whether --enable-r800-port was given.
8756 if test ${enable_r800_port+y}
8757 then :
8758 enableval=$enable_r800_port;
8762 if test "$enable_r800_port" = "no"; then
8763 OPT_DISABLE_R800=1
8764 else
8765 enable_r800_port="yes"
8766 OPT_DISABLE_R800=0
8770 printf "%s\n" "#define OPT_DISABLE_R800 $OPT_DISABLE_R800" >>confdefs.h
8774 echo z80 >>ports.all
8775 if test $OPT_DISABLE_R800 = 0; then
8776 echo z80 >>ports.build
8780 # Check whether --enable-ds390-port was given.
8781 if test ${enable_ds390_port+y}
8782 then :
8783 enableval=$enable_ds390_port;
8787 if test "$enable_ds390_port" = "no"; then
8788 OPT_DISABLE_DS390=1
8789 else
8790 enable_ds390_port="yes"
8791 OPT_DISABLE_DS390=0
8795 printf "%s\n" "#define OPT_DISABLE_DS390 $OPT_DISABLE_DS390" >>confdefs.h
8799 echo ds390 >>ports.all
8800 if test $OPT_DISABLE_DS390 = 0; then
8801 echo ds390 >>ports.build
8805 printf "%s\n" "#define OPT_DISABLE_TININative $OPT_DISABLE_DS390" >>confdefs.h
8808 # Check whether --enable-ds400-port was given.
8809 if test ${enable_ds400_port+y}
8810 then :
8811 enableval=$enable_ds400_port;
8815 if test "$enable_ds400_port" = "no"; then
8816 OPT_DISABLE_DS400=1
8817 else
8818 enable_ds400_port="yes"
8819 OPT_DISABLE_DS400=0
8823 printf "%s\n" "#define OPT_DISABLE_DS400 $OPT_DISABLE_DS400" >>confdefs.h
8827 echo ds390 >>ports.all
8828 if test $OPT_DISABLE_DS400 = 0; then
8829 echo ds390 >>ports.build
8833 # Check whether --enable-pic14-port was given.
8834 if test ${enable_pic14_port+y}
8835 then :
8836 enableval=$enable_pic14_port;
8840 if test "$enable_pic14_port" = "no"; then
8841 OPT_DISABLE_PIC14=1
8842 else
8843 enable_pic14_port="yes"
8844 OPT_DISABLE_PIC14=0
8848 printf "%s\n" "#define OPT_DISABLE_PIC14 $OPT_DISABLE_PIC14" >>confdefs.h
8852 echo pic14 >>ports.all
8853 if test $OPT_DISABLE_PIC14 = 0; then
8854 echo pic14 >>ports.build
8858 # Check whether --enable-pic16-port was given.
8859 if test ${enable_pic16_port+y}
8860 then :
8861 enableval=$enable_pic16_port;
8865 if test "$enable_pic16_port" = "no"; then
8866 OPT_DISABLE_PIC16=1
8867 else
8868 enable_pic16_port="yes"
8869 OPT_DISABLE_PIC16=0
8873 printf "%s\n" "#define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16" >>confdefs.h
8877 echo pic16 >>ports.all
8878 if test $OPT_DISABLE_PIC16 = 0; then
8879 echo pic16 >>ports.build
8883 # Check whether --enable-hc08-port was given.
8884 if test ${enable_hc08_port+y}
8885 then :
8886 enableval=$enable_hc08_port;
8890 if test "$enable_hc08_port" = "no"; then
8891 OPT_DISABLE_HC08=1
8892 else
8893 enable_hc08_port="yes"
8894 OPT_DISABLE_HC08=0
8898 printf "%s\n" "#define OPT_DISABLE_HC08 $OPT_DISABLE_HC08" >>confdefs.h
8902 echo hc08 >>ports.all
8903 if test $OPT_DISABLE_HC08 = 0; then
8904 echo hc08 >>ports.build
8908 # Check whether --enable-s08-port was given.
8909 if test ${enable_s08_port+y}
8910 then :
8911 enableval=$enable_s08_port;
8915 if test "$enable_s08_port" = "no"; then
8916 OPT_DISABLE_S08=1
8917 else
8918 enable_s08_port="yes"
8919 OPT_DISABLE_S08=0
8923 printf "%s\n" "#define OPT_DISABLE_S08 $OPT_DISABLE_S08" >>confdefs.h
8927 echo hc08 >>ports.all
8928 if test $OPT_DISABLE_S08 = 0; then
8929 echo hc08 >>ports.build
8933 # Check whether --enable-stm8-port was given.
8934 if test ${enable_stm8_port+y}
8935 then :
8936 enableval=$enable_stm8_port;
8940 if test "$enable_stm8_port" = "no"; then
8941 OPT_DISABLE_STM8=1
8942 else
8943 enable_stm8_port="yes"
8944 OPT_DISABLE_STM8=0
8948 printf "%s\n" "#define OPT_DISABLE_STM8 $OPT_DISABLE_STM8" >>confdefs.h
8952 echo stm8 >>ports.all
8953 if test $OPT_DISABLE_STM8 = 0; then
8954 echo stm8 >>ports.build
8958 # Check whether --enable-pdk13-port was given.
8959 if test ${enable_pdk13_port+y}
8960 then :
8961 enableval=$enable_pdk13_port;
8965 if test "$enable_pdk13_port" = "no"; then
8966 OPT_DISABLE_PDK13=1
8967 else
8968 enable_pdk13_port="yes"
8969 OPT_DISABLE_PDK13=0
8973 printf "%s\n" "#define OPT_DISABLE_PDK13 $OPT_DISABLE_PDK13" >>confdefs.h
8977 echo pdk >>ports.all
8978 if test $OPT_DISABLE_PDK13 = 0; then
8979 echo pdk >>ports.build
8983 # Check whether --enable-pdk14-port was given.
8984 if test ${enable_pdk14_port+y}
8985 then :
8986 enableval=$enable_pdk14_port;
8990 if test "$enable_pdk14_port" = "no"; then
8991 OPT_DISABLE_PDK14=1
8992 else
8993 enable_pdk14_port="yes"
8994 OPT_DISABLE_PDK14=0
8998 printf "%s\n" "#define OPT_DISABLE_PDK14 $OPT_DISABLE_PDK14" >>confdefs.h
9002 echo pdk >>ports.all
9003 if test $OPT_DISABLE_PDK14 = 0; then
9004 echo pdk >>ports.build
9008 # Check whether --enable-pdk15-port was given.
9009 if test ${enable_pdk15_port+y}
9010 then :
9011 enableval=$enable_pdk15_port;
9015 if test "$enable_pdk15_port" = "no"; then
9016 OPT_DISABLE_PDK15=1
9017 else
9018 enable_pdk15_port="yes"
9019 OPT_DISABLE_PDK15=0
9023 printf "%s\n" "#define OPT_DISABLE_PDK15 $OPT_DISABLE_PDK15" >>confdefs.h
9027 echo pdk >>ports.all
9028 if test $OPT_DISABLE_PDK15 = 0; then
9029 echo pdk >>ports.build
9033 # Check whether --enable-pdk16-port was given.
9034 if test ${enable_pdk16_port+y}
9035 then :
9036 enableval=$enable_pdk16_port;
9040 if test "$enable_pdk16_port" = "yes"; then
9041 OPT_DISABLE_PDK16=0
9042 else
9043 enable_pdk16_port="no"
9044 OPT_DISABLE_PDK16=1
9048 printf "%s\n" "#define OPT_DISABLE_PDK16 $OPT_DISABLE_PDK16" >>confdefs.h
9052 echo pdk >>ports.all
9053 if test $OPT_DISABLE_PDK16 = 0; then
9054 echo pdk >>ports.build
9058 # Check whether --enable-mos6502-port was given.
9059 if test ${enable_mos6502_port+y}
9060 then :
9061 enableval=$enable_mos6502_port;
9065 if test "$enable_mos6502_port" = "no"; then
9066 OPT_DISABLE_MOS6502=1
9067 else
9068 enable_mos6502_port="yes"
9069 OPT_DISABLE_MOS6502=0
9073 printf "%s\n" "#define OPT_DISABLE_MOS6502 $OPT_DISABLE_MOS6502" >>confdefs.h
9077 echo mos6502 >>ports.all
9078 if test $OPT_DISABLE_MOS6502 = 0; then
9079 echo mos6502 >>ports.build
9083 # Check whether --enable-mos65c02-port was given.
9084 if test ${enable_mos65c02_port+y}
9085 then :
9086 enableval=$enable_mos65c02_port;
9090 if test "$enable_mos65c02_port" = "no"; then
9091 OPT_DISABLE_MOS65C02=1
9092 else
9093 enable_mos65c02_port="yes"
9094 OPT_DISABLE_MOS65C02=0
9098 printf "%s\n" "#define OPT_DISABLE_MOS65C02 $OPT_DISABLE_MOS65C02" >>confdefs.h
9102 echo mos6502 >>ports.all
9103 if test $OPT_DISABLE_MOS65C02 = 0; then
9104 echo mos6502 >>ports.build
9108 # Check whether --enable-f8-port was given.
9109 if test ${enable_f8_port+y}
9110 then :
9111 enableval=$enable_f8_port;
9115 if test "$enable_f8_port" = "no"; then
9116 OPT_DISABLE_F8=1
9117 else
9118 enable_f8_port="yes"
9119 OPT_DISABLE_F8=0
9123 printf "%s\n" "#define OPT_DISABLE_F8 $OPT_DISABLE_F8" >>confdefs.h
9127 echo f8 >>ports.all
9128 if test $OPT_DISABLE_F8 = 0; then
9129 echo f8 >>ports.build
9133 # Unsupported targets
9134 ####AC_DO_PORT_ENABLER(avr, avr, AVR, [Includes the AVR port (disabled by default)])
9135 OPT_DISABLE_AVR=1
9137 printf "%s\n" "#define OPT_DISABLE_AVR ${OPT_DISABLE_AVR}" >>confdefs.h
9142 # Check whether --enable-ucsim was given.
9143 if test ${enable_ucsim+y}
9144 then :
9145 enableval=$enable_ucsim;
9149 arg1=`echo ucsim | sed s/-/_/`
9151 if test "`eval echo \\$enable_$arg1`" = "no"; then
9152 OPT_DISABLE_UCSIM=1
9153 else
9154 OPT_DISABLE_UCSIM=0
9158 printf "%s\n" "#define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM" >>confdefs.h
9163 # Check whether --enable-device-lib was given.
9164 if test ${enable_device_lib+y}
9165 then :
9166 enableval=$enable_device_lib;
9170 arg1=`echo device-lib | sed s/-/_/`
9172 if test "`eval echo \\$enable_$arg1`" = "no"; then
9173 OPT_DISABLE_DEVICE_LIB=1
9174 else
9175 OPT_DISABLE_DEVICE_LIB=0
9179 printf "%s\n" "#define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB" >>confdefs.h
9184 # Check whether --enable-packihx was given.
9185 if test ${enable_packihx+y}
9186 then :
9187 enableval=$enable_packihx;
9191 arg1=`echo packihx | sed s/-/_/`
9193 if test "`eval echo \\$enable_$arg1`" = "no"; then
9194 OPT_DISABLE_PACKIHX=1
9195 else
9196 OPT_DISABLE_PACKIHX=0
9200 printf "%s\n" "#define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX" >>confdefs.h
9205 # Check whether --enable-sdcpp was given.
9206 if test ${enable_sdcpp+y}
9207 then :
9208 enableval=$enable_sdcpp;
9212 arg1=`echo sdcpp | sed s/-/_/`
9214 if test "`eval echo \\$enable_$arg1`" = "no"; then
9215 OPT_DISABLE_SDCPP=1
9216 else
9217 OPT_DISABLE_SDCPP=0
9221 printf "%s\n" "#define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP" >>confdefs.h
9226 # Check whether --enable-sdcdb was given.
9227 if test ${enable_sdcdb+y}
9228 then :
9229 enableval=$enable_sdcdb;
9233 arg1=`echo sdcdb | sed s/-/_/`
9235 if test "`eval echo \\$enable_$arg1`" = "no"; then
9236 OPT_DISABLE_SDCDB=1
9237 else
9238 OPT_DISABLE_SDCDB=0
9242 printf "%s\n" "#define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB" >>confdefs.h
9247 # Check whether --enable-sdbinutils was given.
9248 if test ${enable_sdbinutils+y}
9249 then :
9250 enableval=$enable_sdbinutils;
9254 arg1=`echo sdbinutils | sed s/-/_/`
9256 if test "`eval echo \\$enable_$arg1`" = "no"; then
9257 OPT_DISABLE_SDBINUTILS=1
9258 else
9259 OPT_DISABLE_SDBINUTILS=0
9263 printf "%s\n" "#define OPT_DISABLE_SDBINUTILS $OPT_DISABLE_SDBINUTILS" >>confdefs.h
9268 # Check whether --enable-non-free was given.
9269 if test ${enable_non_free+y}
9270 then :
9271 enableval=$enable_non_free;
9275 arg1=`echo non-free | sed s/-/_/`
9277 if test "`eval echo \\$enable_$arg1`" = "no"; then
9278 OPT_DISABLE_NON_FREE=1
9279 else
9280 OPT_DISABLE_NON_FREE=0
9284 printf "%s\n" "#define OPT_DISABLE_NON_FREE $OPT_DISABLE_NON_FREE" >>confdefs.h
9290 # Check whether --enable-doc was given.
9291 if test ${enable_doc+y}
9292 then :
9293 enableval=$enable_doc;
9297 if test "$enable_doc" = "yes"; then
9298 OPT_ENABLE_DOC=1
9299 else
9300 OPT_ENABLE_DOC=0
9304 printf "%s\n" "#define OPT_ENABLE_DOC $OPT_ENABLE_DOC" >>confdefs.h
9308 # Extract the first word of "lyx", so it can be a program name with args.
9309 set dummy lyx; ac_word=$2
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311 printf %s "checking for $ac_word... " >&6; }
9312 if test ${ac_cv_prog_LYX+y}
9313 then :
9314 printf %s "(cached) " >&6
9315 else $as_nop
9316 if test -n "$LYX"; then
9317 ac_cv_prog_LYX="$LYX" # Let the user override the test.
9318 else
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9322 IFS=$as_save_IFS
9323 case $as_dir in #(((
9324 '') as_dir=./ ;;
9325 */) ;;
9326 *) as_dir=$as_dir/ ;;
9327 esac
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9330 ac_cv_prog_LYX="lyx"
9331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9332 break 2
9334 done
9335 done
9336 IFS=$as_save_IFS
9338 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
9341 LYX=$ac_cv_prog_LYX
9342 if test -n "$LYX"; then
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5
9344 printf "%s\n" "$LYX" >&6; }
9345 else
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 printf "%s\n" "no" >&6; }
9351 # Extract the first word of "latex2html", so it can be a program name with args.
9352 set dummy latex2html; ac_word=$2
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354 printf %s "checking for $ac_word... " >&6; }
9355 if test ${ac_cv_prog_LATEX2HTML+y}
9356 then :
9357 printf %s "(cached) " >&6
9358 else $as_nop
9359 if test -n "$LATEX2HTML"; then
9360 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
9361 else
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in $PATH
9365 IFS=$as_save_IFS
9366 case $as_dir in #(((
9367 '') as_dir=./ ;;
9368 */) ;;
9369 *) as_dir=$as_dir/ ;;
9370 esac
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9373 ac_cv_prog_LATEX2HTML="latex2html"
9374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9375 break 2
9377 done
9378 done
9379 IFS=$as_save_IFS
9381 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
9384 LATEX2HTML=$ac_cv_prog_LATEX2HTML
9385 if test -n "$LATEX2HTML"; then
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
9387 printf "%s\n" "$LATEX2HTML" >&6; }
9388 else
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 printf "%s\n" "no" >&6; }
9394 # Extract the first word of "latex", so it can be a program name with args.
9395 set dummy latex; ac_word=$2
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397 printf %s "checking for $ac_word... " >&6; }
9398 if test ${ac_cv_prog_LATEX+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else $as_nop
9402 if test -n "$LATEX"; then
9403 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
9404 else
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9408 IFS=$as_save_IFS
9409 case $as_dir in #(((
9410 '') as_dir=./ ;;
9411 */) ;;
9412 *) as_dir=$as_dir/ ;;
9413 esac
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9416 ac_cv_prog_LATEX="latex"
9417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9418 break 2
9420 done
9421 done
9422 IFS=$as_save_IFS
9424 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
9427 LATEX=$ac_cv_prog_LATEX
9428 if test -n "$LATEX"; then
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
9430 printf "%s\n" "$LATEX" >&6; }
9431 else
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 printf "%s\n" "no" >&6; }
9437 # Extract the first word of "dvipdfm", so it can be a program name with args.
9438 set dummy dvipdfm; ac_word=$2
9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 printf %s "checking for $ac_word... " >&6; }
9441 if test ${ac_cv_prog_DVIPDFM+y}
9442 then :
9443 printf %s "(cached) " >&6
9444 else $as_nop
9445 if test -n "$DVIPDFM"; then
9446 ac_cv_prog_DVIPDFM="$DVIPDFM" # Let the user override the test.
9447 else
9448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449 for as_dir in $PATH
9451 IFS=$as_save_IFS
9452 case $as_dir in #(((
9453 '') as_dir=./ ;;
9454 */) ;;
9455 *) as_dir=$as_dir/ ;;
9456 esac
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_DVIPDFM="dvipdfm"
9460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9461 break 2
9463 done
9464 done
9465 IFS=$as_save_IFS
9467 test -z "$ac_cv_prog_DVIPDFM" && ac_cv_prog_DVIPDFM=":"
9470 DVIPDFM=$ac_cv_prog_DVIPDFM
9471 if test -n "$DVIPDFM"; then
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPDFM" >&5
9473 printf "%s\n" "$DVIPDFM" >&6; }
9474 else
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 printf "%s\n" "no" >&6; }
9480 # Extract the first word of "pdflatex", so it can be a program name with args.
9481 set dummy pdflatex; ac_word=$2
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 printf %s "checking for $ac_word... " >&6; }
9484 if test ${ac_cv_prog_PDFLATEX+y}
9485 then :
9486 printf %s "(cached) " >&6
9487 else $as_nop
9488 if test -n "$PDFLATEX"; then
9489 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
9490 else
9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 for as_dir in $PATH
9494 IFS=$as_save_IFS
9495 case $as_dir in #(((
9496 '') as_dir=./ ;;
9497 */) ;;
9498 *) as_dir=$as_dir/ ;;
9499 esac
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9502 ac_cv_prog_PDFLATEX="pdflatex"
9503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9504 break 2
9506 done
9507 done
9508 IFS=$as_save_IFS
9510 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
9513 PDFLATEX=$ac_cv_prog_PDFLATEX
9514 if test -n "$PDFLATEX"; then
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
9516 printf "%s\n" "$PDFLATEX" >&6; }
9517 else
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 printf "%s\n" "no" >&6; }
9523 # Extract the first word of "makeindex", so it can be a program name with args.
9524 set dummy makeindex; ac_word=$2
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 printf %s "checking for $ac_word... " >&6; }
9527 if test ${ac_cv_prog_MAKEINDEX+y}
9528 then :
9529 printf %s "(cached) " >&6
9530 else $as_nop
9531 if test -n "$MAKEINDEX"; then
9532 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
9533 else
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in $PATH
9537 IFS=$as_save_IFS
9538 case $as_dir in #(((
9539 '') as_dir=./ ;;
9540 */) ;;
9541 *) as_dir=$as_dir/ ;;
9542 esac
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9545 ac_cv_prog_MAKEINDEX="makeindex"
9546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9547 break 2
9549 done
9550 done
9551 IFS=$as_save_IFS
9553 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
9556 MAKEINDEX=$ac_cv_prog_MAKEINDEX
9557 if test -n "$MAKEINDEX"; then
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
9559 printf "%s\n" "$MAKEINDEX" >&6; }
9560 else
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 printf "%s\n" "no" >&6; }
9567 if test $OPT_ENABLE_DOC = 1; then
9568 if test "$LYX" = ":"; then
9569 as_fn_error $? "Cannot find required program lyx." "$LINENO" 5
9572 if test "$LATEX2HTML" = ":"; then
9573 as_fn_error $? "Cannot find required program latex2html." "$LINENO" 5
9576 if test "$LATEX" = ":"; then
9577 as_fn_error $? "Cannot find required program latex." "$LINENO" 5
9580 if test "$DVIPDFM" = ":"; then
9581 as_fn_error $? "Cannot find required program dvipdfm." "$LINENO" 5
9584 if test "$MAKEINDEX" = ":"; then
9585 as_fn_error $? "Cannot find required program makeindex." "$LINENO" 5
9591 # Check whether --enable-libgc was given.
9592 if test ${enable_libgc+y}
9593 then :
9594 enableval=$enable_libgc;
9598 if test "$enable_libgc" = "yes"; then
9599 OPT_ENABLE_LIBGC=1
9600 else
9601 OPT_ENABLE_LIBGC=0
9605 printf "%s\n" "#define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC" >>confdefs.h
9609 if test $OPT_ENABLE_LIBGC = 1; then
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc" >&5
9611 printf %s "checking for GC_malloc in -lgc... " >&6; }
9612 if test ${ac_cv_lib_gc_GC_malloc+y}
9613 then :
9614 printf %s "(cached) " >&6
9615 else $as_nop
9616 ac_check_lib_save_LIBS=$LIBS
9617 LIBS="-lgc $LIBS"
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9621 /* Override any GCC internal prototype to avoid an error.
9622 Use char because int might match the return type of a GCC
9623 builtin and then its argument prototype would still apply. */
9624 char GC_malloc ();
9626 main (void)
9628 return GC_malloc ();
9630 return 0;
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"
9634 then :
9635 ac_cv_lib_gc_GC_malloc=yes
9636 else $as_nop
9637 ac_cv_lib_gc_GC_malloc=no
9639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9640 conftest$ac_exeext conftest.$ac_ext
9641 LIBS=$ac_check_lib_save_LIBS
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5
9644 printf "%s\n" "$ac_cv_lib_gc_GC_malloc" >&6; }
9645 if test "x$ac_cv_lib_gc_GC_malloc" = xyes
9646 then :
9647 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
9649 LIBS="-lgc $LIBS"
9653 if test $ac_cv_lib_gc_GC_malloc = no; then
9654 as_fn_error $? "Cannot find library libgc with Bohem memory allocator." "$LINENO" 5
9658 #remove duplicates
9659 uniq ports.all ports
9660 mv ports ports.all
9661 uniq ports.build ports
9662 mv ports ports.build
9664 # Generating output files
9665 # ===========================================================================
9666 test $OPT_DISABLE_SDCPP = 0 &&
9668 subdirs="$subdirs support/cpp"
9670 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
9672 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
9674 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
9676 test $OPT_DISABLE_SDBINUTILS = 0 && subdirs="$subdirs support/sdbinutils"
9678 ac_config_files="$ac_config_files doc/Makefile"
9681 ####test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile])
9683 if test $OPT_DISABLE_DS390 = 0 || test $OPT_DISABLE_DS400; then
9684 ac_config_files="$ac_config_files src/ds390/Makefile sdas/as8xcxxx/Makefile"
9686 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile device/lib/ds400/Makefile"
9690 if test $OPT_DISABLE_HC08 = 0 || test $OPT_DISABLE_S08 = 0; then
9691 ac_config_files="$ac_config_files src/hc08/Makefile sdas/as6808/Makefile"
9693 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile device/lib/s08/Makefile device/lib/s08-stack-auto/Makefile"
9697 if test $OPT_DISABLE_MOS6502 = 0 || test $OPT_DISABLE_MOS65C02 = 0; then
9698 ac_config_files="$ac_config_files src/mos6502/Makefile sdas/as6500/Makefile"
9700 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"
9704 if test $OPT_DISABLE_MCS51 = 0; then
9705 ac_config_files="$ac_config_files src/mcs51/Makefile sdas/as8051/Makefile"
9707 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"
9711 if test $OPT_DISABLE_PIC14 = 0; then
9712 ac_config_files="$ac_config_files src/pic14/Makefile"
9714 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic14"
9717 if test $OPT_DISABLE_PIC14 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9718 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/non-free/lib/pic14"
9721 if test $OPT_DISABLE_PIC16 = 0; then
9722 ac_config_files="$ac_config_files src/pic16/Makefile"
9724 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
9727 if test $OPT_DISABLE_PIC16 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9728 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/non-free/lib/pic16"
9732 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 || test $OPT_DISABLE_R800 = 0; then
9733 ac_config_files="$ac_config_files src/z80/Makefile"
9737 if test $OPT_DISABLE_Z80 = 0 || test $OPT_DISABLE_Z180 = 0 || test $OPT_DISABLE_EZ80_Z80 = 0 || test $OPT_DISABLE_Z80N = 0 || test $OPT_DISABLE_R800 = 0; then
9738 ac_config_files="$ac_config_files sdas/asz80/Makefile"
9740 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 device/lib/r800/Makefile"
9744 if test $OPT_DISABLE_R2K = 0 || test $OPT_DISABLE_R2KA = 0 || test $OPT_DISABLE_R3KA = 0; then
9745 ac_config_files="$ac_config_files sdas/asrab/Makefile"
9747 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/r2k/Makefile device/lib/r2ka/Makefile device/lib/r3ka/Makefile"
9751 if test $OPT_DISABLE_TLCS90 = 0; then
9752 ac_config_files="$ac_config_files sdas/astlcs90/Makefile"
9754 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/tlcs90/Makefile"
9758 if test $OPT_DISABLE_SM83 = 0; then
9759 ac_config_files="$ac_config_files sdas/asgb/Makefile"
9761 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/sm83/Makefile"
9765 if test $OPT_DISABLE_STM8 = 0; then
9766 ac_config_files="$ac_config_files src/stm8/Makefile sdas/asstm8/Makefile"
9768 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/stm8/Makefile device/lib/stm8-large/Makefile"
9772 if test $OPT_DISABLE_PDK13 = 0 || test $OPT_DISABLE_PDK14 = 0 || test $OPT_DISABLE_PDK15 = 0 || test $OPT_DISABLE_PDK16 = 0; then
9773 ac_config_files="$ac_config_files src/pdk/Makefile"
9777 if test $OPT_DISABLE_PDK13 = 0; then
9778 ac_config_files="$ac_config_files sdas/aspdk13/Makefile"
9780 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk13/Makefile"
9784 if test $OPT_DISABLE_PDK14 = 0; then
9785 ac_config_files="$ac_config_files sdas/aspdk14/Makefile"
9787 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk14/Makefile"
9791 if test $OPT_DISABLE_PDK15 = 0; then
9792 ac_config_files="$ac_config_files sdas/aspdk15/Makefile"
9794 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk15/Makefile device/lib/pdk15-stack-auto/Makefile"
9798 if test $OPT_DISABLE_PDK16 = 0; then
9799 ac_config_files="$ac_config_files sdas/aspdk16/Makefile"
9803 if test $OPT_DISABLE_F8 = 0; then
9804 ac_config_files="$ac_config_files src/f8/Makefile sdas/asf8/Makefile"
9806 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/f8/Makefile"
9810 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
9812 test $OPT_DISABLE_DEVICE_LIB = 0 && test $OPT_DISABLE_NON_FREE = 0 && ac_config_files="$ac_config_files device/non-free/lib/Makefile"
9815 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"
9817 ac_config_files="$ac_config_files bin/sdcc"
9819 ac_config_files="$ac_config_files bin/sdcpp"
9821 ac_config_files="$ac_config_files bin/sdar"
9823 ac_config_files="$ac_config_files bin/sdnm"
9825 ac_config_files="$ac_config_files bin/sdranlib"
9827 ac_config_files="$ac_config_files bin/sdobjcopy"
9829 if test $OPT_DISABLE_NON_FREE = 0; then
9830 ac_config_files="$ac_config_files device/non-free/include/Makefile"
9833 cat >confcache <<\_ACEOF
9834 # This file is a shell script that caches the results of configure
9835 # tests run on this system so they can be shared between configure
9836 # scripts and configure runs, see configure's option --config-cache.
9837 # It is not useful on other systems. If it contains results you don't
9838 # want to keep, you may remove or edit it.
9840 # config.status only pays attention to the cache file if you give it
9841 # the --recheck option to rerun configure.
9843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9845 # following values.
9847 _ACEOF
9849 # The following way of writing the cache mishandles newlines in values,
9850 # but we know of no workaround that is simple, portable, and efficient.
9851 # So, we kill variables containing newlines.
9852 # Ultrix sh set writes to stderr and can't be redirected directly,
9853 # and sets the high bit in the cache file unless we assign to the vars.
9855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9856 eval ac_val=\$$ac_var
9857 case $ac_val in #(
9858 *${as_nl}*)
9859 case $ac_var in #(
9860 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9861 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9862 esac
9863 case $ac_var in #(
9864 _ | IFS | as_nl) ;; #(
9865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9866 *) { eval $ac_var=; unset $ac_var;} ;;
9867 esac ;;
9868 esac
9869 done
9871 (set) 2>&1 |
9872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9873 *${as_nl}ac_space=\ *)
9874 # `set' does not quote correctly, so add quotes: double-quote
9875 # substitution turns \\\\ into \\, and sed turns \\ into \.
9876 sed -n \
9877 "s/'/'\\\\''/g;
9878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9879 ;; #(
9881 # `set' quotes correctly as required by POSIX, so do not add quotes.
9882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9884 esac |
9885 sort
9887 sed '
9888 /^ac_cv_env_/b end
9889 t clear
9890 :clear
9891 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9892 t end
9893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9894 :end' >>confcache
9895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9896 if test -w "$cache_file"; then
9897 if test "x$cache_file" != "x/dev/null"; then
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9899 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9900 if test ! -f "$cache_file" || test -h "$cache_file"; then
9901 cat confcache >"$cache_file"
9902 else
9903 case $cache_file in #(
9904 */* | ?:*)
9905 mv -f confcache "$cache_file"$$ &&
9906 mv -f "$cache_file"$$ "$cache_file" ;; #(
9908 mv -f confcache "$cache_file" ;;
9909 esac
9912 else
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9914 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9917 rm -f confcache
9919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9920 # Let make expand exec_prefix.
9921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9923 DEFS=-DHAVE_CONFIG_H
9925 ac_libobjs=
9926 ac_ltlibobjs=
9928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9929 # 1. Remove the extension, and $U if already installed.
9930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9931 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9933 # will be set to the directory where LIBOBJS objects are built.
9934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9936 done
9937 LIBOBJS=$ac_libobjs
9939 LTLIBOBJS=$ac_ltlibobjs
9944 : "${CONFIG_STATUS=./config.status}"
9945 ac_write_fail=0
9946 ac_clean_files_save=$ac_clean_files
9947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9949 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9950 as_write_fail=0
9951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9952 #! $SHELL
9953 # Generated by $as_me.
9954 # Run this file to recreate the current configuration.
9955 # Compiler output produced by configure, useful for debugging
9956 # configure, is in config.log if it exists.
9958 debug=false
9959 ac_cs_recheck=false
9960 ac_cs_silent=false
9962 SHELL=\${CONFIG_SHELL-$SHELL}
9963 export SHELL
9964 _ASEOF
9965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9966 ## -------------------- ##
9967 ## M4sh Initialization. ##
9968 ## -------------------- ##
9970 # Be more Bourne compatible
9971 DUALCASE=1; export DUALCASE # for MKS sh
9972 as_nop=:
9973 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9974 then :
9975 emulate sh
9976 NULLCMD=:
9977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9978 # is contrary to our usage. Disable this feature.
9979 alias -g '${1+"$@"}'='"$@"'
9980 setopt NO_GLOB_SUBST
9981 else $as_nop
9982 case `(set -o) 2>/dev/null` in #(
9983 *posix*) :
9984 set -o posix ;; #(
9985 *) :
9987 esac
9992 # Reset variables that may have inherited troublesome values from
9993 # the environment.
9995 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9996 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9997 # side effect of setting IFS to empty, thus disabling word splitting.)
9998 # Quoting is to prevent editors from complaining about space-tab.
9999 as_nl='
10001 export as_nl
10002 IFS=" "" $as_nl"
10004 PS1='$ '
10005 PS2='> '
10006 PS4='+ '
10008 # Ensure predictable behavior from utilities with locale-dependent output.
10009 LC_ALL=C
10010 export LC_ALL
10011 LANGUAGE=C
10012 export LANGUAGE
10014 # We cannot yet rely on "unset" to work, but we need these variables
10015 # to be unset--not just set to an empty or harmless value--now, to
10016 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10017 # also avoids known problems related to "unset" and subshell syntax
10018 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10019 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10020 do eval test \${$as_var+y} \
10021 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10022 done
10024 # Ensure that fds 0, 1, and 2 are open.
10025 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10026 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10027 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10029 # The user is always right.
10030 if ${PATH_SEPARATOR+false} :; then
10031 PATH_SEPARATOR=:
10032 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10033 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10034 PATH_SEPARATOR=';'
10039 # Find who we are. Look in the path if we contain no directory separator.
10040 as_myself=
10041 case $0 in #((
10042 *[\\/]* ) as_myself=$0 ;;
10043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10046 IFS=$as_save_IFS
10047 case $as_dir in #(((
10048 '') as_dir=./ ;;
10049 */) ;;
10050 *) as_dir=$as_dir/ ;;
10051 esac
10052 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10053 done
10054 IFS=$as_save_IFS
10057 esac
10058 # We did not find ourselves, most probably we were run as `sh COMMAND'
10059 # in which case we are not to be found in the path.
10060 if test "x$as_myself" = x; then
10061 as_myself=$0
10063 if test ! -f "$as_myself"; then
10064 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10065 exit 1
10070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10071 # ----------------------------------------
10072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10074 # script with STATUS, using 1 if that was 0.
10075 as_fn_error ()
10077 as_status=$1; test $as_status -eq 0 && as_status=1
10078 if test "$4"; then
10079 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10082 printf "%s\n" "$as_me: error: $2" >&2
10083 as_fn_exit $as_status
10084 } # as_fn_error
10088 # as_fn_set_status STATUS
10089 # -----------------------
10090 # Set $? to STATUS, without forking.
10091 as_fn_set_status ()
10093 return $1
10094 } # as_fn_set_status
10096 # as_fn_exit STATUS
10097 # -----------------
10098 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10099 as_fn_exit ()
10101 set +e
10102 as_fn_set_status $1
10103 exit $1
10104 } # as_fn_exit
10106 # as_fn_unset VAR
10107 # ---------------
10108 # Portably unset VAR.
10109 as_fn_unset ()
10111 { eval $1=; unset $1;}
10113 as_unset=as_fn_unset
10115 # as_fn_append VAR VALUE
10116 # ----------------------
10117 # Append the text in VALUE to the end of the definition contained in VAR. Take
10118 # advantage of any shell optimizations that allow amortized linear growth over
10119 # repeated appends, instead of the typical quadratic growth present in naive
10120 # implementations.
10121 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10122 then :
10123 eval 'as_fn_append ()
10125 eval $1+=\$2
10127 else $as_nop
10128 as_fn_append ()
10130 eval $1=\$$1\$2
10132 fi # as_fn_append
10134 # as_fn_arith ARG...
10135 # ------------------
10136 # Perform arithmetic evaluation on the ARGs, and store the result in the
10137 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10138 # must be portable across $(()) and expr.
10139 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10140 then :
10141 eval 'as_fn_arith ()
10143 as_val=$(( $* ))
10145 else $as_nop
10146 as_fn_arith ()
10148 as_val=`expr "$@" || test $? -eq 1`
10150 fi # as_fn_arith
10153 if expr a : '\(a\)' >/dev/null 2>&1 &&
10154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10155 as_expr=expr
10156 else
10157 as_expr=false
10160 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10161 as_basename=basename
10162 else
10163 as_basename=false
10166 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10167 as_dirname=dirname
10168 else
10169 as_dirname=false
10172 as_me=`$as_basename -- "$0" ||
10173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10174 X"$0" : 'X\(//\)$' \| \
10175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10176 printf "%s\n" X/"$0" |
10177 sed '/^.*\/\([^/][^/]*\)\/*$/{
10178 s//\1/
10181 /^X\/\(\/\/\)$/{
10182 s//\1/
10185 /^X\/\(\/\).*/{
10186 s//\1/
10189 s/.*/./; q'`
10191 # Avoid depending upon Character Ranges.
10192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10195 as_cr_digits='0123456789'
10196 as_cr_alnum=$as_cr_Letters$as_cr_digits
10199 # Determine whether it's possible to make 'echo' print without a newline.
10200 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10201 # for compatibility with existing Makefiles.
10202 ECHO_C= ECHO_N= ECHO_T=
10203 case `echo -n x` in #(((((
10204 -n*)
10205 case `echo 'xy\c'` in
10206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10207 xy) ECHO_C='\c';;
10208 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10209 ECHO_T=' ';;
10210 esac;;
10212 ECHO_N='-n';;
10213 esac
10215 # For backward compatibility with old third-party macros, we provide
10216 # the shell variables $as_echo and $as_echo_n. New code should use
10217 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10218 as_echo='printf %s\n'
10219 as_echo_n='printf %s'
10221 rm -f conf$$ conf$$.exe conf$$.file
10222 if test -d conf$$.dir; then
10223 rm -f conf$$.dir/conf$$.file
10224 else
10225 rm -f conf$$.dir
10226 mkdir conf$$.dir 2>/dev/null
10228 if (echo >conf$$.file) 2>/dev/null; then
10229 if ln -s conf$$.file conf$$ 2>/dev/null; then
10230 as_ln_s='ln -s'
10231 # ... but there are two gotchas:
10232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10234 # In both cases, we have to default to `cp -pR'.
10235 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10236 as_ln_s='cp -pR'
10237 elif ln conf$$.file conf$$ 2>/dev/null; then
10238 as_ln_s=ln
10239 else
10240 as_ln_s='cp -pR'
10242 else
10243 as_ln_s='cp -pR'
10245 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10246 rmdir conf$$.dir 2>/dev/null
10249 # as_fn_mkdir_p
10250 # -------------
10251 # Create "$as_dir" as a directory, including parents if necessary.
10252 as_fn_mkdir_p ()
10255 case $as_dir in #(
10256 -*) as_dir=./$as_dir;;
10257 esac
10258 test -d "$as_dir" || eval $as_mkdir_p || {
10259 as_dirs=
10260 while :; do
10261 case $as_dir in #(
10262 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10263 *) as_qdir=$as_dir;;
10264 esac
10265 as_dirs="'$as_qdir' $as_dirs"
10266 as_dir=`$as_dirname -- "$as_dir" ||
10267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10268 X"$as_dir" : 'X\(//\)[^/]' \| \
10269 X"$as_dir" : 'X\(//\)$' \| \
10270 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10271 printf "%s\n" X"$as_dir" |
10272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10273 s//\1/
10276 /^X\(\/\/\)[^/].*/{
10277 s//\1/
10280 /^X\(\/\/\)$/{
10281 s//\1/
10284 /^X\(\/\).*/{
10285 s//\1/
10288 s/.*/./; q'`
10289 test -d "$as_dir" && break
10290 done
10291 test -z "$as_dirs" || eval "mkdir $as_dirs"
10292 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10295 } # as_fn_mkdir_p
10296 if mkdir -p . 2>/dev/null; then
10297 as_mkdir_p='mkdir -p "$as_dir"'
10298 else
10299 test -d ./-p && rmdir ./-p
10300 as_mkdir_p=false
10304 # as_fn_executable_p FILE
10305 # -----------------------
10306 # Test if FILE is an executable regular file.
10307 as_fn_executable_p ()
10309 test -f "$1" && test -x "$1"
10310 } # as_fn_executable_p
10311 as_test_x='test -x'
10312 as_executable_p=as_fn_executable_p
10314 # Sed expression to map a string onto a valid CPP name.
10315 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10317 # Sed expression to map a string onto a valid variable name.
10318 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10321 exec 6>&1
10322 ## ----------------------------------- ##
10323 ## Main body of $CONFIG_STATUS script. ##
10324 ## ----------------------------------- ##
10325 _ASEOF
10326 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10329 # Save the log message, to keep $0 and so on meaningful, and to
10330 # report actual input values of CONFIG_FILES etc. instead of their
10331 # values after options handling.
10332 ac_log="
10333 This file was extended by $as_me, which was
10334 generated by GNU Autoconf 2.71. Invocation command line was
10336 CONFIG_FILES = $CONFIG_FILES
10337 CONFIG_HEADERS = $CONFIG_HEADERS
10338 CONFIG_LINKS = $CONFIG_LINKS
10339 CONFIG_COMMANDS = $CONFIG_COMMANDS
10340 $ $0 $@
10342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10345 _ACEOF
10347 case $ac_config_files in *"
10348 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10349 esac
10351 case $ac_config_headers in *"
10352 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10353 esac
10356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10357 # Files that config.status was made for.
10358 config_files="$ac_config_files"
10359 config_headers="$ac_config_headers"
10361 _ACEOF
10363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10364 ac_cs_usage="\
10365 \`$as_me' instantiates files and other configuration actions
10366 from templates according to the current configuration. Unless the files
10367 and actions are specified as TAGs, all are instantiated by default.
10369 Usage: $0 [OPTION]... [TAG]...
10371 -h, --help print this help, then exit
10372 -V, --version print version number and configuration settings, then exit
10373 --config print configuration, then exit
10374 -q, --quiet, --silent
10375 do not print progress messages
10376 -d, --debug don't remove temporary files
10377 --recheck update $as_me by reconfiguring in the same conditions
10378 --file=FILE[:TEMPLATE]
10379 instantiate the configuration file FILE
10380 --header=FILE[:TEMPLATE]
10381 instantiate the configuration header FILE
10383 Configuration files:
10384 $config_files
10386 Configuration headers:
10387 $config_headers
10389 Report bugs to the package provider."
10391 _ACEOF
10392 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10393 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10395 ac_cs_config='$ac_cs_config_escaped'
10396 ac_cs_version="\\
10397 config.status
10398 configured by $0, generated by GNU Autoconf 2.71,
10399 with options \\"\$ac_cs_config\\"
10401 Copyright (C) 2021 Free Software Foundation, Inc.
10402 This config.status script is free software; the Free Software Foundation
10403 gives unlimited permission to copy, distribute and modify it."
10405 ac_pwd='$ac_pwd'
10406 srcdir='$srcdir'
10407 INSTALL='$INSTALL'
10408 AWK='$AWK'
10409 test -n "\$AWK" || AWK=awk
10410 _ACEOF
10412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10413 # The default lists apply if the user does not specify any file.
10414 ac_need_defaults=:
10415 while test $# != 0
10417 case $1 in
10418 --*=?*)
10419 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10420 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10421 ac_shift=:
10423 --*=)
10424 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10425 ac_optarg=
10426 ac_shift=:
10429 ac_option=$1
10430 ac_optarg=$2
10431 ac_shift=shift
10433 esac
10435 case $ac_option in
10436 # Handling of the options.
10437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10438 ac_cs_recheck=: ;;
10439 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10440 printf "%s\n" "$ac_cs_version"; exit ;;
10441 --config | --confi | --conf | --con | --co | --c )
10442 printf "%s\n" "$ac_cs_config"; exit ;;
10443 --debug | --debu | --deb | --de | --d | -d )
10444 debug=: ;;
10445 --file | --fil | --fi | --f )
10446 $ac_shift
10447 case $ac_optarg in
10448 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10449 '') as_fn_error $? "missing file argument" ;;
10450 esac
10451 as_fn_append CONFIG_FILES " '$ac_optarg'"
10452 ac_need_defaults=false;;
10453 --header | --heade | --head | --hea )
10454 $ac_shift
10455 case $ac_optarg in
10456 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10457 esac
10458 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10459 ac_need_defaults=false;;
10460 --he | --h)
10461 # Conflict between --help and --header
10462 as_fn_error $? "ambiguous option: \`$1'
10463 Try \`$0 --help' for more information.";;
10464 --help | --hel | -h )
10465 printf "%s\n" "$ac_cs_usage"; exit ;;
10466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10467 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10468 ac_cs_silent=: ;;
10470 # This is an error.
10471 -*) as_fn_error $? "unrecognized option: \`$1'
10472 Try \`$0 --help' for more information." ;;
10474 *) as_fn_append ac_config_targets " $1"
10475 ac_need_defaults=false ;;
10477 esac
10478 shift
10479 done
10481 ac_configure_extra_args=
10483 if $ac_cs_silent; then
10484 exec 6>/dev/null
10485 ac_configure_extra_args="$ac_configure_extra_args --silent"
10488 _ACEOF
10489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10490 if \$ac_cs_recheck; then
10491 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10492 shift
10493 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10494 CONFIG_SHELL='$SHELL'
10495 export CONFIG_SHELL
10496 exec "\$@"
10499 _ACEOF
10500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10501 exec 5>>config.log
10503 echo
10504 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10505 ## Running $as_me. ##
10506 _ASBOX
10507 printf "%s\n" "$ac_log"
10508 } >&5
10510 _ACEOF
10511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10512 _ACEOF
10514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10516 # Handling of arguments.
10517 for ac_config_target in $ac_config_targets
10519 case $ac_config_target in
10520 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
10521 "sdas/linksrc/asxxxx_config.h") CONFIG_HEADERS="$CONFIG_HEADERS sdas/linksrc/asxxxx_config.h" ;;
10522 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10523 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
10524 "sdas/as8xcxxx/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as8xcxxx/Makefile" ;;
10525 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
10526 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
10527 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
10528 "sdas/as6808/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as6808/Makefile" ;;
10529 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
10530 "device/lib/s08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/s08/Makefile" ;;
10531 "device/lib/s08-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/s08-stack-auto/Makefile" ;;
10532 "src/mos6502/Makefile") CONFIG_FILES="$CONFIG_FILES src/mos6502/Makefile" ;;
10533 "sdas/as6500/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as6500/Makefile" ;;
10534 "device/lib/mos6502/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos6502/Makefile" ;;
10535 "device/lib/mos6502-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos6502-stack-auto/Makefile" ;;
10536 "device/lib/mos65c02/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos65c02/Makefile" ;;
10537 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
10538 "sdas/as8051/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as8051/Makefile" ;;
10539 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
10540 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
10541 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
10542 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
10543 "device/lib/huge/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/huge/Makefile" ;;
10544 "src/pic14/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic14/Makefile" ;;
10545 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
10546 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
10547 "sdas/asz80/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asz80/Makefile" ;;
10548 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
10549 "device/lib/z180/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z180/Makefile" ;;
10550 "device/lib/ez80_z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ez80_z80/Makefile" ;;
10551 "device/lib/z80n/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80n/Makefile" ;;
10552 "device/lib/r800/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r800/Makefile" ;;
10553 "sdas/asrab/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asrab/Makefile" ;;
10554 "device/lib/r2k/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r2k/Makefile" ;;
10555 "device/lib/r2ka/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r2ka/Makefile" ;;
10556 "device/lib/r3ka/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r3ka/Makefile" ;;
10557 "sdas/astlcs90/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/astlcs90/Makefile" ;;
10558 "device/lib/tlcs90/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/tlcs90/Makefile" ;;
10559 "sdas/asgb/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asgb/Makefile" ;;
10560 "device/lib/sm83/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/sm83/Makefile" ;;
10561 "src/stm8/Makefile") CONFIG_FILES="$CONFIG_FILES src/stm8/Makefile" ;;
10562 "sdas/asstm8/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asstm8/Makefile" ;;
10563 "device/lib/stm8/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/stm8/Makefile" ;;
10564 "device/lib/stm8-large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/stm8-large/Makefile" ;;
10565 "src/pdk/Makefile") CONFIG_FILES="$CONFIG_FILES src/pdk/Makefile" ;;
10566 "sdas/aspdk13/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk13/Makefile" ;;
10567 "device/lib/pdk13/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk13/Makefile" ;;
10568 "sdas/aspdk14/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk14/Makefile" ;;
10569 "device/lib/pdk14/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk14/Makefile" ;;
10570 "sdas/aspdk15/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk15/Makefile" ;;
10571 "device/lib/pdk15/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk15/Makefile" ;;
10572 "device/lib/pdk15-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk15-stack-auto/Makefile" ;;
10573 "sdas/aspdk16/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk16/Makefile" ;;
10574 "src/f8/Makefile") CONFIG_FILES="$CONFIG_FILES src/f8/Makefile" ;;
10575 "sdas/asf8/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asf8/Makefile" ;;
10576 "device/lib/f8/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/f8/Makefile" ;;
10577 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
10578 "device/non-free/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/non-free/lib/Makefile" ;;
10579 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
10580 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
10581 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10582 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
10583 "sdas/linksrc/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/linksrc/Makefile" ;;
10584 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
10585 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
10586 "support/regression/cases/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/cases/Makefile" ;;
10587 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
10588 "support/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES support/scripts/Makefile" ;;
10589 "support/regression/ports/host/spec.mk") CONFIG_FILES="$CONFIG_FILES support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in" ;;
10590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10591 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
10592 "bin/sdcc") CONFIG_FILES="$CONFIG_FILES bin/sdcc" ;;
10593 "bin/sdcpp") CONFIG_FILES="$CONFIG_FILES bin/sdcpp" ;;
10594 "bin/sdar") CONFIG_FILES="$CONFIG_FILES bin/sdar" ;;
10595 "bin/sdnm") CONFIG_FILES="$CONFIG_FILES bin/sdnm" ;;
10596 "bin/sdranlib") CONFIG_FILES="$CONFIG_FILES bin/sdranlib" ;;
10597 "bin/sdobjcopy") CONFIG_FILES="$CONFIG_FILES bin/sdobjcopy" ;;
10598 "device/non-free/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/non-free/include/Makefile" ;;
10600 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10601 esac
10602 done
10605 # If the user did not use the arguments to specify the items to instantiate,
10606 # then the envvar interface is used. Set only those that are not.
10607 # We use the long form for the default assignment because of an extremely
10608 # bizarre bug on SunOS 4.1.3.
10609 if $ac_need_defaults; then
10610 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10611 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10614 # Have a temporary directory for convenience. Make it in the build tree
10615 # simply because there is no reason against having it here, and in addition,
10616 # creating and moving files from /tmp can sometimes cause problems.
10617 # Hook for its removal unless debugging.
10618 # Note that there is a small window in which the directory will not be cleaned:
10619 # after its creation but before its name has been assigned to `$tmp'.
10620 $debug ||
10622 tmp= ac_tmp=
10623 trap 'exit_status=$?
10624 : "${ac_tmp:=$tmp}"
10625 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10627 trap 'as_fn_exit 1' 1 2 13 15
10629 # Create a (secure) tmp directory for tmp files.
10632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10633 test -d "$tmp"
10634 } ||
10636 tmp=./conf$$-$RANDOM
10637 (umask 077 && mkdir "$tmp")
10638 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10639 ac_tmp=$tmp
10641 # Set up the scripts for CONFIG_FILES section.
10642 # No need to generate them if there are no CONFIG_FILES.
10643 # This happens for instance with `./config.status config.h'.
10644 if test -n "$CONFIG_FILES"; then
10647 ac_cr=`echo X | tr X '\015'`
10648 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10649 # But we know of no other shell where ac_cr would be empty at this
10650 # point, so we can use a bashism as a fallback.
10651 if test "x$ac_cr" = x; then
10652 eval ac_cr=\$\'\\r\'
10654 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10655 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10656 ac_cs_awk_cr='\\r'
10657 else
10658 ac_cs_awk_cr=$ac_cr
10661 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10662 _ACEOF
10666 echo "cat >conf$$subs.awk <<_ACEOF" &&
10667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10668 echo "_ACEOF"
10669 } >conf$$subs.sh ||
10670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10671 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10672 ac_delim='%!_!# '
10673 for ac_last_try in false false false false false :; do
10674 . ./conf$$subs.sh ||
10675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10677 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10678 if test $ac_delim_n = $ac_delim_num; then
10679 break
10680 elif $ac_last_try; then
10681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10682 else
10683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10685 done
10686 rm -f conf$$subs.sh
10688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10689 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10690 _ACEOF
10691 sed -n '
10693 s/^/S["/; s/!.*/"]=/
10696 s/^[^!]*!//
10697 :repl
10698 t repl
10699 s/'"$ac_delim"'$//
10700 t delim
10703 s/\(.\{148\}\)..*/\1/
10704 t more1
10705 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10708 b repl
10709 :more1
10710 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10713 s/.\{148\}//
10714 t nl
10715 :delim
10717 s/\(.\{148\}\)..*/\1/
10718 t more2
10719 s/["\\]/\\&/g; s/^/"/; s/$/"/
10722 :more2
10723 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10726 s/.\{148\}//
10727 t delim
10728 ' <conf$$subs.awk | sed '
10729 /^[^""]/{
10731 s/\n//
10733 ' >>$CONFIG_STATUS || ac_write_fail=1
10734 rm -f conf$$subs.awk
10735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10736 _ACAWK
10737 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10738 for (key in S) S_is_set[key] = 1
10739 FS = "\a"
10743 line = $ 0
10744 nfields = split(line, field, "@")
10745 substed = 0
10746 len = length(field[1])
10747 for (i = 2; i < nfields; i++) {
10748 key = field[i]
10749 keylen = length(key)
10750 if (S_is_set[key]) {
10751 value = S[key]
10752 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10753 len += length(value) + length(field[++i])
10754 substed = 1
10755 } else
10756 len += 1 + keylen
10759 print line
10762 _ACAWK
10763 _ACEOF
10764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10765 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10766 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10767 else
10769 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10770 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10771 _ACEOF
10773 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10774 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10775 # trailing colons and then remove the whole line if VPATH becomes empty
10776 # (actually we leave an empty line to preserve line numbers).
10777 if test "x$srcdir" = x.; then
10778 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10780 s///
10781 s/^/:/
10782 s/[ ]*$/:/
10783 s/:\$(srcdir):/:/g
10784 s/:\${srcdir}:/:/g
10785 s/:@srcdir@:/:/g
10786 s/^:*//
10787 s/:*$//
10789 s/\(=[ ]*\).*/\1/
10791 s/\n//
10792 s/^[^=]*=[ ]*$//
10796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10797 fi # test -n "$CONFIG_FILES"
10799 # Set up the scripts for CONFIG_HEADERS section.
10800 # No need to generate them if there are no CONFIG_HEADERS.
10801 # This happens for instance with `./config.status Makefile'.
10802 if test -n "$CONFIG_HEADERS"; then
10803 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10804 BEGIN {
10805 _ACEOF
10807 # Transform confdefs.h into an awk script `defines.awk', embedded as
10808 # here-document in config.status, that substitutes the proper values into
10809 # config.h.in to produce config.h.
10811 # Create a delimiter string that does not exist in confdefs.h, to ease
10812 # handling of long lines.
10813 ac_delim='%!_!# '
10814 for ac_last_try in false false :; do
10815 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10816 if test -z "$ac_tt"; then
10817 break
10818 elif $ac_last_try; then
10819 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10820 else
10821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10823 done
10825 # For the awk script, D is an array of macro values keyed by name,
10826 # likewise P contains macro parameters if any. Preserve backslash
10827 # newline sequences.
10829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10830 sed -n '
10831 s/.\{148\}/&'"$ac_delim"'/g
10832 t rset
10833 :rset
10834 s/^[ ]*#[ ]*define[ ][ ]*/ /
10835 t def
10837 :def
10838 s/\\$//
10839 t bsnl
10840 s/["\\]/\\&/g
10841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10842 D["\1"]=" \3"/p
10843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10845 :bsnl
10846 s/["\\]/\\&/g
10847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10848 D["\1"]=" \3\\\\\\n"\\/p
10849 t cont
10850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10851 t cont
10853 :cont
10855 s/.\{148\}/&'"$ac_delim"'/g
10856 t clear
10857 :clear
10858 s/\\$//
10859 t bsnlc
10860 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10862 :bsnlc
10863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10864 b cont
10865 ' <confdefs.h | sed '
10866 s/'"$ac_delim"'/"\\\
10867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10870 for (key in D) D_is_set[key] = 1
10871 FS = "\a"
10873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10874 line = \$ 0
10875 split(line, arg, " ")
10876 if (arg[1] == "#") {
10877 defundef = arg[2]
10878 mac1 = arg[3]
10879 } else {
10880 defundef = substr(arg[1], 2)
10881 mac1 = arg[2]
10883 split(mac1, mac2, "(") #)
10884 macro = mac2[1]
10885 prefix = substr(line, 1, index(line, defundef) - 1)
10886 if (D_is_set[macro]) {
10887 # Preserve the white space surrounding the "#".
10888 print prefix "define", macro P[macro] D[macro]
10889 next
10890 } else {
10891 # Replace #undef with comments. This is necessary, for example,
10892 # in the case of _POSIX_SOURCE, which is predefined and required
10893 # on some systems where configure will not decide to define it.
10894 if (defundef == "undef") {
10895 print "/*", prefix defundef, macro, "*/"
10896 next
10900 { print }
10901 _ACAWK
10902 _ACEOF
10903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10904 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10905 fi # test -n "$CONFIG_HEADERS"
10908 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10909 shift
10910 for ac_tag
10912 case $ac_tag in
10913 :[FHLC]) ac_mode=$ac_tag; continue;;
10914 esac
10915 case $ac_mode$ac_tag in
10916 :[FHL]*:*);;
10917 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10918 :[FH]-) ac_tag=-:-;;
10919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10920 esac
10921 ac_save_IFS=$IFS
10922 IFS=:
10923 set x $ac_tag
10924 IFS=$ac_save_IFS
10925 shift
10926 ac_file=$1
10927 shift
10929 case $ac_mode in
10930 :L) ac_source=$1;;
10931 :[FH])
10932 ac_file_inputs=
10933 for ac_f
10935 case $ac_f in
10936 -) ac_f="$ac_tmp/stdin";;
10937 *) # Look for the file first in the build tree, then in the source tree
10938 # (if the path is not absolute). The absolute path cannot be DOS-style,
10939 # because $ac_f cannot contain `:'.
10940 test -f "$ac_f" ||
10941 case $ac_f in
10942 [\\/$]*) false;;
10943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10944 esac ||
10945 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10946 esac
10947 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10948 as_fn_append ac_file_inputs " '$ac_f'"
10949 done
10951 # Let's still pretend it is `configure' which instantiates (i.e., don't
10952 # use $as_me), people would be surprised to read:
10953 # /* config.h. Generated by config.status. */
10954 configure_input='Generated from '`
10955 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10956 `' by configure.'
10957 if test x"$ac_file" != x-; then
10958 configure_input="$ac_file. $configure_input"
10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10960 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10962 # Neutralize special characters interpreted by sed in replacement strings.
10963 case $configure_input in #(
10964 *\&* | *\|* | *\\* )
10965 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10967 *) ac_sed_conf_input=$configure_input;;
10968 esac
10970 case $ac_tag in
10971 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10973 esac
10975 esac
10977 ac_dir=`$as_dirname -- "$ac_file" ||
10978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10979 X"$ac_file" : 'X\(//\)[^/]' \| \
10980 X"$ac_file" : 'X\(//\)$' \| \
10981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10982 printf "%s\n" X"$ac_file" |
10983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10984 s//\1/
10987 /^X\(\/\/\)[^/].*/{
10988 s//\1/
10991 /^X\(\/\/\)$/{
10992 s//\1/
10995 /^X\(\/\).*/{
10996 s//\1/
10999 s/.*/./; q'`
11000 as_dir="$ac_dir"; as_fn_mkdir_p
11001 ac_builddir=.
11003 case "$ac_dir" in
11004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11006 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11007 # A ".." for each directory in $ac_dir_suffix.
11008 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11009 case $ac_top_builddir_sub in
11010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11012 esac ;;
11013 esac
11014 ac_abs_top_builddir=$ac_pwd
11015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11016 # for backward compatibility:
11017 ac_top_builddir=$ac_top_build_prefix
11019 case $srcdir in
11020 .) # We are building in place.
11021 ac_srcdir=.
11022 ac_top_srcdir=$ac_top_builddir_sub
11023 ac_abs_top_srcdir=$ac_pwd ;;
11024 [\\/]* | ?:[\\/]* ) # Absolute name.
11025 ac_srcdir=$srcdir$ac_dir_suffix;
11026 ac_top_srcdir=$srcdir
11027 ac_abs_top_srcdir=$srcdir ;;
11028 *) # Relative name.
11029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11030 ac_top_srcdir=$ac_top_build_prefix$srcdir
11031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11032 esac
11033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11036 case $ac_mode in
11039 # CONFIG_FILE
11042 case $INSTALL in
11043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11045 esac
11046 _ACEOF
11048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11049 # If the template does not know about datarootdir, expand it.
11050 # FIXME: This hack should be removed a few years after 2.60.
11051 ac_datarootdir_hack=; ac_datarootdir_seen=
11052 ac_sed_dataroot='
11053 /datarootdir/ {
11057 /@datadir@/p
11058 /@docdir@/p
11059 /@infodir@/p
11060 /@localedir@/p
11061 /@mandir@/p'
11062 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11063 *datarootdir*) ac_datarootdir_seen=yes;;
11064 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11066 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11067 _ACEOF
11068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11069 ac_datarootdir_hack='
11070 s&@datadir@&$datadir&g
11071 s&@docdir@&$docdir&g
11072 s&@infodir@&$infodir&g
11073 s&@localedir@&$localedir&g
11074 s&@mandir@&$mandir&g
11075 s&\\\${datarootdir}&$datarootdir&g' ;;
11076 esac
11077 _ACEOF
11079 # Neutralize VPATH when `$srcdir' = `.'.
11080 # Shell code in configure.ac might set extrasub.
11081 # FIXME: do we really want to maintain this feature?
11082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11083 ac_sed_extra="$ac_vpsub
11084 $extrasub
11085 _ACEOF
11086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11089 s|@configure_input@|$ac_sed_conf_input|;t t
11090 s&@top_builddir@&$ac_top_builddir_sub&;t t
11091 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11092 s&@srcdir@&$ac_srcdir&;t t
11093 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11094 s&@top_srcdir@&$ac_top_srcdir&;t t
11095 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11096 s&@builddir@&$ac_builddir&;t t
11097 s&@abs_builddir@&$ac_abs_builddir&;t t
11098 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11099 s&@INSTALL@&$ac_INSTALL&;t t
11100 $ac_datarootdir_hack
11102 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11108 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11110 which seems to be undefined. Please make sure it is defined" >&5
11111 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11112 which seems to be undefined. Please make sure it is defined" >&2;}
11114 rm -f "$ac_tmp/stdin"
11115 case $ac_file in
11116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11118 esac \
11119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11123 # CONFIG_HEADER
11125 if test x"$ac_file" != x-; then
11127 printf "%s\n" "/* $configure_input */" >&1 \
11128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11129 } >"$ac_tmp/config.h" \
11130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11133 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11134 else
11135 rm -f "$ac_file"
11136 mv "$ac_tmp/config.h" "$ac_file" \
11137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11139 else
11140 printf "%s\n" "/* $configure_input */" >&1 \
11141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11142 || as_fn_error $? "could not create -" "$LINENO" 5
11147 esac
11150 case $ac_file$ac_mode in
11151 "bin/sdcc":F) chmod +x bin/sdcc ;;
11152 "bin/sdcpp":F) chmod +x bin/sdcpp ;;
11153 "bin/sdar":F) chmod +x bin/sdar ;;
11154 "bin/sdnm":F) chmod +x bin/sdnm ;;
11155 "bin/sdranlib":F) chmod +x bin/sdranlib ;;
11156 "bin/sdobjcopy":F) chmod +x bin/sdobjcopy ;;
11158 esac
11159 done # for ac_tag
11162 as_fn_exit 0
11163 _ACEOF
11164 ac_clean_files=$ac_clean_files_save
11166 test $ac_write_fail = 0 ||
11167 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11170 # configure is writing to config.log, and then calls config.status.
11171 # config.status does its own redirection, appending to config.log.
11172 # Unfortunately, on DOS this fails, as config.log is still kept open
11173 # by configure, so config.status won't be able to write to it; its
11174 # output is simply discarded. So we exec the FD to /dev/null,
11175 # effectively closing config.log, so it can be properly (re)opened and
11176 # appended to by config.status. When coming back to configure, we
11177 # need to make the FD available again.
11178 if test "$no_create" != yes; then
11179 ac_cs_success=:
11180 ac_config_status_args=
11181 test "$silent" = yes &&
11182 ac_config_status_args="$ac_config_status_args --quiet"
11183 exec 5>/dev/null
11184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11185 exec 5>>config.log
11186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11187 # would make configure fail if this is the last instruction.
11188 $ac_cs_success || as_fn_exit 1
11192 # CONFIG_SUBDIRS section.
11194 if test "$no_recursion" != yes; then
11196 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11197 # so they do not pile up.
11198 ac_sub_configure_args=
11199 ac_prev=
11200 eval "set x $ac_configure_args"
11201 shift
11202 for ac_arg
11204 if test -n "$ac_prev"; then
11205 ac_prev=
11206 continue
11208 case $ac_arg in
11209 -cache-file | --cache-file | --cache-fil | --cache-fi \
11210 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11211 ac_prev=cache_file ;;
11212 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11213 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11214 | --c=*)
11216 --config-cache | -C)
11218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11219 ac_prev=srcdir ;;
11220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11222 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11223 ac_prev=prefix ;;
11224 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11226 --disable-option-checking)
11229 case $ac_arg in
11230 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11231 esac
11232 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
11233 esac
11234 done
11236 # Always prepend --prefix to ensure using the same prefix
11237 # in subdir configurations.
11238 ac_arg="--prefix=$prefix"
11239 case $ac_arg in
11240 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11241 esac
11242 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11244 # Pass --silent
11245 if test "$silent" = yes; then
11246 ac_sub_configure_args="--silent $ac_sub_configure_args"
11249 # Always prepend --disable-option-checking to silence warnings, since
11250 # different subdirs can have different --enable and --with options.
11251 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11253 ac_popdir=`pwd`
11254 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11256 # Do not complain, so a configure script can configure whichever
11257 # parts of a large source tree are present.
11258 test -d "$srcdir/$ac_dir" || continue
11260 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11262 printf "%s\n" "$ac_msg" >&6
11263 as_dir="$ac_dir"; as_fn_mkdir_p
11264 ac_builddir=.
11266 case "$ac_dir" in
11267 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11269 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11270 # A ".." for each directory in $ac_dir_suffix.
11271 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11272 case $ac_top_builddir_sub in
11273 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11274 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11275 esac ;;
11276 esac
11277 ac_abs_top_builddir=$ac_pwd
11278 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11279 # for backward compatibility:
11280 ac_top_builddir=$ac_top_build_prefix
11282 case $srcdir in
11283 .) # We are building in place.
11284 ac_srcdir=.
11285 ac_top_srcdir=$ac_top_builddir_sub
11286 ac_abs_top_srcdir=$ac_pwd ;;
11287 [\\/]* | ?:[\\/]* ) # Absolute name.
11288 ac_srcdir=$srcdir$ac_dir_suffix;
11289 ac_top_srcdir=$srcdir
11290 ac_abs_top_srcdir=$srcdir ;;
11291 *) # Relative name.
11292 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11293 ac_top_srcdir=$ac_top_build_prefix$srcdir
11294 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11295 esac
11296 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11299 cd "$ac_dir"
11301 # Check for configure.gnu first; this name is used for a wrapper for
11302 # Metaconfig's "Configure" on case-insensitive file systems.
11303 if test -f "$ac_srcdir/configure.gnu"; then
11304 ac_sub_configure=$ac_srcdir/configure.gnu
11305 elif test -f "$ac_srcdir/configure"; then
11306 ac_sub_configure=$ac_srcdir/configure
11307 else
11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11309 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11310 ac_sub_configure=
11313 # The recursion is here.
11314 if test -n "$ac_sub_configure"; then
11315 # Make the cache file name correct relative to the subdirectory.
11316 case $cache_file in
11317 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11318 *) # Relative name.
11319 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11320 esac
11322 { 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
11323 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11324 # The eval makes quoting arguments work.
11325 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11326 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11327 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11330 cd "$ac_popdir"
11331 done
11333 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11335 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11339 # I found no better place
11340 mkdir -p bin
11342 # Prepare result message
11343 # ======================
11345 # In the C-header we need \\ as dir-separator, but in the message only \
11346 dirch=${sdccconf_h_dir_separator}
11347 test ${dirch} = '\\' && dirch='\'
11349 # calc friendly strings
11351 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
11352 case ":$binPath:" in
11353 ::) binPath='.' ;;
11354 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
11355 :*:) ;;
11356 esac
11357 case $dirch in
11359 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11360 s,^[\\/],\\\\\\\\,'` ;;
11362 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11363 esac
11364 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
11367 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
11368 case ":$incPath1:" in
11369 ::) incPath1='.' ;;
11370 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
11371 :*:) ;;
11372 esac
11373 case $dirch in
11375 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11376 s,^[\\/],\\\\\\\\,'` ;;
11378 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11379 esac
11380 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
11383 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
11384 case ":$incPath2:" in
11385 ::) incPath2='.' ;;
11386 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
11387 :*:) ;;
11388 esac
11389 case $dirch in
11391 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11392 s,^[\\/],\\\\\\\\,'` ;;
11394 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11395 esac
11396 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
11399 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
11400 case ":$incPath3:" in
11401 ::) incPath3='.' ;;
11402 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
11403 :*:) ;;
11404 esac
11405 case $dirch in
11407 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11408 s,^[\\/],\\\\\\\\,'` ;;
11410 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11411 esac
11412 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
11415 nonFreeIncPath1=`echo "/${prefix2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
11416 case ":$nonFreeIncPath1:" in
11417 ::) nonFreeIncPath1='.' ;;
11418 :*[\\/]:) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,[\\/]*$,,'` ;;
11419 :*:) ;;
11420 esac
11421 case $dirch in
11423 *\\*) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11424 s,^[\\/],\\\\\\\\,'` ;;
11426 *) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11427 esac
11428 nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\\\\\\\\,\\\\,g'`
11431 nonFreeIncPath2=`echo "/${bin2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
11432 case ":$nonFreeIncPath2:" in
11433 ::) nonFreeIncPath2='.' ;;
11434 :*[\\/]:) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,[\\/]*$,,'` ;;
11435 :*:) ;;
11436 esac
11437 case $dirch in
11439 *\\*) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11440 s,^[\\/],\\\\\\\\,'` ;;
11442 *) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11443 esac
11444 nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\\\\\\\\,\\\\,g'`
11447 nonFreeIncPath3=`echo "${expanded_datadir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
11448 case ":$nonFreeIncPath3:" in
11449 ::) nonFreeIncPath3='.' ;;
11450 :*[\\/]:) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,[\\/]*$,,'` ;;
11451 :*:) ;;
11452 esac
11453 case $dirch in
11455 *\\*) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11456 s,^[\\/],\\\\\\\\,'` ;;
11458 *) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11459 esac
11460 nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\\\\\\\\,\\\\,g'`
11464 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
11465 case ":$libPath1:" in
11466 ::) libPath1='.' ;;
11467 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
11468 :*:) ;;
11469 esac
11470 case $dirch in
11472 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11473 s,^[\\/],\\\\\\\\,'` ;;
11475 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11476 esac
11477 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
11480 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
11481 case ":$libPath2:" in
11482 ::) libPath2='.' ;;
11483 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
11484 :*:) ;;
11485 esac
11486 case $dirch in
11488 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11489 s,^[\\/],\\\\\\\\,'` ;;
11491 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11492 esac
11493 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
11496 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
11497 case ":$libPath3:" in
11498 ::) libPath3='.' ;;
11499 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
11500 :*:) ;;
11501 esac
11502 case $dirch in
11504 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11505 s,^[\\/],\\\\\\\\,'` ;;
11507 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11508 esac
11509 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
11512 nonFreeLibPath1=`echo "/${prefix2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11513 case ":$nonFreeLibPath1:" in
11514 ::) nonFreeLibPath1='.' ;;
11515 :*[\\/]:) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,[\\/]*$,,'` ;;
11516 :*:) ;;
11517 esac
11518 case $dirch in
11520 *\\*) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11521 s,^[\\/],\\\\\\\\,'` ;;
11523 *) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11524 esac
11525 nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\\\\\\\\,\\\\,g'`
11528 nonFreeLibPath2=`echo "/${bin2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11529 case ":$nonFreeLibPath2:" in
11530 ::) nonFreeLibPath2='.' ;;
11531 :*[\\/]:) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,[\\/]*$,,'` ;;
11532 :*:) ;;
11533 esac
11534 case $dirch in
11536 *\\*) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11537 s,^[\\/],\\\\\\\\,'` ;;
11539 *) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11540 esac
11541 nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\\\\\\\\,\\\\,g'`
11544 nonFreeLibPath3=`echo "${expanded_datadir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11545 case ":$nonFreeLibPath3:" in
11546 ::) nonFreeLibPath3='.' ;;
11547 :*[\\/]:) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,[\\/]*$,,'` ;;
11548 :*:) ;;
11549 esac
11550 case $dirch in
11552 *\\*) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11553 s,^[\\/],\\\\\\\\,'` ;;
11555 *) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11556 esac
11557 nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\\\\\\\\,\\\\,g'`
11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11561 sdcc ${VERSION} is now configured for
11563 Build: ${build}
11564 Host: ${host}
11565 Source directory: ${srcdir}
11566 Yacc: ${YACC}
11567 C compiler: ${CC}
11568 CFLAGS: ${CFLAGS}
11569 C++ compiler: ${CXX}
11570 CXXFLAGS: ${CXXFLAGS}
11571 CPPFLAGS: ${CPPFLAGS}
11572 LDFLAGS: ${LDFLAGS}
11573 MAKEDEP: ${MAKEDEP}
11574 MAKEDEP_CXX: ${MAKEDEP_CXX}
11576 ENABLED Ports:
11577 ds390 ${enable_ds390_port}
11578 ds400 ${enable_ds400_port}
11579 hc08 ${enable_hc08_port}
11580 s08 ${enable_s08_port}
11581 mcs51 ${enable_mcs51_port}
11582 pic14 ${enable_pic14_port}
11583 pic16 ${enable_pic16_port}
11584 z80 ${enable_z80_port}
11585 z180 ${enable_z180_port}
11586 r2k ${enable_r2k_port}
11587 r2ka ${enable_r2ka_port}
11588 r3ka ${enable_r3ka_port}
11589 sm83 ${enable_sm83_port}
11590 tlcs90 ${enable_tlcs90_port}
11591 ez80_z80 ${enable_ez80_z80_port}
11592 z80n ${enable_z80n_port}
11593 r800 ${enable_r800_port}
11594 stm8 ${enable_stm8_port}
11595 pdk13 ${enable_pdk13_port}
11596 pdk14 ${enable_pdk14_port}
11597 pdk15 ${enable_pdk15_port}
11598 pdk16 ${enable_pdk16_port}
11599 mos6502 ${enable_mos6502_port}
11600 mos65c02 ${enable_mos65c02_port}
11601 f8 ${enable_f8_port}
11603 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11604 Disable packihx: ${OPT_DISABLE_PACKIHX}
11605 Disable ucsim: ${OPT_DISABLE_UCSIM}
11606 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11607 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11608 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11609 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11610 Enable documentation: ${OPT_ENABLE_DOC}
11611 Enable libgc: ${OPT_ENABLE_LIBGC}
11613 Install paths:
11614 binary files: ${exec_prefix}
11615 include/library files: ${datadir}/${inclib_dir_suffix}
11616 include files: ${datadir}/${include_dir_suffix}
11617 library files: ${datadir}/${lib_dir_suffix}
11618 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11619 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11620 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11621 documentation: ${docdir}
11623 prefix: ${prefix}
11624 datadir: ${datadir}
11625 datarootdir: ${datarootdir}
11627 Search paths (incomplete, see manual for all search paths):
11628 binary files: \$SDCC_HOME${binPath}
11629 include files: ${incPath1}
11630 path(argv[0])${incPath2}
11631 ${incPath3}
11632 ${nonFreeIncPath1}
11633 path(argv[0])${nonFreeIncPath2}
11634 ${nonFreeIncPath3}
11635 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11636 path(argv[0])${libPath2}${dirch}<model>
11637 ${libPath3}${dirch}<model>
11638 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11639 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11640 ${nonFreeLibPath3}${dirch}<model>
11641 " >&5
11642 printf "%s\n" "
11643 sdcc ${VERSION} is now configured for
11645 Build: ${build}
11646 Host: ${host}
11647 Source directory: ${srcdir}
11648 Yacc: ${YACC}
11649 C compiler: ${CC}
11650 CFLAGS: ${CFLAGS}
11651 C++ compiler: ${CXX}
11652 CXXFLAGS: ${CXXFLAGS}
11653 CPPFLAGS: ${CPPFLAGS}
11654 LDFLAGS: ${LDFLAGS}
11655 MAKEDEP: ${MAKEDEP}
11656 MAKEDEP_CXX: ${MAKEDEP_CXX}
11658 ENABLED Ports:
11659 ds390 ${enable_ds390_port}
11660 ds400 ${enable_ds400_port}
11661 hc08 ${enable_hc08_port}
11662 s08 ${enable_s08_port}
11663 mcs51 ${enable_mcs51_port}
11664 pic14 ${enable_pic14_port}
11665 pic16 ${enable_pic16_port}
11666 z80 ${enable_z80_port}
11667 z180 ${enable_z180_port}
11668 r2k ${enable_r2k_port}
11669 r2ka ${enable_r2ka_port}
11670 r3ka ${enable_r3ka_port}
11671 sm83 ${enable_sm83_port}
11672 tlcs90 ${enable_tlcs90_port}
11673 ez80_z80 ${enable_ez80_z80_port}
11674 z80n ${enable_z80n_port}
11675 r800 ${enable_r800_port}
11676 stm8 ${enable_stm8_port}
11677 pdk13 ${enable_pdk13_port}
11678 pdk14 ${enable_pdk14_port}
11679 pdk15 ${enable_pdk15_port}
11680 pdk16 ${enable_pdk16_port}
11681 mos6502 ${enable_mos6502_port}
11682 mos65c02 ${enable_mos65c02_port}
11683 f8 ${enable_f8_port}
11685 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11686 Disable packihx: ${OPT_DISABLE_PACKIHX}
11687 Disable ucsim: ${OPT_DISABLE_UCSIM}
11688 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11689 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11690 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11691 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11692 Enable documentation: ${OPT_ENABLE_DOC}
11693 Enable libgc: ${OPT_ENABLE_LIBGC}
11695 Install paths:
11696 binary files: ${exec_prefix}
11697 include/library files: ${datadir}/${inclib_dir_suffix}
11698 include files: ${datadir}/${include_dir_suffix}
11699 library files: ${datadir}/${lib_dir_suffix}
11700 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11701 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11702 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11703 documentation: ${docdir}
11705 prefix: ${prefix}
11706 datadir: ${datadir}
11707 datarootdir: ${datarootdir}
11709 Search paths (incomplete, see manual for all search paths):
11710 binary files: \$SDCC_HOME${binPath}
11711 include files: ${incPath1}
11712 path(argv[0])${incPath2}
11713 ${incPath3}
11714 ${nonFreeIncPath1}
11715 path(argv[0])${nonFreeIncPath2}
11716 ${nonFreeIncPath3}
11717 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11718 path(argv[0])${libPath2}${dirch}<model>
11719 ${libPath3}${dirch}<model>
11720 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11721 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11722 ${nonFreeLibPath3}${dirch}<model>
11723 " >&6; }
11724 # End of configure/configure.in