tree-optimization/114855 - more update_ssa speedup
[official-gcc.git] / c++tools / configure
blob1353479becaf4130efcde468fa3bda48d1f32fc7
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="c++tools"
586 ac_unique_file="server.cc"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 # include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 # include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 get_gcc_base_ver
626 EGREP
627 GREP
628 CXXCPP
629 LD_PICFLAG
630 enable_host_bind_now
631 PICFLAG
632 MAINTAINER
633 CXX_AUX_TOOLS
634 AUTOHEADER
635 AUTOCONF
636 OBJEXT
637 EXEEXT
638 ac_ct_CXX
639 CPPFLAGS
640 LDFLAGS
641 CXXFLAGS
643 INSTALL_DATA
644 INSTALL_SCRIPT
645 INSTALL_PROGRAM
646 target_os
647 target_vendor
648 target_cpu
649 target
650 host_os
651 host_vendor
652 host_cpu
653 host
654 target_noncanonical
655 build_os
656 build_vendor
657 build_cpu
658 build
659 target_alias
660 host_alias
661 build_alias
662 LIBS
663 ECHO_T
664 ECHO_N
665 ECHO_C
666 DEFS
667 mandir
668 localedir
669 libdir
670 psdir
671 pdfdir
672 dvidir
673 htmldir
674 infodir
675 docdir
676 oldincludedir
677 includedir
678 localstatedir
679 sharedstatedir
680 sysconfdir
681 datadir
682 datarootdir
683 libexecdir
684 sbindir
685 bindir
686 program_transform_name
687 prefix
688 exec_prefix
689 PACKAGE_URL
690 PACKAGE_BUGREPORT
691 PACKAGE_STRING
692 PACKAGE_VERSION
693 PACKAGE_TARNAME
694 PACKAGE_NAME
695 PATH_SEPARATOR
696 SHELL'
697 ac_subst_files=''
698 ac_user_opts='
699 enable_option_checking
700 enable_c___tools
701 enable_maintainer_mode
702 enable_checking
703 enable_default_pie
704 enable_host_pie
705 enable_host_bind_now
706 with_gcc_major_version_only
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
712 CXXFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
717 CXXCPP'
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 ac_unrecognized_opts=
724 ac_unrecognized_sep=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE}'
759 infodir='${datarootdir}/info'
760 htmldir='${docdir}'
761 dvidir='${docdir}'
762 pdfdir='${docdir}'
763 psdir='${docdir}'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
768 ac_prev=
769 ac_dashdash=
770 for ac_option
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
775 ac_prev=
776 continue
779 case $ac_option in
780 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 *=) ac_optarg= ;;
782 *) ac_optarg=yes ;;
783 esac
785 # Accept the important Cygnus configure options, so we can diagnose typos.
787 case $ac_dashdash$ac_option in
789 ac_dashdash=yes ;;
791 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 ac_prev=bindir ;;
793 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794 bindir=$ac_optarg ;;
796 -build | --build | --buil | --bui | --bu)
797 ac_prev=build_alias ;;
798 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799 build_alias=$ac_optarg ;;
801 -cache-file | --cache-file | --cache-fil | --cache-fi \
802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803 ac_prev=cache_file ;;
804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806 cache_file=$ac_optarg ;;
808 --config-cache | -C)
809 cache_file=config.cache ;;
811 -datadir | --datadir | --datadi | --datad)
812 ac_prev=datadir ;;
813 -datadir=* | --datadir=* | --datadi=* | --datad=*)
814 datadir=$ac_optarg ;;
816 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817 | --dataroo | --dataro | --datar)
818 ac_prev=datarootdir ;;
819 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821 datarootdir=$ac_optarg ;;
823 -disable-* | --disable-*)
824 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 as_fn_error $? "invalid feature name: $ac_useropt"
828 ac_useropt_orig=$ac_useropt
829 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
832 "enable_$ac_useropt"
833 "*) ;;
834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835 ac_unrecognized_sep=', ';;
836 esac
837 eval enable_$ac_useropt=no ;;
839 -docdir | --docdir | --docdi | --doc | --do)
840 ac_prev=docdir ;;
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842 docdir=$ac_optarg ;;
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 ac_prev=dvidir ;;
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847 dvidir=$ac_optarg ;;
849 -enable-* | --enable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=\$ac_optarg ;;
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1053 -with-* | --with-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid package name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "with_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval with_$ac_useropt=\$ac_optarg ;;
1069 -without-* | --without-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid package name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "with_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval with_$ac_useropt=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1104 Try \`$0 --help' for more information"
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 case $ac_envvar in #(
1111 '' | [0-9]* | *[!_$as_cr_alnum]* )
1112 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1113 esac
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 as_fn_error $? "missing argument to $ac_option"
1133 if test -n "$ac_unrecognized_opts"; then
1134 case $enable_option_checking in
1135 no) ;;
1136 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1137 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1138 esac
1141 # Check all directory arguments for consistency.
1142 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143 datadir sysconfdir sharedstatedir localstatedir includedir \
1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145 libdir localedir mandir
1147 eval ac_val=\$$ac_var
1148 # Remove trailing slashes.
1149 case $ac_val in
1150 */ )
1151 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1152 eval $ac_var=\$ac_val;;
1153 esac
1154 # Be sure to have absolute directory names.
1155 case $ac_val in
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158 esac
1159 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1160 done
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1165 build=$build_alias
1166 host=$host_alias
1167 target=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 elif test "x$build_alias" != "x$host_alias"; then
1174 cross_compiling=yes
1178 ac_tool_prefix=
1179 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181 test "$silent" = yes && exec 6>/dev/null
1184 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di=`ls -di .` &&
1186 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error $? "working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error $? "pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 s//\1/
1206 /^X\(\/\/\)[^/].*/{
1207 s//\1/
1210 /^X\(\/\/\)$/{
1211 s//\1/
1214 /^X\(\/\).*/{
1215 s//\1/
1218 s/.*/./; q'`
1219 srcdir=$ac_confdir
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 srcdir=..
1223 else
1224 ac_srcdir_defaulted=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1233 pwd)`
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1241 case $srcdir in
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 esac
1244 for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249 done
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1257 cat <<_ACEOF
1258 \`configure' configures this package to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1267 Configuration:
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking ...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1282 [PREFIX]
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1311 _ACEOF
1313 cat <<\_ACEOF
1315 System types:
1316 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318 --target=TARGET configure for building compilers for TARGET [HOST]
1319 _ACEOF
1322 if test -n "$ac_init_help"; then
1324 cat <<\_ACEOF
1326 Optional Features:
1327 --disable-option-checking ignore unrecognized --enable/--with options
1328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1330 --enable-c++-tools build auxiliary c++ tools
1331 --enable-maintainer-mode
1332 enable maintainer mode. Add rules to rebuild
1333 configurey bits
1334 --enable-checking[=LIST]
1335 enable expensive run-time checks. With LIST, enable
1336 only specific categories of checks. Categories are:
1337 yes,no,all,none,release.
1338 --enable-default-pie enable Position Independent Executable as default
1339 --enable-host-pie build host code as PIE
1340 --enable-host-bind-now link host code as BIND_NOW
1342 Optional Packages:
1343 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1344 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1345 --with-gcc-major-version-only
1346 use only GCC major number in filesystem paths
1348 Some influential environment variables:
1349 CXX C++ compiler command
1350 CXXFLAGS C++ compiler flags
1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1352 nonstandard directory <lib dir>
1353 LIBS libraries to pass to the linker, e.g. -l<library>
1354 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355 you have headers in a nonstandard directory <include dir>
1356 CXXCPP C++ preprocessor
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1361 Report bugs to the package provider.
1362 _ACEOF
1363 ac_status=$?
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" ||
1370 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1371 continue
1372 ac_builddir=.
1374 case "$ac_dir" in
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 esac ;;
1384 esac
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1390 case $srcdir in
1391 .) # We are building in place.
1392 ac_srcdir=.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1399 *) # Relative name.
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 esac
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1414 else
1415 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1418 done
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1423 cat <<\_ACEOF
1424 configure
1425 generated by GNU Autoconf 2.69
1427 Copyright (C) 2012 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1430 _ACEOF
1431 exit
1434 ## ------------------------ ##
1435 ## Autoconf initialization. ##
1436 ## ------------------------ ##
1438 # ac_fn_cxx_try_compile LINENO
1439 # ----------------------------
1440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1441 ac_fn_cxx_try_compile ()
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 rm -f conftest.$ac_objext
1445 if { { ac_try="$ac_compile"
1446 case "(($ac_try" in
1447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448 *) ac_try_echo=$ac_try;;
1449 esac
1450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_compile") 2>conftest.err
1453 ac_status=$?
1454 if test -s conftest.err; then
1455 grep -v '^ *+' conftest.err >conftest.er1
1456 cat conftest.er1 >&5
1457 mv -f conftest.er1 conftest.err
1459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460 test $ac_status = 0; } && {
1461 test -z "$ac_cxx_werror_flag" ||
1462 test ! -s conftest.err
1463 } && test -s conftest.$ac_objext; then :
1464 ac_retval=0
1465 else
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.$ac_ext >&5
1469 ac_retval=1
1471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1472 as_fn_set_status $ac_retval
1474 } # ac_fn_cxx_try_compile
1476 # ac_fn_cxx_try_cpp LINENO
1477 # ------------------------
1478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_cxx_try_cpp ()
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 if { { ac_try="$ac_cpp conftest.$ac_ext"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } > conftest.i && {
1498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1499 test ! -s conftest.err
1500 }; then :
1501 ac_retval=0
1502 else
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1506 ac_retval=1
1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1509 as_fn_set_status $ac_retval
1511 } # ac_fn_cxx_try_cpp
1513 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1514 # ---------------------------------------------------------
1515 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1516 # the include files in INCLUDES and setting the cache variable VAR
1517 # accordingly.
1518 ac_fn_cxx_check_header_mongrel ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if eval \${$3+:} false; then :
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1523 $as_echo_n "checking for $2... " >&6; }
1524 if eval \${$3+:} false; then :
1525 $as_echo_n "(cached) " >&6
1527 eval ac_res=\$$3
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1529 $as_echo "$ac_res" >&6; }
1530 else
1531 # Is the header compilable?
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1533 $as_echo_n "checking $2 usability... " >&6; }
1534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535 /* end confdefs.h. */
1537 #include <$2>
1538 _ACEOF
1539 if ac_fn_cxx_try_compile "$LINENO"; then :
1540 ac_header_compiler=yes
1541 else
1542 ac_header_compiler=no
1544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1546 $as_echo "$ac_header_compiler" >&6; }
1548 # Is the header present?
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1550 $as_echo_n "checking $2 presence... " >&6; }
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552 /* end confdefs.h. */
1553 #include <$2>
1554 _ACEOF
1555 if ac_fn_cxx_try_cpp "$LINENO"; then :
1556 ac_header_preproc=yes
1557 else
1558 ac_header_preproc=no
1560 rm -f conftest.err conftest.i conftest.$ac_ext
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1562 $as_echo "$ac_header_preproc" >&6; }
1564 # So? What about this header?
1565 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1566 yes:no: )
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1568 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1570 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1572 no:yes:* )
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1574 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1576 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1578 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1580 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1584 esac
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if eval \${$3+:} false; then :
1588 $as_echo_n "(cached) " >&6
1589 else
1590 eval "$3=\$ac_header_compiler"
1592 eval ac_res=\$$3
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 $as_echo "$ac_res" >&6; }
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 } # ac_fn_cxx_check_header_mongrel
1600 # ac_fn_cxx_try_run LINENO
1601 # ------------------------
1602 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1603 # that executables *can* be run.
1604 ac_fn_cxx_try_run ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_link"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>&5
1615 ac_status=$?
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1618 { { case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_try") 2>&5
1625 ac_status=$?
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; }; }; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: program exited with status $ac_status" >&5
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=$ac_status
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_cxx_try_run
1642 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1643 # ---------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_cxx_check_header_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if eval \${$3+:} false; then :
1652 $as_echo_n "(cached) " >&6
1653 else
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_cxx_try_compile "$LINENO"; then :
1660 eval "$3=yes"
1661 else
1662 eval "$3=no"
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 } # ac_fn_cxx_check_header_compile
1672 cat >config.log <<_ACEOF
1673 This file contains any messages produced by compilers while
1674 running configure, to aid debugging if configure makes a mistake.
1676 It was created by $as_me, which was
1677 generated by GNU Autoconf 2.69. Invocation command line was
1679 $ $0 $@
1681 _ACEOF
1682 exec 5>>config.log
1684 cat <<_ASUNAME
1685 ## --------- ##
1686 ## Platform. ##
1687 ## --------- ##
1689 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1690 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1691 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1692 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1693 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1695 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1696 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1698 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1699 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1700 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1701 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1702 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1703 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1704 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706 _ASUNAME
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 $as_echo "PATH: $as_dir"
1714 done
1715 IFS=$as_save_IFS
1717 } >&5
1719 cat >&5 <<_ACEOF
1722 ## ----------- ##
1723 ## Core tests. ##
1724 ## ----------- ##
1726 _ACEOF
1729 # Keep a trace of the command line.
1730 # Strip out --no-create and --no-recursion so they do not pile up.
1731 # Strip out --silent because we don't want to record it for future runs.
1732 # Also quote any args containing shell meta-characters.
1733 # Make two passes to allow for proper duplicate-argument suppression.
1734 ac_configure_args=
1735 ac_configure_args0=
1736 ac_configure_args1=
1737 ac_must_keep_next=false
1738 for ac_pass in 1 2
1740 for ac_arg
1742 case $ac_arg in
1743 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745 | -silent | --silent | --silen | --sile | --sil)
1746 continue ;;
1747 *\'*)
1748 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 esac
1750 case $ac_pass in
1751 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1753 as_fn_append ac_configure_args1 " '$ac_arg'"
1754 if test $ac_must_keep_next = true; then
1755 ac_must_keep_next=false # Got value, back to normal.
1756 else
1757 case $ac_arg in
1758 *=* | --config-cache | -C | -disable-* | --disable-* \
1759 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1760 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1761 | -with-* | --with-* | -without-* | --without-* | --x)
1762 case "$ac_configure_args0 " in
1763 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764 esac
1766 -* ) ac_must_keep_next=true ;;
1767 esac
1769 as_fn_append ac_configure_args " '$ac_arg'"
1771 esac
1772 done
1773 done
1774 { ac_configure_args0=; unset ac_configure_args0;}
1775 { ac_configure_args1=; unset ac_configure_args1;}
1777 # When interrupted or exit'd, cleanup temporary files, and complete
1778 # config.log. We remove comments because anyway the quotes in there
1779 # would cause problems or look ugly.
1780 # WARNING: Use '\'' to represent an apostrophe within the trap.
1781 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1782 trap 'exit_status=$?
1783 # Save into config.log some information that might help in debugging.
1785 echo
1787 $as_echo "## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##"
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1804 *) { eval $ac_var=; unset $ac_var;} ;;
1805 esac ;;
1806 esac
1807 done
1808 (set) 2>&1 |
1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
1811 sed -n \
1812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 ;; #(
1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 esac |
1819 sort
1821 echo
1823 $as_echo "## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##"
1826 echo
1827 for ac_var in $ac_subst_vars
1829 eval ac_val=\$$ac_var
1830 case $ac_val in
1831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 esac
1833 $as_echo "$ac_var='\''$ac_val'\''"
1834 done | sort
1835 echo
1837 if test -n "$ac_subst_files"; then
1838 $as_echo "## ------------------- ##
1839 ## File substitutions. ##
1840 ## ------------------- ##"
1841 echo
1842 for ac_var in $ac_subst_files
1844 eval ac_val=\$$ac_var
1845 case $ac_val in
1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 esac
1848 $as_echo "$ac_var='\''$ac_val'\''"
1849 done | sort
1850 echo
1853 if test -s confdefs.h; then
1854 $as_echo "## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##"
1857 echo
1858 cat confdefs.h
1859 echo
1861 test "$ac_signal" != 0 &&
1862 $as_echo "$as_me: caught signal $ac_signal"
1863 $as_echo "$as_me: exit $exit_status"
1864 } >&5
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 exit $exit_status
1869 for ac_signal in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1871 done
1872 ac_signal=0
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1877 $as_echo "/* confdefs.h */" > confdefs.h
1879 # Predefined preprocessor variables.
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 _ACEOF
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 _ACEOF
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899 _ACEOF
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_URL "$PACKAGE_URL"
1903 _ACEOF
1906 # Let the site file select an alternate cache file if it wants to.
1907 # Prefer an explicitly selected file to automatically selected ones.
1908 ac_site_file1=NONE
1909 ac_site_file2=NONE
1910 if test -n "$CONFIG_SITE"; then
1911 # We do not want a PATH search for config.site.
1912 case $CONFIG_SITE in #((
1913 -*) ac_site_file1=./$CONFIG_SITE;;
1914 */*) ac_site_file1=$CONFIG_SITE;;
1915 *) ac_site_file1=./$CONFIG_SITE;;
1916 esac
1917 elif test "x$prefix" != xNONE; then
1918 ac_site_file1=$prefix/share/config.site
1919 ac_site_file2=$prefix/etc/config.site
1920 else
1921 ac_site_file1=$ac_default_prefix/share/config.site
1922 ac_site_file2=$ac_default_prefix/etc/config.site
1924 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1926 test "x$ac_site_file" = xNONE && continue
1927 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1929 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file" \
1932 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1934 as_fn_error $? "failed to load site script $ac_site_file
1935 See \`config.log' for more details" "$LINENO" 5; }
1937 done
1939 if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special files
1941 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1942 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1944 $as_echo "$as_me: loading cache $cache_file" >&6;}
1945 case $cache_file in
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
1948 esac
1950 else
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1952 $as_echo "$as_me: creating cache $cache_file" >&6;}
1953 >$cache_file
1956 # Check that the precious variables saved in the cache have kept the same
1957 # value.
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
1962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
1964 case $ac_old_set,$ac_new_set in
1965 set,)
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,set)
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1971 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1973 ,);;
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
1976 # differences in whitespace do not lead to failure.
1977 ac_old_val_w=`echo x $ac_old_val`
1978 ac_new_val_w=`echo x $ac_new_val`
1979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1981 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982 ac_cache_corrupted=:
1983 else
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1985 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1986 eval $ac_var=\$ac_old_val
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1989 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1991 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1992 fi;;
1993 esac
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1996 case $ac_new_val in
1997 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1998 *) ac_arg=$ac_var=$ac_new_val ;;
1999 esac
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2003 esac
2005 done
2006 if $ac_cache_corrupted; then
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2013 ## -------------------- ##
2014 ## Main body of script. ##
2015 ## -------------------- ##
2017 ac_ext=c
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 # Determine the noncanonical names used for directories.
2028 ac_aux_dir=
2029 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2030 if test -f "$ac_dir/install-sh"; then
2031 ac_aux_dir=$ac_dir
2032 ac_install_sh="$ac_aux_dir/install-sh -c"
2033 break
2034 elif test -f "$ac_dir/install.sh"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install.sh -c"
2037 break
2038 elif test -f "$ac_dir/shtool"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/shtool install -c"
2041 break
2043 done
2044 if test -z "$ac_aux_dir"; then
2045 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2048 # These three variables are undocumented and unsupported,
2049 # and are intended to be withdrawn in a future Autoconf release.
2050 # They can cause serious problems if a builder's source tree is in a directory
2051 # whose full name contains unusual characters.
2052 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2053 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2054 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2057 # Make sure we can run config.sub.
2058 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2062 $as_echo_n "checking build system type... " >&6; }
2063 if ${ac_cv_build+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 ac_build_alias=$build_alias
2067 test "x$ac_build_alias" = x &&
2068 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069 test "x$ac_build_alias" = x &&
2070 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2076 $as_echo "$ac_cv_build" >&6; }
2077 case $ac_cv_build in
2078 *-*-*) ;;
2079 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2080 esac
2081 build=$ac_cv_build
2082 ac_save_IFS=$IFS; IFS='-'
2083 set x $ac_cv_build
2084 shift
2085 build_cpu=$1
2086 build_vendor=$2
2087 shift; shift
2088 # Remember, the first character of IFS is used to create $*,
2089 # except with old shells:
2090 build_os=$*
2091 IFS=$ac_save_IFS
2092 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2095 case ${build_alias} in
2096 "") build_noncanonical=${build} ;;
2097 *) build_noncanonical=${build_alias} ;;
2098 esac
2100 case ${host_alias} in
2101 "") host_noncanonical=${build_noncanonical} ;;
2102 *) host_noncanonical=${host_alias} ;;
2103 esac
2105 case ${target_alias} in
2106 "") target_noncanonical=${host_noncanonical} ;;
2107 *) target_noncanonical=${target_alias} ;;
2108 esac
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2114 $as_echo_n "checking host system type... " >&6; }
2115 if ${ac_cv_host+:} false; then :
2116 $as_echo_n "(cached) " >&6
2117 else
2118 if test "x$host_alias" = x; then
2119 ac_cv_host=$ac_cv_build
2120 else
2121 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2122 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2127 $as_echo "$ac_cv_host" >&6; }
2128 case $ac_cv_host in
2129 *-*-*) ;;
2130 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2147 $as_echo_n "checking target system type... " >&6; }
2148 if ${ac_cv_target+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 if test "x$target_alias" = x; then
2152 ac_cv_target=$ac_cv_host
2153 else
2154 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2160 $as_echo "$ac_cv_target" >&6; }
2161 case $ac_cv_target in
2162 *-*-*) ;;
2163 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2164 esac
2165 target=$ac_cv_target
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_target
2168 shift
2169 target_cpu=$1
2170 target_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 target_os=$*
2175 IFS=$ac_save_IFS
2176 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2179 # The aliases save the names the user supplied, while $host etc.
2180 # will get canonicalized.
2181 test -n "$target_alias" &&
2182 test "$program_prefix$program_suffix$program_transform_name" = \
2183 NONENONEs,x,x, &&
2184 program_prefix=${target_alias}-
2186 # Find a good install program. We prefer a C program (faster),
2187 # so one script is as good as another. But avoid the broken or
2188 # incompatible versions:
2189 # SysV /etc/install, /usr/sbin/install
2190 # SunOS /usr/etc/install
2191 # IRIX /sbin/install
2192 # AIX /bin/install
2193 # AmigaOS /C/install, which installs bootblocks on floppy discs
2194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2197 # OS/2's system install, which has a completely different semantic
2198 # ./install, which can be erroneously created by make from ./install.sh.
2199 # Reject install programs that cannot install multiple files.
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2201 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2202 if test -z "$INSTALL"; then
2203 if ${ac_cv_path_install+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 # Account for people who put trailing slashes in PATH elements.
2212 case $as_dir/ in #((
2213 ./ | .// | /[cC]/* | \
2214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2216 /usr/ucb/* ) ;;
2218 # OSF1 and SCO ODT 3.0 have their own names for install.
2219 # Don't use installbsd from OSF since it installs stuff as root
2220 # by default.
2221 for ac_prog in ginstall scoinst install; do
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2224 if test $ac_prog = install &&
2225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226 # AIX install. It has an incompatible calling convention.
2228 elif test $ac_prog = install &&
2229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230 # program-specific install script used by HP pwplus--don't use.
2232 else
2233 rm -rf conftest.one conftest.two conftest.dir
2234 echo one > conftest.one
2235 echo two > conftest.two
2236 mkdir conftest.dir
2237 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2238 test -s conftest.one && test -s conftest.two &&
2239 test -s conftest.dir/conftest.one &&
2240 test -s conftest.dir/conftest.two
2241 then
2242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2243 break 3
2247 done
2248 done
2250 esac
2252 done
2253 IFS=$as_save_IFS
2255 rm -rf conftest.one conftest.two conftest.dir
2258 if test "${ac_cv_path_install+set}" = set; then
2259 INSTALL=$ac_cv_path_install
2260 else
2261 # As a last resort, use the slow shell script. Don't cache a
2262 # value for INSTALL within a source directory, because that will
2263 # break other packages using the cache if that directory is
2264 # removed, or if the value is a relative name.
2265 INSTALL=$ac_install_sh
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2269 $as_echo "$INSTALL" >&6; }
2271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2272 # It thinks the first close brace ends the variable substitution.
2273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2282 ac_ext=cpp
2283 ac_cpp='$CXXCPP $CPPFLAGS'
2284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2287 if test -z "$CXX"; then
2288 if test -n "$CCC"; then
2289 CXX=$CCC
2290 else
2291 if test -n "$ac_tool_prefix"; then
2292 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 set dummy $ac_tool_prefix$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_CXX+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 if test -n "$CXX"; then
2302 ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$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 CXX=$ac_cv_prog_CXX
2322 if test -n "$CXX"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2324 $as_echo "$CXX" >&6; }
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327 $as_echo "no" >&6; }
2331 test -n "$CXX" && break
2332 done
2334 if test -z "$CXX"; then
2335 ac_ct_CXX=$CXX
2336 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2341 $as_echo_n "checking for $ac_word... " >&6; }
2342 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 if test -n "$ac_ct_CXX"; then
2346 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_ac_ct_CXX="$ac_prog"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2359 done
2360 done
2361 IFS=$as_save_IFS
2365 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2366 if test -n "$ac_ct_CXX"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2368 $as_echo "$ac_ct_CXX" >&6; }
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2371 $as_echo "no" >&6; }
2375 test -n "$ac_ct_CXX" && break
2376 done
2378 if test "x$ac_ct_CXX" = x; then
2379 CXX="g++"
2380 else
2381 case $cross_compiling:$ac_tool_warned in
2382 yes:)
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2385 ac_tool_warned=yes ;;
2386 esac
2387 CXX=$ac_ct_CXX
2393 # Provide some information about the compiler.
2394 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2395 set X $ac_compile
2396 ac_compiler=$2
2397 for ac_option in --version -v -V -qversion; do
2398 { { ac_try="$ac_compiler $ac_option >&5"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 sed '10a\
2409 ... rest of stderr output deleted ...
2410 10q' conftest.err >conftest.er1
2411 cat conftest.er1 >&5
2413 rm -f conftest.er1 conftest.err
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; }
2416 done
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2422 main ()
2426 return 0;
2428 _ACEOF
2429 ac_clean_files_save=$ac_clean_files
2430 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2431 # Try to create an executable without -o first, disregard a.out.
2432 # It will help us diagnose broken compilers, and finding out an intuition
2433 # of exeext.
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2435 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2436 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2438 # The possible output files:
2439 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2441 ac_rmfiles=
2442 for ac_file in $ac_files
2444 case $ac_file in
2445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2446 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2447 esac
2448 done
2449 rm -f $ac_rmfiles
2451 if { { ac_try="$ac_link_default"
2452 case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link_default") 2>&5
2459 ac_status=$?
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; }; then :
2462 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2463 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2464 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2465 # so that the user can short-circuit this test for compilers unknown to
2466 # Autoconf.
2467 for ac_file in $ac_files ''
2469 test -f "$ac_file" || continue
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2473 [ab].out )
2474 # We found the default executable, but exeext='' is most
2475 # certainly right.
2476 break;;
2477 *.* )
2478 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2479 then :; else
2480 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 # We set ac_cv_exeext here because the later test for it is not
2483 # safe: cross compilers may not add the suffix if given an `-o'
2484 # argument, so we may need to know it at that point already.
2485 # Even if this section looks crufty: it has the advantage of
2486 # actually working.
2487 break;;
2489 break;;
2490 esac
2491 done
2492 test "$ac_cv_exeext" = no && ac_cv_exeext=
2494 else
2495 ac_file=''
2497 if test -z "$ac_file"; then :
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2500 $as_echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 as_fn_error 77 "C++ compiler cannot create executables
2506 See \`config.log' for more details" "$LINENO" 5; }
2507 else
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2509 $as_echo "yes" >&6; }
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2512 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2514 $as_echo "$ac_file" >&6; }
2515 ac_exeext=$ac_cv_exeext
2517 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2518 ac_clean_files=$ac_clean_files_save
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2520 $as_echo_n "checking for suffix of executables... " >&6; }
2521 if { { ac_try="$ac_link"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527 $as_echo "$ac_try_echo"; } >&5
2528 (eval "$ac_link") 2>&5
2529 ac_status=$?
2530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2531 test $ac_status = 0; }; then :
2532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2535 # `rm'.
2536 for ac_file in conftest.exe conftest conftest.*; do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541 break;;
2542 * ) break;;
2543 esac
2544 done
2545 else
2546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details" "$LINENO" 5; }
2551 rm -f conftest conftest$ac_cv_exeext
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2553 $as_echo "$ac_cv_exeext" >&6; }
2555 rm -f conftest.$ac_ext
2556 EXEEXT=$ac_cv_exeext
2557 ac_exeext=$EXEEXT
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 #include <stdio.h>
2562 main ()
2564 FILE *f = fopen ("conftest.out", "w");
2565 return ferror (f) || fclose (f) != 0;
2568 return 0;
2570 _ACEOF
2571 ac_clean_files="$ac_clean_files conftest.out"
2572 # Check that the compiler produces executables we can run. If not, either
2573 # the compiler is broken, or we cross compile.
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2575 $as_echo_n "checking whether we are cross compiling... " >&6; }
2576 if test "$cross_compiling" != yes; then
2577 { { ac_try="$ac_link"
2578 case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581 esac
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_link") 2>&5
2585 ac_status=$?
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; }
2588 if { ac_try='./conftest$ac_cv_exeext'
2589 { { case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2594 $as_echo "$ac_try_echo"; } >&5
2595 (eval "$ac_try") 2>&5
2596 ac_status=$?
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; }; }; then
2599 cross_compiling=no
2600 else
2601 if test "$cross_compiling" = maybe; then
2602 cross_compiling=yes
2603 else
2604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error $? "cannot run C++ compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details" "$LINENO" 5; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2613 $as_echo "$cross_compiling" >&6; }
2615 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2616 ac_clean_files=$ac_clean_files_save
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2618 $as_echo_n "checking for suffix of object files... " >&6; }
2619 if ${ac_cv_objext+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623 /* end confdefs.h. */
2626 main ()
2630 return 0;
2632 _ACEOF
2633 rm -f conftest.o conftest.obj
2634 if { { ac_try="$ac_compile"
2635 case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638 esac
2639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_compile") 2>&5
2642 ac_status=$?
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; }; then :
2645 for ac_file in conftest.o conftest.obj conftest.*; do
2646 test -f "$ac_file" || continue;
2647 case $ac_file in
2648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2650 break;;
2651 esac
2652 done
2653 else
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 as_fn_error $? "cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details" "$LINENO" 5; }
2662 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2665 $as_echo "$ac_cv_objext" >&6; }
2666 OBJEXT=$ac_cv_objext
2667 ac_objext=$OBJEXT
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2669 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2670 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2677 main ()
2679 #ifndef __GNUC__
2680 choke me
2681 #endif
2684 return 0;
2686 _ACEOF
2687 if ac_fn_cxx_try_compile "$LINENO"; then :
2688 ac_compiler_gnu=yes
2689 else
2690 ac_compiler_gnu=no
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2697 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2698 if test $ac_compiler_gnu = yes; then
2699 GXX=yes
2700 else
2701 GXX=
2703 ac_test_CXXFLAGS=${CXXFLAGS+set}
2704 ac_save_CXXFLAGS=$CXXFLAGS
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2706 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2707 if ${ac_cv_prog_cxx_g+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2711 ac_cxx_werror_flag=yes
2712 ac_cv_prog_cxx_g=no
2713 CXXFLAGS="-g"
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2718 main ()
2722 return 0;
2724 _ACEOF
2725 if ac_fn_cxx_try_compile "$LINENO"; then :
2726 ac_cv_prog_cxx_g=yes
2727 else
2728 CXXFLAGS=""
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2733 main ()
2737 return 0;
2739 _ACEOF
2740 if ac_fn_cxx_try_compile "$LINENO"; then :
2742 else
2743 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2744 CXXFLAGS="-g"
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2749 main ()
2753 return 0;
2755 _ACEOF
2756 if ac_fn_cxx_try_compile "$LINENO"; then :
2757 ac_cv_prog_cxx_g=yes
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2767 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2768 if test "$ac_test_CXXFLAGS" = set; then
2769 CXXFLAGS=$ac_save_CXXFLAGS
2770 elif test $ac_cv_prog_cxx_g = yes; then
2771 if test "$GXX" = yes; then
2772 CXXFLAGS="-g -O2"
2773 else
2774 CXXFLAGS="-g"
2776 else
2777 if test "$GXX" = yes; then
2778 CXXFLAGS="-O2"
2779 else
2780 CXXFLAGS=
2783 ac_ext=c
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2790 for ac_prog in autoconf
2792 # Extract the first word of "$ac_prog", so it can be a program name with args.
2793 set dummy $ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_AUTOCONF+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$AUTOCONF"; then
2800 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_AUTOCONF="$ac_prog"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2813 done
2814 done
2815 IFS=$as_save_IFS
2819 AUTOCONF=$ac_cv_prog_AUTOCONF
2820 if test -n "$AUTOCONF"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
2822 $as_echo "$AUTOCONF" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2829 test -n "$AUTOCONF" && break
2830 done
2831 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2833 for ac_prog in autoheader
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_AUTOHEADER+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$AUTOHEADER"; then
2843 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_AUTOHEADER="$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2856 done
2857 done
2858 IFS=$as_save_IFS
2862 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2863 if test -n "$AUTOHEADER"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
2865 $as_echo "$AUTOHEADER" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2872 test -n "$AUTOHEADER" && break
2873 done
2874 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2877 ac_ext=cpp
2878 ac_cpp='$CXXCPP $CPPFLAGS'
2879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build C++ tools" >&5
2885 $as_echo_n "checking whether to build C++ tools... " >&6; }
2886 # Check whether --enable-c++-tools was given.
2887 if test "${enable_c___tools+set}" = set; then :
2888 enableval=$enable_c___tools; cxx_aux_tools=$enableval
2889 else
2890 cxx_aux_tools=yes
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx_aux_tools" >&5
2895 $as_echo "$cxx_aux_tools" >&6; }
2896 CXX_AUX_TOOLS="$cxx_aux_tools"
2899 # Check whether --enable-maintainer-mode was given.
2900 if test "${enable_maintainer_mode+set}" = set; then :
2901 enableval=$enable_maintainer_mode;
2902 else
2903 enable_maintainer_mode=no
2906 case "$enable_maintainer_mode" in
2907 yes) maintainer_mode=yes ;;
2908 no) maintainer_mode=no ;;
2909 *) as_fn_error $? "unknown maintainer mode $enable_maintainer_mode" "$LINENO" 5 ;;
2910 esac
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maintainer-mode" >&5
2912 $as_echo_n "checking maintainer-mode... " >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2914 $as_echo "$maintainer_mode" >&6; }
2915 test "$maintainer_mode" = yes && MAINTAINER=yes
2918 # Handle configuration of checking; for the tools in this directory we
2919 # default to release checking and stricter checks do not change this.
2921 # Check whether --enable-checking was given.
2922 if test "${enable_checking+set}" = set; then :
2923 enableval=$enable_checking; ac_checking_flags="${enableval}"
2924 else
2926 # Default to checking.
2927 ac_checking_flags=yes
2931 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2932 for check in release $ac_checking_flags
2934 case $check in
2935 # these set all the flags to specific states
2936 yes|all|release|assert) ac_assert_checking=1 ; ;;
2937 no|none) ac_assert_checking= ; ;;
2938 *) ;;
2939 esac
2940 done
2941 IFS="$ac_save_IFS"
2943 if test x$ac_assert_checking != x ; then
2945 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
2949 # Check whether --enable-default-pie was given.
2950 # Check whether --enable-default-pie was given.
2951 if test "${enable_default_pie+set}" = set; then :
2952 enableval=$enable_default_pie; PICFLAG=-fPIE
2953 else
2954 PICFLAG=
2958 # Enable --enable-host-pie
2959 # Check whether --enable-host-pie was given.
2960 if test "${enable_host_pie+set}" = set; then :
2961 enableval=$enable_host_pie; PICFLAG=-fPIE; LD_PICFLAG=-pie
2966 # Enable --enable-host-bind-now
2967 # Check whether --enable-host-bind-now was given.
2968 if test "${enable_host_bind_now+set}" = set; then :
2969 enableval=$enable_host_bind_now; LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
2975 # Check if O_CLOEXEC is defined by fcntl
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
2978 $as_echo_n "checking for O_CLOEXEC... " >&6; }
2979 if ${ac_cv_o_cloexec+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h. */
2986 #include <fcntl.h>
2988 main ()
2991 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
2993 return 0;
2995 _ACEOF
2996 if ac_fn_cxx_try_compile "$LINENO"; then :
2997 ac_cv_o_cloexec=yes
2998 else
2999 ac_cv_o_cloexec=no
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
3004 $as_echo "$ac_cv_o_cloexec" >&6; }
3005 if test $ac_cv_o_cloexec = yes; then
3007 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
3011 ac_ext=cpp
3012 ac_cpp='$CXXCPP $CPPFLAGS'
3013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3017 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3018 if test -z "$CXXCPP"; then
3019 if ${ac_cv_prog_CXXCPP+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 # Double quotes because CXXCPP needs to be expanded
3023 for CXXCPP in "$CXX -E" "/lib/cpp"
3025 ac_preproc_ok=false
3026 for ac_cxx_preproc_warn_flag in '' yes
3028 # Use a header file that comes with gcc, so configuring glibc
3029 # with a fresh cross-compiler works.
3030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031 # <limits.h> exists even on freestanding compilers.
3032 # On the NeXT, cc -E runs the code through the compiler's parser,
3033 # not just through cpp. "Syntax error" is here to catch this case.
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if ac_fn_cxx_try_cpp "$LINENO"; then :
3045 else
3046 # Broken: fails on valid input.
3047 continue
3049 rm -f conftest.err conftest.i conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether nonexistent headers
3052 # can be detected and how.
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3055 #include <ac_nonexistent.h>
3056 _ACEOF
3057 if ac_fn_cxx_try_cpp "$LINENO"; then :
3058 # Broken: success on invalid input.
3059 continue
3060 else
3061 # Passes both tests.
3062 ac_preproc_ok=:
3063 break
3065 rm -f conftest.err conftest.i conftest.$ac_ext
3067 done
3068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3069 rm -f conftest.i conftest.err conftest.$ac_ext
3070 if $ac_preproc_ok; then :
3071 break
3074 done
3075 ac_cv_prog_CXXCPP=$CXXCPP
3078 CXXCPP=$ac_cv_prog_CXXCPP
3079 else
3080 ac_cv_prog_CXXCPP=$CXXCPP
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3083 $as_echo "$CXXCPP" >&6; }
3084 ac_preproc_ok=false
3085 for ac_cxx_preproc_warn_flag in '' yes
3087 # Use a header file that comes with gcc, so configuring glibc
3088 # with a fresh cross-compiler works.
3089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3090 # <limits.h> exists even on freestanding compilers.
3091 # On the NeXT, cc -E runs the code through the compiler's parser,
3092 # not just through cpp. "Syntax error" is here to catch this case.
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3095 #ifdef __STDC__
3096 # include <limits.h>
3097 #else
3098 # include <assert.h>
3099 #endif
3100 Syntax error
3101 _ACEOF
3102 if ac_fn_cxx_try_cpp "$LINENO"; then :
3104 else
3105 # Broken: fails on valid input.
3106 continue
3108 rm -f conftest.err conftest.i conftest.$ac_ext
3110 # OK, works on sane cases. Now check whether nonexistent headers
3111 # can be detected and how.
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114 #include <ac_nonexistent.h>
3115 _ACEOF
3116 if ac_fn_cxx_try_cpp "$LINENO"; then :
3117 # Broken: success on invalid input.
3118 continue
3119 else
3120 # Passes both tests.
3121 ac_preproc_ok=:
3122 break
3124 rm -f conftest.err conftest.i conftest.$ac_ext
3126 done
3127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3128 rm -f conftest.i conftest.err conftest.$ac_ext
3129 if $ac_preproc_ok; then :
3131 else
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3135 See \`config.log' for more details" "$LINENO" 5; }
3138 ac_ext=cpp
3139 ac_cpp='$CXXCPP $CPPFLAGS'
3140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3146 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3147 if ${ac_cv_path_GREP+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -z "$GREP"; then
3151 ac_path_GREP_found=false
3152 # Loop through the user's path and test for each of PROGNAME-LIST
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_prog in grep ggrep; do
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3161 as_fn_executable_p "$ac_path_GREP" || continue
3162 # Check for GNU ac_path_GREP and select it if it is found.
3163 # Check for GNU $ac_path_GREP
3164 case `"$ac_path_GREP" --version 2>&1` in
3165 *GNU*)
3166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3168 ac_count=0
3169 $as_echo_n 0123456789 >"conftest.in"
3170 while :
3172 cat "conftest.in" "conftest.in" >"conftest.tmp"
3173 mv "conftest.tmp" "conftest.in"
3174 cp "conftest.in" "conftest.nl"
3175 $as_echo 'GREP' >> "conftest.nl"
3176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3178 as_fn_arith $ac_count + 1 && ac_count=$as_val
3179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3180 # Best one so far, save it but keep looking for a better one
3181 ac_cv_path_GREP="$ac_path_GREP"
3182 ac_path_GREP_max=$ac_count
3184 # 10*(2^10) chars as input seems more than enough
3185 test $ac_count -gt 10 && break
3186 done
3187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3188 esac
3190 $ac_path_GREP_found && break 3
3191 done
3192 done
3193 done
3194 IFS=$as_save_IFS
3195 if test -z "$ac_cv_path_GREP"; then
3196 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3198 else
3199 ac_cv_path_GREP=$GREP
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3204 $as_echo "$ac_cv_path_GREP" >&6; }
3205 GREP="$ac_cv_path_GREP"
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3209 $as_echo_n "checking for egrep... " >&6; }
3210 if ${ac_cv_path_EGREP+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3214 then ac_cv_path_EGREP="$GREP -E"
3215 else
3216 if test -z "$EGREP"; then
3217 ac_path_EGREP_found=false
3218 # Loop through the user's path and test for each of PROGNAME-LIST
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_prog in egrep; do
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3227 as_fn_executable_p "$ac_path_EGREP" || continue
3228 # Check for GNU ac_path_EGREP and select it if it is found.
3229 # Check for GNU $ac_path_EGREP
3230 case `"$ac_path_EGREP" --version 2>&1` in
3231 *GNU*)
3232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3234 ac_count=0
3235 $as_echo_n 0123456789 >"conftest.in"
3236 while :
3238 cat "conftest.in" "conftest.in" >"conftest.tmp"
3239 mv "conftest.tmp" "conftest.in"
3240 cp "conftest.in" "conftest.nl"
3241 $as_echo 'EGREP' >> "conftest.nl"
3242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3244 as_fn_arith $ac_count + 1 && ac_count=$as_val
3245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3246 # Best one so far, save it but keep looking for a better one
3247 ac_cv_path_EGREP="$ac_path_EGREP"
3248 ac_path_EGREP_max=$ac_count
3250 # 10*(2^10) chars as input seems more than enough
3251 test $ac_count -gt 10 && break
3252 done
3253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3254 esac
3256 $ac_path_EGREP_found && break 3
3257 done
3258 done
3259 done
3260 IFS=$as_save_IFS
3261 if test -z "$ac_cv_path_EGREP"; then
3262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3264 else
3265 ac_cv_path_EGREP=$EGREP
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3271 $as_echo "$ac_cv_path_EGREP" >&6; }
3272 EGREP="$ac_cv_path_EGREP"
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3276 $as_echo_n "checking for ANSI C header files... " >&6; }
3277 if ${ac_cv_header_stdc+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282 #include <stdlib.h>
3283 #include <stdarg.h>
3284 #include <string.h>
3285 #include <float.h>
3288 main ()
3292 return 0;
3294 _ACEOF
3295 if ac_fn_cxx_try_compile "$LINENO"; then :
3296 ac_cv_header_stdc=yes
3297 else
3298 ac_cv_header_stdc=no
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 if test $ac_cv_header_stdc = yes; then
3303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306 #include <string.h>
3308 _ACEOF
3309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310 $EGREP "memchr" >/dev/null 2>&1; then :
3312 else
3313 ac_cv_header_stdc=no
3315 rm -f conftest*
3319 if test $ac_cv_header_stdc = yes; then
3320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3323 #include <stdlib.h>
3325 _ACEOF
3326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 $EGREP "free" >/dev/null 2>&1; then :
3329 else
3330 ac_cv_header_stdc=no
3332 rm -f conftest*
3336 if test $ac_cv_header_stdc = yes; then
3337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3338 if test "$cross_compiling" = yes; then :
3340 else
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343 #include <ctype.h>
3344 #include <stdlib.h>
3345 #if ((' ' & 0x0FF) == 0x020)
3346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3348 #else
3349 # define ISLOWER(c) \
3350 (('a' <= (c) && (c) <= 'i') \
3351 || ('j' <= (c) && (c) <= 'r') \
3352 || ('s' <= (c) && (c) <= 'z'))
3353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3354 #endif
3356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3358 main ()
3360 int i;
3361 for (i = 0; i < 256; i++)
3362 if (XOR (islower (i), ISLOWER (i))
3363 || toupper (i) != TOUPPER (i))
3364 return 2;
3365 return 0;
3367 _ACEOF
3368 if ac_fn_cxx_try_run "$LINENO"; then :
3370 else
3371 ac_cv_header_stdc=no
3373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3374 conftest.$ac_objext conftest.beam conftest.$ac_ext
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3380 $as_echo "$ac_cv_header_stdc" >&6; }
3381 if test $ac_cv_header_stdc = yes; then
3383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3389 inttypes.h stdint.h unistd.h
3390 do :
3391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3392 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3395 cat >>confdefs.h <<_ACEOF
3396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3397 _ACEOF
3401 done
3404 for ac_header in sys/mman.h
3405 do :
3406 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
3407 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
3408 cat >>confdefs.h <<_ACEOF
3409 #define HAVE_SYS_MMAN_H 1
3410 _ACEOF
3414 done
3417 # C++ Modules would like some networking features to provide the mapping
3418 # server. You can still use modules without them though.
3419 # The following network-related checks could probably do with some
3420 # Windows and other non-linux defenses and checking.
3422 # Local socket connectivity wants AF_UNIX networking
3423 # Check for AF_UNIX networking
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
3425 $as_echo_n "checking for AF_UNIX... " >&6; }
3426 if ${ac_cv_af_unix+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3433 #include <sys/types.h>
3434 #include <sys/socket.h>
3435 #include <sys/un.h>
3436 #include <netinet/in.h>
3438 main ()
3441 sockaddr_un un;
3442 un.sun_family = AF_UNSPEC;
3443 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
3444 connect (fd, (sockaddr *)&un, sizeof (un));
3446 return 0;
3448 _ACEOF
3449 if ac_fn_cxx_try_compile "$LINENO"; then :
3450 ac_cv_af_unix=yes
3451 else
3452 ac_cv_af_unix=no
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
3457 $as_echo "$ac_cv_af_unix" >&6; }
3458 if test $ac_cv_af_unix = yes; then
3460 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
3464 # Remote socket connectivity wants AF_INET6 networking
3465 # Check for AF_INET6 networking
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
3467 $as_echo_n "checking for AF_INET6... " >&6; }
3468 if ${ac_cv_af_inet6+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3475 #include <sys/types.h>
3476 #include <sys/socket.h>
3477 #include <netinet/in.h>
3478 #include <netdb.h>
3480 main ()
3483 sockaddr_in6 in6;
3484 in6.sin6_family = AF_UNSPEC;
3485 struct addrinfo *addrs = 0;
3486 struct addrinfo hints;
3487 hints.ai_flags = 0;
3488 hints.ai_family = AF_INET6;
3489 hints.ai_socktype = SOCK_STREAM;
3490 hints.ai_protocol = 0;
3491 hints.ai_canonname = 0;
3492 hints.ai_addr = 0;
3493 hints.ai_next = 0;
3494 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
3495 const char *str = gai_strerror (e);
3496 freeaddrinfo (addrs);
3497 int fd = socket (AF_INET6, SOCK_STREAM, 0);
3498 connect (fd, (sockaddr *)&in6, sizeof (in6));
3500 return 0;
3502 _ACEOF
3503 if ac_fn_cxx_try_compile "$LINENO"; then :
3504 ac_cv_af_inet6=yes
3505 else
3506 ac_cv_af_inet6=no
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
3511 $as_echo "$ac_cv_af_inet6" >&6; }
3512 if test $ac_cv_af_inet6 = yes; then
3514 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
3518 # Efficient server response wants epoll
3519 # Check for epoll_create, epoll_ctl, epoll_pwait
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
3521 $as_echo_n "checking for epoll... " >&6; }
3522 if ${ac_cv_epoll+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3529 #include <sys/epoll.h>
3531 main ()
3534 int fd = epoll_create (1);
3535 epoll_event ev;
3536 ev.events = EPOLLIN;
3537 ev.data.fd = 0;
3538 epoll_ctl (fd, EPOLL_CTL_ADD, 0, &ev);
3539 epoll_pwait (fd, 0, 0, -1, 0);
3541 return 0;
3543 _ACEOF
3544 if ac_fn_cxx_try_compile "$LINENO"; then :
3545 ac_cv_epoll=yes
3546 else
3547 ac_cv_epoll=no
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_epoll" >&5
3552 $as_echo "$ac_cv_epoll" >&6; }
3553 if test $ac_cv_epoll = yes; then
3555 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
3559 # If we can't use epoll, try pselect.
3560 # Check for pselect
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
3562 $as_echo_n "checking for pselect... " >&6; }
3563 if ${ac_cv_pselect+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3570 #include <sys/select.h>
3572 main ()
3575 pselect (0, 0, 0, 0, 0, 0);
3577 return 0;
3579 _ACEOF
3580 if ac_fn_cxx_try_compile "$LINENO"; then :
3581 ac_cv_pselect=yes
3582 else
3583 ac_cv_pselect=no
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pselect" >&5
3588 $as_echo "$ac_cv_pselect" >&6; }
3589 if test $ac_cv_pselect = yes; then
3591 $as_echo "#define HAVE_PSELECT 1" >>confdefs.h
3595 # And failing that, use good old select.
3596 # If we can't even use this, the server is serialized.
3597 # Check for select
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
3599 $as_echo_n "checking for select... " >&6; }
3600 if ${ac_cv_select+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3607 #include <sys/select.h>
3609 main ()
3612 select (0, 0, 0, 0, 0);
3614 return 0;
3616 _ACEOF
3617 if ac_fn_cxx_try_compile "$LINENO"; then :
3618 ac_cv_select=yes
3619 else
3620 ac_cv_select=no
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_select" >&5
3625 $as_echo "$ac_cv_select" >&6; }
3626 if test $ac_cv_select = yes; then
3628 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
3632 # Avoid some fnctl calls by using accept4, when available.
3633 # Check for accept4
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5
3635 $as_echo_n "checking for accept4... " >&6; }
3636 if ${ac_cv_accept4+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3643 #include <sys/socket.h>
3645 main ()
3648 int err = accept4 (1, 0, 0, SOCK_NONBLOCK);
3650 return 0;
3652 _ACEOF
3653 if ac_fn_cxx_try_compile "$LINENO"; then :
3654 ac_cv_accept4=yes
3655 else
3656 ac_cv_accept4=no
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
3661 $as_echo "$ac_cv_accept4" >&6; }
3662 if test $ac_cv_accept4 = yes; then
3664 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
3668 # For better server messages, look for a way to stringize network addresses
3669 # Check for inet_ntop
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
3671 $as_echo_n "checking for inet_ntop... " >&6; }
3672 if ${ac_cv_inet_ntop+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3679 #include <arpa/inet.h>
3680 #include <netinet/in.h>
3682 main ()
3685 sockaddr_in6 in6;
3686 char buf[INET6_ADDRSTRLEN];
3687 const char *str = inet_ntop (AF_INET6, &in6, buf, sizeof (buf));
3689 return 0;
3691 _ACEOF
3692 if ac_fn_cxx_try_compile "$LINENO"; then :
3693 ac_cv_inet_ntop=yes
3694 else
3695 ac_cv_inet_ntop=no
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_inet_ntop" >&5
3700 $as_echo "$ac_cv_inet_ntop" >&6; }
3701 if test $ac_cv_inet_ntop = yes; then
3703 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
3707 # Determine what GCC version number to use in filesystem paths.
3709 get_gcc_base_ver="cat"
3711 # Check whether --with-gcc-major-version-only was given.
3712 if test "${with_gcc_major_version_only+set}" = set; then :
3713 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
3714 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3722 ac_config_headers="$ac_config_headers config.h"
3724 ac_config_files="$ac_config_files Makefile"
3727 cat >confcache <<\_ACEOF
3728 # This file is a shell script that caches the results of configure
3729 # tests run on this system so they can be shared between configure
3730 # scripts and configure runs, see configure's option --config-cache.
3731 # It is not useful on other systems. If it contains results you don't
3732 # want to keep, you may remove or edit it.
3734 # config.status only pays attention to the cache file if you give it
3735 # the --recheck option to rerun configure.
3737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3739 # following values.
3741 _ACEOF
3743 # The following way of writing the cache mishandles newlines in values,
3744 # but we know of no workaround that is simple, portable, and efficient.
3745 # So, we kill variables containing newlines.
3746 # Ultrix sh set writes to stderr and can't be redirected directly,
3747 # and sets the high bit in the cache file unless we assign to the vars.
3749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3750 eval ac_val=\$$ac_var
3751 case $ac_val in #(
3752 *${as_nl}*)
3753 case $ac_var in #(
3754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3756 esac
3757 case $ac_var in #(
3758 _ | IFS | as_nl) ;; #(
3759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3760 *) { eval $ac_var=; unset $ac_var;} ;;
3761 esac ;;
3762 esac
3763 done
3765 (set) 2>&1 |
3766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3767 *${as_nl}ac_space=\ *)
3768 # `set' does not quote correctly, so add quotes: double-quote
3769 # substitution turns \\\\ into \\, and sed turns \\ into \.
3770 sed -n \
3771 "s/'/'\\\\''/g;
3772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3773 ;; #(
3775 # `set' quotes correctly as required by POSIX, so do not add quotes.
3776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3778 esac |
3779 sort
3781 sed '
3782 /^ac_cv_env_/b end
3783 t clear
3784 :clear
3785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3786 t end
3787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3788 :end' >>confcache
3789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3790 if test -w "$cache_file"; then
3791 if test "x$cache_file" != "x/dev/null"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3793 $as_echo "$as_me: updating cache $cache_file" >&6;}
3794 if test ! -f "$cache_file" || test -h "$cache_file"; then
3795 cat confcache >"$cache_file"
3796 else
3797 case $cache_file in #(
3798 */* | ?:*)
3799 mv -f confcache "$cache_file"$$ &&
3800 mv -f "$cache_file"$$ "$cache_file" ;; #(
3802 mv -f confcache "$cache_file" ;;
3803 esac
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3808 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3811 rm -f confcache
3813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3814 # Let make expand exec_prefix.
3815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3817 DEFS=-DHAVE_CONFIG_H
3819 ac_libobjs=
3820 ac_ltlibobjs=
3822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3823 # 1. Remove the extension, and $U if already installed.
3824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3827 # will be set to the directory where LIBOBJS objects are built.
3828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3830 done
3831 LIBOBJS=$ac_libobjs
3833 LTLIBOBJS=$ac_ltlibobjs
3837 : "${CONFIG_STATUS=./config.status}"
3838 ac_write_fail=0
3839 ac_clean_files_save=$ac_clean_files
3840 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3842 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3843 as_write_fail=0
3844 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3845 #! $SHELL
3846 # Generated by $as_me.
3847 # Run this file to recreate the current configuration.
3848 # Compiler output produced by configure, useful for debugging
3849 # configure, is in config.log if it exists.
3851 debug=false
3852 ac_cs_recheck=false
3853 ac_cs_silent=false
3855 SHELL=\${CONFIG_SHELL-$SHELL}
3856 export SHELL
3857 _ASEOF
3858 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3859 ## -------------------- ##
3860 ## M4sh Initialization. ##
3861 ## -------------------- ##
3863 # Be more Bourne compatible
3864 DUALCASE=1; export DUALCASE # for MKS sh
3865 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3866 emulate sh
3867 NULLCMD=:
3868 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3869 # is contrary to our usage. Disable this feature.
3870 alias -g '${1+"$@"}'='"$@"'
3871 setopt NO_GLOB_SUBST
3872 else
3873 case `(set -o) 2>/dev/null` in #(
3874 *posix*) :
3875 set -o posix ;; #(
3876 *) :
3878 esac
3882 as_nl='
3884 export as_nl
3885 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3886 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3887 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3888 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3889 # Prefer a ksh shell builtin over an external printf program on Solaris,
3890 # but without wasting forks for bash or zsh.
3891 if test -z "$BASH_VERSION$ZSH_VERSION" \
3892 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3893 as_echo='print -r --'
3894 as_echo_n='print -rn --'
3895 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3896 as_echo='printf %s\n'
3897 as_echo_n='printf %s'
3898 else
3899 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3900 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3901 as_echo_n='/usr/ucb/echo -n'
3902 else
3903 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3904 as_echo_n_body='eval
3905 arg=$1;
3906 case $arg in #(
3907 *"$as_nl"*)
3908 expr "X$arg" : "X\\(.*\\)$as_nl";
3909 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3910 esac;
3911 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3913 export as_echo_n_body
3914 as_echo_n='sh -c $as_echo_n_body as_echo'
3916 export as_echo_body
3917 as_echo='sh -c $as_echo_body as_echo'
3920 # The user is always right.
3921 if test "${PATH_SEPARATOR+set}" != set; then
3922 PATH_SEPARATOR=:
3923 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3924 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3925 PATH_SEPARATOR=';'
3930 # IFS
3931 # We need space, tab and new line, in precisely that order. Quoting is
3932 # there to prevent editors from complaining about space-tab.
3933 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3934 # splitting by setting IFS to empty value.)
3935 IFS=" "" $as_nl"
3937 # Find who we are. Look in the path if we contain no directory separator.
3938 as_myself=
3939 case $0 in #((
3940 *[\\/]* ) as_myself=$0 ;;
3941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3947 done
3948 IFS=$as_save_IFS
3951 esac
3952 # We did not find ourselves, most probably we were run as `sh COMMAND'
3953 # in which case we are not to be found in the path.
3954 if test "x$as_myself" = x; then
3955 as_myself=$0
3957 if test ! -f "$as_myself"; then
3958 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3959 exit 1
3962 # Unset variables that we do not need and which cause bugs (e.g. in
3963 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3964 # suppresses any "Segmentation fault" message there. '((' could
3965 # trigger a bug in pdksh 5.2.14.
3966 for as_var in BASH_ENV ENV MAIL MAILPATH
3967 do eval test x\${$as_var+set} = xset \
3968 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3969 done
3970 PS1='$ '
3971 PS2='> '
3972 PS4='+ '
3974 # NLS nuisances.
3975 LC_ALL=C
3976 export LC_ALL
3977 LANGUAGE=C
3978 export LANGUAGE
3980 # CDPATH.
3981 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3984 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3985 # ----------------------------------------
3986 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3987 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3988 # script with STATUS, using 1 if that was 0.
3989 as_fn_error ()
3991 as_status=$1; test $as_status -eq 0 && as_status=1
3992 if test "$4"; then
3993 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3994 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3996 $as_echo "$as_me: error: $2" >&2
3997 as_fn_exit $as_status
3998 } # as_fn_error
4001 # as_fn_set_status STATUS
4002 # -----------------------
4003 # Set $? to STATUS, without forking.
4004 as_fn_set_status ()
4006 return $1
4007 } # as_fn_set_status
4009 # as_fn_exit STATUS
4010 # -----------------
4011 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4012 as_fn_exit ()
4014 set +e
4015 as_fn_set_status $1
4016 exit $1
4017 } # as_fn_exit
4019 # as_fn_unset VAR
4020 # ---------------
4021 # Portably unset VAR.
4022 as_fn_unset ()
4024 { eval $1=; unset $1;}
4026 as_unset=as_fn_unset
4027 # as_fn_append VAR VALUE
4028 # ----------------------
4029 # Append the text in VALUE to the end of the definition contained in VAR. Take
4030 # advantage of any shell optimizations that allow amortized linear growth over
4031 # repeated appends, instead of the typical quadratic growth present in naive
4032 # implementations.
4033 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4034 eval 'as_fn_append ()
4036 eval $1+=\$2
4038 else
4039 as_fn_append ()
4041 eval $1=\$$1\$2
4043 fi # as_fn_append
4045 # as_fn_arith ARG...
4046 # ------------------
4047 # Perform arithmetic evaluation on the ARGs, and store the result in the
4048 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4049 # must be portable across $(()) and expr.
4050 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4051 eval 'as_fn_arith ()
4053 as_val=$(( $* ))
4055 else
4056 as_fn_arith ()
4058 as_val=`expr "$@" || test $? -eq 1`
4060 fi # as_fn_arith
4063 if expr a : '\(a\)' >/dev/null 2>&1 &&
4064 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4065 as_expr=expr
4066 else
4067 as_expr=false
4070 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4071 as_basename=basename
4072 else
4073 as_basename=false
4076 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4077 as_dirname=dirname
4078 else
4079 as_dirname=false
4082 as_me=`$as_basename -- "$0" ||
4083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4084 X"$0" : 'X\(//\)$' \| \
4085 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4086 $as_echo X/"$0" |
4087 sed '/^.*\/\([^/][^/]*\)\/*$/{
4088 s//\1/
4091 /^X\/\(\/\/\)$/{
4092 s//\1/
4095 /^X\/\(\/\).*/{
4096 s//\1/
4099 s/.*/./; q'`
4101 # Avoid depending upon Character Ranges.
4102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4105 as_cr_digits='0123456789'
4106 as_cr_alnum=$as_cr_Letters$as_cr_digits
4108 ECHO_C= ECHO_N= ECHO_T=
4109 case `echo -n x` in #(((((
4110 -n*)
4111 case `echo 'xy\c'` in
4112 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4113 xy) ECHO_C='\c';;
4114 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4115 ECHO_T=' ';;
4116 esac;;
4118 ECHO_N='-n';;
4119 esac
4121 rm -f conf$$ conf$$.exe conf$$.file
4122 if test -d conf$$.dir; then
4123 rm -f conf$$.dir/conf$$.file
4124 else
4125 rm -f conf$$.dir
4126 mkdir conf$$.dir 2>/dev/null
4128 if (echo >conf$$.file) 2>/dev/null; then
4129 if ln -s conf$$.file conf$$ 2>/dev/null; then
4130 as_ln_s='ln -s'
4131 # ... but there are two gotchas:
4132 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4133 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4134 # In both cases, we have to default to `cp -pR'.
4135 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4136 as_ln_s='cp -pR'
4137 elif ln conf$$.file conf$$ 2>/dev/null; then
4138 as_ln_s=ln
4139 else
4140 as_ln_s='cp -pR'
4142 else
4143 as_ln_s='cp -pR'
4145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4146 rmdir conf$$.dir 2>/dev/null
4149 # as_fn_mkdir_p
4150 # -------------
4151 # Create "$as_dir" as a directory, including parents if necessary.
4152 as_fn_mkdir_p ()
4155 case $as_dir in #(
4156 -*) as_dir=./$as_dir;;
4157 esac
4158 test -d "$as_dir" || eval $as_mkdir_p || {
4159 as_dirs=
4160 while :; do
4161 case $as_dir in #(
4162 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4163 *) as_qdir=$as_dir;;
4164 esac
4165 as_dirs="'$as_qdir' $as_dirs"
4166 as_dir=`$as_dirname -- "$as_dir" ||
4167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4168 X"$as_dir" : 'X\(//\)[^/]' \| \
4169 X"$as_dir" : 'X\(//\)$' \| \
4170 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4171 $as_echo X"$as_dir" |
4172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4173 s//\1/
4176 /^X\(\/\/\)[^/].*/{
4177 s//\1/
4180 /^X\(\/\/\)$/{
4181 s//\1/
4184 /^X\(\/\).*/{
4185 s//\1/
4188 s/.*/./; q'`
4189 test -d "$as_dir" && break
4190 done
4191 test -z "$as_dirs" || eval "mkdir $as_dirs"
4192 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4195 } # as_fn_mkdir_p
4196 if mkdir -p . 2>/dev/null; then
4197 as_mkdir_p='mkdir -p "$as_dir"'
4198 else
4199 test -d ./-p && rmdir ./-p
4200 as_mkdir_p=false
4204 # as_fn_executable_p FILE
4205 # -----------------------
4206 # Test if FILE is an executable regular file.
4207 as_fn_executable_p ()
4209 test -f "$1" && test -x "$1"
4210 } # as_fn_executable_p
4211 as_test_x='test -x'
4212 as_executable_p=as_fn_executable_p
4214 # Sed expression to map a string onto a valid CPP name.
4215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4217 # Sed expression to map a string onto a valid variable name.
4218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4221 exec 6>&1
4222 ## ----------------------------------- ##
4223 ## Main body of $CONFIG_STATUS script. ##
4224 ## ----------------------------------- ##
4225 _ASEOF
4226 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4229 # Save the log message, to keep $0 and so on meaningful, and to
4230 # report actual input values of CONFIG_FILES etc. instead of their
4231 # values after options handling.
4232 ac_log="
4233 This file was extended by $as_me, which was
4234 generated by GNU Autoconf 2.69. Invocation command line was
4236 CONFIG_FILES = $CONFIG_FILES
4237 CONFIG_HEADERS = $CONFIG_HEADERS
4238 CONFIG_LINKS = $CONFIG_LINKS
4239 CONFIG_COMMANDS = $CONFIG_COMMANDS
4240 $ $0 $@
4242 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4245 _ACEOF
4247 case $ac_config_files in *"
4248 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4249 esac
4251 case $ac_config_headers in *"
4252 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4253 esac
4256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4257 # Files that config.status was made for.
4258 config_files="$ac_config_files"
4259 config_headers="$ac_config_headers"
4261 _ACEOF
4263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4264 ac_cs_usage="\
4265 \`$as_me' instantiates files and other configuration actions
4266 from templates according to the current configuration. Unless the files
4267 and actions are specified as TAGs, all are instantiated by default.
4269 Usage: $0 [OPTION]... [TAG]...
4271 -h, --help print this help, then exit
4272 -V, --version print version number and configuration settings, then exit
4273 --config print configuration, then exit
4274 -q, --quiet, --silent
4275 do not print progress messages
4276 -d, --debug don't remove temporary files
4277 --recheck update $as_me by reconfiguring in the same conditions
4278 --file=FILE[:TEMPLATE]
4279 instantiate the configuration file FILE
4280 --header=FILE[:TEMPLATE]
4281 instantiate the configuration header FILE
4283 Configuration files:
4284 $config_files
4286 Configuration headers:
4287 $config_headers
4289 Report bugs to the package provider."
4291 _ACEOF
4292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4293 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4294 ac_cs_version="\\
4295 config.status
4296 configured by $0, generated by GNU Autoconf 2.69,
4297 with options \\"\$ac_cs_config\\"
4299 Copyright (C) 2012 Free Software Foundation, Inc.
4300 This config.status script is free software; the Free Software Foundation
4301 gives unlimited permission to copy, distribute and modify it."
4303 ac_pwd='$ac_pwd'
4304 srcdir='$srcdir'
4305 INSTALL='$INSTALL'
4306 test -n "\$AWK" || AWK=awk
4307 _ACEOF
4309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4310 # The default lists apply if the user does not specify any file.
4311 ac_need_defaults=:
4312 while test $# != 0
4314 case $1 in
4315 --*=?*)
4316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4318 ac_shift=:
4320 --*=)
4321 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4322 ac_optarg=
4323 ac_shift=:
4326 ac_option=$1
4327 ac_optarg=$2
4328 ac_shift=shift
4330 esac
4332 case $ac_option in
4333 # Handling of the options.
4334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4335 ac_cs_recheck=: ;;
4336 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4337 $as_echo "$ac_cs_version"; exit ;;
4338 --config | --confi | --conf | --con | --co | --c )
4339 $as_echo "$ac_cs_config"; exit ;;
4340 --debug | --debu | --deb | --de | --d | -d )
4341 debug=: ;;
4342 --file | --fil | --fi | --f )
4343 $ac_shift
4344 case $ac_optarg in
4345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4346 '') as_fn_error $? "missing file argument" ;;
4347 esac
4348 as_fn_append CONFIG_FILES " '$ac_optarg'"
4349 ac_need_defaults=false;;
4350 --header | --heade | --head | --hea )
4351 $ac_shift
4352 case $ac_optarg in
4353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4354 esac
4355 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4356 ac_need_defaults=false;;
4357 --he | --h)
4358 # Conflict between --help and --header
4359 as_fn_error $? "ambiguous option: \`$1'
4360 Try \`$0 --help' for more information.";;
4361 --help | --hel | -h )
4362 $as_echo "$ac_cs_usage"; exit ;;
4363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4365 ac_cs_silent=: ;;
4367 # This is an error.
4368 -*) as_fn_error $? "unrecognized option: \`$1'
4369 Try \`$0 --help' for more information." ;;
4371 *) as_fn_append ac_config_targets " $1"
4372 ac_need_defaults=false ;;
4374 esac
4375 shift
4376 done
4378 ac_configure_extra_args=
4380 if $ac_cs_silent; then
4381 exec 6>/dev/null
4382 ac_configure_extra_args="$ac_configure_extra_args --silent"
4385 _ACEOF
4386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4387 if \$ac_cs_recheck; then
4388 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4389 shift
4390 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4391 CONFIG_SHELL='$SHELL'
4392 export CONFIG_SHELL
4393 exec "\$@"
4396 _ACEOF
4397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4398 exec 5>>config.log
4400 echo
4401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4402 ## Running $as_me. ##
4403 _ASBOX
4404 $as_echo "$ac_log"
4405 } >&5
4407 _ACEOF
4408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4409 _ACEOF
4411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4413 # Handling of arguments.
4414 for ac_config_target in $ac_config_targets
4416 case $ac_config_target in
4417 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4418 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4420 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4421 esac
4422 done
4425 # If the user did not use the arguments to specify the items to instantiate,
4426 # then the envvar interface is used. Set only those that are not.
4427 # We use the long form for the default assignment because of an extremely
4428 # bizarre bug on SunOS 4.1.3.
4429 if $ac_need_defaults; then
4430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4434 # Have a temporary directory for convenience. Make it in the build tree
4435 # simply because there is no reason against having it here, and in addition,
4436 # creating and moving files from /tmp can sometimes cause problems.
4437 # Hook for its removal unless debugging.
4438 # Note that there is a small window in which the directory will not be cleaned:
4439 # after its creation but before its name has been assigned to `$tmp'.
4440 $debug ||
4442 tmp= ac_tmp=
4443 trap 'exit_status=$?
4444 : "${ac_tmp:=$tmp}"
4445 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4447 trap 'as_fn_exit 1' 1 2 13 15
4449 # Create a (secure) tmp directory for tmp files.
4452 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4453 test -d "$tmp"
4454 } ||
4456 tmp=./conf$$-$RANDOM
4457 (umask 077 && mkdir "$tmp")
4458 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4459 ac_tmp=$tmp
4461 # Set up the scripts for CONFIG_FILES section.
4462 # No need to generate them if there are no CONFIG_FILES.
4463 # This happens for instance with `./config.status config.h'.
4464 if test -n "$CONFIG_FILES"; then
4467 ac_cr=`echo X | tr X '\015'`
4468 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4469 # But we know of no other shell where ac_cr would be empty at this
4470 # point, so we can use a bashism as a fallback.
4471 if test "x$ac_cr" = x; then
4472 eval ac_cr=\$\'\\r\'
4474 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4475 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4476 ac_cs_awk_cr='\\r'
4477 else
4478 ac_cs_awk_cr=$ac_cr
4481 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4482 _ACEOF
4486 echo "cat >conf$$subs.awk <<_ACEOF" &&
4487 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4488 echo "_ACEOF"
4489 } >conf$$subs.sh ||
4490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4491 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4492 ac_delim='%!_!# '
4493 for ac_last_try in false false false false false :; do
4494 . ./conf$$subs.sh ||
4495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4497 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4498 if test $ac_delim_n = $ac_delim_num; then
4499 break
4500 elif $ac_last_try; then
4501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4502 else
4503 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4505 done
4506 rm -f conf$$subs.sh
4508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4509 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4510 _ACEOF
4511 sed -n '
4513 s/^/S["/; s/!.*/"]=/
4516 s/^[^!]*!//
4517 :repl
4518 t repl
4519 s/'"$ac_delim"'$//
4520 t delim
4523 s/\(.\{148\}\)..*/\1/
4524 t more1
4525 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4528 b repl
4529 :more1
4530 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4533 s/.\{148\}//
4534 t nl
4535 :delim
4537 s/\(.\{148\}\)..*/\1/
4538 t more2
4539 s/["\\]/\\&/g; s/^/"/; s/$/"/
4542 :more2
4543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4546 s/.\{148\}//
4547 t delim
4548 ' <conf$$subs.awk | sed '
4549 /^[^""]/{
4551 s/\n//
4553 ' >>$CONFIG_STATUS || ac_write_fail=1
4554 rm -f conf$$subs.awk
4555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4556 _ACAWK
4557 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4558 for (key in S) S_is_set[key] = 1
4559 FS = "\a"
4563 line = $ 0
4564 nfields = split(line, field, "@")
4565 substed = 0
4566 len = length(field[1])
4567 for (i = 2; i < nfields; i++) {
4568 key = field[i]
4569 keylen = length(key)
4570 if (S_is_set[key]) {
4571 value = S[key]
4572 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4573 len += length(value) + length(field[++i])
4574 substed = 1
4575 } else
4576 len += 1 + keylen
4579 print line
4582 _ACAWK
4583 _ACEOF
4584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4585 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4586 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4587 else
4589 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4590 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4591 _ACEOF
4593 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4594 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4595 # trailing colons and then remove the whole line if VPATH becomes empty
4596 # (actually we leave an empty line to preserve line numbers).
4597 if test "x$srcdir" = x.; then
4598 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4600 s///
4601 s/^/:/
4602 s/[ ]*$/:/
4603 s/:\$(srcdir):/:/g
4604 s/:\${srcdir}:/:/g
4605 s/:@srcdir@:/:/g
4606 s/^:*//
4607 s/:*$//
4609 s/\(=[ ]*\).*/\1/
4611 s/\n//
4612 s/^[^=]*=[ ]*$//
4616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4617 fi # test -n "$CONFIG_FILES"
4619 # Set up the scripts for CONFIG_HEADERS section.
4620 # No need to generate them if there are no CONFIG_HEADERS.
4621 # This happens for instance with `./config.status Makefile'.
4622 if test -n "$CONFIG_HEADERS"; then
4623 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4624 BEGIN {
4625 _ACEOF
4627 # Transform confdefs.h into an awk script `defines.awk', embedded as
4628 # here-document in config.status, that substitutes the proper values into
4629 # config.h.in to produce config.h.
4631 # Create a delimiter string that does not exist in confdefs.h, to ease
4632 # handling of long lines.
4633 ac_delim='%!_!# '
4634 for ac_last_try in false false :; do
4635 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4636 if test -z "$ac_tt"; then
4637 break
4638 elif $ac_last_try; then
4639 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4640 else
4641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4643 done
4645 # For the awk script, D is an array of macro values keyed by name,
4646 # likewise P contains macro parameters if any. Preserve backslash
4647 # newline sequences.
4649 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4650 sed -n '
4651 s/.\{148\}/&'"$ac_delim"'/g
4652 t rset
4653 :rset
4654 s/^[ ]*#[ ]*define[ ][ ]*/ /
4655 t def
4657 :def
4658 s/\\$//
4659 t bsnl
4660 s/["\\]/\\&/g
4661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4662 D["\1"]=" \3"/p
4663 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4665 :bsnl
4666 s/["\\]/\\&/g
4667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4668 D["\1"]=" \3\\\\\\n"\\/p
4669 t cont
4670 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4671 t cont
4673 :cont
4675 s/.\{148\}/&'"$ac_delim"'/g
4676 t clear
4677 :clear
4678 s/\\$//
4679 t bsnlc
4680 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4682 :bsnlc
4683 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4684 b cont
4685 ' <confdefs.h | sed '
4686 s/'"$ac_delim"'/"\\\
4687 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4690 for (key in D) D_is_set[key] = 1
4691 FS = "\a"
4693 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4694 line = \$ 0
4695 split(line, arg, " ")
4696 if (arg[1] == "#") {
4697 defundef = arg[2]
4698 mac1 = arg[3]
4699 } else {
4700 defundef = substr(arg[1], 2)
4701 mac1 = arg[2]
4703 split(mac1, mac2, "(") #)
4704 macro = mac2[1]
4705 prefix = substr(line, 1, index(line, defundef) - 1)
4706 if (D_is_set[macro]) {
4707 # Preserve the white space surrounding the "#".
4708 print prefix "define", macro P[macro] D[macro]
4709 next
4710 } else {
4711 # Replace #undef with comments. This is necessary, for example,
4712 # in the case of _POSIX_SOURCE, which is predefined and required
4713 # on some systems where configure will not decide to define it.
4714 if (defundef == "undef") {
4715 print "/*", prefix defundef, macro, "*/"
4716 next
4720 { print }
4721 _ACAWK
4722 _ACEOF
4723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4724 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4725 fi # test -n "$CONFIG_HEADERS"
4728 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4729 shift
4730 for ac_tag
4732 case $ac_tag in
4733 :[FHLC]) ac_mode=$ac_tag; continue;;
4734 esac
4735 case $ac_mode$ac_tag in
4736 :[FHL]*:*);;
4737 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4738 :[FH]-) ac_tag=-:-;;
4739 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4740 esac
4741 ac_save_IFS=$IFS
4742 IFS=:
4743 set x $ac_tag
4744 IFS=$ac_save_IFS
4745 shift
4746 ac_file=$1
4747 shift
4749 case $ac_mode in
4750 :L) ac_source=$1;;
4751 :[FH])
4752 ac_file_inputs=
4753 for ac_f
4755 case $ac_f in
4756 -) ac_f="$ac_tmp/stdin";;
4757 *) # Look for the file first in the build tree, then in the source tree
4758 # (if the path is not absolute). The absolute path cannot be DOS-style,
4759 # because $ac_f cannot contain `:'.
4760 test -f "$ac_f" ||
4761 case $ac_f in
4762 [\\/$]*) false;;
4763 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4764 esac ||
4765 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4766 esac
4767 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4768 as_fn_append ac_file_inputs " '$ac_f'"
4769 done
4771 # Let's still pretend it is `configure' which instantiates (i.e., don't
4772 # use $as_me), people would be surprised to read:
4773 # /* config.h. Generated by config.status. */
4774 configure_input='Generated from '`
4775 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4776 `' by configure.'
4777 if test x"$ac_file" != x-; then
4778 configure_input="$ac_file. $configure_input"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4780 $as_echo "$as_me: creating $ac_file" >&6;}
4782 # Neutralize special characters interpreted by sed in replacement strings.
4783 case $configure_input in #(
4784 *\&* | *\|* | *\\* )
4785 ac_sed_conf_input=`$as_echo "$configure_input" |
4786 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4787 *) ac_sed_conf_input=$configure_input;;
4788 esac
4790 case $ac_tag in
4791 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4793 esac
4795 esac
4797 ac_dir=`$as_dirname -- "$ac_file" ||
4798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4799 X"$ac_file" : 'X\(//\)[^/]' \| \
4800 X"$ac_file" : 'X\(//\)$' \| \
4801 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4802 $as_echo X"$ac_file" |
4803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4804 s//\1/
4807 /^X\(\/\/\)[^/].*/{
4808 s//\1/
4811 /^X\(\/\/\)$/{
4812 s//\1/
4815 /^X\(\/\).*/{
4816 s//\1/
4819 s/.*/./; q'`
4820 as_dir="$ac_dir"; as_fn_mkdir_p
4821 ac_builddir=.
4823 case "$ac_dir" in
4824 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4826 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4827 # A ".." for each directory in $ac_dir_suffix.
4828 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4829 case $ac_top_builddir_sub in
4830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4832 esac ;;
4833 esac
4834 ac_abs_top_builddir=$ac_pwd
4835 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4836 # for backward compatibility:
4837 ac_top_builddir=$ac_top_build_prefix
4839 case $srcdir in
4840 .) # We are building in place.
4841 ac_srcdir=.
4842 ac_top_srcdir=$ac_top_builddir_sub
4843 ac_abs_top_srcdir=$ac_pwd ;;
4844 [\\/]* | ?:[\\/]* ) # Absolute name.
4845 ac_srcdir=$srcdir$ac_dir_suffix;
4846 ac_top_srcdir=$srcdir
4847 ac_abs_top_srcdir=$srcdir ;;
4848 *) # Relative name.
4849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4850 ac_top_srcdir=$ac_top_build_prefix$srcdir
4851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4852 esac
4853 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4856 case $ac_mode in
4859 # CONFIG_FILE
4862 case $INSTALL in
4863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4865 esac
4866 _ACEOF
4868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4869 # If the template does not know about datarootdir, expand it.
4870 # FIXME: This hack should be removed a few years after 2.60.
4871 ac_datarootdir_hack=; ac_datarootdir_seen=
4872 ac_sed_dataroot='
4873 /datarootdir/ {
4877 /@datadir@/p
4878 /@docdir@/p
4879 /@infodir@/p
4880 /@localedir@/p
4881 /@mandir@/p'
4882 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4883 *datarootdir*) ac_datarootdir_seen=yes;;
4884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4886 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4887 _ACEOF
4888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4889 ac_datarootdir_hack='
4890 s&@datadir@&$datadir&g
4891 s&@docdir@&$docdir&g
4892 s&@infodir@&$infodir&g
4893 s&@localedir@&$localedir&g
4894 s&@mandir@&$mandir&g
4895 s&\\\${datarootdir}&$datarootdir&g' ;;
4896 esac
4897 _ACEOF
4899 # Neutralize VPATH when `$srcdir' = `.'.
4900 # Shell code in configure.ac might set extrasub.
4901 # FIXME: do we really want to maintain this feature?
4902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4903 ac_sed_extra="$ac_vpsub
4904 $extrasub
4905 _ACEOF
4906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4909 s|@configure_input@|$ac_sed_conf_input|;t t
4910 s&@top_builddir@&$ac_top_builddir_sub&;t t
4911 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4912 s&@srcdir@&$ac_srcdir&;t t
4913 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4914 s&@top_srcdir@&$ac_top_srcdir&;t t
4915 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4916 s&@builddir@&$ac_builddir&;t t
4917 s&@abs_builddir@&$ac_abs_builddir&;t t
4918 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4919 s&@INSTALL@&$ac_INSTALL&;t t
4920 $ac_datarootdir_hack
4922 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4923 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4925 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4926 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4927 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4928 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4930 which seems to be undefined. Please make sure it is defined" >&5
4931 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4932 which seems to be undefined. Please make sure it is defined" >&2;}
4934 rm -f "$ac_tmp/stdin"
4935 case $ac_file in
4936 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4937 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4938 esac \
4939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4943 # CONFIG_HEADER
4945 if test x"$ac_file" != x-; then
4947 $as_echo "/* $configure_input */" \
4948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4949 } >"$ac_tmp/config.h" \
4950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4951 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4953 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4954 else
4955 rm -f "$ac_file"
4956 mv "$ac_tmp/config.h" "$ac_file" \
4957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4959 else
4960 $as_echo "/* $configure_input */" \
4961 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4962 || as_fn_error $? "could not create -" "$LINENO" 5
4967 esac
4969 done # for ac_tag
4972 as_fn_exit 0
4973 _ACEOF
4974 ac_clean_files=$ac_clean_files_save
4976 test $ac_write_fail = 0 ||
4977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4980 # configure is writing to config.log, and then calls config.status.
4981 # config.status does its own redirection, appending to config.log.
4982 # Unfortunately, on DOS this fails, as config.log is still kept open
4983 # by configure, so config.status won't be able to write to it; its
4984 # output is simply discarded. So we exec the FD to /dev/null,
4985 # effectively closing config.log, so it can be properly (re)opened and
4986 # appended to by config.status. When coming back to configure, we
4987 # need to make the FD available again.
4988 if test "$no_create" != yes; then
4989 ac_cs_success=:
4990 ac_config_status_args=
4991 test "$silent" = yes &&
4992 ac_config_status_args="$ac_config_status_args --quiet"
4993 exec 5>/dev/null
4994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4995 exec 5>>config.log
4996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4997 # would make configure fail if this is the last instruction.
4998 $ac_cs_success || as_fn_exit 1
5000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}