struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / debugger / mcs51 / configure
blob640ec3b999ae52363e89d6a72494ce1e770188b3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 lib_dir_suffix
625 sdccconf_h_dir_separator
626 C99_FLAG
627 WALL_FLAG
628 MAKEDEP
631 STRIP
632 AUTOCONF
633 RANLIB
634 INSTALL_DATA
635 INSTALL_SCRIPT
636 INSTALL_PROGRAM
637 LIBREADLINE
638 EGREP
639 GREP
641 OBJEXT
642 EXEEXT
643 ac_ct_CC
644 CPPFLAGS
645 LDFLAGS
646 CFLAGS
648 target_alias
649 host_alias
650 build_alias
651 LIBS
652 ECHO_T
653 ECHO_N
654 ECHO_C
655 DEFS
656 mandir
657 localedir
658 libdir
659 psdir
660 pdfdir
661 dvidir
662 htmldir
663 infodir
664 docdir
665 oldincludedir
666 includedir
667 runstatedir
668 localstatedir
669 sharedstatedir
670 sysconfdir
671 datadir
672 datarootdir
673 libexecdir
674 sbindir
675 bindir
676 program_transform_name
677 prefix
678 exec_prefix
679 PACKAGE_URL
680 PACKAGE_BUGREPORT
681 PACKAGE_STRING
682 PACKAGE_VERSION
683 PACKAGE_TARNAME
684 PACKAGE_NAME
685 PATH_SEPARATOR
686 SHELL'
687 ac_subst_files=''
688 ac_user_opts='
689 enable_option_checking
691 ac_precious_vars='build_alias
692 host_alias
693 target_alias
695 CFLAGS
696 LDFLAGS
697 LIBS
698 CPPFLAGS
700 sdccconf_h_dir_separator
701 lib_dir_suffix'
704 # Initialize some variables set by options.
705 ac_init_help=
706 ac_init_version=false
707 ac_unrecognized_opts=
708 ac_unrecognized_sep=
709 # The variables have the same names as the options, with
710 # dashes changed to underlines.
711 cache_file=/dev/null
712 exec_prefix=NONE
713 no_create=
714 no_recursion=
715 prefix=NONE
716 program_prefix=NONE
717 program_suffix=NONE
718 program_transform_name=s,x,x,
719 silent=
720 site=
721 srcdir=
722 verbose=
723 x_includes=NONE
724 x_libraries=NONE
726 # Installation directory options.
727 # These are left unexpanded so users can "make install exec_prefix=/foo"
728 # and all the variables that are supposed to be based on exec_prefix
729 # by default will actually change.
730 # Use braces instead of parens because sh, perl, etc. also accept them.
731 # (The list follows the same order as the GNU Coding Standards.)
732 bindir='${exec_prefix}/bin'
733 sbindir='${exec_prefix}/sbin'
734 libexecdir='${exec_prefix}/libexec'
735 datarootdir='${prefix}/share'
736 datadir='${datarootdir}'
737 sysconfdir='${prefix}/etc'
738 sharedstatedir='${prefix}/com'
739 localstatedir='${prefix}/var'
740 runstatedir='${localstatedir}/run'
741 includedir='${prefix}/include'
742 oldincludedir='/usr/include'
743 docdir='${datarootdir}/doc/${PACKAGE}'
744 infodir='${datarootdir}/info'
745 htmldir='${docdir}'
746 dvidir='${docdir}'
747 pdfdir='${docdir}'
748 psdir='${docdir}'
749 libdir='${exec_prefix}/lib'
750 localedir='${datarootdir}/locale'
751 mandir='${datarootdir}/man'
753 ac_prev=
754 ac_dashdash=
755 for ac_option
757 # If the previous option needs an argument, assign it.
758 if test -n "$ac_prev"; then
759 eval $ac_prev=\$ac_option
760 ac_prev=
761 continue
764 case $ac_option in
765 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766 *=) ac_optarg= ;;
767 *) ac_optarg=yes ;;
768 esac
770 # Accept the important Cygnus configure options, so we can diagnose typos.
772 case $ac_dashdash$ac_option in
774 ac_dashdash=yes ;;
776 -bindir | --bindir | --bindi | --bind | --bin | --bi)
777 ac_prev=bindir ;;
778 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
779 bindir=$ac_optarg ;;
781 -build | --build | --buil | --bui | --bu)
782 ac_prev=build_alias ;;
783 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784 build_alias=$ac_optarg ;;
786 -cache-file | --cache-file | --cache-fil | --cache-fi \
787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788 ac_prev=cache_file ;;
789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791 cache_file=$ac_optarg ;;
793 --config-cache | -C)
794 cache_file=config.cache ;;
796 -datadir | --datadir | --datadi | --datad)
797 ac_prev=datadir ;;
798 -datadir=* | --datadir=* | --datadi=* | --datad=*)
799 datadir=$ac_optarg ;;
801 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802 | --dataroo | --dataro | --datar)
803 ac_prev=datarootdir ;;
804 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806 datarootdir=$ac_optarg ;;
808 -disable-* | --disable-*)
809 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
812 as_fn_error $? "invalid feature name: $ac_useropt"
813 ac_useropt_orig=$ac_useropt
814 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
815 case $ac_user_opts in
817 "enable_$ac_useropt"
818 "*) ;;
819 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
820 ac_unrecognized_sep=', ';;
821 esac
822 eval enable_$ac_useropt=no ;;
824 -docdir | --docdir | --docdi | --doc | --do)
825 ac_prev=docdir ;;
826 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827 docdir=$ac_optarg ;;
829 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
830 ac_prev=dvidir ;;
831 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832 dvidir=$ac_optarg ;;
834 -enable-* | --enable-*)
835 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838 as_fn_error $? "invalid feature name: $ac_useropt"
839 ac_useropt_orig=$ac_useropt
840 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841 case $ac_user_opts in
843 "enable_$ac_useropt"
844 "*) ;;
845 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
846 ac_unrecognized_sep=', ';;
847 esac
848 eval enable_$ac_useropt=\$ac_optarg ;;
850 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852 | --exec | --exe | --ex)
853 ac_prev=exec_prefix ;;
854 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856 | --exec=* | --exe=* | --ex=*)
857 exec_prefix=$ac_optarg ;;
859 -gas | --gas | --ga | --g)
860 # Obsolete; use --with-gas.
861 with_gas=yes ;;
863 -help | --help | --hel | --he | -h)
864 ac_init_help=long ;;
865 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866 ac_init_help=recursive ;;
867 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868 ac_init_help=short ;;
870 -host | --host | --hos | --ho)
871 ac_prev=host_alias ;;
872 -host=* | --host=* | --hos=* | --ho=*)
873 host_alias=$ac_optarg ;;
875 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876 ac_prev=htmldir ;;
877 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878 | --ht=*)
879 htmldir=$ac_optarg ;;
881 -includedir | --includedir | --includedi | --included | --include \
882 | --includ | --inclu | --incl | --inc)
883 ac_prev=includedir ;;
884 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885 | --includ=* | --inclu=* | --incl=* | --inc=*)
886 includedir=$ac_optarg ;;
888 -infodir | --infodir | --infodi | --infod | --info | --inf)
889 ac_prev=infodir ;;
890 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891 infodir=$ac_optarg ;;
893 -libdir | --libdir | --libdi | --libd)
894 ac_prev=libdir ;;
895 -libdir=* | --libdir=* | --libdi=* | --libd=*)
896 libdir=$ac_optarg ;;
898 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899 | --libexe | --libex | --libe)
900 ac_prev=libexecdir ;;
901 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902 | --libexe=* | --libex=* | --libe=*)
903 libexecdir=$ac_optarg ;;
905 -localedir | --localedir | --localedi | --localed | --locale)
906 ac_prev=localedir ;;
907 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908 localedir=$ac_optarg ;;
910 -localstatedir | --localstatedir | --localstatedi | --localstated \
911 | --localstate | --localstat | --localsta | --localst | --locals)
912 ac_prev=localstatedir ;;
913 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915 localstatedir=$ac_optarg ;;
917 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918 ac_prev=mandir ;;
919 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920 mandir=$ac_optarg ;;
922 -nfp | --nfp | --nf)
923 # Obsolete; use --without-fp.
924 with_fp=no ;;
926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927 | --no-cr | --no-c | -n)
928 no_create=yes ;;
930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932 no_recursion=yes ;;
934 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936 | --oldin | --oldi | --old | --ol | --o)
937 ac_prev=oldincludedir ;;
938 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941 oldincludedir=$ac_optarg ;;
943 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944 ac_prev=prefix ;;
945 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946 prefix=$ac_optarg ;;
948 -program-prefix | --program-prefix | --program-prefi | --program-pref \
949 | --program-pre | --program-pr | --program-p)
950 ac_prev=program_prefix ;;
951 -program-prefix=* | --program-prefix=* | --program-prefi=* \
952 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953 program_prefix=$ac_optarg ;;
955 -program-suffix | --program-suffix | --program-suffi | --program-suff \
956 | --program-suf | --program-su | --program-s)
957 ac_prev=program_suffix ;;
958 -program-suffix=* | --program-suffix=* | --program-suffi=* \
959 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960 program_suffix=$ac_optarg ;;
962 -program-transform-name | --program-transform-name \
963 | --program-transform-nam | --program-transform-na \
964 | --program-transform-n | --program-transform- \
965 | --program-transform | --program-transfor \
966 | --program-transfo | --program-transf \
967 | --program-trans | --program-tran \
968 | --progr-tra | --program-tr | --program-t)
969 ac_prev=program_transform_name ;;
970 -program-transform-name=* | --program-transform-name=* \
971 | --program-transform-nam=* | --program-transform-na=* \
972 | --program-transform-n=* | --program-transform-=* \
973 | --program-transform=* | --program-transfor=* \
974 | --program-transfo=* | --program-transf=* \
975 | --program-trans=* | --program-tran=* \
976 | --progr-tra=* | --program-tr=* | --program-t=*)
977 program_transform_name=$ac_optarg ;;
979 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980 ac_prev=pdfdir ;;
981 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982 pdfdir=$ac_optarg ;;
984 -psdir | --psdir | --psdi | --psd | --ps)
985 ac_prev=psdir ;;
986 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987 psdir=$ac_optarg ;;
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
991 silent=yes ;;
993 -runstatedir | --runstatedir | --runstatedi | --runstated \
994 | --runstate | --runstat | --runsta | --runst | --runs \
995 | --run | --ru | --r)
996 ac_prev=runstatedir ;;
997 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
998 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
999 | --run=* | --ru=* | --r=*)
1000 runstatedir=$ac_optarg ;;
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003 ac_prev=sbindir ;;
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005 | --sbi=* | --sb=*)
1006 sbindir=$ac_optarg ;;
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1011 | --sha | --sh)
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016 | --sha=* | --sh=*)
1017 sharedstatedir=$ac_optarg ;;
1019 -site | --site | --sit)
1020 ac_prev=site ;;
1021 -site=* | --site=* | --sit=*)
1022 site=$ac_optarg ;;
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025 ac_prev=srcdir ;;
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042 verbose=yes ;;
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1047 -with-* | --with-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "with_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval with_$ac_useropt=\$ac_optarg ;;
1063 -without-* | --without-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid package name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "with_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval with_$ac_useropt=no ;;
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1097 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1098 Try \`$0 --help' for more information"
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 case $ac_envvar in #(
1105 '' | [0-9]* | *[!_$as_cr_alnum]* )
1106 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1107 esac
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1119 esac
1120 done
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 as_fn_error $? "missing argument to $ac_option"
1127 if test -n "$ac_unrecognized_opts"; then
1128 case $enable_option_checking in
1129 no) ;;
1130 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1131 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1132 esac
1135 # Check all directory arguments for consistency.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir runstatedir
1141 eval ac_val=\$$ac_var
1142 # Remove trailing slashes.
1143 case $ac_val in
1144 */ )
1145 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1146 eval $ac_var=\$ac_val;;
1147 esac
1148 # Be sure to have absolute directory names.
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1154 done
1156 # There might be people who depend on the old broken behavior: `$host'
1157 # used to hold the argument of --host etc.
1158 # FIXME: To remove some day.
1159 build=$build_alias
1160 host=$host_alias
1161 target=$target_alias
1163 # FIXME: To remove some day.
1164 if test "x$host_alias" != x; then
1165 if test "x$build_alias" = x; then
1166 cross_compiling=maybe
1167 elif test "x$build_alias" != "x$host_alias"; then
1168 cross_compiling=yes
1172 ac_tool_prefix=
1173 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1175 test "$silent" = yes && exec 6>/dev/null
1178 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1179 ac_ls_di=`ls -di .` &&
1180 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1181 as_fn_error $? "working directory cannot be determined"
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 as_fn_error $? "pwd does not report name of working directory"
1186 # Find the source files, if location was not specified.
1187 if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
1189 # Try the directory containing this script, then the parent directory.
1190 ac_confdir=`$as_dirname -- "$as_myself" ||
1191 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$as_myself" : 'X\(//\)[^/]' \| \
1193 X"$as_myself" : 'X\(//\)$' \| \
1194 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1195 $as_echo X"$as_myself" |
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1204 /^X\(\/\/\)$/{
1205 s//\1/
1208 /^X\(\/\).*/{
1209 s//\1/
1212 s/.*/./; q'`
1213 srcdir=$ac_confdir
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 srcdir=..
1217 else
1218 ac_srcdir_defaulted=no
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1224 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 ac_abs_confdir=`(
1226 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures this package to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking ...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1306 _ACEOF
1308 cat <<\_ACEOF
1310 Program names:
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314 _ACEOF
1317 if test -n "$ac_init_help"; then
1319 cat <<\_ACEOF
1321 Some influential environment variables:
1322 CC C compiler command
1323 CFLAGS C compiler flags
1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325 nonstandard directory <lib dir>
1326 LIBS libraries to pass to the linker, e.g. -l<library>
1327 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1328 you have headers in a nonstandard directory <include dir>
1329 CPP C preprocessor
1330 sdccconf_h_dir_separator
1331 needed in sdccconf.h: either "/" (default) or "\\"
1332 lib_dir_suffix
1333 appended to datadir to define SDCC's library root directory
1335 Use these variables to override the choices made by `configure' or to help
1336 it to find libraries and programs with nonstandard names/locations.
1338 Report bugs to the package provider.
1339 _ACEOF
1340 ac_status=$?
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" ||
1347 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1348 continue
1349 ac_builddir=.
1351 case "$ac_dir" in
1352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 esac ;;
1361 esac
1362 ac_abs_top_builddir=$ac_pwd
1363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir=$ac_top_build_prefix
1367 case $srcdir in
1368 .) # We are building in place.
1369 ac_srcdir=.
1370 ac_top_srcdir=$ac_top_builddir_sub
1371 ac_abs_top_srcdir=$ac_pwd ;;
1372 [\\/]* | ?:[\\/]* ) # Absolute name.
1373 ac_srcdir=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir=$srcdir
1375 ac_abs_top_srcdir=$srcdir ;;
1376 *) # Relative name.
1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 esac
1381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1383 cd "$ac_dir" || { ac_status=$?; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1386 echo &&
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1391 else
1392 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 fi || ac_status=$?
1394 cd "$ac_pwd" || { ac_status=$?; break; }
1395 done
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1400 cat <<\_ACEOF
1401 configure
1402 generated by GNU Autoconf 2.69
1404 Copyright (C) 2012 Free Software Foundation, Inc.
1405 This configure script is free software; the Free Software Foundation
1406 gives unlimited permission to copy, distribute and modify it.
1407 _ACEOF
1408 exit
1411 ## ------------------------ ##
1412 ## Autoconf initialization. ##
1413 ## ------------------------ ##
1415 # ac_fn_c_try_compile LINENO
1416 # --------------------------
1417 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1418 ac_fn_c_try_compile ()
1420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421 rm -f conftest.$ac_objext
1422 if { { ac_try="$ac_compile"
1423 case "(($ac_try" in
1424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1426 esac
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 $as_echo "$ac_try_echo"; } >&5
1429 (eval "$ac_compile") 2>conftest.err
1430 ac_status=$?
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } && {
1438 test -z "$ac_c_werror_flag" ||
1439 test ! -s conftest.err
1440 } && test -s conftest.$ac_objext; then :
1441 ac_retval=0
1442 else
1443 $as_echo "$as_me: failed program was:" >&5
1444 sed 's/^/| /' conftest.$ac_ext >&5
1446 ac_retval=1
1448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1449 as_fn_set_status $ac_retval
1451 } # ac_fn_c_try_compile
1453 # ac_fn_c_try_cpp LINENO
1454 # ----------------------
1455 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1456 ac_fn_c_try_cpp ()
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 if { { ac_try="$ac_cpp conftest.$ac_ext"
1460 case "(($ac_try" in
1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462 *) ac_try_echo=$ac_try;;
1463 esac
1464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465 $as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1467 ac_status=$?
1468 if test -s conftest.err; then
1469 grep -v '^ *+' conftest.err >conftest.er1
1470 cat conftest.er1 >&5
1471 mv -f conftest.er1 conftest.err
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } > conftest.i && {
1475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1477 }; then :
1478 ac_retval=0
1479 else
1480 $as_echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.$ac_ext >&5
1483 ac_retval=1
1485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486 as_fn_set_status $ac_retval
1488 } # ac_fn_c_try_cpp
1490 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1491 # -------------------------------------------------------
1492 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1493 # the include files in INCLUDES and setting the cache variable VAR
1494 # accordingly.
1495 ac_fn_c_check_header_mongrel ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 if eval \${$3+:} false; then :
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500 $as_echo_n "checking for $2... " >&6; }
1501 if eval \${$3+:} false; then :
1502 $as_echo_n "(cached) " >&6
1504 eval ac_res=\$$3
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506 $as_echo "$ac_res" >&6; }
1507 else
1508 # Is the header compilable?
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1510 $as_echo_n "checking $2 usability... " >&6; }
1511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512 /* end confdefs.h. */
1514 #include <$2>
1515 _ACEOF
1516 if ac_fn_c_try_compile "$LINENO"; then :
1517 ac_header_compiler=yes
1518 else
1519 ac_header_compiler=no
1521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1523 $as_echo "$ac_header_compiler" >&6; }
1525 # Is the header present?
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1527 $as_echo_n "checking $2 presence... " >&6; }
1528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529 /* end confdefs.h. */
1530 #include <$2>
1531 _ACEOF
1532 if ac_fn_c_try_cpp "$LINENO"; then :
1533 ac_header_preproc=yes
1534 else
1535 ac_header_preproc=no
1537 rm -f conftest.err conftest.i conftest.$ac_ext
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1539 $as_echo "$ac_header_preproc" >&6; }
1541 # So? What about this header?
1542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1543 yes:no: )
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1545 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1547 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1549 no:yes:* )
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1551 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1553 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1555 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1557 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1559 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1561 esac
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 $as_echo_n "checking for $2... " >&6; }
1564 if eval \${$3+:} false; then :
1565 $as_echo_n "(cached) " >&6
1566 else
1567 eval "$3=\$ac_header_compiler"
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 } # ac_fn_c_check_header_mongrel
1577 # ac_fn_c_try_run LINENO
1578 # ----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580 # that executables *can* be run.
1581 ac_fn_c_try_run ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>&5
1592 ac_status=$?
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595 { { case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_try") 2>&5
1602 ac_status=$?
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; }; }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: program exited with status $ac_status" >&5
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=$ac_status
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_run
1619 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists and can be compiled using the include files in
1622 # INCLUDES, setting the cache variable VAR accordingly.
1623 ac_fn_c_check_header_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630 else
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 eval "$3=yes"
1638 else
1639 eval "$3=no"
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 } # ac_fn_c_check_header_compile
1650 # ac_fn_c_try_link LINENO
1651 # -----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_link ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext conftest$ac_exeext
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest$ac_exeext && {
1676 test "$cross_compiling" = yes ||
1677 test -x conftest$ac_exeext
1678 }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1684 ac_retval=1
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1694 } # ac_fn_c_try_link
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1699 It was created by $as_me, which was
1700 generated by GNU Autoconf 2.69. Invocation command line was
1702 $ $0 $@
1704 _ACEOF
1705 exec 5>>config.log
1707 cat <<_ASUNAME
1708 ## --------- ##
1709 ## Platform. ##
1710 ## --------- ##
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1725 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729 _ASUNAME
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 $as_echo "PATH: $as_dir"
1737 done
1738 IFS=$as_save_IFS
1740 } >&5
1742 cat >&5 <<_ACEOF
1745 ## ----------- ##
1746 ## Core tests. ##
1747 ## ----------- ##
1749 _ACEOF
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1757 ac_configure_args=
1758 ac_configure_args0=
1759 ac_configure_args1=
1760 ac_must_keep_next=false
1761 for ac_pass in 1 2
1763 for ac_arg
1765 case $ac_arg in
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1769 continue ;;
1770 *\'*)
1771 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 esac
1773 case $ac_pass in
1774 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1776 as_fn_append ac_configure_args1 " '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1779 else
1780 case $ac_arg in
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 esac
1789 -* ) ac_must_keep_next=true ;;
1790 esac
1792 as_fn_append ac_configure_args " '$ac_arg'"
1794 esac
1795 done
1796 done
1797 { ac_configure_args0=; unset ac_configure_args0;}
1798 { ac_configure_args1=; unset ac_configure_args1;}
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1808 echo
1810 $as_echo "## ---------------- ##
1811 ## Cache variables. ##
1812 ## ---------------- ##"
1813 echo
1814 # The following way of writing the cache mishandles newlines in values,
1816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817 eval ac_val=\$$ac_var
1818 case $ac_val in #(
1819 *${as_nl}*)
1820 case $ac_var in #(
1821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1823 esac
1824 case $ac_var in #(
1825 _ | IFS | as_nl) ;; #(
1826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1827 *) { eval $ac_var=; unset $ac_var;} ;;
1828 esac ;;
1829 esac
1830 done
1831 (set) 2>&1 |
1832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
1834 sed -n \
1835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1837 ;; #(
1839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841 esac |
1842 sort
1844 echo
1846 $as_echo "## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##"
1849 echo
1850 for ac_var in $ac_subst_vars
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 $as_echo "$ac_var='\''$ac_val'\''"
1857 done | sort
1858 echo
1860 if test -n "$ac_subst_files"; then
1861 $as_echo "## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##"
1864 echo
1865 for ac_var in $ac_subst_files
1867 eval ac_val=\$$ac_var
1868 case $ac_val in
1869 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870 esac
1871 $as_echo "$ac_var='\''$ac_val'\''"
1872 done | sort
1873 echo
1876 if test -s confdefs.h; then
1877 $as_echo "## ----------- ##
1878 ## confdefs.h. ##
1879 ## ----------- ##"
1880 echo
1881 cat confdefs.h
1882 echo
1884 test "$ac_signal" != 0 &&
1885 $as_echo "$as_me: caught signal $ac_signal"
1886 $as_echo "$as_me: exit $exit_status"
1887 } >&5
1888 rm -f core *.core core.conftest.* &&
1889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1890 exit $exit_status
1892 for ac_signal in 1 2 13 15; do
1893 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1894 done
1895 ac_signal=0
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1900 $as_echo "/* confdefs.h */" > confdefs.h
1902 # Predefined preprocessor variables.
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_NAME "$PACKAGE_NAME"
1906 _ACEOF
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1910 _ACEOF
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1914 _ACEOF
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_STRING "$PACKAGE_STRING"
1918 _ACEOF
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922 _ACEOF
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_URL "$PACKAGE_URL"
1926 _ACEOF
1929 # Let the site file select an alternate cache file if it wants to.
1930 # Prefer an explicitly selected file to automatically selected ones.
1931 ac_site_file1=NONE
1932 ac_site_file2=NONE
1933 if test -n "$CONFIG_SITE"; then
1934 # We do not want a PATH search for config.site.
1935 case $CONFIG_SITE in #((
1936 -*) ac_site_file1=./$CONFIG_SITE;;
1937 */*) ac_site_file1=$CONFIG_SITE;;
1938 *) ac_site_file1=./$CONFIG_SITE;;
1939 esac
1940 elif test "x$prefix" != xNONE; then
1941 ac_site_file1=$prefix/share/config.site
1942 ac_site_file2=$prefix/etc/config.site
1943 else
1944 ac_site_file1=$ac_default_prefix/share/config.site
1945 ac_site_file2=$ac_default_prefix/etc/config.site
1947 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1949 test "x$ac_site_file" = xNONE && continue
1950 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1952 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1953 sed 's/^/| /' "$ac_site_file" >&5
1954 . "$ac_site_file" \
1955 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1957 as_fn_error $? "failed to load site script $ac_site_file
1958 See \`config.log' for more details" "$LINENO" 5; }
1960 done
1962 if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special files
1964 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1965 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1967 $as_echo "$as_me: loading cache $cache_file" >&6;}
1968 case $cache_file in
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1971 esac
1973 else
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1975 $as_echo "$as_me: creating cache $cache_file" >&6;}
1976 >$cache_file
1979 # Check that the precious variables saved in the cache have kept the same
1980 # value.
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1988 set,)
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1992 ,set)
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,);;
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 # differences in whitespace do not lead to failure.
2000 ac_old_val_w=`echo x $ac_old_val`
2001 ac_new_val_w=`echo x $ac_new_val`
2002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2005 ac_cache_corrupted=:
2006 else
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2009 eval $ac_var=\$ac_old_val
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2015 fi;;
2016 esac
2017 # Pass precious variables to config.status.
2018 if test "$ac_new_set" = set; then
2019 case $ac_new_val in
2020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 *) ac_arg=$ac_var=$ac_new_val ;;
2022 esac
2023 case " $ac_configure_args " in
2024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2025 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2026 esac
2028 done
2029 if $ac_cache_corrupted; then
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2034 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2036 ## -------------------- ##
2037 ## Main body of script. ##
2038 ## -------------------- ##
2040 ac_ext=c
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 ac_config_headers="$ac_config_headers config.h"
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 if test -n "$ac_tool_prefix"; then
2058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2061 $as_echo_n "checking for $ac_word... " >&6; }
2062 if ${ac_cv_prog_CC+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 if test -n "$CC"; then
2066 ac_cv_prog_CC="$CC" # Let the user override the test.
2067 else
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 break 2
2079 done
2080 done
2081 IFS=$as_save_IFS
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2088 $as_echo "$CC" >&6; }
2089 else
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2091 $as_echo "no" >&6; }
2096 if test -z "$ac_cv_prog_CC"; then
2097 ac_ct_CC=$CC
2098 # Extract the first word of "gcc", so it can be a program name with args.
2099 set dummy gcc; ac_word=$2
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2101 $as_echo_n "checking for $ac_word... " >&6; }
2102 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2103 $as_echo_n "(cached) " >&6
2104 else
2105 if test -n "$ac_ct_CC"; then
2106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_ac_ct_CC="gcc"
2116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2119 done
2120 done
2121 IFS=$as_save_IFS
2125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126 if test -n "$ac_ct_CC"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2128 $as_echo "$ac_ct_CC" >&6; }
2129 else
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2131 $as_echo "no" >&6; }
2134 if test "x$ac_ct_CC" = x; then
2135 CC=""
2136 else
2137 case $cross_compiling:$ac_tool_warned in
2138 yes:)
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2141 ac_tool_warned=yes ;;
2142 esac
2143 CC=$ac_ct_CC
2145 else
2146 CC="$ac_cv_prog_CC"
2149 if test -z "$CC"; then
2150 if test -n "$ac_tool_prefix"; then
2151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2152 set dummy ${ac_tool_prefix}cc; ac_word=$2
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2154 $as_echo_n "checking for $ac_word... " >&6; }
2155 if ${ac_cv_prog_CC+:} false; then :
2156 $as_echo_n "(cached) " >&6
2157 else
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_CC="${ac_tool_prefix}cc"
2169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2172 done
2173 done
2174 IFS=$as_save_IFS
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2181 $as_echo "$CC" >&6; }
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2184 $as_echo "no" >&6; }
2190 if test -z "$CC"; then
2191 # Extract the first word of "cc", so it can be a program name with args.
2192 set dummy cc; ac_word=$2
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2194 $as_echo_n "checking for $ac_word... " >&6; }
2195 if ${ac_cv_prog_CC+:} false; then :
2196 $as_echo_n "(cached) " >&6
2197 else
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 else
2201 ac_prog_rejected=no
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2210 ac_prog_rejected=yes
2211 continue
2213 ac_cv_prog_CC="cc"
2214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 break 2
2217 done
2218 done
2219 IFS=$as_save_IFS
2221 if test $ac_prog_rejected = yes; then
2222 # We found a bogon in the path, so make sure we never use it.
2223 set dummy $ac_cv_prog_CC
2224 shift
2225 if test $# != 0; then
2226 # We chose a different compiler from the bogus one.
2227 # However, it has the same basename, so the bogon will be chosen
2228 # first if we set CC to just the basename; use the full file name.
2229 shift
2230 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2235 CC=$ac_cv_prog_CC
2236 if test -n "$CC"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2238 $as_echo "$CC" >&6; }
2239 else
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2241 $as_echo "no" >&6; }
2246 if test -z "$CC"; then
2247 if test -n "$ac_tool_prefix"; then
2248 for ac_prog in cl.exe
2250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if ${ac_cv_prog_CC+:} false; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2273 IFS=$as_save_IFS
2277 CC=$ac_cv_prog_CC
2278 if test -n "$CC"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2280 $as_echo "$CC" >&6; }
2281 else
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2287 test -n "$CC" && break
2288 done
2290 if test -z "$CC"; then
2291 ac_ct_CC=$CC
2292 for ac_prog in cl.exe
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297 $as_echo_n "checking for $ac_word... " >&6; }
2298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 if test -n "$ac_ct_CC"; then
2302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_ac_ct_CC="$ac_prog"
2312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2315 done
2316 done
2317 IFS=$as_save_IFS
2321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2322 if test -n "$ac_ct_CC"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2324 $as_echo "$ac_ct_CC" >&6; }
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327 $as_echo "no" >&6; }
2331 test -n "$ac_ct_CC" && break
2332 done
2334 if test "x$ac_ct_CC" = x; then
2335 CC=""
2336 else
2337 case $cross_compiling:$ac_tool_warned in
2338 yes:)
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2341 ac_tool_warned=yes ;;
2342 esac
2343 CC=$ac_ct_CC
2350 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details" "$LINENO" 5; }
2355 # Provide some information about the compiler.
2356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2357 set X $ac_compile
2358 ac_compiler=$2
2359 for ac_option in --version -v -V -qversion; do
2360 { { ac_try="$ac_compiler $ac_option >&5"
2361 case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364 esac
2365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2366 $as_echo "$ac_try_echo"; } >&5
2367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2368 ac_status=$?
2369 if test -s conftest.err; then
2370 sed '10a\
2371 ... rest of stderr output deleted ...
2372 10q' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2375 rm -f conftest.er1 conftest.err
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; }
2378 done
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2384 main ()
2388 return 0;
2390 _ACEOF
2391 ac_clean_files_save=$ac_clean_files
2392 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2393 # Try to create an executable without -o first, disregard a.out.
2394 # It will help us diagnose broken compilers, and finding out an intuition
2395 # of exeext.
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2397 $as_echo_n "checking whether the C compiler works... " >&6; }
2398 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400 # The possible output files:
2401 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2403 ac_rmfiles=
2404 for ac_file in $ac_files
2406 case $ac_file in
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2408 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2409 esac
2410 done
2411 rm -f $ac_rmfiles
2413 if { { ac_try="$ac_link_default"
2414 case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417 esac
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_link_default") 2>&5
2421 ac_status=$?
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; }; then :
2424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2427 # so that the user can short-circuit this test for compilers unknown to
2428 # Autoconf.
2429 for ac_file in $ac_files ''
2431 test -f "$ac_file" || continue
2432 case $ac_file in
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
2440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2441 then :; else
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2448 # actually working.
2449 break;;
2451 break;;
2452 esac
2453 done
2454 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456 else
2457 ac_file=''
2459 if test -z "$ac_file"; then :
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2462 $as_echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error 77 "C compiler cannot create executables
2468 See \`config.log' for more details" "$LINENO" 5; }
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471 $as_echo "yes" >&6; }
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2474 $as_echo_n "checking for C compiler default output file name... " >&6; }
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2476 $as_echo "$ac_file" >&6; }
2477 ac_exeext=$ac_cv_exeext
2479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2480 ac_clean_files=$ac_clean_files_save
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2482 $as_echo_n "checking for suffix of executables... " >&6; }
2483 if { { ac_try="$ac_link"
2484 case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_link") 2>&5
2491 ac_status=$?
2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493 test $ac_status = 0; }; then :
2494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2496 # work properly (i.e., refer to `conftest.exe'), while it won't with
2497 # `rm'.
2498 for ac_file in conftest.exe conftest conftest.*; do
2499 test -f "$ac_file" || continue
2500 case $ac_file in
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503 break;;
2504 * ) break;;
2505 esac
2506 done
2507 else
2508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details" "$LINENO" 5; }
2513 rm -f conftest conftest$ac_cv_exeext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2515 $as_echo "$ac_cv_exeext" >&6; }
2517 rm -f conftest.$ac_ext
2518 EXEEXT=$ac_cv_exeext
2519 ac_exeext=$EXEEXT
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2522 #include <stdio.h>
2524 main ()
2526 FILE *f = fopen ("conftest.out", "w");
2527 return ferror (f) || fclose (f) != 0;
2530 return 0;
2532 _ACEOF
2533 ac_clean_files="$ac_clean_files conftest.out"
2534 # Check that the compiler produces executables we can run. If not, either
2535 # the compiler is broken, or we cross compile.
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2537 $as_echo_n "checking whether we are cross compiling... " >&6; }
2538 if test "$cross_compiling" != yes; then
2539 { { ac_try="$ac_link"
2540 case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543 esac
2544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2545 $as_echo "$ac_try_echo"; } >&5
2546 (eval "$ac_link") 2>&5
2547 ac_status=$?
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; }
2550 if { ac_try='./conftest$ac_cv_exeext'
2551 { { case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554 esac
2555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556 $as_echo "$ac_try_echo"; } >&5
2557 (eval "$ac_try") 2>&5
2558 ac_status=$?
2559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560 test $ac_status = 0; }; }; then
2561 cross_compiling=no
2562 else
2563 if test "$cross_compiling" = maybe; then
2564 cross_compiling=yes
2565 else
2566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 as_fn_error $? "cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details" "$LINENO" 5; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2575 $as_echo "$cross_compiling" >&6; }
2577 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2578 ac_clean_files=$ac_clean_files_save
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2580 $as_echo_n "checking for suffix of object files... " >&6; }
2581 if ${ac_cv_objext+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2588 main ()
2592 return 0;
2594 _ACEOF
2595 rm -f conftest.o conftest.obj
2596 if { { ac_try="$ac_compile"
2597 case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600 esac
2601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2602 $as_echo "$ac_try_echo"; } >&5
2603 (eval "$ac_compile") 2>&5
2604 ac_status=$?
2605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2606 test $ac_status = 0; }; then :
2607 for ac_file in conftest.o conftest.obj conftest.*; do
2608 test -f "$ac_file" || continue;
2609 case $ac_file in
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2612 break;;
2613 esac
2614 done
2615 else
2616 $as_echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details" "$LINENO" 5; }
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2627 $as_echo "$ac_cv_objext" >&6; }
2628 OBJEXT=$ac_cv_objext
2629 ac_objext=$OBJEXT
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2632 if ${ac_cv_c_compiler_gnu+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2639 main ()
2641 #ifndef __GNUC__
2642 choke me
2643 #endif
2646 return 0;
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_compiler_gnu=yes
2651 else
2652 ac_compiler_gnu=no
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2660 if test $ac_compiler_gnu = yes; then
2661 GCC=yes
2662 else
2663 GCC=
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2669 if ${ac_cv_prog_cc_g+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes
2674 ac_cv_prog_cc_g=no
2675 CFLAGS="-g"
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2680 main ()
2684 return 0;
2686 _ACEOF
2687 if ac_fn_c_try_compile "$LINENO"; then :
2688 ac_cv_prog_cc_g=yes
2689 else
2690 CFLAGS=""
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2695 main ()
2699 return 0;
2701 _ACEOF
2702 if ac_fn_c_try_compile "$LINENO"; then :
2704 else
2705 ac_c_werror_flag=$ac_save_c_werror_flag
2706 CFLAGS="-g"
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2711 main ()
2715 return 0;
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719 ac_cv_prog_cc_g=yes
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_c_werror_flag=$ac_save_c_werror_flag
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2729 $as_echo "$ac_cv_prog_cc_g" >&6; }
2730 if test "$ac_test_CFLAGS" = set; then
2731 CFLAGS=$ac_save_CFLAGS
2732 elif test $ac_cv_prog_cc_g = yes; then
2733 if test "$GCC" = yes; then
2734 CFLAGS="-g -O2"
2735 else
2736 CFLAGS="-g"
2738 else
2739 if test "$GCC" = yes; then
2740 CFLAGS="-O2"
2741 else
2742 CFLAGS=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2747 if ${ac_cv_prog_cc_c89+:} false; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 ac_cv_prog_cc_c89=no
2751 ac_save_CC=$CC
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2754 #include <stdarg.h>
2755 #include <stdio.h>
2756 struct stat;
2757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2758 struct buf { int x; };
2759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2760 static char *e (p, i)
2761 char **p;
2762 int i;
2764 return p[i];
2766 static char *f (char * (*g) (char **, int), char **p, ...)
2768 char *s;
2769 va_list v;
2770 va_start (v,p);
2771 s = g (p, va_arg (v,int));
2772 va_end (v);
2773 return s;
2776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2777 function prototypes and stuff, but not '\xHH' hex character constants.
2778 These don't provoke an error unfortunately, instead are silently treated
2779 as 'x'. The following induces an error, until -std is added to get
2780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2781 array size at least. It's necessary to write '\x00'==0 to get something
2782 that's true only with -std. */
2783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2786 inside strings and character constants. */
2787 #define FOO(x) 'x'
2788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2790 int test (int i, double x);
2791 struct s1 {int (*f) (int a);};
2792 struct s2 {int (*f) (double a);};
2793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2794 int argc;
2795 char **argv;
2797 main ()
2799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2801 return 0;
2803 _ACEOF
2804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807 CC="$ac_save_CC $ac_arg"
2808 if ac_fn_c_try_compile "$LINENO"; then :
2809 ac_cv_prog_cc_c89=$ac_arg
2811 rm -f core conftest.err conftest.$ac_objext
2812 test "x$ac_cv_prog_cc_c89" != "xno" && break
2813 done
2814 rm -f conftest.$ac_ext
2815 CC=$ac_save_CC
2818 # AC_CACHE_VAL
2819 case "x$ac_cv_prog_cc_c89" in
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2822 $as_echo "none needed" >&6; } ;;
2823 xno)
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2825 $as_echo "unsupported" >&6; } ;;
2827 CC="$CC $ac_cv_prog_cc_c89"
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2830 esac
2831 if test "x$ac_cv_prog_cc_c89" != xno; then :
2835 ac_ext=c
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2848 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2849 # On Suns, sometimes $CPP names a directory.
2850 if test -n "$CPP" && test -d "$CPP"; then
2851 CPP=
2853 if test -z "$CPP"; then
2854 if ${ac_cv_prog_CPP+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 # Double quotes because CPP needs to be expanded
2858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2860 ac_preproc_ok=false
2861 for ac_c_preproc_warn_flag in '' yes
2863 # Use a header file that comes with gcc, so configuring glibc
2864 # with a fresh cross-compiler works.
2865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2866 # <limits.h> exists even on freestanding compilers.
2867 # On the NeXT, cc -E runs the code through the compiler's parser,
2868 # not just through cpp. "Syntax error" is here to catch this case.
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2871 #ifdef __STDC__
2872 # include <limits.h>
2873 #else
2874 # include <assert.h>
2875 #endif
2876 Syntax error
2877 _ACEOF
2878 if ac_fn_c_try_cpp "$LINENO"; then :
2880 else
2881 # Broken: fails on valid input.
2882 continue
2884 rm -f conftest.err conftest.i conftest.$ac_ext
2886 # OK, works on sane cases. Now check whether nonexistent headers
2887 # can be detected and how.
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2890 #include <ac_nonexistent.h>
2891 _ACEOF
2892 if ac_fn_c_try_cpp "$LINENO"; then :
2893 # Broken: success on invalid input.
2894 continue
2895 else
2896 # Passes both tests.
2897 ac_preproc_ok=:
2898 break
2900 rm -f conftest.err conftest.i conftest.$ac_ext
2902 done
2903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2904 rm -f conftest.i conftest.err conftest.$ac_ext
2905 if $ac_preproc_ok; then :
2906 break
2909 done
2910 ac_cv_prog_CPP=$CPP
2913 CPP=$ac_cv_prog_CPP
2914 else
2915 ac_cv_prog_CPP=$CPP
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2918 $as_echo "$CPP" >&6; }
2919 ac_preproc_ok=false
2920 for ac_c_preproc_warn_flag in '' yes
2922 # Use a header file that comes with gcc, so configuring glibc
2923 # with a fresh cross-compiler works.
2924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2925 # <limits.h> exists even on freestanding compilers.
2926 # On the NeXT, cc -E runs the code through the compiler's parser,
2927 # not just through cpp. "Syntax error" is here to catch this case.
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2930 #ifdef __STDC__
2931 # include <limits.h>
2932 #else
2933 # include <assert.h>
2934 #endif
2935 Syntax error
2936 _ACEOF
2937 if ac_fn_c_try_cpp "$LINENO"; then :
2939 else
2940 # Broken: fails on valid input.
2941 continue
2943 rm -f conftest.err conftest.i conftest.$ac_ext
2945 # OK, works on sane cases. Now check whether nonexistent headers
2946 # can be detected and how.
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 #include <ac_nonexistent.h>
2950 _ACEOF
2951 if ac_fn_c_try_cpp "$LINENO"; then :
2952 # Broken: success on invalid input.
2953 continue
2954 else
2955 # Passes both tests.
2956 ac_preproc_ok=:
2957 break
2959 rm -f conftest.err conftest.i conftest.$ac_ext
2961 done
2962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2963 rm -f conftest.i conftest.err conftest.$ac_ext
2964 if $ac_preproc_ok; then :
2966 else
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details" "$LINENO" 5; }
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2981 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2982 if ${ac_cv_path_GREP+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -z "$GREP"; then
2986 ac_path_GREP_found=false
2987 # Loop through the user's path and test for each of PROGNAME-LIST
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_prog in grep ggrep; do
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2996 as_fn_executable_p "$ac_path_GREP" || continue
2997 # Check for GNU ac_path_GREP and select it if it is found.
2998 # Check for GNU $ac_path_GREP
2999 case `"$ac_path_GREP" --version 2>&1` in
3000 *GNU*)
3001 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3003 ac_count=0
3004 $as_echo_n 0123456789 >"conftest.in"
3005 while :
3007 cat "conftest.in" "conftest.in" >"conftest.tmp"
3008 mv "conftest.tmp" "conftest.in"
3009 cp "conftest.in" "conftest.nl"
3010 $as_echo 'GREP' >> "conftest.nl"
3011 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3013 as_fn_arith $ac_count + 1 && ac_count=$as_val
3014 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3015 # Best one so far, save it but keep looking for a better one
3016 ac_cv_path_GREP="$ac_path_GREP"
3017 ac_path_GREP_max=$ac_count
3019 # 10*(2^10) chars as input seems more than enough
3020 test $ac_count -gt 10 && break
3021 done
3022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3023 esac
3025 $ac_path_GREP_found && break 3
3026 done
3027 done
3028 done
3029 IFS=$as_save_IFS
3030 if test -z "$ac_cv_path_GREP"; then
3031 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3033 else
3034 ac_cv_path_GREP=$GREP
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3039 $as_echo "$ac_cv_path_GREP" >&6; }
3040 GREP="$ac_cv_path_GREP"
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3044 $as_echo_n "checking for egrep... " >&6; }
3045 if ${ac_cv_path_EGREP+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3049 then ac_cv_path_EGREP="$GREP -E"
3050 else
3051 if test -z "$EGREP"; then
3052 ac_path_EGREP_found=false
3053 # Loop through the user's path and test for each of PROGNAME-LIST
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_prog in egrep; do
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3062 as_fn_executable_p "$ac_path_EGREP" || continue
3063 # Check for GNU ac_path_EGREP and select it if it is found.
3064 # Check for GNU $ac_path_EGREP
3065 case `"$ac_path_EGREP" --version 2>&1` in
3066 *GNU*)
3067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3069 ac_count=0
3070 $as_echo_n 0123456789 >"conftest.in"
3071 while :
3073 cat "conftest.in" "conftest.in" >"conftest.tmp"
3074 mv "conftest.tmp" "conftest.in"
3075 cp "conftest.in" "conftest.nl"
3076 $as_echo 'EGREP' >> "conftest.nl"
3077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3079 as_fn_arith $ac_count + 1 && ac_count=$as_val
3080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3081 # Best one so far, save it but keep looking for a better one
3082 ac_cv_path_EGREP="$ac_path_EGREP"
3083 ac_path_EGREP_max=$ac_count
3085 # 10*(2^10) chars as input seems more than enough
3086 test $ac_count -gt 10 && break
3087 done
3088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3089 esac
3091 $ac_path_EGREP_found && break 3
3092 done
3093 done
3094 done
3095 IFS=$as_save_IFS
3096 if test -z "$ac_cv_path_EGREP"; then
3097 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3099 else
3100 ac_cv_path_EGREP=$EGREP
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3106 $as_echo "$ac_cv_path_EGREP" >&6; }
3107 EGREP="$ac_cv_path_EGREP"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3111 $as_echo_n "checking for ANSI C header files... " >&6; }
3112 if ${ac_cv_header_stdc+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3117 #include <stdlib.h>
3118 #include <stdarg.h>
3119 #include <string.h>
3120 #include <float.h>
3123 main ()
3127 return 0;
3129 _ACEOF
3130 if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_cv_header_stdc=yes
3132 else
3133 ac_cv_header_stdc=no
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 if test $ac_cv_header_stdc = yes; then
3138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3141 #include <string.h>
3143 _ACEOF
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145 $EGREP "memchr" >/dev/null 2>&1; then :
3147 else
3148 ac_cv_header_stdc=no
3150 rm -f conftest*
3154 if test $ac_cv_header_stdc = yes; then
3155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158 #include <stdlib.h>
3160 _ACEOF
3161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162 $EGREP "free" >/dev/null 2>&1; then :
3164 else
3165 ac_cv_header_stdc=no
3167 rm -f conftest*
3171 if test $ac_cv_header_stdc = yes; then
3172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3173 if test "$cross_compiling" = yes; then :
3175 else
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178 #include <ctype.h>
3179 #include <stdlib.h>
3180 #if ((' ' & 0x0FF) == 0x020)
3181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3183 #else
3184 # define ISLOWER(c) \
3185 (('a' <= (c) && (c) <= 'i') \
3186 || ('j' <= (c) && (c) <= 'r') \
3187 || ('s' <= (c) && (c) <= 'z'))
3188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3189 #endif
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3193 main ()
3195 int i;
3196 for (i = 0; i < 256; i++)
3197 if (XOR (islower (i), ISLOWER (i))
3198 || toupper (i) != TOUPPER (i))
3199 return 2;
3200 return 0;
3202 _ACEOF
3203 if ac_fn_c_try_run "$LINENO"; then :
3205 else
3206 ac_cv_header_stdc=no
3208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3209 conftest.$ac_objext conftest.beam conftest.$ac_ext
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3215 $as_echo "$ac_cv_header_stdc" >&6; }
3216 if test $ac_cv_header_stdc = yes; then
3218 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3224 inttypes.h stdint.h unistd.h
3225 do :
3226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3230 cat >>confdefs.h <<_ACEOF
3231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3232 _ACEOF
3236 done
3241 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
3242 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
3248 if test "$ac_cv_header_readline_readline_h" = yes; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Readline version" >&5
3251 $as_echo_n "checking for GNU Readline version... " >&6; }
3252 cat > conftest.$ac_ext <<EOF
3253 #include <stdio.h>
3254 #include <readline/readline.h>
3255 wi_LIB_READLINE_VERSION RL_VERSION_MAJOR RL_VERSION_MINOR
3258 wi_READLINE_VERSION=$($CPP $CPPFLAGS conftest.$ac_ext | sed -n -e "s/^wi_LIB_READLINE_VERSION *\([0-9][0-9]*\) *\([0-9][0-9]*\)$/\1.\2/p")
3259 rm -rf conftest*
3261 if test -n "$wi_READLINE_VERSION"; then
3262 wi_MAJOR=$(expr $wi_READLINE_VERSION : '\([0-9][0-9]*\)\.')
3263 wi_MINOR=$(expr $wi_READLINE_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)')
3264 if test $wi_MINOR -lt 10; then
3265 wi_MINOR=$(expr $wi_MINOR \* 10)
3267 wi_READLINE_VERSION=$(expr $wi_MAJOR \* 100 + $wi_MINOR)
3268 else
3269 wi_READLINE_VERSION=-1
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wi_READLINE_VERSION" >&5
3272 $as_echo "$wi_READLINE_VERSION" >&6; }
3275 ac_save_LIBS="$LIBS"
3276 # Note: $LIBCURSES is permitted to be empty.
3278 for LIBREADLINE in "-lreadline.dll" "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Readline library $LIBREADLINE" >&5
3281 $as_echo_n "checking for GNU Readline library $LIBREADLINE... " >&6; }
3283 LIBS="$ac_save_LIBS $LIBREADLINE"
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3288 /* includes */
3289 #include <stdio.h>
3290 #include <readline/readline.h>
3293 main ()
3296 /* function-body */
3297 int dummy = rl_completion_append_character; /* rl_completion_append_character appeared in version 2.1 */
3298 readline(NULL);
3301 return 0;
3303 _ACEOF
3304 if ac_fn_c_try_link "$LINENO"; then :
3306 wi_cv_lib_readline=yes
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3310 else
3312 wi_cv_lib_readline=no
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 rm -f core conftest.err conftest.$ac_objext \
3318 conftest$ac_exeext conftest.$ac_ext
3320 if test "$wi_cv_lib_readline" = yes; then
3323 cat >>confdefs.h <<_ACEOF
3324 #define HAVE_LIBREADLINE $wi_READLINE_VERSION
3325 _ACEOF
3327 break
3329 done
3331 LIBS="$ac_save_LIBS"
3335 # Required programs
3336 # ===========================================================================
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3344 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3364 done
3365 done
3366 IFS=$as_save_IFS
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3381 if test -z "$ac_cv_prog_CC"; then
3382 ac_ct_CC=$CC
3383 # Extract the first word of "gcc", so it can be a program name with args.
3384 set dummy gcc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_CC="gcc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3419 if test "x$ac_ct_CC" = x; then
3420 CC=""
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3427 esac
3428 CC=$ac_ct_CC
3430 else
3431 CC="$ac_cv_prog_CC"
3434 if test -z "$CC"; then
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_CC="${ac_tool_prefix}cc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3459 IFS=$as_save_IFS
3463 CC=$ac_cv_prog_CC
3464 if test -n "$CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3475 if test -z "$CC"; then
3476 # Extract the first word of "cc", so it can be a program name with args.
3477 set dummy cc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 ac_prog_rejected=no
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495 ac_prog_rejected=yes
3496 continue
3498 ac_cv_prog_CC="cc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3504 IFS=$as_save_IFS
3506 if test $ac_prog_rejected = yes; then
3507 # We found a bogon in the path, so make sure we never use it.
3508 set dummy $ac_cv_prog_CC
3509 shift
3510 if test $# != 0; then
3511 # We chose a different compiler from the bogus one.
3512 # However, it has the same basename, so the bogon will be chosen
3513 # first if we set CC to just the basename; use the full file name.
3514 shift
3515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 for ac_prog in cl.exe
3535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$CC" && break
3573 done
3575 if test -z "$CC"; then
3576 ac_ct_CC=$CC
3577 for ac_prog in cl.exe
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC="$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$ac_ct_CC" && break
3617 done
3619 if test "x$ac_ct_CC" = x; then
3620 CC=""
3621 else
3622 case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 CC=$ac_ct_CC
3635 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "no acceptable C compiler found in \$PATH
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 # Provide some information about the compiler.
3641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3642 set X $ac_compile
3643 ac_compiler=$2
3644 for ac_option in --version -v -V -qversion; do
3645 { { ac_try="$ac_compiler $ac_option >&5"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3653 ac_status=$?
3654 if test -s conftest.err; then
3655 sed '10a\
3656 ... rest of stderr output deleted ...
3657 10q' conftest.err >conftest.er1
3658 cat conftest.er1 >&5
3660 rm -f conftest.er1 conftest.err
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3663 done
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3674 main ()
3676 #ifndef __GNUC__
3677 choke me
3678 #endif
3681 return 0;
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_compiler_gnu=yes
3686 else
3687 ac_compiler_gnu=no
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696 GCC=yes
3697 else
3698 GCC=
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3709 ac_cv_prog_cc_g=no
3710 CFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3715 main ()
3719 return 0;
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_g=yes
3724 else
3725 CFLAGS=""
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 main ()
3734 return 0;
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3739 else
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3746 main ()
3750 return 0;
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3769 CFLAGS="-g -O2"
3770 else
3771 CFLAGS="-g"
3773 else
3774 if test "$GCC" = yes; then
3775 CFLAGS="-O2"
3776 else
3777 CFLAGS=
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_cv_prog_cc_c89=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <stdarg.h>
3790 #include <stdio.h>
3791 struct stat;
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3796 char **p;
3797 int i;
3799 return p[i];
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3803 char *s;
3804 va_list v;
3805 va_start (v,p);
3806 s = g (p, va_arg (v,int));
3807 va_end (v);
3808 return s;
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3822 #define FOO(x) 'x'
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829 int argc;
3830 char **argv;
3832 main ()
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3836 return 0;
3838 _ACEOF
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3882 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3883 # On Suns, sometimes $CPP names a directory.
3884 if test -n "$CPP" && test -d "$CPP"; then
3885 CPP=
3887 if test -z "$CPP"; then
3888 if ${ac_cv_prog_CPP+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 # Double quotes because CPP needs to be expanded
3892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3894 ac_preproc_ok=false
3895 for ac_c_preproc_warn_flag in '' yes
3897 # Use a header file that comes with gcc, so configuring glibc
3898 # with a fresh cross-compiler works.
3899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900 # <limits.h> exists even on freestanding compilers.
3901 # On the NeXT, cc -E runs the code through the compiler's parser,
3902 # not just through cpp. "Syntax error" is here to catch this case.
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #ifdef __STDC__
3906 # include <limits.h>
3907 #else
3908 # include <assert.h>
3909 #endif
3910 Syntax error
3911 _ACEOF
3912 if ac_fn_c_try_cpp "$LINENO"; then :
3914 else
3915 # Broken: fails on valid input.
3916 continue
3918 rm -f conftest.err conftest.i conftest.$ac_ext
3920 # OK, works on sane cases. Now check whether nonexistent headers
3921 # can be detected and how.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924 #include <ac_nonexistent.h>
3925 _ACEOF
3926 if ac_fn_c_try_cpp "$LINENO"; then :
3927 # Broken: success on invalid input.
3928 continue
3929 else
3930 # Passes both tests.
3931 ac_preproc_ok=:
3932 break
3934 rm -f conftest.err conftest.i conftest.$ac_ext
3936 done
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.i conftest.err conftest.$ac_ext
3939 if $ac_preproc_ok; then :
3940 break
3943 done
3944 ac_cv_prog_CPP=$CPP
3947 CPP=$ac_cv_prog_CPP
3948 else
3949 ac_cv_prog_CPP=$CPP
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3952 $as_echo "$CPP" >&6; }
3953 ac_preproc_ok=false
3954 for ac_c_preproc_warn_flag in '' yes
3956 # Use a header file that comes with gcc, so configuring glibc
3957 # with a fresh cross-compiler works.
3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 # <limits.h> exists even on freestanding compilers.
3960 # On the NeXT, cc -E runs the code through the compiler's parser,
3961 # not just through cpp. "Syntax error" is here to catch this case.
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #ifdef __STDC__
3965 # include <limits.h>
3966 #else
3967 # include <assert.h>
3968 #endif
3969 Syntax error
3970 _ACEOF
3971 if ac_fn_c_try_cpp "$LINENO"; then :
3973 else
3974 # Broken: fails on valid input.
3975 continue
3977 rm -f conftest.err conftest.i conftest.$ac_ext
3979 # OK, works on sane cases. Now check whether nonexistent headers
3980 # can be detected and how.
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #include <ac_nonexistent.h>
3984 _ACEOF
3985 if ac_fn_c_try_cpp "$LINENO"; then :
3986 # Broken: success on invalid input.
3987 continue
3988 else
3989 # Passes both tests.
3990 ac_preproc_ok=:
3991 break
3993 rm -f conftest.err conftest.i conftest.$ac_ext
3995 done
3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997 rm -f conftest.i conftest.err conftest.$ac_ext
3998 if $ac_preproc_ok; then :
4000 else
4001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4004 See \`config.log' for more details" "$LINENO" 5; }
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 ac_aux_dir=
4014 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4015 if test -f "$ac_dir/install-sh"; then
4016 ac_aux_dir=$ac_dir
4017 ac_install_sh="$ac_aux_dir/install-sh -c"
4018 break
4019 elif test -f "$ac_dir/install.sh"; then
4020 ac_aux_dir=$ac_dir
4021 ac_install_sh="$ac_aux_dir/install.sh -c"
4022 break
4023 elif test -f "$ac_dir/shtool"; then
4024 ac_aux_dir=$ac_dir
4025 ac_install_sh="$ac_aux_dir/shtool install -c"
4026 break
4028 done
4029 if test -z "$ac_aux_dir"; then
4030 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4033 # These three variables are undocumented and unsupported,
4034 # and are intended to be withdrawn in a future Autoconf release.
4035 # They can cause serious problems if a builder's source tree is in a directory
4036 # whose full name contains unusual characters.
4037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4042 # Find a good install program. We prefer a C program (faster),
4043 # so one script is as good as another. But avoid the broken or
4044 # incompatible versions:
4045 # SysV /etc/install, /usr/sbin/install
4046 # SunOS /usr/etc/install
4047 # IRIX /sbin/install
4048 # AIX /bin/install
4049 # AmigaOS /C/install, which installs bootblocks on floppy discs
4050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4053 # OS/2's system install, which has a completely different semantic
4054 # ./install, which can be erroneously created by make from ./install.sh.
4055 # Reject install programs that cannot install multiple files.
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4057 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4058 if test -z "$INSTALL"; then
4059 if ${ac_cv_path_install+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 # Account for people who put trailing slashes in PATH elements.
4068 case $as_dir/ in #((
4069 ./ | .// | /[cC]/* | \
4070 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4071 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4072 /usr/ucb/* ) ;;
4074 # OSF1 and SCO ODT 3.0 have their own names for install.
4075 # Don't use installbsd from OSF since it installs stuff as root
4076 # by default.
4077 for ac_prog in ginstall scoinst install; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4080 if test $ac_prog = install &&
4081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4082 # AIX install. It has an incompatible calling convention.
4084 elif test $ac_prog = install &&
4085 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4086 # program-specific install script used by HP pwplus--don't use.
4088 else
4089 rm -rf conftest.one conftest.two conftest.dir
4090 echo one > conftest.one
4091 echo two > conftest.two
4092 mkdir conftest.dir
4093 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4094 test -s conftest.one && test -s conftest.two &&
4095 test -s conftest.dir/conftest.one &&
4096 test -s conftest.dir/conftest.two
4097 then
4098 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4099 break 3
4103 done
4104 done
4106 esac
4108 done
4109 IFS=$as_save_IFS
4111 rm -rf conftest.one conftest.two conftest.dir
4114 if test "${ac_cv_path_install+set}" = set; then
4115 INSTALL=$ac_cv_path_install
4116 else
4117 # As a last resort, use the slow shell script. Don't cache a
4118 # value for INSTALL within a source directory, because that will
4119 # break other packages using the cache if that directory is
4120 # removed, or if the value is a relative name.
4121 INSTALL=$ac_install_sh
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4125 $as_echo "$INSTALL" >&6; }
4127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4128 # It thinks the first close brace ends the variable substitution.
4129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_RANLIB+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$RANLIB"; then
4144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4163 RANLIB=$ac_cv_prog_RANLIB
4164 if test -n "$RANLIB"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4166 $as_echo "$RANLIB" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4174 if test -z "$ac_cv_prog_RANLIB"; then
4175 ac_ct_RANLIB=$RANLIB
4176 # Extract the first word of "ranlib", so it can be a program name with args.
4177 set dummy ranlib; ac_word=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 if test -n "$ac_ct_RANLIB"; then
4184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_ac_ct_RANLIB="ranlib"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4197 done
4198 done
4199 IFS=$as_save_IFS
4203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4204 if test -n "$ac_ct_RANLIB"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4206 $as_echo "$ac_ct_RANLIB" >&6; }
4207 else
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4212 if test "x$ac_ct_RANLIB" = x; then
4213 RANLIB=":"
4214 else
4215 case $cross_compiling:$ac_tool_warned in
4216 yes:)
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned=yes ;;
4220 esac
4221 RANLIB=$ac_ct_RANLIB
4223 else
4224 RANLIB="$ac_cv_prog_RANLIB"
4227 # Extract the first word of "autoconf", so it can be a program name with args.
4228 set dummy autoconf; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_AUTOCONF+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$AUTOCONF"; then
4235 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_AUTOCONF="autoconf"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4248 done
4249 done
4250 IFS=$as_save_IFS
4252 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
4255 AUTOCONF=$ac_cv_prog_AUTOCONF
4256 if test -n "$AUTOCONF"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4258 $as_echo "$AUTOCONF" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4265 # Extract the first word of "strip", so it can be a program name with args.
4266 set dummy strip; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_STRIP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$STRIP"; then
4273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_STRIP="strip"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4290 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4293 STRIP=$ac_cv_prog_STRIP
4294 if test -n "$STRIP"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4296 $as_echo "$STRIP" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 # Extract the first word of "as", so it can be a program name with args.
4304 set dummy as; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_AS+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$AS"; then
4311 ac_cv_prog_AS="$AS" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_AS="as"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4324 done
4325 done
4326 IFS=$as_save_IFS
4328 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
4331 AS=$ac_cv_prog_AS
4332 if test -n "$AS"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4334 $as_echo "$AS" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4341 # Extract the first word of "cp", so it can be a program name with args.
4342 set dummy cp; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_CP+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$CP"; then
4349 ac_cv_prog_CP="$CP" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_CP="cp"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4362 done
4363 done
4364 IFS=$as_save_IFS
4366 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
4369 CP=$ac_cv_prog_CP
4370 if test -n "$CP"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4372 $as_echo "$CP" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 test "$program_prefix" != NONE &&
4388 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4389 # Use a double $ so make ignores it.
4390 test "$program_suffix" != NONE &&
4391 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4392 # Double any \ or $.
4393 # By default was `s,x,x', remove it if useless.
4394 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4395 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4397 # Checking for header files.
4398 # ===========================================================================
4399 for ac_header in unistd.h sys/wait.h
4400 do :
4401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4404 cat >>confdefs.h <<_ACEOF
4405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4406 _ACEOF
4410 done
4412 socket_type=unknown
4413 for ac_header in sys/socket.h
4414 do :
4415 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4416 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
4417 cat >>confdefs.h <<_ACEOF
4418 #define HAVE_SYS_SOCKET_H 1
4419 _ACEOF
4420 socket_type=sys_socket_h
4423 done
4425 if test $socket_type = unknown; then
4426 for ac_header in winsock2.h
4427 do :
4428 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4429 if test "x$ac_cv_header_winsock2_h" = xyes; then :
4430 cat >>confdefs.h <<_ACEOF
4431 #define HAVE_WINSOCK2_H 1
4432 _ACEOF
4433 socket_type=winsock2_h
4436 done
4440 # Checking for functions/libs
4441 # ===========================================================================
4442 if test $socket_type = winsock2_h; then
4443 LIBS="-lws2_32 $LIBS"
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4446 $as_echo_n "checking for socket in -lsocket... " >&6; }
4447 if ${ac_cv_lib_socket_socket+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 ac_check_lib_save_LIBS=$LIBS
4451 LIBS="-lsocket $LIBS"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4455 /* Override any GCC internal prototype to avoid an error.
4456 Use char because int might match the return type of a GCC
4457 builtin and then its argument prototype would still apply. */
4458 #ifdef __cplusplus
4459 extern "C"
4460 #endif
4461 char socket ();
4463 main ()
4465 return socket ();
4467 return 0;
4469 _ACEOF
4470 if ac_fn_c_try_link "$LINENO"; then :
4471 ac_cv_lib_socket_socket=yes
4472 else
4473 ac_cv_lib_socket_socket=no
4475 rm -f core conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4477 LIBS=$ac_check_lib_save_LIBS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4480 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4481 if test "x$ac_cv_lib_socket_socket" = xyes; then :
4482 cat >>confdefs.h <<_ACEOF
4483 #define HAVE_LIBSOCKET 1
4484 _ACEOF
4486 LIBS="-lsocket $LIBS"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdr_short in -lnsl" >&5
4491 $as_echo_n "checking for xdr_short in -lnsl... " >&6; }
4492 if ${ac_cv_lib_nsl_xdr_short+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 ac_check_lib_save_LIBS=$LIBS
4496 LIBS="-lnsl $LIBS"
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4500 /* Override any GCC internal prototype to avoid an error.
4501 Use char because int might match the return type of a GCC
4502 builtin and then its argument prototype would still apply. */
4503 #ifdef __cplusplus
4504 extern "C"
4505 #endif
4506 char xdr_short ();
4508 main ()
4510 return xdr_short ();
4512 return 0;
4514 _ACEOF
4515 if ac_fn_c_try_link "$LINENO"; then :
4516 ac_cv_lib_nsl_xdr_short=yes
4517 else
4518 ac_cv_lib_nsl_xdr_short=no
4520 rm -f core conftest.err conftest.$ac_objext \
4521 conftest$ac_exeext conftest.$ac_ext
4522 LIBS=$ac_check_lib_save_LIBS
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_xdr_short" >&5
4525 $as_echo "$ac_cv_lib_nsl_xdr_short" >&6; }
4526 if test "x$ac_cv_lib_nsl_xdr_short" = xyes; then :
4527 cat >>confdefs.h <<_ACEOF
4528 #define HAVE_LIBNSL 1
4529 _ACEOF
4531 LIBS="-lnsl $LIBS"
4538 # Macro definitions
4539 # ===========================================================================
4541 # Check whether the compiler for the current language is SunPRO.
4545 # bor_IS_VALID_OPTION macro checks if the current compiler, selected by
4546 # AC_LANG, supports option specified as the 1st parameter. The test fails if
4547 # the compiler returns an error or in case something is writeen to stderr.
4548 # For example: bor_VALID_OPT(fPIC)
4552 # This macro expands DIR and assigns it to RET.
4553 # If DIR is NONE, then it's replaced by DEFAULT.
4555 # Based on AC_DEFINE_DIR
4557 # Examples:
4559 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
4563 # adl_NORMALIZE_PATH
4565 # - empty paths are changed to '.'
4566 # - trailing slashes are removed
4567 # - repeated slashes are squeezed except a leading doubled slash '//'
4568 # (which might indicate a networked disk on some OS).
4571 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4572 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4573 # are turned into backslashes, otherwise they are all turned into slashes.
4575 # This makes processing of DOS filenames quite easier, because you can turn a
4576 # filename to the Unix notation, make your processing, and turn it back to
4577 # original notation.
4585 # Checking characteristics of compilers and other programs
4586 # ===========================================================================
4587 if test "$ac_cv_c_compiler_gnu" = "yes"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
4589 $as_echo_n "checking whether preprocessor accepts -MM or -M... " >&6; }
4590 if ${sdcc_cv_MM+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 echo "#include <stdio.h>" >_test_.c
4594 echo "" >>_test_.c
4595 $CPP -v -MM _test_.c 1>&5 2>&5
4596 if test "$?" = "0"; then
4597 sdcc_cv_MM="-MM"
4598 else
4599 sdcc_cv_MM="-M"
4601 rm -f _test_.*
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
4604 $as_echo "$sdcc_cv_MM" >&6; }
4606 # This is the first time when CFLAGS are set/modified!!
4607 ac_test_CFLAGS=${CFLAGS+set}
4608 bor_save_CFLAGS=$CFLAGS
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C accepts -ggdb" >&5
4610 $as_echo_n "checking whether $C accepts -ggdb... " >&6; }
4611 if ${bor_cv_c_ggdb+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 bor_save_c_werror_flag=$ac_c_werror_flag
4615 ac_c_werror_flag=yes
4617 CFLAGS="-ggdb"
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4622 main ()
4626 return 0;
4628 _ACEOF
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 bor_cv_c_ggdb=yes
4631 else
4632 bor_cv_c_ggdb=no
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ac_c_werror_flag=$bor_save_c_werror_flag
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bor_cv_c_ggdb" >&5
4638 $as_echo "$bor_cv_c_ggdb" >&6; }
4639 CFLAGS=$bor_save_CFLAGS
4641 if test "$bor_cv_c_ggdb" = "yes"; then
4642 CFLAGS="-ggdb ${CFLAGS}"
4645 ac_test_CFLAGS=${CFLAGS+set}
4646 bor_save_CFLAGS=$CFLAGS
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C accepts -pipe" >&5
4648 $as_echo_n "checking whether $C accepts -pipe... " >&6; }
4649 if ${bor_cv_c_pipe+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 bor_save_c_werror_flag=$ac_c_werror_flag
4653 ac_c_werror_flag=yes
4655 CFLAGS="-pipe"
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4660 main ()
4664 return 0;
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 bor_cv_c_pipe=yes
4669 else
4670 bor_cv_c_pipe=no
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 ac_c_werror_flag=$bor_save_c_werror_flag
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bor_cv_c_pipe" >&5
4676 $as_echo "$bor_cv_c_pipe" >&6; }
4677 CFLAGS=$bor_save_CFLAGS
4679 if test "$bor_cv_c_pipe" = "yes"; then
4680 CFLAGS="-pipe $CFLAGS"
4683 WALL_FLAG="-Wall"
4684 C99_FLAG="--std=c99"
4685 MAKEDEP="$CC $sdcc_cv_MM"
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
4688 $as_echo_n "checking whether we are using the SunPRO C compiler... " >&6; }
4689 if ${bor_cv_c_compiler_sunpro+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4696 main ()
4698 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
4699 choke me
4700 #endif
4703 return 0;
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 bor_compiler_sunpro=yes
4708 else
4709 bor_compiler_sunpro=no
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 bor_cv_c_compiler_sunpro=$bor_compiler_sunpro
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bor_cv_c_compiler_sunpro" >&5
4716 $as_echo "$bor_cv_c_compiler_sunpro" >&6; }
4717 if test "$bor_cv_c_compiler_sunpro" = "yes"; then
4718 C99_FLAG="-xc99"
4719 CFLAGS="-xO2 ${C99_FLAG} ${CFLAGS}"
4720 WALL_FLAG=
4721 MAKEDEP="$CC ${C99_FLAG} -xM1"
4729 # Try to append a c99 flag
4730 # -------------------------------------------------------------------------
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4732 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4733 if ${ac_cv_prog_cc_c99+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 ac_cv_prog_cc_c99=no
4737 ac_save_CC=$CC
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 #include <stdarg.h>
4741 #include <stdbool.h>
4742 #include <stdlib.h>
4743 #include <wchar.h>
4744 #include <stdio.h>
4746 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4747 #define debug(...) fprintf (stderr, __VA_ARGS__)
4748 #define showlist(...) puts (#__VA_ARGS__)
4749 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4750 static void
4751 test_varargs_macros (void)
4753 int x = 1234;
4754 int y = 5678;
4755 debug ("Flag");
4756 debug ("X = %d\n", x);
4757 showlist (The first, second, and third items.);
4758 report (x>y, "x is %d but y is %d", x, y);
4761 // Check long long types.
4762 #define BIG64 18446744073709551615ull
4763 #define BIG32 4294967295ul
4764 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4765 #if !BIG_OK
4766 your preprocessor is broken;
4767 #endif
4768 #if BIG_OK
4769 #else
4770 your preprocessor is broken;
4771 #endif
4772 static long long int bignum = -9223372036854775807LL;
4773 static unsigned long long int ubignum = BIG64;
4775 struct incomplete_array
4777 int datasize;
4778 double data[];
4781 struct named_init {
4782 int number;
4783 const wchar_t *name;
4784 double average;
4787 typedef const char *ccp;
4789 static inline int
4790 test_restrict (ccp restrict text)
4792 // See if C++-style comments work.
4793 // Iterate through items via the restricted pointer.
4794 // Also check for declarations in for loops.
4795 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4796 continue;
4797 return 0;
4800 // Check varargs and va_copy.
4801 static void
4802 test_varargs (const char *format, ...)
4804 va_list args;
4805 va_start (args, format);
4806 va_list args_copy;
4807 va_copy (args_copy, args);
4809 const char *str;
4810 int number;
4811 float fnumber;
4813 while (*format)
4815 switch (*format++)
4817 case 's': // string
4818 str = va_arg (args_copy, const char *);
4819 break;
4820 case 'd': // int
4821 number = va_arg (args_copy, int);
4822 break;
4823 case 'f': // float
4824 fnumber = va_arg (args_copy, double);
4825 break;
4826 default:
4827 break;
4830 va_end (args_copy);
4831 va_end (args);
4835 main ()
4838 // Check bool.
4839 _Bool success = false;
4841 // Check restrict.
4842 if (test_restrict ("String literal") == 0)
4843 success = true;
4844 char *restrict newvar = "Another string";
4846 // Check varargs.
4847 test_varargs ("s, d' f .", "string", 65, 34.234);
4848 test_varargs_macros ();
4850 // Check flexible array members.
4851 struct incomplete_array *ia =
4852 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4853 ia->datasize = 10;
4854 for (int i = 0; i < ia->datasize; ++i)
4855 ia->data[i] = i * 1.234;
4857 // Check named initializers.
4858 struct named_init ni = {
4859 .number = 34,
4860 .name = L"Test wide string",
4861 .average = 543.34343,
4864 ni.number = 58;
4866 int dynamic_array[ni.number];
4867 dynamic_array[ni.number - 1] = 543;
4869 // work around unused variable warnings
4870 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4871 || dynamic_array[ni.number - 1] != 543);
4874 return 0;
4876 _ACEOF
4877 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4879 CC="$ac_save_CC $ac_arg"
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_cv_prog_cc_c99=$ac_arg
4883 rm -f core conftest.err conftest.$ac_objext
4884 test "x$ac_cv_prog_cc_c99" != "xno" && break
4885 done
4886 rm -f conftest.$ac_ext
4887 CC=$ac_save_CC
4890 # AC_CACHE_VAL
4891 case "x$ac_cv_prog_cc_c99" in
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894 $as_echo "none needed" >&6; } ;;
4895 xno)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897 $as_echo "unsupported" >&6; } ;;
4899 CC="$CC $ac_cv_prog_cc_c99"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4901 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4902 esac
4903 if test "x$ac_cv_prog_cc_c99" != xno; then :
4908 if test "$ac_cv_prog_cc_c99" != "no"; then
4909 CFLAGS="$ac_cv_prog_cc_c99 ${CFLAGS}"
4912 # Set standard installation paths
4913 # ===========================================================================
4915 # In the Makefiles we need paths with '/' as directory separator, even if
4916 # crosscompiling for Win32.
4917 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
4918 # The variables in the Makefiles are replaced by AC_SUBST()
4920 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
4922 # The macros are expanded for the header.
4923 # The variables in the header are replaced by AC_*DEFINE*()
4924 # sdccconf_h_dir_separator contains a backslash.
4926 if test "x${sdccconf_h_dir_separator}" = "x"; then
4927 sdccconf_h_dir_separator="/"
4930 # Makefiles
4931 ###########
4933 # lib_dir_suffix:
4934 # *nix default: "sdcc/lib"
4936 if test "${lib_dir_suffix}" = ""; then
4937 lib_dir_suffix="sdcc/lib"
4943 # sdccconf.h
4944 ############
4947 cat >>confdefs.h <<_ACEOF
4948 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
4949 _ACEOF
4952 # datadir:
4953 # default: "${prefix}/share"
4955 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4957 ac_expand=$datadir
4958 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
4959 ac_expand=`eval echo $ac_expand`
4960 expanded_datadir=`eval echo $ac_expand`
4963 ac_ndu=$expanded_datadir
4964 case ":$ac_ndu:" in
4965 ::) ac_ndu='.' ;;
4966 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
4967 :*:) ;;
4968 esac
4969 case $sdccconf_h_dir_separator in
4971 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
4972 s,^[\\/],\\\\\\\\,'` ;;
4974 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
4975 esac
4977 cat >>confdefs.h <<_ACEOF
4978 #define DATADIR "${ac_ndu}"
4979 _ACEOF
4983 # lib suffix
4984 norm_lib_dir_suffix=${lib_dir_suffix}
4985 case ":$norm_lib_dir_suffix:" in
4986 ::) norm_lib_dir_suffix='.' ;;
4987 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
4988 :*:) ;;
4989 esac
4990 case $sdccconf_h_dir_separator in
4992 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
4993 s,^[\\/],\\\\\\\\,'` ;;
4995 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
4996 esac
4998 cat >>confdefs.h <<_ACEOF
4999 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5000 _ACEOF
5004 # Generating output files
5005 # ===========================================================================
5006 ac_config_files="$ac_config_files Makefile"
5008 cat >confcache <<\_ACEOF
5009 # This file is a shell script that caches the results of configure
5010 # tests run on this system so they can be shared between configure
5011 # scripts and configure runs, see configure's option --config-cache.
5012 # It is not useful on other systems. If it contains results you don't
5013 # want to keep, you may remove or edit it.
5015 # config.status only pays attention to the cache file if you give it
5016 # the --recheck option to rerun configure.
5018 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5019 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5020 # following values.
5022 _ACEOF
5024 # The following way of writing the cache mishandles newlines in values,
5025 # but we know of no workaround that is simple, portable, and efficient.
5026 # So, we kill variables containing newlines.
5027 # Ultrix sh set writes to stderr and can't be redirected directly,
5028 # and sets the high bit in the cache file unless we assign to the vars.
5030 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5031 eval ac_val=\$$ac_var
5032 case $ac_val in #(
5033 *${as_nl}*)
5034 case $ac_var in #(
5035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5037 esac
5038 case $ac_var in #(
5039 _ | IFS | as_nl) ;; #(
5040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5041 *) { eval $ac_var=; unset $ac_var;} ;;
5042 esac ;;
5043 esac
5044 done
5046 (set) 2>&1 |
5047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5048 *${as_nl}ac_space=\ *)
5049 # `set' does not quote correctly, so add quotes: double-quote
5050 # substitution turns \\\\ into \\, and sed turns \\ into \.
5051 sed -n \
5052 "s/'/'\\\\''/g;
5053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5054 ;; #(
5056 # `set' quotes correctly as required by POSIX, so do not add quotes.
5057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5059 esac |
5060 sort
5062 sed '
5063 /^ac_cv_env_/b end
5064 t clear
5065 :clear
5066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5067 t end
5068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5069 :end' >>confcache
5070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5071 if test -w "$cache_file"; then
5072 if test "x$cache_file" != "x/dev/null"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5074 $as_echo "$as_me: updating cache $cache_file" >&6;}
5075 if test ! -f "$cache_file" || test -h "$cache_file"; then
5076 cat confcache >"$cache_file"
5077 else
5078 case $cache_file in #(
5079 */* | ?:*)
5080 mv -f confcache "$cache_file"$$ &&
5081 mv -f "$cache_file"$$ "$cache_file" ;; #(
5083 mv -f confcache "$cache_file" ;;
5084 esac
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5089 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5092 rm -f confcache
5094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5095 # Let make expand exec_prefix.
5096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5098 DEFS=-DHAVE_CONFIG_H
5100 ac_libobjs=
5101 ac_ltlibobjs=
5103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5104 # 1. Remove the extension, and $U if already installed.
5105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5108 # will be set to the directory where LIBOBJS objects are built.
5109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5111 done
5112 LIBOBJS=$ac_libobjs
5114 LTLIBOBJS=$ac_ltlibobjs
5118 : "${CONFIG_STATUS=./config.status}"
5119 ac_write_fail=0
5120 ac_clean_files_save=$ac_clean_files
5121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5123 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5124 as_write_fail=0
5125 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5126 #! $SHELL
5127 # Generated by $as_me.
5128 # Run this file to recreate the current configuration.
5129 # Compiler output produced by configure, useful for debugging
5130 # configure, is in config.log if it exists.
5132 debug=false
5133 ac_cs_recheck=false
5134 ac_cs_silent=false
5136 SHELL=\${CONFIG_SHELL-$SHELL}
5137 export SHELL
5138 _ASEOF
5139 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5140 ## -------------------- ##
5141 ## M4sh Initialization. ##
5142 ## -------------------- ##
5144 # Be more Bourne compatible
5145 DUALCASE=1; export DUALCASE # for MKS sh
5146 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5147 emulate sh
5148 NULLCMD=:
5149 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5150 # is contrary to our usage. Disable this feature.
5151 alias -g '${1+"$@"}'='"$@"'
5152 setopt NO_GLOB_SUBST
5153 else
5154 case `(set -o) 2>/dev/null` in #(
5155 *posix*) :
5156 set -o posix ;; #(
5157 *) :
5159 esac
5163 as_nl='
5165 export as_nl
5166 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5167 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5170 # Prefer a ksh shell builtin over an external printf program on Solaris,
5171 # but without wasting forks for bash or zsh.
5172 if test -z "$BASH_VERSION$ZSH_VERSION" \
5173 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5174 as_echo='print -r --'
5175 as_echo_n='print -rn --'
5176 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5177 as_echo='printf %s\n'
5178 as_echo_n='printf %s'
5179 else
5180 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5181 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5182 as_echo_n='/usr/ucb/echo -n'
5183 else
5184 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5185 as_echo_n_body='eval
5186 arg=$1;
5187 case $arg in #(
5188 *"$as_nl"*)
5189 expr "X$arg" : "X\\(.*\\)$as_nl";
5190 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5191 esac;
5192 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5194 export as_echo_n_body
5195 as_echo_n='sh -c $as_echo_n_body as_echo'
5197 export as_echo_body
5198 as_echo='sh -c $as_echo_body as_echo'
5201 # The user is always right.
5202 if test "${PATH_SEPARATOR+set}" != set; then
5203 PATH_SEPARATOR=:
5204 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5205 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5206 PATH_SEPARATOR=';'
5211 # IFS
5212 # We need space, tab and new line, in precisely that order. Quoting is
5213 # there to prevent editors from complaining about space-tab.
5214 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5215 # splitting by setting IFS to empty value.)
5216 IFS=" "" $as_nl"
5218 # Find who we are. Look in the path if we contain no directory separator.
5219 as_myself=
5220 case $0 in #((
5221 *[\\/]* ) as_myself=$0 ;;
5222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5228 done
5229 IFS=$as_save_IFS
5232 esac
5233 # We did not find ourselves, most probably we were run as `sh COMMAND'
5234 # in which case we are not to be found in the path.
5235 if test "x$as_myself" = x; then
5236 as_myself=$0
5238 if test ! -f "$as_myself"; then
5239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5240 exit 1
5243 # Unset variables that we do not need and which cause bugs (e.g. in
5244 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5245 # suppresses any "Segmentation fault" message there. '((' could
5246 # trigger a bug in pdksh 5.2.14.
5247 for as_var in BASH_ENV ENV MAIL MAILPATH
5248 do eval test x\${$as_var+set} = xset \
5249 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5250 done
5251 PS1='$ '
5252 PS2='> '
5253 PS4='+ '
5255 # NLS nuisances.
5256 LC_ALL=C
5257 export LC_ALL
5258 LANGUAGE=C
5259 export LANGUAGE
5261 # CDPATH.
5262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5265 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5266 # ----------------------------------------
5267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5269 # script with STATUS, using 1 if that was 0.
5270 as_fn_error ()
5272 as_status=$1; test $as_status -eq 0 && as_status=1
5273 if test "$4"; then
5274 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5277 $as_echo "$as_me: error: $2" >&2
5278 as_fn_exit $as_status
5279 } # as_fn_error
5282 # as_fn_set_status STATUS
5283 # -----------------------
5284 # Set $? to STATUS, without forking.
5285 as_fn_set_status ()
5287 return $1
5288 } # as_fn_set_status
5290 # as_fn_exit STATUS
5291 # -----------------
5292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5293 as_fn_exit ()
5295 set +e
5296 as_fn_set_status $1
5297 exit $1
5298 } # as_fn_exit
5300 # as_fn_unset VAR
5301 # ---------------
5302 # Portably unset VAR.
5303 as_fn_unset ()
5305 { eval $1=; unset $1;}
5307 as_unset=as_fn_unset
5308 # as_fn_append VAR VALUE
5309 # ----------------------
5310 # Append the text in VALUE to the end of the definition contained in VAR. Take
5311 # advantage of any shell optimizations that allow amortized linear growth over
5312 # repeated appends, instead of the typical quadratic growth present in naive
5313 # implementations.
5314 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5315 eval 'as_fn_append ()
5317 eval $1+=\$2
5319 else
5320 as_fn_append ()
5322 eval $1=\$$1\$2
5324 fi # as_fn_append
5326 # as_fn_arith ARG...
5327 # ------------------
5328 # Perform arithmetic evaluation on the ARGs, and store the result in the
5329 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5330 # must be portable across $(()) and expr.
5331 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5332 eval 'as_fn_arith ()
5334 as_val=$(( $* ))
5336 else
5337 as_fn_arith ()
5339 as_val=`expr "$@" || test $? -eq 1`
5341 fi # as_fn_arith
5344 if expr a : '\(a\)' >/dev/null 2>&1 &&
5345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5346 as_expr=expr
5347 else
5348 as_expr=false
5351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5352 as_basename=basename
5353 else
5354 as_basename=false
5357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5358 as_dirname=dirname
5359 else
5360 as_dirname=false
5363 as_me=`$as_basename -- "$0" ||
5364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5365 X"$0" : 'X\(//\)$' \| \
5366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5367 $as_echo X/"$0" |
5368 sed '/^.*\/\([^/][^/]*\)\/*$/{
5369 s//\1/
5372 /^X\/\(\/\/\)$/{
5373 s//\1/
5376 /^X\/\(\/\).*/{
5377 s//\1/
5380 s/.*/./; q'`
5382 # Avoid depending upon Character Ranges.
5383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5386 as_cr_digits='0123456789'
5387 as_cr_alnum=$as_cr_Letters$as_cr_digits
5389 ECHO_C= ECHO_N= ECHO_T=
5390 case `echo -n x` in #(((((
5391 -n*)
5392 case `echo 'xy\c'` in
5393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5394 xy) ECHO_C='\c';;
5395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5396 ECHO_T=' ';;
5397 esac;;
5399 ECHO_N='-n';;
5400 esac
5402 rm -f conf$$ conf$$.exe conf$$.file
5403 if test -d conf$$.dir; then
5404 rm -f conf$$.dir/conf$$.file
5405 else
5406 rm -f conf$$.dir
5407 mkdir conf$$.dir 2>/dev/null
5409 if (echo >conf$$.file) 2>/dev/null; then
5410 if ln -s conf$$.file conf$$ 2>/dev/null; then
5411 as_ln_s='ln -s'
5412 # ... but there are two gotchas:
5413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5415 # In both cases, we have to default to `cp -pR'.
5416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5417 as_ln_s='cp -pR'
5418 elif ln conf$$.file conf$$ 2>/dev/null; then
5419 as_ln_s=ln
5420 else
5421 as_ln_s='cp -pR'
5423 else
5424 as_ln_s='cp -pR'
5426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5427 rmdir conf$$.dir 2>/dev/null
5430 # as_fn_mkdir_p
5431 # -------------
5432 # Create "$as_dir" as a directory, including parents if necessary.
5433 as_fn_mkdir_p ()
5436 case $as_dir in #(
5437 -*) as_dir=./$as_dir;;
5438 esac
5439 test -d "$as_dir" || eval $as_mkdir_p || {
5440 as_dirs=
5441 while :; do
5442 case $as_dir in #(
5443 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5444 *) as_qdir=$as_dir;;
5445 esac
5446 as_dirs="'$as_qdir' $as_dirs"
5447 as_dir=`$as_dirname -- "$as_dir" ||
5448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5449 X"$as_dir" : 'X\(//\)[^/]' \| \
5450 X"$as_dir" : 'X\(//\)$' \| \
5451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5452 $as_echo X"$as_dir" |
5453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5454 s//\1/
5457 /^X\(\/\/\)[^/].*/{
5458 s//\1/
5461 /^X\(\/\/\)$/{
5462 s//\1/
5465 /^X\(\/\).*/{
5466 s//\1/
5469 s/.*/./; q'`
5470 test -d "$as_dir" && break
5471 done
5472 test -z "$as_dirs" || eval "mkdir $as_dirs"
5473 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5476 } # as_fn_mkdir_p
5477 if mkdir -p . 2>/dev/null; then
5478 as_mkdir_p='mkdir -p "$as_dir"'
5479 else
5480 test -d ./-p && rmdir ./-p
5481 as_mkdir_p=false
5485 # as_fn_executable_p FILE
5486 # -----------------------
5487 # Test if FILE is an executable regular file.
5488 as_fn_executable_p ()
5490 test -f "$1" && test -x "$1"
5491 } # as_fn_executable_p
5492 as_test_x='test -x'
5493 as_executable_p=as_fn_executable_p
5495 # Sed expression to map a string onto a valid CPP name.
5496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5498 # Sed expression to map a string onto a valid variable name.
5499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5502 exec 6>&1
5503 ## ----------------------------------- ##
5504 ## Main body of $CONFIG_STATUS script. ##
5505 ## ----------------------------------- ##
5506 _ASEOF
5507 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5510 # Save the log message, to keep $0 and so on meaningful, and to
5511 # report actual input values of CONFIG_FILES etc. instead of their
5512 # values after options handling.
5513 ac_log="
5514 This file was extended by $as_me, which was
5515 generated by GNU Autoconf 2.69. Invocation command line was
5517 CONFIG_FILES = $CONFIG_FILES
5518 CONFIG_HEADERS = $CONFIG_HEADERS
5519 CONFIG_LINKS = $CONFIG_LINKS
5520 CONFIG_COMMANDS = $CONFIG_COMMANDS
5521 $ $0 $@
5523 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5526 _ACEOF
5528 case $ac_config_files in *"
5529 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5530 esac
5532 case $ac_config_headers in *"
5533 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5534 esac
5537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5538 # Files that config.status was made for.
5539 config_files="$ac_config_files"
5540 config_headers="$ac_config_headers"
5542 _ACEOF
5544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5545 ac_cs_usage="\
5546 \`$as_me' instantiates files and other configuration actions
5547 from templates according to the current configuration. Unless the files
5548 and actions are specified as TAGs, all are instantiated by default.
5550 Usage: $0 [OPTION]... [TAG]...
5552 -h, --help print this help, then exit
5553 -V, --version print version number and configuration settings, then exit
5554 --config print configuration, then exit
5555 -q, --quiet, --silent
5556 do not print progress messages
5557 -d, --debug don't remove temporary files
5558 --recheck update $as_me by reconfiguring in the same conditions
5559 --file=FILE[:TEMPLATE]
5560 instantiate the configuration file FILE
5561 --header=FILE[:TEMPLATE]
5562 instantiate the configuration header FILE
5564 Configuration files:
5565 $config_files
5567 Configuration headers:
5568 $config_headers
5570 Report bugs to the package provider."
5572 _ACEOF
5573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5574 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5575 ac_cs_version="\\
5576 config.status
5577 configured by $0, generated by GNU Autoconf 2.69,
5578 with options \\"\$ac_cs_config\\"
5580 Copyright (C) 2012 Free Software Foundation, Inc.
5581 This config.status script is free software; the Free Software Foundation
5582 gives unlimited permission to copy, distribute and modify it."
5584 ac_pwd='$ac_pwd'
5585 srcdir='$srcdir'
5586 INSTALL='$INSTALL'
5587 test -n "\$AWK" || AWK=awk
5588 _ACEOF
5590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5591 # The default lists apply if the user does not specify any file.
5592 ac_need_defaults=:
5593 while test $# != 0
5595 case $1 in
5596 --*=?*)
5597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5599 ac_shift=:
5601 --*=)
5602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5603 ac_optarg=
5604 ac_shift=:
5607 ac_option=$1
5608 ac_optarg=$2
5609 ac_shift=shift
5611 esac
5613 case $ac_option in
5614 # Handling of the options.
5615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5616 ac_cs_recheck=: ;;
5617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5618 $as_echo "$ac_cs_version"; exit ;;
5619 --config | --confi | --conf | --con | --co | --c )
5620 $as_echo "$ac_cs_config"; exit ;;
5621 --debug | --debu | --deb | --de | --d | -d )
5622 debug=: ;;
5623 --file | --fil | --fi | --f )
5624 $ac_shift
5625 case $ac_optarg in
5626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5627 '') as_fn_error $? "missing file argument" ;;
5628 esac
5629 as_fn_append CONFIG_FILES " '$ac_optarg'"
5630 ac_need_defaults=false;;
5631 --header | --heade | --head | --hea )
5632 $ac_shift
5633 case $ac_optarg in
5634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5635 esac
5636 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5637 ac_need_defaults=false;;
5638 --he | --h)
5639 # Conflict between --help and --header
5640 as_fn_error $? "ambiguous option: \`$1'
5641 Try \`$0 --help' for more information.";;
5642 --help | --hel | -h )
5643 $as_echo "$ac_cs_usage"; exit ;;
5644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5646 ac_cs_silent=: ;;
5648 # This is an error.
5649 -*) as_fn_error $? "unrecognized option: \`$1'
5650 Try \`$0 --help' for more information." ;;
5652 *) as_fn_append ac_config_targets " $1"
5653 ac_need_defaults=false ;;
5655 esac
5656 shift
5657 done
5659 ac_configure_extra_args=
5661 if $ac_cs_silent; then
5662 exec 6>/dev/null
5663 ac_configure_extra_args="$ac_configure_extra_args --silent"
5666 _ACEOF
5667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5668 if \$ac_cs_recheck; then
5669 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5670 shift
5671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5672 CONFIG_SHELL='$SHELL'
5673 export CONFIG_SHELL
5674 exec "\$@"
5677 _ACEOF
5678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5679 exec 5>>config.log
5681 echo
5682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5683 ## Running $as_me. ##
5684 _ASBOX
5685 $as_echo "$ac_log"
5686 } >&5
5688 _ACEOF
5689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5690 _ACEOF
5692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5694 # Handling of arguments.
5695 for ac_config_target in $ac_config_targets
5697 case $ac_config_target in
5698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5699 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5701 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5702 esac
5703 done
5706 # If the user did not use the arguments to specify the items to instantiate,
5707 # then the envvar interface is used. Set only those that are not.
5708 # We use the long form for the default assignment because of an extremely
5709 # bizarre bug on SunOS 4.1.3.
5710 if $ac_need_defaults; then
5711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5715 # Have a temporary directory for convenience. Make it in the build tree
5716 # simply because there is no reason against having it here, and in addition,
5717 # creating and moving files from /tmp can sometimes cause problems.
5718 # Hook for its removal unless debugging.
5719 # Note that there is a small window in which the directory will not be cleaned:
5720 # after its creation but before its name has been assigned to `$tmp'.
5721 $debug ||
5723 tmp= ac_tmp=
5724 trap 'exit_status=$?
5725 : "${ac_tmp:=$tmp}"
5726 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5728 trap 'as_fn_exit 1' 1 2 13 15
5730 # Create a (secure) tmp directory for tmp files.
5733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5734 test -d "$tmp"
5735 } ||
5737 tmp=./conf$$-$RANDOM
5738 (umask 077 && mkdir "$tmp")
5739 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5740 ac_tmp=$tmp
5742 # Set up the scripts for CONFIG_FILES section.
5743 # No need to generate them if there are no CONFIG_FILES.
5744 # This happens for instance with `./config.status config.h'.
5745 if test -n "$CONFIG_FILES"; then
5748 ac_cr=`echo X | tr X '\015'`
5749 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5750 # But we know of no other shell where ac_cr would be empty at this
5751 # point, so we can use a bashism as a fallback.
5752 if test "x$ac_cr" = x; then
5753 eval ac_cr=\$\'\\r\'
5755 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5756 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5757 ac_cs_awk_cr='\\r'
5758 else
5759 ac_cs_awk_cr=$ac_cr
5762 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5763 _ACEOF
5767 echo "cat >conf$$subs.awk <<_ACEOF" &&
5768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5769 echo "_ACEOF"
5770 } >conf$$subs.sh ||
5771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5772 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5773 ac_delim='%!_!# '
5774 for ac_last_try in false false false false false :; do
5775 . ./conf$$subs.sh ||
5776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5778 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5779 if test $ac_delim_n = $ac_delim_num; then
5780 break
5781 elif $ac_last_try; then
5782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5783 else
5784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5786 done
5787 rm -f conf$$subs.sh
5789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5790 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5791 _ACEOF
5792 sed -n '
5794 s/^/S["/; s/!.*/"]=/
5797 s/^[^!]*!//
5798 :repl
5799 t repl
5800 s/'"$ac_delim"'$//
5801 t delim
5804 s/\(.\{148\}\)..*/\1/
5805 t more1
5806 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5809 b repl
5810 :more1
5811 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5814 s/.\{148\}//
5815 t nl
5816 :delim
5818 s/\(.\{148\}\)..*/\1/
5819 t more2
5820 s/["\\]/\\&/g; s/^/"/; s/$/"/
5823 :more2
5824 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5827 s/.\{148\}//
5828 t delim
5829 ' <conf$$subs.awk | sed '
5830 /^[^""]/{
5832 s/\n//
5834 ' >>$CONFIG_STATUS || ac_write_fail=1
5835 rm -f conf$$subs.awk
5836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5837 _ACAWK
5838 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5839 for (key in S) S_is_set[key] = 1
5840 FS = "\a"
5844 line = $ 0
5845 nfields = split(line, field, "@")
5846 substed = 0
5847 len = length(field[1])
5848 for (i = 2; i < nfields; i++) {
5849 key = field[i]
5850 keylen = length(key)
5851 if (S_is_set[key]) {
5852 value = S[key]
5853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5854 len += length(value) + length(field[++i])
5855 substed = 1
5856 } else
5857 len += 1 + keylen
5860 print line
5863 _ACAWK
5864 _ACEOF
5865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5866 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5867 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5868 else
5870 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5871 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5872 _ACEOF
5874 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5875 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5876 # trailing colons and then remove the whole line if VPATH becomes empty
5877 # (actually we leave an empty line to preserve line numbers).
5878 if test "x$srcdir" = x.; then
5879 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5881 s///
5882 s/^/:/
5883 s/[ ]*$/:/
5884 s/:\$(srcdir):/:/g
5885 s/:\${srcdir}:/:/g
5886 s/:@srcdir@:/:/g
5887 s/^:*//
5888 s/:*$//
5890 s/\(=[ ]*\).*/\1/
5892 s/\n//
5893 s/^[^=]*=[ ]*$//
5897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5898 fi # test -n "$CONFIG_FILES"
5900 # Set up the scripts for CONFIG_HEADERS section.
5901 # No need to generate them if there are no CONFIG_HEADERS.
5902 # This happens for instance with `./config.status Makefile'.
5903 if test -n "$CONFIG_HEADERS"; then
5904 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5905 BEGIN {
5906 _ACEOF
5908 # Transform confdefs.h into an awk script `defines.awk', embedded as
5909 # here-document in config.status, that substitutes the proper values into
5910 # config.h.in to produce config.h.
5912 # Create a delimiter string that does not exist in confdefs.h, to ease
5913 # handling of long lines.
5914 ac_delim='%!_!# '
5915 for ac_last_try in false false :; do
5916 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5917 if test -z "$ac_tt"; then
5918 break
5919 elif $ac_last_try; then
5920 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5921 else
5922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5924 done
5926 # For the awk script, D is an array of macro values keyed by name,
5927 # likewise P contains macro parameters if any. Preserve backslash
5928 # newline sequences.
5930 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5931 sed -n '
5932 s/.\{148\}/&'"$ac_delim"'/g
5933 t rset
5934 :rset
5935 s/^[ ]*#[ ]*define[ ][ ]*/ /
5936 t def
5938 :def
5939 s/\\$//
5940 t bsnl
5941 s/["\\]/\\&/g
5942 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5943 D["\1"]=" \3"/p
5944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5946 :bsnl
5947 s/["\\]/\\&/g
5948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5949 D["\1"]=" \3\\\\\\n"\\/p
5950 t cont
5951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5952 t cont
5954 :cont
5956 s/.\{148\}/&'"$ac_delim"'/g
5957 t clear
5958 :clear
5959 s/\\$//
5960 t bsnlc
5961 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5963 :bsnlc
5964 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5965 b cont
5966 ' <confdefs.h | sed '
5967 s/'"$ac_delim"'/"\\\
5968 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5971 for (key in D) D_is_set[key] = 1
5972 FS = "\a"
5974 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5975 line = \$ 0
5976 split(line, arg, " ")
5977 if (arg[1] == "#") {
5978 defundef = arg[2]
5979 mac1 = arg[3]
5980 } else {
5981 defundef = substr(arg[1], 2)
5982 mac1 = arg[2]
5984 split(mac1, mac2, "(") #)
5985 macro = mac2[1]
5986 prefix = substr(line, 1, index(line, defundef) - 1)
5987 if (D_is_set[macro]) {
5988 # Preserve the white space surrounding the "#".
5989 print prefix "define", macro P[macro] D[macro]
5990 next
5991 } else {
5992 # Replace #undef with comments. This is necessary, for example,
5993 # in the case of _POSIX_SOURCE, which is predefined and required
5994 # on some systems where configure will not decide to define it.
5995 if (defundef == "undef") {
5996 print "/*", prefix defundef, macro, "*/"
5997 next
6001 { print }
6002 _ACAWK
6003 _ACEOF
6004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6005 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6006 fi # test -n "$CONFIG_HEADERS"
6009 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6010 shift
6011 for ac_tag
6013 case $ac_tag in
6014 :[FHLC]) ac_mode=$ac_tag; continue;;
6015 esac
6016 case $ac_mode$ac_tag in
6017 :[FHL]*:*);;
6018 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6019 :[FH]-) ac_tag=-:-;;
6020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6021 esac
6022 ac_save_IFS=$IFS
6023 IFS=:
6024 set x $ac_tag
6025 IFS=$ac_save_IFS
6026 shift
6027 ac_file=$1
6028 shift
6030 case $ac_mode in
6031 :L) ac_source=$1;;
6032 :[FH])
6033 ac_file_inputs=
6034 for ac_f
6036 case $ac_f in
6037 -) ac_f="$ac_tmp/stdin";;
6038 *) # Look for the file first in the build tree, then in the source tree
6039 # (if the path is not absolute). The absolute path cannot be DOS-style,
6040 # because $ac_f cannot contain `:'.
6041 test -f "$ac_f" ||
6042 case $ac_f in
6043 [\\/$]*) false;;
6044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6045 esac ||
6046 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6047 esac
6048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6049 as_fn_append ac_file_inputs " '$ac_f'"
6050 done
6052 # Let's still pretend it is `configure' which instantiates (i.e., don't
6053 # use $as_me), people would be surprised to read:
6054 # /* config.h. Generated by config.status. */
6055 configure_input='Generated from '`
6056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6057 `' by configure.'
6058 if test x"$ac_file" != x-; then
6059 configure_input="$ac_file. $configure_input"
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6061 $as_echo "$as_me: creating $ac_file" >&6;}
6063 # Neutralize special characters interpreted by sed in replacement strings.
6064 case $configure_input in #(
6065 *\&* | *\|* | *\\* )
6066 ac_sed_conf_input=`$as_echo "$configure_input" |
6067 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6068 *) ac_sed_conf_input=$configure_input;;
6069 esac
6071 case $ac_tag in
6072 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6074 esac
6076 esac
6078 ac_dir=`$as_dirname -- "$ac_file" ||
6079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6080 X"$ac_file" : 'X\(//\)[^/]' \| \
6081 X"$ac_file" : 'X\(//\)$' \| \
6082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6083 $as_echo X"$ac_file" |
6084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6085 s//\1/
6088 /^X\(\/\/\)[^/].*/{
6089 s//\1/
6092 /^X\(\/\/\)$/{
6093 s//\1/
6096 /^X\(\/\).*/{
6097 s//\1/
6100 s/.*/./; q'`
6101 as_dir="$ac_dir"; as_fn_mkdir_p
6102 ac_builddir=.
6104 case "$ac_dir" in
6105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6108 # A ".." for each directory in $ac_dir_suffix.
6109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6110 case $ac_top_builddir_sub in
6111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6113 esac ;;
6114 esac
6115 ac_abs_top_builddir=$ac_pwd
6116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6117 # for backward compatibility:
6118 ac_top_builddir=$ac_top_build_prefix
6120 case $srcdir in
6121 .) # We are building in place.
6122 ac_srcdir=.
6123 ac_top_srcdir=$ac_top_builddir_sub
6124 ac_abs_top_srcdir=$ac_pwd ;;
6125 [\\/]* | ?:[\\/]* ) # Absolute name.
6126 ac_srcdir=$srcdir$ac_dir_suffix;
6127 ac_top_srcdir=$srcdir
6128 ac_abs_top_srcdir=$srcdir ;;
6129 *) # Relative name.
6130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6131 ac_top_srcdir=$ac_top_build_prefix$srcdir
6132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6133 esac
6134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6137 case $ac_mode in
6140 # CONFIG_FILE
6143 case $INSTALL in
6144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6146 esac
6147 _ACEOF
6149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6150 # If the template does not know about datarootdir, expand it.
6151 # FIXME: This hack should be removed a few years after 2.60.
6152 ac_datarootdir_hack=; ac_datarootdir_seen=
6153 ac_sed_dataroot='
6154 /datarootdir/ {
6158 /@datadir@/p
6159 /@docdir@/p
6160 /@infodir@/p
6161 /@localedir@/p
6162 /@mandir@/p'
6163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6164 *datarootdir*) ac_datarootdir_seen=yes;;
6165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6167 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6168 _ACEOF
6169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6170 ac_datarootdir_hack='
6171 s&@datadir@&$datadir&g
6172 s&@docdir@&$docdir&g
6173 s&@infodir@&$infodir&g
6174 s&@localedir@&$localedir&g
6175 s&@mandir@&$mandir&g
6176 s&\\\${datarootdir}&$datarootdir&g' ;;
6177 esac
6178 _ACEOF
6180 # Neutralize VPATH when `$srcdir' = `.'.
6181 # Shell code in configure.ac might set extrasub.
6182 # FIXME: do we really want to maintain this feature?
6183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6184 ac_sed_extra="$ac_vpsub
6185 $extrasub
6186 _ACEOF
6187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6190 s|@configure_input@|$ac_sed_conf_input|;t t
6191 s&@top_builddir@&$ac_top_builddir_sub&;t t
6192 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6193 s&@srcdir@&$ac_srcdir&;t t
6194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6195 s&@top_srcdir@&$ac_top_srcdir&;t t
6196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6197 s&@builddir@&$ac_builddir&;t t
6198 s&@abs_builddir@&$ac_abs_builddir&;t t
6199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6200 s&@INSTALL@&$ac_INSTALL&;t t
6201 $ac_datarootdir_hack
6203 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6204 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6206 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6207 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6209 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6211 which seems to be undefined. Please make sure it is defined" >&5
6212 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6213 which seems to be undefined. Please make sure it is defined" >&2;}
6215 rm -f "$ac_tmp/stdin"
6216 case $ac_file in
6217 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6218 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6219 esac \
6220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6224 # CONFIG_HEADER
6226 if test x"$ac_file" != x-; then
6228 $as_echo "/* $configure_input */" \
6229 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6230 } >"$ac_tmp/config.h" \
6231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6232 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6234 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6235 else
6236 rm -f "$ac_file"
6237 mv "$ac_tmp/config.h" "$ac_file" \
6238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6240 else
6241 $as_echo "/* $configure_input */" \
6242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6243 || as_fn_error $? "could not create -" "$LINENO" 5
6248 esac
6250 done # for ac_tag
6253 as_fn_exit 0
6254 _ACEOF
6255 ac_clean_files=$ac_clean_files_save
6257 test $ac_write_fail = 0 ||
6258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6261 # configure is writing to config.log, and then calls config.status.
6262 # config.status does its own redirection, appending to config.log.
6263 # Unfortunately, on DOS this fails, as config.log is still kept open
6264 # by configure, so config.status won't be able to write to it; its
6265 # output is simply discarded. So we exec the FD to /dev/null,
6266 # effectively closing config.log, so it can be properly (re)opened and
6267 # appended to by config.status. When coming back to configure, we
6268 # need to make the FD available again.
6269 if test "$no_create" != yes; then
6270 ac_cs_success=:
6271 ac_config_status_args=
6272 test "$silent" = yes &&
6273 ac_config_status_args="$ac_config_status_args --quiet"
6274 exec 5>/dev/null
6275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6276 exec 5>>config.log
6277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6278 # would make configure fail if this is the last instruction.
6279 $ac_cs_success || as_fn_exit 1
6281 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6283 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6287 # End of configure/configure.in