c++: Clear is_unbraced_* when parsing declaration_seq_opt [PR114917]
[official-gcc.git] / libcpp / configure
blob32d6aaa30699b3c7b23f7c91563743b17d736429
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: gcc-bugs@gcc.gnu.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='cpplib'
582 PACKAGE_TARNAME='cpplib'
583 PACKAGE_VERSION=' '
584 PACKAGE_STRING='cpplib '
585 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
586 PACKAGE_URL=''
588 ac_unique_file="ucnid.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 gt_needs=
626 ac_subst_vars='LTLIBOBJS
627 CET_HOST_FLAGS
628 PICFLAG
629 enable_host_pie
630 enable_host_shared
631 MAINT
632 USED_CATALOGS
633 PACKAGE
634 CATOBJEXT
635 GENCAT
636 INSTOBJEXT
637 DATADIRNAME
638 CATALOGS
639 INCINTL
640 LIBINTL_DEP
641 POSUB
642 LTLIBINTL
643 LIBINTL
644 INTLLIBS
645 LTLIBICONV
646 LIBICONV
647 INTL_MACOSX_LIBS
648 MSGMERGE
649 XGETTEXT
650 GMSGFMT
651 MSGFMT
652 USE_NLS
653 MKINSTALLDIRS
654 ALLOCA
655 LIBOBJS
656 CXXDEPMODE
657 DEPDIR
658 am__leading_dot
659 WERROR
660 noexception_flags
661 WARN_PEDANTIC
662 c_warn
663 warn
664 ETAGS
665 AUTOHEADER
666 AUTOCONF
667 ACLOCAL
668 EGREP
669 GREP
672 RANLIB
673 ac_ct_CXX
674 CXXFLAGS
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 SET_MAKE
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_largefile
741 enable_werror_always
742 enable_nls
743 with_gnu_ld
744 enable_rpath
745 with_libiconv_prefix
746 with_libiconv_type
747 with_libintl_prefix
748 with_libintl_type
749 enable_maintainer_mode
750 enable_checking
751 enable_canonical_system_headers
752 enable_host_shared
753 enable_host_pie
754 enable_cet
755 enable_valgrind_annotations
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
766 CXXFLAGS
768 CPP'
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
819 ac_prev=
820 ac_dashdash=
821 for ac_option
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
840 ac_dashdash=yes ;;
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
859 --config-cache | -C)
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 esac
1177 done
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1261 /^X\(\/\/\)$/{
1262 s//\1/
1265 /^X\(\/\).*/{
1266 s//\1/
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1274 else
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1303 # Report the --help message.
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures cpplib to adapt to many kinds of systems.
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1316 Defaults for the options are specified in brackets.
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 [PREFIX]
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1340 For better control, use the options below.
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1364 cat <<\_ACEOF
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370 _ACEOF
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of cpplib :";;
1376 esac
1377 cat <<\_ACEOF
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --disable-largefile omit support for large files
1384 --enable-werror-always enable -Werror despite compiler version
1385 --disable-nls do not use Native Language Support
1386 --disable-rpath do not hardcode runtime library paths
1387 --enable-maintainer-mode enable rules only needed by maintainers
1388 --enable-checking[=LIST]
1389 enable expensive run-time checks. With LIST, enable
1390 only specific categories of checks. Categories are:
1391 yes,no,all,none,release. Flags are: misc,valgrind or
1392 other strings
1393 --enable-canonical-system-headers
1394 enable or disable system headers canonicalization
1395 --enable-host-shared build host code as shared libraries
1396 --enable-host-pie build host code as PIE
1397 --enable-cet enable Intel CET in host libraries [default=auto]
1398 --enable-valgrind-annotations
1399 enable valgrind runtime interaction
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-gnu-ld assume the C compiler uses GNU ld default=no
1405 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1406 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1407 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1408 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1409 --without-libintl-prefix don't search for libintl in includedir and libdir
1410 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1422 CPP C preprocessor
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1427 Report bugs to <gcc-bugs@gcc.gnu.org>.
1428 _ACEOF
1429 ac_status=$?
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489 cat <<\_ACEOF
1490 cpplib configure
1491 generated by GNU Autoconf 2.69
1493 Copyright (C) 2012 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1535 ac_retval=1
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1540 } # ac_fn_c_try_compile
1542 # ac_fn_cxx_try_compile LINENO
1543 # ----------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_cxx_try_compile ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_cxx_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1573 ac_retval=1
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_cxx_try_compile
1580 # ac_fn_c_try_cpp LINENO
1581 # ----------------------
1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_cpp ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } > conftest.i && {
1602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=1
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_c_try_cpp
1617 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1620 # the include files in INCLUDES and setting the cache variable VAR
1621 # accordingly.
1622 ac_fn_c_check_header_mongrel ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if eval \${$3+:} false; then :
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 else
1635 # Is the header compilable?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1637 $as_echo_n "checking $2 usability... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 ac_header_compiler=yes
1645 else
1646 ac_header_compiler=no
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1650 $as_echo "$ac_header_compiler" >&6; }
1652 # Is the header present?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1654 $as_echo_n "checking $2 presence... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_cpp "$LINENO"; then :
1660 ac_header_preproc=yes
1661 else
1662 ac_header_preproc=no
1664 rm -f conftest.err conftest.i conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1666 $as_echo "$ac_header_preproc" >&6; }
1668 # So? What about this header?
1669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 yes:no: )
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1672 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 no:yes:* )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1678 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1680 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1682 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1684 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ( $as_echo "## ----------------------------------- ##
1688 ## Report this to gcc-bugs@gcc.gnu.org ##
1689 ## ----------------------------------- ##"
1690 ) | sed "s/^/$as_me: WARNING: /" >&2
1692 esac
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 eval "$3=\$ac_header_compiler"
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 } # ac_fn_c_check_header_mongrel
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_run
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 } # ac_fn_c_check_header_compile
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 test -x conftest$ac_exeext
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 ac_retval=1
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_c_try_link
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=no"
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1844 main ()
1846 if (sizeof ($2))
1847 return 0;
1849 return 0;
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1857 main ()
1859 if (sizeof (($2)))
1860 return 0;
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1867 else
1868 eval "$3=yes"
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_type
1881 # ac_fn_c_find_uintX_t LINENO BITS VAR
1882 # ------------------------------------
1883 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1884 # accordingly.
1885 ac_fn_c_find_uintX_t ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1889 $as_echo_n "checking for uint$2_t... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=no"
1894 # Order is important - never check a type that is potentially smaller
1895 # than half of the expected target width.
1896 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1897 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $ac_includes_default
1902 main ()
1904 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1905 test_array [0] = 0;
1906 return test_array [0];
1909 return 0;
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 case $ac_type in #(
1914 uint$2_t) :
1915 eval "$3=yes" ;; #(
1916 *) :
1917 eval "$3=\$ac_type" ;;
1918 esac
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 if eval test \"x\$"$3"\" = x"no"; then :
1923 else
1924 break
1926 done
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_find_uintX_t
1935 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1936 # --------------------------------------------
1937 # Tries to find the compile-time value of EXPR in a program that includes
1938 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1939 # computed
1940 ac_fn_c_compute_int ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if test "$cross_compiling" = yes; then
1944 # Depending upon the size, compute the lo and hi bounds.
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 main ()
1951 static int test_array [1 - 2 * !(($2) >= 0)];
1952 test_array [0] = 0;
1953 return test_array [0];
1956 return 0;
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_lo=0 ac_mid=0
1961 while :; do
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1966 main ()
1968 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1969 test_array [0] = 0;
1970 return test_array [0];
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_hi=$ac_mid; break
1978 else
1979 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1980 if test $ac_lo -le $ac_mid; then
1981 ac_lo= ac_hi=
1982 break
1984 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 done
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1993 main ()
1995 static int test_array [1 - 2 * !(($2) < 0)];
1996 test_array [0] = 0;
1997 return test_array [0];
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_hi=-1 ac_mid=-1
2005 while :; do
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2013 test_array [0] = 0;
2014 return test_array [0];
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_lo=$ac_mid; break
2022 else
2023 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2024 if test $ac_mid -le $ac_hi; then
2025 ac_lo= ac_hi=
2026 break
2028 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 done
2032 else
2033 ac_lo= ac_hi=
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 # Binary search between lo and hi bounds.
2039 while test "x$ac_lo" != "x$ac_hi"; do
2040 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 main ()
2047 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2048 test_array [0] = 0;
2049 return test_array [0];
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_hi=$ac_mid
2057 else
2058 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 done
2062 case $ac_lo in #((
2063 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2064 '') ac_retval=1 ;;
2065 esac
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2070 static long int longval () { return $2; }
2071 static unsigned long int ulongval () { return $2; }
2072 #include <stdio.h>
2073 #include <stdlib.h>
2075 main ()
2078 FILE *f = fopen ("conftest.val", "w");
2079 if (! f)
2080 return 1;
2081 if (($2) < 0)
2083 long int i = longval ();
2084 if (i != ($2))
2085 return 1;
2086 fprintf (f, "%ld", i);
2088 else
2090 unsigned long int i = ulongval ();
2091 if (i != ($2))
2092 return 1;
2093 fprintf (f, "%lu", i);
2095 /* Do not output a trailing newline, as this causes \r\n confusion
2096 on some platforms. */
2097 return ferror (f) || fclose (f) != 0;
2100 return 0;
2102 _ACEOF
2103 if ac_fn_c_try_run "$LINENO"; then :
2104 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2105 else
2106 ac_retval=1
2108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2109 conftest.$ac_objext conftest.beam conftest.$ac_ext
2110 rm -f conftest.val
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 as_fn_set_status $ac_retval
2116 } # ac_fn_c_compute_int
2118 # ac_fn_c_check_func LINENO FUNC VAR
2119 # ----------------------------------
2120 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2121 ac_fn_c_check_func ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2133 #define $2 innocuous_$2
2135 /* System header to define __stub macros and hopefully few prototypes,
2136 which can conflict with char $2 (); below.
2137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2138 <limits.h> exists even on freestanding compilers. */
2140 #ifdef __STDC__
2141 # include <limits.h>
2142 #else
2143 # include <assert.h>
2144 #endif
2146 #undef $2
2148 /* Override any GCC internal prototype to avoid an error.
2149 Use char because int might match the return type of a GCC
2150 builtin and then its argument prototype would still apply. */
2151 #ifdef __cplusplus
2152 extern "C"
2153 #endif
2154 char $2 ();
2155 /* The GNU C library defines this for functions which it implements
2156 to always fail with ENOSYS. Some functions are actually named
2157 something starting with __ and the normal name is an alias. */
2158 #if defined __stub_$2 || defined __stub___$2
2159 choke me
2160 #endif
2163 main ()
2165 return $2 ();
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_link "$LINENO"; then :
2171 eval "$3=yes"
2172 else
2173 eval "$3=no"
2175 rm -f core conftest.err conftest.$ac_objext \
2176 conftest$ac_exeext conftest.$ac_ext
2178 eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_func
2185 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2186 # ---------------------------------------------
2187 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2188 # accordingly.
2189 ac_fn_c_check_decl ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 as_decl_name=`echo $2|sed 's/ *(.*//'`
2193 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2195 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2196 if eval \${$3+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2203 main ()
2205 #ifndef $as_decl_name
2206 #ifdef __cplusplus
2207 (void) $as_decl_use;
2208 #else
2209 (void) $as_decl_name;
2210 #endif
2211 #endif
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 eval "$3=yes"
2219 else
2220 eval "$3=no"
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 eval ac_res=\$$3
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_check_decl
2231 # ac_fn_cxx_try_link LINENO
2232 # -------------------------
2233 # Try to link conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_cxx_try_link ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 rm -f conftest.$ac_objext conftest$ac_exeext
2238 if { { ac_try="$ac_link"
2239 case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_link") 2>conftest.err
2246 ac_status=$?
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } && {
2254 test -z "$ac_cxx_werror_flag" ||
2255 test ! -s conftest.err
2256 } && test -s conftest$ac_exeext && {
2257 test "$cross_compiling" = yes ||
2258 test -x conftest$ac_exeext
2259 }; then :
2260 ac_retval=0
2261 else
2262 $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 ac_retval=1
2267 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2268 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2269 # interfere with the next link command; also delete a directory that is
2270 # left behind by Apple's compiler. We do this before executing the actions.
2271 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2275 } # ac_fn_cxx_try_link
2277 # ac_fn_cxx_try_run LINENO
2278 # ------------------------
2279 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2280 # that executables *can* be run.
2281 ac_fn_cxx_try_run ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 if { { ac_try="$ac_link"
2285 case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_link") 2>&5
2292 ac_status=$?
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2295 { { case "(($ac_try" in
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2298 esac
2299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2300 $as_echo "$ac_try_echo"; } >&5
2301 (eval "$ac_try") 2>&5
2302 ac_status=$?
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; }; }; then :
2305 ac_retval=0
2306 else
2307 $as_echo "$as_me: program exited with status $ac_status" >&5
2308 $as_echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2311 ac_retval=$ac_status
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_cxx_try_run
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by cpplib $as_me , which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2325 $ $0 $@
2327 _ACEOF
2328 exec 5>>config.log
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352 _ASUNAME
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2360 done
2361 IFS=$as_save_IFS
2363 } >&5
2365 cat >&5 <<_ACEOF
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2372 _ACEOF
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2386 for ac_arg
2388 case $ac_arg in
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2392 continue ;;
2393 *\'*)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 esac
2396 case $ac_pass in
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2402 else
2403 case $ac_arg in
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 esac
2412 -* ) ac_must_keep_next=true ;;
2413 esac
2415 as_fn_append ac_configure_args " '$ac_arg'"
2417 esac
2418 done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2431 echo
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436 echo
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in #(
2442 *${as_nl}*)
2443 case $ac_var in #(
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 esac
2447 case $ac_var in #(
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2451 esac ;;
2452 esac
2453 done
2454 (set) 2>&1 |
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2457 sed -n \
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 ;; #(
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 esac |
2465 sort
2467 echo
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472 echo
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487 echo
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503 echo
2504 cat confdefs.h
2505 echo
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2510 } >&5
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 exit $exit_status
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2562 esac
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2566 else
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2577 . "$ac_site_file" \
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2583 done
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2591 case $cache_file in
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2594 esac
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 >$cache_file
2602 gt_needs="$gt_needs "
2603 # Check that the precious variables saved in the cache have kept the same
2604 # value.
2605 ac_cache_corrupted=false
2606 for ac_var in $ac_precious_vars; do
2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608 eval ac_new_set=\$ac_env_${ac_var}_set
2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610 eval ac_new_val=\$ac_env_${ac_var}_value
2611 case $ac_old_set,$ac_new_set in
2612 set,)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2616 ,set)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,);;
2622 if test "x$ac_old_val" != "x$ac_new_val"; then
2623 # differences in whitespace do not lead to failure.
2624 ac_old_val_w=`echo x $ac_old_val`
2625 ac_new_val_w=`echo x $ac_new_val`
2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2628 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2629 ac_cache_corrupted=:
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2632 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2633 eval $ac_var=\$ac_old_val
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2636 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2638 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2639 fi;;
2640 esac
2641 # Pass precious variables to config.status.
2642 if test "$ac_new_set" = set; then
2643 case $ac_new_val in
2644 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645 *) ac_arg=$ac_var=$ac_new_val ;;
2646 esac
2647 case " $ac_configure_args " in
2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650 esac
2652 done
2653 if $ac_cache_corrupted; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2658 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2660 ## -------------------- ##
2661 ## Main body of script. ##
2662 ## -------------------- ##
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 ac_aux_dir=
2677 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2678 if test -f "$ac_dir/install-sh"; then
2679 ac_aux_dir=$ac_dir
2680 ac_install_sh="$ac_aux_dir/install-sh -c"
2681 break
2682 elif test -f "$ac_dir/install.sh"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/install.sh -c"
2685 break
2686 elif test -f "$ac_dir/shtool"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/shtool install -c"
2689 break
2691 done
2692 if test -z "$ac_aux_dir"; then
2693 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2696 # These three variables are undocumented and unsupported,
2697 # and are intended to be withdrawn in a future Autoconf release.
2698 # They can cause serious problems if a builder's source tree is in a directory
2699 # whose full name contains unusual characters.
2700 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2701 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2702 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2705 # Make sure we can run config.sub.
2706 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2707 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2710 $as_echo_n "checking build system type... " >&6; }
2711 if ${ac_cv_build+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 ac_build_alias=$build_alias
2715 test "x$ac_build_alias" = x &&
2716 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2717 test "x$ac_build_alias" = x &&
2718 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2719 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2720 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2724 $as_echo "$ac_cv_build" >&6; }
2725 case $ac_cv_build in
2726 *-*-*) ;;
2727 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2728 esac
2729 build=$ac_cv_build
2730 ac_save_IFS=$IFS; IFS='-'
2731 set x $ac_cv_build
2732 shift
2733 build_cpu=$1
2734 build_vendor=$2
2735 shift; shift
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2738 build_os=$*
2739 IFS=$ac_save_IFS
2740 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2744 $as_echo_n "checking host system type... " >&6; }
2745 if ${ac_cv_host+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 if test "x$host_alias" = x; then
2749 ac_cv_host=$ac_cv_build
2750 else
2751 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2752 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2757 $as_echo "$ac_cv_host" >&6; }
2758 case $ac_cv_host in
2759 *-*-*) ;;
2760 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2761 esac
2762 host=$ac_cv_host
2763 ac_save_IFS=$IFS; IFS='-'
2764 set x $ac_cv_host
2765 shift
2766 host_cpu=$1
2767 host_vendor=$2
2768 shift; shift
2769 # Remember, the first character of IFS is used to create $*,
2770 # except with old shells:
2771 host_os=$*
2772 IFS=$ac_save_IFS
2773 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2777 $as_echo_n "checking target system type... " >&6; }
2778 if ${ac_cv_target+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test "x$target_alias" = x; then
2782 ac_cv_target=$ac_cv_host
2783 else
2784 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2790 $as_echo "$ac_cv_target" >&6; }
2791 case $ac_cv_target in
2792 *-*-*) ;;
2793 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2794 esac
2795 target=$ac_cv_target
2796 ac_save_IFS=$IFS; IFS='-'
2797 set x $ac_cv_target
2798 shift
2799 target_cpu=$1
2800 target_vendor=$2
2801 shift; shift
2802 # Remember, the first character of IFS is used to create $*,
2803 # except with old shells:
2804 target_os=$*
2805 IFS=$ac_save_IFS
2806 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2809 # The aliases save the names the user supplied, while $host etc.
2810 # will get canonicalized.
2811 test -n "$target_alias" &&
2812 test "$program_prefix$program_suffix$program_transform_name" = \
2813 NONENONEs,x,x, &&
2814 program_prefix=${target_alias}-
2817 # Checks for programs.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2820 set x ${MAKE-make}
2821 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 cat >conftest.make <<\_ACEOF
2826 SHELL = /bin/sh
2827 all:
2828 @echo '@@@%%%=$(MAKE)=@@@%%%'
2829 _ACEOF
2830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2832 *@@@%%%=?*=@@@%%%*)
2833 eval ac_cv_prog_make_${ac_make}_set=yes;;
2835 eval ac_cv_prog_make_${ac_make}_set=no;;
2836 esac
2837 rm -f conftest.make
2839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841 $as_echo "yes" >&6; }
2842 SET_MAKE=
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 SET_MAKE="MAKE=${MAKE-make}"
2849 # Find a good install program. We prefer a C program (faster),
2850 # so one script is as good as another. But avoid the broken or
2851 # incompatible versions:
2852 # SysV /etc/install, /usr/sbin/install
2853 # SunOS /usr/etc/install
2854 # IRIX /sbin/install
2855 # AIX /bin/install
2856 # AmigaOS /C/install, which installs bootblocks on floppy discs
2857 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2858 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2859 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2860 # OS/2's system install, which has a completely different semantic
2861 # ./install, which can be erroneously created by make from ./install.sh.
2862 # Reject install programs that cannot install multiple files.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2864 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2865 if test -z "$INSTALL"; then
2866 if ${ac_cv_path_install+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 # Account for people who put trailing slashes in PATH elements.
2875 case $as_dir/ in #((
2876 ./ | .// | /[cC]/* | \
2877 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2878 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2879 /usr/ucb/* ) ;;
2881 # OSF1 and SCO ODT 3.0 have their own names for install.
2882 # Don't use installbsd from OSF since it installs stuff as root
2883 # by default.
2884 for ac_prog in ginstall scoinst install; do
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2887 if test $ac_prog = install &&
2888 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2889 # AIX install. It has an incompatible calling convention.
2891 elif test $ac_prog = install &&
2892 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2893 # program-specific install script used by HP pwplus--don't use.
2895 else
2896 rm -rf conftest.one conftest.two conftest.dir
2897 echo one > conftest.one
2898 echo two > conftest.two
2899 mkdir conftest.dir
2900 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2901 test -s conftest.one && test -s conftest.two &&
2902 test -s conftest.dir/conftest.one &&
2903 test -s conftest.dir/conftest.two
2904 then
2905 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2906 break 3
2910 done
2911 done
2913 esac
2915 done
2916 IFS=$as_save_IFS
2918 rm -rf conftest.one conftest.two conftest.dir
2921 if test "${ac_cv_path_install+set}" = set; then
2922 INSTALL=$ac_cv_path_install
2923 else
2924 # As a last resort, use the slow shell script. Don't cache a
2925 # value for INSTALL within a source directory, because that will
2926 # break other packages using the cache if that directory is
2927 # removed, or if the value is a relative name.
2928 INSTALL=$ac_install_sh
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2932 $as_echo "$INSTALL" >&6; }
2934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2935 # It thinks the first close brace ends the variable substitution.
2936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2971 IFS=$as_save_IFS
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2986 if test -z "$ac_cv_prog_CC"; then
2987 ac_ct_CC=$CC
2988 # Extract the first word of "gcc", so it can be a program name with args.
2989 set dummy gcc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CC="gcc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016 if test -n "$ac_ct_CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018 $as_echo "$ac_ct_CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3024 if test "x$ac_ct_CC" = x; then
3025 CC=""
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028 yes:)
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033 CC=$ac_ct_CC
3035 else
3036 CC="$ac_cv_prog_CC"
3039 if test -z "$CC"; then
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}cc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_CC="${ac_tool_prefix}cc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3080 if test -z "$CC"; then
3081 # Extract the first word of "cc", so it can be a program name with args.
3082 set dummy cc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 ac_prog_rejected=no
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3100 ac_prog_rejected=yes
3101 continue
3103 ac_cv_prog_CC="cc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3111 if test $ac_prog_rejected = yes; then
3112 # We found a bogon in the path, so make sure we never use it.
3113 set dummy $ac_cv_prog_CC
3114 shift
3115 if test $# != 0; then
3116 # We chose a different compiler from the bogus one.
3117 # However, it has the same basename, so the bogon will be chosen
3118 # first if we set CC to just the basename; use the full file name.
3119 shift
3120 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 $as_echo "$CC" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3136 if test -z "$CC"; then
3137 if test -n "$ac_tool_prefix"; then
3138 for ac_prog in cl.exe
3140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3177 test -n "$CC" && break
3178 done
3180 if test -z "$CC"; then
3181 ac_ct_CC=$CC
3182 for ac_prog in cl.exe
3184 # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$ac_ct_CC"; then
3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201 ac_cv_prog_ac_ct_CC="$ac_prog"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3205 done
3206 done
3207 IFS=$as_save_IFS
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3221 test -n "$ac_ct_CC" && break
3222 done
3224 if test "x$ac_ct_CC" = x; then
3225 CC=""
3226 else
3227 case $cross_compiling:$ac_tool_warned in
3228 yes:)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231 ac_tool_warned=yes ;;
3232 esac
3233 CC=$ac_ct_CC
3240 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "no acceptable C compiler found in \$PATH
3243 See \`config.log' for more details" "$LINENO" 5; }
3245 # Provide some information about the compiler.
3246 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3247 set X $ac_compile
3248 ac_compiler=$2
3249 for ac_option in --version -v -V -qversion; do
3250 { { ac_try="$ac_compiler $ac_option >&5"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3258 ac_status=$?
3259 if test -s conftest.err; then
3260 sed '10a\
3261 ... rest of stderr output deleted ...
3262 10q' conftest.err >conftest.er1
3263 cat conftest.er1 >&5
3265 rm -f conftest.er1 conftest.err
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }
3268 done
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3274 main ()
3278 return 0;
3280 _ACEOF
3281 ac_clean_files_save=$ac_clean_files
3282 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3283 # Try to create an executable without -o first, disregard a.out.
3284 # It will help us diagnose broken compilers, and finding out an intuition
3285 # of exeext.
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3287 $as_echo_n "checking whether the C compiler works... " >&6; }
3288 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290 # The possible output files:
3291 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293 ac_rmfiles=
3294 for ac_file in $ac_files
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3299 esac
3300 done
3301 rm -f $ac_rmfiles
3303 if { { ac_try="$ac_link_default"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_link_default") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3316 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3317 # so that the user can short-circuit this test for compilers unknown to
3318 # Autoconf.
3319 for ac_file in $ac_files ''
3321 test -f "$ac_file" || continue
3322 case $ac_file in
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 [ab].out )
3326 # We found the default executable, but exeext='' is most
3327 # certainly right.
3328 break;;
3329 *.* )
3330 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3331 then :; else
3332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 # We set ac_cv_exeext here because the later test for it is not
3335 # safe: cross compilers may not add the suffix if given an `-o'
3336 # argument, so we may need to know it at that point already.
3337 # Even if this section looks crufty: it has the advantage of
3338 # actually working.
3339 break;;
3341 break;;
3342 esac
3343 done
3344 test "$ac_cv_exeext" = no && ac_cv_exeext=
3346 else
3347 ac_file=''
3349 if test -z "$ac_file"; then :
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error 77 "C compiler cannot create executables
3358 See \`config.log' for more details" "$LINENO" 5; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361 $as_echo "yes" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3364 $as_echo_n "checking for C compiler default output file name... " >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 ac_exeext=$ac_cv_exeext
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3372 $as_echo_n "checking for suffix of executables... " >&6; }
3373 if { { ac_try="$ac_link"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_link") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3386 # work properly (i.e., refer to `conftest.exe'), while it won't with
3387 # `rm'.
3388 for ac_file in conftest.exe conftest conftest.*; do
3389 test -f "$ac_file" || continue
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 break;;
3394 * ) break;;
3395 esac
3396 done
3397 else
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3401 See \`config.log' for more details" "$LINENO" 5; }
3403 rm -f conftest conftest$ac_cv_exeext
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3405 $as_echo "$ac_cv_exeext" >&6; }
3407 rm -f conftest.$ac_ext
3408 EXEEXT=$ac_cv_exeext
3409 ac_exeext=$EXEEXT
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412 #include <stdio.h>
3414 main ()
3416 FILE *f = fopen ("conftest.out", "w");
3417 return ferror (f) || fclose (f) != 0;
3420 return 0;
3422 _ACEOF
3423 ac_clean_files="$ac_clean_files conftest.out"
3424 # Check that the compiler produces executables we can run. If not, either
3425 # the compiler is broken, or we cross compile.
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3427 $as_echo_n "checking whether we are cross compiling... " >&6; }
3428 if test "$cross_compiling" != yes; then
3429 { { ac_try="$ac_link"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }
3440 if { ac_try='./conftest$ac_cv_exeext'
3441 { { case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_try") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; }; then
3451 cross_compiling=no
3452 else
3453 if test "$cross_compiling" = maybe; then
3454 cross_compiling=yes
3455 else
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $? "cannot run C compiled programs.
3459 If you meant to cross compile, use \`--host'.
3460 See \`config.log' for more details" "$LINENO" 5; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3465 $as_echo "$cross_compiling" >&6; }
3467 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3468 ac_clean_files=$ac_clean_files_save
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3470 $as_echo_n "checking for suffix of object files... " >&6; }
3471 if ${ac_cv_objext+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3478 main ()
3482 return 0;
3484 _ACEOF
3485 rm -f conftest.o conftest.obj
3486 if { { ac_try="$ac_compile"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_compile") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; then :
3497 for ac_file in conftest.o conftest.obj conftest.*; do
3498 test -f "$ac_file" || continue;
3499 case $ac_file in
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3501 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3502 break;;
3503 esac
3504 done
3505 else
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot compute suffix of object files: cannot compile
3512 See \`config.log' for more details" "$LINENO" 5; }
3514 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3517 $as_echo "$ac_cv_objext" >&6; }
3518 OBJEXT=$ac_cv_objext
3519 ac_objext=$OBJEXT
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3521 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3522 if ${ac_cv_c_compiler_gnu+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3529 main ()
3531 #ifndef __GNUC__
3532 choke me
3533 #endif
3536 return 0;
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_compiler_gnu=yes
3541 else
3542 ac_compiler_gnu=no
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3549 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3550 if test $ac_compiler_gnu = yes; then
3551 GCC=yes
3552 else
3553 GCC=
3555 ac_test_CFLAGS=${CFLAGS+set}
3556 ac_save_CFLAGS=$CFLAGS
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3558 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3559 if ${ac_cv_prog_cc_g+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 ac_save_c_werror_flag=$ac_c_werror_flag
3563 ac_c_werror_flag=yes
3564 ac_cv_prog_cc_g=no
3565 CFLAGS="-g"
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3570 main ()
3574 return 0;
3576 _ACEOF
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578 ac_cv_prog_cc_g=yes
3579 else
3580 CFLAGS=""
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3585 main ()
3589 return 0;
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3594 else
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3596 CFLAGS="-g"
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3601 main ()
3605 return 0;
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609 ac_cv_prog_cc_g=yes
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 ac_c_werror_flag=$ac_save_c_werror_flag
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3619 $as_echo "$ac_cv_prog_cc_g" >&6; }
3620 if test "$ac_test_CFLAGS" = set; then
3621 CFLAGS=$ac_save_CFLAGS
3622 elif test $ac_cv_prog_cc_g = yes; then
3623 if test "$GCC" = yes; then
3624 CFLAGS="-g -O2"
3625 else
3626 CFLAGS="-g"
3628 else
3629 if test "$GCC" = yes; then
3630 CFLAGS="-O2"
3631 else
3632 CFLAGS=
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3636 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3637 if ${ac_cv_prog_cc_c89+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 ac_cv_prog_cc_c89=no
3641 ac_save_CC=$CC
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644 #include <stdarg.h>
3645 #include <stdio.h>
3646 struct stat;
3647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3648 struct buf { int x; };
3649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3650 static char *e (p, i)
3651 char **p;
3652 int i;
3654 return p[i];
3656 static char *f (char * (*g) (char **, int), char **p, ...)
3658 char *s;
3659 va_list v;
3660 va_start (v,p);
3661 s = g (p, va_arg (v,int));
3662 va_end (v);
3663 return s;
3666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3667 function prototypes and stuff, but not '\xHH' hex character constants.
3668 These don't provoke an error unfortunately, instead are silently treated
3669 as 'x'. The following induces an error, until -std is added to get
3670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3671 array size at least. It's necessary to write '\x00'==0 to get something
3672 that's true only with -std. */
3673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3676 inside strings and character constants. */
3677 #define FOO(x) 'x'
3678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680 int test (int i, double x);
3681 struct s1 {int (*f) (int a);};
3682 struct s2 {int (*f) (double a);};
3683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3684 int argc;
3685 char **argv;
3687 main ()
3689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 return 0;
3693 _ACEOF
3694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697 CC="$ac_save_CC $ac_arg"
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_c89=$ac_arg
3701 rm -f core conftest.err conftest.$ac_objext
3702 test "x$ac_cv_prog_cc_c89" != "xno" && break
3703 done
3704 rm -f conftest.$ac_ext
3705 CC=$ac_save_CC
3708 # AC_CACHE_VAL
3709 case "x$ac_cv_prog_cc_c89" in
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712 $as_echo "none needed" >&6; } ;;
3713 xno)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3715 $as_echo "unsupported" >&6; } ;;
3717 CC="$CC $ac_cv_prog_cc_c89"
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3720 esac
3721 if test "x$ac_cv_prog_cc_c89" != xno; then :
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 ac_ext=cpp
3732 ac_cpp='$CXXCPP $CPPFLAGS'
3733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3736 if test -z "$CXX"; then
3737 if test -n "$CCC"; then
3738 CXX=$CCC
3739 else
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CXX+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CXX"; then
3751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 CXX=$ac_cv_prog_CXX
3771 if test -n "$CXX"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3773 $as_echo "$CXX" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$CXX" && break
3781 done
3783 if test -z "$CXX"; then
3784 ac_ct_CXX=$CXX
3785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CXX"; then
3795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_ac_ct_CXX="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3815 if test -n "$ac_ct_CXX"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3817 $as_echo "$ac_ct_CXX" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3824 test -n "$ac_ct_CXX" && break
3825 done
3827 if test "x$ac_ct_CXX" = x; then
3828 CXX="g++"
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 CXX=$ac_ct_CXX
3842 # Provide some information about the compiler.
3843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3844 set X $ac_compile
3845 ac_compiler=$2
3846 for ac_option in --version -v -V -qversion; do
3847 { { ac_try="$ac_compiler $ac_option >&5"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3855 ac_status=$?
3856 if test -s conftest.err; then
3857 sed '10a\
3858 ... rest of stderr output deleted ...
3859 10q' conftest.err >conftest.er1
3860 cat conftest.er1 >&5
3862 rm -f conftest.er1 conftest.err
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }
3865 done
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3868 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3869 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3876 main ()
3878 #ifndef __GNUC__
3879 choke me
3880 #endif
3883 return 0;
3885 _ACEOF
3886 if ac_fn_cxx_try_compile "$LINENO"; then :
3887 ac_compiler_gnu=yes
3888 else
3889 ac_compiler_gnu=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3896 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3897 if test $ac_compiler_gnu = yes; then
3898 GXX=yes
3899 else
3900 GXX=
3902 ac_test_CXXFLAGS=${CXXFLAGS+set}
3903 ac_save_CXXFLAGS=$CXXFLAGS
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3905 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3906 if ${ac_cv_prog_cxx_g+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3910 ac_cxx_werror_flag=yes
3911 ac_cv_prog_cxx_g=no
3912 CXXFLAGS="-g"
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3917 main ()
3921 return 0;
3923 _ACEOF
3924 if ac_fn_cxx_try_compile "$LINENO"; then :
3925 ac_cv_prog_cxx_g=yes
3926 else
3927 CXXFLAGS=""
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3932 main ()
3936 return 0;
3938 _ACEOF
3939 if ac_fn_cxx_try_compile "$LINENO"; then :
3941 else
3942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3943 CXXFLAGS="-g"
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3948 main ()
3952 return 0;
3954 _ACEOF
3955 if ac_fn_cxx_try_compile "$LINENO"; then :
3956 ac_cv_prog_cxx_g=yes
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3966 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3967 if test "$ac_test_CXXFLAGS" = set; then
3968 CXXFLAGS=$ac_save_CXXFLAGS
3969 elif test $ac_cv_prog_cxx_g = yes; then
3970 if test "$GXX" = yes; then
3971 CXXFLAGS="-g -O2"
3972 else
3973 CXXFLAGS="-g"
3975 else
3976 if test "$GXX" = yes; then
3977 CXXFLAGS="-O2"
3978 else
3979 CXXFLAGS=
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if ${ac_cv_prog_RANLIB+:} false; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$RANLIB"; then
3997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4010 done
4011 done
4012 IFS=$as_save_IFS
4016 RANLIB=$ac_cv_prog_RANLIB
4017 if test -n "$RANLIB"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4019 $as_echo "$RANLIB" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4027 if test -z "$ac_cv_prog_RANLIB"; then
4028 ac_ct_RANLIB=$RANLIB
4029 # Extract the first word of "ranlib", so it can be a program name with args.
4030 set dummy ranlib; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$ac_ct_RANLIB"; then
4037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_ac_ct_RANLIB="ranlib"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4050 done
4051 done
4052 IFS=$as_save_IFS
4056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4057 if test -n "$ac_ct_RANLIB"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4059 $as_echo "$ac_ct_RANLIB" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4065 if test "x$ac_ct_RANLIB" = x; then
4066 RANLIB=":"
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 RANLIB=$ac_ct_RANLIB
4076 else
4077 RANLIB="$ac_cv_prog_RANLIB"
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}ar; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_AR+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -n "$AR"; then
4089 ac_cv_prog_AR="$AR" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_AR="${ac_tool_prefix}ar"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 break 2
4102 done
4103 done
4104 IFS=$as_save_IFS
4108 AR=$ac_cv_prog_AR
4109 if test -n "$AR"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4111 $as_echo "$AR" >&6; }
4112 else
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4119 if test -z "$ac_cv_prog_AR"; then
4120 ac_ct_AR=$AR
4121 # Extract the first word of "ar", so it can be a program name with args.
4122 set dummy ar; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$ac_ct_AR"; then
4129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_ac_ct_AR="ar"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4142 done
4143 done
4144 IFS=$as_save_IFS
4148 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4149 if test -n "$ac_ct_AR"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4151 $as_echo "$ac_ct_AR" >&6; }
4152 else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4157 if test "x$ac_ct_AR" = x; then
4158 AR=""
4159 else
4160 case $cross_compiling:$ac_tool_warned in
4161 yes:)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164 ac_tool_warned=yes ;;
4165 esac
4166 AR=$ac_ct_AR
4168 else
4169 AR="$ac_cv_prog_AR"
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4180 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4181 # On Suns, sometimes $CPP names a directory.
4182 if test -n "$CPP" && test -d "$CPP"; then
4183 CPP=
4185 if test -z "$CPP"; then
4186 if ${ac_cv_prog_CPP+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 # Double quotes because CPP needs to be expanded
4190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4192 ac_preproc_ok=false
4193 for ac_c_preproc_warn_flag in '' yes
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #ifdef __STDC__
4204 # include <limits.h>
4205 #else
4206 # include <assert.h>
4207 #endif
4208 Syntax error
4209 _ACEOF
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4212 else
4213 # Broken: fails on valid input.
4214 continue
4216 rm -f conftest.err conftest.i conftest.$ac_ext
4218 # OK, works on sane cases. Now check whether nonexistent headers
4219 # can be detected and how.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <ac_nonexistent.h>
4223 _ACEOF
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4225 # Broken: success on invalid input.
4226 continue
4227 else
4228 # Passes both tests.
4229 ac_preproc_ok=:
4230 break
4232 rm -f conftest.err conftest.i conftest.$ac_ext
4234 done
4235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4236 rm -f conftest.i conftest.err conftest.$ac_ext
4237 if $ac_preproc_ok; then :
4238 break
4241 done
4242 ac_cv_prog_CPP=$CPP
4245 CPP=$ac_cv_prog_CPP
4246 else
4247 ac_cv_prog_CPP=$CPP
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4250 $as_echo "$CPP" >&6; }
4251 ac_preproc_ok=false
4252 for ac_c_preproc_warn_flag in '' yes
4254 # Use a header file that comes with gcc, so configuring glibc
4255 # with a fresh cross-compiler works.
4256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257 # <limits.h> exists even on freestanding compilers.
4258 # On the NeXT, cc -E runs the code through the compiler's parser,
4259 # not just through cpp. "Syntax error" is here to catch this case.
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #ifdef __STDC__
4263 # include <limits.h>
4264 #else
4265 # include <assert.h>
4266 #endif
4267 Syntax error
4268 _ACEOF
4269 if ac_fn_c_try_cpp "$LINENO"; then :
4271 else
4272 # Broken: fails on valid input.
4273 continue
4275 rm -f conftest.err conftest.i conftest.$ac_ext
4277 # OK, works on sane cases. Now check whether nonexistent headers
4278 # can be detected and how.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4282 _ACEOF
4283 if ac_fn_c_try_cpp "$LINENO"; then :
4284 # Broken: success on invalid input.
4285 continue
4286 else
4287 # Passes both tests.
4288 ac_preproc_ok=:
4289 break
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4293 done
4294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4295 rm -f conftest.i conftest.err conftest.$ac_ext
4296 if $ac_preproc_ok; then :
4298 else
4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4302 See \`config.log' for more details" "$LINENO" 5; }
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4313 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4314 if ${ac_cv_path_GREP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -z "$GREP"; then
4318 ac_path_GREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in grep ggrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4328 as_fn_executable_p "$ac_path_GREP" || continue
4329 # Check for GNU ac_path_GREP and select it if it is found.
4330 # Check for GNU $ac_path_GREP
4331 case `"$ac_path_GREP" --version 2>&1` in
4332 *GNU*)
4333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'GREP' >> "conftest.nl"
4343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_GREP="$ac_path_GREP"
4349 ac_path_GREP_max=$ac_count
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4357 $ac_path_GREP_found && break 3
4358 done
4359 done
4360 done
4361 IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_GREP"; then
4363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365 else
4366 ac_cv_path_GREP=$GREP
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4371 $as_echo "$ac_cv_path_GREP" >&6; }
4372 GREP="$ac_cv_path_GREP"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4376 $as_echo_n "checking for egrep... " >&6; }
4377 if ${ac_cv_path_EGREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4382 else
4383 if test -z "$EGREP"; then
4384 ac_path_EGREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in egrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_EGREP" || continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
4396 # Check for GNU $ac_path_EGREP
4397 case `"$ac_path_EGREP" --version 2>&1` in
4398 *GNU*)
4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'EGREP' >> "conftest.nl"
4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP="$ac_path_EGREP"
4415 ac_path_EGREP_max=$ac_count
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4423 $ac_path_EGREP_found && break 3
4424 done
4425 done
4426 done
4427 IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_EGREP"; then
4429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 else
4432 ac_cv_path_EGREP=$EGREP
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4438 $as_echo "$ac_cv_path_EGREP" >&6; }
4439 EGREP="$ac_cv_path_EGREP"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4443 $as_echo_n "checking for ANSI C header files... " >&6; }
4444 if ${ac_cv_header_stdc+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <stdlib.h>
4450 #include <stdarg.h>
4451 #include <string.h>
4452 #include <float.h>
4455 main ()
4459 return 0;
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_cv_header_stdc=yes
4464 else
4465 ac_cv_header_stdc=no
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 if test $ac_cv_header_stdc = yes; then
4470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <string.h>
4475 _ACEOF
4476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4477 $EGREP "memchr" >/dev/null 2>&1; then :
4479 else
4480 ac_cv_header_stdc=no
4482 rm -f conftest*
4486 if test $ac_cv_header_stdc = yes; then
4487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490 #include <stdlib.h>
4492 _ACEOF
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 $EGREP "free" >/dev/null 2>&1; then :
4496 else
4497 ac_cv_header_stdc=no
4499 rm -f conftest*
4503 if test $ac_cv_header_stdc = yes; then
4504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4505 if test "$cross_compiling" = yes; then :
4507 else
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #include <ctype.h>
4511 #include <stdlib.h>
4512 #if ((' ' & 0x0FF) == 0x020)
4513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 #else
4516 # define ISLOWER(c) \
4517 (('a' <= (c) && (c) <= 'i') \
4518 || ('j' <= (c) && (c) <= 'r') \
4519 || ('s' <= (c) && (c) <= 'z'))
4520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4521 #endif
4523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525 main ()
4527 int i;
4528 for (i = 0; i < 256; i++)
4529 if (XOR (islower (i), ISLOWER (i))
4530 || toupper (i) != TOUPPER (i))
4531 return 2;
4532 return 0;
4534 _ACEOF
4535 if ac_fn_c_try_run "$LINENO"; then :
4537 else
4538 ac_cv_header_stdc=no
4540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4541 conftest.$ac_objext conftest.beam conftest.$ac_ext
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4547 $as_echo "$ac_cv_header_stdc" >&6; }
4548 if test $ac_cv_header_stdc = yes; then
4550 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4554 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4556 inttypes.h stdint.h unistd.h
4557 do :
4558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4561 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4562 cat >>confdefs.h <<_ACEOF
4563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564 _ACEOF
4568 done
4572 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4573 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4574 MINIX=yes
4575 else
4576 MINIX=
4580 if test "$MINIX" = yes; then
4582 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4585 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4588 $as_echo "#define _MINIX 1" >>confdefs.h
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4594 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4595 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4601 # define __EXTENSIONS__ 1
4602 $ac_includes_default
4604 main ()
4608 return 0;
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_safe_to_define___extensions__=yes
4613 else
4614 ac_cv_safe_to_define___extensions__=no
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4619 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4620 test $ac_cv_safe_to_define___extensions__ = yes &&
4621 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4623 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4625 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4627 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4629 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4632 # Check whether --enable-largefile was given.
4633 if test "${enable_largefile+set}" = set; then :
4634 enableval=$enable_largefile;
4637 if test "$enable_largefile" != no; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4640 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4641 if ${ac_cv_sys_largefile_CC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 ac_cv_sys_largefile_CC=no
4645 if test "$GCC" != yes; then
4646 ac_save_CC=$CC
4647 while :; do
4648 # IRIX 6.2 and later do not support large files by default,
4649 # so use the C compiler's -n32 option if that helps.
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <sys/types.h>
4653 /* Check that off_t can represent 2**63 - 1 correctly.
4654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4655 since some C++ compilers masquerading as C compilers
4656 incorrectly reject 9223372036854775807. */
4657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4659 && LARGE_OFF_T % 2147483647 == 1)
4660 ? 1 : -1];
4662 main ()
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 break
4672 rm -f core conftest.err conftest.$ac_objext
4673 CC="$CC -n32"
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_sys_largefile_CC=' -n32'; break
4677 rm -f core conftest.err conftest.$ac_objext
4678 break
4679 done
4680 CC=$ac_save_CC
4681 rm -f conftest.$ac_ext
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4685 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4686 if test "$ac_cv_sys_largefile_CC" != no; then
4687 CC=$CC$ac_cv_sys_largefile_CC
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4691 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4692 if ${ac_cv_sys_file_offset_bits+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 while :; do
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <sys/types.h>
4699 /* Check that off_t can represent 2**63 - 1 correctly.
4700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4701 since some C++ compilers masquerading as C compilers
4702 incorrectly reject 9223372036854775807. */
4703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4705 && LARGE_OFF_T % 2147483647 == 1)
4706 ? 1 : -1];
4708 main ()
4712 return 0;
4714 _ACEOF
4715 if ac_fn_c_try_compile "$LINENO"; then :
4716 ac_cv_sys_file_offset_bits=no; break
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #define _FILE_OFFSET_BITS 64
4722 #include <sys/types.h>
4723 /* Check that off_t can represent 2**63 - 1 correctly.
4724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4725 since some C++ compilers masquerading as C compilers
4726 incorrectly reject 9223372036854775807. */
4727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4729 && LARGE_OFF_T % 2147483647 == 1)
4730 ? 1 : -1];
4732 main ()
4736 return 0;
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_cv_sys_file_offset_bits=64; break
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 ac_cv_sys_file_offset_bits=unknown
4744 break
4745 done
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4748 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4749 case $ac_cv_sys_file_offset_bits in #(
4750 no | unknown) ;;
4752 cat >>confdefs.h <<_ACEOF
4753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4754 _ACEOF
4756 esac
4757 rm -rf conftest*
4758 if test $ac_cv_sys_file_offset_bits = unknown; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4760 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4761 if ${ac_cv_sys_large_files+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 while :; do
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #include <sys/types.h>
4768 /* Check that off_t can represent 2**63 - 1 correctly.
4769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4770 since some C++ compilers masquerading as C compilers
4771 incorrectly reject 9223372036854775807. */
4772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4774 && LARGE_OFF_T % 2147483647 == 1)
4775 ? 1 : -1];
4777 main ()
4781 return 0;
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 ac_cv_sys_large_files=no; break
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #define _LARGE_FILES 1
4791 #include <sys/types.h>
4792 /* Check that off_t can represent 2**63 - 1 correctly.
4793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4794 since some C++ compilers masquerading as C compilers
4795 incorrectly reject 9223372036854775807. */
4796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4798 && LARGE_OFF_T % 2147483647 == 1)
4799 ? 1 : -1];
4801 main ()
4805 return 0;
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_sys_large_files=1; break
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_cv_sys_large_files=unknown
4813 break
4814 done
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4817 $as_echo "$ac_cv_sys_large_files" >&6; }
4818 case $ac_cv_sys_large_files in #(
4819 no | unknown) ;;
4821 cat >>confdefs.h <<_ACEOF
4822 #define _LARGE_FILES $ac_cv_sys_large_files
4823 _ACEOF
4825 esac
4826 rm -rf conftest*
4833 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4834 for ac_prog in aclocal
4836 # Extract the first word of "$ac_prog", so it can be a program name with args.
4837 set dummy $ac_prog; ac_word=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if ${ac_cv_prog_ACLOCAL+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$ACLOCAL"; then
4844 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ACLOCAL="$ac_prog"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4859 IFS=$as_save_IFS
4863 ACLOCAL=$ac_cv_prog_ACLOCAL
4864 if test -n "$ACLOCAL"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4866 $as_echo "$ACLOCAL" >&6; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4873 test -n "$ACLOCAL" && break
4874 done
4875 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4877 for ac_prog in autoconf
4879 # Extract the first word of "$ac_prog", so it can be a program name with args.
4880 set dummy $ac_prog; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_AUTOCONF+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$AUTOCONF"; then
4887 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_AUTOCONF="$ac_prog"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4906 AUTOCONF=$ac_cv_prog_AUTOCONF
4907 if test -n "$AUTOCONF"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4909 $as_echo "$AUTOCONF" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4916 test -n "$AUTOCONF" && break
4917 done
4918 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4920 for ac_prog in autoheader
4922 # Extract the first word of "$ac_prog", so it can be a program name with args.
4923 set dummy $ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_AUTOHEADER+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$AUTOHEADER"; then
4930 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_AUTOHEADER="$ac_prog"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4950 if test -n "$AUTOHEADER"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4952 $as_echo "$AUTOHEADER" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 test -n "$AUTOHEADER" && break
4960 done
4961 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4964 if test -z "$ETAGS"; then
4965 ETAGS=etags
4969 # Figure out what compiler warnings we can enable.
4970 # See config/warnings.m4 for details.
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 warn=
4979 save_CFLAGS="$CFLAGS"
4980 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4981 -Wmissing-format-attribute; do
4982 # Do the check with the no- prefix removed since gcc silently
4983 # accepts any -Wno-* option on purpose
4984 case $real_option in
4985 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4986 *) option=$real_option ;;
4987 esac
4988 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4991 $as_echo_n "checking whether $CC supports $option... " >&6; }
4992 if eval \${$as_acx_Woption+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 CFLAGS="$option"
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
5000 main ()
5004 return 0;
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 eval "$as_acx_Woption=yes"
5009 else
5010 eval "$as_acx_Woption=no"
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 eval ac_res=\$$as_acx_Woption
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5017 $as_echo "$ac_res" >&6; }
5018 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5019 warn="$warn${warn:+ }$real_option"
5021 done
5022 CFLAGS="$save_CFLAGS"
5023 ac_ext=c
5024 ac_cpp='$CPP $CPPFLAGS'
5025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030 ac_ext=c
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036 c_warn=
5037 save_CFLAGS="$CFLAGS"
5038 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
5039 -Wold-style-definition -Wc++-compat; do
5040 # Do the check with the no- prefix removed since gcc silently
5041 # accepts any -Wno-* option on purpose
5042 case $real_option in
5043 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5044 *) option=$real_option ;;
5045 esac
5046 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5049 $as_echo_n "checking whether $CC supports $option... " >&6; }
5050 if eval \${$as_acx_Woption+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 CFLAGS="$option"
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5058 main ()
5062 return 0;
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066 eval "$as_acx_Woption=yes"
5067 else
5068 eval "$as_acx_Woption=no"
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 eval ac_res=\$$as_acx_Woption
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5075 $as_echo "$ac_res" >&6; }
5076 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5077 c_warn="$c_warn${c_warn:+ }$real_option"
5079 done
5080 CFLAGS="$save_CFLAGS"
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 WARN_PEDANTIC=
5095 # Do the check with the no- prefix removed from the warning options
5096 # since gcc silently accepts any -Wno-* option on purpose
5097 if test "$GCC" = yes; then :
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5099 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5100 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 save_CFLAGS="$CFLAGS"
5104 CFLAGS="-pedantic -Wlong-long"
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5109 main ()
5113 return 0;
5115 _ACEOF
5116 if ac_fn_c_try_compile "$LINENO"; then :
5117 acx_cv_prog_cc_pedantic__Wlong_long=yes
5118 else
5119 acx_cv_prog_cc_pedantic__Wlong_long=no
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 CFLAGS="$save_CFLAGS"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5125 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5126 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5127 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5131 ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139 # Disable exceptions and RTTI if building with g++
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 noexception_flags=
5147 save_CFLAGS="$CFLAGS"
5148 for real_option in -fno-exceptions -fno-rtti; do
5149 # Do the check with the no- prefix removed since gcc silently
5150 # accepts any -Wno-* option on purpose
5151 case $real_option in
5152 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5153 *) option=$real_option ;;
5154 esac
5155 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5158 $as_echo_n "checking whether $CC supports $option... " >&6; }
5159 if eval \${$as_acx_Woption+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 CFLAGS="$option"
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5167 main ()
5171 return 0;
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 eval "$as_acx_Woption=yes"
5176 else
5177 eval "$as_acx_Woption=no"
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 eval ac_res=\$$as_acx_Woption
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5184 $as_echo "$ac_res" >&6; }
5185 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5186 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
5188 done
5189 CFLAGS="$save_CFLAGS"
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 # Only enable with --enable-werror-always until existing warnings are
5199 # corrected.
5200 ac_ext=c
5201 ac_cpp='$CPP $CPPFLAGS'
5202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206 WERROR=
5207 # Check whether --enable-werror-always was given.
5208 if test "${enable_werror_always+set}" = set; then :
5209 enableval=$enable_werror_always;
5210 else
5211 enable_werror_always=no
5214 if test $enable_werror_always = yes; then :
5215 WERROR="$WERROR${WERROR:+ }-Werror"
5218 ac_ext=c
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226 # Dependency checking.
5227 rm -rf .tst 2>/dev/null
5228 mkdir .tst 2>/dev/null
5229 if test -d .tst; then
5230 am__leading_dot=.
5231 else
5232 am__leading_dot=_
5234 rmdir .tst 2>/dev/null
5236 DEPDIR="${am__leading_dot}deps"
5238 ac_config_commands="$ac_config_commands depdir"
5241 ac_ext=cpp
5242 ac_cpp='$CXXCPP $CPPFLAGS'
5243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 int i;
5251 _ACEOF
5252 if ac_fn_cxx_try_compile "$LINENO"; then :
5254 else
5255 as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 ac_ext=c
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 depcc="$CXX" am_compiler_list=
5266 am_depcomp=$ac_aux_dir/depcomp
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5268 $as_echo_n "checking dependency style of $depcc... " >&6; }
5269 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -f "$am_depcomp"; then
5273 # We make a subdir and do the tests there. Otherwise we can end up
5274 # making bogus files that we don't know about and never remove. For
5275 # instance it was reported that on HP-UX the gcc test will end up
5276 # making a dummy file named `D' -- because `-MD' means `put the output
5277 # in D'.
5278 mkdir conftest.dir
5279 # Copy depcomp to subdir because otherwise we won't find it if we're
5280 # using a relative directory.
5281 cp "$am_depcomp" conftest.dir
5282 cd conftest.dir
5283 # We will build objects and dependencies in a subdirectory because
5284 # it helps to detect inapplicable dependency modes. For instance
5285 # both Tru64's cc and ICC support -MD to output dependencies as a
5286 # side effect of compilation, but ICC will put the dependencies in
5287 # the current directory while Tru64 will put them in the object
5288 # directory.
5289 mkdir sub
5291 am_cv_CXX_dependencies_compiler_type=none
5292 if test "$am_compiler_list" = ""; then
5293 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5295 for depmode in $am_compiler_list; do
5296 if test $depmode = none; then break; fi
5298 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5299 # Setup a source with many dependencies, because some compilers
5300 # like to wrap large dependency lists on column 80 (with \), and
5301 # we should not choose a depcomp mode which is confused by this.
5303 # We need to recreate these files for each test, as the compiler may
5304 # overwrite some of them when testing with obscure command lines.
5305 # This happens at least with the AIX C compiler.
5306 : > sub/conftest.c
5307 for i in 1 2 3 4 5 6; do
5308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5309 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5310 # Solaris 8's {/usr,}/bin/sh.
5311 touch sub/conftst$i.h
5312 done
5313 echo "include sub/conftest.Po" > confmf
5315 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5316 # mode. It turns out that the SunPro C++ compiler does not properly
5317 # handle `-M -o', and we need to detect this.
5318 depcmd="depmode=$depmode \
5319 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5320 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5321 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5322 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5323 if env $depcmd > conftest.err 2>&1 &&
5324 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5325 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5326 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5327 # icc doesn't choke on unknown options, it will just issue warnings
5328 # or remarks (even with -Werror). So we grep stderr for any message
5329 # that says an option was ignored or not supported.
5330 # When given -MP, icc 7.0 and 7.1 complain thusly:
5331 # icc: Command line warning: ignoring option '-M'; no argument required
5332 # The diagnosis changed in icc 8.0:
5333 # icc: Command line remark: option '-MP' not supported
5334 if (grep 'ignoring option' conftest.err ||
5335 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5336 am_cv_CXX_dependencies_compiler_type=$depmode
5337 $as_echo "$as_me:$LINENO: success" >&5
5338 break
5341 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5342 sed -e 's/^/| /' < conftest.err >&5
5343 done
5345 cd ..
5346 rm -rf conftest.dir
5347 else
5348 am_cv_CXX_dependencies_compiler_type=none
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5353 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5354 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5355 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
5356 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5361 # Checks for header files.
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5363 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5364 if ${ac_cv_header_time+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <sys/types.h>
5370 #include <sys/time.h>
5371 #include <time.h>
5374 main ()
5376 if ((struct tm *) 0)
5377 return 0;
5379 return 0;
5381 _ACEOF
5382 if ac_fn_c_try_compile "$LINENO"; then :
5383 ac_cv_header_time=yes
5384 else
5385 ac_cv_header_time=no
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5390 $as_echo "$ac_cv_header_time" >&6; }
5391 if test $ac_cv_header_time = yes; then
5393 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5398 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5399 if ${gcc_cv_header_string+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <string.h>
5405 #include <strings.h>
5407 main ()
5411 return 0;
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415 gcc_cv_header_string=yes
5416 else
5417 gcc_cv_header_string=no
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5422 $as_echo "$gcc_cv_header_string" >&6; }
5423 if test $gcc_cv_header_string = yes; then
5425 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5430 for ac_header in locale.h fcntl.h limits.h stddef.h \
5431 stdlib.h strings.h string.h sys/file.h unistd.h
5432 do :
5433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5434 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5436 cat >>confdefs.h <<_ACEOF
5437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 _ACEOF
5442 done
5445 # Checks for typedefs, structures, and compiler characteristics.
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5447 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5448 if ${ac_cv_c_bigendian+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 ac_cv_c_bigendian=unknown
5452 # See if we're dealing with a universal compiler.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #ifndef __APPLE_CC__
5456 not a universal capable compiler
5457 #endif
5458 typedef int dummy;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5463 # Check for potential -arch flags. It is not universal unless
5464 # there are at least two -arch flags with different values.
5465 ac_arch=
5466 ac_prev=
5467 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5468 if test -n "$ac_prev"; then
5469 case $ac_word in
5470 i?86 | x86_64 | ppc | ppc64)
5471 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5472 ac_arch=$ac_word
5473 else
5474 ac_cv_c_bigendian=universal
5475 break
5478 esac
5479 ac_prev=
5480 elif test "x$ac_word" = "x-arch"; then
5481 ac_prev=arch
5483 done
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 if test $ac_cv_c_bigendian = unknown; then
5487 # See if sys/param.h defines the BYTE_ORDER macro.
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 #include <sys/param.h>
5494 main ()
5496 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5497 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5498 && LITTLE_ENDIAN)
5499 bogus endian macros
5500 #endif
5503 return 0;
5505 _ACEOF
5506 if ac_fn_c_try_compile "$LINENO"; then :
5507 # It does; now see whether it defined to BIG_ENDIAN or not.
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <sys/types.h>
5511 #include <sys/param.h>
5514 main ()
5516 #if BYTE_ORDER != BIG_ENDIAN
5517 not big endian
5518 #endif
5521 return 0;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 ac_cv_c_bigendian=yes
5526 else
5527 ac_cv_c_bigendian=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 if test $ac_cv_c_bigendian = unknown; then
5534 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include <limits.h>
5540 main ()
5542 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5543 bogus endian macros
5544 #endif
5547 return 0;
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 # It does; now see whether it defined to _BIG_ENDIAN or not.
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <limits.h>
5557 main ()
5559 #ifndef _BIG_ENDIAN
5560 not big endian
5561 #endif
5564 return 0;
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 ac_cv_c_bigendian=yes
5569 else
5570 ac_cv_c_bigendian=no
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 if test $ac_cv_c_bigendian = unknown; then
5577 # Compile a test program.
5578 if test "$cross_compiling" = yes; then :
5579 # Try to guess by grepping values from an object file.
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 short int ascii_mm[] =
5583 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5584 short int ascii_ii[] =
5585 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5586 int use_ascii (int i) {
5587 return ascii_mm[i] + ascii_ii[i];
5589 short int ebcdic_ii[] =
5590 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5591 short int ebcdic_mm[] =
5592 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5593 int use_ebcdic (int i) {
5594 return ebcdic_mm[i] + ebcdic_ii[i];
5596 extern int foo;
5599 main ()
5601 return use_ascii (foo) == use_ebcdic (foo);
5603 return 0;
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5608 ac_cv_c_bigendian=yes
5610 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5611 if test "$ac_cv_c_bigendian" = unknown; then
5612 ac_cv_c_bigendian=no
5613 else
5614 # finding both strings is unlikely to happen, but who knows?
5615 ac_cv_c_bigendian=unknown
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 $ac_includes_default
5625 main ()
5628 /* Are we little or big endian? From Harbison&Steele. */
5629 union
5631 long int l;
5632 char c[sizeof (long int)];
5633 } u;
5634 u.l = 1;
5635 return u.c[sizeof (long int) - 1] == 1;
5638 return 0;
5640 _ACEOF
5641 if ac_fn_c_try_run "$LINENO"; then :
5642 ac_cv_c_bigendian=no
5643 else
5644 ac_cv_c_bigendian=yes
5646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5647 conftest.$ac_objext conftest.beam conftest.$ac_ext
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5653 $as_echo "$ac_cv_c_bigendian" >&6; }
5654 case $ac_cv_c_bigendian in #(
5655 yes)
5656 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5657 ;; #(
5659 ;; #(
5660 universal)
5662 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5664 ;; #(
5666 as_fn_error $? "unknown endianness
5667 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5668 esac
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5671 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5672 if ${ac_cv_c_const+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5679 main ()
5682 #ifndef __cplusplus
5683 /* Ultrix mips cc rejects this sort of thing. */
5684 typedef int charset[2];
5685 const charset cs = { 0, 0 };
5686 /* SunOS 4.1.1 cc rejects this. */
5687 char const *const *pcpcc;
5688 char **ppc;
5689 /* NEC SVR4.0.2 mips cc rejects this. */
5690 struct point {int x, y;};
5691 static struct point const zero = {0,0};
5692 /* AIX XL C 1.02.0.0 rejects this.
5693 It does not let you subtract one const X* pointer from another in
5694 an arm of an if-expression whose if-part is not a constant
5695 expression */
5696 const char *g = "string";
5697 pcpcc = &g + (g ? g-g : 0);
5698 /* HPUX 7.0 cc rejects these. */
5699 ++pcpcc;
5700 ppc = (char**) pcpcc;
5701 pcpcc = (char const *const *) ppc;
5702 { /* SCO 3.2v4 cc rejects this sort of thing. */
5703 char tx;
5704 char *t = &tx;
5705 char const *s = 0 ? (char *) 0 : (char const *) 0;
5707 *t++ = 0;
5708 if (s) return 0;
5710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5711 int x[] = {25, 17};
5712 const int *foo = &x[0];
5713 ++foo;
5715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5716 typedef const int *iptr;
5717 iptr p = 0;
5718 ++p;
5720 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5721 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5722 struct s { int j; const int *ap[3]; } bx;
5723 struct s *b = &bx; b->j = 5;
5725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5726 const int foo = 10;
5727 if (!foo) return 0;
5729 return !cs[0] && !zero.x;
5730 #endif
5733 return 0;
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737 ac_cv_c_const=yes
5738 else
5739 ac_cv_c_const=no
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5744 $as_echo "$ac_cv_c_const" >&6; }
5745 if test $ac_cv_c_const = no; then
5747 $as_echo "#define const /**/" >>confdefs.h
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5752 $as_echo_n "checking for inline... " >&6; }
5753 if ${ac_cv_c_inline+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 ac_cv_c_inline=no
5757 for ac_kw in inline __inline__ __inline; do
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #ifndef __cplusplus
5761 typedef int foo_t;
5762 static $ac_kw foo_t static_foo () {return 0; }
5763 $ac_kw foo_t foo () {return 0; }
5764 #endif
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"; then :
5768 ac_cv_c_inline=$ac_kw
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 test "$ac_cv_c_inline" != no && break
5772 done
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5776 $as_echo "$ac_cv_c_inline" >&6; }
5778 case $ac_cv_c_inline in
5779 inline | yes) ;;
5781 case $ac_cv_c_inline in
5782 no) ac_val=;;
5783 *) ac_val=$ac_cv_c_inline;;
5784 esac
5785 cat >>confdefs.h <<_ACEOF
5786 #ifndef __cplusplus
5787 #define inline $ac_val
5788 #endif
5789 _ACEOF
5791 esac
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5794 $as_echo_n "checking for obstacks... " >&6; }
5795 if ${ac_cv_func_obstack+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 $ac_includes_default
5801 #include "obstack.h"
5803 main ()
5805 struct obstack mem;
5806 #define obstack_chunk_alloc malloc
5807 #define obstack_chunk_free free
5808 obstack_init (&mem);
5809 obstack_free (&mem, 0);
5811 return 0;
5813 _ACEOF
5814 if ac_fn_c_try_link "$LINENO"; then :
5815 ac_cv_func_obstack=yes
5816 else
5817 ac_cv_func_obstack=no
5819 rm -f core conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5823 $as_echo "$ac_cv_func_obstack" >&6; }
5824 if test $ac_cv_func_obstack = yes; then
5826 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5828 else
5829 case " $LIBOBJS " in
5830 *" obstack.$ac_objext "* ) ;;
5831 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5833 esac
5837 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5838 if test "x$ac_cv_type_off_t" = xyes; then :
5840 else
5842 cat >>confdefs.h <<_ACEOF
5843 #define off_t long int
5844 _ACEOF
5848 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5849 if test "x$ac_cv_type_size_t" = xyes; then :
5851 else
5853 cat >>confdefs.h <<_ACEOF
5854 #define size_t unsigned int
5855 _ACEOF
5859 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5860 if test "x$ac_cv_type_ssize_t" = xyes; then :
5862 else
5864 cat >>confdefs.h <<_ACEOF
5865 #define ssize_t int
5866 _ACEOF
5871 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5872 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5874 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5876 else
5877 for ac_type in 'unsigned int' 'unsigned long int' \
5878 'unsigned long long int'; do
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 $ac_includes_default
5883 main ()
5885 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5886 test_array [0] = 0;
5887 return test_array [0];
5890 return 0;
5892 _ACEOF
5893 if ac_fn_c_try_compile "$LINENO"; then :
5895 cat >>confdefs.h <<_ACEOF
5896 #define uintptr_t $ac_type
5897 _ACEOF
5899 ac_type=
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 test -z "$ac_type" && break
5903 done
5907 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5908 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5910 else
5912 cat >>confdefs.h <<_ACEOF
5913 #define ptrdiff_t int
5914 _ACEOF
5918 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5919 case $ac_cv_c_uint64_t in #(
5920 no|yes) ;; #(
5923 $as_echo "#define _UINT64_T 1" >>confdefs.h
5926 cat >>confdefs.h <<_ACEOF
5927 #define uint64_t $ac_cv_c_uint64_t
5928 _ACEOF
5930 esac
5932 if test x"$ac_cv_c_uint64_t" = x"no"; then
5933 as_fn_error $? "uint64_t not found" "$LINENO" 5
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5936 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5937 if ${ac_cv_struct_tm+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #include <sys/types.h>
5943 #include <time.h>
5946 main ()
5948 struct tm tm;
5949 int *p = &tm.tm_sec;
5950 return !p;
5952 return 0;
5954 _ACEOF
5955 if ac_fn_c_try_compile "$LINENO"; then :
5956 ac_cv_struct_tm=time.h
5957 else
5958 ac_cv_struct_tm=sys/time.h
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5963 $as_echo "$ac_cv_struct_tm" >&6; }
5964 if test $ac_cv_struct_tm = sys/time.h; then
5966 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5970 # The cast to long int works around a bug in the HP C Compiler
5971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5973 # This bug is HP SR number 8606223364.
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5975 $as_echo_n "checking size of int... " >&6; }
5976 if ${ac_cv_sizeof_int+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5981 else
5982 if test "$ac_cv_type_int" = yes; then
5983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5985 as_fn_error 77 "cannot compute sizeof (int)
5986 See \`config.log' for more details" "$LINENO" 5; }
5987 else
5988 ac_cv_sizeof_int=0
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5994 $as_echo "$ac_cv_sizeof_int" >&6; }
5998 cat >>confdefs.h <<_ACEOF
5999 #define SIZEOF_INT $ac_cv_sizeof_int
6000 _ACEOF
6003 # The cast to long int works around a bug in the HP C Compiler
6004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6006 # This bug is HP SR number 8606223364.
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6008 $as_echo_n "checking size of long... " >&6; }
6009 if ${ac_cv_sizeof_long+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6014 else
6015 if test "$ac_cv_type_long" = yes; then
6016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6018 as_fn_error 77 "cannot compute sizeof (long)
6019 See \`config.log' for more details" "$LINENO" 5; }
6020 else
6021 ac_cv_sizeof_long=0
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6027 $as_echo "$ac_cv_sizeof_long" >&6; }
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF_LONG $ac_cv_sizeof_long
6033 _ACEOF
6037 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
6038 do :
6039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6040 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6041 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6042 cat >>confdefs.h <<_ACEOF
6043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6044 _ACEOF
6047 done
6049 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
6050 if test "x$ac_cv_have_decl_abort" = xyes; then :
6051 ac_have_decl=1
6052 else
6053 ac_have_decl=0
6056 cat >>confdefs.h <<_ACEOF
6057 #define HAVE_DECL_ABORT $ac_have_decl
6058 _ACEOF
6059 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6060 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
6061 ac_have_decl=1
6062 else
6063 ac_have_decl=0
6066 cat >>confdefs.h <<_ACEOF
6067 #define HAVE_DECL_ASPRINTF $ac_have_decl
6068 _ACEOF
6069 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6070 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6071 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
6072 ac_have_decl=1
6073 else
6074 ac_have_decl=0
6077 cat >>confdefs.h <<_ACEOF
6078 #define HAVE_DECL_BASENAME $ac_have_decl
6079 _ACEOF
6080 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6081 if test "x$ac_cv_have_decl_errno" = xyes; then :
6082 ac_have_decl=1
6083 else
6084 ac_have_decl=0
6087 cat >>confdefs.h <<_ACEOF
6088 #define HAVE_DECL_ERRNO $ac_have_decl
6089 _ACEOF
6090 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6091 if test "x$ac_cv_have_decl_getopt" = xyes; then :
6092 ac_have_decl=1
6093 else
6094 ac_have_decl=0
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_DECL_GETOPT $ac_have_decl
6099 _ACEOF
6100 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6101 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
6102 ac_have_decl=1
6103 else
6104 ac_have_decl=0
6107 cat >>confdefs.h <<_ACEOF
6108 #define HAVE_DECL_VASPRINTF $ac_have_decl
6109 _ACEOF
6111 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6112 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
6113 ac_have_decl=1
6114 else
6115 ac_have_decl=0
6118 cat >>confdefs.h <<_ACEOF
6119 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6120 _ACEOF
6121 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6122 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
6123 ac_have_decl=1
6124 else
6125 ac_have_decl=0
6128 cat >>confdefs.h <<_ACEOF
6129 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6130 _ACEOF
6131 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6132 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
6133 ac_have_decl=1
6134 else
6135 ac_have_decl=0
6138 cat >>confdefs.h <<_ACEOF
6139 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6140 _ACEOF
6141 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6142 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
6143 ac_have_decl=1
6144 else
6145 ac_have_decl=0
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6150 _ACEOF
6151 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6152 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then :
6153 ac_have_decl=1
6154 else
6155 ac_have_decl=0
6158 cat >>confdefs.h <<_ACEOF
6159 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6160 _ACEOF
6161 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6162 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
6163 ac_have_decl=1
6164 else
6165 ac_have_decl=0
6168 cat >>confdefs.h <<_ACEOF
6169 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6170 _ACEOF
6171 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6172 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then :
6173 ac_have_decl=1
6174 else
6175 ac_have_decl=0
6178 cat >>confdefs.h <<_ACEOF
6179 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6180 _ACEOF
6181 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6182 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then :
6183 ac_have_decl=1
6184 else
6185 ac_have_decl=0
6188 cat >>confdefs.h <<_ACEOF
6189 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6190 _ACEOF
6191 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6192 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
6193 ac_have_decl=1
6194 else
6195 ac_have_decl=0
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6200 _ACEOF
6201 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6202 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
6203 ac_have_decl=1
6204 else
6205 ac_have_decl=0
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6210 _ACEOF
6211 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6212 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
6213 ac_have_decl=1
6214 else
6215 ac_have_decl=0
6218 cat >>confdefs.h <<_ACEOF
6219 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6220 _ACEOF
6221 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6222 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
6223 ac_have_decl=1
6224 else
6225 ac_have_decl=0
6228 cat >>confdefs.h <<_ACEOF
6229 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6230 _ACEOF
6231 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6232 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
6233 ac_have_decl=1
6234 else
6235 ac_have_decl=0
6238 cat >>confdefs.h <<_ACEOF
6239 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6240 _ACEOF
6241 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6242 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6243 ac_have_decl=1
6244 else
6245 ac_have_decl=0
6248 cat >>confdefs.h <<_ACEOF
6249 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6250 _ACEOF
6251 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6252 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
6253 ac_have_decl=1
6254 else
6255 ac_have_decl=0
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6260 _ACEOF
6261 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6262 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
6263 ac_have_decl=1
6264 else
6265 ac_have_decl=0
6268 cat >>confdefs.h <<_ACEOF
6269 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6270 _ACEOF
6273 # Checks for library functions.
6274 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6275 # for constant arguments. Useless!
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6277 $as_echo_n "checking for working alloca.h... " >&6; }
6278 if ${ac_cv_working_alloca_h+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <alloca.h>
6285 main ()
6287 char *p = (char *) alloca (2 * sizeof (int));
6288 if (p) return 0;
6290 return 0;
6292 _ACEOF
6293 if ac_fn_c_try_link "$LINENO"; then :
6294 ac_cv_working_alloca_h=yes
6295 else
6296 ac_cv_working_alloca_h=no
6298 rm -f core conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6302 $as_echo "$ac_cv_working_alloca_h" >&6; }
6303 if test $ac_cv_working_alloca_h = yes; then
6305 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6310 $as_echo_n "checking for alloca... " >&6; }
6311 if ${ac_cv_func_alloca_works+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 #ifdef __GNUC__
6317 # define alloca __builtin_alloca
6318 #else
6319 # ifdef _MSC_VER
6320 # include <malloc.h>
6321 # define alloca _alloca
6322 # else
6323 # ifdef HAVE_ALLOCA_H
6324 # include <alloca.h>
6325 # else
6326 # ifdef _AIX
6327 #pragma alloca
6328 # else
6329 # ifndef alloca /* predefined by HP cc +Olibcalls */
6330 void *alloca (size_t);
6331 # endif
6332 # endif
6333 # endif
6334 # endif
6335 #endif
6338 main ()
6340 char *p = (char *) alloca (1);
6341 if (p) return 0;
6343 return 0;
6345 _ACEOF
6346 if ac_fn_c_try_link "$LINENO"; then :
6347 ac_cv_func_alloca_works=yes
6348 else
6349 ac_cv_func_alloca_works=no
6351 rm -f core conftest.err conftest.$ac_objext \
6352 conftest$ac_exeext conftest.$ac_ext
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6355 $as_echo "$ac_cv_func_alloca_works" >&6; }
6357 if test $ac_cv_func_alloca_works = yes; then
6359 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6361 else
6362 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6363 # that cause trouble. Some versions do not even contain alloca or
6364 # contain a buggy version. If you still want to use their alloca,
6365 # use ar to extract alloca.o from them instead of compiling alloca.c.
6367 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6369 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6373 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6374 if ${ac_cv_os_cray+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 #if defined CRAY && ! defined CRAY2
6380 webecray
6381 #else
6382 wenotbecray
6383 #endif
6385 _ACEOF
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "webecray" >/dev/null 2>&1; then :
6388 ac_cv_os_cray=yes
6389 else
6390 ac_cv_os_cray=no
6392 rm -f conftest*
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6396 $as_echo "$ac_cv_os_cray" >&6; }
6397 if test $ac_cv_os_cray = yes; then
6398 for ac_func in _getb67 GETB67 getb67; do
6399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6403 cat >>confdefs.h <<_ACEOF
6404 #define CRAY_STACKSEG_END $ac_func
6405 _ACEOF
6407 break
6410 done
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6414 $as_echo_n "checking stack direction for C alloca... " >&6; }
6415 if ${ac_cv_c_stack_direction+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test "$cross_compiling" = yes; then :
6419 ac_cv_c_stack_direction=0
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 $ac_includes_default
6425 find_stack_direction (int *addr, int depth)
6427 int dir, dummy = 0;
6428 if (! addr)
6429 addr = &dummy;
6430 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6431 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6432 return dir + dummy;
6436 main (int argc, char **argv)
6438 return find_stack_direction (0, argc + !argv + 20) < 0;
6440 _ACEOF
6441 if ac_fn_c_try_run "$LINENO"; then :
6442 ac_cv_c_stack_direction=1
6443 else
6444 ac_cv_c_stack_direction=-1
6446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6447 conftest.$ac_objext conftest.beam conftest.$ac_ext
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6452 $as_echo "$ac_cv_c_stack_direction" >&6; }
6453 cat >>confdefs.h <<_ACEOF
6454 #define STACK_DIRECTION $ac_cv_c_stack_direction
6455 _ACEOF
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6461 $as_echo_n "checking for ANSI C header files... " >&6; }
6462 if ${ac_cv_header_stdc+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <stdlib.h>
6468 #include <stdarg.h>
6469 #include <string.h>
6470 #include <float.h>
6473 main ()
6477 return 0;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 ac_cv_header_stdc=yes
6482 else
6483 ac_cv_header_stdc=no
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 if test $ac_cv_header_stdc = yes; then
6488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <string.h>
6493 _ACEOF
6494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495 $EGREP "memchr" >/dev/null 2>&1; then :
6497 else
6498 ac_cv_header_stdc=no
6500 rm -f conftest*
6504 if test $ac_cv_header_stdc = yes; then
6505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <stdlib.h>
6510 _ACEOF
6511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6512 $EGREP "free" >/dev/null 2>&1; then :
6514 else
6515 ac_cv_header_stdc=no
6517 rm -f conftest*
6521 if test $ac_cv_header_stdc = yes; then
6522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6523 if test "$cross_compiling" = yes; then :
6525 else
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <ctype.h>
6529 #include <stdlib.h>
6530 #if ((' ' & 0x0FF) == 0x020)
6531 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6532 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6533 #else
6534 # define ISLOWER(c) \
6535 (('a' <= (c) && (c) <= 'i') \
6536 || ('j' <= (c) && (c) <= 'r') \
6537 || ('s' <= (c) && (c) <= 'z'))
6538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6539 #endif
6541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6543 main ()
6545 int i;
6546 for (i = 0; i < 256; i++)
6547 if (XOR (islower (i), ISLOWER (i))
6548 || toupper (i) != TOUPPER (i))
6549 return 2;
6550 return 0;
6552 _ACEOF
6553 if ac_fn_c_try_run "$LINENO"; then :
6555 else
6556 ac_cv_header_stdc=no
6558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6559 conftest.$ac_objext conftest.beam conftest.$ac_ext
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6565 $as_echo "$ac_cv_header_stdc" >&6; }
6566 if test $ac_cv_header_stdc = yes; then
6568 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6574 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6575 if ${am_cv_langinfo_codeset+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 #include <langinfo.h>
6582 main ()
6584 char* cs = nl_langinfo(CODESET);
6586 return 0;
6588 _ACEOF
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 am_cv_langinfo_codeset=yes
6591 else
6592 am_cv_langinfo_codeset=no
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6599 $as_echo "$am_cv_langinfo_codeset" >&6; }
6600 if test $am_cv_langinfo_codeset = yes; then
6602 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6607 MKINSTALLDIRS=
6608 if test -n "$ac_aux_dir"; then
6609 case "$ac_aux_dir" in
6610 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6611 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6612 esac
6614 if test -z "$MKINSTALLDIRS"; then
6615 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6621 $as_echo_n "checking whether NLS is requested... " >&6; }
6622 # Check whether --enable-nls was given.
6623 if test "${enable_nls+set}" = set; then :
6624 enableval=$enable_nls; USE_NLS=$enableval
6625 else
6626 USE_NLS=yes
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6630 $as_echo "$USE_NLS" >&6; }
6637 # Prepare PATH_SEPARATOR.
6638 # The user is always right.
6639 if test "${PATH_SEPARATOR+set}" != set; then
6640 echo "#! /bin/sh" >conf$$.sh
6641 echo "exit 0" >>conf$$.sh
6642 chmod +x conf$$.sh
6643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6644 PATH_SEPARATOR=';'
6645 else
6646 PATH_SEPARATOR=:
6648 rm -f conf$$.sh
6651 # Find out how to test for executable files. Don't use a zero-byte file,
6652 # as systems may use methods other than mode bits to determine executability.
6653 cat >conf$$.file <<_ASEOF
6654 #! /bin/sh
6655 exit 0
6656 _ASEOF
6657 chmod +x conf$$.file
6658 if test -x conf$$.file >/dev/null 2>&1; then
6659 ac_executable_p="test -x"
6660 else
6661 ac_executable_p="test -f"
6663 rm -f conf$$.file
6665 # Extract the first word of "msgfmt", so it can be a program name with args.
6666 set dummy msgfmt; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_path_MSGFMT+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 case "$MSGFMT" in
6673 [\\/]* | ?:[\\/]*)
6674 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6677 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6678 for ac_dir in $PATH; do
6679 IFS="$ac_save_IFS"
6680 test -z "$ac_dir" && ac_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6683 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6684 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6685 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6686 break 2
6689 done
6690 done
6691 IFS="$ac_save_IFS"
6692 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6694 esac
6696 MSGFMT="$ac_cv_path_MSGFMT"
6697 if test "$MSGFMT" != ":"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6699 $as_echo "$MSGFMT" >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6705 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6706 set dummy gmsgfmt; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_path_GMSGFMT+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 case $GMSGFMT in
6713 [\\/]* | ?:[\\/]*)
6714 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6728 done
6729 done
6730 IFS=$as_save_IFS
6732 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6734 esac
6736 GMSGFMT=$ac_cv_path_GMSGFMT
6737 if test -n "$GMSGFMT"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6739 $as_echo "$GMSGFMT" >&6; }
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6748 # Prepare PATH_SEPARATOR.
6749 # The user is always right.
6750 if test "${PATH_SEPARATOR+set}" != set; then
6751 echo "#! /bin/sh" >conf$$.sh
6752 echo "exit 0" >>conf$$.sh
6753 chmod +x conf$$.sh
6754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6755 PATH_SEPARATOR=';'
6756 else
6757 PATH_SEPARATOR=:
6759 rm -f conf$$.sh
6762 # Find out how to test for executable files. Don't use a zero-byte file,
6763 # as systems may use methods other than mode bits to determine executability.
6764 cat >conf$$.file <<_ASEOF
6765 #! /bin/sh
6766 exit 0
6767 _ASEOF
6768 chmod +x conf$$.file
6769 if test -x conf$$.file >/dev/null 2>&1; then
6770 ac_executable_p="test -x"
6771 else
6772 ac_executable_p="test -f"
6774 rm -f conf$$.file
6776 # Extract the first word of "xgettext", so it can be a program name with args.
6777 set dummy xgettext; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if ${ac_cv_path_XGETTEXT+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 case "$XGETTEXT" in
6784 [\\/]* | ?:[\\/]*)
6785 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6788 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6789 for ac_dir in $PATH; do
6790 IFS="$ac_save_IFS"
6791 test -z "$ac_dir" && ac_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6794 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6795 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6796 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6797 break 2
6800 done
6801 done
6802 IFS="$ac_save_IFS"
6803 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6805 esac
6807 XGETTEXT="$ac_cv_path_XGETTEXT"
6808 if test "$XGETTEXT" != ":"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6810 $as_echo "$XGETTEXT" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6816 rm -f messages.po
6819 # Prepare PATH_SEPARATOR.
6820 # The user is always right.
6821 if test "${PATH_SEPARATOR+set}" != set; then
6822 echo "#! /bin/sh" >conf$$.sh
6823 echo "exit 0" >>conf$$.sh
6824 chmod +x conf$$.sh
6825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6826 PATH_SEPARATOR=';'
6827 else
6828 PATH_SEPARATOR=:
6830 rm -f conf$$.sh
6833 # Find out how to test for executable files. Don't use a zero-byte file,
6834 # as systems may use methods other than mode bits to determine executability.
6835 cat >conf$$.file <<_ASEOF
6836 #! /bin/sh
6837 exit 0
6838 _ASEOF
6839 chmod +x conf$$.file
6840 if test -x conf$$.file >/dev/null 2>&1; then
6841 ac_executable_p="test -x"
6842 else
6843 ac_executable_p="test -f"
6845 rm -f conf$$.file
6847 # Extract the first word of "msgmerge", so it can be a program name with args.
6848 set dummy msgmerge; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_path_MSGMERGE+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 case "$MSGMERGE" in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6859 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6860 for ac_dir in $PATH; do
6861 IFS="$ac_save_IFS"
6862 test -z "$ac_dir" && ac_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6865 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6866 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6867 break 2
6870 done
6871 done
6872 IFS="$ac_save_IFS"
6873 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6875 esac
6877 MSGMERGE="$ac_cv_path_MSGMERGE"
6878 if test "$MSGMERGE" != ":"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6880 $as_echo "$MSGMERGE" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6887 if test "$GMSGFMT" != ":"; then
6888 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6889 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6891 else
6892 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6894 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6895 GMSGFMT=":"
6899 if test "$XGETTEXT" != ":"; then
6900 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6901 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6905 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6906 XGETTEXT=":"
6908 rm -f messages.po
6911 ac_config_commands="$ac_config_commands default-1"
6915 if test "X$prefix" = "XNONE"; then
6916 acl_final_prefix="$ac_default_prefix"
6917 else
6918 acl_final_prefix="$prefix"
6920 if test "X$exec_prefix" = "XNONE"; then
6921 acl_final_exec_prefix='${prefix}'
6922 else
6923 acl_final_exec_prefix="$exec_prefix"
6925 acl_save_prefix="$prefix"
6926 prefix="$acl_final_prefix"
6927 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6928 prefix="$acl_save_prefix"
6931 # Check whether --with-gnu-ld was given.
6932 if test "${with_gnu_ld+set}" = set; then :
6933 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6934 else
6935 with_gnu_ld=no
6938 # Prepare PATH_SEPARATOR.
6939 # The user is always right.
6940 if test "${PATH_SEPARATOR+set}" != set; then
6941 echo "#! /bin/sh" >conf$$.sh
6942 echo "exit 0" >>conf$$.sh
6943 chmod +x conf$$.sh
6944 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6945 PATH_SEPARATOR=';'
6946 else
6947 PATH_SEPARATOR=:
6949 rm -f conf$$.sh
6951 ac_prog=ld
6952 if test "$GCC" = yes; then
6953 # Check if gcc -print-prog-name=ld gives a path.
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6955 $as_echo_n "checking for ld used by GCC... " >&6; }
6956 case $host in
6957 *-*-mingw*)
6958 # gcc leaves a trailing carriage return which upsets mingw
6959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6962 esac
6963 case $ac_prog in
6964 # Accept absolute paths.
6965 [\\/]* | [A-Za-z]:[\\/]*)
6966 re_direlt='/[^/][^/]*/\.\./'
6967 # Canonicalize the path of ld
6968 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6969 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6970 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6971 done
6972 test -z "$LD" && LD="$ac_prog"
6975 # If it fails, then pretend we aren't using GCC.
6976 ac_prog=ld
6979 # If it is relative, then search for the first ld in PATH.
6980 with_gnu_ld=unknown
6982 esac
6983 elif test "$with_gnu_ld" = yes; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6985 $as_echo_n "checking for GNU ld... " >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6988 $as_echo_n "checking for non-GNU ld... " >&6; }
6990 if ${acl_cv_path_LD+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 if test -z "$LD"; then
6994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6995 for ac_dir in $PATH; do
6996 test -z "$ac_dir" && ac_dir=.
6997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6998 acl_cv_path_LD="$ac_dir/$ac_prog"
6999 # Check to see if the program is GNU ld. I'd rather use --version,
7000 # but apparently some GNU ld's only accept -v.
7001 # Break only if it was the GNU/non-GNU ld that we prefer.
7002 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
7003 test "$with_gnu_ld" != no && break
7004 else
7005 test "$with_gnu_ld" != yes && break
7008 done
7009 IFS="$ac_save_ifs"
7010 else
7011 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7015 LD="$acl_cv_path_LD"
7016 if test -n "$LD"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7018 $as_echo "$LD" >&6; }
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7023 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7025 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7026 if ${acl_cv_prog_gnu_ld+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7030 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
7031 acl_cv_prog_gnu_ld=yes
7032 else
7033 acl_cv_prog_gnu_ld=no
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7037 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7038 with_gnu_ld=$acl_cv_prog_gnu_ld
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7043 $as_echo_n "checking for shared library run path origin... " >&6; }
7044 if ${acl_cv_rpath+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7048 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7049 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7050 . ./conftest.sh
7051 rm -f ./conftest.sh
7052 acl_cv_rpath=done
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7056 $as_echo "$acl_cv_rpath" >&6; }
7057 wl="$acl_cv_wl"
7058 libext="$acl_cv_libext"
7059 shlibext="$acl_cv_shlibext"
7060 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7061 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7062 hardcode_direct="$acl_cv_hardcode_direct"
7063 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7064 # Check whether --enable-rpath was given.
7065 if test "${enable_rpath+set}" = set; then :
7066 enableval=$enable_rpath; :
7067 else
7068 enable_rpath=yes
7078 use_additional=yes
7080 acl_save_prefix="$prefix"
7081 prefix="$acl_final_prefix"
7082 acl_save_exec_prefix="$exec_prefix"
7083 exec_prefix="$acl_final_exec_prefix"
7085 eval additional_includedir=\"$includedir\"
7086 eval additional_libdir=\"$libdir\"
7088 exec_prefix="$acl_save_exec_prefix"
7089 prefix="$acl_save_prefix"
7092 # Check whether --with-libiconv-prefix was given.
7093 if test "${with_libiconv_prefix+set}" = set; then :
7094 withval=$with_libiconv_prefix;
7095 if test "X$withval" = "Xno"; then
7096 use_additional=no
7097 else
7098 if test "X$withval" = "X"; then
7100 acl_save_prefix="$prefix"
7101 prefix="$acl_final_prefix"
7102 acl_save_exec_prefix="$exec_prefix"
7103 exec_prefix="$acl_final_exec_prefix"
7105 eval additional_includedir=\"$includedir\"
7106 eval additional_libdir=\"$libdir\"
7108 exec_prefix="$acl_save_exec_prefix"
7109 prefix="$acl_save_prefix"
7111 else
7112 additional_includedir="$withval/include"
7113 additional_libdir="$withval/lib"
7120 # Check whether --with-libiconv-type was given.
7121 if test "${with_libiconv_type+set}" = set; then :
7122 withval=$with_libiconv_type; with_libiconv_type=$withval
7123 else
7124 with_libiconv_type=auto
7127 lib_type=`eval echo \$with_libiconv_type`
7129 LIBICONV=
7130 LTLIBICONV=
7131 INCICONV=
7132 rpathdirs=
7133 ltrpathdirs=
7134 names_already_handled=
7135 names_next_round='iconv '
7136 while test -n "$names_next_round"; do
7137 names_this_round="$names_next_round"
7138 names_next_round=
7139 for name in $names_this_round; do
7140 already_handled=
7141 for n in $names_already_handled; do
7142 if test "$n" = "$name"; then
7143 already_handled=yes
7144 break
7146 done
7147 if test -z "$already_handled"; then
7148 names_already_handled="$names_already_handled $name"
7149 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7150 eval value=\"\$HAVE_LIB$uppername\"
7151 if test -n "$value"; then
7152 if test "$value" = yes; then
7153 eval value=\"\$LIB$uppername\"
7154 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7155 eval value=\"\$LTLIB$uppername\"
7156 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7157 else
7160 else
7161 found_dir=
7162 found_la=
7163 found_so=
7164 found_a=
7165 if test $use_additional = yes; then
7166 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7167 found_dir="$additional_libdir"
7168 found_so="$additional_libdir/lib$name.$shlibext"
7169 if test -f "$additional_libdir/lib$name.la"; then
7170 found_la="$additional_libdir/lib$name.la"
7172 elif test x$lib_type != xshared; then
7173 if test -f "$additional_libdir/lib$name.$libext"; then
7174 found_dir="$additional_libdir"
7175 found_a="$additional_libdir/lib$name.$libext"
7176 if test -f "$additional_libdir/lib$name.la"; then
7177 found_la="$additional_libdir/lib$name.la"
7182 if test "X$found_dir" = "X"; then
7183 for x in $LDFLAGS $LTLIBICONV; do
7185 acl_save_prefix="$prefix"
7186 prefix="$acl_final_prefix"
7187 acl_save_exec_prefix="$exec_prefix"
7188 exec_prefix="$acl_final_exec_prefix"
7189 eval x=\"$x\"
7190 exec_prefix="$acl_save_exec_prefix"
7191 prefix="$acl_save_prefix"
7193 case "$x" in
7194 -L*)
7195 dir=`echo "X$x" | sed -e 's/^X-L//'`
7196 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7197 found_dir="$dir"
7198 found_so="$dir/lib$name.$shlibext"
7199 if test -f "$dir/lib$name.la"; then
7200 found_la="$dir/lib$name.la"
7202 elif test x$lib_type != xshared; then
7203 if test -f "$dir/lib$name.$libext"; then
7204 found_dir="$dir"
7205 found_a="$dir/lib$name.$libext"
7206 if test -f "$dir/lib$name.la"; then
7207 found_la="$dir/lib$name.la"
7212 esac
7213 if test "X$found_dir" != "X"; then
7214 break
7216 done
7218 if test "X$found_dir" != "X"; then
7219 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7220 if test "X$found_so" != "X"; then
7221 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7222 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7223 else
7224 haveit=
7225 for x in $ltrpathdirs; do
7226 if test "X$x" = "X$found_dir"; then
7227 haveit=yes
7228 break
7230 done
7231 if test -z "$haveit"; then
7232 ltrpathdirs="$ltrpathdirs $found_dir"
7234 if test "$hardcode_direct" = yes; then
7235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7236 else
7237 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7238 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7239 haveit=
7240 for x in $rpathdirs; do
7241 if test "X$x" = "X$found_dir"; then
7242 haveit=yes
7243 break
7245 done
7246 if test -z "$haveit"; then
7247 rpathdirs="$rpathdirs $found_dir"
7249 else
7250 haveit=
7251 for x in $LDFLAGS $LIBICONV; do
7253 acl_save_prefix="$prefix"
7254 prefix="$acl_final_prefix"
7255 acl_save_exec_prefix="$exec_prefix"
7256 exec_prefix="$acl_final_exec_prefix"
7257 eval x=\"$x\"
7258 exec_prefix="$acl_save_exec_prefix"
7259 prefix="$acl_save_prefix"
7261 if test "X$x" = "X-L$found_dir"; then
7262 haveit=yes
7263 break
7265 done
7266 if test -z "$haveit"; then
7267 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7269 if test "$hardcode_minus_L" != no; then
7270 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7271 else
7272 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7277 else
7278 if test "X$found_a" != "X"; then
7279 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7280 else
7281 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7284 additional_includedir=
7285 case "$found_dir" in
7286 */lib | */lib/)
7287 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7288 additional_includedir="$basedir/include"
7290 esac
7291 if test "X$additional_includedir" != "X"; then
7292 if test "X$additional_includedir" != "X/usr/include"; then
7293 haveit=
7294 if test "X$additional_includedir" = "X/usr/local/include"; then
7295 if test -n "$GCC"; then
7296 case $host_os in
7297 linux*) haveit=yes;;
7298 esac
7301 if test -z "$haveit"; then
7302 for x in $CPPFLAGS $INCICONV; do
7304 acl_save_prefix="$prefix"
7305 prefix="$acl_final_prefix"
7306 acl_save_exec_prefix="$exec_prefix"
7307 exec_prefix="$acl_final_exec_prefix"
7308 eval x=\"$x\"
7309 exec_prefix="$acl_save_exec_prefix"
7310 prefix="$acl_save_prefix"
7312 if test "X$x" = "X-I$additional_includedir"; then
7313 haveit=yes
7314 break
7316 done
7317 if test -z "$haveit"; then
7318 if test -d "$additional_includedir"; then
7319 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7325 if test -n "$found_la"; then
7326 save_libdir="$libdir"
7327 case "$found_la" in
7328 */* | *\\*) . "$found_la" ;;
7329 *) . "./$found_la" ;;
7330 esac
7331 libdir="$save_libdir"
7332 for dep in $dependency_libs; do
7333 case "$dep" in
7334 -L*)
7335 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7336 if test "X$additional_libdir" != "X/usr/lib"; then
7337 haveit=
7338 if test "X$additional_libdir" = "X/usr/local/lib"; then
7339 if test -n "$GCC"; then
7340 case $host_os in
7341 linux*) haveit=yes;;
7342 esac
7345 if test -z "$haveit"; then
7346 haveit=
7347 for x in $LDFLAGS $LIBICONV; do
7349 acl_save_prefix="$prefix"
7350 prefix="$acl_final_prefix"
7351 acl_save_exec_prefix="$exec_prefix"
7352 exec_prefix="$acl_final_exec_prefix"
7353 eval x=\"$x\"
7354 exec_prefix="$acl_save_exec_prefix"
7355 prefix="$acl_save_prefix"
7357 if test "X$x" = "X-L$additional_libdir"; then
7358 haveit=yes
7359 break
7361 done
7362 if test -z "$haveit"; then
7363 if test -d "$additional_libdir"; then
7364 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7367 haveit=
7368 for x in $LDFLAGS $LTLIBICONV; do
7370 acl_save_prefix="$prefix"
7371 prefix="$acl_final_prefix"
7372 acl_save_exec_prefix="$exec_prefix"
7373 exec_prefix="$acl_final_exec_prefix"
7374 eval x=\"$x\"
7375 exec_prefix="$acl_save_exec_prefix"
7376 prefix="$acl_save_prefix"
7378 if test "X$x" = "X-L$additional_libdir"; then
7379 haveit=yes
7380 break
7382 done
7383 if test -z "$haveit"; then
7384 if test -d "$additional_libdir"; then
7385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7391 -R*)
7392 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7393 if test "$enable_rpath" != no; then
7394 haveit=
7395 for x in $rpathdirs; do
7396 if test "X$x" = "X$dir"; then
7397 haveit=yes
7398 break
7400 done
7401 if test -z "$haveit"; then
7402 rpathdirs="$rpathdirs $dir"
7404 haveit=
7405 for x in $ltrpathdirs; do
7406 if test "X$x" = "X$dir"; then
7407 haveit=yes
7408 break
7410 done
7411 if test -z "$haveit"; then
7412 ltrpathdirs="$ltrpathdirs $dir"
7416 -l*)
7417 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7419 *.la)
7420 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7423 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7424 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7426 esac
7427 done
7429 else
7430 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7431 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7433 else
7434 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7435 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7440 done
7441 done
7442 if test "X$rpathdirs" != "X"; then
7443 if test -n "$hardcode_libdir_separator"; then
7444 alldirs=
7445 for found_dir in $rpathdirs; do
7446 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7447 done
7448 acl_save_libdir="$libdir"
7449 libdir="$alldirs"
7450 eval flag=\"$hardcode_libdir_flag_spec\"
7451 libdir="$acl_save_libdir"
7452 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7453 else
7454 for found_dir in $rpathdirs; do
7455 acl_save_libdir="$libdir"
7456 libdir="$found_dir"
7457 eval flag=\"$hardcode_libdir_flag_spec\"
7458 libdir="$acl_save_libdir"
7459 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7460 done
7463 if test "X$ltrpathdirs" != "X"; then
7464 for found_dir in $ltrpathdirs; do
7465 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7466 done
7473 if test -f ../gettext/uninstalled-config.sh; then
7474 relative_builddir='$(top_builddir)/../gettext'
7475 . ../gettext/uninstalled-config.sh
7476 else
7477 # The sister gettext directory doesn't exist and won't collect information on
7478 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7503 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7504 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 gt_save_LIBS="$LIBS"
7508 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 #include <CoreFoundation/CFPreferences.h>
7513 main ()
7515 CFPreferencesCopyAppValue(NULL, NULL)
7517 return 0;
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"; then :
7521 gt_cv_func_CFPreferencesCopyAppValue=yes
7522 else
7523 gt_cv_func_CFPreferencesCopyAppValue=no
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 LIBS="$gt_save_LIBS"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7530 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7531 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7533 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7537 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7538 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 gt_save_LIBS="$LIBS"
7542 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #include <CoreFoundation/CFLocale.h>
7547 main ()
7549 CFLocaleCopyPreferredLanguages();
7551 return 0;
7553 _ACEOF
7554 if ac_fn_c_try_link "$LINENO"; then :
7555 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7556 else
7557 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7559 rm -f core conftest.err conftest.$ac_objext \
7560 conftest$ac_exeext conftest.$ac_ext
7561 LIBS="$gt_save_LIBS"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7564 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7565 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7567 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7570 INTL_MACOSX_LIBS=
7571 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7572 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7573 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7581 LIBINTL=
7582 LTLIBINTL=
7583 POSUB=
7585 case " $gt_needs " in
7586 *" need-formatstring-macros "*) gt_api_version=3 ;;
7587 *" need-ngettext "*) gt_api_version=2 ;;
7588 *) gt_api_version=1 ;;
7589 esac
7590 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7591 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7593 if test "$USE_NLS" = "yes"; then
7594 gt_use_preinstalled_gnugettext=no
7597 if test $gt_api_version -ge 3; then
7598 gt_revision_test_code='
7599 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7600 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7601 #endif
7602 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7604 else
7605 gt_revision_test_code=
7607 if test $gt_api_version -ge 2; then
7608 gt_expression_test_code=' + * ngettext ("", "", 0)'
7609 else
7610 gt_expression_test_code=
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7614 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7615 if eval \${$gt_func_gnugettext_libc+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7621 #include <libintl.h>
7622 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7623 extern int _nl_msg_cat_cntr;
7624 extern int *_nl_domain_bindings;
7625 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7626 #else
7627 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7628 #endif
7629 $gt_revision_test_code
7632 main ()
7635 bindtextdomain ("", "");
7636 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7639 return 0;
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643 eval "$gt_func_gnugettext_libc=yes"
7644 else
7645 eval "$gt_func_gnugettext_libc=no"
7647 rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7650 eval ac_res=\$$gt_func_gnugettext_libc
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7652 $as_echo "$ac_res" >&6; }
7654 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7660 am_save_CPPFLAGS="$CPPFLAGS"
7662 for element in $INCICONV; do
7663 haveit=
7664 for x in $CPPFLAGS; do
7666 acl_save_prefix="$prefix"
7667 prefix="$acl_final_prefix"
7668 acl_save_exec_prefix="$exec_prefix"
7669 exec_prefix="$acl_final_exec_prefix"
7670 eval x=\"$x\"
7671 exec_prefix="$acl_save_exec_prefix"
7672 prefix="$acl_save_prefix"
7674 if test "X$x" = "X$element"; then
7675 haveit=yes
7676 break
7678 done
7679 if test -z "$haveit"; then
7680 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7682 done
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7686 $as_echo_n "checking for iconv... " >&6; }
7687 if ${am_cv_func_iconv+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7691 am_cv_func_iconv="no, consider installing GNU libiconv"
7692 am_cv_lib_iconv=no
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7696 #include <stdlib.h>
7697 #include <iconv.h>
7700 main ()
7702 iconv_t cd = iconv_open("","");
7703 iconv(cd,NULL,NULL,NULL,NULL);
7704 iconv_close(cd);
7706 return 0;
7708 _ACEOF
7709 if ac_fn_c_try_link "$LINENO"; then :
7710 am_cv_func_iconv=yes
7712 rm -f core conftest.err conftest.$ac_objext \
7713 conftest$ac_exeext conftest.$ac_ext
7714 if test "$am_cv_func_iconv" != yes; then
7715 am_save_LIBS="$LIBS"
7716 LIBS="$LIBS $LIBICONV"
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7720 #include <stdlib.h>
7721 #include <iconv.h>
7724 main ()
7726 iconv_t cd = iconv_open("","");
7727 iconv(cd,NULL,NULL,NULL,NULL);
7728 iconv_close(cd);
7730 return 0;
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7734 am_cv_lib_iconv=yes
7735 am_cv_func_iconv=yes
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 LIBS="$am_save_LIBS"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7744 $as_echo "$am_cv_func_iconv" >&6; }
7745 if test "$am_cv_func_iconv" = yes; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7747 $as_echo_n "checking for working iconv... " >&6; }
7748 if ${am_cv_func_iconv_works+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7752 am_save_LIBS="$LIBS"
7753 if test $am_cv_lib_iconv = yes; then
7754 LIBS="$LIBS $LIBICONV"
7756 am_cv_func_iconv_works=no
7757 for ac_iconv_const in '' 'const'; do
7758 if test "$cross_compiling" = yes; then :
7759 case "$host_os" in
7760 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7761 *) am_cv_func_iconv_works="guessing yes" ;;
7762 esac
7763 else
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7767 #include <iconv.h>
7768 #include <string.h>
7770 #ifndef ICONV_CONST
7771 # define ICONV_CONST $ac_iconv_const
7772 #endif
7775 main ()
7777 int result = 0;
7778 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
7779 successful returns. This is even documented in
7780 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
7782 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7783 if (cd_utf8_to_88591 != (iconv_t)(-1))
7785 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7786 char buf[10];
7787 ICONV_CONST char *inptr = input;
7788 size_t inbytesleft = strlen (input);
7789 char *outptr = buf;
7790 size_t outbytesleft = sizeof (buf);
7791 size_t res = iconv (cd_utf8_to_88591,
7792 &inptr, &inbytesleft,
7793 &outptr, &outbytesleft);
7794 if (res == 0)
7795 result |= 1;
7796 iconv_close (cd_utf8_to_88591);
7799 /* Test against Solaris 10 bug: Failures are not distinguishable from
7800 successful returns. */
7802 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7803 if (cd_ascii_to_88591 != (iconv_t)(-1))
7805 static ICONV_CONST char input[] = "\263";
7806 char buf[10];
7807 ICONV_CONST char *inptr = input;
7808 size_t inbytesleft = strlen (input);
7809 char *outptr = buf;
7810 size_t outbytesleft = sizeof (buf);
7811 size_t res = iconv (cd_ascii_to_88591,
7812 &inptr, &inbytesleft,
7813 &outptr, &outbytesleft);
7814 if (res == 0)
7815 result |= 2;
7816 iconv_close (cd_ascii_to_88591);
7819 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7821 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7822 if (cd_88591_to_utf8 != (iconv_t)(-1))
7824 static ICONV_CONST char input[] = "\304";
7825 static char buf[2] = { (char)0xDE, (char)0xAD };
7826 ICONV_CONST char *inptr = input;
7827 size_t inbytesleft = 1;
7828 char *outptr = buf;
7829 size_t outbytesleft = 1;
7830 size_t res = iconv (cd_88591_to_utf8,
7831 &inptr, &inbytesleft,
7832 &outptr, &outbytesleft);
7833 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7834 result |= 4;
7835 iconv_close (cd_88591_to_utf8);
7838 #if 0 /* This bug could be worked around by the caller. */
7839 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7841 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7842 if (cd_88591_to_utf8 != (iconv_t)(-1))
7844 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7845 char buf[50];
7846 ICONV_CONST char *inptr = input;
7847 size_t inbytesleft = strlen (input);
7848 char *outptr = buf;
7849 size_t outbytesleft = sizeof (buf);
7850 size_t res = iconv (cd_88591_to_utf8,
7851 &inptr, &inbytesleft,
7852 &outptr, &outbytesleft);
7853 if ((int)res > 0)
7854 result |= 8;
7855 iconv_close (cd_88591_to_utf8);
7858 #endif
7859 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7860 provided. */
7862 /* Try standardized names. */
7863 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
7864 /* Try IRIX, OSF/1 names. */
7865 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
7866 /* Try AIX names. */
7867 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
7868 /* Try HP-UX names. */
7869 iconv_t cd4 = iconv_open ("utf8", "eucJP");
7870 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
7871 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
7872 result |= 16;
7873 if (cd1 != (iconv_t)(-1))
7874 iconv_close (cd1);
7875 if (cd2 != (iconv_t)(-1))
7876 iconv_close (cd2);
7877 if (cd3 != (iconv_t)(-1))
7878 iconv_close (cd3);
7879 if (cd4 != (iconv_t)(-1))
7880 iconv_close (cd4);
7882 return result;
7885 return 0;
7887 _ACEOF
7888 if ac_fn_c_try_run "$LINENO"; then :
7889 am_cv_func_iconv_works=yes
7891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7892 conftest.$ac_objext conftest.beam conftest.$ac_ext
7895 test "$am_cv_func_iconv_works" = no || break
7896 done
7897 LIBS="$am_save_LIBS"
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7901 $as_echo "$am_cv_func_iconv_works" >&6; }
7902 case "$am_cv_func_iconv_works" in
7903 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7904 *) am_func_iconv=yes ;;
7905 esac
7906 else
7907 am_func_iconv=no am_cv_lib_iconv=no
7909 if test "$am_func_iconv" = yes; then
7911 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7914 if test "$am_cv_lib_iconv" = yes; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7916 $as_echo_n "checking how to link with libiconv... " >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7918 $as_echo "$LIBICONV" >&6; }
7919 else
7920 CPPFLAGS="$am_save_CPPFLAGS"
7921 LIBICONV=
7922 LTLIBICONV=
7930 use_additional=yes
7932 acl_save_prefix="$prefix"
7933 prefix="$acl_final_prefix"
7934 acl_save_exec_prefix="$exec_prefix"
7935 exec_prefix="$acl_final_exec_prefix"
7937 eval additional_includedir=\"$includedir\"
7938 eval additional_libdir=\"$libdir\"
7940 exec_prefix="$acl_save_exec_prefix"
7941 prefix="$acl_save_prefix"
7944 # Check whether --with-libintl-prefix was given.
7945 if test "${with_libintl_prefix+set}" = set; then :
7946 withval=$with_libintl_prefix;
7947 if test "X$withval" = "Xno"; then
7948 use_additional=no
7949 else
7950 if test "X$withval" = "X"; then
7952 acl_save_prefix="$prefix"
7953 prefix="$acl_final_prefix"
7954 acl_save_exec_prefix="$exec_prefix"
7955 exec_prefix="$acl_final_exec_prefix"
7957 eval additional_includedir=\"$includedir\"
7958 eval additional_libdir=\"$libdir\"
7960 exec_prefix="$acl_save_exec_prefix"
7961 prefix="$acl_save_prefix"
7963 else
7964 additional_includedir="$withval/include"
7965 additional_libdir="$withval/lib"
7972 # Check whether --with-libintl-type was given.
7973 if test "${with_libintl_type+set}" = set; then :
7974 withval=$with_libintl_type; with_libintl_type=$withval
7975 else
7976 with_libintl_type=auto
7979 lib_type=`eval echo \$with_libintl_type`
7981 LIBINTL=
7982 LTLIBINTL=
7983 INCINTL=
7984 rpathdirs=
7985 ltrpathdirs=
7986 names_already_handled=
7987 names_next_round='intl '
7988 while test -n "$names_next_round"; do
7989 names_this_round="$names_next_round"
7990 names_next_round=
7991 for name in $names_this_round; do
7992 already_handled=
7993 for n in $names_already_handled; do
7994 if test "$n" = "$name"; then
7995 already_handled=yes
7996 break
7998 done
7999 if test -z "$already_handled"; then
8000 names_already_handled="$names_already_handled $name"
8001 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8002 eval value=\"\$HAVE_LIB$uppername\"
8003 if test -n "$value"; then
8004 if test "$value" = yes; then
8005 eval value=\"\$LIB$uppername\"
8006 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8007 eval value=\"\$LTLIB$uppername\"
8008 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8009 else
8012 else
8013 found_dir=
8014 found_la=
8015 found_so=
8016 found_a=
8017 if test $use_additional = yes; then
8018 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8019 found_dir="$additional_libdir"
8020 found_so="$additional_libdir/lib$name.$shlibext"
8021 if test -f "$additional_libdir/lib$name.la"; then
8022 found_la="$additional_libdir/lib$name.la"
8024 elif test x$lib_type != xshared; then
8025 if test -f "$additional_libdir/lib$name.$libext"; then
8026 found_dir="$additional_libdir"
8027 found_a="$additional_libdir/lib$name.$libext"
8028 if test -f "$additional_libdir/lib$name.la"; then
8029 found_la="$additional_libdir/lib$name.la"
8034 if test "X$found_dir" = "X"; then
8035 for x in $LDFLAGS $LTLIBINTL; do
8037 acl_save_prefix="$prefix"
8038 prefix="$acl_final_prefix"
8039 acl_save_exec_prefix="$exec_prefix"
8040 exec_prefix="$acl_final_exec_prefix"
8041 eval x=\"$x\"
8042 exec_prefix="$acl_save_exec_prefix"
8043 prefix="$acl_save_prefix"
8045 case "$x" in
8046 -L*)
8047 dir=`echo "X$x" | sed -e 's/^X-L//'`
8048 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8049 found_dir="$dir"
8050 found_so="$dir/lib$name.$shlibext"
8051 if test -f "$dir/lib$name.la"; then
8052 found_la="$dir/lib$name.la"
8054 elif test x$lib_type != xshared; then
8055 if test -f "$dir/lib$name.$libext"; then
8056 found_dir="$dir"
8057 found_a="$dir/lib$name.$libext"
8058 if test -f "$dir/lib$name.la"; then
8059 found_la="$dir/lib$name.la"
8064 esac
8065 if test "X$found_dir" != "X"; then
8066 break
8068 done
8070 if test "X$found_dir" != "X"; then
8071 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8072 if test "X$found_so" != "X"; then
8073 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8074 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8075 else
8076 haveit=
8077 for x in $ltrpathdirs; do
8078 if test "X$x" = "X$found_dir"; then
8079 haveit=yes
8080 break
8082 done
8083 if test -z "$haveit"; then
8084 ltrpathdirs="$ltrpathdirs $found_dir"
8086 if test "$hardcode_direct" = yes; then
8087 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8088 else
8089 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8090 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8091 haveit=
8092 for x in $rpathdirs; do
8093 if test "X$x" = "X$found_dir"; then
8094 haveit=yes
8095 break
8097 done
8098 if test -z "$haveit"; then
8099 rpathdirs="$rpathdirs $found_dir"
8101 else
8102 haveit=
8103 for x in $LDFLAGS $LIBINTL; do
8105 acl_save_prefix="$prefix"
8106 prefix="$acl_final_prefix"
8107 acl_save_exec_prefix="$exec_prefix"
8108 exec_prefix="$acl_final_exec_prefix"
8109 eval x=\"$x\"
8110 exec_prefix="$acl_save_exec_prefix"
8111 prefix="$acl_save_prefix"
8113 if test "X$x" = "X-L$found_dir"; then
8114 haveit=yes
8115 break
8117 done
8118 if test -z "$haveit"; then
8119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8121 if test "$hardcode_minus_L" != no; then
8122 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8123 else
8124 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8129 else
8130 if test "X$found_a" != "X"; then
8131 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8132 else
8133 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8136 additional_includedir=
8137 case "$found_dir" in
8138 */lib | */lib/)
8139 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8140 additional_includedir="$basedir/include"
8142 esac
8143 if test "X$additional_includedir" != "X"; then
8144 if test "X$additional_includedir" != "X/usr/include"; then
8145 haveit=
8146 if test "X$additional_includedir" = "X/usr/local/include"; then
8147 if test -n "$GCC"; then
8148 case $host_os in
8149 linux*) haveit=yes;;
8150 esac
8153 if test -z "$haveit"; then
8154 for x in $CPPFLAGS $INCINTL; do
8156 acl_save_prefix="$prefix"
8157 prefix="$acl_final_prefix"
8158 acl_save_exec_prefix="$exec_prefix"
8159 exec_prefix="$acl_final_exec_prefix"
8160 eval x=\"$x\"
8161 exec_prefix="$acl_save_exec_prefix"
8162 prefix="$acl_save_prefix"
8164 if test "X$x" = "X-I$additional_includedir"; then
8165 haveit=yes
8166 break
8168 done
8169 if test -z "$haveit"; then
8170 if test -d "$additional_includedir"; then
8171 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8177 if test -n "$found_la"; then
8178 save_libdir="$libdir"
8179 case "$found_la" in
8180 */* | *\\*) . "$found_la" ;;
8181 *) . "./$found_la" ;;
8182 esac
8183 libdir="$save_libdir"
8184 for dep in $dependency_libs; do
8185 case "$dep" in
8186 -L*)
8187 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8188 if test "X$additional_libdir" != "X/usr/lib"; then
8189 haveit=
8190 if test "X$additional_libdir" = "X/usr/local/lib"; then
8191 if test -n "$GCC"; then
8192 case $host_os in
8193 linux*) haveit=yes;;
8194 esac
8197 if test -z "$haveit"; then
8198 haveit=
8199 for x in $LDFLAGS $LIBINTL; do
8201 acl_save_prefix="$prefix"
8202 prefix="$acl_final_prefix"
8203 acl_save_exec_prefix="$exec_prefix"
8204 exec_prefix="$acl_final_exec_prefix"
8205 eval x=\"$x\"
8206 exec_prefix="$acl_save_exec_prefix"
8207 prefix="$acl_save_prefix"
8209 if test "X$x" = "X-L$additional_libdir"; then
8210 haveit=yes
8211 break
8213 done
8214 if test -z "$haveit"; then
8215 if test -d "$additional_libdir"; then
8216 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8219 haveit=
8220 for x in $LDFLAGS $LTLIBINTL; do
8222 acl_save_prefix="$prefix"
8223 prefix="$acl_final_prefix"
8224 acl_save_exec_prefix="$exec_prefix"
8225 exec_prefix="$acl_final_exec_prefix"
8226 eval x=\"$x\"
8227 exec_prefix="$acl_save_exec_prefix"
8228 prefix="$acl_save_prefix"
8230 if test "X$x" = "X-L$additional_libdir"; then
8231 haveit=yes
8232 break
8234 done
8235 if test -z "$haveit"; then
8236 if test -d "$additional_libdir"; then
8237 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8243 -R*)
8244 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8245 if test "$enable_rpath" != no; then
8246 haveit=
8247 for x in $rpathdirs; do
8248 if test "X$x" = "X$dir"; then
8249 haveit=yes
8250 break
8252 done
8253 if test -z "$haveit"; then
8254 rpathdirs="$rpathdirs $dir"
8256 haveit=
8257 for x in $ltrpathdirs; do
8258 if test "X$x" = "X$dir"; then
8259 haveit=yes
8260 break
8262 done
8263 if test -z "$haveit"; then
8264 ltrpathdirs="$ltrpathdirs $dir"
8268 -l*)
8269 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8271 *.la)
8272 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8275 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8278 esac
8279 done
8281 else
8282 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8283 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8285 else
8286 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8292 done
8293 done
8294 if test "X$rpathdirs" != "X"; then
8295 if test -n "$hardcode_libdir_separator"; then
8296 alldirs=
8297 for found_dir in $rpathdirs; do
8298 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8299 done
8300 acl_save_libdir="$libdir"
8301 libdir="$alldirs"
8302 eval flag=\"$hardcode_libdir_flag_spec\"
8303 libdir="$acl_save_libdir"
8304 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8305 else
8306 for found_dir in $rpathdirs; do
8307 acl_save_libdir="$libdir"
8308 libdir="$found_dir"
8309 eval flag=\"$hardcode_libdir_flag_spec\"
8310 libdir="$acl_save_libdir"
8311 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8312 done
8315 if test "X$ltrpathdirs" != "X"; then
8316 for found_dir in $ltrpathdirs; do
8317 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8318 done
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8323 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 gt_save_CPPFLAGS="$CPPFLAGS"
8327 CPPFLAGS="$CPPFLAGS $INCINTL"
8328 gt_save_LIBS="$LIBS"
8329 LIBS="$LIBS $LIBINTL"
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8333 #include <libintl.h>
8334 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8335 extern int _nl_msg_cat_cntr;
8336 extern
8337 #ifdef __cplusplus
8339 #endif
8340 const char *_nl_expand_alias (const char *);
8341 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8342 #else
8343 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8344 #endif
8345 $gt_revision_test_code
8348 main ()
8351 bindtextdomain ("", "");
8352 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8355 return 0;
8357 _ACEOF
8358 if ac_fn_c_try_link "$LINENO"; then :
8359 eval "$gt_func_gnugettext_libintl=yes"
8360 else
8361 eval "$gt_func_gnugettext_libintl=no"
8363 rm -f core conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8365 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8366 LIBS="$LIBS $LIBICONV"
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8370 #include <libintl.h>
8371 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8372 extern int _nl_msg_cat_cntr;
8373 extern
8374 #ifdef __cplusplus
8376 #endif
8377 const char *_nl_expand_alias (const char *);
8378 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8379 #else
8380 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8381 #endif
8382 $gt_revision_test_code
8385 main ()
8388 bindtextdomain ("", "");
8389 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8392 return 0;
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"; then :
8396 LIBINTL="$LIBINTL $LIBICONV"
8397 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8398 eval "$gt_func_gnugettext_libintl=yes"
8401 rm -f core conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8404 CPPFLAGS="$gt_save_CPPFLAGS"
8405 LIBS="$gt_save_LIBS"
8407 eval ac_res=\$$gt_func_gnugettext_libintl
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8409 $as_echo "$ac_res" >&6; }
8412 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8413 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8414 && test "$PACKAGE" != gettext-runtime \
8415 && test "$PACKAGE" != gettext-tools; }; then
8416 gt_use_preinstalled_gnugettext=yes
8417 else
8418 LIBINTL=
8419 LTLIBINTL=
8420 INCINTL=
8425 if test -n "$INTL_MACOSX_LIBS"; then
8426 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8427 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8428 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8429 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8433 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8434 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8436 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8438 else
8439 USE_NLS=no
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8444 $as_echo_n "checking whether to use NLS... " >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8446 $as_echo "$USE_NLS" >&6; }
8447 if test "$USE_NLS" = "yes"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8449 $as_echo_n "checking where the gettext function comes from... " >&6; }
8450 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8451 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8452 gt_source="external libintl"
8453 else
8454 gt_source="libc"
8456 else
8457 gt_source="included intl directory"
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8460 $as_echo "$gt_source" >&6; }
8463 if test "$USE_NLS" = "yes"; then
8465 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8466 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8468 $as_echo_n "checking how to link with libintl... " >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8470 $as_echo "$LIBINTL" >&6; }
8472 for element in $INCINTL; do
8473 haveit=
8474 for x in $CPPFLAGS; do
8476 acl_save_prefix="$prefix"
8477 prefix="$acl_final_prefix"
8478 acl_save_exec_prefix="$exec_prefix"
8479 exec_prefix="$acl_final_exec_prefix"
8480 eval x=\"$x\"
8481 exec_prefix="$acl_save_exec_prefix"
8482 prefix="$acl_save_prefix"
8484 if test "X$x" = "X$element"; then
8485 haveit=yes
8486 break
8488 done
8489 if test -z "$haveit"; then
8490 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8492 done
8497 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8500 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8504 POSUB=po
8509 INTLLIBS="$LIBINTL"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8529 $as_echo_n "checking whether NLS is requested... " >&6; }
8530 if test x"$USE_NLS" != xyes; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8535 $as_echo "yes" >&6; }
8537 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8541 $as_echo_n "checking for catalogs to be installed... " >&6; }
8542 # Look for .po and .gmo files in the source directory.
8543 CATALOGS=
8544 XLINGUAS=
8545 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8546 # If there aren't any .gmo files the shell will give us the
8547 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8548 # weeded out.
8549 case "$cat" in *\**)
8550 continue;;
8551 esac
8552 # The quadruple backslash is collapsed to a double backslash
8553 # by the backticks, then collapsed again by the double quotes,
8554 # leaving us with one backslash in the sed expression (right
8555 # before the dot that mustn't act as a wildcard).
8556 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8557 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8558 # The user is allowed to set LINGUAS to a list of languages to
8559 # install catalogs for. If it's empty that means "all of them."
8560 if test "x$LINGUAS" = x; then
8561 CATALOGS="$CATALOGS $cat"
8562 XLINGUAS="$XLINGUAS $lang"
8563 else
8564 case "$LINGUAS" in *$lang*)
8565 CATALOGS="$CATALOGS $cat"
8566 XLINGUAS="$XLINGUAS $lang"
8568 esac
8570 done
8571 LINGUAS="$XLINGUAS"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8573 $as_echo "$LINGUAS" >&6; }
8576 DATADIRNAME=share
8578 INSTOBJEXT=.mo
8580 GENCAT=gencat
8582 CATOBJEXT=.gmo
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
8587 $as_echo_n "checking for uchar... " >&6; }
8588 if ${gcc_cv_type_uchar+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8594 #include <sys/types.h>
8597 main ()
8599 if ((uchar *)0) return 0;
8600 if (sizeof(uchar)) return 0;
8602 return 0;
8604 _ACEOF
8605 if ac_fn_c_try_compile "$LINENO"; then :
8606 ac_cv_type_uchar=yes
8607 else
8608 ac_cv_type_uchar=no
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
8613 $as_echo "$gcc_cv_type_uchar" >&6; }
8614 if test $ac_cv_type_uchar = yes; then
8616 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
8620 # The cast to long int works around a bug in the HP C Compiler
8621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8623 # This bug is HP SR number 8606223364.
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
8625 $as_echo_n "checking size of ino_t... " >&6; }
8626 if ${ac_cv_sizeof_ino_t+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
8631 else
8632 if test "$ac_cv_type_ino_t" = yes; then
8633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8635 as_fn_error 77 "cannot compute sizeof (ino_t)
8636 See \`config.log' for more details" "$LINENO" 5; }
8637 else
8638 ac_cv_sizeof_ino_t=0
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
8644 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
8648 cat >>confdefs.h <<_ACEOF
8649 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
8650 _ACEOF
8653 # The cast to long int works around a bug in the HP C Compiler
8654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8656 # This bug is HP SR number 8606223364.
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
8658 $as_echo_n "checking size of dev_t... " >&6; }
8659 if ${ac_cv_sizeof_dev_t+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
8664 else
8665 if test "$ac_cv_type_dev_t" = yes; then
8666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8668 as_fn_error 77 "cannot compute sizeof (dev_t)
8669 See \`config.log' for more details" "$LINENO" 5; }
8670 else
8671 ac_cv_sizeof_dev_t=0
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
8677 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
8681 cat >>confdefs.h <<_ACEOF
8682 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
8683 _ACEOF
8687 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
8688 # iconv() prototype.
8689 ac_ext=cpp
8690 ac_cpp='$CXXCPP $CPPFLAGS'
8691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8700 am_save_CPPFLAGS="$CPPFLAGS"
8702 for element in $INCICONV; do
8703 haveit=
8704 for x in $CPPFLAGS; do
8706 acl_save_prefix="$prefix"
8707 prefix="$acl_final_prefix"
8708 acl_save_exec_prefix="$exec_prefix"
8709 exec_prefix="$acl_final_exec_prefix"
8710 eval x=\"$x\"
8711 exec_prefix="$acl_save_exec_prefix"
8712 prefix="$acl_save_prefix"
8714 if test "X$x" = "X$element"; then
8715 haveit=yes
8716 break
8718 done
8719 if test -z "$haveit"; then
8720 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8722 done
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8726 $as_echo_n "checking for iconv... " >&6; }
8727 if ${am_cv_func_iconv+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8731 am_cv_func_iconv="no, consider installing GNU libiconv"
8732 am_cv_lib_iconv=no
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8736 #include <stdlib.h>
8737 #include <iconv.h>
8740 main ()
8742 iconv_t cd = iconv_open("","");
8743 iconv(cd,NULL,NULL,NULL,NULL);
8744 iconv_close(cd);
8746 return 0;
8748 _ACEOF
8749 if ac_fn_cxx_try_link "$LINENO"; then :
8750 am_cv_func_iconv=yes
8752 rm -f core conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext conftest.$ac_ext
8754 if test "$am_cv_func_iconv" != yes; then
8755 am_save_LIBS="$LIBS"
8756 LIBS="$LIBS $LIBICONV"
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8760 #include <stdlib.h>
8761 #include <iconv.h>
8764 main ()
8766 iconv_t cd = iconv_open("","");
8767 iconv(cd,NULL,NULL,NULL,NULL);
8768 iconv_close(cd);
8770 return 0;
8772 _ACEOF
8773 if ac_fn_cxx_try_link "$LINENO"; then :
8774 am_cv_lib_iconv=yes
8775 am_cv_func_iconv=yes
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LIBS="$am_save_LIBS"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8784 $as_echo "$am_cv_func_iconv" >&6; }
8785 if test "$am_cv_func_iconv" = yes; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8787 $as_echo_n "checking for working iconv... " >&6; }
8788 if ${am_cv_func_iconv_works+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8792 am_save_LIBS="$LIBS"
8793 if test $am_cv_lib_iconv = yes; then
8794 LIBS="$LIBS $LIBICONV"
8796 am_cv_func_iconv_works=no
8797 for ac_iconv_const in '' 'const'; do
8798 if test "$cross_compiling" = yes; then :
8799 case "$host_os" in
8800 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8801 *) am_cv_func_iconv_works="guessing yes" ;;
8802 esac
8803 else
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8807 #include <iconv.h>
8808 #include <string.h>
8810 #ifndef ICONV_CONST
8811 # define ICONV_CONST $ac_iconv_const
8812 #endif
8815 main ()
8817 int result = 0;
8818 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8819 successful returns. This is even documented in
8820 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8822 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8823 if (cd_utf8_to_88591 != (iconv_t)(-1))
8825 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8826 char buf[10];
8827 ICONV_CONST char *inptr = input;
8828 size_t inbytesleft = strlen (input);
8829 char *outptr = buf;
8830 size_t outbytesleft = sizeof (buf);
8831 size_t res = iconv (cd_utf8_to_88591,
8832 &inptr, &inbytesleft,
8833 &outptr, &outbytesleft);
8834 if (res == 0)
8835 result |= 1;
8836 iconv_close (cd_utf8_to_88591);
8839 /* Test against Solaris 10 bug: Failures are not distinguishable from
8840 successful returns. */
8842 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8843 if (cd_ascii_to_88591 != (iconv_t)(-1))
8845 static ICONV_CONST char input[] = "\263";
8846 char buf[10];
8847 ICONV_CONST char *inptr = input;
8848 size_t inbytesleft = strlen (input);
8849 char *outptr = buf;
8850 size_t outbytesleft = sizeof (buf);
8851 size_t res = iconv (cd_ascii_to_88591,
8852 &inptr, &inbytesleft,
8853 &outptr, &outbytesleft);
8854 if (res == 0)
8855 result |= 2;
8856 iconv_close (cd_ascii_to_88591);
8859 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8861 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8862 if (cd_88591_to_utf8 != (iconv_t)(-1))
8864 static ICONV_CONST char input[] = "\304";
8865 static char buf[2] = { (char)0xDE, (char)0xAD };
8866 ICONV_CONST char *inptr = input;
8867 size_t inbytesleft = 1;
8868 char *outptr = buf;
8869 size_t outbytesleft = 1;
8870 size_t res = iconv (cd_88591_to_utf8,
8871 &inptr, &inbytesleft,
8872 &outptr, &outbytesleft);
8873 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8874 result |= 4;
8875 iconv_close (cd_88591_to_utf8);
8878 #if 0 /* This bug could be worked around by the caller. */
8879 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8881 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8882 if (cd_88591_to_utf8 != (iconv_t)(-1))
8884 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8885 char buf[50];
8886 ICONV_CONST char *inptr = input;
8887 size_t inbytesleft = strlen (input);
8888 char *outptr = buf;
8889 size_t outbytesleft = sizeof (buf);
8890 size_t res = iconv (cd_88591_to_utf8,
8891 &inptr, &inbytesleft,
8892 &outptr, &outbytesleft);
8893 if ((int)res > 0)
8894 result |= 8;
8895 iconv_close (cd_88591_to_utf8);
8898 #endif
8899 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8900 provided. */
8902 /* Try standardized names. */
8903 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8904 /* Try IRIX, OSF/1 names. */
8905 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8906 /* Try AIX names. */
8907 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8908 /* Try HP-UX names. */
8909 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8910 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8911 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8912 result |= 16;
8913 if (cd1 != (iconv_t)(-1))
8914 iconv_close (cd1);
8915 if (cd2 != (iconv_t)(-1))
8916 iconv_close (cd2);
8917 if (cd3 != (iconv_t)(-1))
8918 iconv_close (cd3);
8919 if (cd4 != (iconv_t)(-1))
8920 iconv_close (cd4);
8922 return result;
8925 return 0;
8927 _ACEOF
8928 if ac_fn_cxx_try_run "$LINENO"; then :
8929 am_cv_func_iconv_works=yes
8931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8932 conftest.$ac_objext conftest.beam conftest.$ac_ext
8935 test "$am_cv_func_iconv_works" = no || break
8936 done
8937 LIBS="$am_save_LIBS"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8941 $as_echo "$am_cv_func_iconv_works" >&6; }
8942 case "$am_cv_func_iconv_works" in
8943 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8944 *) am_func_iconv=yes ;;
8945 esac
8946 else
8947 am_func_iconv=no am_cv_lib_iconv=no
8949 if test "$am_func_iconv" = yes; then
8951 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8954 if test "$am_cv_lib_iconv" = yes; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8956 $as_echo_n "checking how to link with libiconv... " >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8958 $as_echo "$LIBICONV" >&6; }
8959 else
8960 CPPFLAGS="$am_save_CPPFLAGS"
8961 LIBICONV=
8962 LTLIBICONV=
8967 if test "$am_cv_func_iconv" = yes; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
8969 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
8970 if ${gl_cv_iconv_nonconst+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8976 #include <stdlib.h>
8977 #include <iconv.h>
8978 extern
8979 #ifdef __cplusplus
8981 #endif
8982 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8985 main ()
8989 return 0;
8991 _ACEOF
8992 if ac_fn_cxx_try_compile "$LINENO"; then :
8993 gl_cv_iconv_nonconst=yes
8994 else
8995 gl_cv_iconv_nonconst=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
9001 $as_echo "$gl_cv_iconv_nonconst" >&6; }
9002 else
9003 gl_cv_iconv_nonconst=yes
9005 if test $gl_cv_iconv_nonconst = yes; then
9006 iconv_arg1=""
9007 else
9008 iconv_arg1="const"
9011 cat >>confdefs.h <<_ACEOF
9012 #define ICONV_CONST $iconv_arg1
9013 _ACEOF
9017 if test "$am_func_iconv" = yes; then
9018 if test -n "$LIBICONV"; then
9019 am_cv_func_iconv_summary='yes, in libiconv'
9020 else
9021 am_cv_func_iconv_summary='yes, in libc'
9023 else
9024 if test "$am_cv_func_iconv" = yes; then
9025 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
9026 else
9027 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
9031 ac_ext=c
9032 ac_cpp='$CPP $CPPFLAGS'
9033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9038 # More defines and substitutions.
9039 PACKAGE="$PACKAGE_TARNAME"
9041 cat >>confdefs.h <<_ACEOF
9042 #define PACKAGE "$PACKAGE"
9043 _ACEOF
9047 if test "x$enable_nls" != xno; then
9048 USED_CATALOGS='$(CATALOGS)'
9049 else
9050 USED_CATALOGS=
9054 # Check whether --enable-maintainer-mode was given.
9055 if test "${enable_maintainer_mode+set}" = set; then :
9056 enableval=$enable_maintainer_mode;
9057 else
9058 enable_maintainer_mode=no
9062 if test "x$enable_maintainer_mode" = xno; then
9063 MAINT='#'
9064 else
9065 MAINT=
9069 # Enable expensive internal checks
9070 is_release=
9071 if test -f $srcdir/../gcc/DEV-PHASE \
9072 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
9073 is_release=yes
9076 # Check whether --enable-checking was given.
9077 if test "${enable_checking+set}" = set; then :
9078 enableval=$enable_checking; ac_checking_flags="${enableval}"
9079 else
9081 # Determine the default checks.
9082 if test x$is_release = x ; then
9083 ac_checking_flags=yes
9084 else
9085 ac_checking_flags=release
9089 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
9090 for check in release $ac_checking_flags
9092 case $check in
9093 # these set all the flags to specific states
9094 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
9095 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
9096 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
9097 # these enable particular checks
9098 assert) ac_assert_checking=1 ;;
9099 misc) ac_checking=1 ;;
9100 valgrind) ac_valgrind_checking=1 ;;
9101 # accept
9102 *) ;;
9103 esac
9104 done
9105 IFS="$ac_save_IFS"
9107 if test x$ac_checking != x ; then
9109 $as_echo "#define CHECKING_P 1" >>confdefs.h
9111 else
9112 $as_echo "#define CHECKING_P 0" >>confdefs.h
9116 if test x$ac_assert_checking != x ; then
9118 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
9122 # Check whether --enable-canonical-system-headers was given.
9123 if test "${enable_canonical_system_headers+set}" = set; then :
9124 enableval=$enable_canonical_system_headers;
9125 else
9126 enable_canonical_system_headers=yes
9129 if test $enable_canonical_system_headers != no; then
9131 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
9135 case $target in
9136 i?86-* | x86_64-*)
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9141 main ()
9143 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
9145 return 0;
9147 _ACEOF
9148 if ac_fn_c_try_compile "$LINENO"; then :
9150 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 esac
9156 # Enable --enable-host-shared.
9157 # Check whether --enable-host-shared was given.
9158 if test "${enable_host_shared+set}" = set; then :
9159 enableval=$enable_host_shared;
9164 # Enable --enable-host-pie.
9165 # Check whether --enable-host-pie was given.
9166 if test "${enable_host_pie+set}" = set; then :
9167 enableval=$enable_host_pie;
9172 if test x$enable_host_shared = xyes; then
9173 PICFLAG=-fPIC
9174 elif test x$enable_host_pie = xyes; then
9175 PICFLAG=-fPIE
9176 else
9177 PICFLAG=
9182 # Enable Intel CET on Intel CET enabled host if jit is enabled.
9183 # Check whether --enable-cet was given.
9184 if test "${enable_cet+set}" = set; then :
9185 enableval=$enable_cet;
9186 case "$enableval" in
9187 yes|no|auto) ;;
9188 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
9189 esac
9191 else
9192 enable_cet=auto
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
9197 $as_echo_n "checking for CET support... " >&6; }
9199 case "$host" in
9200 i[34567]86-*-linux* | x86_64-*-linux*)
9201 may_have_cet=yes
9202 cet_save_CFLAGS="$CFLAGS"
9203 CFLAGS="$CFLAGS -fcf-protection"
9204 case "$enable_cet" in
9205 auto)
9206 # Check if target supports multi-byte NOPs
9207 # and if compiler and assembler support CET.
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9212 main ()
9215 #if !defined(__SSE2__)
9216 #error target does not support multi-byte NOPs
9217 #else
9218 asm ("setssbsy");
9219 #endif
9222 return 0;
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"; then :
9226 enable_cet=yes
9227 else
9228 enable_cet=no
9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 yes)
9233 # Check if compiler and assembler support CET.
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9238 main ()
9240 asm ("setssbsy");
9242 return 0;
9244 _ACEOF
9245 if ac_fn_c_try_compile "$LINENO"; then :
9246 support_cet=yes
9247 else
9248 support_cet=no
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 if test $support_cet = "no"; then
9252 if test x$enable_bootstrap != xno \
9253 && test -z "${with_build_subdir}" \
9254 && (test ! -f ../stage_current \
9255 || test `cat ../stage_current` != "stage1"); then
9256 # Require CET support only for the final GCC build.
9257 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
9258 else
9259 # Don't enable CET without CET support for non-bootstrap
9260 # build, in stage1 nor for build support.
9261 enable_cet=no
9265 esac
9266 CFLAGS="$cet_save_CFLAGS"
9269 may_have_cet=no
9270 enable_cet=no
9272 esac
9274 cet_save_CFLAGS="$CFLAGS"
9275 CFLAGS="$CFLAGS -fcf-protection=none"
9276 cet_save_LDFLAGS="$LDFLAGS"
9277 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
9278 if test x$may_have_cet = xyes; then
9279 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9284 main ()
9286 return 0;
9288 return 0;
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 may_have_cet=yes
9293 else
9294 may_have_cet=no
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9300 if test x$may_have_cet = xyes; then
9301 if test x$cross_compiling = xno; then
9302 if test "$cross_compiling" = yes; then :
9303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9305 as_fn_error $? "cannot run test program while cross compiling
9306 See \`config.log' for more details" "$LINENO" 5; }
9307 else
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9312 main ()
9314 asm ("endbr32");
9315 return 0;
9318 _ACEOF
9319 if ac_fn_c_try_run "$LINENO"; then :
9320 have_multi_byte_nop=yes
9321 else
9322 have_multi_byte_nop=no
9324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9325 conftest.$ac_objext conftest.beam conftest.$ac_ext
9328 have_cet=no
9329 if test x$have_multi_byte_nop = xyes; then
9330 if test "$cross_compiling" = yes; then :
9331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9333 as_fn_error $? "cannot run test program while cross compiling
9334 See \`config.log' for more details" "$LINENO" 5; }
9335 else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9339 static void
9340 foo (void)
9344 static void
9345 __attribute__ ((noinline, noclone))
9346 xxx (void (*f) (void))
9348 f ();
9351 static void
9352 __attribute__ ((noinline, noclone))
9353 bar (void)
9355 xxx (foo);
9359 main ()
9361 bar ();
9362 return 0;
9365 _ACEOF
9366 if ac_fn_c_try_run "$LINENO"; then :
9367 have_cet=no
9368 else
9369 have_cet=yes
9371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9372 conftest.$ac_objext conftest.beam conftest.$ac_ext
9376 if test x$enable_cet = xno -a x$have_cet = xyes; then
9377 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
9380 else
9381 # Enable CET in cross compiler if possible so that it will run on both
9382 # CET and non-CET hosts.
9383 have_cet=yes
9385 if test x$enable_cet = xyes; then
9386 CET_HOST_FLAGS="-fcf-protection"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9388 $as_echo "yes" >&6; }
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9393 CFLAGS="$cet_save_CFLAGS"
9394 LDFLAGS="$cet_save_LDFLAGS"
9396 case x$enable_languages in
9397 *jit*)
9400 CET_HOST_FLAGS=
9402 esac
9405 # Check whether --enable-valgrind-annotations was given.
9406 if test "${enable_valgrind_annotations+set}" = set; then :
9407 enableval=$enable_valgrind_annotations;
9408 else
9409 enable_valgrind_annotations=no
9412 if test x$enable_valgrind_annotations != xno \
9413 || test x$ac_valgrind_checking != x; then
9415 $as_echo "#define ENABLE_VALGRIND_WORKAROUNDS 1" >>confdefs.h
9419 # Output.
9421 ac_config_headers="$ac_config_headers config.h:config.in"
9423 ac_config_files="$ac_config_files Makefile"
9425 cat >confcache <<\_ACEOF
9426 # This file is a shell script that caches the results of configure
9427 # tests run on this system so they can be shared between configure
9428 # scripts and configure runs, see configure's option --config-cache.
9429 # It is not useful on other systems. If it contains results you don't
9430 # want to keep, you may remove or edit it.
9432 # config.status only pays attention to the cache file if you give it
9433 # the --recheck option to rerun configure.
9435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9437 # following values.
9439 _ACEOF
9441 # The following way of writing the cache mishandles newlines in values,
9442 # but we know of no workaround that is simple, portable, and efficient.
9443 # So, we kill variables containing newlines.
9444 # Ultrix sh set writes to stderr and can't be redirected directly,
9445 # and sets the high bit in the cache file unless we assign to the vars.
9447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9448 eval ac_val=\$$ac_var
9449 case $ac_val in #(
9450 *${as_nl}*)
9451 case $ac_var in #(
9452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9454 esac
9455 case $ac_var in #(
9456 _ | IFS | as_nl) ;; #(
9457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9458 *) { eval $ac_var=; unset $ac_var;} ;;
9459 esac ;;
9460 esac
9461 done
9463 (set) 2>&1 |
9464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9465 *${as_nl}ac_space=\ *)
9466 # `set' does not quote correctly, so add quotes: double-quote
9467 # substitution turns \\\\ into \\, and sed turns \\ into \.
9468 sed -n \
9469 "s/'/'\\\\''/g;
9470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9471 ;; #(
9473 # `set' quotes correctly as required by POSIX, so do not add quotes.
9474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9476 esac |
9477 sort
9479 sed '
9480 /^ac_cv_env_/b end
9481 t clear
9482 :clear
9483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9484 t end
9485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9486 :end' >>confcache
9487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9488 if test -w "$cache_file"; then
9489 if test "x$cache_file" != "x/dev/null"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9491 $as_echo "$as_me: updating cache $cache_file" >&6;}
9492 if test ! -f "$cache_file" || test -h "$cache_file"; then
9493 cat confcache >"$cache_file"
9494 else
9495 case $cache_file in #(
9496 */* | ?:*)
9497 mv -f confcache "$cache_file"$$ &&
9498 mv -f "$cache_file"$$ "$cache_file" ;; #(
9500 mv -f confcache "$cache_file" ;;
9501 esac
9504 else
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9506 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9509 rm -f confcache
9511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9512 # Let make expand exec_prefix.
9513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9515 DEFS=-DHAVE_CONFIG_H
9517 ac_libobjs=
9518 ac_ltlibobjs=
9520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9521 # 1. Remove the extension, and $U if already installed.
9522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9523 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9525 # will be set to the directory where LIBOBJS objects are built.
9526 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9527 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9528 done
9529 LIBOBJS=$ac_libobjs
9531 LTLIBOBJS=$ac_ltlibobjs
9536 : "${CONFIG_STATUS=./config.status}"
9537 ac_write_fail=0
9538 ac_clean_files_save=$ac_clean_files
9539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9541 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9542 as_write_fail=0
9543 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9544 #! $SHELL
9545 # Generated by $as_me.
9546 # Run this file to recreate the current configuration.
9547 # Compiler output produced by configure, useful for debugging
9548 # configure, is in config.log if it exists.
9550 debug=false
9551 ac_cs_recheck=false
9552 ac_cs_silent=false
9554 SHELL=\${CONFIG_SHELL-$SHELL}
9555 export SHELL
9556 _ASEOF
9557 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9558 ## -------------------- ##
9559 ## M4sh Initialization. ##
9560 ## -------------------- ##
9562 # Be more Bourne compatible
9563 DUALCASE=1; export DUALCASE # for MKS sh
9564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9565 emulate sh
9566 NULLCMD=:
9567 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9568 # is contrary to our usage. Disable this feature.
9569 alias -g '${1+"$@"}'='"$@"'
9570 setopt NO_GLOB_SUBST
9571 else
9572 case `(set -o) 2>/dev/null` in #(
9573 *posix*) :
9574 set -o posix ;; #(
9575 *) :
9577 esac
9581 as_nl='
9583 export as_nl
9584 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9585 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9588 # Prefer a ksh shell builtin over an external printf program on Solaris,
9589 # but without wasting forks for bash or zsh.
9590 if test -z "$BASH_VERSION$ZSH_VERSION" \
9591 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9592 as_echo='print -r --'
9593 as_echo_n='print -rn --'
9594 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9595 as_echo='printf %s\n'
9596 as_echo_n='printf %s'
9597 else
9598 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9599 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9600 as_echo_n='/usr/ucb/echo -n'
9601 else
9602 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9603 as_echo_n_body='eval
9604 arg=$1;
9605 case $arg in #(
9606 *"$as_nl"*)
9607 expr "X$arg" : "X\\(.*\\)$as_nl";
9608 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9609 esac;
9610 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9612 export as_echo_n_body
9613 as_echo_n='sh -c $as_echo_n_body as_echo'
9615 export as_echo_body
9616 as_echo='sh -c $as_echo_body as_echo'
9619 # The user is always right.
9620 if test "${PATH_SEPARATOR+set}" != set; then
9621 PATH_SEPARATOR=:
9622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9623 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9624 PATH_SEPARATOR=';'
9629 # IFS
9630 # We need space, tab and new line, in precisely that order. Quoting is
9631 # there to prevent editors from complaining about space-tab.
9632 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9633 # splitting by setting IFS to empty value.)
9634 IFS=" "" $as_nl"
9636 # Find who we are. Look in the path if we contain no directory separator.
9637 as_myself=
9638 case $0 in #((
9639 *[\\/]* ) as_myself=$0 ;;
9640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9646 done
9647 IFS=$as_save_IFS
9650 esac
9651 # We did not find ourselves, most probably we were run as `sh COMMAND'
9652 # in which case we are not to be found in the path.
9653 if test "x$as_myself" = x; then
9654 as_myself=$0
9656 if test ! -f "$as_myself"; then
9657 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9658 exit 1
9661 # Unset variables that we do not need and which cause bugs (e.g. in
9662 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9663 # suppresses any "Segmentation fault" message there. '((' could
9664 # trigger a bug in pdksh 5.2.14.
9665 for as_var in BASH_ENV ENV MAIL MAILPATH
9666 do eval test x\${$as_var+set} = xset \
9667 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9668 done
9669 PS1='$ '
9670 PS2='> '
9671 PS4='+ '
9673 # NLS nuisances.
9674 LC_ALL=C
9675 export LC_ALL
9676 LANGUAGE=C
9677 export LANGUAGE
9679 # CDPATH.
9680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9683 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9684 # ----------------------------------------
9685 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9686 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9687 # script with STATUS, using 1 if that was 0.
9688 as_fn_error ()
9690 as_status=$1; test $as_status -eq 0 && as_status=1
9691 if test "$4"; then
9692 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9693 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9695 $as_echo "$as_me: error: $2" >&2
9696 as_fn_exit $as_status
9697 } # as_fn_error
9700 # as_fn_set_status STATUS
9701 # -----------------------
9702 # Set $? to STATUS, without forking.
9703 as_fn_set_status ()
9705 return $1
9706 } # as_fn_set_status
9708 # as_fn_exit STATUS
9709 # -----------------
9710 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9711 as_fn_exit ()
9713 set +e
9714 as_fn_set_status $1
9715 exit $1
9716 } # as_fn_exit
9718 # as_fn_unset VAR
9719 # ---------------
9720 # Portably unset VAR.
9721 as_fn_unset ()
9723 { eval $1=; unset $1;}
9725 as_unset=as_fn_unset
9726 # as_fn_append VAR VALUE
9727 # ----------------------
9728 # Append the text in VALUE to the end of the definition contained in VAR. Take
9729 # advantage of any shell optimizations that allow amortized linear growth over
9730 # repeated appends, instead of the typical quadratic growth present in naive
9731 # implementations.
9732 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9733 eval 'as_fn_append ()
9735 eval $1+=\$2
9737 else
9738 as_fn_append ()
9740 eval $1=\$$1\$2
9742 fi # as_fn_append
9744 # as_fn_arith ARG...
9745 # ------------------
9746 # Perform arithmetic evaluation on the ARGs, and store the result in the
9747 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9748 # must be portable across $(()) and expr.
9749 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9750 eval 'as_fn_arith ()
9752 as_val=$(( $* ))
9754 else
9755 as_fn_arith ()
9757 as_val=`expr "$@" || test $? -eq 1`
9759 fi # as_fn_arith
9762 if expr a : '\(a\)' >/dev/null 2>&1 &&
9763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9764 as_expr=expr
9765 else
9766 as_expr=false
9769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9770 as_basename=basename
9771 else
9772 as_basename=false
9775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9776 as_dirname=dirname
9777 else
9778 as_dirname=false
9781 as_me=`$as_basename -- "$0" ||
9782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9783 X"$0" : 'X\(//\)$' \| \
9784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9785 $as_echo X/"$0" |
9786 sed '/^.*\/\([^/][^/]*\)\/*$/{
9787 s//\1/
9790 /^X\/\(\/\/\)$/{
9791 s//\1/
9794 /^X\/\(\/\).*/{
9795 s//\1/
9798 s/.*/./; q'`
9800 # Avoid depending upon Character Ranges.
9801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9804 as_cr_digits='0123456789'
9805 as_cr_alnum=$as_cr_Letters$as_cr_digits
9807 ECHO_C= ECHO_N= ECHO_T=
9808 case `echo -n x` in #(((((
9809 -n*)
9810 case `echo 'xy\c'` in
9811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9812 xy) ECHO_C='\c';;
9813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9814 ECHO_T=' ';;
9815 esac;;
9817 ECHO_N='-n';;
9818 esac
9820 rm -f conf$$ conf$$.exe conf$$.file
9821 if test -d conf$$.dir; then
9822 rm -f conf$$.dir/conf$$.file
9823 else
9824 rm -f conf$$.dir
9825 mkdir conf$$.dir 2>/dev/null
9827 if (echo >conf$$.file) 2>/dev/null; then
9828 if ln -s conf$$.file conf$$ 2>/dev/null; then
9829 as_ln_s='ln -s'
9830 # ... but there are two gotchas:
9831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9833 # In both cases, we have to default to `cp -pR'.
9834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9835 as_ln_s='cp -pR'
9836 elif ln conf$$.file conf$$ 2>/dev/null; then
9837 as_ln_s=ln
9838 else
9839 as_ln_s='cp -pR'
9841 else
9842 as_ln_s='cp -pR'
9844 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9845 rmdir conf$$.dir 2>/dev/null
9848 # as_fn_mkdir_p
9849 # -------------
9850 # Create "$as_dir" as a directory, including parents if necessary.
9851 as_fn_mkdir_p ()
9854 case $as_dir in #(
9855 -*) as_dir=./$as_dir;;
9856 esac
9857 test -d "$as_dir" || eval $as_mkdir_p || {
9858 as_dirs=
9859 while :; do
9860 case $as_dir in #(
9861 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9862 *) as_qdir=$as_dir;;
9863 esac
9864 as_dirs="'$as_qdir' $as_dirs"
9865 as_dir=`$as_dirname -- "$as_dir" ||
9866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9867 X"$as_dir" : 'X\(//\)[^/]' \| \
9868 X"$as_dir" : 'X\(//\)$' \| \
9869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9870 $as_echo X"$as_dir" |
9871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9872 s//\1/
9875 /^X\(\/\/\)[^/].*/{
9876 s//\1/
9879 /^X\(\/\/\)$/{
9880 s//\1/
9883 /^X\(\/\).*/{
9884 s//\1/
9887 s/.*/./; q'`
9888 test -d "$as_dir" && break
9889 done
9890 test -z "$as_dirs" || eval "mkdir $as_dirs"
9891 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9894 } # as_fn_mkdir_p
9895 if mkdir -p . 2>/dev/null; then
9896 as_mkdir_p='mkdir -p "$as_dir"'
9897 else
9898 test -d ./-p && rmdir ./-p
9899 as_mkdir_p=false
9903 # as_fn_executable_p FILE
9904 # -----------------------
9905 # Test if FILE is an executable regular file.
9906 as_fn_executable_p ()
9908 test -f "$1" && test -x "$1"
9909 } # as_fn_executable_p
9910 as_test_x='test -x'
9911 as_executable_p=as_fn_executable_p
9913 # Sed expression to map a string onto a valid CPP name.
9914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9916 # Sed expression to map a string onto a valid variable name.
9917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9920 exec 6>&1
9921 ## ----------------------------------- ##
9922 ## Main body of $CONFIG_STATUS script. ##
9923 ## ----------------------------------- ##
9924 _ASEOF
9925 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9928 # Save the log message, to keep $0 and so on meaningful, and to
9929 # report actual input values of CONFIG_FILES etc. instead of their
9930 # values after options handling.
9931 ac_log="
9932 This file was extended by cpplib $as_me , which was
9933 generated by GNU Autoconf 2.69. Invocation command line was
9935 CONFIG_FILES = $CONFIG_FILES
9936 CONFIG_HEADERS = $CONFIG_HEADERS
9937 CONFIG_LINKS = $CONFIG_LINKS
9938 CONFIG_COMMANDS = $CONFIG_COMMANDS
9939 $ $0 $@
9941 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9944 _ACEOF
9946 case $ac_config_files in *"
9947 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9948 esac
9950 case $ac_config_headers in *"
9951 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9952 esac
9955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9956 # Files that config.status was made for.
9957 config_files="$ac_config_files"
9958 config_headers="$ac_config_headers"
9959 config_commands="$ac_config_commands"
9961 _ACEOF
9963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9964 ac_cs_usage="\
9965 \`$as_me' instantiates files and other configuration actions
9966 from templates according to the current configuration. Unless the files
9967 and actions are specified as TAGs, all are instantiated by default.
9969 Usage: $0 [OPTION]... [TAG]...
9971 -h, --help print this help, then exit
9972 -V, --version print version number and configuration settings, then exit
9973 --config print configuration, then exit
9974 -q, --quiet, --silent
9975 do not print progress messages
9976 -d, --debug don't remove temporary files
9977 --recheck update $as_me by reconfiguring in the same conditions
9978 --file=FILE[:TEMPLATE]
9979 instantiate the configuration file FILE
9980 --header=FILE[:TEMPLATE]
9981 instantiate the configuration header FILE
9983 Configuration files:
9984 $config_files
9986 Configuration headers:
9987 $config_headers
9989 Configuration commands:
9990 $config_commands
9992 Report bugs to <gcc-bugs@gcc.gnu.org>."
9994 _ACEOF
9995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9996 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9997 ac_cs_version="\\
9998 cpplib config.status
9999 configured by $0, generated by GNU Autoconf 2.69,
10000 with options \\"\$ac_cs_config\\"
10002 Copyright (C) 2012 Free Software Foundation, Inc.
10003 This config.status script is free software; the Free Software Foundation
10004 gives unlimited permission to copy, distribute and modify it."
10006 ac_pwd='$ac_pwd'
10007 srcdir='$srcdir'
10008 INSTALL='$INSTALL'
10009 test -n "\$AWK" || AWK=awk
10010 _ACEOF
10012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10013 # The default lists apply if the user does not specify any file.
10014 ac_need_defaults=:
10015 while test $# != 0
10017 case $1 in
10018 --*=?*)
10019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10020 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10021 ac_shift=:
10023 --*=)
10024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10025 ac_optarg=
10026 ac_shift=:
10029 ac_option=$1
10030 ac_optarg=$2
10031 ac_shift=shift
10033 esac
10035 case $ac_option in
10036 # Handling of the options.
10037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10038 ac_cs_recheck=: ;;
10039 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10040 $as_echo "$ac_cs_version"; exit ;;
10041 --config | --confi | --conf | --con | --co | --c )
10042 $as_echo "$ac_cs_config"; exit ;;
10043 --debug | --debu | --deb | --de | --d | -d )
10044 debug=: ;;
10045 --file | --fil | --fi | --f )
10046 $ac_shift
10047 case $ac_optarg in
10048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10049 '') as_fn_error $? "missing file argument" ;;
10050 esac
10051 as_fn_append CONFIG_FILES " '$ac_optarg'"
10052 ac_need_defaults=false;;
10053 --header | --heade | --head | --hea )
10054 $ac_shift
10055 case $ac_optarg in
10056 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10057 esac
10058 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10059 ac_need_defaults=false;;
10060 --he | --h)
10061 # Conflict between --help and --header
10062 as_fn_error $? "ambiguous option: \`$1'
10063 Try \`$0 --help' for more information.";;
10064 --help | --hel | -h )
10065 $as_echo "$ac_cs_usage"; exit ;;
10066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10068 ac_cs_silent=: ;;
10070 # This is an error.
10071 -*) as_fn_error $? "unrecognized option: \`$1'
10072 Try \`$0 --help' for more information." ;;
10074 *) as_fn_append ac_config_targets " $1"
10075 ac_need_defaults=false ;;
10077 esac
10078 shift
10079 done
10081 ac_configure_extra_args=
10083 if $ac_cs_silent; then
10084 exec 6>/dev/null
10085 ac_configure_extra_args="$ac_configure_extra_args --silent"
10088 _ACEOF
10089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10090 if \$ac_cs_recheck; then
10091 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10092 shift
10093 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10094 CONFIG_SHELL='$SHELL'
10095 export CONFIG_SHELL
10096 exec "\$@"
10099 _ACEOF
10100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10101 exec 5>>config.log
10103 echo
10104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10105 ## Running $as_me. ##
10106 _ASBOX
10107 $as_echo "$ac_log"
10108 } >&5
10110 _ACEOF
10111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10113 # INIT-COMMANDS
10115 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
10116 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10117 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10118 # from automake.
10119 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10120 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10121 LINGUAS="${LINGUAS-%UNSET%}"
10124 _ACEOF
10126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10128 # Handling of arguments.
10129 for ac_config_target in $ac_config_targets
10131 case $ac_config_target in
10132 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
10133 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10134 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10135 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10137 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10138 esac
10139 done
10142 # If the user did not use the arguments to specify the items to instantiate,
10143 # then the envvar interface is used. Set only those that are not.
10144 # We use the long form for the default assignment because of an extremely
10145 # bizarre bug on SunOS 4.1.3.
10146 if $ac_need_defaults; then
10147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10152 # Have a temporary directory for convenience. Make it in the build tree
10153 # simply because there is no reason against having it here, and in addition,
10154 # creating and moving files from /tmp can sometimes cause problems.
10155 # Hook for its removal unless debugging.
10156 # Note that there is a small window in which the directory will not be cleaned:
10157 # after its creation but before its name has been assigned to `$tmp'.
10158 $debug ||
10160 tmp= ac_tmp=
10161 trap 'exit_status=$?
10162 : "${ac_tmp:=$tmp}"
10163 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10165 trap 'as_fn_exit 1' 1 2 13 15
10167 # Create a (secure) tmp directory for tmp files.
10170 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10171 test -d "$tmp"
10172 } ||
10174 tmp=./conf$$-$RANDOM
10175 (umask 077 && mkdir "$tmp")
10176 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10177 ac_tmp=$tmp
10179 # Set up the scripts for CONFIG_FILES section.
10180 # No need to generate them if there are no CONFIG_FILES.
10181 # This happens for instance with `./config.status config.h'.
10182 if test -n "$CONFIG_FILES"; then
10185 ac_cr=`echo X | tr X '\015'`
10186 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10187 # But we know of no other shell where ac_cr would be empty at this
10188 # point, so we can use a bashism as a fallback.
10189 if test "x$ac_cr" = x; then
10190 eval ac_cr=\$\'\\r\'
10192 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10193 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10194 ac_cs_awk_cr='\\r'
10195 else
10196 ac_cs_awk_cr=$ac_cr
10199 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10200 _ACEOF
10204 echo "cat >conf$$subs.awk <<_ACEOF" &&
10205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10206 echo "_ACEOF"
10207 } >conf$$subs.sh ||
10208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10210 ac_delim='%!_!# '
10211 for ac_last_try in false false false false false :; do
10212 . ./conf$$subs.sh ||
10213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10216 if test $ac_delim_n = $ac_delim_num; then
10217 break
10218 elif $ac_last_try; then
10219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10220 else
10221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10223 done
10224 rm -f conf$$subs.sh
10226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10227 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10228 _ACEOF
10229 sed -n '
10231 s/^/S["/; s/!.*/"]=/
10234 s/^[^!]*!//
10235 :repl
10236 t repl
10237 s/'"$ac_delim"'$//
10238 t delim
10241 s/\(.\{148\}\)..*/\1/
10242 t more1
10243 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10246 b repl
10247 :more1
10248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10251 s/.\{148\}//
10252 t nl
10253 :delim
10255 s/\(.\{148\}\)..*/\1/
10256 t more2
10257 s/["\\]/\\&/g; s/^/"/; s/$/"/
10260 :more2
10261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10264 s/.\{148\}//
10265 t delim
10266 ' <conf$$subs.awk | sed '
10267 /^[^""]/{
10269 s/\n//
10271 ' >>$CONFIG_STATUS || ac_write_fail=1
10272 rm -f conf$$subs.awk
10273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10274 _ACAWK
10275 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10276 for (key in S) S_is_set[key] = 1
10277 FS = "\a"
10281 line = $ 0
10282 nfields = split(line, field, "@")
10283 substed = 0
10284 len = length(field[1])
10285 for (i = 2; i < nfields; i++) {
10286 key = field[i]
10287 keylen = length(key)
10288 if (S_is_set[key]) {
10289 value = S[key]
10290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10291 len += length(value) + length(field[++i])
10292 substed = 1
10293 } else
10294 len += 1 + keylen
10297 print line
10300 _ACAWK
10301 _ACEOF
10302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10303 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10304 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10305 else
10307 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10308 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10309 _ACEOF
10311 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10312 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10313 # trailing colons and then remove the whole line if VPATH becomes empty
10314 # (actually we leave an empty line to preserve line numbers).
10315 if test "x$srcdir" = x.; then
10316 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10318 s///
10319 s/^/:/
10320 s/[ ]*$/:/
10321 s/:\$(srcdir):/:/g
10322 s/:\${srcdir}:/:/g
10323 s/:@srcdir@:/:/g
10324 s/^:*//
10325 s/:*$//
10327 s/\(=[ ]*\).*/\1/
10329 s/\n//
10330 s/^[^=]*=[ ]*$//
10334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10335 fi # test -n "$CONFIG_FILES"
10337 # Set up the scripts for CONFIG_HEADERS section.
10338 # No need to generate them if there are no CONFIG_HEADERS.
10339 # This happens for instance with `./config.status Makefile'.
10340 if test -n "$CONFIG_HEADERS"; then
10341 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10342 BEGIN {
10343 _ACEOF
10345 # Transform confdefs.h into an awk script `defines.awk', embedded as
10346 # here-document in config.status, that substitutes the proper values into
10347 # config.h.in to produce config.h.
10349 # Create a delimiter string that does not exist in confdefs.h, to ease
10350 # handling of long lines.
10351 ac_delim='%!_!# '
10352 for ac_last_try in false false :; do
10353 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10354 if test -z "$ac_tt"; then
10355 break
10356 elif $ac_last_try; then
10357 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10358 else
10359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10361 done
10363 # For the awk script, D is an array of macro values keyed by name,
10364 # likewise P contains macro parameters if any. Preserve backslash
10365 # newline sequences.
10367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10368 sed -n '
10369 s/.\{148\}/&'"$ac_delim"'/g
10370 t rset
10371 :rset
10372 s/^[ ]*#[ ]*define[ ][ ]*/ /
10373 t def
10375 :def
10376 s/\\$//
10377 t bsnl
10378 s/["\\]/\\&/g
10379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10380 D["\1"]=" \3"/p
10381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10383 :bsnl
10384 s/["\\]/\\&/g
10385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10386 D["\1"]=" \3\\\\\\n"\\/p
10387 t cont
10388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10389 t cont
10391 :cont
10393 s/.\{148\}/&'"$ac_delim"'/g
10394 t clear
10395 :clear
10396 s/\\$//
10397 t bsnlc
10398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10400 :bsnlc
10401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10402 b cont
10403 ' <confdefs.h | sed '
10404 s/'"$ac_delim"'/"\\\
10405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10408 for (key in D) D_is_set[key] = 1
10409 FS = "\a"
10411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10412 line = \$ 0
10413 split(line, arg, " ")
10414 if (arg[1] == "#") {
10415 defundef = arg[2]
10416 mac1 = arg[3]
10417 } else {
10418 defundef = substr(arg[1], 2)
10419 mac1 = arg[2]
10421 split(mac1, mac2, "(") #)
10422 macro = mac2[1]
10423 prefix = substr(line, 1, index(line, defundef) - 1)
10424 if (D_is_set[macro]) {
10425 # Preserve the white space surrounding the "#".
10426 print prefix "define", macro P[macro] D[macro]
10427 next
10428 } else {
10429 # Replace #undef with comments. This is necessary, for example,
10430 # in the case of _POSIX_SOURCE, which is predefined and required
10431 # on some systems where configure will not decide to define it.
10432 if (defundef == "undef") {
10433 print "/*", prefix defundef, macro, "*/"
10434 next
10438 { print }
10439 _ACAWK
10440 _ACEOF
10441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10442 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10443 fi # test -n "$CONFIG_HEADERS"
10446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10447 shift
10448 for ac_tag
10450 case $ac_tag in
10451 :[FHLC]) ac_mode=$ac_tag; continue;;
10452 esac
10453 case $ac_mode$ac_tag in
10454 :[FHL]*:*);;
10455 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10456 :[FH]-) ac_tag=-:-;;
10457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10458 esac
10459 ac_save_IFS=$IFS
10460 IFS=:
10461 set x $ac_tag
10462 IFS=$ac_save_IFS
10463 shift
10464 ac_file=$1
10465 shift
10467 case $ac_mode in
10468 :L) ac_source=$1;;
10469 :[FH])
10470 ac_file_inputs=
10471 for ac_f
10473 case $ac_f in
10474 -) ac_f="$ac_tmp/stdin";;
10475 *) # Look for the file first in the build tree, then in the source tree
10476 # (if the path is not absolute). The absolute path cannot be DOS-style,
10477 # because $ac_f cannot contain `:'.
10478 test -f "$ac_f" ||
10479 case $ac_f in
10480 [\\/$]*) false;;
10481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10482 esac ||
10483 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10484 esac
10485 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10486 as_fn_append ac_file_inputs " '$ac_f'"
10487 done
10489 # Let's still pretend it is `configure' which instantiates (i.e., don't
10490 # use $as_me), people would be surprised to read:
10491 # /* config.h. Generated by config.status. */
10492 configure_input='Generated from '`
10493 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10494 `' by configure.'
10495 if test x"$ac_file" != x-; then
10496 configure_input="$ac_file. $configure_input"
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10498 $as_echo "$as_me: creating $ac_file" >&6;}
10500 # Neutralize special characters interpreted by sed in replacement strings.
10501 case $configure_input in #(
10502 *\&* | *\|* | *\\* )
10503 ac_sed_conf_input=`$as_echo "$configure_input" |
10504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10505 *) ac_sed_conf_input=$configure_input;;
10506 esac
10508 case $ac_tag in
10509 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10511 esac
10513 esac
10515 ac_dir=`$as_dirname -- "$ac_file" ||
10516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10517 X"$ac_file" : 'X\(//\)[^/]' \| \
10518 X"$ac_file" : 'X\(//\)$' \| \
10519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10520 $as_echo X"$ac_file" |
10521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10522 s//\1/
10525 /^X\(\/\/\)[^/].*/{
10526 s//\1/
10529 /^X\(\/\/\)$/{
10530 s//\1/
10533 /^X\(\/\).*/{
10534 s//\1/
10537 s/.*/./; q'`
10538 as_dir="$ac_dir"; as_fn_mkdir_p
10539 ac_builddir=.
10541 case "$ac_dir" in
10542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10545 # A ".." for each directory in $ac_dir_suffix.
10546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10547 case $ac_top_builddir_sub in
10548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10550 esac ;;
10551 esac
10552 ac_abs_top_builddir=$ac_pwd
10553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10554 # for backward compatibility:
10555 ac_top_builddir=$ac_top_build_prefix
10557 case $srcdir in
10558 .) # We are building in place.
10559 ac_srcdir=.
10560 ac_top_srcdir=$ac_top_builddir_sub
10561 ac_abs_top_srcdir=$ac_pwd ;;
10562 [\\/]* | ?:[\\/]* ) # Absolute name.
10563 ac_srcdir=$srcdir$ac_dir_suffix;
10564 ac_top_srcdir=$srcdir
10565 ac_abs_top_srcdir=$srcdir ;;
10566 *) # Relative name.
10567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10568 ac_top_srcdir=$ac_top_build_prefix$srcdir
10569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10570 esac
10571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10574 case $ac_mode in
10577 # CONFIG_FILE
10580 case $INSTALL in
10581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10583 esac
10584 _ACEOF
10586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10587 # If the template does not know about datarootdir, expand it.
10588 # FIXME: This hack should be removed a few years after 2.60.
10589 ac_datarootdir_hack=; ac_datarootdir_seen=
10590 ac_sed_dataroot='
10591 /datarootdir/ {
10595 /@datadir@/p
10596 /@docdir@/p
10597 /@infodir@/p
10598 /@localedir@/p
10599 /@mandir@/p'
10600 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10601 *datarootdir*) ac_datarootdir_seen=yes;;
10602 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10604 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10605 _ACEOF
10606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10607 ac_datarootdir_hack='
10608 s&@datadir@&$datadir&g
10609 s&@docdir@&$docdir&g
10610 s&@infodir@&$infodir&g
10611 s&@localedir@&$localedir&g
10612 s&@mandir@&$mandir&g
10613 s&\\\${datarootdir}&$datarootdir&g' ;;
10614 esac
10615 _ACEOF
10617 # Neutralize VPATH when `$srcdir' = `.'.
10618 # Shell code in configure.ac might set extrasub.
10619 # FIXME: do we really want to maintain this feature?
10620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10621 ac_sed_extra="$ac_vpsub
10622 $extrasub
10623 _ACEOF
10624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10627 s|@configure_input@|$ac_sed_conf_input|;t t
10628 s&@top_builddir@&$ac_top_builddir_sub&;t t
10629 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10630 s&@srcdir@&$ac_srcdir&;t t
10631 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10632 s&@top_srcdir@&$ac_top_srcdir&;t t
10633 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10634 s&@builddir@&$ac_builddir&;t t
10635 s&@abs_builddir@&$ac_abs_builddir&;t t
10636 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10637 s&@INSTALL@&$ac_INSTALL&;t t
10638 $ac_datarootdir_hack
10640 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10641 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10644 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10646 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10648 which seems to be undefined. Please make sure it is defined" >&5
10649 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10650 which seems to be undefined. Please make sure it is defined" >&2;}
10652 rm -f "$ac_tmp/stdin"
10653 case $ac_file in
10654 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10655 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10656 esac \
10657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10661 # CONFIG_HEADER
10663 if test x"$ac_file" != x-; then
10665 $as_echo "/* $configure_input */" \
10666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10667 } >"$ac_tmp/config.h" \
10668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10669 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10671 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10672 else
10673 rm -f "$ac_file"
10674 mv "$ac_tmp/config.h" "$ac_file" \
10675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10677 else
10678 $as_echo "/* $configure_input */" \
10679 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10680 || as_fn_error $? "could not create -" "$LINENO" 5
10684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10685 $as_echo "$as_me: executing $ac_file commands" >&6;}
10687 esac
10690 case $ac_file$ac_mode in
10691 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
10692 "default-1":C)
10693 for ac_file in $CONFIG_FILES; do
10694 # Support "outfile[:infile[:infile...]]"
10695 case "$ac_file" in
10696 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10697 esac
10698 # PO directories have a Makefile.in generated from Makefile.in.in.
10699 case "$ac_file" in */Makefile.in)
10700 # Adjust a relative srcdir.
10701 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10702 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10703 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10704 # In autoconf-2.13 it is called $ac_given_srcdir.
10705 # In autoconf-2.50 it is called $srcdir.
10706 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10707 case "$ac_given_srcdir" in
10708 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10709 /*) top_srcdir="$ac_given_srcdir" ;;
10710 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10711 esac
10712 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10713 rm -f "$ac_dir/POTFILES"
10714 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10715 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10716 POMAKEFILEDEPS="POTFILES.in"
10717 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10718 # on $ac_dir but don't depend on user-specified configuration
10719 # parameters.
10720 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10721 # The LINGUAS file contains the set of available languages.
10722 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10723 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
10725 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10726 # Hide the ALL_LINGUAS assigment from automake.
10727 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10728 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10729 else
10730 # The set of available languages was given in configure.ac.
10731 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10733 case "$ac_given_srcdir" in
10734 .) srcdirpre= ;;
10735 *) srcdirpre='$(srcdir)/' ;;
10736 esac
10737 POFILES=
10738 GMOFILES=
10739 UPDATEPOFILES=
10740 DUMMYPOFILES=
10741 for lang in $ALL_LINGUAS; do
10742 POFILES="$POFILES $srcdirpre$lang.po"
10743 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10744 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10745 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10746 done
10747 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10748 # environment variable.
10749 INST_LINGUAS=
10750 if test -n "$ALL_LINGUAS"; then
10751 for presentlang in $ALL_LINGUAS; do
10752 useit=no
10753 if test "%UNSET%" != "$LINGUAS"; then
10754 desiredlanguages="$LINGUAS"
10755 else
10756 desiredlanguages="$ALL_LINGUAS"
10758 for desiredlang in $desiredlanguages; do
10759 # Use the presentlang catalog if desiredlang is
10760 # a. equal to presentlang, or
10761 # b. a variant of presentlang (because in this case,
10762 # presentlang can be used as a fallback for messages
10763 # which are not translated in the desiredlang catalog).
10764 case "$desiredlang" in
10765 "$presentlang"*) useit=yes;;
10766 esac
10767 done
10768 if test $useit = yes; then
10769 INST_LINGUAS="$INST_LINGUAS $presentlang"
10771 done
10773 CATALOGS=
10774 if test -n "$INST_LINGUAS"; then
10775 for lang in $INST_LINGUAS; do
10776 CATALOGS="$CATALOGS $lang.gmo"
10777 done
10779 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10780 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10781 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10782 if test -f "$f"; then
10783 case "$f" in
10784 *.orig | *.bak | *~) ;;
10785 *) cat "$f" >> "$ac_dir/Makefile" ;;
10786 esac
10788 done
10791 esac
10792 done ;;
10793 "config.h":H) echo timestamp > stamp-h1 ;;
10795 esac
10796 done # for ac_tag
10799 as_fn_exit 0
10800 _ACEOF
10801 ac_clean_files=$ac_clean_files_save
10803 test $ac_write_fail = 0 ||
10804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10807 # configure is writing to config.log, and then calls config.status.
10808 # config.status does its own redirection, appending to config.log.
10809 # Unfortunately, on DOS this fails, as config.log is still kept open
10810 # by configure, so config.status won't be able to write to it; its
10811 # output is simply discarded. So we exec the FD to /dev/null,
10812 # effectively closing config.log, so it can be properly (re)opened and
10813 # appended to by config.status. When coming back to configure, we
10814 # need to make the FD available again.
10815 if test "$no_create" != yes; then
10816 ac_cs_success=:
10817 ac_config_status_args=
10818 test "$silent" = yes &&
10819 ac_config_status_args="$ac_config_status_args --quiet"
10820 exec 5>/dev/null
10821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10822 exec 5>>config.log
10823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10824 # would make configure fail if this is the last instruction.
10825 $ac_cs_success || as_fn_exit 1
10827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10829 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}