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,
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
19 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
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+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
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.
54 # Ensure predictable behavior from utilities with locale-dependent output.
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 ||
:
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
78 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
79 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself
=$0 ;;
89 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
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
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
125 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
127 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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
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+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
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; }
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\" )
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
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
191 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
197 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
203 *) as_dir
=$as_dir/ ;;
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
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
229 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
230 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
232 CONFIG_SHELL
=$SHELL as_have_required
=yes
237 if test "x$CONFIG_SHELL" != x
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
260 if test x
$as_have_required = xno
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."
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."
277 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Do nothing but, unlike ":", preserve the value of $?.
324 # Create "$as_dir" as a directory, including parents if necessary.
329 -*) as_dir
=.
/$as_dir;;
331 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
335 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
362 test -d "$as_dir" && break
364 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
365 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
385 eval 'as_fn_append ()
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
410 as_val
=`expr "$@" || test $? -eq 1`
416 # Do nothing but, unlike ":", preserve the value of $?.
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.
430 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
439 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
446 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
452 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
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 '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
516 # Exit status is that of the last command.
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 #(((((
527 case `echo 'xy\c'` in
528 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
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
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
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 ||
560 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
574 test -d .
/-p && rmdir .
/-p
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
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`
599 ac_default_prefix
=/usr
/local
601 ac_config_libobj_dir
=.
608 # Identity of this package.
616 ac_unique_file
=".version"
617 ac_unique_file
="Makefile.in"
618 # Factoring default headers for most tests.
619 ac_includes_default
="\
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
650 enable_option_checking
=no
651 ac_subst_vars
='LTLIBOBJS
663 OPT_DISABLE_SDBINUTILS
667 OPT_DISABLE_DEVICE_LIB
695 non_free_lib_dir_suffix
697 non_free_include_dir_suffix
698 non_free_inclib_dir_suffix
702 sdccconf_h_dir_separator
783 program_transform_name
796 enable_option_checking
831 ac_precious_vars
='build_alias
844 sdccconf_h_dir_separator
848 non_free_inclib_dir_suffix
849 non_free_include_dir_suffix
851 non_free_lib_dir_suffix
853 ac_subdirs_all
='support/cpp
859 device/non-free/lib/pic14
861 device/non-free/lib/pic16'
863 # Initialize some variables set by options.
865 ac_init_version
=false
866 ac_unrecognized_opts
=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name
=s
,x
,x
,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir
='${exec_prefix}/bin'
892 sbindir
='${exec_prefix}/sbin'
893 libexecdir
='${exec_prefix}/libexec'
894 datarootdir
='${prefix}/share'
895 datadir
='${datarootdir}'
896 sysconfdir
='${prefix}/etc'
897 sharedstatedir
='${prefix}/com'
898 localstatedir
='${prefix}/var'
899 runstatedir
='${localstatedir}/run'
900 includedir
='${prefix}/include'
901 oldincludedir
='/usr/include'
902 docdir
='${datarootdir}/doc/${PACKAGE}'
903 infodir
='${datarootdir}/info'
908 libdir
='${exec_prefix}/lib'
909 localedir
='${datarootdir}/locale'
910 mandir
='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\
$ac_option
924 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 case $ac_dashdash$ac_option in
933 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
935 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
938 -build |
--build |
--buil |
--bui |
--bu)
939 ac_prev
=build_alias
;;
940 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
941 build_alias
=$ac_optarg ;;
943 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
944 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
945 ac_prev
=cache_file
;;
946 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
947 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
948 cache_file
=$ac_optarg ;;
951 cache_file
=config.cache
;;
953 -datadir |
--datadir |
--datadi |
--datad)
955 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
956 datadir
=$ac_optarg ;;
958 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
959 |
--dataroo |
--dataro |
--datar)
960 ac_prev
=datarootdir
;;
961 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
962 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
963 datarootdir
=$ac_optarg ;;
965 -disable-* |
--disable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=\
$ac_optarg ;;
1007 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1008 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1009 |
--exec |
--exe |
--ex)
1010 ac_prev
=exec_prefix
;;
1011 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1012 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1013 |
--exec=* |
--exe=* |
--ex=*)
1014 exec_prefix
=$ac_optarg ;;
1016 -gas |
--gas |
--ga |
--g)
1017 # Obsolete; use --with-gas.
1020 -help |
--help |
--hel |
--he |
-h)
1021 ac_init_help
=long
;;
1022 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1023 ac_init_help
=recursive
;;
1024 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1025 ac_init_help
=short
;;
1027 -host |
--host |
--hos |
--ho)
1028 ac_prev
=host_alias
;;
1029 -host=* |
--host=* |
--hos=* |
--ho=*)
1030 host_alias
=$ac_optarg ;;
1032 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1034 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1036 htmldir
=$ac_optarg ;;
1038 -includedir |
--includedir |
--includedi |
--included |
--include \
1039 |
--includ |
--inclu |
--incl |
--inc)
1040 ac_prev
=includedir
;;
1041 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1042 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1043 includedir
=$ac_optarg ;;
1045 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1047 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1048 infodir
=$ac_optarg ;;
1050 -libdir |
--libdir |
--libdi |
--libd)
1052 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1053 libdir
=$ac_optarg ;;
1055 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1056 |
--libexe |
--libex |
--libe)
1057 ac_prev
=libexecdir
;;
1058 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1059 |
--libexe=* |
--libex=* |
--libe=*)
1060 libexecdir
=$ac_optarg ;;
1062 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1063 ac_prev
=localedir
;;
1064 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1065 localedir
=$ac_optarg ;;
1067 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1068 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1069 ac_prev
=localstatedir
;;
1070 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1071 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1072 localstatedir
=$ac_optarg ;;
1074 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1076 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1077 mandir
=$ac_optarg ;;
1079 -nfp |
--nfp |
--nf)
1080 # Obsolete; use --without-fp.
1083 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1084 |
--no-cr |
--no-c |
-n)
1087 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1088 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1091 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1092 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1093 |
--oldin |
--oldi |
--old |
--ol |
--o)
1094 ac_prev
=oldincludedir
;;
1095 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1096 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1097 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1098 oldincludedir
=$ac_optarg ;;
1100 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1102 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1103 prefix
=$ac_optarg ;;
1105 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1106 |
--program-pre |
--program-pr |
--program-p)
1107 ac_prev
=program_prefix
;;
1108 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1109 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1110 program_prefix
=$ac_optarg ;;
1112 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1113 |
--program-suf |
--program-su |
--program-s)
1114 ac_prev
=program_suffix
;;
1115 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1116 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1117 program_suffix
=$ac_optarg ;;
1119 -program-transform-name |
--program-transform-name \
1120 |
--program-transform-nam |
--program-transform-na \
1121 |
--program-transform-n |
--program-transform- \
1122 |
--program-transform |
--program-transfor \
1123 |
--program-transfo |
--program-transf \
1124 |
--program-trans |
--program-tran \
1125 |
--progr-tra |
--program-tr |
--program-t)
1126 ac_prev
=program_transform_name
;;
1127 -program-transform-name=* |
--program-transform-name=* \
1128 |
--program-transform-nam=* |
--program-transform-na=* \
1129 |
--program-transform-n=* |
--program-transform-=* \
1130 |
--program-transform=* |
--program-transfor=* \
1131 |
--program-transfo=* |
--program-transf=* \
1132 |
--program-trans=* |
--program-tran=* \
1133 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1134 program_transform_name
=$ac_optarg ;;
1136 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1138 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1139 pdfdir
=$ac_optarg ;;
1141 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1143 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1146 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1147 |
-silent |
--silent |
--silen |
--sile |
--sil)
1150 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1151 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1152 |
--run |
--ru |
--r)
1153 ac_prev
=runstatedir
;;
1154 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1155 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1156 |
--run=* |
--ru=* |
--r=*)
1157 runstatedir
=$ac_optarg ;;
1159 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1161 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1163 sbindir
=$ac_optarg ;;
1165 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1166 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1167 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1169 ac_prev
=sharedstatedir
;;
1170 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1171 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1172 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1174 sharedstatedir
=$ac_optarg ;;
1176 -site |
--site |
--sit)
1178 -site=* |
--site=* |
--sit=*)
1181 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1183 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1184 srcdir
=$ac_optarg ;;
1186 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1187 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1188 ac_prev
=sysconfdir
;;
1189 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1190 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1191 sysconfdir
=$ac_optarg ;;
1193 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1194 ac_prev
=target_alias
;;
1195 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1196 target_alias
=$ac_optarg ;;
1198 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1201 -version |
--version |
--versio |
--versi |
--vers |
-V)
1202 ac_init_version
=: ;;
1205 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1208 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1209 ac_useropt_orig
=$ac_useropt
1210 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep
=', ';;
1218 eval with_
$ac_useropt=\
$ac_optarg ;;
1220 -without-* |
--without-*)
1221 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1224 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1225 ac_useropt_orig
=$ac_useropt
1226 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep
=', ';;
1234 eval with_
$ac_useropt=no
;;
1237 # Obsolete; use --with-x.
1240 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1241 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1242 ac_prev
=x_includes
;;
1243 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1244 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1245 x_includes
=$ac_optarg ;;
1247 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1248 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1249 ac_prev
=x_libraries
;;
1250 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1251 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1252 x_libraries
=$ac_optarg ;;
1254 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1259 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 case $ac_envvar in #(
1262 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1263 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1265 eval $ac_envvar=\
$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1272 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 if test -n "$ac_prev"; then
1280 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1281 as_fn_error $?
"missing argument to $ac_option"
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1287 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1288 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 # Check all directory arguments for consistency.
1293 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir runstatedir
1298 eval ac_val
=\$
$ac_var
1299 # Remove trailing slashes.
1302 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\
$ac_val;;
1305 # Be sure to have absolute directory names.
1307 [\\/$
]* | ?
:[\\/]* ) continue;;
1308 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1310 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target
=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x
; then
1322 if test "x$build_alias" = x
; then
1323 cross_compiling
=maybe
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1332 test "$silent" = yes && exec 6>/dev
/null
1335 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di
=`ls -di .` &&
1337 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1338 as_fn_error $?
"working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 as_fn_error $?
"pwd does not report name of working directory"
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted
=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir
=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 printf "%s\n" X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1375 ac_srcdir_defaulted
=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1379 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1381 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1393 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 for ac_var
in $ac_precious_vars; do
1396 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1398 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1409 \`configure' configures this package to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking ...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1473 --build=BUILD configure
for building on BUILD
[guessed
]
1474 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1478 if test -n "$ac_init_help"; then
1483 --disable-option-checking ignore unrecognized
--enable/--with options
1484 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1485 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1486 --disable-mcs51-port Excludes the Intel mcs51 port
1487 --disable-z80-port Excludes the Z80 port
1488 --disable-z180-port Excludes the Z180 port
1489 --disable-r2k-port Excludes the Rabbit
2000 port
1490 --disable-r2ka-port Excludes the Rabbit
2000A port
1491 --disable-r3ka-port Excludes the Rabbit
3000A port
1492 --disable-sm83-port Excludes the SM83 port
1493 --disable-tlcs90-port Excludes the TLCS-90 port
1494 --disable-ez80_z80-port Excludes the EZ80-Z80 port
1495 --disable-z80n-port Excludes the Z80N port
1496 --disable-ds390-port Excludes the DS390 port
1497 --disable-ds400-port Excludes the DS400 port
1498 --disable-pic14-port Excludes the PIC14 port
1499 --disable-pic16-port Excludes the PIC16 port
1500 --disable-hc08-port Excludes the HC08 port
1501 --disable-s08-port Excludes the S08 port
1502 --disable-stm8-port Excludes the STM8 port
1503 --disable-pdk13-port Excludes the PDK13 port
1504 --disable-pdk14-port Excludes the PDK14 port
1505 --disable-pdk15-port Excludes the PDK15 port
1506 --enable-pdk16-port Includes the PDK16 port
1507 --disable-mos6502-port Excludes the MOS6502 port
1508 --enable-mos65c02-port Includes the MOS65C02 port
1509 --disable-ucsim Disables configuring and building of ucsim
1510 --disable-device-lib Disables building device libraries
1511 --disable-packihx Disables building packihx
1512 --disable-sdcpp Disables building sdcpp
1513 --disable-sdcdb Disables building sdcdb
1514 --disable-sdbinutils Disables configuring and building of sdbinutils
1515 --disable-non-free Disables non-free runtime library parts
1516 --enable-doc Enables building the documentation
1517 --enable-libgc Use the Bohem memory allocator. Lower runtime
1521 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1522 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1523 --without-ccache do not use ccache even
if available
1525 Some influential environment variables
:
1526 CC C compiler
command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1529 nonstandard directory
<lib dir
>
1530 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1531 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1532 you have headers
in a nonstandard directory
<include dir
>
1534 CXX C
++ compiler
command
1535 CXXFLAGS C
++ compiler flags
1536 PYTHON the Python interpreter
1537 sdccconf_h_dir_separator
1538 needed
in sdccconf.h
: either
"/" (default
) or
"\\"
1539 LIB_TYPE library
type: LIB
, SDCCLIB
, AR or RANLIB
(default
)
1541 appended to datadir to define SDCC
's include/lib directory
1543 appended to datadir to define SDCC's include directory
1544 non_free_inclib_dir_suffix
1545 appended to datadir to define SDCC
's non-free include/lib
1547 non_free_include_dir_suffix
1548 appended to datadir to define SDCC's non-free include directory
1550 appended to datadir to define SDCC
's library root directory
1551 non_free_lib_dir_suffix
1552 appended to datadir to define SDCC's non-free library root
1554 docdir documentation installation directory
1556 Use these variables to override the choices made by
`configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to the package provider.
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1589 .) # We are building in place.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for configure.gnu first; this name is used for a wrapper for
1606 # Metaconfig's "Configure" on case-insensitive file systems.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1614 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1624 generated by GNU Autoconf 2.71
1626 Copyright (C) 2021 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest.beam
1644 if { { ac_try="$ac_compile"
1646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1647 *) ac_try_echo
=$ac_try;;
1649 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 printf "%s\n" "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1653 if test -s conftest.err
; then
1654 grep -v '^ *+' conftest.err
>conftest.er1
1655 cat conftest.er1
>&5
1656 mv -f conftest.er1 conftest.err
1658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.
$ac_objext
1666 printf "%s\n" "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.
$ac_ext >&5
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status
$ac_retval
1674 } # ac_fn_c_try_compile
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1682 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 printf "%s\n" "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1704 printf "%s\n" "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1714 # ac_fn_cxx_try_compile LINENO
1715 # ----------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_cxx_try_compile ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest.beam
1721 if { { ac_try="$ac_compile"
1723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1724 *) ac_try_echo
=$ac_try;;
1726 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 printf "%s\n" "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1730 if test -s conftest.err
; then
1731 grep -v '^ *+' conftest.err
>conftest.er1
1732 cat conftest.er1
>&5
1733 mv -f conftest.er1 conftest.err
1735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_cxx_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.
$ac_objext
1743 printf "%s\n" "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.
$ac_ext >&5
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status
$ac_retval
1751 } # ac_fn_cxx_try_compile
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile
()
1759 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 printf %s
"checking for $2... " >&6; }
1762 if eval test \
${$3+y}
1764 printf %s
"(cached) " >&6
1766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1771 if ac_fn_c_try_compile
"$LINENO"
1777 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_header_compile
1786 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1787 # ---------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_cxx_check_header_compile
()
1792 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s
"checking for $2... " >&6; }
1795 if eval test \
${$3+y}
1797 printf %s
"(cached) " >&6
1799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1804 if ac_fn_cxx_try_compile
"$LINENO"
1810 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 printf "%s\n" "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_cxx_check_header_compile
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1824 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1825 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1826 if { { ac_try
="$ac_link"
1828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 printf "%s\n" "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 test -x conftest$ac_exeext
1851 printf "%s\n" "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858 # interfere with the next link command; also delete a directory that is
1859 # left behind by Apple's compiler. We do this before executing the actions.
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_link
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 printf %s "checking for $2... " >&6; }
1874 if eval test \${$3+y}
1876 printf %s "(cached) " >&6
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882 #define $2 innocuous_$2
1884 /* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below. */
1890 /* Override any GCC internal prototype to avoid an error.
1891 Use char because int might match the return type of a GCC
1892 builtin and then its argument prototype would still apply. */
1897 /* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900 #if defined __stub_$2 || defined __stub___$2
1912 if ac_fn_c_try_link "$LINENO"
1918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1919 conftest$ac_exeext conftest.$ac_ext
1922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 printf "%s\n" "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_func
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1931 # executables *can* be run.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1938 *) ac_try_echo
=$ac_try;;
1940 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 printf "%s\n" "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>&5
1944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1946 { { case "(($ac_try" in
1947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952 (eval "$ac_try") 2>&5
1954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; }; }
1959 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1960 printf "%s\n" "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_retval=$ac_status
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1971 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1972 # --------------------------------------------
1973 # Tries to find the compile-time value of EXPR in a program that includes
1974 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1976 ac_fn_c_compute_int ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if test "$cross_compiling" = yes; then
1980 # Depending upon the size, compute the lo and hi bounds.
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1987 static int test_array [1 - 2 * !(($2) >= 0)];
1989 return test_array [0];
1995 if ac_fn_c_try_compile "$LINENO"
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007 return test_array [0];
2013 if ac_fn_c_try_compile "$LINENO"
2015 ac_hi=$ac_mid; break
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) < 0)];
2035 return test_array [0];
2041 if ac_fn_c_try_compile "$LINENO"
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2053 return test_array [0];
2059 if ac_fn_c_try_compile "$LINENO"
2061 ac_lo=$ac_mid; break
2063 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2064 if test $ac_mid -le $ac_hi; then
2068 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2078 # Binary search between lo and hi bounds.
2079 while test "x$ac_lo" != "x$ac_hi"; do
2080 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile "$LINENO"
2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2104 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 static long int longval (void) { return $2; }
2112 static unsigned long int ulongval (void) { return $2; }
2119 FILE *f = fopen ("conftest.val", "w");
2124 long int i = longval ();
2127 fprintf (f, "%ld", i);
2131 unsigned long int i = ulongval ();
2134 fprintf (f, "%lu", i);
2136 /* Do not output a trailing newline, as this causes \r\n confusion
2137 on some platforms. */
2138 return ferror (f) || fclose (f) != 0;
2144 if ac_fn_c_try_run "$LINENO"
2146 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2151 conftest.$ac_objext conftest.beam conftest.$ac_ext
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_c_compute_int
2159 ac_configure_args_raw=
2164 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2166 as_fn_append ac_configure_args_raw " '$ac_arg'"
2169 case $ac_configure_args_raw in
2173 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2174 ac_unsafe_a="$ac_unsafe_z#~
"
2175 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
2176 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2183 It was created by $as_me, which was
2184 generated by GNU Autoconf 2.71. Invocation command line was
2186 $ $0$ac_configure_args_raw
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 case $as_dir in #(((
2222 *) as_dir=$as_dir/ ;;
2224 printf "%s
\n" "PATH
: $as_dir"
2240 # Keep a trace of the command line.
2241 # Strip out --no-create and --no-recursion so they do not pile up.
2242 # Strip out --silent because we don't want to record it for future runs.
2243 # Also quote any args containing shell meta-characters.
2244 # Make two passes to allow for proper duplicate-argument suppression.
2248 ac_must_keep_next=false
2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2256 | -silent | --silent | --silen | --sile | --sil)
2259 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264 as_fn_append ac_configure_args1 " '$ac_arg'"
2265 if test $ac_must_keep_next = true; then
2266 ac_must_keep_next=false # Got value, back to normal.
2269 *=* | --config-cache | -C | -disable-* | --disable-* \
2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2272 | -with-* | --with-* | -without-* | --without-* | --x)
2273 case "$ac_configure_args0 " in
2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 -* ) ac_must_keep_next=true ;;
2280 as_fn_append ac_configure_args " '$ac_arg'"
2285 { ac_configure_args0=; unset ac_configure_args0;}
2286 { ac_configure_args1=; unset ac_configure_args1;}
2288 # When interrupted or exit'd, cleanup temporary files, and complete
2289 # config.log. We remove comments because anyway the quotes in there
2290 # would cause problems or look ugly.
2291 # WARNING: Use '\'' to represent an apostrophe within the trap.
2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2293 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2300 printf "%s
\n" "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2304 # The following way of writing the cache mishandles newlines in values,
2306 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val
=\$
$ac_var
2311 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2315 _ | IFS | as_nl
) ;; #(
2316 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space
=\
*)
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336 printf "%s\n" "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2340 for ac_var
in $ac_subst_vars
2342 eval ac_val
=\$
$ac_var
2344 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 printf "%s\n" "$ac_var='\''$ac_val'\''"
2350 if test -n "$ac_subst_files"; then
2351 printf "%s\n" "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2355 for ac_var in $ac_subst_files
2357 eval ac_val=\$$ac_var
2359 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 printf "%s\n" "$ac_var='\''$ac_val'\''"
2366 if test -s confdefs.h
; then
2367 printf "%s\n" "## ----------- ##
2374 test "$ac_signal" != 0 &&
2375 printf "%s\n" "$as_me: caught signal $ac_signal"
2376 printf "%s\n" "$as_me: exit $exit_status"
2378 rm -f core
*.core core.conftest.
* &&
2379 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2390 printf "%s\n" "/* confdefs.h */" > confdefs.h
2392 # Predefined preprocessor variables.
2394 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2396 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2398 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2400 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2402 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2404 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2407 # Let the site file select an alternate cache file if it wants to.
2408 # Prefer an explicitly selected file to automatically selected ones.
2409 if test -n "$CONFIG_SITE"; then
2410 ac_site_files="$CONFIG_SITE"
2411 elif test "x$prefix" != xNONE; then
2412 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2414 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2417 for ac_site_file in $ac_site_files
2419 case $ac_site_file in #(
2423 ac_site_file=./$ac_site_file ;;
2425 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's
/^
/|
/' "$ac_site_file" >&5
2430 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
2432 as_fn_error $? "failed to load site script $ac_site_file
2433 See \`config.log
' for more details" "$LINENO" 5; }
2437 if test -r "$cache_file"; then
2438 # Some versions of bash will fail to source /dev/null (special files
2439 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2440 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2444 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2445 *) . "./$cache_file";;
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2454 # Test code for whether the C compiler supports C89 (global declarations)
2455 ac_c_conftest_c89_globals='
2456 /* Does the compiler advertise C89 conformance?
2457 Do not
test the value of __STDC__
, because some compilers
set it to
0
2458 while being otherwise adequately conformant.
*/
2459 #if !defined __STDC__
2460 # error "Compiler does not advertise C89 conformance"
2466 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2467 struct buf
{ int x
; };
2468 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2469 static char
*e
(p
, i
)
2475 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2480 s
= g
(p
, va_arg
(v
,int
));
2485 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2486 function prototypes and stuff
, but not \xHH hex character constants.
2487 These
do not provoke an error unfortunately
, instead are silently treated
2488 as an
"x". The following induces an error
, until -std is added to get
2489 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2490 array size
at least. It is necessary to
write \x00 == 0 to get something
2491 that is true only with
-std.
*/
2492 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2494 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2495 inside
strings and character constants.
*/
2496 #define FOO(x) '\''x'\''
2497 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2499 int
test (int i
, double x
);
2500 struct s1
{int
(*f
) (int a
);};
2501 struct s2
{int
(*f
) (double a
);};
2502 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2505 # Test code for whether the C compiler supports C89 (body of main).
2506 ac_c_conftest_c89_main='
2507 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2510 # Test code for whether the C compiler supports C99 (global declarations)
2511 ac_c_conftest_c99_globals='
2512 // Does the compiler advertise C99 conformance?
2513 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2514 # error "Compiler does not advertise C99 conformance"
2517 #include <stdbool.h>
2518 extern int puts
(const char
*);
2519 extern int
printf (const char
*, ...
);
2520 extern int dprintf
(int
, const char
*, ...
);
2521 extern void
*malloc
(size_t
);
2523 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2524 // dprintf is used instead of fprintf to avoid needing to
declare
2526 #define debug(...) dprintf (2, __VA_ARGS__)
2527 #define showlist(...) puts (#__VA_ARGS__)
2528 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2530 test_varargs_macros
(void
)
2535 debug
("X = %d\n", x
);
2536 showlist
(The first
, second
, and third items.
);
2537 report
(x
>y
, "x is %d but y is %d", x
, y
);
2540 // Check long long types.
2541 #define BIG64 18446744073709551615ull
2542 #define BIG32 4294967295ul
2543 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2545 #error "your preprocessor is broken"
2549 #error "your preprocessor is broken"
2551 static long long int bignum
= -9223372036854775807LL;
2552 static unsigned long long int ubignum
= BIG64
;
2554 struct incomplete_array
2562 const wchar_t
*name
;
2566 typedef const char
*ccp
;
2569 test_restrict
(ccp restrict text
)
2571 // See
if C
++-style comments work.
2572 // Iterate through items via the restricted pointer.
2573 // Also check
for declarations
in for loops.
2574 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2579 // Check varargs and va_copy.
2581 test_varargs
(const char
*format
, ...
)
2584 va_start
(args
, format
);
2586 va_copy
(args_copy
, args
);
2588 const char
*str
= "";
2596 case '\''s
'\'': // string
2597 str
= va_arg
(args_copy
, const char
*);
2599 case '\''d
'\'': // int
2600 number
= va_arg
(args_copy
, int
);
2602 case '\''f
'\'': // float
2603 fnumber
= va_arg
(args_copy
, double
);
2612 return *str
&& number
&& fnumber
;
2616 # Test code for whether the C compiler supports C99 (body of main).
2617 ac_c_conftest_c99_main='
2619 _Bool success
= false
;
2620 success |
= (argc
!= 0);
2623 if (test_restrict
("String literal") == 0)
2625 char
*restrict newvar
= "Another string";
2628 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2629 test_varargs_macros
();
2631 // Check flexible array members.
2632 struct incomplete_array
*ia
=
2633 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2635 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2636 ia-
>data
[i
] = i
* 1.234;
2638 // Check named initializers.
2639 struct named_init ni
= {
2641 .name
= L
"Test wide string",
2642 .average
= 543.34343,
2647 int dynamic_array
[ni.number
];
2648 dynamic_array
[0] = argv
[0][0];
2649 dynamic_array
[ni.number
- 1] = 543;
2651 // work around unused variable warnings
2652 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2653 || dynamic_array
[ni.number
- 1] != 543);
2656 # Test code for whether the C compiler supports C11 (global declarations)
2657 ac_c_conftest_c11_globals='
2658 // Does the compiler advertise C11 conformance?
2659 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2660 # error "Compiler does not advertise C11 conformance"
2664 char _Alignas
(double
) aligned_as_double
;
2665 char _Alignas
(0) no_special_alignment
;
2666 extern char aligned_as_int
;
2667 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2672 int_alignment
= _Alignof
(int
),
2673 int_array_alignment
= _Alignof
(int
[100]),
2674 char_alignment
= _Alignof
(char
)
2676 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2679 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2681 // Check _Static_assert.
2682 struct test_static_assert
2685 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2686 "_Static_assert does not work in struct");
2690 // Check UTF-8 literals.
2691 #define u8 syntax error!
2692 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2694 // Check duplicate typedefs.
2695 typedef long
*long_ptr
;
2696 typedef long int
*long_ptr
;
2697 typedef long_ptr long_ptr
;
2699 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2703 struct
{ int i
; int j
; };
2704 struct
{ int k
; long int l
; } w
;
2710 # Test code for whether the C compiler supports C11 (body of main).
2711 ac_c_conftest_c11_main='
2712 _Static_assert
((offsetof
(struct anonymous
, i
)
2713 == offsetof
(struct anonymous
, w.k
)),
2714 "Anonymous union alignment botch");
2720 # Test code for whether the C compiler supports C11 (complete).
2721 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2722 ${ac_c_conftest_c99_globals}
2723 ${ac_c_conftest_c11_globals}
2726 main (int argc, char **argv)
2729 ${ac_c_conftest_c89_main}
2730 ${ac_c_conftest_c99_main}
2731 ${ac_c_conftest_c11_main}
2736 # Test code for whether the C compiler supports C99 (complete).
2737 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2738 ${ac_c_conftest_c99_globals}
2741 main (int argc, char **argv)
2744 ${ac_c_conftest_c89_main}
2745 ${ac_c_conftest_c99_main}
2750 # Test code for whether the C compiler supports C89 (complete).
2751 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2754 main (int argc, char **argv)
2757 ${ac_c_conftest_c89_main}
2762 # Test code for whether the C++ compiler supports C++98 (global declarations)
2763 ac_cxx_conftest_cxx98_globals='
2764 // Does the compiler advertise C
++98 conformance?
2765 #if !defined __cplusplus || __cplusplus < 199711L
2766 # error "Compiler does not advertise C++98 conformance"
2769 // These inclusions are to reject old compilers that
2770 // lack the unsuffixed header files.
2772 #include <exception>
2774 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2775 extern void assert
(int
);
2777 extern int strcmp
(const char
*, const char
*);
2780 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2781 using std
::exception
;
2786 void test_exception_syntax
()
2790 } catch
(const char
*s
) {
2791 // Extra parentheses suppress a warning when building autoconf itself
,
2792 // due to lint rules shared with
more typical C programs.
2793 assert
(!(strcmp
) (s
, "test"));
2797 template
<typename T
> struct test_template
2800 explicit test_template
(T t
) : val
(t
) {}
2801 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2804 } // anonymous namespace
2807 # Test code for whether the C++ compiler supports C++98 (body of main)
2808 ac_cxx_conftest_cxx98_main='
2812 test_exception_syntax
();
2813 test_template
<double
> tt
(2.0);
2814 assert
(tt.add
(4) == 6.0);
2815 assert
(true
&& !false
);
2819 # Test code for whether the C++ compiler supports C++11 (global declarations)
2820 ac_cxx_conftest_cxx11_globals='
2821 // Does the compiler advertise C
++ 2011 conformance?
2822 #if !defined __cplusplus || __cplusplus < 201103L
2823 # error "Compiler does not advertise C++11 conformance"
2828 constexpr int get_val
() { return 20; }
2839 delegate
(int n
) : n
(n
) {}
2840 delegate
(): delegate
(2354) {}
2842 virtual int getval
() { return this-
>n
; };
2847 class overridden
: public delegate
2850 overridden
(int n
): delegate
(n
) {}
2851 virtual int getval
() override final
{ return this-
>n
* 2; }
2857 nocopy
(int i
): i
(i
) {}
2859 nocopy
(const nocopy
&) = delete
;
2860 nocopy
& operator
=(const nocopy
&) = delete
;
2865 // for testing lambda expressions
2866 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2871 // for testing variadic templates and trailing
return types
2872 template
<typename V
> auto
sum(V first
) -> V
2876 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2878 return first
+ sum(rest...
);
2883 # Test code for whether the C++ compiler supports C++11 (body of main)
2884 ac_cxx_conftest_cxx11_main='
2886 // Test auto and decltype
2888 auto a2
= 48573953.4;
2889 auto a3
= "String literal";
2892 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2894 decltype
(a2
) a4
= 34895.034;
2898 short sa
[cxx11test
::get_val
()] = { 0 };
2901 // Test initializer lists
2902 cxx11test
::testinit il
= { 4323, 435234.23544 };
2905 // Test range-based
for
2906 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2907 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2908 for (auto
&x
: array
) { x
+= 23; }
2911 // Test lambda expressions
2912 using cxx11test
::eval;
2913 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2915 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2917 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2921 // Test use of variadic templates
2922 using cxx11test
::sum;
2925 auto c
= sum(1.0, 2.0, 3.0);
2928 // Test constructor delegation
2929 cxx11test
::delegate d1
;
2930 cxx11test
::delegate d2
();
2931 cxx11test
::delegate d3
(45);
2934 // Test override and final
2935 cxx11test
::overridden o1
(55464);
2942 // Test template brackets
2943 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2947 char const
*utf8
= u8
"UTF-8 string \u2500";
2948 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2949 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2953 # Test code for whether the C compiler supports C++11 (complete).
2954 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2955 ${ac_cxx_conftest_cxx11_globals}
2958 main (int argc, char **argv)
2961 ${ac_cxx_conftest_cxx98_main}
2962 ${ac_cxx_conftest_cxx11_main}
2967 # Test code for whether the C compiler supports C++98 (complete).
2968 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2970 main (int argc, char **argv)
2973 ${ac_cxx_conftest_cxx98_main}
2978 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2979 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2980 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2981 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2982 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2983 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2984 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2985 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2986 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2988 # Auxiliary files required by this configure script.
2989 ac_aux_files="install-sh config.guess config.sub"
2991 # Locations in which to look for auxiliary files.
2992 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2994 # Search for a directory containing all of the required auxiliary files,
2995 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2996 # If we don't
find one directory that contains all the files we need
,
2997 # we report the set of missing files from the *first* directory in
2998 # $ac_aux_dir_candidates and give up.
2999 ac_missing_aux_files
=""
3000 ac_first_candidate
=:
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3004 for as_dir
in $ac_aux_dir_candidates
3007 case $as_dir in #(((
3010 *) as_dir
=$as_dir/ ;;
3014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3015 ac_aux_dir_found
=yes
3017 for ac_aux
in $ac_aux_files
3019 # As a special case, if "install-sh" is required, that requirement
3020 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3021 # and $ac_install_sh is set appropriately for whichever one is found.
3022 if test x
"$ac_aux" = x
"install-sh"
3024 if test -f "${as_dir}install-sh"; then
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3026 ac_install_sh
="${as_dir}install-sh -c"
3027 elif test -f "${as_dir}install.sh"; then
3028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3029 ac_install_sh
="${as_dir}install.sh -c"
3030 elif test -f "${as_dir}shtool"; then
3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3032 ac_install_sh
="${as_dir}shtool install -c"
3035 if $ac_first_candidate; then
3036 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
3042 if test -f "${as_dir}${ac_aux}"; then
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3046 if $ac_first_candidate; then
3047 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
3054 if test "$ac_aux_dir_found" = yes; then
3055 ac_aux_dir
="$as_dir"
3058 ac_first_candidate
=false
3067 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 if test -f "${ac_aux_dir}config.guess"; then
3076 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
3078 if test -f "${ac_aux_dir}config.sub"; then
3079 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
3081 if test -f "$ac_aux_dir/configure"; then
3082 ac_configure
="$SHELL ${ac_aux_dir}configure"
3085 # Check that the precious variables saved in the cache have kept the same
3087 ac_cache_corrupted
=false
3088 for ac_var
in $ac_precious_vars; do
3089 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3090 eval ac_new_set
=\
$ac_env_${ac_var}_set
3091 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3092 eval ac_new_val
=\
$ac_env_${ac_var}_value
3093 case $ac_old_set,$ac_new_set in
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3096 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3097 ac_cache_corrupted
=: ;;
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3100 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3101 ac_cache_corrupted
=: ;;
3104 if test "x$ac_old_val" != "x$ac_new_val"; then
3105 # differences in whitespace do not lead to failure.
3106 ac_old_val_w
=`echo x $ac_old_val`
3107 ac_new_val_w
=`echo x $ac_new_val`
3108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3110 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3111 ac_cache_corrupted
=:
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3114 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3115 eval $ac_var=\
$ac_old_val
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3118 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3120 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3123 # Pass precious variables to config.status.
3124 if test "$ac_new_set" = set; then
3126 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3127 *) ac_arg
=$ac_var=$ac_new_val ;;
3129 case " $ac_configure_args " in
3130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3131 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3135 if $ac_cache_corrupted; then
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3139 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3140 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3141 and start over" "$LINENO" 5
3143 ## -------------------- ##
3144 ## Main body of script. ##
3145 ## -------------------- ##
3148 ac_cpp
='$CPP $CPPFLAGS'
3149 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3157 # Determine the host and build type.
3158 # ===========================================================================
3162 # Make sure we can run config.sub.
3163 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
3164 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3167 printf %s
"checking build system type... " >&6; }
3168 if test ${ac_cv_build+y}
3170 printf %s
"(cached) " >&6
3172 ac_build_alias
=$build_alias
3173 test "x$ac_build_alias" = x
&&
3174 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
3175 test "x$ac_build_alias" = x
&&
3176 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3177 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3178 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3182 printf "%s\n" "$ac_cv_build" >&6; }
3183 case $ac_cv_build in
3185 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3188 ac_save_IFS
=$IFS; IFS
='-'
3194 # Remember, the first character of IFS is used to create $*,
3195 # except with old shells:
3198 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3202 printf %s
"checking host system type... " >&6; }
3203 if test ${ac_cv_host+y}
3205 printf %s
"(cached) " >&6
3207 if test "x$host_alias" = x
; then
3208 ac_cv_host
=$ac_cv_build
3210 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3211 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3216 printf "%s\n" "$ac_cv_host" >&6; }
3219 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3222 ac_save_IFS
=$IFS; IFS
='-'
3228 # Remember, the first character of IFS is used to create $*,
3229 # except with old shells:
3232 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3236 ac_config_headers
="$ac_config_headers sdccconf.h:sdccconf_in.h sdas/linksrc/asxxxx_config.h"
3239 for ac_prog
in gawk mawk nawk
awk
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy
$ac_prog; ac_word
=$2
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 printf %s
"checking for $ac_word... " >&6; }
3245 if test ${ac_cv_prog_AWK+y}
3247 printf %s
"(cached) " >&6
3249 if test -n "$AWK"; then
3250 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3256 case $as_dir in #(((
3259 *) as_dir
=$as_dir/ ;;
3261 for ac_exec_ext
in '' $ac_executable_extensions; do
3262 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_AWK
="$ac_prog"
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3274 if test -n "$AWK"; then
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3276 printf "%s\n" "$AWK" >&6; }
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 printf "%s\n" "no" >&6; }
3283 test -n "$AWK" && break
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of the package" >&5
3288 printf %s
"checking version of the package... " >&6; }
3289 if test -f ${srcdir}/.version
; then
3290 { read VERSION
; } < ${srcdir}/.version
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3292 printf "%s\n" "$VERSION" >&6; }
3293 elif test -f ..
/.version
; then
3294 { read VERSION
; } < ..
/.version
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3296 printf "%s\n" "$VERSION" >&6; }
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown using 0.0.0" >&5
3300 printf "%s\n" "unknown using 0.0.0" >&6; }
3302 VERSIONHI
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
3303 VERSIONLO
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
3304 VERSIONP
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
3313 printf "%s\n" "#define SDCC_VERSION_LO ${VERSIONLO}" >>confdefs.h
3316 printf "%s\n" "#define SDCC_VERSION_HI ${VERSIONHI}" >>confdefs.h
3319 printf "%s\n" "#define SDCC_VERSION_P ${VERSIONP}" >>confdefs.h
3322 printf "%s\n" "#define SDCC_VERSION_STR \"${VERSION}\"" >>confdefs.h
3324 test "$program_prefix" != NONE
&&
3325 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3326 # Use a double $ so make ignores it.
3327 test "$program_suffix" != NONE
&&
3328 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3329 # Double any \ or $.
3330 # By default was `s,x,x', remove it if useless.
3331 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3332 program_transform_name
=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3334 sdcc_cv_version
=$VERSION
3335 sdcc_cv_versionhi
=$VERSIONHI
3336 sdcc_cv_versionlo
=$VERSIONLO
3337 sdcc_cv_versionp
=$VERSIONP
3341 # ===========================================================================
3352 ac_cpp
='$CPP $CPPFLAGS'
3353 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3358 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 printf %s
"checking for $ac_word... " >&6; }
3361 if test ${ac_cv_prog_CC+y}
3363 printf %s
"(cached) " >&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC
="$CC" # Let the user override the test.
3368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3372 case $as_dir in #(((
3375 *) as_dir
=$as_dir/ ;;
3377 for ac_exec_ext
in '' $ac_executable_extensions; do
3378 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390 if test -n "$CC"; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 printf "%s\n" "$CC" >&6; }
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 printf "%s\n" "no" >&6; }
3400 if test -z "$ac_cv_prog_CC"; then
3402 # Extract the first word of "gcc", so it can be a program name with args.
3403 set dummy gcc
; ac_word
=$2
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 printf %s
"checking for $ac_word... " >&6; }
3406 if test ${ac_cv_prog_ac_ct_CC+y}
3408 printf %s
"(cached) " >&6
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3417 case $as_dir in #(((
3420 *) as_dir
=$as_dir/ ;;
3422 for ac_exec_ext
in '' $ac_executable_extensions; do
3423 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_ac_ct_CC
="gcc"
3425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3434 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 printf "%s\n" "$ac_ct_CC" >&6; }
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 printf "%s\n" "no" >&6; }
3443 if test "x$ac_ct_CC" = x
; then
3446 case $cross_compiling:$ac_tool_warned in
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3450 ac_tool_warned
=yes ;;
3458 if test -z "$CC"; then
3459 if test -n "$ac_tool_prefix"; then
3460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3461 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s
"checking for $ac_word... " >&6; }
3464 if test ${ac_cv_prog_CC+y}
3466 printf %s
"(cached) " >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC
="$CC" # Let the user override the test.
3471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3475 case $as_dir in #(((
3478 *) as_dir
=$as_dir/ ;;
3480 for ac_exec_ext
in '' $ac_executable_extensions; do
3481 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3493 if test -n "$CC"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 printf "%s\n" "$CC" >&6; }
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3504 if test -z "$CC"; then
3505 # Extract the first word of "cc", so it can be a program name with args.
3506 set dummy cc
; ac_word
=$2
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 printf %s
"checking for $ac_word... " >&6; }
3509 if test ${ac_cv_prog_CC+y}
3511 printf %s
"(cached) " >&6
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC
="$CC" # Let the user override the test.
3517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3521 case $as_dir in #(((
3524 *) as_dir
=$as_dir/ ;;
3526 for ac_exec_ext
in '' $ac_executable_extensions; do
3527 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3528 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3529 ac_prog_rejected
=yes
3533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3540 if test $ac_prog_rejected = yes; then
3541 # We found a bogon in the path, so make sure we never use it.
3542 set dummy
$ac_cv_prog_CC
3544 if test $# != 0; then
3545 # We chose a different compiler from the bogus one.
3546 # However, it has the same basename, so the bogon will be chosen
3547 # first if we set CC to just the basename; use the full file name.
3549 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3555 if test -n "$CC"; then
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 printf "%s\n" "$CC" >&6; }
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 printf "%s\n" "no" >&6; }
3565 if test -z "$CC"; then
3566 if test -n "$ac_tool_prefix"; then
3567 for ac_prog
in cl.exe
3569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3570 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 printf %s
"checking for $ac_word... " >&6; }
3573 if test ${ac_cv_prog_CC+y}
3575 printf %s
"(cached) " >&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC
="$CC" # Let the user override the test.
3580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3584 case $as_dir in #(((
3587 *) as_dir
=$as_dir/ ;;
3589 for ac_exec_ext
in '' $ac_executable_extensions; do
3590 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3602 if test -n "$CC"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 printf "%s\n" "$CC" >&6; }
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3611 test -n "$CC" && break
3614 if test -z "$CC"; then
3616 for ac_prog
in cl.exe
3618 # Extract the first word of "$ac_prog", so it can be a program name with args.
3619 set dummy
$ac_prog; ac_word
=$2
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 printf %s
"checking for $ac_word... " >&6; }
3622 if test ${ac_cv_prog_ac_ct_CC+y}
3624 printf %s
"(cached) " >&6
3626 if test -n "$ac_ct_CC"; then
3627 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3633 case $as_dir in #(((
3636 *) as_dir
=$as_dir/ ;;
3638 for ac_exec_ext
in '' $ac_executable_extensions; do
3639 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_ac_ct_CC
="$ac_prog"
3641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3650 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3651 if test -n "$ac_ct_CC"; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653 printf "%s\n" "$ac_ct_CC" >&6; }
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3660 test -n "$ac_ct_CC" && break
3663 if test "x$ac_ct_CC" = x
; then
3666 case $cross_compiling:$ac_tool_warned in
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned
=yes ;;
3677 if test -z "$CC"; then
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3680 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 printf %s
"checking for $ac_word... " >&6; }
3683 if test ${ac_cv_prog_CC+y}
3685 printf %s
"(cached) " >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC
="$CC" # Let the user override the test.
3690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3694 case $as_dir in #(((
3697 *) as_dir
=$as_dir/ ;;
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3712 if test -n "$CC"; then
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 printf "%s\n" "$CC" >&6; }
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3722 if test -z "$ac_cv_prog_CC"; then
3724 # Extract the first word of "clang", so it can be a program name with args.
3725 set dummy clang
; ac_word
=$2
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 printf %s
"checking for $ac_word... " >&6; }
3728 if test ${ac_cv_prog_ac_ct_CC+y}
3730 printf %s
"(cached) " >&6
3732 if test -n "$ac_ct_CC"; then
3733 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3739 case $as_dir in #(((
3742 *) as_dir
=$as_dir/ ;;
3744 for ac_exec_ext
in '' $ac_executable_extensions; do
3745 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_ac_ct_CC
="clang"
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3756 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 printf "%s\n" "$ac_ct_CC" >&6; }
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 printf "%s\n" "no" >&6; }
3765 if test "x$ac_ct_CC" = x
; then
3768 case $cross_compiling:$ac_tool_warned in
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned
=yes ;;
3783 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $?
"no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details" "$LINENO" 5; }
3788 # Provide some information about the compiler.
3789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3792 for ac_option
in --version -v -V -qversion -version; do
3793 { { ac_try
="$ac_compiler $ac_option >&5"
3795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 printf "%s\n" "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3802 if test -s conftest.err; then
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830 printf %s "checking whether the C compiler works... " >&6; }
3831 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3837 for ac_file in $ac_files
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 if { { ac_try="$ac_link_default"
3848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3849 *) ac_try_echo
=$ac_try;;
3851 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 printf "%s\n" "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3859 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3860 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3861 # so that the user can short-circuit this test for compilers unknown to
3863 for ac_file
in $ac_files ''
3865 test -f "$ac_file" ||
continue
3867 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3870 # We found the default executable, but exeext='' is most
3874 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3876 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 # We set ac_cv_exeext here because the later test for it is not
3879 # safe: cross compilers may not add the suffix if given an `-o'
3880 # argument, so we may need to know it at that point already.
3881 # Even if this section looks crufty: it has the advantage of
3888 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3893 if test -z "$ac_file"
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 printf "%s\n" "no" >&6; }
3897 printf "%s\n" "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.
$ac_ext >&5
3900 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error
77 "C compiler cannot create executables
3903 See \`config.log' for more details" "$LINENO" 5; }
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3906 printf "%s\n" "yes" >&6; }
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3909 printf %s
"checking for C compiler default output file name... " >&6; }
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3911 printf "%s\n" "$ac_file" >&6; }
3912 ac_exeext
=$ac_cv_exeext
3914 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3915 ac_clean_files
=$ac_clean_files_save
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3917 printf %s
"checking for suffix of executables... " >&6; }
3918 if { { ac_try
="$ac_link"
3920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 printf "%s\n" "$ac_try_echo"; } >&5
3925 (eval "$ac_link") 2>&5
3927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }
3930 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3931 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3932 # work properly (i.e., refer to `conftest.exe'), while it won't with
3934 for ac_file
in conftest.exe conftest conftest.
*; do
3935 test -f "$ac_file" ||
continue
3937 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3938 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3947 See \`config.log' for more details" "$LINENO" 5; }
3949 rm -f conftest conftest
$ac_cv_exeext
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3951 printf "%s\n" "$ac_cv_exeext" >&6; }
3953 rm -f conftest.
$ac_ext
3954 EXEEXT
=$ac_cv_exeext
3956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3962 FILE *f = fopen ("conftest.out", "w");
3963 return ferror (f) || fclose (f) != 0;
3969 ac_clean_files
="$ac_clean_files conftest.out"
3970 # Check that the compiler produces executables we can run. If not, either
3971 # the compiler is broken, or we cross compile.
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3973 printf %s
"checking whether we are cross compiling... " >&6; }
3974 if test "$cross_compiling" != yes; then
3975 { { ac_try
="$ac_link"
3977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 printf "%s\n" "$ac_try_echo"; } >&5
3982 (eval "$ac_link") 2>&5
3984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985 test $ac_status = 0; }
3986 if { ac_try='./conftest$ac_cv_exeext'
3987 { { case "(($ac_try" in
3988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3989 *) ac_try_echo
=$ac_try;;
3991 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 printf "%s\n" "$ac_try_echo"; } >&5
3993 (eval "$ac_try") 2>&5
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; }; then
3999 if test "$cross_compiling" = maybe
; then
4002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error
77 "cannot run C compiled programs.
4005 If you meant to cross compile, use \`--host'.
4006 See \`config.log' for more details" "$LINENO" 5; }
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4011 printf "%s\n" "$cross_compiling" >&6; }
4013 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4014 ac_clean_files
=$ac_clean_files_save
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4016 printf %s
"checking for suffix of object files... " >&6; }
4017 if test ${ac_cv_objext+y}
4019 printf %s
"(cached) " >&6
4021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4032 rm -f conftest.o conftest.obj
4033 if { { ac_try
="$ac_compile"
4035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 printf "%s\n" "$ac_try_echo"; } >&5
4040 (eval "$ac_compile") 2>&5
4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }
4045 for ac_file in conftest.o conftest.obj conftest.*; do
4046 test -f "$ac_file" || continue;
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4054 printf "%s\n" "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4060 See \
`config.log' for more details" "$LINENO" 5; }
4062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4065 printf "%s\n" "$ac_cv_objext" >&6; }
4066 OBJEXT=$ac_cv_objext
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4069 printf %s "checking whether the compiler supports GNU C... " >&6; }
4070 if test ${ac_cv_c_compiler_gnu+y}
4072 printf %s "(cached) " >&6
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"
4094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4099 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 if test $ac_compiler_gnu = yes; then
4107 ac_test_CFLAGS=${CFLAGS+y}
4108 ac_save_CFLAGS=$CFLAGS
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4110 printf %s "checking whether $CC accepts -g... " >&6; }
4111 if test ${ac_cv_prog_cc_g+y}
4113 printf %s "(cached) " >&6
4115 ac_save_c_werror_flag=$ac_c_werror_flag
4116 ac_c_werror_flag=yes
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4130 if ac_fn_c_try_compile "$LINENO"
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4146 if ac_fn_c_try_compile "$LINENO"
4150 ac_c_werror_flag=$ac_save_c_werror_flag
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4163 if ac_fn_c_try_compile "$LINENO"
4167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4172 ac_c_werror_flag=$ac_save_c_werror_flag
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4175 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4176 if test $ac_test_CFLAGS; then
4177 CFLAGS=$ac_save_CFLAGS
4178 elif test $ac_cv_prog_cc_g = yes; then
4179 if test "$GCC" = yes; then
4185 if test "$GCC" = yes; then
4192 if test x$ac_prog_cc_stdc = xno
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4195 printf %s "checking for $CC option to enable C11 features... " >&6; }
4196 if test ${ac_cv_prog_cc_c11+y}
4198 printf %s "(cached) " >&6
4200 ac_cv_prog_cc_c11=no
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 $ac_c_conftest_c11_program
4206 for ac_arg in '' -std=gnu11
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"
4211 ac_cv_prog_cc_c11=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext conftest.beam
4214 test "x$ac_cv_prog_cc_c11" != "xno" && break
4216 rm -f conftest.$ac_ext
4220 if test "x$ac_cv_prog_cc_c11" = xno
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223 printf "%s\n" "unsupported" >&6; }
4225 if test "x$ac_cv_prog_cc_c11" = x
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 printf "%s\n" "none needed" >&6; }
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4231 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4232 CC="$CC $ac_cv_prog_cc_c11"
4234 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4238 if test x$ac_prog_cc_stdc = xno
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4241 printf %s "checking for $CC option to enable C99 features... " >&6; }
4242 if test ${ac_cv_prog_cc_c99+y}
4244 printf %s "(cached) " >&6
4246 ac_cv_prog_cc_c99=no
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 $ac_c_conftest_c99_program
4252 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4254 CC="$ac_save_CC $ac_arg"
4255 if ac_fn_c_try_compile "$LINENO"
4257 ac_cv_prog_cc_c99=$ac_arg
4259 rm -f core conftest.err conftest.$ac_objext conftest.beam
4260 test "x$ac_cv_prog_cc_c99" != "xno" && break
4262 rm -f conftest.$ac_ext
4266 if test "x$ac_cv_prog_cc_c99" = xno
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4269 printf "%s\n" "unsupported" >&6; }
4271 if test "x$ac_cv_prog_cc_c99" = x
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274 printf "%s\n" "none needed" >&6; }
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4277 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4278 CC="$CC $ac_cv_prog_cc_c99"
4280 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4284 if test x$ac_prog_cc_stdc = xno
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4287 printf %s "checking for $CC option to enable C89 features... " >&6; }
4288 if test ${ac_cv_prog_cc_c89+y}
4290 printf %s "(cached) " >&6
4292 ac_cv_prog_cc_c89=no
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 $ac_c_conftest_c89_program
4298 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"
4303 ac_cv_prog_cc_c89=$ac_arg
4305 rm -f core conftest.err conftest.$ac_objext conftest.beam
4306 test "x$ac_cv_prog_cc_c89" != "xno" && break
4308 rm -f conftest.$ac_ext
4312 if test "x$ac_cv_prog_cc_c89" = xno
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 printf "%s\n" "unsupported" >&6; }
4317 if test "x$ac_cv_prog_cc_c89" = x
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 printf "%s\n" "none needed" >&6; }
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4323 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4324 CC="$CC $ac_cv_prog_cc_c89"
4326 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4343 printf %s "checking how to run the C preprocessor... " >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4348 if test -z "$CPP"; then
4349 if test ${ac_cv_prog_CPP+y}
4351 printf %s "(cached) " >&6
4353 # Double quotes because $CC needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4357 for ac_c_preproc_warn_flag in '' yes
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # On the NeXT, cc -E runs the code through the compiler's parser,
4362 # not just through cpp. "Syntax error" is here to catch this case.
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4368 if ac_fn_c_try_cpp "$LINENO"
4372 # Broken: fails on valid input.
4375 rm -f conftest.err conftest.i conftest.$ac_ext
4377 # OK, works on sane cases. Now check whether nonexistent headers
4378 # can be detected and how.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 #include <ac_nonexistent.h>
4383 if ac_fn_c_try_cpp "$LINENO"
4385 # Broken: success on invalid input.
4388 # Passes both tests.
4392 rm -f conftest.err conftest.i conftest.$ac_ext
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.i conftest.err conftest.
$ac_ext
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4411 printf "%s\n" "$CPP" >&6; }
4413 for ac_c_preproc_warn_flag
in '' yes
4415 # Use a header file that comes with gcc, so configuring glibc
4416 # with a fresh cross-compiler works.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4424 if ac_fn_c_try_cpp
"$LINENO"
4428 # Broken: fails on valid input.
4431 rm -f conftest.err conftest.i conftest.
$ac_ext
4433 # OK, works on sane cases. Now check whether nonexistent headers
4434 # can be detected and how.
4435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <ac_nonexistent.h>
4439 if ac_fn_c_try_cpp
"$LINENO"
4441 # Broken: success on invalid input.
4444 # Passes both tests.
4448 rm -f conftest.err conftest.i conftest.
$ac_ext
4451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4452 rm -f conftest.i conftest.err conftest.
$ac_ext
4457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details" "$LINENO" 5; }
4464 ac_cpp
='$CPP $CPPFLAGS'
4465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4476 ac_cpp
='$CXXCPP $CPPFLAGS'
4477 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4480 if test -z "$CXX"; then
4481 if test -n "$CCC"; then
4484 if test -n "$ac_tool_prefix"; then
4485 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4488 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 printf %s
"checking for $ac_word... " >&6; }
4491 if test ${ac_cv_prog_CXX+y}
4493 printf %s
"(cached) " >&6
4495 if test -n "$CXX"; then
4496 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4502 case $as_dir in #(((
4505 *) as_dir
=$as_dir/ ;;
4507 for ac_exec_ext
in '' $ac_executable_extensions; do
4508 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4520 if test -n "$CXX"; then
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4522 printf "%s\n" "$CXX" >&6; }
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 printf "%s\n" "no" >&6; }
4529 test -n "$CXX" && break
4532 if test -z "$CXX"; then
4534 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537 set dummy
$ac_prog; ac_word
=$2
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 printf %s
"checking for $ac_word... " >&6; }
4540 if test ${ac_cv_prog_ac_ct_CXX+y}
4542 printf %s
"(cached) " >&6
4544 if test -n "$ac_ct_CXX"; then
4545 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4551 case $as_dir in #(((
4554 *) as_dir
=$as_dir/ ;;
4556 for ac_exec_ext
in '' $ac_executable_extensions; do
4557 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4568 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4569 if test -n "$ac_ct_CXX"; then
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4571 printf "%s\n" "$ac_ct_CXX" >&6; }
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 printf "%s\n" "no" >&6; }
4578 test -n "$ac_ct_CXX" && break
4581 if test "x$ac_ct_CXX" = x
; then
4584 case $cross_compiling:$ac_tool_warned in
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588 ac_tool_warned
=yes ;;
4596 # Provide some information about the compiler.
4597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4600 for ac_option
in --version -v -V -qversion; do
4601 { { ac_try
="$ac_compiler $ac_option >&5"
4603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607 printf "%s\n" "$ac_try_echo"; } >&5
4608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4610 if test -s conftest.err; then
4612 ... rest of stderr output deleted ...
4613 10q' conftest.err >conftest.er1
4614 cat conftest.er1 >&5
4616 rm -f conftest.er1 conftest.err
4617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4622 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4623 if test ${ac_cv_cxx_compiler_gnu+y}
4625 printf %s "(cached) " >&6
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4641 if ac_fn_cxx_try_compile "$LINENO"
4647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4648 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4652 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4655 if test $ac_compiler_gnu = yes; then
4660 ac_test_CXXFLAGS=${CXXFLAGS+y}
4661 ac_save_CXXFLAGS=$CXXFLAGS
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4663 printf %s "checking whether $CXX accepts -g... " >&6; }
4664 if test ${ac_cv_prog_cxx_g+y}
4666 printf %s "(cached) " >&6
4668 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4669 ac_cxx_werror_flag=yes
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4683 if ac_fn_cxx_try_compile "$LINENO"
4685 ac_cv_prog_cxx_g=yes
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4699 if ac_fn_cxx_try_compile "$LINENO"
4703 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4716 if ac_fn_cxx_try_compile "$LINENO"
4718 ac_cv_prog_cxx_g=yes
4720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4728 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4729 if test $ac_test_CXXFLAGS; then
4730 CXXFLAGS=$ac_save_CXXFLAGS
4731 elif test $ac_cv_prog_cxx_g = yes; then
4732 if test "$GXX" = yes; then
4738 if test "$GXX" = yes; then
4744 ac_prog_cxx_stdcxx=no
4745 if test x$ac_prog_cxx_stdcxx = xno
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4748 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4749 if test ${ac_cv_prog_cxx_11+y}
4751 printf %s "(cached) " >&6
4753 ac_cv_prog_cxx_11=no
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 $ac_cxx_conftest_cxx11_program
4759 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4761 CXX="$ac_save_CXX $ac_arg"
4762 if ac_fn_cxx_try_compile "$LINENO"
4764 ac_cv_prog_cxx_cxx11=$ac_arg
4766 rm -f core conftest.err conftest.$ac_objext conftest.beam
4767 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4769 rm -f conftest.$ac_ext
4773 if test "x$ac_cv_prog_cxx_cxx11" = xno
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4776 printf "%s\n" "unsupported" >&6; }
4778 if test "x$ac_cv_prog_cxx_cxx11" = x
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 printf "%s\n" "none needed" >&6; }
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4784 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4785 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4787 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4788 ac_prog_cxx_stdcxx=cxx11
4791 if test x$ac_prog_cxx_stdcxx = xno
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4794 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4795 if test ${ac_cv_prog_cxx_98+y}
4797 printf %s "(cached) " >&6
4799 ac_cv_prog_cxx_98=no
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 $ac_cxx_conftest_cxx98_program
4805 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4807 CXX="$ac_save_CXX $ac_arg"
4808 if ac_fn_cxx_try_compile "$LINENO"
4810 ac_cv_prog_cxx_cxx98=$ac_arg
4812 rm -f core conftest.err conftest.$ac_objext conftest.beam
4813 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4815 rm -f conftest.$ac_ext
4819 if test "x$ac_cv_prog_cxx_cxx98" = xno
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4822 printf "%s\n" "unsupported" >&6; }
4824 if test "x$ac_cv_prog_cxx_cxx98" = x
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4827 printf "%s\n" "none needed" >&6; }
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4830 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4831 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4833 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4834 ac_prog_cxx_stdcxx=cxx98
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 # Find a good install program. We prefer a C program (faster),
4846 # so one script is as good as another. But avoid the broken or
4847 # incompatible versions:
4848 # SysV /etc/install, /usr/sbin/install
4849 # SunOS /usr/etc/install
4850 # IRIX /sbin/install
4852 # AmigaOS /C/install, which installs bootblocks on floppy discs
4853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4856 # OS/2's system install, which has a completely different semantic
4857 # ./install, which can be erroneously created by make from ./install.sh.
4858 # Reject install programs that cannot install multiple files.
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4860 printf %s "checking for a BSD-compatible install... " >&6; }
4861 if test -z "$INSTALL"; then
4862 if test ${ac_cv_path_install+y}
4864 printf %s "(cached) " >&6
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 case $as_dir in #(((
4873 *) as_dir=$as_dir/ ;;
4875 # Account for fact that we put trailing slashes in our PATH walk.
4878 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4879 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4885 for ac_prog in ginstall scoinst install; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4888 if test $ac_prog = install &&
4889 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4890 # AIX install. It has an incompatible calling convention.
4892 elif test $ac_prog = install &&
4893 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4897 rm -rf conftest.one conftest.two conftest.dir
4898 echo one > conftest.one
4899 echo two > conftest.two
4901 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4902 test -s conftest.one && test -s conftest.two &&
4903 test -s conftest.dir/conftest.one &&
4904 test -s conftest.dir/conftest.two
4906 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4919 rm -rf conftest.one conftest.two conftest.dir
4922 if test ${ac_cv_path_install+y}; then
4923 INSTALL=$ac_cv_path_install
4925 # As a last resort, use the slow shell script. Don't cache a
4926 # value for INSTALL within a source directory, because that will
4927 # break other packages using the cache if that directory is
4928 # removed, or if the value is a relative name.
4929 INSTALL=$ac_install_sh
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4933 printf "%s\n" "$INSTALL" >&6; }
4935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4936 # It thinks the first close brace ends the variable substitution.
4937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4941 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4943 if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 printf %s "checking for $ac_word... " >&6; }
4948 if test ${ac_cv_prog_RANLIB+y}
4950 printf %s "(cached) " >&6
4952 if test -n "$RANLIB"; then
4953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 case $as_dir in #(((
4962 *) as_dir=$as_dir/ ;;
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4976 RANLIB=$ac_cv_prog_RANLIB
4977 if test -n "$RANLIB"; then
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4979 printf "%s\n" "$RANLIB" >&6; }
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 printf "%s\n" "no" >&6; }
4987 if test -z "$ac_cv_prog_RANLIB"; then
4988 ac_ct_RANLIB=$RANLIB
4989 # Extract the first word of "ranlib", so it can be a program name with args.
4990 set dummy ranlib; ac_word=$2
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 printf %s "checking for $ac_word... " >&6; }
4993 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4995 printf %s "(cached) " >&6
4997 if test -n "$ac_ct_RANLIB"; then
4998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 case $as_dir in #(((
5007 *) as_dir=$as_dir/ ;;
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_RANLIB="ranlib"
5012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5022 if test -n "$ac_ct_RANLIB"; then
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5024 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 printf "%s\n" "no" >&6; }
5030 if test "x$ac_ct_RANLIB" = x; then
5033 case $cross_compiling:$ac_tool_warned in
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037 ac_tool_warned=yes ;;
5039 RANLIB=$ac_ct_RANLIB
5042 RANLIB="$ac_cv_prog_RANLIB"
5045 # Extract the first word of "autoconf", so it can be a program name with args.
5046 set dummy autoconf; ac_word=$2
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 printf %s "checking for $ac_word... " >&6; }
5049 if test ${ac_cv_prog_AUTOCONF+y}
5051 printf %s "(cached) " >&6
5053 if test -n "$AUTOCONF"; then
5054 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 case $as_dir in #(((
5063 *) as_dir=$as_dir/ ;;
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_AUTOCONF="autoconf"
5068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
5078 AUTOCONF=$ac_cv_prog_AUTOCONF
5079 if test -n "$AUTOCONF"; then
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5081 printf "%s\n" "$AUTOCONF" >&6; }
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 printf "%s\n" "no" >&6; }
5088 # Extract the first word of "strip", so it can be a program name with args.
5089 set dummy strip; ac_word=$2
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 printf %s "checking for $ac_word... " >&6; }
5092 if test ${ac_cv_prog_STRIP+y}
5094 printf %s "(cached) " >&6
5096 if test -n "$STRIP"; then
5097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 case $as_dir in #(((
5106 *) as_dir=$as_dir/ ;;
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_STRIP="strip"
5111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5118 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5121 STRIP=$ac_cv_prog_STRIP
5122 if test -n "$STRIP"; then
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5124 printf "%s\n" "$STRIP" >&6; }
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 printf "%s\n" "no" >&6; }
5131 # Extract the first word of "as", so it can be a program name with args.
5132 set dummy as; ac_word=$2
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 printf %s "checking for $ac_word... " >&6; }
5135 if test ${ac_cv_prog_AS+y}
5137 printf %s "(cached) " >&6
5139 if test -n "$AS"; then
5140 ac_cv_prog_AS="$AS" # Let the user override the test.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 case $as_dir in #(((
5149 *) as_dir=$as_dir/ ;;
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5161 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
5165 if test -n "$AS"; then
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5167 printf "%s\n" "$AS" >&6; }
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 printf "%s\n" "no" >&6; }
5174 # Extract the first word of "cp", so it can be a program name with args.
5175 set dummy cp; ac_word=$2
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 printf %s "checking for $ac_word... " >&6; }
5178 if test ${ac_cv_prog_CP+y}
5180 printf %s "(cached) " >&6
5182 if test -n "$CP"; then
5183 ac_cv_prog_CP="$CP" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 case $as_dir in #(((
5192 *) as_dir=$as_dir/ ;;
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5208 if test -n "$CP"; then
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5210 printf "%s\n" "$CP" >&6; }
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 printf "%s\n" "no" >&6; }
5217 # Extract the first word of "ar", so it can be a program name with args.
5218 set dummy ar; ac_word=$2
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 printf %s "checking for $ac_word... " >&6; }
5221 if test ${ac_cv_prog_AR+y}
5223 printf %s "(cached) " >&6
5225 if test -n "$AR"; then
5226 ac_cv_prog_AR="$AR" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 case $as_dir in #(((
5235 *) as_dir=$as_dir/ ;;
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5247 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
5251 if test -n "$AR"; then
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5253 printf "%s\n" "$AR" >&6; }
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 printf "%s\n" "no" >&6; }
5260 # Extract the first word of "gm4", so it can be a program name with args.
5261 set dummy gm4; ac_word=$2
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 printf %s "checking for $ac_word... " >&6; }
5264 if test ${ac_cv_prog_M4+y}
5266 printf %s "(cached) " >&6
5268 if test -n "$M4"; then
5269 ac_cv_prog_M4="$M4" # Let the user override the test.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 case $as_dir in #(((
5278 *) as_dir=$as_dir/ ;;
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5290 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="m4"
5294 if test -n "$M4"; then
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5296 printf "%s\n" "$M4" >&6; }
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 printf "%s\n" "no" >&6; }
5304 for ac_prog in flex lex
5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 printf %s "checking for $ac_word... " >&6; }
5310 if test ${ac_cv_prog_LEX+y}
5312 printf %s "(cached) " >&6
5314 if test -n "$LEX"; then
5315 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 case $as_dir in #(((
5324 *) as_dir=$as_dir/ ;;
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_LEX="$ac_prog"
5329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5339 if test -n "$LEX"; then
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5341 printf "%s\n" "$LEX" >&6; }
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 printf "%s\n" "no" >&6; }
5348 test -n "$LEX" && break
5350 test -n "$LEX" || LEX=":"
5353 for ac_prog in 'bison -y' byacc yacc
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356 set dummy $ac_prog; ac_word=$2
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 printf %s "checking for $ac_word... " >&6; }
5359 if test ${ac_cv_prog_YACC+y}
5361 printf %s "(cached) " >&6
5363 if test -n "$YACC"; then
5364 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 case $as_dir in #(((
5373 *) as_dir=$as_dir/ ;;
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_YACC="$ac_prog"
5378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5387 YACC=$ac_cv_prog_YACC
5388 if test -n "$YACC"; then
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5390 printf "%s\n" "$YACC" >&6; }
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 printf "%s\n" "no" >&6; }
5397 test -n "$YACC" && break
5399 test -n "$YACC" || YACC=":"
5402 # 2.7 is just a guess for the minimum version. I know it works with 2.7 (and 3.6 and 3.9), but should test if a lower version is sufficient.
5409 if test -n "$PYTHON"; then
5410 # If the user set $PYTHON, use it and don't search something else.
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
5412 printf %s "checking whether $PYTHON version is >= 2.7... " >&6; }
5414 # split strings by '.' and convert to numeric. Append some zeros
5415 # because we need at least 4 digits for the hex conversion.
5416 # map returns an iterator in Python 3.0 and a list in 2.x
5417 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5419 # xrange is not present in Python 3.0 and range returns an iterator
5420 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5421 sys.exit(sys.hexversion < minverhex)"
5422 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5423 ($PYTHON -c "$prog") >&5 2>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 printf "%s\n" "yes" >&6; }
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 printf "%s\n" "no" >&6; }
5433 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5435 am_display_PYTHON=$PYTHON
5437 # Otherwise, try each interpreter until we find one that satisfies
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5440 printf %s "checking for a Python interpreter with version >= 2.7... " >&6; }
5441 if test ${am_cv_pathless_PYTHON+y}
5443 printf %s "(cached) " >&6
5446 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5447 test "$am_cv_pathless_PYTHON" = none && break
5449 # split strings by '.' and convert to numeric. Append some zeros
5450 # because we need at least 4 digits for the hex conversion.
5451 # map returns an iterator in Python 3.0 and a list in 2.x
5452 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5454 # xrange is not present in Python 3.0 and range returns an iterator
5455 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5456 sys.exit(sys.hexversion < minverhex)"
5457 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5458 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5468 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5469 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5470 if test "$am_cv_pathless_PYTHON" = none; then
5473 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5474 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 printf %s "checking for $ac_word... " >&6; }
5477 if test ${ac_cv_path_PYTHON+y}
5479 printf %s "(cached) " >&6
5483 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 case $as_dir in #(((
5493 *) as_dir=$as_dir/ ;;
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5497 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5508 PYTHON=$ac_cv_path_PYTHON
5509 if test -n "$PYTHON"; then
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5511 printf "%s\n" "$PYTHON" >&6; }
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 printf "%s\n" "no" >&6; }
5519 am_display_PYTHON=$am_cv_pathless_PYTHON
5523 if test "$PYTHON" = :; then
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5529 printf %s "checking for $am_display_PYTHON version... " >&6; }
5530 if test ${am_cv_python_version+y}
5532 printf %s "(cached) " >&6
5534 am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_info[:2])"`
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5537 printf "%s\n" "$am_cv_python_version" >&6; }
5538 PYTHON_VERSION=$am_cv_python_version
5542 PYTHON_PREFIX='${prefix}'
5544 PYTHON_EXEC_PREFIX='${exec_prefix}'
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5549 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5550 if test ${am_cv_python_platform+y}
5552 printf %s "(cached) " >&6
5554 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5557 printf "%s\n" "$am_cv_python_platform" >&6; }
5558 PYTHON_PLATFORM=$am_cv_python_platform
5561 # Just factor out some code duplication.
5562 am_python_setup_sysconfig="\
5564 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5565 # with python 3.x. See automake bug#10227.
5569 can_use_sysconfig = 0
5571 can_use_sysconfig = 1
5572 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5573 # <https://github.com/pypa/virtualenv/issues/118>
5575 from platform import python_implementation
5576 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5577 can_use_sysconfig = 0
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5583 printf %s "checking for $am_display_PYTHON script directory... " >&6; }
5584 if test ${am_cv_python_pythondir+y}
5586 printf %s "(cached) " >&6
5588 if test "x$prefix" = xNONE
5590 am_py_prefix=$ac_default_prefix
5592 am_py_prefix=$prefix
5594 am_cv_python_pythondir=`$PYTHON -c "
5595 $am_python_setup_sysconfig
5596 if can_use_sysconfig:
5597 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5599 from distutils import sysconfig
5600 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5601 sys.stdout.write(sitedir)"`
5602 case $am_cv_python_pythondir in
5604 am__strip_prefix=`echo "$am_py_prefix" |
sed 's|.|.|g'`
5605 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" |
sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5608 case $am_py_prefix in
5611 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5619 printf "%s\n" "$am_cv_python_pythondir" >&6; }
5620 pythondir=$am_cv_python_pythondir
5624 pkgpythondir=\${pythondir}/$PACKAGE
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5628 printf %s "checking for $am_display_PYTHON extension module directory... " >&6; }
5629 if test ${am_cv_python_pyexecdir+y}
5631 printf %s "(cached) " >&6
5633 if test "x$exec_prefix" = xNONE
5635 am_py_exec_prefix=$am_py_prefix
5637 am_py_exec_prefix=$exec_prefix
5639 am_cv_python_pyexecdir=`$PYTHON -c "
5640 $am_python_setup_sysconfig
5641 if can_use_sysconfig:
5642 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5644 from distutils import sysconfig
5645 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5646 sys.stdout.write(sitedir)"`
5647 case $am_cv_python_pyexecdir in
5648 $am_py_exec_prefix*)
5649 am__strip_prefix=`echo "$am_py_exec_prefix" |
sed 's|.|.|g'`
5650 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" |
sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5653 case $am_py_exec_prefix in
5656 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5664 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
5665 pyexecdir=$am_cv_python_pyexecdir
5669 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5679 if test "$YACC" = ":"; then
5680 as_fn_error $? "Cannot find required program bison." "$LINENO" 5
5683 if test "$LEX" = ":"; then
5684 as_fn_error $? "Cannot find required program flex." "$LINENO" 5
5689 ac_cpp='$CPP $CPPFLAGS'
5690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 ac_header= ac_cache=
5697 for ac_item in $ac_header_c_list
5699 if test $ac_cache; then
5700 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5701 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5702 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5704 ac_header= ac_cache=
5705 elif test $ac_header; then
5719 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5722 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5725 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5726 if test "x$ac_cv_header_endian_h" = xyes
5728 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5731 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5732 if test "x$ac_cv_header_sys_endian_h" = xyes
5734 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5737 ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
5738 if test "x$ac_cv_header_machine_endian_h" = xyes
5740 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
5743 ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
5744 if test "x$ac_cv_header_sys_isa_defs_h" = xyes
5746 printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
5750 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
5751 if test "x$ac_cv_header_uchar_h" = xyes
5753 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
5758 ac_cpp='$CXXCPP $CPPFLAGS'
5759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5764 for ac_header in treedec/combinations.hpp
5766 ac_fn_cxx_check_header_compile "$LINENO" "treedec/combinations.hpp" "ac_cv_header_treedec_combinations_hpp" "$ac_includes_default"
5767 if test "x$ac_cv_header_treedec_combinations_hpp" = xyes
5769 printf "%s\n" "#define HAVE_TREEDEC_COMBINATIONS_HPP 1" >>confdefs.h
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: treedec library missing, falling back to Thorup." >&5
5773 printf "%s\n" "$as_me: treedec library missing, falling back to Thorup." >&6;}
5777 ac_fn_cxx_check_header_compile "$LINENO" "gala/graph.h" "ac_cv_header_gala_graph_h" "$ac_includes_default"
5778 if test "x$ac_cv_header_gala_graph_h" = xyes
5780 printf "%s\n" "#define HAVE_GALA_GRAPH_H 1" >>confdefs.h
5784 for ac_header in boost/graph/adjacency_list.hpp
5786 ac_fn_cxx_check_header_compile "$LINENO" "boost/graph/adjacency_list.hpp" "ac_cv_header_boost_graph_adjacency_list_hpp" "$ac_includes_default"
5787 if test "x$ac_cv_header_boost_graph_adjacency_list_hpp" = xyes
5789 printf "%s\n" "#define HAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP 1" >>confdefs.h
5792 as_fn_error $? "boost library not found (boost/graph/adjacency_list.hpp)." "$LINENO" 5
5797 ac_cpp='$CPP $CPPFLAGS'
5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804 # Check whether --with-ccache was given.
5805 if test ${with_ccache+y}
5807 withval=$with_ccache;
5810 case x${with_ccache-yes} in
5811 xyes) # Extract the first word of "ccache", so it can be a program name with args.
5812 set dummy ccache; ac_word=$2
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 printf %s "checking for $ac_word... " >&6; }
5815 if test ${ac_cv_prog_CCACHE+y}
5817 printf %s "(cached) " >&6
5819 if test -n "$CCACHE"; then
5820 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 case $as_dir in #(((
5829 *) as_dir=$as_dir/ ;;
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_CCACHE="ccache"
5834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5843 CCACHE=$ac_cv_prog_CCACHE
5844 if test -n "$CCACHE"; then
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
5846 printf "%s\n" "$CCACHE" >&6; }
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 printf "%s\n" "no" >&6; }
5854 *) CCACHE=$with_ccache
5859 # Checking for functions
5860 # ===========================================================================
5861 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
5862 if test "x$ac_cv_func_mkstemp" = xyes
5864 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
5867 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
5868 if test "x$ac_cv_func_strndup" = xyes
5870 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
5873 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
5874 if test "x$ac_cv_func_setrlimit" = xyes
5876 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
5879 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
5880 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes
5882 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS_FD 1" >>confdefs.h
5889 # ===========================================================================
5891 # _sdcc_EXECUTE_IFELSE_BODY(COMMAND)
5892 # -----------------------
5893 # Shell function body for _AC_EXECUTE_IFELSE.
5894 # _sdcc_EXECUTE_IFELSE_BODY
5896 # sdcc_EXECUTE_IFELSE(COMMAND[ACTION-IF-TRUE], [ACTION-IF-FALSE])
5897 # ----------------------------------------------------------------
5898 # Try to execute COMMAND.
5899 # sdcc_EXECUTE_IFELSE
5901 # Check whether the compiler for the current language is SunPRO.
5905 # sdcc_IS_VALID_OPTION macro checks if the current compiler, selected by
5906 # AC_LANG, supports option specified as the 1st parameter. The test fails if
5907 # the compiler returns an error or in case something is writeen to stderr.
5908 # For example: sdcc_VALID_OPT(-fPIC)
5912 # This macro expands DIR and assigns it to RET.
5913 # If DIR is NONE, then it's replaced by DEFAULT.
5915 # Based on AC_DEFINE_DIR
5919 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
5923 # adl_NORMALIZE_PATH
5925 # - empty paths are changed to '.'
5926 # - trailing slashes are removed
5927 # - repeated slashes are squeezed except a leading doubled slash '//'
5928 # (which might indicate a networked disk on some OS).
5931 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
5932 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
5933 # are turned into backslashes, otherwise they are all turned into slashes.
5935 # This makes processing of DOS filenames quite easier, because you can turn a
5936 # filename to the Unix notation, make your processing, and turn it back to
5937 # original notation.
5942 # adl_COMPUTE_RELATIVE_PATH
5944 # PATH_LIST is a space-separated list of colon-separated triplets of the form
5945 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
5946 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
5947 # absolute filenames for this macro to success.
5953 ## The following helper macros are too fragile to be used out
5954 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
5955 ## paths are normalized), that's why I'm keeping them in the same file.
5956 ## Still, some of them maybe worth to reuse.
5973 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5975 ac_cpp='$CXXCPP $CPPFLAGS'
5976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5981 if test x$ac_success = xno; then
5982 for alternative in ${ax_cxx_compile_alternatives}; do
5983 switch="-std=gnu++${alternative}"
5984 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5986 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
5987 if eval test \${$cachevar+y}
5989 printf %s "(cached) " >&6
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5997 // If the compiler admits that it is not ready for C++11, why torture it?
5998 // Hopefully, this will speed up the test.
6002 #error "This is not a C++ compiler"
6004 #elif __cplusplus < 201103L
6006 #error "This is not a C++11 compiler"
6013 namespace test_static_assert
6016 template <typename T>
6019 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6024 namespace test_final_override
6032 struct Derived : public Base
6034 virtual void f() override {}
6039 namespace test_double_right_angle_brackets
6042 template < typename T >
6045 typedef check<void> single_type;
6046 typedef check<check<void>> double_type;
6047 typedef check<check<check<void>>> triple_type;
6048 typedef check<check<check<check<void>>>> quadruple_type;
6052 namespace test_decltype
6065 namespace test_type_deduction
6068 template < typename T1, typename T2 >
6071 static const bool value = false;
6074 template < typename T >
6075 struct is_same<T, T>
6077 static const bool value = true;
6080 template < typename T1, typename T2 >
6082 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6088 test(const int c, volatile int v)
6090 static_assert(is_same<int, decltype(0)>::value == true, "");
6091 static_assert(is_same<int, decltype(c)>::value == false, "");
6092 static_assert(is_same<int, decltype(v)>::value == false, "");
6095 auto sumi = ac + av + 'x';
6096 auto sumf = ac + av + 1.0;
6097 static_assert(is_same<int, decltype(ac)>::value == true, "");
6098 static_assert(is_same<int, decltype(av)>::value == true, "");
6099 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6100 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6101 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6102 return (sumf > 0.0) ? sumi : add(c, v);
6107 namespace test_noexcept
6110 int f() { return 0; }
6111 int g() noexcept { return 0; }
6113 static_assert(noexcept(f()) == false, "");
6114 static_assert(noexcept(g()) == true, "");
6118 namespace test_constexpr
6121 template < typename CharT >
6122 unsigned long constexpr
6123 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6125 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6128 template < typename CharT >
6129 unsigned long constexpr
6130 strlen_c(const CharT *const s) noexcept
6132 return strlen_c_r(s, 0UL);
6135 static_assert(strlen_c("") == 0UL, "");
6136 static_assert(strlen_c("1") == 1UL, "");
6137 static_assert(strlen_c("example") == 7UL, "");
6138 static_assert(strlen_c("another\0example") == 7UL, "");
6142 namespace test_rvalue_references
6148 static constexpr int value = N;
6151 answer<1> f(int&) { return answer<1>(); }
6152 answer<2> f(const int&) { return answer<2>(); }
6153 answer<3> f(int&&) { return answer<3>(); }
6160 static_assert(decltype(f(i))::value == 1, "");
6161 static_assert(decltype(f(c))::value == 2, "");
6162 static_assert(decltype(f(0))::value == 3, "");
6167 namespace test_uniform_initialization
6172 static const int zero {};
6173 static const int one {1};
6176 static_assert(test::zero == 0, "");
6177 static_assert(test::one == 1, "");
6181 namespace test_lambdas
6187 auto lambda1 = [](){};
6188 auto lambda2 = lambda1;
6196 auto a = [](int i, int j){ return i + j; }(1, 2);
6197 auto b = []() -> int { return '0'; }();
6198 auto c = [=](){ return a + b; }();
6199 auto d = [&](){ return c; }();
6200 auto e = [a, &b](int x) mutable {
6201 const auto identity = [](int y){ return y; };
6202 for (auto i = 0; i < a; ++i)
6204 return x + identity(a + b);
6206 return a + b + c + d + e;
6212 const auto nullary = [](){ return 0; };
6213 const auto unary = [](int x){ return x; };
6214 using nullary_t = decltype(nullary);
6215 using unary_t = decltype(unary);
6216 const auto higher1st = [](nullary_t f){ return f(); };
6217 const auto higher2nd = [unary](nullary_t f1){
6218 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6220 return higher1st(nullary) + higher2nd(nullary)(unary);
6225 namespace test_variadic_templates
6231 template <int N0, int... N1toN>
6232 struct sum<N0, N1toN...>
6234 static constexpr auto value = N0 + sum<N1toN...>::value;
6240 static constexpr auto value = 0;
6243 static_assert(sum<>::value == 0, "");
6244 static_assert(sum<1>::value == 1, "");
6245 static_assert(sum<23>::value == 23, "");
6246 static_assert(sum<1, 2>::value == 3, "");
6247 static_assert(sum<5, 5, 11>::value == 21, "");
6248 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6252 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6253 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6255 namespace test_template_alias_sfinae
6260 template<typename T>
6261 using member = typename T::member_type;
6263 template<typename T>
6266 template<typename T>
6267 void func(member<T>*) {}
6271 void test() { func<foo>(0); }
6275 } // namespace cxx11
6277 #endif // __cplusplus >= 201103L
6282 if ac_fn_cxx_try_compile "$LINENO"
6288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6291 eval ac_res=\$$cachevar
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6293 printf "%s\n" "$ac_res" >&6; }
6294 if eval test x\$$cachevar = xyes; then
6296 if test -n "$CXXCPP" ; then
6297 CXXCPP="$CXXCPP $switch"
6305 if test x$ac_success = xno; then
6306 for alternative in ${ax_cxx_compile_alternatives}; do
6307 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6308 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6310 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6311 if eval test \${$cachevar+y}
6313 printf %s "(cached) " >&6
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6321 // If the compiler admits that it is not ready for C++11, why torture it?
6322 // Hopefully, this will speed up the test.
6326 #error "This is not a C++ compiler"
6328 #elif __cplusplus < 201103L
6330 #error "This is not a C++11 compiler"
6337 namespace test_static_assert
6340 template <typename T>
6343 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6348 namespace test_final_override
6356 struct Derived : public Base
6358 virtual void f() override {}
6363 namespace test_double_right_angle_brackets
6366 template < typename T >
6369 typedef check<void> single_type;
6370 typedef check<check<void>> double_type;
6371 typedef check<check<check<void>>> triple_type;
6372 typedef check<check<check<check<void>>>> quadruple_type;
6376 namespace test_decltype
6389 namespace test_type_deduction
6392 template < typename T1, typename T2 >
6395 static const bool value = false;
6398 template < typename T >
6399 struct is_same<T, T>
6401 static const bool value = true;
6404 template < typename T1, typename T2 >
6406 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6412 test(const int c, volatile int v)
6414 static_assert(is_same<int, decltype(0)>::value == true, "");
6415 static_assert(is_same<int, decltype(c)>::value == false, "");
6416 static_assert(is_same<int, decltype(v)>::value == false, "");
6419 auto sumi = ac + av + 'x';
6420 auto sumf = ac + av + 1.0;
6421 static_assert(is_same<int, decltype(ac)>::value == true, "");
6422 static_assert(is_same<int, decltype(av)>::value == true, "");
6423 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6424 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6425 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6426 return (sumf > 0.0) ? sumi : add(c, v);
6431 namespace test_noexcept
6434 int f() { return 0; }
6435 int g() noexcept { return 0; }
6437 static_assert(noexcept(f()) == false, "");
6438 static_assert(noexcept(g()) == true, "");
6442 namespace test_constexpr
6445 template < typename CharT >
6446 unsigned long constexpr
6447 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6449 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6452 template < typename CharT >
6453 unsigned long constexpr
6454 strlen_c(const CharT *const s) noexcept
6456 return strlen_c_r(s, 0UL);
6459 static_assert(strlen_c("") == 0UL, "");
6460 static_assert(strlen_c("1") == 1UL, "");
6461 static_assert(strlen_c("example") == 7UL, "");
6462 static_assert(strlen_c("another\0example") == 7UL, "");
6466 namespace test_rvalue_references
6472 static constexpr int value = N;
6475 answer<1> f(int&) { return answer<1>(); }
6476 answer<2> f(const int&) { return answer<2>(); }
6477 answer<3> f(int&&) { return answer<3>(); }
6484 static_assert(decltype(f(i))::value == 1, "");
6485 static_assert(decltype(f(c))::value == 2, "");
6486 static_assert(decltype(f(0))::value == 3, "");
6491 namespace test_uniform_initialization
6496 static const int zero {};
6497 static const int one {1};
6500 static_assert(test::zero == 0, "");
6501 static_assert(test::one == 1, "");
6505 namespace test_lambdas
6511 auto lambda1 = [](){};
6512 auto lambda2 = lambda1;
6520 auto a = [](int i, int j){ return i + j; }(1, 2);
6521 auto b = []() -> int { return '0'; }();
6522 auto c = [=](){ return a + b; }();
6523 auto d = [&](){ return c; }();
6524 auto e = [a, &b](int x) mutable {
6525 const auto identity = [](int y){ return y; };
6526 for (auto i = 0; i < a; ++i)
6528 return x + identity(a + b);
6530 return a + b + c + d + e;
6536 const auto nullary = [](){ return 0; };
6537 const auto unary = [](int x){ return x; };
6538 using nullary_t = decltype(nullary);
6539 using unary_t = decltype(unary);
6540 const auto higher1st = [](nullary_t f){ return f(); };
6541 const auto higher2nd = [unary](nullary_t f1){
6542 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6544 return higher1st(nullary) + higher2nd(nullary)(unary);
6549 namespace test_variadic_templates
6555 template <int N0, int... N1toN>
6556 struct sum<N0, N1toN...>
6558 static constexpr auto value = N0 + sum<N1toN...>::value;
6564 static constexpr auto value = 0;
6567 static_assert(sum<>::value == 0, "");
6568 static_assert(sum<1>::value == 1, "");
6569 static_assert(sum<23>::value == 23, "");
6570 static_assert(sum<1, 2>::value == 3, "");
6571 static_assert(sum<5, 5, 11>::value == 21, "");
6572 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6576 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6577 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6579 namespace test_template_alias_sfinae
6584 template<typename T>
6585 using member = typename T::member_type;
6587 template<typename T>
6590 template<typename T>
6591 void func(member<T>*) {}
6595 void test() { func<foo>(0); }
6599 } // namespace cxx11
6601 #endif // __cplusplus >= 201103L
6606 if ac_fn_cxx_try_compile "$LINENO"
6612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6615 eval ac_res=\$$cachevar
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6617 printf "%s\n" "$ac_res" >&6; }
6618 if eval test x\$$cachevar = xyes; then
6620 if test -n "$CXXCPP" ; then
6621 CXXCPP="$CXXCPP $switch"
6627 if test x$ac_success = xyes; then
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6639 if test x$ac_success = xno; then
6640 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6643 if test x$ac_success = xno; then
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6646 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
6650 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
6656 # Checking characteristics of compilers and other programs
6657 # ===========================================================================
6658 if test "$ac_cv_c_compiler_gnu" = "yes"; then
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
6660 printf %s "checking whether preprocessor accepts -MM or -M... " >&6; }
6661 if test ${sdcc_cv_MM+y}
6663 printf %s "(cached) " >&6
6665 echo "#include <stdio.h>" >_test_.c
6667 $CPP -v -MM _test_.c 1>&5 2>&5
6668 if test "$?" = "0"; then
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
6676 printf "%s\n" "$sdcc_cv_MM" >&6; }
6678 # This is the first time when CFLAGS are set/modified!!
6679 arg1=`echo -ggdb |
sed -e"s/^-*//" -e"s/-/_/"`
6680 ac_test_CFLAGS=${CFLAGS+set}
6681 sdcc_save_CFLAGS=$CFLAGS
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -ggdb" >&5
6683 printf %s "checking whether C accepts -ggdb... " >&6; }
6684 if eval test \${sdcc_cv_c_$arg1+y}
6686 printf %s "(cached) " >&6
6688 sdcc_save_c_werror_flag=$ac_c_werror_flag
6689 ac_c_werror_flag=yes
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6703 if ac_fn_c_try_compile "$LINENO"
6705 eval sdcc_cv_c_$arg1=yes
6707 eval sdcc_cv_c_$arg1=no
6709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6710 ac_c_werror_flag=$sdcc_save_c_werror_flag
6712 eval ac_res=\$sdcc_cv_c_$arg1
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6714 printf "%s\n" "$ac_res" >&6; }
6715 CFLAGS=$sdcc_save_CFLAGS
6717 if test "$sdcc_cv_c_ggdb" = "yes"; then
6718 CFLAGS="-ggdb ${CFLAGS}"
6719 CXXFLAGS="-ggdb ${CXXFLAGS}"
6722 arg1=`echo -pipe |
sed -e"s/^-*//" -e"s/-/_/"`
6723 ac_test_CFLAGS=${CFLAGS+set}
6724 sdcc_save_CFLAGS=$CFLAGS
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -pipe" >&5
6726 printf %s "checking whether C accepts -pipe... " >&6; }
6727 if eval test \${sdcc_cv_c_$arg1+y}
6729 printf %s "(cached) " >&6
6731 sdcc_save_c_werror_flag=$ac_c_werror_flag
6732 ac_c_werror_flag=yes
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6746 if ac_fn_c_try_compile "$LINENO"
6748 eval sdcc_cv_c_$arg1=yes
6750 eval sdcc_cv_c_$arg1=no
6752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6753 ac_c_werror_flag=$sdcc_save_c_werror_flag
6755 eval ac_res=\$sdcc_cv_c_$arg1
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6757 printf "%s\n" "$ac_res" >&6; }
6758 CFLAGS=$sdcc_save_CFLAGS
6760 if test "$sdcc_cv_c_pipe" = "yes"; then
6761 CFLAGS="-pipe ${CFLAGS}"
6762 # Don't use "-pipe" on x86 Solaris g++, since src/z80/ralloc2.cc dies with:
6763 # Assembler: ralloc2.cc
6764 # "<stdin>", line 117637 : Internal: Out of symbol table
6765 if test `uname
` != "SunOS" -o \( `uname
` = "SunOS" -a `uname
-m` != "i86pc" \); then
6766 CXXFLAGS="-pipe ${CXXFLAGS}"
6770 WALL_FLAG="-Wall -Wno-parentheses"
6771 C99_FLAG="--std=c99"
6772 MAKEDEP_CXX="$CXX $sdcc_cv_MM"
6773 MAKEDEP="$CC $sdcc_cv_MM"
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
6776 printf %s "checking whether we are using the SunPRO C compiler... " >&6; }
6777 if test ${sdcc_cv_c_compiler_sunpro+y}
6779 printf %s "(cached) " >&6
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6787 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
6795 if ac_fn_c_try_compile "$LINENO"
6797 sdcc_cv_c_compiler_sunpro=yes
6799 sdcc_cv_c_compiler_sunpro=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_c_compiler_sunpro" >&5
6805 printf "%s\n" "$sdcc_cv_c_compiler_sunpro" >&6; }
6806 if test "$sdcc_cv_c_compiler_sunpro" = "yes"; then
6808 CFLAGS="-xO2 ${C99_FLAG} ${CFLAGS}"
6809 CXXFLAGS="-xO2 ${CXXFLAGS}"
6811 MAKEDEP="$CC ${C99_FLAG} -xM1"
6812 MAKEDEP_CXX="$CXX -xM1"
6821 # Try to append a c99 flag
6822 # -------------------------------------------------------------------------
6824 if test "$ac_cv_prog_cc_c99" != "no"; then
6825 CFLAGS="$ac_cv_prog_cc_c99 ${CFLAGS}"
6828 # Checks for typedefs, structures, and compiler characteristics.
6829 # ===========================================================================
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6831 printf %s "checking return type of signal handlers... " >&6; }
6832 if test ${ac_cv_type_signal+y}
6834 printf %s "(cached) " >&6
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #include <sys/types.h>
6844 return *(signal (0, 0)) (0) == 1;
6849 if ac_fn_c_try_compile "$LINENO"
6851 ac_cv_type_signal=int
6853 ac_cv_type_signal=void
6855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6858 printf "%s\n" "$ac_cv_type_signal" >&6; }
6860 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
6864 # The cast to long int works around a bug in the HP C Compiler
6865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6866 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6867 # This bug is HP SR number 8606223364.
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6869 printf %s "checking size of char... " >&6; }
6870 if test ${ac_cv_sizeof_char+y}
6872 printf %s "(cached) " >&6
6874 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
6878 if test "$ac_cv_type_char" = yes; then
6879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6880 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
6881 as_fn_error 77 "cannot compute sizeof (char)
6882 See \`config.log
' for more details" "$LINENO" 5; }
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6890 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
6894 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
6897 # The cast to long int works around a bug in the HP C Compiler
6898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6900 # This bug is HP SR number 8606223364.
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6902 printf %s
"checking size of short... " >&6; }
6903 if test ${ac_cv_sizeof_short+y}
6905 printf %s
"(cached) " >&6
6907 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
6911 if test "$ac_cv_type_short" = yes; then
6912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6914 as_fn_error
77 "cannot compute sizeof (short)
6915 See \`config.log' for more details" "$LINENO" 5; }
6917 ac_cv_sizeof_short
=0
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6923 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
6927 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
6930 # The cast to long int works around a bug in the HP C Compiler
6931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6933 # This bug is HP SR number 8606223364.
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6935 printf %s
"checking size of int... " >&6; }
6936 if test ${ac_cv_sizeof_int+y}
6938 printf %s
"(cached) " >&6
6940 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
6944 if test "$ac_cv_type_int" = yes; then
6945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6947 as_fn_error
77 "cannot compute sizeof (int)
6948 See \`config.log' for more details" "$LINENO" 5; }
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6956 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
6960 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
6963 # The cast to long int works around a bug in the HP C Compiler
6964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6966 # This bug is HP SR number 8606223364.
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6968 printf %s
"checking size of long... " >&6; }
6969 if test ${ac_cv_sizeof_long+y}
6971 printf %s
"(cached) " >&6
6973 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
6977 if test "$ac_cv_type_long" = yes; then
6978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6979 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6980 as_fn_error
77 "cannot compute sizeof (long)
6981 See \`config.log' for more details" "$LINENO" 5; }
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6989 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
6993 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
6996 # The cast to long int works around a bug in the HP C Compiler
6997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6999 # This bug is HP SR number 8606223364.
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7001 printf %s
"checking size of long long... " >&6; }
7002 if test ${ac_cv_sizeof_long_long+y}
7004 printf %s
"(cached) " >&6
7006 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
7010 if test "$ac_cv_type_long_long" = yes; then
7011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7012 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7013 as_fn_error
77 "cannot compute sizeof (long long)
7014 See \`config.log' for more details" "$LINENO" 5; }
7016 ac_cv_sizeof_long_long
=0
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7022 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
7026 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7030 printf %s
"checking whether char is unsigned... " >&6; }
7031 if test ${ac_cv_c_char_unsigned+y}
7033 printf %s
"(cached) " >&6
7035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 $ac_includes_default
7041 static int test_array [1 - 2 * !(((char) -1) < 0)];
7043 return test_array [0];
7049 if ac_fn_c_try_compile
"$LINENO"
7051 ac_cv_c_char_unsigned
=no
7053 ac_cv_c_char_unsigned
=yes
7055 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7058 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7059 if test $ac_cv_c_char_unsigned = yes; then
7060 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7067 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev
/null
; then
7071 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev
/null
; then
7075 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev
/null
; then
7079 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev
/null
; then
7083 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev
/null
; then
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
7091 printf %s
"checking type name for byte... " >&6; }
7092 TYPE_CHAR
=`type_name 1`
7093 if test "$ac_cv_c_char_unsigned" = "yes"; then
7094 TYPE_BYTE
="signed $TYPE_CHAR"
7096 TYPE_BYTE
=$TYPE_CHAR
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
7099 printf "%s\n" "$TYPE_BYTE" >&6; }
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
7101 printf %s
"checking type name for word... " >&6; }
7102 TYPE_WORD
=`type_name 2`
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
7104 printf "%s\n" "$TYPE_WORD" >&6; }
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for dword" >&5
7106 printf %s
"checking type name for dword... " >&6; }
7107 TYPE_DWORD
=`type_name 4`
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_DWORD" >&5
7109 printf "%s\n" "$TYPE_DWORD" >&6; }
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for qword" >&5
7111 printf %s
"checking type name for qword... " >&6; }
7112 TYPE_QWORD
=`type_name 8`
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_QWORD" >&5
7114 printf "%s\n" "$TYPE_QWORD" >&6; }
7117 printf "%s\n" "#define TYPE_BYTE $TYPE_BYTE" >>confdefs.h
7120 printf "%s\n" "#define TYPE_WORD $TYPE_WORD" >>confdefs.h
7123 printf "%s\n" "#define TYPE_DWORD $TYPE_DWORD" >>confdefs.h
7126 printf "%s\n" "#define TYPE_QWORD $TYPE_QWORD" >>confdefs.h
7130 printf "%s\n" "#define TYPE_UBYTE unsigned $TYPE_CHAR" >>confdefs.h
7133 printf "%s\n" "#define TYPE_UWORD unsigned $TYPE_WORD" >>confdefs.h
7136 printf "%s\n" "#define TYPE_UDWORD unsigned $TYPE_DWORD" >>confdefs.h
7139 printf "%s\n" "#define TYPE_UQWORD unsigned $TYPE_QWORD" >>confdefs.h
7144 LDFLAGS
="$LDFLAGS -Wl,--stack,4194304"
7147 LDFLAGS
="$LDFLAGS -Wl,--stack,4194304"
7151 # Checking whether byte ordering is bigendian
7152 # ===========================================================================
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7154 printf %s
"checking whether byte ordering is bigendian... " >&6; }
7155 if test ${ac_cv_c_bigendian+y}
7157 printf %s
"(cached) " >&6
7159 ac_cv_c_bigendian
=unknown
7160 # See if we're dealing with a universal compiler.
7161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #ifndef __APPLE_CC__
7164 not a universal capable compiler
7169 if ac_fn_c_try_compile
"$LINENO"
7172 # Check for potential -arch flags. It is not universal unless
7173 # there are at least two -arch flags with different values.
7176 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7177 if test -n "$ac_prev"; then
7179 i?
86 | x86_64 | ppc | ppc64
)
7180 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7183 ac_cv_c_bigendian
=universal
7189 elif test "x$ac_word" = "x-arch"; then
7194 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7195 if test $ac_cv_c_bigendian = unknown
; then
7196 # See if sys/param.h defines the BYTE_ORDER macro.
7197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <sys/types.h>
7200 #include <sys/param.h>
7205 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7206 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7215 if ac_fn_c_try_compile
"$LINENO"
7217 # It does; now see whether it defined to BIG_ENDIAN or not.
7218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 #include <sys/types.h>
7221 #include <sys/param.h>
7226 #if BYTE_ORDER != BIG_ENDIAN
7234 if ac_fn_c_try_compile
"$LINENO"
7236 ac_cv_c_bigendian
=yes
7238 ac_cv_c_bigendian
=no
7240 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7242 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7244 if test $ac_cv_c_bigendian = unknown
; then
7245 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7253 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7261 if ac_fn_c_try_compile
"$LINENO"
7263 # It does; now see whether it defined to _BIG_ENDIAN or not.
7264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7279 if ac_fn_c_try_compile
"$LINENO"
7281 ac_cv_c_bigendian
=yes
7283 ac_cv_c_bigendian
=no
7285 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7287 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7289 if test $ac_cv_c_bigendian = unknown
; then
7290 # Compile a test program.
7291 if test "$cross_compiling" = yes
7293 # Try to guess by grepping values from an object file.
7294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 unsigned short int ascii_mm[] =
7297 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7298 unsigned short int ascii_ii[] =
7299 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7300 int use_ascii (int i) {
7301 return ascii_mm[i] + ascii_ii[i];
7303 unsigned short int ebcdic_ii[] =
7304 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7305 unsigned short int ebcdic_mm[] =
7306 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7307 int use_ebcdic (int i) {
7308 return ebcdic_mm[i] + ebcdic_ii[i];
7315 return use_ascii (foo) == use_ebcdic (foo);
7320 if ac_fn_c_try_compile
"$LINENO"
7322 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7323 ac_cv_c_bigendian
=yes
7325 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7326 if test "$ac_cv_c_bigendian" = unknown
; then
7327 ac_cv_c_bigendian
=no
7329 # finding both strings is unlikely to happen, but who knows?
7330 ac_cv_c_bigendian
=unknown
7334 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338 $ac_includes_default
7343 /* Are we little or big endian? From Harbison&Steele. */
7347 char c[sizeof (long int)];
7350 return u.c[sizeof (long int) - 1] == 1;
7356 if ac_fn_c_try_run
"$LINENO"
7358 ac_cv_c_bigendian
=no
7360 ac_cv_c_bigendian
=yes
7362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7369 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7370 case $ac_cv_c_bigendian in #(
7372 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7378 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7382 as_fn_error $?
"unknown endianness
7383 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7387 # Set standard installation paths
7388 # ===========================================================================
7390 # In the Makefiles we need paths with '/' as directory separator, even if
7391 # crosscompiling for Win32.
7392 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
7393 # The variables in the Makefiles are replaced by AC_SUBST()
7395 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
7397 # The macros are expanded for the header.
7398 # The variables in the header are replaced by AC_*DEFINE*()
7399 # sdccconf_h_dir_separator contains a backslash.
7401 if test "x${sdccconf_h_dir_separator}" = "x"; then
7402 sdccconf_h_dir_separator
="/"
7409 # *nix default: "RANLIB"
7412 if test "${LIB_TYPE}" = ""; then
7416 # include_dir_suffix:
7417 # *nix default: "sdcc/include"
7420 if test "${inclib_dir_suffix}" = ""; then
7421 inclib_dir_suffix
="sdcc"
7425 if test "${include_dir_suffix}" = ""; then
7426 include_dir_suffix
="${inclib_dir_suffix}/include"
7430 if test "${non_free_inclib_dir_suffix}" = ""; then
7431 non_free_inclib_dir_suffix
="sdcc/non-free"
7434 # non_free_include_dir_suffix:
7435 # *nix default: "sdcc/non-free/include"
7438 if test "${non_free_include_dir_suffix}" = ""; then
7439 non_free_include_dir_suffix
="${non_free_inclib_dir_suffix}/include"
7443 # *nix default: "sdcc/lib"
7445 if test "${lib_dir_suffix}" = ""; then
7446 lib_dir_suffix
="${inclib_dir_suffix}/lib"
7449 # non_free_lib_dir_suffix:
7450 # *nix default: "sdcc/non-free/lib"
7452 if test "${non_free_lib_dir_suffix}" = ""; then
7453 non_free_lib_dir_suffix
="${non_free_inclib_dir_suffix}/lib"
7457 # *nix default: "${datadir}/sdcc/doc"
7459 if test "${docdir}" = ""; then
7460 docdir
="\${datadir}"/sdcc
/doc
7469 printf "%s\n" "#define DIR_SEPARATOR_STRING \"${sdccconf_h_dir_separator}\"" >>confdefs.h
7472 printf "%s\n" "#define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'" >>confdefs.h
7476 # default: "NONE", ${ac_default_prefix}: "/usr/local"
7478 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7479 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7481 test "x$ac_expand" = xNONE
&& ac_expand
="$ac_default_prefix"
7482 ac_expand
=`eval echo $ac_expand`
7483 expanded_prefix
=`eval echo $ac_expand`
7486 ac_ndu
=$expanded_prefix
7489 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7492 case $sdccconf_h_dir_separator in
7494 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7495 s,^[\\/],\\\\\\\\,'` ;;
7497 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7500 printf "%s\n" "#define PREFIX \"${ac_ndu}\"" >>confdefs.h
7505 # default: "${prefix}"
7507 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7508 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7509 ac_expand
=$exec_prefix
7510 test "x$ac_expand" = xNONE
&& ac_expand
="$expanded_prefix"
7511 ac_expand
=`eval echo $ac_expand`
7512 expanded_exec_prefix
=`eval echo $ac_expand`
7515 ac_ndu
=$expanded_exec_prefix
7518 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7521 case $sdccconf_h_dir_separator in
7523 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7524 s,^[\\/],\\\\\\\\,'` ;;
7526 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7529 printf "%s\n" "#define EXEC_PREFIX \"${ac_ndu}\"" >>confdefs.h
7534 # default: "${exec_prefix}/bin"
7536 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7537 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7539 test "x$ac_expand" = xNONE
&& ac_expand
="$"NONE
""
7540 ac_expand
=`eval echo $ac_expand`
7541 expanded_bindir
=`eval echo $ac_expand`
7544 ac_ndu
=$expanded_bindir
7547 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7550 case $sdccconf_h_dir_separator in
7552 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7553 s,^[\\/],\\\\\\\\,'` ;;
7555 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7558 printf "%s\n" "#define BINDIR \"${ac_ndu}\"" >>confdefs.h
7563 # default: "${prefix}/share"
7565 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7566 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7568 test "x$ac_expand" = xNONE
&& ac_expand
="$"NONE
""
7569 ac_expand
=`eval echo $ac_expand`
7570 expanded_datadir
=`eval echo $ac_expand`
7573 ac_ndu
=$expanded_datadir
7576 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7579 case $sdccconf_h_dir_separator in
7581 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7582 s,^[\\/],\\\\\\\\,'` ;;
7584 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7587 printf "%s\n" "#define DATADIR \"${ac_ndu}\"" >>confdefs.h
7591 # include/lib suffix
7592 norm_inc_dir_suffix
=${include_dir_suffix}
7593 case ":$norm_inc_dir_suffix:" in
7594 ::) norm_inc_dir_suffix
='.' ;;
7595 :*[\\/]:) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7598 case $sdccconf_h_dir_separator in
7600 *\\*) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7601 s,^[\\/],\\\\\\\\,'` ;;
7603 *) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7606 printf "%s\n" "#define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_inc_dir_suffix}\"" >>confdefs.h
7608 norm_non_free_inc_dir_suffix
=${non_free_include_dir_suffix}
7609 case ":$norm_non_free_inc_dir_suffix:" in
7610 ::) norm_non_free_inc_dir_suffix
='.' ;;
7611 :*[\\/]:) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7614 case $sdccconf_h_dir_separator in
7616 *\\*) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7617 s,^[\\/],\\\\\\\\,'` ;;
7619 *) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7622 printf "%s\n" "#define NON_FREE_INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_inc_dir_suffix}\"" >>confdefs.h
7625 norm_lib_dir_suffix
=${lib_dir_suffix}
7626 case ":$norm_lib_dir_suffix:" in
7627 ::) norm_lib_dir_suffix
='.' ;;
7628 :*[\\/]:) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7631 case $sdccconf_h_dir_separator in
7633 *\\*) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7634 s,^[\\/],\\\\\\\\,'` ;;
7636 *) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7639 printf "%s\n" "#define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_lib_dir_suffix}\"" >>confdefs.h
7641 norm_non_free_lib_dir_suffix
=${non_free_lib_dir_suffix}
7642 case ":$norm_non_free_lib_dir_suffix:" in
7643 ::) norm_non_free_lib_dir_suffix
='.' ;;
7644 :*[\\/]:) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7647 case $sdccconf_h_dir_separator in
7649 *\\*) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7650 s,^[\\/],\\\\\\\\,'` ;;
7652 *) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7655 printf "%s\n" "#define NON_FREE_LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_lib_dir_suffix}\"" >>confdefs.h
7659 for _lcl_i
in expanded_bindir
:expanded_datadir
:bin2data_dir
; do
7660 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
7661 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7662 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
7663 _lcl_receval
="$_lcl_from"
7664 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7665 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7667 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7668 _lcl_receval_old="$_lcl_receval"
7669 eval _lcl_receval="\"$_lcl_receval\""
7671 echo "$_lcl_receval")`
7672 _lcl_receval
="$_lcl_to"
7673 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7674 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7676 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7677 _lcl_receval_old="$_lcl_receval"
7678 eval _lcl_receval="\"$_lcl_receval\""
7680 echo "$_lcl_receval")`
7681 _lcl_notation
="$_lcl_from$_lcl_to"
7682 case ":$_lcl_from:" in
7683 ::) _lcl_from
='.' ;;
7684 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7689 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7690 s,^[\\/],\\\\\\\\,'` ;;
7692 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7694 case ":$_lcl_to:" in
7696 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7701 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7702 s,^[\\/],\\\\\\\\,'` ;;
7704 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7706 _lcl_common_prefix
=''
7707 _lcl_second_prefix_match
=''
7708 while test "$_lcl_second_prefix_match" != 0; do
7709 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7710 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7711 if test "$_lcl_second_prefix_match" != 0; then
7712 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7713 _lcl_common_prefix
="$_lcl_first_prefix"
7715 _lcl_second_prefix_match
=0
7719 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7722 while test "$_lcl_tmp" != ''; do
7723 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7724 if test "$_lcl_first_suffix" != ''; then
7725 _lcl_first_suffix
="$_lcl_tmp"
7726 _lcl_first_rel
="../$_lcl_first_rel"
7729 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7730 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
7731 case ":$_lcl_result_tmp:" in
7732 ::) _lcl_result_tmp
='.' ;;
7733 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7736 case "$_lcl_notation" in
7738 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7739 s,^[\\/],\\\\\\\\,'` ;;
7741 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7743 eval $_lcl_result_var='$_lcl_result_tmp'
7745 case ":$bin2data_dir:" in
7746 ::) bin2data_dir
='.' ;;
7747 :*[\\/]:) bin2data_dir
=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
7750 case $sdccconf_h_dir_separator in
7752 *\\*) bin2data_dir
=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7753 s,^[\\/],\\\\\\\\,'` ;;
7755 *) bin2data_dir
=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7758 printf "%s\n" "#define BIN2DATA_DIR DIR_SEPARATOR_STRING \"${bin2data_dir}\"" >>confdefs.h
7761 for _lcl_i
in expanded_prefix
:expanded_bindir
:prefix2bin_dir
; do
7762 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
7763 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7764 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
7765 _lcl_receval
="$_lcl_from"
7766 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7767 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7769 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7770 _lcl_receval_old="$_lcl_receval"
7771 eval _lcl_receval="\"$_lcl_receval\""
7773 echo "$_lcl_receval")`
7774 _lcl_receval
="$_lcl_to"
7775 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7776 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7778 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7779 _lcl_receval_old="$_lcl_receval"
7780 eval _lcl_receval="\"$_lcl_receval\""
7782 echo "$_lcl_receval")`
7783 _lcl_notation
="$_lcl_from$_lcl_to"
7784 case ":$_lcl_from:" in
7785 ::) _lcl_from
='.' ;;
7786 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7791 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7792 s,^[\\/],\\\\\\\\,'` ;;
7794 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7796 case ":$_lcl_to:" in
7798 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7803 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7804 s,^[\\/],\\\\\\\\,'` ;;
7806 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7808 _lcl_common_prefix
=''
7809 _lcl_second_prefix_match
=''
7810 while test "$_lcl_second_prefix_match" != 0; do
7811 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7812 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7813 if test "$_lcl_second_prefix_match" != 0; then
7814 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7815 _lcl_common_prefix
="$_lcl_first_prefix"
7817 _lcl_second_prefix_match
=0
7821 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7824 while test "$_lcl_tmp" != ''; do
7825 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7826 if test "$_lcl_first_suffix" != ''; then
7827 _lcl_first_suffix
="$_lcl_tmp"
7828 _lcl_first_rel
="../$_lcl_first_rel"
7831 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7832 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
7833 case ":$_lcl_result_tmp:" in
7834 ::) _lcl_result_tmp
='.' ;;
7835 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7838 case "$_lcl_notation" in
7840 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7841 s,^[\\/],\\\\\\\\,'` ;;
7843 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7845 eval $_lcl_result_var='$_lcl_result_tmp'
7847 case ":$prefix2bin_dir:" in
7848 ::) prefix2bin_dir
='.' ;;
7849 :*[\\/]:) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
7852 case $sdccconf_h_dir_separator in
7854 *\\*) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7855 s,^[\\/],\\\\\\\\,'` ;;
7857 *) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7860 printf "%s\n" "#define PREFIX2BIN_DIR DIR_SEPARATOR_STRING \"${prefix2bin_dir}\"" >>confdefs.h
7863 for _lcl_i
in expanded_prefix
:expanded_datadir
:prefix2data_dir
; do
7864 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
7865 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7866 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
7867 _lcl_receval
="$_lcl_from"
7868 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7869 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7871 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7872 _lcl_receval_old="$_lcl_receval"
7873 eval _lcl_receval="\"$_lcl_receval\""
7875 echo "$_lcl_receval")`
7876 _lcl_receval
="$_lcl_to"
7877 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7878 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7880 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7881 _lcl_receval_old="$_lcl_receval"
7882 eval _lcl_receval="\"$_lcl_receval\""
7884 echo "$_lcl_receval")`
7885 _lcl_notation
="$_lcl_from$_lcl_to"
7886 case ":$_lcl_from:" in
7887 ::) _lcl_from
='.' ;;
7888 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7893 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7894 s,^[\\/],\\\\\\\\,'` ;;
7896 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7898 case ":$_lcl_to:" in
7900 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7905 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7906 s,^[\\/],\\\\\\\\,'` ;;
7908 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7910 _lcl_common_prefix
=''
7911 _lcl_second_prefix_match
=''
7912 while test "$_lcl_second_prefix_match" != 0; do
7913 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7914 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7915 if test "$_lcl_second_prefix_match" != 0; then
7916 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7917 _lcl_common_prefix
="$_lcl_first_prefix"
7919 _lcl_second_prefix_match
=0
7923 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7926 while test "$_lcl_tmp" != ''; do
7927 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7928 if test "$_lcl_first_suffix" != ''; then
7929 _lcl_first_suffix
="$_lcl_tmp"
7930 _lcl_first_rel
="../$_lcl_first_rel"
7933 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7934 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
7935 case ":$_lcl_result_tmp:" in
7936 ::) _lcl_result_tmp
='.' ;;
7937 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7940 case "$_lcl_notation" in
7942 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7943 s,^[\\/],\\\\\\\\,'` ;;
7945 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7947 eval $_lcl_result_var='$_lcl_result_tmp'
7949 case ":$prefix2data_dir:" in
7950 ::) prefix2data_dir
='.' ;;
7951 :*[\\/]:) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
7954 case $sdccconf_h_dir_separator in
7956 *\\*) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7957 s,^[\\/],\\\\\\\\,'` ;;
7959 *) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7961 if test "${prefix2data_dir}" = "."; then
7962 # small optimization for Mingw32; otherwise Borut will complain ;-)
7964 printf "%s\n" "#define PREFIX2DATA_DIR \"\"" >>confdefs.h
7968 printf "%s\n" "#define PREFIX2DATA_DIR DIR_SEPARATOR_STRING \"${prefix2data_dir}\"" >>confdefs.h
7974 printf "%s\n" "#define STD_LIB \"libsdcc\"" >>confdefs.h
7977 printf "%s\n" "#define STD_INT_LIB \"libint\"" >>confdefs.h
7980 printf "%s\n" "#define STD_LONG_LIB \"liblong\"" >>confdefs.h
7983 printf "%s\n" "#define STD_FP_LIB \"libfloat\"" >>confdefs.h
7986 printf "%s\n" "#define STD_DS390_LIB \"libds390\"" >>confdefs.h
7989 printf "%s\n" "#define STD_DS400_LIB \"libds400\"" >>confdefs.h
7992 # SDCC runtime environment variables
7993 sdcc_dir_name
="SDCC_HOME"
7995 printf "%s\n" "#define SDCC_DIR_NAME \"${sdcc_dir_name}\"" >>confdefs.h
7998 sdcc_include_name
="SDCC_INCLUDE"
8000 printf "%s\n" "#define SDCC_INCLUDE_NAME \"${sdcc_include_name}\"" >>confdefs.h
8003 sdcc_lib_name
="SDCC_LIB"
8005 printf "%s\n" "#define SDCC_LIB_NAME \"${sdcc_lib_name}\"" >>confdefs.h
8008 # add include guard and custom stuff to sdccconf.h
8012 # Port selection helper
8013 # ===========================================================================
8014 # macro AC_DO_ENABLER()
8015 # $1 used to access enable_$1, e.g. enable_doc
8016 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
8020 # macro AC_DO_DISABLER()
8021 # $1 used to access disable_$1, e.g. ucsim
8022 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
8026 # macro AC_DO_PORT($1, $2, $3, $4)
8027 # $1 used to access enable_$2_port, e.g. sm83
8028 # $2 port name in ports.all and ports.build, e.g. z80
8029 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8033 # macro AC_DO_PORT_ENABLER($1, $2, $3, $4)
8034 # $1 used to access enable_$2_port, e.g. sm83
8035 # $2 port name in ports.all and ports.build, e.g. z80
8036 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8044 SVN_REVISION
="unknown"
8045 if test -d "${srcdir}/.git"; then
8046 GIT_REVISION
=$
( git log
--pretty=format
:'%h' -n 1u )
8047 echo "Found Git repo... $GIT_REVISION"
8048 SVN_REVISION
=$
( git log
-1 |
tail -n1 | cut
-f2 -d @ | cut
-f1 -d" " )
8053 # Now handle the port selection
8054 # ===========================================================================
8055 rm -f ports.all ports.build
8059 # Check whether --enable-mcs51-port was given.
8060 if test ${enable_mcs51_port+y}
8062 enableval
=$enable_mcs51_port;
8066 if test "$enable_mcs51_port" = "no"; then
8069 enable_mcs51_port
="yes"
8074 printf "%s\n" "#define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51" >>confdefs.h
8078 echo mcs51
>>ports.all
8079 if test $OPT_DISABLE_MCS51 = 0; then
8080 echo mcs51
>>ports.build
8084 # Check whether --enable-z80-port was given.
8085 if test ${enable_z80_port+y}
8087 enableval
=$enable_z80_port;
8091 if test "$enable_z80_port" = "no"; then
8094 enable_z80_port
="yes"
8099 printf "%s\n" "#define OPT_DISABLE_Z80 $OPT_DISABLE_Z80" >>confdefs.h
8103 echo z80
>>ports.all
8104 if test $OPT_DISABLE_Z80 = 0; then
8105 echo z80
>>ports.build
8109 # Check whether --enable-z180-port was given.
8110 if test ${enable_z180_port+y}
8112 enableval
=$enable_z180_port;
8116 if test "$enable_z180_port" = "no"; then
8119 enable_z180_port
="yes"
8124 printf "%s\n" "#define OPT_DISABLE_Z180 $OPT_DISABLE_Z180" >>confdefs.h
8128 echo z80
>>ports.all
8129 if test $OPT_DISABLE_Z180 = 0; then
8130 echo z80
>>ports.build
8134 # Check whether --enable-r2k-port was given.
8135 if test ${enable_r2k_port+y}
8137 enableval
=$enable_r2k_port;
8141 if test "$enable_r2k_port" = "no"; then
8144 enable_r2k_port
="yes"
8149 printf "%s\n" "#define OPT_DISABLE_R2K $OPT_DISABLE_R2K" >>confdefs.h
8153 echo z80
>>ports.all
8154 if test $OPT_DISABLE_R2K = 0; then
8155 echo z80
>>ports.build
8159 # Check whether --enable-r2ka-port was given.
8160 if test ${enable_r2ka_port+y}
8162 enableval
=$enable_r2ka_port;
8166 if test "$enable_r2ka_port" = "no"; then
8169 enable_r2ka_port
="yes"
8174 printf "%s\n" "#define OPT_DISABLE_R2KA $OPT_DISABLE_R2KA" >>confdefs.h
8178 echo z80
>>ports.all
8179 if test $OPT_DISABLE_R2KA = 0; then
8180 echo z80
>>ports.build
8184 # Check whether --enable-r3ka-port was given.
8185 if test ${enable_r3ka_port+y}
8187 enableval
=$enable_r3ka_port;
8191 if test "$enable_r3ka_port" = "no"; then
8194 enable_r3ka_port
="yes"
8199 printf "%s\n" "#define OPT_DISABLE_R3KA $OPT_DISABLE_R3KA" >>confdefs.h
8203 echo z80
>>ports.all
8204 if test $OPT_DISABLE_R3KA = 0; then
8205 echo z80
>>ports.build
8209 # Check whether --enable-sm83-port was given.
8210 if test ${enable_sm83_port+y}
8212 enableval
=$enable_sm83_port;
8216 if test "$enable_sm83_port" = "no"; then
8219 enable_sm83_port
="yes"
8224 printf "%s\n" "#define OPT_DISABLE_SM83 $OPT_DISABLE_SM83" >>confdefs.h
8228 echo z80
>>ports.all
8229 if test $OPT_DISABLE_SM83 = 0; then
8230 echo z80
>>ports.build
8234 # Check whether --enable-tlcs90-port was given.
8235 if test ${enable_tlcs90_port+y}
8237 enableval
=$enable_tlcs90_port;
8241 if test "$enable_tlcs90_port" = "no"; then
8242 OPT_DISABLE_TLCS90
=1
8244 enable_tlcs90_port
="yes"
8245 OPT_DISABLE_TLCS90
=0
8249 printf "%s\n" "#define OPT_DISABLE_TLCS90 $OPT_DISABLE_TLCS90" >>confdefs.h
8253 echo z80
>>ports.all
8254 if test $OPT_DISABLE_TLCS90 = 0; then
8255 echo z80
>>ports.build
8259 # Check whether --enable-ez80_z80-port was given.
8260 if test ${enable_ez80_z80_port+y}
8262 enableval
=$enable_ez80_z80_port;
8266 if test "$enable_ez80_z80_port" = "no"; then
8267 OPT_DISABLE_EZ80_Z80
=1
8269 enable_ez80_z80_port
="yes"
8270 OPT_DISABLE_EZ80_Z80
=0
8274 printf "%s\n" "#define OPT_DISABLE_EZ80_Z80 $OPT_DISABLE_EZ80_Z80" >>confdefs.h
8278 echo z80
>>ports.all
8279 if test $OPT_DISABLE_EZ80_Z80 = 0; then
8280 echo z80
>>ports.build
8284 # Check whether --enable-z80n-port was given.
8285 if test ${enable_z80n_port+y}
8287 enableval
=$enable_z80n_port;
8291 if test "$enable_z80n_port" = "no"; then
8294 enable_z80n_port
="yes"
8299 printf "%s\n" "#define OPT_DISABLE_Z80N $OPT_DISABLE_Z80N" >>confdefs.h
8303 echo z80
>>ports.all
8304 if test $OPT_DISABLE_Z80N = 0; then
8305 echo z80
>>ports.build
8309 # Check whether --enable-ds390-port was given.
8310 if test ${enable_ds390_port+y}
8312 enableval
=$enable_ds390_port;
8316 if test "$enable_ds390_port" = "no"; then
8319 enable_ds390_port
="yes"
8324 printf "%s\n" "#define OPT_DISABLE_DS390 $OPT_DISABLE_DS390" >>confdefs.h
8328 echo ds390
>>ports.all
8329 if test $OPT_DISABLE_DS390 = 0; then
8330 echo ds390
>>ports.build
8334 printf "%s\n" "#define OPT_DISABLE_TININative $OPT_DISABLE_DS390" >>confdefs.h
8337 # Check whether --enable-ds400-port was given.
8338 if test ${enable_ds400_port+y}
8340 enableval
=$enable_ds400_port;
8344 if test "$enable_ds400_port" = "no"; then
8347 enable_ds400_port
="yes"
8352 printf "%s\n" "#define OPT_DISABLE_DS400 $OPT_DISABLE_DS400" >>confdefs.h
8356 echo ds390
>>ports.all
8357 if test $OPT_DISABLE_DS400 = 0; then
8358 echo ds390
>>ports.build
8362 # Check whether --enable-pic14-port was given.
8363 if test ${enable_pic14_port+y}
8365 enableval
=$enable_pic14_port;
8369 if test "$enable_pic14_port" = "no"; then
8372 enable_pic14_port
="yes"
8377 printf "%s\n" "#define OPT_DISABLE_PIC14 $OPT_DISABLE_PIC14" >>confdefs.h
8381 echo pic14
>>ports.all
8382 if test $OPT_DISABLE_PIC14 = 0; then
8383 echo pic14
>>ports.build
8387 # Check whether --enable-pic16-port was given.
8388 if test ${enable_pic16_port+y}
8390 enableval
=$enable_pic16_port;
8394 if test "$enable_pic16_port" = "no"; then
8397 enable_pic16_port
="yes"
8402 printf "%s\n" "#define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16" >>confdefs.h
8406 echo pic16
>>ports.all
8407 if test $OPT_DISABLE_PIC16 = 0; then
8408 echo pic16
>>ports.build
8412 # Check whether --enable-hc08-port was given.
8413 if test ${enable_hc08_port+y}
8415 enableval
=$enable_hc08_port;
8419 if test "$enable_hc08_port" = "no"; then
8422 enable_hc08_port
="yes"
8427 printf "%s\n" "#define OPT_DISABLE_HC08 $OPT_DISABLE_HC08" >>confdefs.h
8431 echo hc08
>>ports.all
8432 if test $OPT_DISABLE_HC08 = 0; then
8433 echo hc08
>>ports.build
8437 # Check whether --enable-s08-port was given.
8438 if test ${enable_s08_port+y}
8440 enableval
=$enable_s08_port;
8444 if test "$enable_s08_port" = "no"; then
8447 enable_s08_port
="yes"
8452 printf "%s\n" "#define OPT_DISABLE_S08 $OPT_DISABLE_S08" >>confdefs.h
8456 echo hc08
>>ports.all
8457 if test $OPT_DISABLE_S08 = 0; then
8458 echo hc08
>>ports.build
8462 # Check whether --enable-stm8-port was given.
8463 if test ${enable_stm8_port+y}
8465 enableval
=$enable_stm8_port;
8469 if test "$enable_stm8_port" = "no"; then
8472 enable_stm8_port
="yes"
8477 printf "%s\n" "#define OPT_DISABLE_STM8 $OPT_DISABLE_STM8" >>confdefs.h
8481 echo stm8
>>ports.all
8482 if test $OPT_DISABLE_STM8 = 0; then
8483 echo stm8
>>ports.build
8487 # Check whether --enable-pdk13-port was given.
8488 if test ${enable_pdk13_port+y}
8490 enableval
=$enable_pdk13_port;
8494 if test "$enable_pdk13_port" = "no"; then
8497 enable_pdk13_port
="yes"
8502 printf "%s\n" "#define OPT_DISABLE_PDK13 $OPT_DISABLE_PDK13" >>confdefs.h
8506 echo pdk
>>ports.all
8507 if test $OPT_DISABLE_PDK13 = 0; then
8508 echo pdk
>>ports.build
8512 # Check whether --enable-pdk14-port was given.
8513 if test ${enable_pdk14_port+y}
8515 enableval
=$enable_pdk14_port;
8519 if test "$enable_pdk14_port" = "no"; then
8522 enable_pdk14_port
="yes"
8527 printf "%s\n" "#define OPT_DISABLE_PDK14 $OPT_DISABLE_PDK14" >>confdefs.h
8531 echo pdk
>>ports.all
8532 if test $OPT_DISABLE_PDK14 = 0; then
8533 echo pdk
>>ports.build
8537 # Check whether --enable-pdk15-port was given.
8538 if test ${enable_pdk15_port+y}
8540 enableval
=$enable_pdk15_port;
8544 if test "$enable_pdk15_port" = "no"; then
8547 enable_pdk15_port
="yes"
8552 printf "%s\n" "#define OPT_DISABLE_PDK15 $OPT_DISABLE_PDK15" >>confdefs.h
8556 echo pdk
>>ports.all
8557 if test $OPT_DISABLE_PDK15 = 0; then
8558 echo pdk
>>ports.build
8562 # Check whether --enable-pdk16-port was given.
8563 if test ${enable_pdk16_port+y}
8565 enableval
=$enable_pdk16_port;
8569 if test "$enable_pdk16_port" = "yes"; then
8572 enable_pdk16_port
="no"
8577 printf "%s\n" "#define OPT_DISABLE_PDK16 $OPT_DISABLE_PDK16" >>confdefs.h
8581 echo pdk
>>ports.all
8582 if test $OPT_DISABLE_PDK16 = 0; then
8583 echo pdk
>>ports.build
8587 # Check whether --enable-mos6502-port was given.
8588 if test ${enable_mos6502_port+y}
8590 enableval
=$enable_mos6502_port;
8594 if test "$enable_mos6502_port" = "no"; then
8595 OPT_DISABLE_MOS6502
=1
8597 enable_mos6502_port
="yes"
8598 OPT_DISABLE_MOS6502
=0
8602 printf "%s\n" "#define OPT_DISABLE_MOS6502 $OPT_DISABLE_MOS6502" >>confdefs.h
8606 echo mos6502
>>ports.all
8607 if test $OPT_DISABLE_MOS6502 = 0; then
8608 echo mos6502
>>ports.build
8612 # Check whether --enable-mos65c02-port was given.
8613 if test ${enable_mos65c02_port+y}
8615 enableval
=$enable_mos65c02_port;
8619 if test "$enable_mos65c02_port" = "yes"; then
8620 OPT_DISABLE_MOS65C02
=0
8622 enable_mos65c02_port
="no"
8623 OPT_DISABLE_MOS65C02
=1
8627 printf "%s\n" "#define OPT_DISABLE_MOS65C02 $OPT_DISABLE_MOS65C02" >>confdefs.h
8631 echo mos6502
>>ports.all
8632 if test $OPT_DISABLE_MOS65C02 = 0; then
8633 echo mos6502
>>ports.build
8637 # Unsupported targets
8638 ####AC_DO_PORT_ENABLER(avr, avr, AVR, [Includes the AVR port (disabled by default)])
8641 printf "%s\n" "#define OPT_DISABLE_AVR ${OPT_DISABLE_AVR}" >>confdefs.h
8646 # Check whether --enable-ucsim was given.
8647 if test ${enable_ucsim+y}
8649 enableval
=$enable_ucsim;
8653 arg1
=`echo ucsim | sed s/-/_/`
8655 if test "`eval echo \\$enable_$arg1`" = "no"; then
8662 printf "%s\n" "#define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM" >>confdefs.h
8667 # Check whether --enable-device-lib was given.
8668 if test ${enable_device_lib+y}
8670 enableval
=$enable_device_lib;
8674 arg1
=`echo device-lib | sed s/-/_/`
8676 if test "`eval echo \\$enable_$arg1`" = "no"; then
8677 OPT_DISABLE_DEVICE_LIB
=1
8679 OPT_DISABLE_DEVICE_LIB
=0
8683 printf "%s\n" "#define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB" >>confdefs.h
8688 # Check whether --enable-packihx was given.
8689 if test ${enable_packihx+y}
8691 enableval
=$enable_packihx;
8695 arg1
=`echo packihx | sed s/-/_/`
8697 if test "`eval echo \\$enable_$arg1`" = "no"; then
8698 OPT_DISABLE_PACKIHX
=1
8700 OPT_DISABLE_PACKIHX
=0
8704 printf "%s\n" "#define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX" >>confdefs.h
8709 # Check whether --enable-sdcpp was given.
8710 if test ${enable_sdcpp+y}
8712 enableval
=$enable_sdcpp;
8716 arg1
=`echo sdcpp | sed s/-/_/`
8718 if test "`eval echo \\$enable_$arg1`" = "no"; then
8725 printf "%s\n" "#define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP" >>confdefs.h
8730 # Check whether --enable-sdcdb was given.
8731 if test ${enable_sdcdb+y}
8733 enableval
=$enable_sdcdb;
8737 arg1
=`echo sdcdb | sed s/-/_/`
8739 if test "`eval echo \\$enable_$arg1`" = "no"; then
8746 printf "%s\n" "#define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB" >>confdefs.h
8751 # Check whether --enable-sdbinutils was given.
8752 if test ${enable_sdbinutils+y}
8754 enableval
=$enable_sdbinutils;
8758 arg1
=`echo sdbinutils | sed s/-/_/`
8760 if test "`eval echo \\$enable_$arg1`" = "no"; then
8761 OPT_DISABLE_SDBINUTILS
=1
8763 OPT_DISABLE_SDBINUTILS
=0
8767 printf "%s\n" "#define OPT_DISABLE_SDBINUTILS $OPT_DISABLE_SDBINUTILS" >>confdefs.h
8772 # Check whether --enable-non-free was given.
8773 if test ${enable_non_free+y}
8775 enableval
=$enable_non_free;
8779 arg1
=`echo non-free | sed s/-/_/`
8781 if test "`eval echo \\$enable_$arg1`" = "no"; then
8782 OPT_DISABLE_NON_FREE
=1
8784 OPT_DISABLE_NON_FREE
=0
8788 printf "%s\n" "#define OPT_DISABLE_NON_FREE $OPT_DISABLE_NON_FREE" >>confdefs.h
8794 # Check whether --enable-doc was given.
8795 if test ${enable_doc+y}
8797 enableval
=$enable_doc;
8801 if test "$enable_doc" = "yes"; then
8808 printf "%s\n" "#define OPT_ENABLE_DOC $OPT_ENABLE_DOC" >>confdefs.h
8812 # Extract the first word of "lyx", so it can be a program name with args.
8813 set dummy lyx
; ac_word
=$2
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815 printf %s
"checking for $ac_word... " >&6; }
8816 if test ${ac_cv_prog_LYX+y}
8818 printf %s
"(cached) " >&6
8820 if test -n "$LYX"; then
8821 ac_cv_prog_LYX
="$LYX" # Let the user override the test.
8823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8827 case $as_dir in #(((
8830 *) as_dir
=$as_dir/ ;;
8832 for ac_exec_ext
in '' $ac_executable_extensions; do
8833 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_LYX
="lyx"
8835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8842 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX
=":"
8846 if test -n "$LYX"; then
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5
8848 printf "%s\n" "$LYX" >&6; }
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 printf "%s\n" "no" >&6; }
8855 # Extract the first word of "latex2html", so it can be a program name with args.
8856 set dummy latex2html
; ac_word
=$2
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 printf %s
"checking for $ac_word... " >&6; }
8859 if test ${ac_cv_prog_LATEX2HTML+y}
8861 printf %s
"(cached) " >&6
8863 if test -n "$LATEX2HTML"; then
8864 ac_cv_prog_LATEX2HTML
="$LATEX2HTML" # Let the user override the test.
8866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8870 case $as_dir in #(((
8873 *) as_dir
=$as_dir/ ;;
8875 for ac_exec_ext
in '' $ac_executable_extensions; do
8876 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_LATEX2HTML
="latex2html"
8878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8885 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML
=":"
8888 LATEX2HTML
=$ac_cv_prog_LATEX2HTML
8889 if test -n "$LATEX2HTML"; then
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
8891 printf "%s\n" "$LATEX2HTML" >&6; }
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 printf "%s\n" "no" >&6; }
8898 # Extract the first word of "latex", so it can be a program name with args.
8899 set dummy latex
; ac_word
=$2
8900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 printf %s
"checking for $ac_word... " >&6; }
8902 if test ${ac_cv_prog_LATEX+y}
8904 printf %s
"(cached) " >&6
8906 if test -n "$LATEX"; then
8907 ac_cv_prog_LATEX
="$LATEX" # Let the user override the test.
8909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8913 case $as_dir in #(((
8916 *) as_dir
=$as_dir/ ;;
8918 for ac_exec_ext
in '' $ac_executable_extensions; do
8919 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8920 ac_cv_prog_LATEX
="latex"
8921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8928 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX
=":"
8931 LATEX
=$ac_cv_prog_LATEX
8932 if test -n "$LATEX"; then
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
8934 printf "%s\n" "$LATEX" >&6; }
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 printf "%s\n" "no" >&6; }
8941 # Extract the first word of "dvipdfm", so it can be a program name with args.
8942 set dummy dvipdfm
; ac_word
=$2
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 printf %s
"checking for $ac_word... " >&6; }
8945 if test ${ac_cv_prog_DVIPDFM+y}
8947 printf %s
"(cached) " >&6
8949 if test -n "$DVIPDFM"; then
8950 ac_cv_prog_DVIPDFM
="$DVIPDFM" # Let the user override the test.
8952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8956 case $as_dir in #(((
8959 *) as_dir
=$as_dir/ ;;
8961 for ac_exec_ext
in '' $ac_executable_extensions; do
8962 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8963 ac_cv_prog_DVIPDFM
="dvipdfm"
8964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8971 test -z "$ac_cv_prog_DVIPDFM" && ac_cv_prog_DVIPDFM
=":"
8974 DVIPDFM
=$ac_cv_prog_DVIPDFM
8975 if test -n "$DVIPDFM"; then
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPDFM" >&5
8977 printf "%s\n" "$DVIPDFM" >&6; }
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 printf "%s\n" "no" >&6; }
8984 # Extract the first word of "pdflatex", so it can be a program name with args.
8985 set dummy pdflatex
; ac_word
=$2
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 printf %s
"checking for $ac_word... " >&6; }
8988 if test ${ac_cv_prog_PDFLATEX+y}
8990 printf %s
"(cached) " >&6
8992 if test -n "$PDFLATEX"; then
8993 ac_cv_prog_PDFLATEX
="$PDFLATEX" # Let the user override the test.
8995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8999 case $as_dir in #(((
9002 *) as_dir
=$as_dir/ ;;
9004 for ac_exec_ext
in '' $ac_executable_extensions; do
9005 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9006 ac_cv_prog_PDFLATEX
="pdflatex"
9007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9014 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX
=":"
9017 PDFLATEX
=$ac_cv_prog_PDFLATEX
9018 if test -n "$PDFLATEX"; then
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
9020 printf "%s\n" "$PDFLATEX" >&6; }
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 printf "%s\n" "no" >&6; }
9027 # Extract the first word of "makeindex", so it can be a program name with args.
9028 set dummy makeindex
; ac_word
=$2
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 printf %s
"checking for $ac_word... " >&6; }
9031 if test ${ac_cv_prog_MAKEINDEX+y}
9033 printf %s
"(cached) " >&6
9035 if test -n "$MAKEINDEX"; then
9036 ac_cv_prog_MAKEINDEX
="$MAKEINDEX" # Let the user override the test.
9038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9042 case $as_dir in #(((
9045 *) as_dir
=$as_dir/ ;;
9047 for ac_exec_ext
in '' $ac_executable_extensions; do
9048 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9049 ac_cv_prog_MAKEINDEX
="makeindex"
9050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9057 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX
=":"
9060 MAKEINDEX
=$ac_cv_prog_MAKEINDEX
9061 if test -n "$MAKEINDEX"; then
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
9063 printf "%s\n" "$MAKEINDEX" >&6; }
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 printf "%s\n" "no" >&6; }
9071 if test $OPT_ENABLE_DOC = 1; then
9072 if test "$LYX" = ":"; then
9073 as_fn_error $?
"Cannot find required program lyx." "$LINENO" 5
9076 if test "$LATEX2HTML" = ":"; then
9077 as_fn_error $?
"Cannot find required program latex2html." "$LINENO" 5
9080 if test "$LATEX" = ":"; then
9081 as_fn_error $?
"Cannot find required program latex." "$LINENO" 5
9084 if test "$DVIPDFM" = ":"; then
9085 as_fn_error $?
"Cannot find required program dvipdfm." "$LINENO" 5
9088 if test "$MAKEINDEX" = ":"; then
9089 as_fn_error $?
"Cannot find required program makeindex." "$LINENO" 5
9095 # Check whether --enable-libgc was given.
9096 if test ${enable_libgc+y}
9098 enableval
=$enable_libgc;
9102 if test "$enable_libgc" = "yes"; then
9109 printf "%s\n" "#define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC" >>confdefs.h
9113 if test $OPT_ENABLE_LIBGC = 1; then
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc" >&5
9115 printf %s
"checking for GC_malloc in -lgc... " >&6; }
9116 if test ${ac_cv_lib_gc_GC_malloc+y}
9118 printf %s
"(cached) " >&6
9120 ac_check_lib_save_LIBS
=$LIBS
9122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 /* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9132 return GC_malloc ();
9137 if ac_fn_c_try_link
"$LINENO"
9139 ac_cv_lib_gc_GC_malloc
=yes
9141 ac_cv_lib_gc_GC_malloc
=no
9143 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9144 conftest
$ac_exeext conftest.
$ac_ext
9145 LIBS
=$ac_check_lib_save_LIBS
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5
9148 printf "%s\n" "$ac_cv_lib_gc_GC_malloc" >&6; }
9149 if test "x$ac_cv_lib_gc_GC_malloc" = xyes
9151 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
9157 if test $ac_cv_lib_gc_GC_malloc = no
; then
9158 as_fn_error $?
"Cannot find library libgc with Bohem memory allocator." "$LINENO" 5
9163 uniq ports.all ports
9165 uniq ports.build ports
9166 mv ports ports.build
9168 # Generating output files
9169 # ===========================================================================
9170 test $OPT_DISABLE_SDCPP = 0 &&
9172 subdirs
="$subdirs support/cpp"
9174 test $OPT_DISABLE_PACKIHX = 0 && subdirs
="$subdirs support/packihx"
9176 test $OPT_DISABLE_UCSIM = 0 && subdirs
="$subdirs sim/ucsim"
9178 test $OPT_DISABLE_SDCDB = 0 && subdirs
="$subdirs debugger/mcs51"
9180 test $OPT_DISABLE_SDBINUTILS = 0 && subdirs
="$subdirs support/sdbinutils"
9182 ac_config_files
="$ac_config_files doc/Makefile"
9185 ####test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile])
9187 if test $OPT_DISABLE_DS390 = 0 ||
test $OPT_DISABLE_DS400; then
9188 ac_config_files
="$ac_config_files src/ds390/Makefile sdas/as8xcxxx/Makefile"
9190 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/ds390/Makefile device/lib/ds400/Makefile"
9194 if test $OPT_DISABLE_HC08 = 0 ||
test $OPT_DISABLE_S08 = 0; then
9195 ac_config_files
="$ac_config_files src/hc08/Makefile sdas/as6808/Makefile"
9197 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/hc08/Makefile device/lib/s08/Makefile"
9201 if test $OPT_DISABLE_MOS6502 = 0 ||
test $OPT_DISABLE_MOS65C02 = 0; then
9202 ac_config_files
="$ac_config_files src/mos6502/Makefile sdas/as6500/Makefile"
9204 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/mos6502/Makefile device/lib/mos6502-stack-auto/Makefile device/lib/mos65c02/Makefile"
9208 if test $OPT_DISABLE_MCS51 = 0; then
9209 ac_config_files
="$ac_config_files src/mcs51/Makefile sdas/as8051/Makefile"
9211 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/mcs51/Makefile device/lib/small/Makefile device/lib/medium/Makefile device/lib/large/Makefile device/lib/huge/Makefile"
9215 if test $OPT_DISABLE_PIC14 = 0; then
9216 ac_config_files
="$ac_config_files src/pic14/Makefile"
9218 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/lib/pic14"
9221 if test $OPT_DISABLE_PIC14 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9222 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/non-free/lib/pic14"
9225 if test $OPT_DISABLE_PIC16 = 0; then
9226 ac_config_files
="$ac_config_files src/pic16/Makefile"
9228 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/lib/pic16"
9231 if test $OPT_DISABLE_PIC16 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9232 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/non-free/lib/pic16"
9236 if test $OPT_DISABLE_Z80 = 0 ||
test $OPT_DISABLE_Z180 = 0 ||
test $OPT_DISABLE_R2K = 0 ||
test $OPT_DISABLE_R2KA = 0 ||
test $OPT_DISABLE_R3KA = 0 ||
test $OPT_DISABLE_SM83 = 0 ||
test $OPT_DISABLE_TLCS90 = 0 ||
test $OPT_DISABLE_EZ80_Z80 = 0 ||
test $OPT_DISABLE_Z80N = 0; then
9237 ac_config_files
="$ac_config_files src/z80/Makefile"
9241 if test $OPT_DISABLE_Z80 = 0 ||
test $OPT_DISABLE_Z180 = 0 ||
test $OPT_DISABLE_EZ80_Z80 = 0 ||
test $OPT_DISABLE_Z80N = 0; then
9242 ac_config_files
="$ac_config_files sdas/asz80/Makefile"
9244 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/z80/Makefile device/lib/z180/Makefile device/lib/ez80_z80/Makefile device/lib/z80n/Makefile"
9248 if test $OPT_DISABLE_R2K = 0 ||
test $OPT_DISABLE_R2KA = 0 ||
test $OPT_DISABLE_R3KA = 0; then
9249 ac_config_files
="$ac_config_files sdas/asrab/Makefile"
9251 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/r2k/Makefile device/lib/r2ka/Makefile device/lib/r3ka/Makefile"
9255 if test $OPT_DISABLE_TLCS90 = 0; then
9256 ac_config_files
="$ac_config_files sdas/astlcs90/Makefile"
9258 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/tlcs90/Makefile"
9262 if test $OPT_DISABLE_SM83 = 0; then
9263 ac_config_files
="$ac_config_files sdas/asgb/Makefile"
9265 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/sm83/Makefile"
9269 if test $OPT_DISABLE_STM8 = 0; then
9270 ac_config_files
="$ac_config_files src/stm8/Makefile sdas/asstm8/Makefile"
9272 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/stm8/Makefile device/lib/stm8-large/Makefile"
9276 if test $OPT_DISABLE_PDK13 = 0 ||
test $OPT_DISABLE_PDK14 = 0 ||
test $OPT_DISABLE_PDK15 = 0 ||
test $OPT_DISABLE_PDK16 = 0; then
9277 ac_config_files
="$ac_config_files src/pdk/Makefile"
9281 if test $OPT_DISABLE_PDK13 = 0; then
9282 ac_config_files
="$ac_config_files sdas/aspdk13/Makefile"
9284 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk13/Makefile"
9288 if test $OPT_DISABLE_PDK14 = 0; then
9289 ac_config_files
="$ac_config_files sdas/aspdk14/Makefile"
9291 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk14/Makefile"
9295 if test $OPT_DISABLE_PDK15 = 0; then
9296 ac_config_files
="$ac_config_files sdas/aspdk15/Makefile"
9298 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk15/Makefile device/lib/pdk15-stack-auto/Makefile"
9302 if test $OPT_DISABLE_PDK16 = 0; then
9303 ac_config_files
="$ac_config_files sdas/aspdk16/Makefile"
9308 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/Makefile"
9310 test $OPT_DISABLE_DEVICE_LIB = 0 && test $OPT_DISABLE_NON_FREE = 0 && ac_config_files
="$ac_config_files device/non-free/lib/Makefile"
9313 ac_config_files
="$ac_config_files main.mk:main_in.mk bin/Makefile src/Makefile device/include/Makefile sdas/linksrc/Makefile support/makebin/Makefile support/regression/Makefile support/regression/cases/Makefile support/valdiag/Makefile support/scripts/Makefile support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in Makefile Makefile.common:Makefile.common.in"
9315 ac_config_files
="$ac_config_files bin/sdcc"
9317 ac_config_files
="$ac_config_files bin/sdcpp"
9319 ac_config_files
="$ac_config_files bin/sdar"
9321 ac_config_files
="$ac_config_files bin/sdnm"
9323 ac_config_files
="$ac_config_files bin/sdranlib"
9325 ac_config_files
="$ac_config_files bin/sdobjcopy"
9327 if test $OPT_DISABLE_NON_FREE = 0; then
9328 ac_config_files
="$ac_config_files device/non-free/include/Makefile"
9331 cat >confcache
<<\_ACEOF
9332 # This file is a shell script that caches the results of configure
9333 # tests run on this system so they can be shared between configure
9334 # scripts and configure runs, see configure's option --config-cache.
9335 # It is not useful on other systems. If it contains results you don't
9336 # want to keep, you may remove or edit it.
9338 # config.status only pays attention to the cache file if you give it
9339 # the --recheck option to rerun configure.
9341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9347 # The following way of writing the cache mishandles newlines in values,
9348 # but we know of no workaround that is simple, portable, and efficient.
9349 # So, we kill variables containing newlines.
9350 # Ultrix sh set writes to stderr and can't be redirected directly,
9351 # and sets the high bit in the cache file unless we assign to the vars.
9353 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9354 eval ac_val
=\$
$ac_var
9358 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9359 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9362 _ | IFS | as_nl
) ;; #(
9363 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9364 *) { eval $ac_var=; unset $ac_var;} ;;
9370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9371 *${as_nl}ac_space
=\
*)
9372 # `set' does not quote correctly, so add quotes: double-quote
9373 # substitution turns \\\\ into \\, and sed turns \\ into \.
9376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9379 # `set' quotes correctly as required by POSIX, so do not add quotes.
9380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9389 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9393 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9394 if test -w "$cache_file"; then
9395 if test "x$cache_file" != "x/dev/null"; then
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9397 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9398 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9399 cat confcache
>"$cache_file"
9401 case $cache_file in #(
9403 mv -f confcache
"$cache_file"$$
&&
9404 mv -f "$cache_file"$$
"$cache_file" ;; #(
9406 mv -f confcache
"$cache_file" ;;
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9412 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9417 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9418 # Let make expand exec_prefix.
9419 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9421 DEFS
=-DHAVE_CONFIG_H
9426 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9427 # 1. Remove the extension, and $U if already installed.
9428 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9429 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9431 # will be set to the directory where LIBOBJS objects are built.
9432 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9433 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9437 LTLIBOBJS
=$ac_ltlibobjs
9442 : "${CONFIG_STATUS=./config.status}"
9444 ac_clean_files_save
=$ac_clean_files
9445 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9447 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9449 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9451 # Generated by $as_me.
9452 # Run this file to recreate the current configuration.
9453 # Compiler output produced by configure, useful for debugging
9454 # configure, is in config.log if it exists.
9460 SHELL=\${CONFIG_SHELL-$SHELL}
9463 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9464 ## -------------------- ##
9465 ## M4sh Initialization. ##
9466 ## -------------------- ##
9468 # Be more Bourne compatible
9469 DUALCASE
=1; export DUALCASE
# for MKS sh
9471 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
9475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9476 # is contrary to our usage. Disable this feature.
9477 alias -g '${1+"$@"}'='"$@"'
9478 setopt NO_GLOB_SUBST
9480 case `(set -o) 2>/dev/null` in #(
9490 # Reset variables that may have inherited troublesome values from
9493 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9494 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9495 # side effect of setting IFS to empty, thus disabling word splitting.)
9496 # Quoting is to prevent editors from complaining about space-tab.
9506 # Ensure predictable behavior from utilities with locale-dependent output.
9512 # We cannot yet rely on "unset" to work, but we need these variables
9513 # to be unset--not just set to an empty or harmless value--now, to
9514 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9515 # also avoids known problems related to "unset" and subshell syntax
9516 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9517 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
9518 do eval test \
${$as_var+y} \
9519 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9522 # Ensure that fds 0, 1, and 2 are open.
9523 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
9524 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
9525 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
9527 # The user is always right.
9528 if ${PATH_SEPARATOR+false} :; then
9530 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
9531 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
9537 # Find who we are. Look in the path if we contain no directory separator.
9540 *[\\/]* ) as_myself
=$0 ;;
9541 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9545 case $as_dir in #(((
9548 *) as_dir
=$as_dir/ ;;
9550 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
9556 # We did not find ourselves, most probably we were run as `sh COMMAND'
9557 # in which case we are not to be found in the path.
9558 if test "x$as_myself" = x
; then
9561 if test ! -f "$as_myself"; then
9562 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9568 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9569 # ----------------------------------------
9570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9572 # script with STATUS, using 1 if that was 0.
9575 as_status
=$1; test $as_status -eq 0 && as_status
=1
9577 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9580 printf "%s\n" "$as_me: error: $2" >&2
9581 as_fn_exit
$as_status
9586 # as_fn_set_status STATUS
9587 # -----------------------
9588 # Set $? to STATUS, without forking.
9592 } # as_fn_set_status
9596 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9606 # Portably unset VAR.
9609 { eval $1=; unset $1;}
9611 as_unset
=as_fn_unset
9613 # as_fn_append VAR VALUE
9614 # ----------------------
9615 # Append the text in VALUE to the end of the definition contained in VAR. Take
9616 # advantage of any shell optimizations that allow amortized linear growth over
9617 # repeated appends, instead of the typical quadratic growth present in naive
9619 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
9621 eval 'as_fn_append ()
9632 # as_fn_arith ARG...
9633 # ------------------
9634 # Perform arithmetic evaluation on the ARGs, and store the result in the
9635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9636 # must be portable across $(()) and expr.
9637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
9639 eval 'as_fn_arith ()
9646 as_val
=`expr "$@" || test $? -eq 1`
9651 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9652 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9658 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9659 as_basename
=basename
9664 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9670 as_me
=`$as_basename -- "$0" ||
9671 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9672 X"$0" : 'X\(//\)$' \| \
9673 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9674 printf "%s\n" X/"$0" |
9675 sed '/^.*\/\([^/][^/]*\)\/*$/{
9689 # Avoid depending upon Character Ranges.
9690 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9691 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9692 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9693 as_cr_digits
='0123456789'
9694 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9697 # Determine whether it's possible to make 'echo' print without a newline.
9698 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9699 # for compatibility with existing Makefiles.
9700 ECHO_C
= ECHO_N
= ECHO_T
=
9701 case `echo -n x` in #(((((
9703 case `echo 'xy\c'` in
9704 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9706 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9713 # For backward compatibility with old third-party macros, we provide
9714 # the shell variables $as_echo and $as_echo_n. New code should use
9715 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9716 as_echo
='printf %s\n'
9717 as_echo_n
='printf %s'
9719 rm -f conf$$ conf$$.exe conf$$.
file
9720 if test -d conf$$.dir
; then
9721 rm -f conf$$.dir
/conf$$.
file
9724 mkdir conf$$.dir
2>/dev
/null
9726 if (echo >conf$$.
file) 2>/dev
/null
; then
9727 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9729 # ... but there are two gotchas:
9730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9732 # In both cases, we have to default to `cp -pR'.
9733 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9735 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9743 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9744 rmdir conf$$.dir
2>/dev
/null
9749 # Create "$as_dir" as a directory, including parents if necessary.
9754 -*) as_dir
=.
/$as_dir;;
9756 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9760 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9761 *) as_qdir
=$as_dir;;
9763 as_dirs
="'$as_qdir' $as_dirs"
9764 as_dir
=`$as_dirname -- "$as_dir" ||
9765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9766 X"$as_dir" : 'X\(//\)[^/]' \| \
9767 X"$as_dir" : 'X\(//\)$' \| \
9768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9769 printf "%s\n" X"$as_dir" |
9770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9787 test -d "$as_dir" && break
9789 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9790 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9794 if mkdir
-p .
2>/dev
/null
; then
9795 as_mkdir_p
='mkdir -p "$as_dir"'
9797 test -d .
/-p && rmdir .
/-p
9802 # as_fn_executable_p FILE
9803 # -----------------------
9804 # Test if FILE is an executable regular file.
9805 as_fn_executable_p
()
9807 test -f "$1" && test -x "$1"
9808 } # as_fn_executable_p
9810 as_executable_p
=as_fn_executable_p
9812 # Sed expression to map a string onto a valid CPP name.
9813 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9815 # Sed expression to map a string onto a valid variable name.
9816 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9820 ## ----------------------------------- ##
9821 ## Main body of $CONFIG_STATUS script. ##
9822 ## ----------------------------------- ##
9824 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9827 # Save the log message, to keep $0 and so on meaningful, and to
9828 # report actual input values of CONFIG_FILES etc. instead of their
9829 # values after options handling.
9831 This file was extended by $as_me, which was
9832 generated by GNU Autoconf 2.71. Invocation command line was
9834 CONFIG_FILES = $CONFIG_FILES
9835 CONFIG_HEADERS = $CONFIG_HEADERS
9836 CONFIG_LINKS = $CONFIG_LINKS
9837 CONFIG_COMMANDS = $CONFIG_COMMANDS
9840 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9845 case $ac_config_files in *"
9846 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9849 case $ac_config_headers in *"
9850 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9855 # Files that config.status was made for.
9856 config_files="$ac_config_files"
9857 config_headers="$ac_config_headers"
9861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9863 \`$as_me' instantiates files and other configuration actions
9864 from templates according to the current configuration. Unless the files
9865 and actions are specified as TAGs, all are instantiated by default.
9867 Usage: $0 [OPTION]... [TAG]...
9869 -h, --help print this help, then exit
9870 -V, --version print version number and configuration settings, then exit
9871 --config print configuration, then exit
9872 -q, --quiet, --silent
9873 do not print progress messages
9874 -d, --debug don't remove temporary files
9875 --recheck update $as_me by reconfiguring in the same conditions
9876 --file=FILE[:TEMPLATE]
9877 instantiate the configuration file FILE
9878 --header=FILE[:TEMPLATE]
9879 instantiate the configuration header FILE
9881 Configuration files:
9884 Configuration headers:
9887 Report bugs to the package provider."
9890 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9891 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9893 ac_cs_config='$ac_cs_config_escaped'
9896 configured by $0, generated by GNU Autoconf 2.71,
9897 with options \\"\$ac_cs_config\\"
9899 Copyright (C) 2021 Free Software Foundation, Inc.
9900 This config.status script is free software; the Free Software Foundation
9901 gives unlimited permission to copy, distribute and modify it."
9907 test -n "\$AWK" || AWK=awk
9910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9911 # The default lists apply if the user does not specify any file.
9917 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9918 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9922 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9934 # Handling of the options.
9935 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9937 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9938 printf "%s\n" "$ac_cs_version"; exit ;;
9939 --config |
--confi |
--conf |
--con |
--co |
--c )
9940 printf "%s\n" "$ac_cs_config"; exit ;;
9941 --debug |
--debu |
--deb |
--de |
--d |
-d )
9943 --file |
--fil |
--fi |
--f )
9946 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9947 '') as_fn_error $?
"missing file argument" ;;
9949 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9950 ac_need_defaults
=false
;;
9951 --header |
--heade |
--head |
--hea )
9954 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9956 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9957 ac_need_defaults
=false
;;
9959 # Conflict between --help and --header
9960 as_fn_error $?
"ambiguous option: \`$1'
9961 Try \`$0 --help' for more information.";;
9962 --help |
--hel |
-h )
9963 printf "%s\n" "$ac_cs_usage"; exit ;;
9964 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9965 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9969 -*) as_fn_error $?
"unrecognized option: \`$1'
9970 Try \`$0 --help' for more information." ;;
9972 *) as_fn_append ac_config_targets
" $1"
9973 ac_need_defaults
=false
;;
9979 ac_configure_extra_args
=
9981 if $ac_cs_silent; then
9983 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9988 if \$ac_cs_recheck; then
9989 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9991 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9992 CONFIG_SHELL='$SHELL'
9998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10003 ## Running $as_me. ##
10005 printf "%s\n" "$ac_log"
10009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10014 # Handling of arguments.
10015 for ac_config_target
in $ac_config_targets
10017 case $ac_config_target in
10018 "sdccconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
10019 "sdas/linksrc/asxxxx_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS sdas/linksrc/asxxxx_config.h" ;;
10020 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10021 "src/ds390/Makefile") CONFIG_FILES
="$CONFIG_FILES src/ds390/Makefile" ;;
10022 "sdas/as8xcxxx/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as8xcxxx/Makefile" ;;
10023 "device/lib/ds390/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ds390/Makefile" ;;
10024 "device/lib/ds400/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ds400/Makefile" ;;
10025 "src/hc08/Makefile") CONFIG_FILES
="$CONFIG_FILES src/hc08/Makefile" ;;
10026 "sdas/as6808/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as6808/Makefile" ;;
10027 "device/lib/hc08/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/hc08/Makefile" ;;
10028 "device/lib/s08/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/s08/Makefile" ;;
10029 "src/mos6502/Makefile") CONFIG_FILES
="$CONFIG_FILES src/mos6502/Makefile" ;;
10030 "sdas/as6500/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as6500/Makefile" ;;
10031 "device/lib/mos6502/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos6502/Makefile" ;;
10032 "device/lib/mos6502-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos6502-stack-auto/Makefile" ;;
10033 "device/lib/mos65c02/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos65c02/Makefile" ;;
10034 "src/mcs51/Makefile") CONFIG_FILES
="$CONFIG_FILES src/mcs51/Makefile" ;;
10035 "sdas/as8051/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as8051/Makefile" ;;
10036 "device/lib/mcs51/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
10037 "device/lib/small/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/small/Makefile" ;;
10038 "device/lib/medium/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/medium/Makefile" ;;
10039 "device/lib/large/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/large/Makefile" ;;
10040 "device/lib/huge/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/huge/Makefile" ;;
10041 "src/pic14/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pic14/Makefile" ;;
10042 "src/pic16/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pic16/Makefile" ;;
10043 "src/z80/Makefile") CONFIG_FILES
="$CONFIG_FILES src/z80/Makefile" ;;
10044 "sdas/asz80/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asz80/Makefile" ;;
10045 "device/lib/z80/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z80/Makefile" ;;
10046 "device/lib/z180/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z180/Makefile" ;;
10047 "device/lib/ez80_z80/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ez80_z80/Makefile" ;;
10048 "device/lib/z80n/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z80n/Makefile" ;;
10049 "sdas/asrab/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asrab/Makefile" ;;
10050 "device/lib/r2k/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r2k/Makefile" ;;
10051 "device/lib/r2ka/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r2ka/Makefile" ;;
10052 "device/lib/r3ka/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r3ka/Makefile" ;;
10053 "sdas/astlcs90/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/astlcs90/Makefile" ;;
10054 "device/lib/tlcs90/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/tlcs90/Makefile" ;;
10055 "sdas/asgb/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asgb/Makefile" ;;
10056 "device/lib/sm83/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/sm83/Makefile" ;;
10057 "src/stm8/Makefile") CONFIG_FILES
="$CONFIG_FILES src/stm8/Makefile" ;;
10058 "sdas/asstm8/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asstm8/Makefile" ;;
10059 "device/lib/stm8/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/stm8/Makefile" ;;
10060 "device/lib/stm8-large/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/stm8-large/Makefile" ;;
10061 "src/pdk/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pdk/Makefile" ;;
10062 "sdas/aspdk13/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk13/Makefile" ;;
10063 "device/lib/pdk13/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk13/Makefile" ;;
10064 "sdas/aspdk14/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk14/Makefile" ;;
10065 "device/lib/pdk14/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk14/Makefile" ;;
10066 "sdas/aspdk15/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk15/Makefile" ;;
10067 "device/lib/pdk15/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk15/Makefile" ;;
10068 "device/lib/pdk15-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk15-stack-auto/Makefile" ;;
10069 "sdas/aspdk16/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk16/Makefile" ;;
10070 "device/lib/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/Makefile" ;;
10071 "device/non-free/lib/Makefile") CONFIG_FILES
="$CONFIG_FILES device/non-free/lib/Makefile" ;;
10072 "main.mk") CONFIG_FILES
="$CONFIG_FILES main.mk:main_in.mk" ;;
10073 "bin/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/Makefile" ;;
10074 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10075 "device/include/Makefile") CONFIG_FILES
="$CONFIG_FILES device/include/Makefile" ;;
10076 "sdas/linksrc/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/linksrc/Makefile" ;;
10077 "support/makebin/Makefile") CONFIG_FILES
="$CONFIG_FILES support/makebin/Makefile" ;;
10078 "support/regression/Makefile") CONFIG_FILES
="$CONFIG_FILES support/regression/Makefile" ;;
10079 "support/regression/cases/Makefile") CONFIG_FILES
="$CONFIG_FILES support/regression/cases/Makefile" ;;
10080 "support/valdiag/Makefile") CONFIG_FILES
="$CONFIG_FILES support/valdiag/Makefile" ;;
10081 "support/scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES support/scripts/Makefile" ;;
10082 "support/regression/ports/host/spec.mk") CONFIG_FILES
="$CONFIG_FILES support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in" ;;
10083 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10084 "Makefile.common") CONFIG_FILES
="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
10085 "bin/sdcc") CONFIG_FILES
="$CONFIG_FILES bin/sdcc" ;;
10086 "bin/sdcpp") CONFIG_FILES
="$CONFIG_FILES bin/sdcpp" ;;
10087 "bin/sdar") CONFIG_FILES
="$CONFIG_FILES bin/sdar" ;;
10088 "bin/sdnm") CONFIG_FILES
="$CONFIG_FILES bin/sdnm" ;;
10089 "bin/sdranlib") CONFIG_FILES
="$CONFIG_FILES bin/sdranlib" ;;
10090 "bin/sdobjcopy") CONFIG_FILES
="$CONFIG_FILES bin/sdobjcopy" ;;
10091 "device/non-free/include/Makefile") CONFIG_FILES
="$CONFIG_FILES device/non-free/include/Makefile" ;;
10093 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10098 # If the user did not use the arguments to specify the items to instantiate,
10099 # then the envvar interface is used. Set only those that are not.
10100 # We use the long form for the default assignment because of an extremely
10101 # bizarre bug on SunOS 4.1.3.
10102 if $ac_need_defaults; then
10103 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
10104 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
10107 # Have a temporary directory for convenience. Make it in the build tree
10108 # simply because there is no reason against having it here, and in addition,
10109 # creating and moving files from /tmp can sometimes cause problems.
10110 # Hook for its removal unless debugging.
10111 # Note that there is a small window in which the directory will not be cleaned:
10112 # after its creation but before its name has been assigned to `$tmp'.
10116 trap 'exit_status=$?
10117 : "${ac_tmp:=$tmp}"
10118 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10120 trap 'as_fn_exit 1' 1 2 13 15
10122 # Create a (secure) tmp directory for tmp files.
10125 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10129 tmp
=.
/conf$$
-$RANDOM
10130 (umask 077 && mkdir
"$tmp")
10131 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10134 # Set up the scripts for CONFIG_FILES section.
10135 # No need to generate them if there are no CONFIG_FILES.
10136 # This happens for instance with `./config.status config.h'.
10137 if test -n "$CONFIG_FILES"; then
10140 ac_cr
=`echo X | tr X '\015'`
10141 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10142 # But we know of no other shell where ac_cr would be empty at this
10143 # point, so we can use a bashism as a fallback.
10144 if test "x$ac_cr" = x
; then
10145 eval ac_cr
=\$
\'\\r
\'
10147 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10148 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10151 ac_cs_awk_cr
=$ac_cr
10154 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10159 echo "cat >conf$$subs.awk <<_ACEOF" &&
10160 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10162 } >conf$$subs.sh ||
10163 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10164 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10166 for ac_last_try in false false false false false :; do
10167 . ./conf$$subs.sh ||
10168 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10170 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10171 if test $ac_delim_n = $ac_delim_num; then
10173 elif $ac_last_try; then
10174 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10176 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10179 rm -f conf$$subs.sh
10181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10182 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10186 s/^/S["/; s
/!.
*/"]=/
10196 s/\(.\{148\}\)..*/\1/
10198 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10203 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10210 s/\(.\{148\}\)..*/\1/
10212 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10216 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10221 ' <conf$$subs.awk | sed '
10226 ' >>$CONFIG_STATUS || ac_write_fail=1
10227 rm -f conf$$subs.awk
10228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10230 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10231 for (key in S) S_is_set[key] = 1
10237 nfields = split(line, field, "@
")
10239 len = length(field[1])
10240 for (i = 2; i < nfields; i++) {
10242 keylen = length(key)
10243 if (S_is_set[key]) {
10245 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10246 len += length(value) + length(field[++i])
10257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10258 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10259 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10262 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10263 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10266 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10267 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10268 # trailing colons and then remove the whole line if VPATH becomes empty
10269 # (actually we leave an empty line to preserve line numbers).
10270 if test "x
$srcdir" = x.; then
10271 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10290 fi # test -n "$CONFIG_FILES"
10292 # Set up the scripts for CONFIG_HEADERS section.
10293 # No need to generate them if there are no CONFIG_HEADERS.
10294 # This happens for instance with `./config.status Makefile'.
10295 if test -n "$CONFIG_HEADERS"; then
10296 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10300 # Transform confdefs.h into an awk script `defines.awk', embedded as
10301 # here-document in config.status, that substitutes the proper values into
10302 # config.h.in to produce config.h.
10304 # Create a delimiter string that does not exist in confdefs.h, to ease
10305 # handling of long lines.
10307 for ac_last_try in false false :; do
10308 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10309 if test -z "$ac_tt"; then
10311 elif $ac_last_try; then
10312 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10314 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10318 # For the awk script, D is an array of macro values keyed by name,
10319 # likewise P contains macro parameters if any. Preserve backslash
10320 # newline sequences.
10322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10324 s/.\{148\}/&'"$ac_delim"'/g
10327 s/^[ ]*#[ ]*define[ ][ ]*/ /
10334 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10336 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10341 D["\
1"]=" \
3\\\\\\n
"\\/p
10343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10348 s/.\{148\}/&'"$ac_delim"'/g
10353 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10356 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10358 ' <confdefs.h | sed '
10359 s/'"$ac_delim"'/"\\\
10360 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10363 for (key in D) D_is_set[key] = 1
10366 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10368 split(line, arg, " ")
10369 if (arg[1] == "#") {
10373 defundef
= substr
(arg
[1], 2)
10376 split(mac1
, mac2
, "(") #)
10378 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10379 if (D_is_set
[macro
]) {
10380 # Preserve the white space surrounding the "#".
10381 print prefix
"define", macro P
[macro
] D
[macro
]
10384 # Replace #undef with comments. This is necessary, for example,
10385 # in the case of _POSIX_SOURCE, which is predefined and required
10386 # on some systems where configure will not decide to define it.
10387 if (defundef
== "undef") {
10388 print
"/*", prefix defundef
, macro
, "*/"
10396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10397 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10398 fi # test -n "$CONFIG_HEADERS"
10401 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10406 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10408 case $ac_mode$ac_tag in
10410 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10411 :[FH
]-) ac_tag
=-:-;;
10412 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10429 -) ac_f
="$ac_tmp/stdin";;
10430 *) # Look for the file first in the build tree, then in the source tree
10431 # (if the path is not absolute). The absolute path cannot be DOS-style,
10432 # because $ac_f cannot contain `:'.
10436 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10438 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10440 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10441 as_fn_append ac_file_inputs
" '$ac_f'"
10444 # Let's still pretend it is `configure' which instantiates (i.e., don't
10445 # use $as_me), people would be surprised to read:
10446 # /* config.h. Generated by config.status. */
10447 configure_input
='Generated from '`
10448 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10450 if test x
"$ac_file" != x-
; then
10451 configure_input
="$ac_file. $configure_input"
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10453 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10455 # Neutralize special characters interpreted by sed in replacement strings.
10456 case $configure_input in #(
10457 *\
&* |
*\|
* |
*\\* )
10458 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
10459 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10460 *) ac_sed_conf_input
=$configure_input;;
10464 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10465 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10470 ac_dir
=`$as_dirname -- "$ac_file" ||
10471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10472 X"$ac_file" : 'X\(//\)[^/]' \| \
10473 X"$ac_file" : 'X\(//\)$' \| \
10474 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10475 printf "%s\n" X"$ac_file" |
10476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10480 /^X\(\/\/\)[^/].*/{
10493 as_dir
="$ac_dir"; as_fn_mkdir_p
10497 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10499 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10500 # A ".." for each directory in $ac_dir_suffix.
10501 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10502 case $ac_top_builddir_sub in
10503 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10504 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10507 ac_abs_top_builddir
=$ac_pwd
10508 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10509 # for backward compatibility:
10510 ac_top_builddir
=$ac_top_build_prefix
10513 .
) # We are building in place.
10515 ac_top_srcdir
=$ac_top_builddir_sub
10516 ac_abs_top_srcdir
=$ac_pwd ;;
10517 [\\/]* | ?
:[\\/]* ) # Absolute name.
10518 ac_srcdir
=$srcdir$ac_dir_suffix;
10519 ac_top_srcdir
=$srcdir
10520 ac_abs_top_srcdir
=$srcdir ;;
10521 *) # Relative name.
10522 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10523 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10524 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10526 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10536 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10537 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10542 # If the template does not know about datarootdir, expand it.
10543 # FIXME: This hack should be removed a few years after 2.60.
10544 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10555 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10556 *datarootdir
*) ac_datarootdir_seen
=yes;;
10557 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10559 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10562 ac_datarootdir_hack='
10563 s&@datadir@&$datadir&g
10564 s&@docdir@&$docdir&g
10565 s&@infodir@&$infodir&g
10566 s&@localedir@&$localedir&g
10567 s&@mandir@&$mandir&g
10568 s&\\\${datarootdir}&$datarootdir&g' ;;
10572 # Neutralize VPATH when `$srcdir' = `.'.
10573 # Shell code in configure.ac might set extrasub.
10574 # FIXME: do we really want to maintain this feature?
10575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10576 ac_sed_extra="$ac_vpsub
10579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10581 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10582 s|@configure_input@|
$ac_sed_conf_input|
;t t
10583 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10584 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10585 s
&@srcdir@
&$ac_srcdir&;t t
10586 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10587 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10588 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10589 s
&@builddir@
&$ac_builddir&;t t
10590 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10591 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10592 s
&@INSTALL@
&$ac_INSTALL&;t t
10593 $ac_datarootdir_hack
10595 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10596 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10599 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10601 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10602 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10603 which seems to be undefined. Please make sure it is defined" >&5
10604 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10605 which seems to be undefined. Please make sure it is defined" >&2;}
10607 rm -f "$ac_tmp/stdin"
10609 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10610 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10618 if test x"$ac_file" != x-; then
10620 printf "%s\n" "/* $configure_input */" >&1 \
10621 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10622 } >"$ac_tmp/config.h" \
10623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10624 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10626 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10629 mv "$ac_tmp/config.h" "$ac_file" \
10630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10633 printf "%s\n" "/* $configure_input */" >&1 \
10634 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10635 || as_fn_error $? "could not create -" "$LINENO" 5
10643 case $ac_file$ac_mode in
10644 "bin/sdcc":F) chmod +x bin/sdcc ;;
10645 "bin/sdcpp":F) chmod +x bin/sdcpp ;;
10646 "bin/sdar":F) chmod +x bin/sdar ;;
10647 "bin/sdnm":F) chmod +x bin/sdnm ;;
10648 "bin/sdranlib":F) chmod +x bin/sdranlib ;;
10649 "bin/sdobjcopy":F) chmod +x bin/sdobjcopy ;;
10657 ac_clean_files=$ac_clean_files_save
10659 test $ac_write_fail = 0 ||
10660 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10663 # configure is writing to config.log, and then calls config.status.
10664 # config.status does its own redirection, appending to config.log.
10665 # Unfortunately, on DOS this fails, as config.log is still kept open
10666 # by configure, so config.status won't be able to
write to it
; its
10667 # output is simply discarded. So we exec the FD to /dev/null,
10668 # effectively closing config.log, so it can be properly (re)opened and
10669 # appended to by config.status. When coming back to configure, we
10670 # need to make the FD available again.
10671 if test "$no_create" != yes; then
10673 ac_config_status_args
=
10674 test "$silent" = yes &&
10675 ac_config_status_args
="$ac_config_status_args --quiet"
10677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10680 # would make configure fail if this is the last instruction.
10681 $ac_cs_success || as_fn_exit
1
10685 # CONFIG_SUBDIRS section.
10687 if test "$no_recursion" != yes; then
10689 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10690 # so they do not pile up.
10691 ac_sub_configure_args
=
10693 eval "set x $ac_configure_args"
10697 if test -n "$ac_prev"; then
10702 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
10703 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
10704 ac_prev
=cache_file
;;
10705 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
10706 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
10709 --config-cache |
-C)
10711 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
10713 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
10715 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
10717 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
10719 --disable-option-checking)
10723 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10725 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
10729 # Always prepend --prefix to ensure using the same prefix
10730 # in subdir configurations.
10731 ac_arg
="--prefix=$prefix"
10733 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10735 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
10738 if test "$silent" = yes; then
10739 ac_sub_configure_args
="--silent $ac_sub_configure_args"
10742 # Always prepend --disable-option-checking to silence warnings, since
10743 # different subdirs can have different --enable and --with options.
10744 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
10747 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
10749 # Do not complain, so a configure script can configure whichever
10750 # parts of a large source tree are present.
10751 test -d "$srcdir/$ac_dir" ||
continue
10753 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10755 printf "%s\n" "$ac_msg" >&6
10756 as_dir
="$ac_dir"; as_fn_mkdir_p
10760 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10762 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10763 # A ".." for each directory in $ac_dir_suffix.
10764 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10765 case $ac_top_builddir_sub in
10766 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10767 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10770 ac_abs_top_builddir
=$ac_pwd
10771 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10772 # for backward compatibility:
10773 ac_top_builddir
=$ac_top_build_prefix
10776 .
) # We are building in place.
10778 ac_top_srcdir
=$ac_top_builddir_sub
10779 ac_abs_top_srcdir
=$ac_pwd ;;
10780 [\\/]* | ?
:[\\/]* ) # Absolute name.
10781 ac_srcdir
=$srcdir$ac_dir_suffix;
10782 ac_top_srcdir
=$srcdir
10783 ac_abs_top_srcdir
=$srcdir ;;
10784 *) # Relative name.
10785 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10786 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10787 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10789 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10794 # Check for configure.gnu first; this name is used for a wrapper for
10795 # Metaconfig's "Configure" on case-insensitive file systems.
10796 if test -f "$ac_srcdir/configure.gnu"; then
10797 ac_sub_configure
=$ac_srcdir/configure.gnu
10798 elif test -f "$ac_srcdir/configure"; then
10799 ac_sub_configure
=$ac_srcdir/configure
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10802 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10806 # The recursion is here.
10807 if test -n "$ac_sub_configure"; then
10808 # Make the cache file name correct relative to the subdirectory.
10809 case $cache_file in
10810 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
10811 *) # Relative name.
10812 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10816 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10817 # The eval makes quoting arguments work.
10818 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10819 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10820 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10826 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10828 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10832 # I found no better place
10835 # Prepare result message
10836 # ======================
10838 # In the C-header we need \\ as dir-separator, but in the message only \
10839 dirch
=${sdccconf_h_dir_separator}
10840 test ${dirch} = '\\' && dirch
='\'
10842 # calc friendly strings
10844 binPath=`echo "/${prefix2bin_dir}" | sed 's
,/\.
/,/,g
'`
10845 case ":$binPath:" in
10847 :*[\\/]:) binPath=`echo "$binPath" | sed 's
,[\\/]*$
,,'` ;;
10852 *\\*) binPath=`echo "$binPath" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10853 s
,^
[\\/],\\\\\\\\,'` ;;
10855 *) binPath=`echo "$binPath" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10857 binPath=`echo "$binPath" | sed 's
,\\\\\\\\,\\\\,g
'`
10860 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10861 case ":$incPath1:" in
10862 ::) incPath1='.
' ;;
10863 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's
,[\\/]*$
,,'` ;;
10868 *\\*) incPath1=`echo "$incPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10869 s
,^
[\\/],\\\\\\\\,'` ;;
10871 *) incPath1=`echo "$incPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10873 incPath1=`echo "$incPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
10876 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10877 case ":$incPath2:" in
10878 ::) incPath2='.
' ;;
10879 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's
,[\\/]*$
,,'` ;;
10884 *\\*) incPath2=`echo "$incPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10885 s
,^
[\\/],\\\\\\\\,'` ;;
10887 *) incPath2=`echo "$incPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10889 incPath2=`echo "$incPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
10892 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10893 case ":$incPath3:" in
10894 ::) incPath3='.
' ;;
10895 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's
,[\\/]*$
,,'` ;;
10900 *\\*) incPath3=`echo "$incPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10901 s
,^
[\\/],\\\\\\\\,'` ;;
10903 *) incPath3=`echo "$incPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10905 incPath3=`echo "$incPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
10908 nonFreeIncPath1=`echo "/${prefix2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10909 case ":$nonFreeIncPath1:" in
10910 ::) nonFreeIncPath1='.
' ;;
10911 :*[\\/]:) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,[\\/]*$
,,'` ;;
10916 *\\*) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10917 s
,^
[\\/],\\\\\\\\,'` ;;
10919 *) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10921 nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
10924 nonFreeIncPath2=`echo "/${bin2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10925 case ":$nonFreeIncPath2:" in
10926 ::) nonFreeIncPath2='.
' ;;
10927 :*[\\/]:) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,[\\/]*$
,,'` ;;
10932 *\\*) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10933 s
,^
[\\/],\\\\\\\\,'` ;;
10935 *) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10937 nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
10940 nonFreeIncPath3=`echo "${expanded_datadir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10941 case ":$nonFreeIncPath3:" in
10942 ::) nonFreeIncPath3='.
' ;;
10943 :*[\\/]:) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,[\\/]*$
,,'` ;;
10948 *\\*) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10949 s
,^
[\\/],\\\\\\\\,'` ;;
10951 *) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10953 nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
10957 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10958 case ":$libPath1:" in
10959 ::) libPath1='.
' ;;
10960 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's
,[\\/]*$
,,'` ;;
10965 *\\*) libPath1=`echo "$libPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10966 s
,^
[\\/],\\\\\\\\,'` ;;
10968 *) libPath1=`echo "$libPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10970 libPath1=`echo "$libPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
10973 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10974 case ":$libPath2:" in
10975 ::) libPath2='.
' ;;
10976 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's
,[\\/]*$
,,'` ;;
10981 *\\*) libPath2=`echo "$libPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10982 s
,^
[\\/],\\\\\\\\,'` ;;
10984 *) libPath2=`echo "$libPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
10986 libPath2=`echo "$libPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
10989 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
10990 case ":$libPath3:" in
10991 ::) libPath3='.
' ;;
10992 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's
,[\\/]*$
,,'` ;;
10997 *\\*) libPath3=`echo "$libPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
10998 s
,^
[\\/],\\\\\\\\,'` ;;
11000 *) libPath3=`echo "$libPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11002 libPath3=`echo "$libPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11005 nonFreeLibPath1=`echo "/${prefix2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11006 case ":$nonFreeLibPath1:" in
11007 ::) nonFreeLibPath1='.
' ;;
11008 :*[\\/]:) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,[\\/]*$
,,'` ;;
11013 *\\*) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11014 s
,^
[\\/],\\\\\\\\,'` ;;
11016 *) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11018 nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11021 nonFreeLibPath2=`echo "/${bin2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11022 case ":$nonFreeLibPath2:" in
11023 ::) nonFreeLibPath2='.
' ;;
11024 :*[\\/]:) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,[\\/]*$
,,'` ;;
11029 *\\*) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11030 s
,^
[\\/],\\\\\\\\,'` ;;
11032 *) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11034 nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11037 nonFreeLibPath3=`echo "${expanded_datadir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11038 case ":$nonFreeLibPath3:" in
11039 ::) nonFreeLibPath3='.
' ;;
11040 :*[\\/]:) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,[\\/]*$
,,'` ;;
11045 *\\*) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11046 s
,^
[\\/],\\\\\\\\,'` ;;
11048 *) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11050 nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11054 sdcc ${VERSION} is now configured for
11058 Source directory: ${srcdir}
11062 C++ compiler: ${CXX}
11063 CXXFLAGS: ${CXXFLAGS}
11064 CPPFLAGS: ${CPPFLAGS}
11065 LDFLAGS: ${LDFLAGS}
11066 MAKEDEP: ${MAKEDEP}
11067 MAKEDEP_CXX: ${MAKEDEP_CXX}
11070 ds390 ${enable_ds390_port}
11071 ds400 ${enable_ds400_port}
11072 hc08 ${enable_hc08_port}
11073 s08 ${enable_s08_port}
11074 mcs51 ${enable_mcs51_port}
11075 pic14 ${enable_pic14_port}
11076 pic16 ${enable_pic16_port}
11077 z80 ${enable_z80_port}
11078 z180 ${enable_z180_port}
11079 r2k ${enable_r2k_port}
11080 r2ka ${enable_r2ka_port}
11081 r3ka ${enable_r3ka_port}
11082 sm83 ${enable_sm83_port}
11083 tlcs90 ${enable_tlcs90_port}
11084 ez80_z80 ${enable_ez80_z80_port}
11085 z80n ${enable_z80n_port}
11086 stm8 ${enable_stm8_port}
11087 pdk13 ${enable_pdk13_port}
11088 pdk14 ${enable_pdk14_port}
11089 pdk15 ${enable_pdk15_port}
11090 pdk16 ${enable_pdk16_port}
11091 mos6502 ${enable_mos6502_port}
11092 mos65c02 ${enable_mos65c02_port}
11094 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11095 Disable packihx: ${OPT_DISABLE_PACKIHX}
11096 Disable ucsim: ${OPT_DISABLE_UCSIM}
11097 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11098 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11099 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11100 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11101 Enable documentation: ${OPT_ENABLE_DOC}
11102 Enable libgc: ${OPT_ENABLE_LIBGC}
11105 binary files: ${exec_prefix}
11106 include/library files: ${datadir}/${inclib_dir_suffix}
11107 include files: ${datadir}/${include_dir_suffix}
11108 library files: ${datadir}/${lib_dir_suffix}
11109 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11110 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11111 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11112 documentation: ${docdir}
11115 datadir: ${datadir}
11116 datarootdir: ${datarootdir}
11118 Search paths (incomplete, see manual for all search paths):
11119 binary files: \$SDCC_HOME${binPath}
11120 include files: ${incPath1}
11121 path(argv[0])${incPath2}
11124 path(argv[0])${nonFreeIncPath2}
11126 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11127 path(argv[0])${libPath2}${dirch}<model>
11128 ${libPath3}${dirch}<model>
11129 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11130 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11131 ${nonFreeLibPath3}${dirch}<model>
11134 sdcc ${VERSION} is now configured for
11138 Source directory: ${srcdir}
11142 C++ compiler: ${CXX}
11143 CXXFLAGS: ${CXXFLAGS}
11144 CPPFLAGS: ${CPPFLAGS}
11145 LDFLAGS: ${LDFLAGS}
11146 MAKEDEP: ${MAKEDEP}
11147 MAKEDEP_CXX: ${MAKEDEP_CXX}
11150 ds390 ${enable_ds390_port}
11151 ds400 ${enable_ds400_port}
11152 hc08 ${enable_hc08_port}
11153 s08 ${enable_s08_port}
11154 mcs51 ${enable_mcs51_port}
11155 pic14 ${enable_pic14_port}
11156 pic16 ${enable_pic16_port}
11157 z80 ${enable_z80_port}
11158 z180 ${enable_z180_port}
11159 r2k ${enable_r2k_port}
11160 r2ka ${enable_r2ka_port}
11161 r3ka ${enable_r3ka_port}
11162 sm83 ${enable_sm83_port}
11163 tlcs90 ${enable_tlcs90_port}
11164 ez80_z80 ${enable_ez80_z80_port}
11165 z80n ${enable_z80n_port}
11166 stm8 ${enable_stm8_port}
11167 pdk13 ${enable_pdk13_port}
11168 pdk14 ${enable_pdk14_port}
11169 pdk15 ${enable_pdk15_port}
11170 pdk16 ${enable_pdk16_port}
11171 mos6502 ${enable_mos6502_port}
11172 mos65c02 ${enable_mos65c02_port}
11174 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11175 Disable packihx: ${OPT_DISABLE_PACKIHX}
11176 Disable ucsim: ${OPT_DISABLE_UCSIM}
11177 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11178 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11179 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11180 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11181 Enable documentation: ${OPT_ENABLE_DOC}
11182 Enable libgc: ${OPT_ENABLE_LIBGC}
11185 binary files: ${exec_prefix}
11186 include/library files: ${datadir}/${inclib_dir_suffix}
11187 include files: ${datadir}/${include_dir_suffix}
11188 library files: ${datadir}/${lib_dir_suffix}
11189 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11190 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11191 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11192 documentation: ${docdir}
11195 datadir: ${datadir}
11196 datarootdir: ${datarootdir}
11198 Search paths (incomplete, see manual for all search paths):
11199 binary files: \$SDCC_HOME${binPath}
11200 include files: ${incPath1}
11201 path(argv[0])${incPath2}
11204 path(argv[0])${nonFreeIncPath2}
11206 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11207 path(argv[0])${libPath2}${dirch}<model>
11208 ${libPath3}${dirch}<model>
11209 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11210 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11211 ${nonFreeLibPath3}${dirch}<model>
11213 # End of configure/configure.in