Remove duplicated definition in risc-v vector support.
[official-gcc.git] / intl / configure
blob03f40487a92b98bcf62711eb69e38c793264266f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_unique_file="gettext.c"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 PICFLAG
626 BISON3_NO
627 BISON3_YES
628 INCINTL
629 LIBINTL_DEP
630 MKID
631 ETAGS
632 CTAGS
633 MAINT
634 AUTOHEADER
635 AUTOCONF
636 ACLOCAL
637 POSUB
638 LTLIBINTL
639 LIBINTL
640 INTLLIBS
641 INTL_LIBTOOL_SUFFIX_PREFIX
642 INTLOBJS
643 GENCAT
644 INSTOBJEXT
645 DATADIRNAME
646 CATOBJEXT
647 USE_INCLUDED_LIBINTL
648 BUILD_INCLUDED_LIBINTL
649 INTLBISON
650 LTLIBICONV
651 LIBICONV
652 GLIBC21
653 ALLOCA
654 RANLIB
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 MSGMERGE
664 XGETTEXT
665 GMSGFMT
666 MSGFMT
667 USE_NLS
668 MKINSTALLDIRS
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 SET_MAKE
673 EGREP
674 GREP
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 target_alias
684 host_alias
685 build_alias
686 LIBS
687 ECHO_T
688 ECHO_N
689 ECHO_C
690 DEFS
691 mandir
692 localedir
693 libdir
694 psdir
695 pdfdir
696 dvidir
697 htmldir
698 infodir
699 docdir
700 oldincludedir
701 includedir
702 localstatedir
703 sharedstatedir
704 sysconfdir
705 datadir
706 datarootdir
707 libexecdir
708 sbindir
709 bindir
710 program_transform_name
711 prefix
712 exec_prefix
713 PACKAGE_URL
714 PACKAGE_BUGREPORT
715 PACKAGE_STRING
716 PACKAGE_VERSION
717 PACKAGE_TARNAME
718 PACKAGE_NAME
719 PATH_SEPARATOR
720 SHELL'
721 ac_subst_files=''
722 ac_user_opts='
723 enable_option_checking
724 enable_nls
725 with_gnu_ld
726 enable_rpath
727 with_libiconv_prefix
728 with_libiconv_type
729 with_included_gettext
730 with_libintl_prefix
731 with_libintl_type
732 enable_maintainer_mode
733 enable_host_shared
735 ac_precious_vars='build_alias
736 host_alias
737 target_alias
739 CFLAGS
740 LDFLAGS
741 LIBS
742 CPPFLAGS
743 CPP'
746 # Initialize some variables set by options.
747 ac_init_help=
748 ac_init_version=false
749 ac_unrecognized_opts=
750 ac_unrecognized_sep=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
794 ac_prev=
795 ac_dashdash=
796 for ac_option
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
805 case $ac_option in
806 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *=) ac_optarg= ;;
808 *) ac_optarg=yes ;;
809 esac
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
815 ac_dashdash=yes ;;
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
834 --config-cache | -C)
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
849 -disable-* | --disable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=no ;;
865 -docdir | --docdir | --docdi | --doc | --do)
866 ac_prev=docdir ;;
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 docdir=$ac_optarg ;;
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 ac_prev=dvidir ;;
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 dvidir=$ac_optarg ;;
875 -enable-* | --enable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=\$ac_optarg ;;
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
902 with_gas=yes ;;
904 -help | --help | --hel | --he | -h)
905 ac_init_help=long ;;
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 ac_prev=htmldir ;;
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 | --ht=*)
920 htmldir=$ac_optarg ;;
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 ac_prev=infodir ;;
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
935 ac_prev=libdir ;;
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 libdir=$ac_optarg ;;
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
947 ac_prev=localedir ;;
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 ac_prev=mandir ;;
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961 mandir=$ac_optarg ;;
963 -nfp | --nfp | --nf)
964 # Obsolete; use --without-fp.
965 with_fp=no ;;
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
969 no_create=yes ;;
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 no_recursion=yes ;;
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 ac_prev=prefix ;;
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 prefix=$ac_optarg ;;
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 ac_prev=pdfdir ;;
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1026 ac_prev=psdir ;;
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 psdir=$ac_optarg ;;
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 silent=yes ;;
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035 ac_prev=sbindir ;;
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037 | --sbi=* | --sb=*)
1038 sbindir=$ac_optarg ;;
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1043 | --sha | --sh)
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048 | --sha=* | --sh=*)
1049 sharedstatedir=$ac_optarg ;;
1051 -site | --site | --sit)
1052 ac_prev=site ;;
1053 -site=* | --site=* | --sit=*)
1054 site=$ac_optarg ;;
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057 ac_prev=srcdir ;;
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074 verbose=yes ;;
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1079 -with-* | --with-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid package name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "with_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval with_$ac_useropt=\$ac_optarg ;;
1095 -without-* | --without-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=no ;;
1111 --x)
1112 # Obsolete; use --with-x.
1113 with_x=yes ;;
1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116 | --x-incl | --x-inc | --x-in | --x-i)
1117 ac_prev=x_includes ;;
1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120 x_includes=$ac_optarg ;;
1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124 ac_prev=x_libraries ;;
1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127 x_libraries=$ac_optarg ;;
1129 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 Try \`$0 --help' for more information"
1133 *=*)
1134 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135 # Reject names that are not valid shell variable names.
1136 case $ac_envvar in #(
1137 '' | [0-9]* | *[!_$as_cr_alnum]* )
1138 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139 esac
1140 eval $ac_envvar=\$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1151 esac
1152 done
1154 if test -n "$ac_prev"; then
1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 as_fn_error $? "missing argument to $ac_option"
1159 if test -n "$ac_unrecognized_opts"; then
1160 case $enable_option_checking in
1161 no) ;;
1162 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164 esac
1167 # Check all directory arguments for consistency.
1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val=\$$ac_var
1174 # Remove trailing slashes.
1175 case $ac_val in
1176 */ )
1177 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178 eval $ac_var=\$ac_val;;
1179 esac
1180 # Be sure to have absolute directory names.
1181 case $ac_val in
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 esac
1185 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186 done
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 elif test "x$build_alias" != "x$host_alias"; then
1200 cross_compiling=yes
1204 ac_tool_prefix=
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 test "$silent" = yes && exec 6>/dev/null
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 as_fn_error $? "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 as_fn_error $? "pwd does not report name of working directory"
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1225 X"$as_myself" : 'X\(//\)$' \| \
1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 s//\1/
1232 /^X\(\/\/\)[^/].*/{
1233 s//\1/
1236 /^X\(\/\/\)$/{
1237 s//\1/
1240 /^X\(\/\).*/{
1241 s//\1/
1244 s/.*/./; q'`
1245 srcdir=$ac_confdir
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 srcdir=..
1249 else
1250 ac_srcdir_defaulted=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1259 pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 srcdir=.
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1283 cat <<_ACEOF
1284 \`configure' configures this package to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1293 Configuration:
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking ...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 [PREFIX]
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1337 _ACEOF
1339 cat <<\_ACEOF
1341 System types:
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 _ACEOF
1347 if test -n "$ac_init_help"; then
1349 cat <<\_ACEOF
1351 Optional Features:
1352 --disable-option-checking ignore unrecognized --enable/--with options
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --disable-nls do not use Native Language Support
1356 --disable-rpath do not hardcode runtime library paths
1357 --enable-maintainer-mode enable rules only needed by maintainers
1358 --enable-host-shared build host code as shared libraries
1360 Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-gnu-ld assume the C compiler uses GNU ld default=no
1364 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1365 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1366 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1367 --with-included-gettext use the GNU gettext library included here
1368 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1369 --without-libintl-prefix don't search for libintl in includedir and libdir
1370 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1372 Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1380 CPP C preprocessor
1382 Use these variables to override the choices made by `configure' or to help
1383 it to find libraries and programs with nonstandard names/locations.
1385 Report bugs to the package provider.
1386 _ACEOF
1387 ac_status=$?
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" ||
1394 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395 continue
1396 ac_builddir=.
1398 case "$ac_dir" in
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408 esac
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1414 case $srcdir in
1415 .) # We are building in place.
1416 ac_srcdir=.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 esac
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1438 else
1439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1442 done
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1447 cat <<\_ACEOF
1448 configure
1449 generated by GNU Autoconf 2.69
1451 Copyright (C) 2012 Free Software Foundation, Inc.
1452 This configure script is free software; the Free Software Foundation
1453 gives unlimited permission to copy, distribute and modify it.
1454 _ACEOF
1455 exit
1458 ## ------------------------ ##
1459 ## Autoconf initialization. ##
1460 ## ------------------------ ##
1462 # ac_fn_c_try_compile LINENO
1463 # --------------------------
1464 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1465 ac_fn_c_try_compile ()
1467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468 rm -f conftest.$ac_objext
1469 if { { ac_try="$ac_compile"
1470 case "(($ac_try" in
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1473 esac
1474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475 $as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_compile") 2>conftest.err
1477 ac_status=$?
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } && {
1485 test -z "$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1487 } && test -s conftest.$ac_objext; then :
1488 ac_retval=0
1489 else
1490 $as_echo "$as_me: failed program was:" >&5
1491 sed 's/^/| /' conftest.$ac_ext >&5
1493 ac_retval=1
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1498 } # ac_fn_c_try_compile
1500 # ac_fn_c_try_cpp LINENO
1501 # ----------------------
1502 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_cpp ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 if { { ac_try="$ac_cpp conftest.$ac_ext"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } > conftest.i && {
1522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 }; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1530 ac_retval=1
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1535 } # ac_fn_c_try_cpp
1537 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1538 # -------------------------------------------------------
1539 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1540 # the include files in INCLUDES and setting the cache variable VAR
1541 # accordingly.
1542 ac_fn_c_check_header_mongrel ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if eval \${$3+:} false; then :
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547 $as_echo_n "checking for $2... " >&6; }
1548 if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1551 eval ac_res=\$$3
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553 $as_echo "$ac_res" >&6; }
1554 else
1555 # Is the header compilable?
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1557 $as_echo_n "checking $2 usability... " >&6; }
1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559 /* end confdefs.h. */
1561 #include <$2>
1562 _ACEOF
1563 if ac_fn_c_try_compile "$LINENO"; then :
1564 ac_header_compiler=yes
1565 else
1566 ac_header_compiler=no
1568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1570 $as_echo "$ac_header_compiler" >&6; }
1572 # Is the header present?
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1574 $as_echo_n "checking $2 presence... " >&6; }
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1577 #include <$2>
1578 _ACEOF
1579 if ac_fn_c_try_cpp "$LINENO"; then :
1580 ac_header_preproc=yes
1581 else
1582 ac_header_preproc=no
1584 rm -f conftest.err conftest.i conftest.$ac_ext
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1586 $as_echo "$ac_header_preproc" >&6; }
1588 # So? What about this header?
1589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1590 yes:no: )
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1592 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1596 no:yes:* )
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1598 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1600 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1602 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1604 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1606 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1608 esac
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1613 else
1614 eval "$3=\$ac_header_compiler"
1616 eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 } # ac_fn_c_check_header_mongrel
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1628 ac_fn_c_try_run ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>&5
1639 ac_status=$?
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642 { { case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_try") 2>&5
1649 ac_status=$?
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; }; }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: program exited with status $ac_status" >&5
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=$ac_status
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1664 } # ac_fn_c_try_run
1666 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667 # -------------------------------------------------------
1668 # Tests whether HEADER exists and can be compiled using the include files in
1669 # INCLUDES, setting the cache variable VAR accordingly.
1670 ac_fn_c_check_header_compile ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1681 #include <$2>
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684 eval "$3=yes"
1685 else
1686 eval "$3=no"
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 } # ac_fn_c_check_header_compile
1697 # ac_fn_c_try_link LINENO
1698 # -----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_link ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext conftest$ac_exeext
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest$ac_exeext && {
1723 test "$cross_compiling" = yes ||
1724 test -x conftest$ac_exeext
1725 }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=1
1733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1735 # interfere with the next link command; also delete a directory that is
1736 # left behind by Apple's compiler. We do this before executing the actions.
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1741 } # ac_fn_c_try_link
1743 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1744 # -------------------------------------------
1745 # Tests whether TYPE exists after having included INCLUDES, setting cache
1746 # variable VAR accordingly.
1747 ac_fn_c_check_type ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 eval "$3=no"
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1760 main ()
1762 if (sizeof ($2))
1763 return 0;
1765 return 0;
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1773 main ()
1775 if (sizeof (($2)))
1776 return 0;
1778 return 0;
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1783 else
1784 eval "$3=yes"
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_type
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1819 #ifdef __STDC__
1820 # include <limits.h>
1821 #else
1822 # include <assert.h>
1823 #endif
1825 #undef $2
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1830 #ifdef __cplusplus
1831 extern "C"
1832 #endif
1833 char $2 ();
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1838 choke me
1839 #endif
1842 main ()
1844 return $2 ();
1846 return 0;
1848 _ACEOF
1849 if ac_fn_c_try_link "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_func
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1867 It was created by $as_me, which was
1868 generated by GNU Autoconf 2.69. Invocation command line was
1870 $ $0 $@
1872 _ACEOF
1873 exec 5>>config.log
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897 _ASUNAME
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1908 } >&5
1910 cat >&5 <<_ACEOF
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1917 _ACEOF
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1931 for ac_arg
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1960 as_fn_append ac_configure_args " '$ac_arg'"
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1976 echo
1978 $as_echo "## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##"
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
1999 (set) 2>&1 |
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2002 sed -n \
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 esac |
2010 sort
2012 echo
2014 $as_echo "## ----------------- ##
2015 ## Output variables. ##
2016 ## ----------------- ##"
2017 echo
2018 for ac_var in $ac_subst_vars
2020 eval ac_val=\$$ac_var
2021 case $ac_val in
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023 esac
2024 $as_echo "$ac_var='\''$ac_val'\''"
2025 done | sort
2026 echo
2028 if test -n "$ac_subst_files"; then
2029 $as_echo "## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##"
2032 echo
2033 for ac_var in $ac_subst_files
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2044 if test -s confdefs.h; then
2045 $as_echo "## ----------- ##
2046 ## confdefs.h. ##
2047 ## ----------- ##"
2048 echo
2049 cat confdefs.h
2050 echo
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2055 } >&5
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 exit $exit_status
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 done
2063 ac_signal=0
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2068 $as_echo "/* confdefs.h */" > confdefs.h
2070 # Predefined preprocessor variables.
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 _ACEOF
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2094 _ACEOF
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 ac_site_file1=NONE
2100 ac_site_file2=NONE
2101 if test -n "$CONFIG_SITE"; then
2102 # We do not want a PATH search for config.site.
2103 case $CONFIG_SITE in #((
2104 -*) ac_site_file1=./$CONFIG_SITE;;
2105 */*) ac_site_file1=$CONFIG_SITE;;
2106 *) ac_site_file1=./$CONFIG_SITE;;
2107 esac
2108 elif test "x$prefix" != xNONE; then
2109 ac_site_file1=$prefix/share/config.site
2110 ac_site_file2=$prefix/etc/config.site
2111 else
2112 ac_site_file1=$ac_default_prefix/share/config.site
2113 ac_site_file2=$ac_default_prefix/etc/config.site
2115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 test "x$ac_site_file" = xNONE && continue
2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2121 sed 's/^/| /' "$ac_site_file" >&5
2122 . "$ac_site_file" \
2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5; }
2128 done
2130 if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special files
2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135 $as_echo "$as_me: loading cache $cache_file" >&6;}
2136 case $cache_file in
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2139 esac
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143 $as_echo "$as_me: creating cache $cache_file" >&6;}
2144 >$cache_file
2147 as_fn_append ac_header_list " stdlib.h"
2148 as_fn_append ac_header_list " unistd.h"
2149 as_fn_append ac_header_list " sys/param.h"
2150 # Check that the precious variables saved in the cache have kept the same
2151 # value.
2152 ac_cache_corrupted=false
2153 for ac_var in $ac_precious_vars; do
2154 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2155 eval ac_new_set=\$ac_env_${ac_var}_set
2156 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2157 eval ac_new_val=\$ac_env_${ac_var}_value
2158 case $ac_old_set,$ac_new_set in
2159 set,)
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2161 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2162 ac_cache_corrupted=: ;;
2163 ,set)
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2167 ,);;
2169 if test "x$ac_old_val" != "x$ac_new_val"; then
2170 # differences in whitespace do not lead to failure.
2171 ac_old_val_w=`echo x $ac_old_val`
2172 ac_new_val_w=`echo x $ac_new_val`
2173 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2175 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2176 ac_cache_corrupted=:
2177 else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2179 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2180 eval $ac_var=\$ac_old_val
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2183 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2185 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2186 fi;;
2187 esac
2188 # Pass precious variables to config.status.
2189 if test "$ac_new_set" = set; then
2190 case $ac_new_val in
2191 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 *) ac_arg=$ac_var=$ac_new_val ;;
2193 esac
2194 case " $ac_configure_args " in
2195 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2196 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2197 esac
2199 done
2200 if $ac_cache_corrupted; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2204 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2205 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207 ## -------------------- ##
2208 ## Main body of script. ##
2209 ## -------------------- ##
2211 ac_ext=c
2212 ac_cpp='$CPP $CPPFLAGS'
2213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2230 $as_echo_n "checking for $ac_word... " >&6; }
2231 if ${ac_cv_prog_CC+:} false; then :
2232 $as_echo_n "(cached) " >&6
2233 else
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 break 2
2248 done
2249 done
2250 IFS=$as_save_IFS
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2257 $as_echo "$CC" >&6; }
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2260 $as_echo "no" >&6; }
2265 if test -z "$ac_cv_prog_CC"; then
2266 ac_ct_CC=$CC
2267 # Extract the first word of "gcc", so it can be a program name with args.
2268 set dummy gcc; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_ac_ct_CC="gcc"
2285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2288 done
2289 done
2290 IFS=$as_save_IFS
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2297 $as_echo "$ac_ct_CC" >&6; }
2298 else
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300 $as_echo "no" >&6; }
2303 if test "x$ac_ct_CC" = x; then
2304 CC=""
2305 else
2306 case $cross_compiling:$ac_tool_warned in
2307 yes:)
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2310 ac_tool_warned=yes ;;
2311 esac
2312 CC=$ac_ct_CC
2314 else
2315 CC="$ac_cv_prog_CC"
2318 if test -z "$CC"; then
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}cc; ac_word=$2
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if ${ac_cv_prog_CC+:} false; then :
2325 $as_echo_n "(cached) " >&6
2326 else
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337 ac_cv_prog_CC="${ac_tool_prefix}cc"
2338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2341 done
2342 done
2343 IFS=$as_save_IFS
2347 CC=$ac_cv_prog_CC
2348 if test -n "$CC"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2350 $as_echo "$CC" >&6; }
2351 else
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2353 $as_echo "no" >&6; }
2359 if test -z "$CC"; then
2360 # Extract the first word of "cc", so it can be a program name with args.
2361 set dummy cc; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_CC+:} false; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 ac_prog_rejected=no
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2379 ac_prog_rejected=yes
2380 continue
2382 ac_cv_prog_CC="cc"
2383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2386 done
2387 done
2388 IFS=$as_save_IFS
2390 if test $ac_prog_rejected = yes; then
2391 # We found a bogon in the path, so make sure we never use it.
2392 set dummy $ac_cv_prog_CC
2393 shift
2394 if test $# != 0; then
2395 # We chose a different compiler from the bogus one.
2396 # However, it has the same basename, so the bogon will be chosen
2397 # first if we set CC to just the basename; use the full file name.
2398 shift
2399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2407 $as_echo "$CC" >&6; }
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2415 if test -z "$CC"; then
2416 if test -n "$ac_tool_prefix"; then
2417 for ac_prog in cl.exe
2419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2422 $as_echo_n "checking for $ac_word... " >&6; }
2423 if ${ac_cv_prog_CC+:} false; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2440 done
2441 done
2442 IFS=$as_save_IFS
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2456 test -n "$CC" && break
2457 done
2459 if test -z "$CC"; then
2460 ac_ct_CC=$CC
2461 for ac_prog in cl.exe
2463 # Extract the first word of "$ac_prog", so it can be a program name with args.
2464 set dummy $ac_prog; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480 ac_cv_prog_ac_ct_CC="$ac_prog"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2484 done
2485 done
2486 IFS=$as_save_IFS
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2493 $as_echo "$ac_ct_CC" >&6; }
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2500 test -n "$ac_ct_CC" && break
2501 done
2503 if test "x$ac_ct_CC" = x; then
2504 CC=""
2505 else
2506 case $cross_compiling:$ac_tool_warned in
2507 yes:)
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512 CC=$ac_ct_CC
2519 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 as_fn_error $? "no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details" "$LINENO" 5; }
2524 # Provide some information about the compiler.
2525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2526 set X $ac_compile
2527 ac_compiler=$2
2528 for ac_option in --version -v -V -qversion; do
2529 { { ac_try="$ac_compiler $ac_option >&5"
2530 case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2537 ac_status=$?
2538 if test -s conftest.err; then
2539 sed '10a\
2540 ... rest of stderr output deleted ...
2541 10q' conftest.err >conftest.er1
2542 cat conftest.er1 >&5
2544 rm -f conftest.er1 conftest.err
2545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2546 test $ac_status = 0; }
2547 done
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2553 main ()
2557 return 0;
2559 _ACEOF
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2564 # of exeext.
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2566 $as_echo_n "checking whether the C compiler works... " >&6; }
2567 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2569 # The possible output files:
2570 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2572 ac_rmfiles=
2573 for ac_file in $ac_files
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2578 esac
2579 done
2580 rm -f $ac_rmfiles
2582 if { { ac_try="$ac_link_default"
2583 case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_link_default") 2>&5
2590 ac_status=$?
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; }; then :
2593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2596 # so that the user can short-circuit this test for compilers unknown to
2597 # Autoconf.
2598 for ac_file in $ac_files ''
2600 test -f "$ac_file" || continue
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2604 [ab].out )
2605 # We found the default executable, but exeext='' is most
2606 # certainly right.
2607 break;;
2608 *.* )
2609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2610 then :; else
2611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2613 # We set ac_cv_exeext here because the later test for it is not
2614 # safe: cross compilers may not add the suffix if given an `-o'
2615 # argument, so we may need to know it at that point already.
2616 # Even if this section looks crufty: it has the advantage of
2617 # actually working.
2618 break;;
2620 break;;
2621 esac
2622 done
2623 test "$ac_cv_exeext" = no && ac_cv_exeext=
2625 else
2626 ac_file=''
2628 if test -z "$ac_file"; then :
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 as_fn_error 77 "C compiler cannot create executables
2637 See \`config.log' for more details" "$LINENO" 5; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2643 $as_echo_n "checking for C compiler default output file name... " >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2645 $as_echo "$ac_file" >&6; }
2646 ac_exeext=$ac_cv_exeext
2648 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2649 ac_clean_files=$ac_clean_files_save
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2651 $as_echo_n "checking for suffix of executables... " >&6; }
2652 if { { ac_try="$ac_link"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2658 $as_echo "$ac_try_echo"; } >&5
2659 (eval "$ac_link") 2>&5
2660 ac_status=$?
2661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2662 test $ac_status = 0; }; then :
2663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2666 # `rm'.
2667 for ac_file in conftest.exe conftest conftest.*; do
2668 test -f "$ac_file" || continue
2669 case $ac_file in
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2672 break;;
2673 * ) break;;
2674 esac
2675 done
2676 else
2677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2680 See \`config.log' for more details" "$LINENO" 5; }
2682 rm -f conftest conftest$ac_cv_exeext
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2684 $as_echo "$ac_cv_exeext" >&6; }
2686 rm -f conftest.$ac_ext
2687 EXEEXT=$ac_cv_exeext
2688 ac_exeext=$EXEEXT
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2691 #include <stdio.h>
2693 main ()
2695 FILE *f = fopen ("conftest.out", "w");
2696 return ferror (f) || fclose (f) != 0;
2699 return 0;
2701 _ACEOF
2702 ac_clean_files="$ac_clean_files conftest.out"
2703 # Check that the compiler produces executables we can run. If not, either
2704 # the compiler is broken, or we cross compile.
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2706 $as_echo_n "checking whether we are cross compiling... " >&6; }
2707 if test "$cross_compiling" != yes; then
2708 { { ac_try="$ac_link"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 $as_echo "$ac_try_echo"; } >&5
2715 (eval "$ac_link") 2>&5
2716 ac_status=$?
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; }
2719 if { ac_try='./conftest$ac_cv_exeext'
2720 { { case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723 esac
2724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725 $as_echo "$ac_try_echo"; } >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729 test $ac_status = 0; }; }; then
2730 cross_compiling=no
2731 else
2732 if test "$cross_compiling" = maybe; then
2733 cross_compiling=yes
2734 else
2735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 as_fn_error $? "cannot run C compiled programs.
2738 If you meant to cross compile, use \`--host'.
2739 See \`config.log' for more details" "$LINENO" 5; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2744 $as_echo "$cross_compiling" >&6; }
2746 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2747 ac_clean_files=$ac_clean_files_save
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2749 $as_echo_n "checking for suffix of object files... " >&6; }
2750 if ${ac_cv_objext+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2757 main ()
2761 return 0;
2763 _ACEOF
2764 rm -f conftest.o conftest.obj
2765 if { { ac_try="$ac_compile"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771 $as_echo "$ac_try_echo"; } >&5
2772 (eval "$ac_compile") 2>&5
2773 ac_status=$?
2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775 test $ac_status = 0; }; then :
2776 for ac_file in conftest.o conftest.obj conftest.*; do
2777 test -f "$ac_file" || continue;
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2781 break;;
2782 esac
2783 done
2784 else
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 as_fn_error $? "cannot compute suffix of object files: cannot compile
2791 See \`config.log' for more details" "$LINENO" 5; }
2793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2796 $as_echo "$ac_cv_objext" >&6; }
2797 OBJEXT=$ac_cv_objext
2798 ac_objext=$OBJEXT
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2801 if ${ac_cv_c_compiler_gnu+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2808 main ()
2810 #ifndef __GNUC__
2811 choke me
2812 #endif
2815 return 0;
2817 _ACEOF
2818 if ac_fn_c_try_compile "$LINENO"; then :
2819 ac_compiler_gnu=yes
2820 else
2821 ac_compiler_gnu=no
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2829 if test $ac_compiler_gnu = yes; then
2830 GCC=yes
2831 else
2832 GCC=
2834 ac_test_CFLAGS=${CFLAGS+set}
2835 ac_save_CFLAGS=$CFLAGS
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2838 if ${ac_cv_prog_cc_g+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 ac_save_c_werror_flag=$ac_c_werror_flag
2842 ac_c_werror_flag=yes
2843 ac_cv_prog_cc_g=no
2844 CFLAGS="-g"
2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h. */
2849 main ()
2853 return 0;
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_cv_prog_cc_g=yes
2858 else
2859 CFLAGS=""
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2864 main ()
2868 return 0;
2870 _ACEOF
2871 if ac_fn_c_try_compile "$LINENO"; then :
2873 else
2874 ac_c_werror_flag=$ac_save_c_werror_flag
2875 CFLAGS="-g"
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2880 main ()
2884 return 0;
2886 _ACEOF
2887 if ac_fn_c_try_compile "$LINENO"; then :
2888 ac_cv_prog_cc_g=yes
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 ac_c_werror_flag=$ac_save_c_werror_flag
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2898 $as_echo "$ac_cv_prog_cc_g" >&6; }
2899 if test "$ac_test_CFLAGS" = set; then
2900 CFLAGS=$ac_save_CFLAGS
2901 elif test $ac_cv_prog_cc_g = yes; then
2902 if test "$GCC" = yes; then
2903 CFLAGS="-g -O2"
2904 else
2905 CFLAGS="-g"
2907 else
2908 if test "$GCC" = yes; then
2909 CFLAGS="-O2"
2910 else
2911 CFLAGS=
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2916 if ${ac_cv_prog_cc_c89+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 ac_cv_prog_cc_c89=no
2920 ac_save_CC=$CC
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923 #include <stdarg.h>
2924 #include <stdio.h>
2925 struct stat;
2926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2927 struct buf { int x; };
2928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2929 static char *e (p, i)
2930 char **p;
2931 int i;
2933 return p[i];
2935 static char *f (char * (*g) (char **, int), char **p, ...)
2937 char *s;
2938 va_list v;
2939 va_start (v,p);
2940 s = g (p, va_arg (v,int));
2941 va_end (v);
2942 return s;
2945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2946 function prototypes and stuff, but not '\xHH' hex character constants.
2947 These don't provoke an error unfortunately, instead are silently treated
2948 as 'x'. The following induces an error, until -std is added to get
2949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2950 array size at least. It's necessary to write '\x00'==0 to get something
2951 that's true only with -std. */
2952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2955 inside strings and character constants. */
2956 #define FOO(x) 'x'
2957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2959 int test (int i, double x);
2960 struct s1 {int (*f) (int a);};
2961 struct s2 {int (*f) (double a);};
2962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2963 int argc;
2964 char **argv;
2966 main ()
2968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2970 return 0;
2972 _ACEOF
2973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2976 CC="$ac_save_CC $ac_arg"
2977 if ac_fn_c_try_compile "$LINENO"; then :
2978 ac_cv_prog_cc_c89=$ac_arg
2980 rm -f core conftest.err conftest.$ac_objext
2981 test "x$ac_cv_prog_cc_c89" != "xno" && break
2982 done
2983 rm -f conftest.$ac_ext
2984 CC=$ac_save_CC
2987 # AC_CACHE_VAL
2988 case "x$ac_cv_prog_cc_c89" in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2991 $as_echo "none needed" >&6; } ;;
2992 xno)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2994 $as_echo "unsupported" >&6; } ;;
2996 CC="$CC $ac_cv_prog_cc_c89"
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2999 esac
3000 if test "x$ac_cv_prog_cc_c89" != xno; then :
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 ac_ext=c
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3018 # On Suns, sometimes $CPP names a directory.
3019 if test -n "$CPP" && test -d "$CPP"; then
3020 CPP=
3022 if test -z "$CPP"; then
3023 if ${ac_cv_prog_CPP+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 # Double quotes because CPP needs to be expanded
3027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3029 ac_preproc_ok=false
3030 for ac_c_preproc_warn_flag in '' yes
3032 # Use a header file that comes with gcc, so configuring glibc
3033 # with a fresh cross-compiler works.
3034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3035 # <limits.h> exists even on freestanding compilers.
3036 # On the NeXT, cc -E runs the code through the compiler's parser,
3037 # not just through cpp. "Syntax error" is here to catch this case.
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3040 #ifdef __STDC__
3041 # include <limits.h>
3042 #else
3043 # include <assert.h>
3044 #endif
3045 Syntax error
3046 _ACEOF
3047 if ac_fn_c_try_cpp "$LINENO"; then :
3049 else
3050 # Broken: fails on valid input.
3051 continue
3053 rm -f conftest.err conftest.i conftest.$ac_ext
3055 # OK, works on sane cases. Now check whether nonexistent headers
3056 # can be detected and how.
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if ac_fn_c_try_cpp "$LINENO"; then :
3062 # Broken: success on invalid input.
3063 continue
3064 else
3065 # Passes both tests.
3066 ac_preproc_ok=:
3067 break
3069 rm -f conftest.err conftest.i conftest.$ac_ext
3071 done
3072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3073 rm -f conftest.i conftest.err conftest.$ac_ext
3074 if $ac_preproc_ok; then :
3075 break
3078 done
3079 ac_cv_prog_CPP=$CPP
3082 CPP=$ac_cv_prog_CPP
3083 else
3084 ac_cv_prog_CPP=$CPP
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3087 $as_echo "$CPP" >&6; }
3088 ac_preproc_ok=false
3089 for ac_c_preproc_warn_flag in '' yes
3091 # Use a header file that comes with gcc, so configuring glibc
3092 # with a fresh cross-compiler works.
3093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3094 # <limits.h> exists even on freestanding compilers.
3095 # On the NeXT, cc -E runs the code through the compiler's parser,
3096 # not just through cpp. "Syntax error" is here to catch this case.
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099 #ifdef __STDC__
3100 # include <limits.h>
3101 #else
3102 # include <assert.h>
3103 #endif
3104 Syntax error
3105 _ACEOF
3106 if ac_fn_c_try_cpp "$LINENO"; then :
3108 else
3109 # Broken: fails on valid input.
3110 continue
3112 rm -f conftest.err conftest.i conftest.$ac_ext
3114 # OK, works on sane cases. Now check whether nonexistent headers
3115 # can be detected and how.
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3118 #include <ac_nonexistent.h>
3119 _ACEOF
3120 if ac_fn_c_try_cpp "$LINENO"; then :
3121 # Broken: success on invalid input.
3122 continue
3123 else
3124 # Passes both tests.
3125 ac_preproc_ok=:
3126 break
3128 rm -f conftest.err conftest.i conftest.$ac_ext
3130 done
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.i conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then :
3135 else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3139 See \`config.log' for more details" "$LINENO" 5; }
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3151 if ${ac_cv_path_GREP+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -z "$GREP"; then
3155 ac_path_GREP_found=false
3156 # Loop through the user's path and test for each of PROGNAME-LIST
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_prog in grep ggrep; do
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3165 as_fn_executable_p "$ac_path_GREP" || continue
3166 # Check for GNU ac_path_GREP and select it if it is found.
3167 # Check for GNU $ac_path_GREP
3168 case `"$ac_path_GREP" --version 2>&1` in
3169 *GNU*)
3170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3172 ac_count=0
3173 $as_echo_n 0123456789 >"conftest.in"
3174 while :
3176 cat "conftest.in" "conftest.in" >"conftest.tmp"
3177 mv "conftest.tmp" "conftest.in"
3178 cp "conftest.in" "conftest.nl"
3179 $as_echo 'GREP' >> "conftest.nl"
3180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3182 as_fn_arith $ac_count + 1 && ac_count=$as_val
3183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3184 # Best one so far, save it but keep looking for a better one
3185 ac_cv_path_GREP="$ac_path_GREP"
3186 ac_path_GREP_max=$ac_count
3188 # 10*(2^10) chars as input seems more than enough
3189 test $ac_count -gt 10 && break
3190 done
3191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3192 esac
3194 $ac_path_GREP_found && break 3
3195 done
3196 done
3197 done
3198 IFS=$as_save_IFS
3199 if test -z "$ac_cv_path_GREP"; then
3200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3202 else
3203 ac_cv_path_GREP=$GREP
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3208 $as_echo "$ac_cv_path_GREP" >&6; }
3209 GREP="$ac_cv_path_GREP"
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3213 $as_echo_n "checking for egrep... " >&6; }
3214 if ${ac_cv_path_EGREP+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3218 then ac_cv_path_EGREP="$GREP -E"
3219 else
3220 if test -z "$EGREP"; then
3221 ac_path_EGREP_found=false
3222 # Loop through the user's path and test for each of PROGNAME-LIST
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_prog in egrep; do
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3231 as_fn_executable_p "$ac_path_EGREP" || continue
3232 # Check for GNU ac_path_EGREP and select it if it is found.
3233 # Check for GNU $ac_path_EGREP
3234 case `"$ac_path_EGREP" --version 2>&1` in
3235 *GNU*)
3236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3238 ac_count=0
3239 $as_echo_n 0123456789 >"conftest.in"
3240 while :
3242 cat "conftest.in" "conftest.in" >"conftest.tmp"
3243 mv "conftest.tmp" "conftest.in"
3244 cp "conftest.in" "conftest.nl"
3245 $as_echo 'EGREP' >> "conftest.nl"
3246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3248 as_fn_arith $ac_count + 1 && ac_count=$as_val
3249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3250 # Best one so far, save it but keep looking for a better one
3251 ac_cv_path_EGREP="$ac_path_EGREP"
3252 ac_path_EGREP_max=$ac_count
3254 # 10*(2^10) chars as input seems more than enough
3255 test $ac_count -gt 10 && break
3256 done
3257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3258 esac
3260 $ac_path_EGREP_found && break 3
3261 done
3262 done
3263 done
3264 IFS=$as_save_IFS
3265 if test -z "$ac_cv_path_EGREP"; then
3266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3268 else
3269 ac_cv_path_EGREP=$EGREP
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3275 $as_echo "$ac_cv_path_EGREP" >&6; }
3276 EGREP="$ac_cv_path_EGREP"
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3280 $as_echo_n "checking for ANSI C header files... " >&6; }
3281 if ${ac_cv_header_stdc+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286 #include <stdlib.h>
3287 #include <stdarg.h>
3288 #include <string.h>
3289 #include <float.h>
3292 main ()
3296 return 0;
3298 _ACEOF
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_header_stdc=yes
3301 else
3302 ac_cv_header_stdc=no
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 if test $ac_cv_header_stdc = yes; then
3307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310 #include <string.h>
3312 _ACEOF
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 $EGREP "memchr" >/dev/null 2>&1; then :
3316 else
3317 ac_cv_header_stdc=no
3319 rm -f conftest*
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327 #include <stdlib.h>
3329 _ACEOF
3330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3331 $EGREP "free" >/dev/null 2>&1; then :
3333 else
3334 ac_cv_header_stdc=no
3336 rm -f conftest*
3340 if test $ac_cv_header_stdc = yes; then
3341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3342 if test "$cross_compiling" = yes; then :
3344 else
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <ctype.h>
3348 #include <stdlib.h>
3349 #if ((' ' & 0x0FF) == 0x020)
3350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3352 #else
3353 # define ISLOWER(c) \
3354 (('a' <= (c) && (c) <= 'i') \
3355 || ('j' <= (c) && (c) <= 'r') \
3356 || ('s' <= (c) && (c) <= 'z'))
3357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3358 #endif
3360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3362 main ()
3364 int i;
3365 for (i = 0; i < 256; i++)
3366 if (XOR (islower (i), ISLOWER (i))
3367 || toupper (i) != TOUPPER (i))
3368 return 2;
3369 return 0;
3371 _ACEOF
3372 if ac_fn_c_try_run "$LINENO"; then :
3374 else
3375 ac_cv_header_stdc=no
3377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3378 conftest.$ac_objext conftest.beam conftest.$ac_ext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3384 $as_echo "$ac_cv_header_stdc" >&6; }
3385 if test $ac_cv_header_stdc = yes; then
3387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3393 inttypes.h stdint.h unistd.h
3394 do :
3395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3399 cat >>confdefs.h <<_ACEOF
3400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3401 _ACEOF
3405 done
3409 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3410 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3411 MINIX=yes
3412 else
3413 MINIX=
3417 if test "$MINIX" = yes; then
3419 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3422 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3425 $as_echo "#define _MINIX 1" >>confdefs.h
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3431 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3432 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3438 # define __EXTENSIONS__ 1
3439 $ac_includes_default
3441 main ()
3445 return 0;
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_safe_to_define___extensions__=yes
3450 else
3451 ac_cv_safe_to_define___extensions__=no
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3456 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3457 test $ac_cv_safe_to_define___extensions__ = yes &&
3458 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3460 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3462 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3464 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3466 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3470 ac_config_headers="$ac_config_headers config.h"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3475 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3476 set x ${MAKE-make}
3477 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3478 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 cat >conftest.make <<\_ACEOF
3482 SHELL = /bin/sh
3483 all:
3484 @echo '@@@%%%=$(MAKE)=@@@%%%'
3485 _ACEOF
3486 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3487 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3488 *@@@%%%=?*=@@@%%%*)
3489 eval ac_cv_prog_make_${ac_make}_set=yes;;
3491 eval ac_cv_prog_make_${ac_make}_set=no;;
3492 esac
3493 rm -f conftest.make
3495 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3498 SET_MAKE=
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 SET_MAKE="MAKE=${MAKE-make}"
3505 ac_aux_dir=
3506 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3507 if test -f "$ac_dir/install-sh"; then
3508 ac_aux_dir=$ac_dir
3509 ac_install_sh="$ac_aux_dir/install-sh -c"
3510 break
3511 elif test -f "$ac_dir/install.sh"; then
3512 ac_aux_dir=$ac_dir
3513 ac_install_sh="$ac_aux_dir/install.sh -c"
3514 break
3515 elif test -f "$ac_dir/shtool"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/shtool install -c"
3518 break
3520 done
3521 if test -z "$ac_aux_dir"; then
3522 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3525 # These three variables are undocumented and unsupported,
3526 # and are intended to be withdrawn in a future Autoconf release.
3527 # They can cause serious problems if a builder's source tree is in a directory
3528 # whose full name contains unusual characters.
3529 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3530 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3531 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3534 # Find a good install program. We prefer a C program (faster),
3535 # so one script is as good as another. But avoid the broken or
3536 # incompatible versions:
3537 # SysV /etc/install, /usr/sbin/install
3538 # SunOS /usr/etc/install
3539 # IRIX /sbin/install
3540 # AIX /bin/install
3541 # AmigaOS /C/install, which installs bootblocks on floppy discs
3542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3545 # OS/2's system install, which has a completely different semantic
3546 # ./install, which can be erroneously created by make from ./install.sh.
3547 # Reject install programs that cannot install multiple files.
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3549 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3550 if test -z "$INSTALL"; then
3551 if ${ac_cv_path_install+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 # Account for people who put trailing slashes in PATH elements.
3560 case $as_dir/ in #((
3561 ./ | .// | /[cC]/* | \
3562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3563 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3564 /usr/ucb/* ) ;;
3566 # OSF1 and SCO ODT 3.0 have their own names for install.
3567 # Don't use installbsd from OSF since it installs stuff as root
3568 # by default.
3569 for ac_prog in ginstall scoinst install; do
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3572 if test $ac_prog = install &&
3573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3574 # AIX install. It has an incompatible calling convention.
3576 elif test $ac_prog = install &&
3577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3578 # program-specific install script used by HP pwplus--don't use.
3580 else
3581 rm -rf conftest.one conftest.two conftest.dir
3582 echo one > conftest.one
3583 echo two > conftest.two
3584 mkdir conftest.dir
3585 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3586 test -s conftest.one && test -s conftest.two &&
3587 test -s conftest.dir/conftest.one &&
3588 test -s conftest.dir/conftest.two
3589 then
3590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3591 break 3
3595 done
3596 done
3598 esac
3600 done
3601 IFS=$as_save_IFS
3603 rm -rf conftest.one conftest.two conftest.dir
3606 if test "${ac_cv_path_install+set}" = set; then
3607 INSTALL=$ac_cv_path_install
3608 else
3609 # As a last resort, use the slow shell script. Don't cache a
3610 # value for INSTALL within a source directory, because that will
3611 # break other packages using the cache if that directory is
3612 # removed, or if the value is a relative name.
3613 INSTALL=$ac_install_sh
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3617 $as_echo "$INSTALL" >&6; }
3619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3620 # It thinks the first close brace ends the variable substitution.
3621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3628 MKINSTALLDIRS=
3629 if test -n "$ac_aux_dir"; then
3630 case "$ac_aux_dir" in
3631 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3632 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3633 esac
3635 if test -z "$MKINSTALLDIRS"; then
3636 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3642 $as_echo_n "checking whether NLS is requested... " >&6; }
3643 # Check whether --enable-nls was given.
3644 if test "${enable_nls+set}" = set; then :
3645 enableval=$enable_nls; USE_NLS=$enableval
3646 else
3647 USE_NLS=yes
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3651 $as_echo "$USE_NLS" >&6; }
3658 # Prepare PATH_SEPARATOR.
3659 # The user is always right.
3660 if test "${PATH_SEPARATOR+set}" != set; then
3661 echo "#! /bin/sh" >conf$$.sh
3662 echo "exit 0" >>conf$$.sh
3663 chmod +x conf$$.sh
3664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3665 PATH_SEPARATOR=';'
3666 else
3667 PATH_SEPARATOR=:
3669 rm -f conf$$.sh
3672 # Find out how to test for executable files. Don't use a zero-byte file,
3673 # as systems may use methods other than mode bits to determine executability.
3674 cat >conf$$.file <<_ASEOF
3675 #! /bin/sh
3676 exit 0
3677 _ASEOF
3678 chmod +x conf$$.file
3679 if test -x conf$$.file >/dev/null 2>&1; then
3680 ac_executable_p="test -x"
3681 else
3682 ac_executable_p="test -f"
3684 rm -f conf$$.file
3686 # Extract the first word of "msgfmt", so it can be a program name with args.
3687 set dummy msgfmt; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_path_MSGFMT+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 case "$MSGFMT" in
3694 [\\/]* | ?:[\\/]*)
3695 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3698 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3699 for ac_dir in $PATH; do
3700 IFS="$ac_save_IFS"
3701 test -z "$ac_dir" && ac_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3704 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3705 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3706 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3707 break 2
3710 done
3711 done
3712 IFS="$ac_save_IFS"
3713 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3715 esac
3717 MSGFMT="$ac_cv_path_MSGFMT"
3718 if test "$MSGFMT" != ":"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3720 $as_echo "$MSGFMT" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3726 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3727 set dummy gmsgfmt; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if ${ac_cv_path_GMSGFMT+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 case $GMSGFMT in
3734 [\\/]* | ?:[\\/]*)
3735 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3749 done
3750 done
3751 IFS=$as_save_IFS
3753 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3755 esac
3757 GMSGFMT=$ac_cv_path_GMSGFMT
3758 if test -n "$GMSGFMT"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3760 $as_echo "$GMSGFMT" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3769 # Prepare PATH_SEPARATOR.
3770 # The user is always right.
3771 if test "${PATH_SEPARATOR+set}" != set; then
3772 echo "#! /bin/sh" >conf$$.sh
3773 echo "exit 0" >>conf$$.sh
3774 chmod +x conf$$.sh
3775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3776 PATH_SEPARATOR=';'
3777 else
3778 PATH_SEPARATOR=:
3780 rm -f conf$$.sh
3783 # Find out how to test for executable files. Don't use a zero-byte file,
3784 # as systems may use methods other than mode bits to determine executability.
3785 cat >conf$$.file <<_ASEOF
3786 #! /bin/sh
3787 exit 0
3788 _ASEOF
3789 chmod +x conf$$.file
3790 if test -x conf$$.file >/dev/null 2>&1; then
3791 ac_executable_p="test -x"
3792 else
3793 ac_executable_p="test -f"
3795 rm -f conf$$.file
3797 # Extract the first word of "xgettext", so it can be a program name with args.
3798 set dummy xgettext; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_path_XGETTEXT+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 case "$XGETTEXT" in
3805 [\\/]* | ?:[\\/]*)
3806 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3809 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3810 for ac_dir in $PATH; do
3811 IFS="$ac_save_IFS"
3812 test -z "$ac_dir" && ac_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3815 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3816 (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
3817 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3818 break 2
3821 done
3822 done
3823 IFS="$ac_save_IFS"
3824 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3826 esac
3828 XGETTEXT="$ac_cv_path_XGETTEXT"
3829 if test "$XGETTEXT" != ":"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3831 $as_echo "$XGETTEXT" >&6; }
3832 else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3837 rm -f messages.po
3840 # Prepare PATH_SEPARATOR.
3841 # The user is always right.
3842 if test "${PATH_SEPARATOR+set}" != set; then
3843 echo "#! /bin/sh" >conf$$.sh
3844 echo "exit 0" >>conf$$.sh
3845 chmod +x conf$$.sh
3846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3847 PATH_SEPARATOR=';'
3848 else
3849 PATH_SEPARATOR=:
3851 rm -f conf$$.sh
3854 # Find out how to test for executable files. Don't use a zero-byte file,
3855 # as systems may use methods other than mode bits to determine executability.
3856 cat >conf$$.file <<_ASEOF
3857 #! /bin/sh
3858 exit 0
3859 _ASEOF
3860 chmod +x conf$$.file
3861 if test -x conf$$.file >/dev/null 2>&1; then
3862 ac_executable_p="test -x"
3863 else
3864 ac_executable_p="test -f"
3866 rm -f conf$$.file
3868 # Extract the first word of "msgmerge", so it can be a program name with args.
3869 set dummy msgmerge; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_path_MSGMERGE+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 case "$MSGMERGE" in
3876 [\\/]* | ?:[\\/]*)
3877 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3881 for ac_dir in $PATH; do
3882 IFS="$ac_save_IFS"
3883 test -z "$ac_dir" && ac_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3886 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3887 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3888 break 2
3891 done
3892 done
3893 IFS="$ac_save_IFS"
3894 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3896 esac
3898 MSGMERGE="$ac_cv_path_MSGMERGE"
3899 if test "$MSGMERGE" != ":"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3901 $as_echo "$MSGMERGE" >&6; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3908 if test "$GMSGFMT" != ":"; then
3909 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3910 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3912 else
3913 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3915 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3916 GMSGFMT=":"
3920 if test "$XGETTEXT" != ":"; then
3921 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3922 (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
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3926 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3927 XGETTEXT=":"
3929 rm -f messages.po
3932 ac_config_commands="$ac_config_commands default-1"
3935 # Make sure we can run config.sub.
3936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3937 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940 $as_echo_n "checking build system type... " >&6; }
3941 if ${ac_cv_build+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 ac_build_alias=$build_alias
3945 test "x$ac_build_alias" = x &&
3946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3947 test "x$ac_build_alias" = x &&
3948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954 $as_echo "$ac_cv_build" >&6; }
3955 case $ac_cv_build in
3956 *-*-*) ;;
3957 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3958 esac
3959 build=$ac_cv_build
3960 ac_save_IFS=$IFS; IFS='-'
3961 set x $ac_cv_build
3962 shift
3963 build_cpu=$1
3964 build_vendor=$2
3965 shift; shift
3966 # Remember, the first character of IFS is used to create $*,
3967 # except with old shells:
3968 build_os=$*
3969 IFS=$ac_save_IFS
3970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974 $as_echo_n "checking host system type... " >&6; }
3975 if ${ac_cv_host+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test "x$host_alias" = x; then
3979 ac_cv_host=$ac_cv_build
3980 else
3981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3988 case $ac_cv_host in
3989 *-*-*) ;;
3990 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3991 esac
3992 host=$ac_cv_host
3993 ac_save_IFS=$IFS; IFS='-'
3994 set x $ac_cv_host
3995 shift
3996 host_cpu=$1
3997 host_vendor=$2
3998 shift; shift
3999 # Remember, the first character of IFS is used to create $*,
4000 # except with old shells:
4001 host_os=$*
4002 IFS=$ac_save_IFS
4003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_RANLIB+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$RANLIB"; then
4015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4028 done
4029 done
4030 IFS=$as_save_IFS
4034 RANLIB=$ac_cv_prog_RANLIB
4035 if test -n "$RANLIB"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4037 $as_echo "$RANLIB" >&6; }
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_RANLIB"; then
4046 ac_ct_RANLIB=$RANLIB
4047 # Extract the first word of "ranlib", so it can be a program name with args.
4048 set dummy ranlib; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -n "$ac_ct_RANLIB"; then
4055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_RANLIB="ranlib"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4068 done
4069 done
4070 IFS=$as_save_IFS
4074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4075 if test -n "$ac_ct_RANLIB"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4077 $as_echo "$ac_ct_RANLIB" >&6; }
4078 else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_RANLIB" = x; then
4084 RANLIB=":"
4085 else
4086 case $cross_compiling:$ac_tool_warned in
4087 yes:)
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4091 esac
4092 RANLIB=$ac_ct_RANLIB
4094 else
4095 RANLIB="$ac_cv_prog_RANLIB"
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4099 $as_echo_n "checking for library containing strerror... " >&6; }
4100 if ${ac_cv_search_strerror+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 ac_func_search_save_LIBS=$LIBS
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4107 /* Override any GCC internal prototype to avoid an error.
4108 Use char because int might match the return type of a GCC
4109 builtin and then its argument prototype would still apply. */
4110 #ifdef __cplusplus
4111 extern "C"
4112 #endif
4113 char strerror ();
4115 main ()
4117 return strerror ();
4119 return 0;
4121 _ACEOF
4122 for ac_lib in '' cposix; do
4123 if test -z "$ac_lib"; then
4124 ac_res="none required"
4125 else
4126 ac_res=-l$ac_lib
4127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4129 if ac_fn_c_try_link "$LINENO"; then :
4130 ac_cv_search_strerror=$ac_res
4132 rm -f core conftest.err conftest.$ac_objext \
4133 conftest$ac_exeext
4134 if ${ac_cv_search_strerror+:} false; then :
4135 break
4137 done
4138 if ${ac_cv_search_strerror+:} false; then :
4140 else
4141 ac_cv_search_strerror=no
4143 rm conftest.$ac_ext
4144 LIBS=$ac_func_search_save_LIBS
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4147 $as_echo "$ac_cv_search_strerror" >&6; }
4148 ac_res=$ac_cv_search_strerror
4149 if test "$ac_res" != no; then :
4150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4155 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4156 if ${ac_cv_c_const+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 main ()
4166 #ifndef __cplusplus
4167 /* Ultrix mips cc rejects this sort of thing. */
4168 typedef int charset[2];
4169 const charset cs = { 0, 0 };
4170 /* SunOS 4.1.1 cc rejects this. */
4171 char const *const *pcpcc;
4172 char **ppc;
4173 /* NEC SVR4.0.2 mips cc rejects this. */
4174 struct point {int x, y;};
4175 static struct point const zero = {0,0};
4176 /* AIX XL C 1.02.0.0 rejects this.
4177 It does not let you subtract one const X* pointer from another in
4178 an arm of an if-expression whose if-part is not a constant
4179 expression */
4180 const char *g = "string";
4181 pcpcc = &g + (g ? g-g : 0);
4182 /* HPUX 7.0 cc rejects these. */
4183 ++pcpcc;
4184 ppc = (char**) pcpcc;
4185 pcpcc = (char const *const *) ppc;
4186 { /* SCO 3.2v4 cc rejects this sort of thing. */
4187 char tx;
4188 char *t = &tx;
4189 char const *s = 0 ? (char *) 0 : (char const *) 0;
4191 *t++ = 0;
4192 if (s) return 0;
4194 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4195 int x[] = {25, 17};
4196 const int *foo = &x[0];
4197 ++foo;
4199 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4200 typedef const int *iptr;
4201 iptr p = 0;
4202 ++p;
4204 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4205 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4206 struct s { int j; const int *ap[3]; } bx;
4207 struct s *b = &bx; b->j = 5;
4209 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4210 const int foo = 10;
4211 if (!foo) return 0;
4213 return !cs[0] && !zero.x;
4214 #endif
4217 return 0;
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_c_const=yes
4222 else
4223 ac_cv_c_const=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4228 $as_echo "$ac_cv_c_const" >&6; }
4229 if test $ac_cv_c_const = no; then
4231 $as_echo "#define const /**/" >>confdefs.h
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4236 $as_echo_n "checking for inline... " >&6; }
4237 if ${ac_cv_c_inline+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 ac_cv_c_inline=no
4241 for ac_kw in inline __inline__ __inline; do
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #ifndef __cplusplus
4245 typedef int foo_t;
4246 static $ac_kw foo_t static_foo () {return 0; }
4247 $ac_kw foo_t foo () {return 0; }
4248 #endif
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_c_inline=$ac_kw
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 test "$ac_cv_c_inline" != no && break
4256 done
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4260 $as_echo "$ac_cv_c_inline" >&6; }
4262 case $ac_cv_c_inline in
4263 inline | yes) ;;
4265 case $ac_cv_c_inline in
4266 no) ac_val=;;
4267 *) ac_val=$ac_cv_c_inline;;
4268 esac
4269 cat >>confdefs.h <<_ACEOF
4270 #ifndef __cplusplus
4271 #define inline $ac_val
4272 #endif
4273 _ACEOF
4275 esac
4277 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4278 if test "x$ac_cv_type_off_t" = xyes; then :
4280 else
4282 cat >>confdefs.h <<_ACEOF
4283 #define off_t long int
4284 _ACEOF
4288 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4289 if test "x$ac_cv_type_size_t" = xyes; then :
4291 else
4293 cat >>confdefs.h <<_ACEOF
4294 #define size_t unsigned int
4295 _ACEOF
4299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4300 # for constant arguments. Useless!
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4302 $as_echo_n "checking for working alloca.h... " >&6; }
4303 if ${ac_cv_working_alloca_h+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <alloca.h>
4310 main ()
4312 char *p = (char *) alloca (2 * sizeof (int));
4313 if (p) return 0;
4315 return 0;
4317 _ACEOF
4318 if ac_fn_c_try_link "$LINENO"; then :
4319 ac_cv_working_alloca_h=yes
4320 else
4321 ac_cv_working_alloca_h=no
4323 rm -f core conftest.err conftest.$ac_objext \
4324 conftest$ac_exeext conftest.$ac_ext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4327 $as_echo "$ac_cv_working_alloca_h" >&6; }
4328 if test $ac_cv_working_alloca_h = yes; then
4330 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4335 $as_echo_n "checking for alloca... " >&6; }
4336 if ${ac_cv_func_alloca_works+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #ifdef __GNUC__
4342 # define alloca __builtin_alloca
4343 #else
4344 # ifdef _MSC_VER
4345 # include <malloc.h>
4346 # define alloca _alloca
4347 # else
4348 # ifdef HAVE_ALLOCA_H
4349 # include <alloca.h>
4350 # else
4351 # ifdef _AIX
4352 #pragma alloca
4353 # else
4354 # ifndef alloca /* predefined by HP cc +Olibcalls */
4355 void *alloca (size_t);
4356 # endif
4357 # endif
4358 # endif
4359 # endif
4360 #endif
4363 main ()
4365 char *p = (char *) alloca (1);
4366 if (p) return 0;
4368 return 0;
4370 _ACEOF
4371 if ac_fn_c_try_link "$LINENO"; then :
4372 ac_cv_func_alloca_works=yes
4373 else
4374 ac_cv_func_alloca_works=no
4376 rm -f core conftest.err conftest.$ac_objext \
4377 conftest$ac_exeext conftest.$ac_ext
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4380 $as_echo "$ac_cv_func_alloca_works" >&6; }
4382 if test $ac_cv_func_alloca_works = yes; then
4384 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4386 else
4387 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4388 # that cause trouble. Some versions do not even contain alloca or
4389 # contain a buggy version. If you still want to use their alloca,
4390 # use ar to extract alloca.o from them instead of compiling alloca.c.
4392 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4394 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4398 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4399 if ${ac_cv_os_cray+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #if defined CRAY && ! defined CRAY2
4405 webecray
4406 #else
4407 wenotbecray
4408 #endif
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "webecray" >/dev/null 2>&1; then :
4413 ac_cv_os_cray=yes
4414 else
4415 ac_cv_os_cray=no
4417 rm -f conftest*
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4421 $as_echo "$ac_cv_os_cray" >&6; }
4422 if test $ac_cv_os_cray = yes; then
4423 for ac_func in _getb67 GETB67 getb67; do
4424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4426 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4428 cat >>confdefs.h <<_ACEOF
4429 #define CRAY_STACKSEG_END $ac_func
4430 _ACEOF
4432 break
4435 done
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4439 $as_echo_n "checking stack direction for C alloca... " >&6; }
4440 if ${ac_cv_c_stack_direction+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test "$cross_compiling" = yes; then :
4444 ac_cv_c_stack_direction=0
4445 else
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 $ac_includes_default
4450 find_stack_direction (int *addr, int depth)
4452 int dir, dummy = 0;
4453 if (! addr)
4454 addr = &dummy;
4455 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4456 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4457 return dir + dummy;
4461 main (int argc, char **argv)
4463 return find_stack_direction (0, argc + !argv + 20) < 0;
4465 _ACEOF
4466 if ac_fn_c_try_run "$LINENO"; then :
4467 ac_cv_c_stack_direction=1
4468 else
4469 ac_cv_c_stack_direction=-1
4471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4472 conftest.$ac_objext conftest.beam conftest.$ac_ext
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4477 $as_echo "$ac_cv_c_stack_direction" >&6; }
4478 cat >>confdefs.h <<_ACEOF
4479 #define STACK_DIRECTION $ac_cv_c_stack_direction
4480 _ACEOF
4488 for ac_header in $ac_header_list
4489 do :
4490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4491 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4494 cat >>confdefs.h <<_ACEOF
4495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4496 _ACEOF
4500 done
4509 for ac_func in getpagesize
4510 do :
4511 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4512 if test "x$ac_cv_func_getpagesize" = xyes; then :
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_GETPAGESIZE 1
4515 _ACEOF
4518 done
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4521 $as_echo_n "checking for working mmap... " >&6; }
4522 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test "$cross_compiling" = yes; then :
4526 ac_cv_func_mmap_fixed_mapped=no
4527 else
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 /* malloc might have been renamed as rpl_malloc. */
4532 #undef malloc
4534 /* Thanks to Mike Haertel and Jim Avera for this test.
4535 Here is a matrix of mmap possibilities:
4536 mmap private not fixed
4537 mmap private fixed at somewhere currently unmapped
4538 mmap private fixed at somewhere already mapped
4539 mmap shared not fixed
4540 mmap shared fixed at somewhere currently unmapped
4541 mmap shared fixed at somewhere already mapped
4542 For private mappings, we should verify that changes cannot be read()
4543 back from the file, nor mmap's back from the file at a different
4544 address. (There have been systems where private was not correctly
4545 implemented like the infamous i386 svr4.0, and systems where the
4546 VM page cache was not coherent with the file system buffer cache
4547 like early versions of FreeBSD and possibly contemporary NetBSD.)
4548 For shared mappings, we should conversely verify that changes get
4549 propagated back to all the places they're supposed to be.
4551 Grep wants private fixed already mapped.
4552 The main things grep needs to know about mmap are:
4553 * does it exist and is it safe to write into the mmap'd area
4554 * how to use it (BSD variants) */
4556 #include <fcntl.h>
4557 #include <sys/mman.h>
4559 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4560 char *malloc ();
4561 #endif
4563 /* This mess was copied from the GNU getpagesize.h. */
4564 #ifndef HAVE_GETPAGESIZE
4565 # ifdef _SC_PAGESIZE
4566 # define getpagesize() sysconf(_SC_PAGESIZE)
4567 # else /* no _SC_PAGESIZE */
4568 # ifdef HAVE_SYS_PARAM_H
4569 # include <sys/param.h>
4570 # ifdef EXEC_PAGESIZE
4571 # define getpagesize() EXEC_PAGESIZE
4572 # else /* no EXEC_PAGESIZE */
4573 # ifdef NBPG
4574 # define getpagesize() NBPG * CLSIZE
4575 # ifndef CLSIZE
4576 # define CLSIZE 1
4577 # endif /* no CLSIZE */
4578 # else /* no NBPG */
4579 # ifdef NBPC
4580 # define getpagesize() NBPC
4581 # else /* no NBPC */
4582 # ifdef PAGESIZE
4583 # define getpagesize() PAGESIZE
4584 # endif /* PAGESIZE */
4585 # endif /* no NBPC */
4586 # endif /* no NBPG */
4587 # endif /* no EXEC_PAGESIZE */
4588 # else /* no HAVE_SYS_PARAM_H */
4589 # define getpagesize() 8192 /* punt totally */
4590 # endif /* no HAVE_SYS_PARAM_H */
4591 # endif /* no _SC_PAGESIZE */
4593 #endif /* no HAVE_GETPAGESIZE */
4596 main ()
4598 char *data, *data2, *data3;
4599 const char *cdata2;
4600 int i, pagesize;
4601 int fd, fd2;
4603 pagesize = getpagesize ();
4605 /* First, make a file with some known garbage in it. */
4606 data = (char *) malloc (pagesize);
4607 if (!data)
4608 return 1;
4609 for (i = 0; i < pagesize; ++i)
4610 *(data + i) = rand ();
4611 umask (0);
4612 fd = creat ("conftest.mmap", 0600);
4613 if (fd < 0)
4614 return 2;
4615 if (write (fd, data, pagesize) != pagesize)
4616 return 3;
4617 close (fd);
4619 /* Next, check that the tail of a page is zero-filled. File must have
4620 non-zero length, otherwise we risk SIGBUS for entire page. */
4621 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4622 if (fd2 < 0)
4623 return 4;
4624 cdata2 = "";
4625 if (write (fd2, cdata2, 1) != 1)
4626 return 5;
4627 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4628 if (data2 == MAP_FAILED)
4629 return 6;
4630 for (i = 0; i < pagesize; ++i)
4631 if (*(data2 + i))
4632 return 7;
4633 close (fd2);
4634 if (munmap (data2, pagesize))
4635 return 8;
4637 /* Next, try to mmap the file at a fixed address which already has
4638 something else allocated at it. If we can, also make sure that
4639 we see the same garbage. */
4640 fd = open ("conftest.mmap", O_RDWR);
4641 if (fd < 0)
4642 return 9;
4643 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4644 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4645 return 10;
4646 for (i = 0; i < pagesize; ++i)
4647 if (*(data + i) != *(data2 + i))
4648 return 11;
4650 /* Finally, make sure that changes to the mapped area do not
4651 percolate back to the file as seen by read(). (This is a bug on
4652 some variants of i386 svr4.0.) */
4653 for (i = 0; i < pagesize; ++i)
4654 *(data2 + i) = *(data2 + i) + 1;
4655 data3 = (char *) malloc (pagesize);
4656 if (!data3)
4657 return 12;
4658 if (read (fd, data3, pagesize) != pagesize)
4659 return 13;
4660 for (i = 0; i < pagesize; ++i)
4661 if (*(data + i) != *(data3 + i))
4662 return 14;
4663 close (fd);
4664 return 0;
4666 _ACEOF
4667 if ac_fn_c_try_run "$LINENO"; then :
4668 ac_cv_func_mmap_fixed_mapped=yes
4669 else
4670 ac_cv_func_mmap_fixed_mapped=no
4672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4673 conftest.$ac_objext conftest.beam conftest.$ac_ext
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4678 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4679 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4681 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4684 rm -f conftest.mmap conftest.txt
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4688 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4689 if ${ac_cv_gnu_library_2_1+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4695 #include <features.h>
4696 #ifdef __GNU_LIBRARY__
4697 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4698 Lucky GNU user
4699 #endif
4700 #endif
4702 _ACEOF
4703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4705 ac_cv_gnu_library_2_1=yes
4706 else
4707 ac_cv_gnu_library_2_1=no
4709 rm -f conftest*
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4715 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4717 GLIBC21="$ac_cv_gnu_library_2_1"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4723 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4724 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4728 if test "$cross_compiling" = yes; then :
4730 # Guess based on the CPU.
4731 case "$host_cpu" in
4732 alpha* | i3456786 | m68k | s390*)
4733 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4735 gt_cv_int_divbyzero_sigfpe="guessing no";;
4736 esac
4738 else
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4742 #include <stdlib.h>
4743 #include <signal.h>
4745 static void
4746 #ifdef __cplusplus
4747 sigfpe_handler (int sig)
4748 #else
4749 sigfpe_handler (sig) int sig;
4750 #endif
4752 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4753 exit (sig != SIGFPE);
4756 int x = 1;
4757 int y = 0;
4758 int z;
4759 int nan;
4761 int main ()
4763 signal (SIGFPE, sigfpe_handler);
4764 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4765 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4766 signal (SIGTRAP, sigfpe_handler);
4767 #endif
4768 /* Linux/SPARC yields signal SIGILL. */
4769 #if defined (__sparc__) && defined (__linux__)
4770 signal (SIGILL, sigfpe_handler);
4771 #endif
4773 z = x / y;
4774 nan = y / y;
4775 exit (1);
4778 _ACEOF
4779 if ac_fn_c_try_run "$LINENO"; then :
4780 gt_cv_int_divbyzero_sigfpe=yes
4781 else
4782 gt_cv_int_divbyzero_sigfpe=no
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4785 conftest.$ac_objext conftest.beam conftest.$ac_ext
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4791 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4792 case "$gt_cv_int_divbyzero_sigfpe" in
4793 *yes) value=1;;
4794 *) value=0;;
4795 esac
4797 cat >>confdefs.h <<_ACEOF
4798 #define INTDIV0_RAISES_SIGFPE $value
4799 _ACEOF
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4804 $as_echo_n "checking for inttypes.h... " >&6; }
4805 if ${jm_ac_cv_header_inttypes_h+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 #include <sys/types.h>
4811 #include <inttypes.h>
4813 main ()
4815 uintmax_t i = (uintmax_t) -1;
4817 return 0;
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821 jm_ac_cv_header_inttypes_h=yes
4822 else
4823 jm_ac_cv_header_inttypes_h=no
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4828 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4829 if test $jm_ac_cv_header_inttypes_h = yes; then
4831 cat >>confdefs.h <<_ACEOF
4832 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4833 _ACEOF
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4839 $as_echo_n "checking for stdint.h... " >&6; }
4840 if ${jm_ac_cv_header_stdint_h+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 #include <sys/types.h>
4846 #include <stdint.h>
4848 main ()
4850 uintmax_t i = (uintmax_t) -1;
4852 return 0;
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 jm_ac_cv_header_stdint_h=yes
4857 else
4858 jm_ac_cv_header_stdint_h=no
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4863 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4864 if test $jm_ac_cv_header_stdint_h = yes; then
4866 cat >>confdefs.h <<_ACEOF
4867 #define HAVE_STDINT_H_WITH_UINTMAX 1
4868 _ACEOF
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4874 $as_echo_n "checking for unsigned long long... " >&6; }
4875 if ${ac_cv_type_unsigned_long_long+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 unsigned long long ull = 1; int i = 63;
4882 main ()
4884 unsigned long long ullmax = (unsigned long long) -1;
4885 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4887 return 0;
4889 _ACEOF
4890 if ac_fn_c_try_link "$LINENO"; then :
4891 ac_cv_type_unsigned_long_long=yes
4892 else
4893 ac_cv_type_unsigned_long_long=no
4895 rm -f core conftest.err conftest.$ac_objext \
4896 conftest$ac_exeext conftest.$ac_ext
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4899 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4900 if test $ac_cv_type_unsigned_long_long = yes; then
4902 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4909 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4911 test $ac_cv_type_unsigned_long_long = yes \
4912 && ac_type='unsigned long long' \
4913 || ac_type='unsigned long'
4915 cat >>confdefs.h <<_ACEOF
4916 #define uintmax_t $ac_type
4917 _ACEOF
4919 else
4921 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4927 $as_echo_n "checking for inttypes.h... " >&6; }
4928 if ${gt_cv_header_inttypes_h+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <sys/types.h>
4935 #include <inttypes.h>
4937 main ()
4941 return 0;
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 gt_cv_header_inttypes_h=yes
4946 else
4947 gt_cv_header_inttypes_h=no
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4953 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4954 if test $gt_cv_header_inttypes_h = yes; then
4956 cat >>confdefs.h <<_ACEOF
4957 #define HAVE_INTTYPES_H 1
4958 _ACEOF
4964 if test $gt_cv_header_inttypes_h = yes; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4966 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4967 if ${gt_cv_inttypes_pri_broken+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #include <inttypes.h>
4974 #ifdef PRId32
4975 char *p = PRId32;
4976 #endif
4979 main ()
4983 return 0;
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 gt_cv_inttypes_pri_broken=no
4988 else
4989 gt_cv_inttypes_pri_broken=yes
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4995 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4997 if test "$gt_cv_inttypes_pri_broken" = yes; then
4999 cat >>confdefs.h <<_ACEOF
5000 #define PRI_MACROS_BROKEN 1
5001 _ACEOF
5006 if test "X$prefix" = "XNONE"; then
5007 acl_final_prefix="$ac_default_prefix"
5008 else
5009 acl_final_prefix="$prefix"
5011 if test "X$exec_prefix" = "XNONE"; then
5012 acl_final_exec_prefix='${prefix}'
5013 else
5014 acl_final_exec_prefix="$exec_prefix"
5016 acl_save_prefix="$prefix"
5017 prefix="$acl_final_prefix"
5018 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5019 prefix="$acl_save_prefix"
5022 # Check whether --with-gnu-ld was given.
5023 if test "${with_gnu_ld+set}" = set; then :
5024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5025 else
5026 with_gnu_ld=no
5029 # Prepare PATH_SEPARATOR.
5030 # The user is always right.
5031 if test "${PATH_SEPARATOR+set}" != set; then
5032 echo "#! /bin/sh" >conf$$.sh
5033 echo "exit 0" >>conf$$.sh
5034 chmod +x conf$$.sh
5035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5036 PATH_SEPARATOR=';'
5037 else
5038 PATH_SEPARATOR=:
5040 rm -f conf$$.sh
5042 ac_prog=ld
5043 if test "$GCC" = yes; then
5044 # Check if gcc -print-prog-name=ld gives a path.
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5046 $as_echo_n "checking for ld used by GCC... " >&6; }
5047 case $host in
5048 *-*-mingw*)
5049 # gcc leaves a trailing carriage return which upsets mingw
5050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5053 esac
5054 case $ac_prog in
5055 # Accept absolute paths.
5056 [\\/]* | [A-Za-z]:[\\/]*)
5057 re_direlt='/[^/][^/]*/\.\./'
5058 # Canonicalize the path of ld
5059 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5061 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5062 done
5063 test -z "$LD" && LD="$ac_prog"
5066 # If it fails, then pretend we aren't using GCC.
5067 ac_prog=ld
5070 # If it is relative, then search for the first ld in PATH.
5071 with_gnu_ld=unknown
5073 esac
5074 elif test "$with_gnu_ld" = yes; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5076 $as_echo_n "checking for GNU ld... " >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5079 $as_echo_n "checking for non-GNU ld... " >&6; }
5081 if ${acl_cv_path_LD+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -z "$LD"; then
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5086 for ac_dir in $PATH; do
5087 test -z "$ac_dir" && ac_dir=.
5088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5089 acl_cv_path_LD="$ac_dir/$ac_prog"
5090 # Check to see if the program is GNU ld. I'd rather use --version,
5091 # but apparently some GNU ld's only accept -v.
5092 # Break only if it was the GNU/non-GNU ld that we prefer.
5093 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5094 test "$with_gnu_ld" != no && break
5095 else
5096 test "$with_gnu_ld" != yes && break
5099 done
5100 IFS="$ac_save_ifs"
5101 else
5102 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5106 LD="$acl_cv_path_LD"
5107 if test -n "$LD"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5109 $as_echo "$LD" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5114 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5116 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5117 if ${acl_cv_prog_gnu_ld+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5121 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5122 acl_cv_prog_gnu_ld=yes
5123 else
5124 acl_cv_prog_gnu_ld=no
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5128 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5129 with_gnu_ld=$acl_cv_prog_gnu_ld
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5134 $as_echo_n "checking for shared library run path origin... " >&6; }
5135 if ${acl_cv_rpath+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5139 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5140 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5141 . ./conftest.sh
5142 rm -f ./conftest.sh
5143 acl_cv_rpath=done
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5147 $as_echo "$acl_cv_rpath" >&6; }
5148 wl="$acl_cv_wl"
5149 libext="$acl_cv_libext"
5150 shlibext="$acl_cv_shlibext"
5151 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5152 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5153 hardcode_direct="$acl_cv_hardcode_direct"
5154 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5155 # Check whether --enable-rpath was given.
5156 if test "${enable_rpath+set}" = set; then :
5157 enableval=$enable_rpath; :
5158 else
5159 enable_rpath=yes
5169 use_additional=yes
5171 acl_save_prefix="$prefix"
5172 prefix="$acl_final_prefix"
5173 acl_save_exec_prefix="$exec_prefix"
5174 exec_prefix="$acl_final_exec_prefix"
5176 eval additional_includedir=\"$includedir\"
5177 eval additional_libdir=\"$libdir\"
5179 exec_prefix="$acl_save_exec_prefix"
5180 prefix="$acl_save_prefix"
5183 # Check whether --with-libiconv-prefix was given.
5184 if test "${with_libiconv_prefix+set}" = set; then :
5185 withval=$with_libiconv_prefix;
5186 if test "X$withval" = "Xno"; then
5187 use_additional=no
5188 else
5189 if test "X$withval" = "X"; then
5191 acl_save_prefix="$prefix"
5192 prefix="$acl_final_prefix"
5193 acl_save_exec_prefix="$exec_prefix"
5194 exec_prefix="$acl_final_exec_prefix"
5196 eval additional_includedir=\"$includedir\"
5197 eval additional_libdir=\"$libdir\"
5199 exec_prefix="$acl_save_exec_prefix"
5200 prefix="$acl_save_prefix"
5202 else
5203 additional_includedir="$withval/include"
5204 additional_libdir="$withval/lib"
5211 # Check whether --with-libiconv-type was given.
5212 if test "${with_libiconv_type+set}" = set; then :
5213 withval=$with_libiconv_type; with_libiconv_type=$withval
5214 else
5215 with_libiconv_type=auto
5218 lib_type=`eval echo \$with_libiconv_type`
5220 LIBICONV=
5221 LTLIBICONV=
5222 INCICONV=
5223 rpathdirs=
5224 ltrpathdirs=
5225 names_already_handled=
5226 names_next_round='iconv '
5227 while test -n "$names_next_round"; do
5228 names_this_round="$names_next_round"
5229 names_next_round=
5230 for name in $names_this_round; do
5231 already_handled=
5232 for n in $names_already_handled; do
5233 if test "$n" = "$name"; then
5234 already_handled=yes
5235 break
5237 done
5238 if test -z "$already_handled"; then
5239 names_already_handled="$names_already_handled $name"
5240 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5241 eval value=\"\$HAVE_LIB$uppername\"
5242 if test -n "$value"; then
5243 if test "$value" = yes; then
5244 eval value=\"\$LIB$uppername\"
5245 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5246 eval value=\"\$LTLIB$uppername\"
5247 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5248 else
5251 else
5252 found_dir=
5253 found_la=
5254 found_so=
5255 found_a=
5256 if test $use_additional = yes; then
5257 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5258 found_dir="$additional_libdir"
5259 found_so="$additional_libdir/lib$name.$shlibext"
5260 if test -f "$additional_libdir/lib$name.la"; then
5261 found_la="$additional_libdir/lib$name.la"
5263 elif test x$lib_type != xshared; then
5264 if test -f "$additional_libdir/lib$name.$libext"; then
5265 found_dir="$additional_libdir"
5266 found_a="$additional_libdir/lib$name.$libext"
5267 if test -f "$additional_libdir/lib$name.la"; then
5268 found_la="$additional_libdir/lib$name.la"
5273 if test "X$found_dir" = "X"; then
5274 for x in $LDFLAGS $LTLIBICONV; do
5276 acl_save_prefix="$prefix"
5277 prefix="$acl_final_prefix"
5278 acl_save_exec_prefix="$exec_prefix"
5279 exec_prefix="$acl_final_exec_prefix"
5280 eval x=\"$x\"
5281 exec_prefix="$acl_save_exec_prefix"
5282 prefix="$acl_save_prefix"
5284 case "$x" in
5285 -L*)
5286 dir=`echo "X$x" | sed -e 's/^X-L//'`
5287 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5288 found_dir="$dir"
5289 found_so="$dir/lib$name.$shlibext"
5290 if test -f "$dir/lib$name.la"; then
5291 found_la="$dir/lib$name.la"
5293 elif test x$lib_type != xshared; then
5294 if test -f "$dir/lib$name.$libext"; then
5295 found_dir="$dir"
5296 found_a="$dir/lib$name.$libext"
5297 if test -f "$dir/lib$name.la"; then
5298 found_la="$dir/lib$name.la"
5303 esac
5304 if test "X$found_dir" != "X"; then
5305 break
5307 done
5309 if test "X$found_dir" != "X"; then
5310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5311 if test "X$found_so" != "X"; then
5312 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5313 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5314 else
5315 haveit=
5316 for x in $ltrpathdirs; do
5317 if test "X$x" = "X$found_dir"; then
5318 haveit=yes
5319 break
5321 done
5322 if test -z "$haveit"; then
5323 ltrpathdirs="$ltrpathdirs $found_dir"
5325 if test "$hardcode_direct" = yes; then
5326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5327 else
5328 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5329 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5330 haveit=
5331 for x in $rpathdirs; do
5332 if test "X$x" = "X$found_dir"; then
5333 haveit=yes
5334 break
5336 done
5337 if test -z "$haveit"; then
5338 rpathdirs="$rpathdirs $found_dir"
5340 else
5341 haveit=
5342 for x in $LDFLAGS $LIBICONV; do
5344 acl_save_prefix="$prefix"
5345 prefix="$acl_final_prefix"
5346 acl_save_exec_prefix="$exec_prefix"
5347 exec_prefix="$acl_final_exec_prefix"
5348 eval x=\"$x\"
5349 exec_prefix="$acl_save_exec_prefix"
5350 prefix="$acl_save_prefix"
5352 if test "X$x" = "X-L$found_dir"; then
5353 haveit=yes
5354 break
5356 done
5357 if test -z "$haveit"; then
5358 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5360 if test "$hardcode_minus_L" != no; then
5361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5362 else
5363 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5368 else
5369 if test "X$found_a" != "X"; then
5370 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5371 else
5372 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5375 additional_includedir=
5376 case "$found_dir" in
5377 */lib | */lib/)
5378 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5379 additional_includedir="$basedir/include"
5381 esac
5382 if test "X$additional_includedir" != "X"; then
5383 if test "X$additional_includedir" != "X/usr/include"; then
5384 haveit=
5385 if test "X$additional_includedir" = "X/usr/local/include"; then
5386 if test -n "$GCC"; then
5387 case $host_os in
5388 linux*) haveit=yes;;
5389 esac
5392 if test -z "$haveit"; then
5393 for x in $CPPFLAGS $INCICONV; do
5395 acl_save_prefix="$prefix"
5396 prefix="$acl_final_prefix"
5397 acl_save_exec_prefix="$exec_prefix"
5398 exec_prefix="$acl_final_exec_prefix"
5399 eval x=\"$x\"
5400 exec_prefix="$acl_save_exec_prefix"
5401 prefix="$acl_save_prefix"
5403 if test "X$x" = "X-I$additional_includedir"; then
5404 haveit=yes
5405 break
5407 done
5408 if test -z "$haveit"; then
5409 if test -d "$additional_includedir"; then
5410 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5416 if test -n "$found_la"; then
5417 save_libdir="$libdir"
5418 case "$found_la" in
5419 */* | *\\*) . "$found_la" ;;
5420 *) . "./$found_la" ;;
5421 esac
5422 libdir="$save_libdir"
5423 for dep in $dependency_libs; do
5424 case "$dep" in
5425 -L*)
5426 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5427 if test "X$additional_libdir" != "X/usr/lib"; then
5428 haveit=
5429 if test "X$additional_libdir" = "X/usr/local/lib"; then
5430 if test -n "$GCC"; then
5431 case $host_os in
5432 linux*) haveit=yes;;
5433 esac
5436 if test -z "$haveit"; then
5437 haveit=
5438 for x in $LDFLAGS $LIBICONV; do
5440 acl_save_prefix="$prefix"
5441 prefix="$acl_final_prefix"
5442 acl_save_exec_prefix="$exec_prefix"
5443 exec_prefix="$acl_final_exec_prefix"
5444 eval x=\"$x\"
5445 exec_prefix="$acl_save_exec_prefix"
5446 prefix="$acl_save_prefix"
5448 if test "X$x" = "X-L$additional_libdir"; then
5449 haveit=yes
5450 break
5452 done
5453 if test -z "$haveit"; then
5454 if test -d "$additional_libdir"; then
5455 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5458 haveit=
5459 for x in $LDFLAGS $LTLIBICONV; do
5461 acl_save_prefix="$prefix"
5462 prefix="$acl_final_prefix"
5463 acl_save_exec_prefix="$exec_prefix"
5464 exec_prefix="$acl_final_exec_prefix"
5465 eval x=\"$x\"
5466 exec_prefix="$acl_save_exec_prefix"
5467 prefix="$acl_save_prefix"
5469 if test "X$x" = "X-L$additional_libdir"; then
5470 haveit=yes
5471 break
5473 done
5474 if test -z "$haveit"; then
5475 if test -d "$additional_libdir"; then
5476 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5482 -R*)
5483 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5484 if test "$enable_rpath" != no; then
5485 haveit=
5486 for x in $rpathdirs; do
5487 if test "X$x" = "X$dir"; then
5488 haveit=yes
5489 break
5491 done
5492 if test -z "$haveit"; then
5493 rpathdirs="$rpathdirs $dir"
5495 haveit=
5496 for x in $ltrpathdirs; do
5497 if test "X$x" = "X$dir"; then
5498 haveit=yes
5499 break
5501 done
5502 if test -z "$haveit"; then
5503 ltrpathdirs="$ltrpathdirs $dir"
5507 -l*)
5508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5510 *.la)
5511 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5514 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5515 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5517 esac
5518 done
5520 else
5521 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
5522 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5524 else
5525 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
5526 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
5531 done
5532 done
5533 if test "X$rpathdirs" != "X"; then
5534 if test -n "$hardcode_libdir_separator"; then
5535 alldirs=
5536 for found_dir in $rpathdirs; do
5537 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5538 done
5539 acl_save_libdir="$libdir"
5540 libdir="$alldirs"
5541 eval flag=\"$hardcode_libdir_flag_spec\"
5542 libdir="$acl_save_libdir"
5543 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5544 else
5545 for found_dir in $rpathdirs; do
5546 acl_save_libdir="$libdir"
5547 libdir="$found_dir"
5548 eval flag=\"$hardcode_libdir_flag_spec\"
5549 libdir="$acl_save_libdir"
5550 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5551 done
5554 if test "X$ltrpathdirs" != "X"; then
5555 for found_dir in $ltrpathdirs; do
5556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5557 done
5563 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5564 stdlib.h string.h unistd.h sys/param.h
5565 do :
5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5569 cat >>confdefs.h <<_ACEOF
5570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571 _ACEOF
5575 done
5577 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5578 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5579 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5580 __fsetlocking
5581 do :
5582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5585 cat >>confdefs.h <<_ACEOF
5586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5587 _ACEOF
5590 done
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5599 $as_echo_n "checking for iconv... " >&6; }
5600 if ${am_cv_func_iconv+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5604 am_cv_func_iconv="no, consider installing GNU libiconv"
5605 am_cv_lib_iconv=no
5606 am_save_CPPFLAGS="$CPPFLAGS"
5607 CPPFLAGS="$CPPFLAGS $INCICONV"
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <stdlib.h>
5611 #include <iconv.h>
5613 main ()
5615 iconv_t cd = iconv_open("","");
5616 iconv(cd,NULL,NULL,NULL,NULL);
5617 iconv_close(cd);
5619 return 0;
5621 _ACEOF
5622 if ac_fn_c_try_link "$LINENO"; then :
5623 am_cv_func_iconv=yes
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 CPPFLAGS="$am_save_CPPFLAGS"
5629 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
5630 for _libs in .libs _libs; do
5631 am_save_CPPFLAGS="$CPPFLAGS"
5632 am_save_LIBS="$LIBS"
5633 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
5634 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <stdlib.h>
5638 #include <iconv.h>
5640 main ()
5642 iconv_t cd = iconv_open("","");
5643 iconv(cd,NULL,NULL,NULL,NULL);
5644 iconv_close(cd);
5646 return 0;
5648 _ACEOF
5649 if ac_fn_c_try_link "$LINENO"; then :
5650 INCICONV="-I../libiconv/include"
5651 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
5652 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
5653 am_cv_lib_iconv=yes
5654 am_cv_func_iconv=yes
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658 CPPFLAGS="$am_save_CPPFLAGS"
5659 LIBS="$am_save_LIBS"
5660 if test "$am_cv_func_iconv" = "yes"; then
5661 break
5663 done
5666 if test "$am_cv_func_iconv" != yes; then
5667 am_save_CPPFLAGS="$CPPFLAGS"
5668 am_save_LIBS="$LIBS"
5669 CPPFLAGS="$CPPFLAGS $INCICONV"
5670 LIBS="$LIBS $LIBICONV"
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <stdlib.h>
5674 #include <iconv.h>
5676 main ()
5678 iconv_t cd = iconv_open("","");
5679 iconv(cd,NULL,NULL,NULL,NULL);
5680 iconv_close(cd);
5682 return 0;
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"; then :
5686 am_cv_lib_iconv=yes
5687 am_cv_func_iconv=yes
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 CPPFLAGS="$am_save_CPPFLAGS"
5692 LIBS="$am_save_LIBS"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5697 $as_echo "$am_cv_func_iconv" >&6; }
5698 if test "$am_cv_func_iconv" = yes; then
5700 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5703 if test "$am_cv_lib_iconv" = yes; then
5705 for element in $INCICONV; do
5706 haveit=
5707 for x in $CPPFLAGS; do
5709 acl_save_prefix="$prefix"
5710 prefix="$acl_final_prefix"
5711 acl_save_exec_prefix="$exec_prefix"
5712 exec_prefix="$acl_final_exec_prefix"
5713 eval x=\"$x\"
5714 exec_prefix="$acl_save_exec_prefix"
5715 prefix="$acl_save_prefix"
5717 if test "X$x" = "X$element"; then
5718 haveit=yes
5719 break
5721 done
5722 if test -z "$haveit"; then
5723 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5725 done
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5728 $as_echo_n "checking how to link with libiconv... " >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5730 $as_echo "$LIBICONV" >&6; }
5731 else
5732 LIBICONV=
5733 LTLIBICONV=
5738 if test "$am_cv_func_iconv" = yes; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5740 $as_echo_n "checking for iconv declaration... " >&6; }
5741 if ${am_cv_proto_iconv+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5748 #include <stdlib.h>
5749 #include <iconv.h>
5750 extern
5751 #ifdef __cplusplus
5753 #endif
5754 #if defined(__STDC__) || defined(__cplusplus)
5755 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5756 #else
5757 size_t iconv();
5758 #endif
5761 main ()
5765 return 0;
5767 _ACEOF
5768 if ac_fn_c_try_compile "$LINENO"; then :
5769 am_cv_proto_iconv_arg1=""
5770 else
5771 am_cv_proto_iconv_arg1="const"
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5777 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5779 }$am_cv_proto_iconv" >&5
5780 $as_echo "${ac_t:-
5781 }$am_cv_proto_iconv" >&6; }
5783 cat >>confdefs.h <<_ACEOF
5784 #define ICONV_CONST $am_cv_proto_iconv_arg1
5785 _ACEOF
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5791 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5792 if ${am_cv_langinfo_codeset+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <langinfo.h>
5799 main ()
5801 char* cs = nl_langinfo(CODESET);
5803 return 0;
5805 _ACEOF
5806 if ac_fn_c_try_link "$LINENO"; then :
5807 am_cv_langinfo_codeset=yes
5808 else
5809 am_cv_langinfo_codeset=no
5811 rm -f core conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5816 $as_echo "$am_cv_langinfo_codeset" >&6; }
5817 if test $am_cv_langinfo_codeset = yes; then
5819 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5823 if test $ac_cv_header_locale_h = yes; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5826 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5827 if ${am_cv_val_LC_MESSAGES+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <locale.h>
5834 main ()
5836 return LC_MESSAGES
5838 return 0;
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 am_cv_val_LC_MESSAGES=yes
5843 else
5844 am_cv_val_LC_MESSAGES=no
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5850 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5851 if test $am_cv_val_LC_MESSAGES = yes; then
5853 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5859 for ac_prog in bison
5861 # Extract the first word of "$ac_prog", so it can be a program name with args.
5862 set dummy $ac_prog; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_prog_INTLBISON+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -n "$INTLBISON"; then
5869 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_INTLBISON="$ac_prog"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5882 done
5883 done
5884 IFS=$as_save_IFS
5888 INTLBISON=$ac_cv_prog_INTLBISON
5889 if test -n "$INTLBISON"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5891 $as_echo "$INTLBISON" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5898 test -n "$INTLBISON" && break
5899 done
5901 if test -z "$INTLBISON"; then
5902 ac_verc_fail=yes
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5905 $as_echo_n "checking version of bison... " >&6; }
5906 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5907 case $ac_prog_version in
5908 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5909 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5910 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5911 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5912 esac
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5914 $as_echo "$ac_prog_version" >&6; }
5916 if test $ac_verc_fail = yes; then
5917 INTLBISON=:
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5936 $as_echo_n "checking whether NLS is requested... " >&6; }
5937 # Check whether --enable-nls was given.
5938 if test "${enable_nls+set}" = set; then :
5939 enableval=$enable_nls; USE_NLS=$enableval
5940 else
5941 USE_NLS=yes
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5945 $as_echo "$USE_NLS" >&6; }
5950 BUILD_INCLUDED_LIBINTL=no
5951 USE_INCLUDED_LIBINTL=no
5953 LIBINTL=
5954 LTLIBINTL=
5955 POSUB=
5957 if test "$USE_NLS" = "yes"; then
5958 gt_use_preinstalled_gnugettext=no
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5961 $as_echo_n "checking whether included gettext is requested... " >&6; }
5963 # Check whether --with-included-gettext was given.
5964 if test "${with_included_gettext+set}" = set; then :
5965 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5966 else
5967 nls_cv_force_use_gnu_gettext=no
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5971 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5973 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5974 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5982 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5983 if ${gt_cv_func_gnugettext2_libc+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #include <libintl.h>
5989 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5990 extern int _nl_msg_cat_cntr;
5991 extern int *_nl_domain_bindings;
5992 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
5993 #else
5994 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
5995 #endif
5998 main ()
6000 bindtextdomain ("", "");
6001 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6003 return 0;
6005 _ACEOF
6006 if ac_fn_c_try_link "$LINENO"; then :
6007 gt_cv_func_gnugettext2_libc=yes
6008 else
6009 gt_cv_func_gnugettext2_libc=no
6011 rm -f core conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6015 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6017 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6021 use_additional=yes
6023 acl_save_prefix="$prefix"
6024 prefix="$acl_final_prefix"
6025 acl_save_exec_prefix="$exec_prefix"
6026 exec_prefix="$acl_final_exec_prefix"
6028 eval additional_includedir=\"$includedir\"
6029 eval additional_libdir=\"$libdir\"
6031 exec_prefix="$acl_save_exec_prefix"
6032 prefix="$acl_save_prefix"
6035 # Check whether --with-libintl-prefix was given.
6036 if test "${with_libintl_prefix+set}" = set; then :
6037 withval=$with_libintl_prefix;
6038 if test "X$withval" = "Xno"; then
6039 use_additional=no
6040 else
6041 if test "X$withval" = "X"; then
6043 acl_save_prefix="$prefix"
6044 prefix="$acl_final_prefix"
6045 acl_save_exec_prefix="$exec_prefix"
6046 exec_prefix="$acl_final_exec_prefix"
6048 eval additional_includedir=\"$includedir\"
6049 eval additional_libdir=\"$libdir\"
6051 exec_prefix="$acl_save_exec_prefix"
6052 prefix="$acl_save_prefix"
6054 else
6055 additional_includedir="$withval/include"
6056 additional_libdir="$withval/lib"
6063 # Check whether --with-libintl-type was given.
6064 if test "${with_libintl_type+set}" = set; then :
6065 withval=$with_libintl_type; with_libintl_type=$withval
6066 else
6067 with_libintl_type=auto
6070 lib_type=`eval echo \$with_libintl_type`
6072 LIBINTL=
6073 LTLIBINTL=
6074 INCINTL=
6075 rpathdirs=
6076 ltrpathdirs=
6077 names_already_handled=
6078 names_next_round='intl '
6079 while test -n "$names_next_round"; do
6080 names_this_round="$names_next_round"
6081 names_next_round=
6082 for name in $names_this_round; do
6083 already_handled=
6084 for n in $names_already_handled; do
6085 if test "$n" = "$name"; then
6086 already_handled=yes
6087 break
6089 done
6090 if test -z "$already_handled"; then
6091 names_already_handled="$names_already_handled $name"
6092 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6093 eval value=\"\$HAVE_LIB$uppername\"
6094 if test -n "$value"; then
6095 if test "$value" = yes; then
6096 eval value=\"\$LIB$uppername\"
6097 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6098 eval value=\"\$LTLIB$uppername\"
6099 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6100 else
6103 else
6104 found_dir=
6105 found_la=
6106 found_so=
6107 found_a=
6108 if test $use_additional = yes; then
6109 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6110 found_dir="$additional_libdir"
6111 found_so="$additional_libdir/lib$name.$shlibext"
6112 if test -f "$additional_libdir/lib$name.la"; then
6113 found_la="$additional_libdir/lib$name.la"
6115 elif test x$lib_type != xshared; then
6116 if test -f "$additional_libdir/lib$name.$libext"; then
6117 found_dir="$additional_libdir"
6118 found_a="$additional_libdir/lib$name.$libext"
6119 if test -f "$additional_libdir/lib$name.la"; then
6120 found_la="$additional_libdir/lib$name.la"
6125 if test "X$found_dir" = "X"; then
6126 for x in $LDFLAGS $LTLIBINTL; do
6128 acl_save_prefix="$prefix"
6129 prefix="$acl_final_prefix"
6130 acl_save_exec_prefix="$exec_prefix"
6131 exec_prefix="$acl_final_exec_prefix"
6132 eval x=\"$x\"
6133 exec_prefix="$acl_save_exec_prefix"
6134 prefix="$acl_save_prefix"
6136 case "$x" in
6137 -L*)
6138 dir=`echo "X$x" | sed -e 's/^X-L//'`
6139 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6140 found_dir="$dir"
6141 found_so="$dir/lib$name.$shlibext"
6142 if test -f "$dir/lib$name.la"; then
6143 found_la="$dir/lib$name.la"
6145 elif test x$lib_type != xshared; then
6146 if test -f "$dir/lib$name.$libext"; then
6147 found_dir="$dir"
6148 found_a="$dir/lib$name.$libext"
6149 if test -f "$dir/lib$name.la"; then
6150 found_la="$dir/lib$name.la"
6155 esac
6156 if test "X$found_dir" != "X"; then
6157 break
6159 done
6161 if test "X$found_dir" != "X"; then
6162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6163 if test "X$found_so" != "X"; then
6164 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6165 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6166 else
6167 haveit=
6168 for x in $ltrpathdirs; do
6169 if test "X$x" = "X$found_dir"; then
6170 haveit=yes
6171 break
6173 done
6174 if test -z "$haveit"; then
6175 ltrpathdirs="$ltrpathdirs $found_dir"
6177 if test "$hardcode_direct" = yes; then
6178 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6179 else
6180 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6181 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6182 haveit=
6183 for x in $rpathdirs; do
6184 if test "X$x" = "X$found_dir"; then
6185 haveit=yes
6186 break
6188 done
6189 if test -z "$haveit"; then
6190 rpathdirs="$rpathdirs $found_dir"
6192 else
6193 haveit=
6194 for x in $LDFLAGS $LIBINTL; do
6196 acl_save_prefix="$prefix"
6197 prefix="$acl_final_prefix"
6198 acl_save_exec_prefix="$exec_prefix"
6199 exec_prefix="$acl_final_exec_prefix"
6200 eval x=\"$x\"
6201 exec_prefix="$acl_save_exec_prefix"
6202 prefix="$acl_save_prefix"
6204 if test "X$x" = "X-L$found_dir"; then
6205 haveit=yes
6206 break
6208 done
6209 if test -z "$haveit"; then
6210 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6212 if test "$hardcode_minus_L" != no; then
6213 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6214 else
6215 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6220 else
6221 if test "X$found_a" != "X"; then
6222 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6223 else
6224 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6227 additional_includedir=
6228 case "$found_dir" in
6229 */lib | */lib/)
6230 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6231 additional_includedir="$basedir/include"
6233 esac
6234 if test "X$additional_includedir" != "X"; then
6235 if test "X$additional_includedir" != "X/usr/include"; then
6236 haveit=
6237 if test "X$additional_includedir" = "X/usr/local/include"; then
6238 if test -n "$GCC"; then
6239 case $host_os in
6240 linux*) haveit=yes;;
6241 esac
6244 if test -z "$haveit"; then
6245 for x in $CPPFLAGS $INCINTL; do
6247 acl_save_prefix="$prefix"
6248 prefix="$acl_final_prefix"
6249 acl_save_exec_prefix="$exec_prefix"
6250 exec_prefix="$acl_final_exec_prefix"
6251 eval x=\"$x\"
6252 exec_prefix="$acl_save_exec_prefix"
6253 prefix="$acl_save_prefix"
6255 if test "X$x" = "X-I$additional_includedir"; then
6256 haveit=yes
6257 break
6259 done
6260 if test -z "$haveit"; then
6261 if test -d "$additional_includedir"; then
6262 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6268 if test -n "$found_la"; then
6269 save_libdir="$libdir"
6270 case "$found_la" in
6271 */* | *\\*) . "$found_la" ;;
6272 *) . "./$found_la" ;;
6273 esac
6274 libdir="$save_libdir"
6275 for dep in $dependency_libs; do
6276 case "$dep" in
6277 -L*)
6278 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6279 if test "X$additional_libdir" != "X/usr/lib"; then
6280 haveit=
6281 if test "X$additional_libdir" = "X/usr/local/lib"; then
6282 if test -n "$GCC"; then
6283 case $host_os in
6284 linux*) haveit=yes;;
6285 esac
6288 if test -z "$haveit"; then
6289 haveit=
6290 for x in $LDFLAGS $LIBINTL; do
6292 acl_save_prefix="$prefix"
6293 prefix="$acl_final_prefix"
6294 acl_save_exec_prefix="$exec_prefix"
6295 exec_prefix="$acl_final_exec_prefix"
6296 eval x=\"$x\"
6297 exec_prefix="$acl_save_exec_prefix"
6298 prefix="$acl_save_prefix"
6300 if test "X$x" = "X-L$additional_libdir"; then
6301 haveit=yes
6302 break
6304 done
6305 if test -z "$haveit"; then
6306 if test -d "$additional_libdir"; then
6307 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6310 haveit=
6311 for x in $LDFLAGS $LTLIBINTL; do
6313 acl_save_prefix="$prefix"
6314 prefix="$acl_final_prefix"
6315 acl_save_exec_prefix="$exec_prefix"
6316 exec_prefix="$acl_final_exec_prefix"
6317 eval x=\"$x\"
6318 exec_prefix="$acl_save_exec_prefix"
6319 prefix="$acl_save_prefix"
6321 if test "X$x" = "X-L$additional_libdir"; then
6322 haveit=yes
6323 break
6325 done
6326 if test -z "$haveit"; then
6327 if test -d "$additional_libdir"; then
6328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6334 -R*)
6335 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6336 if test "$enable_rpath" != no; then
6337 haveit=
6338 for x in $rpathdirs; do
6339 if test "X$x" = "X$dir"; then
6340 haveit=yes
6341 break
6343 done
6344 if test -z "$haveit"; then
6345 rpathdirs="$rpathdirs $dir"
6347 haveit=
6348 for x in $ltrpathdirs; do
6349 if test "X$x" = "X$dir"; then
6350 haveit=yes
6351 break
6353 done
6354 if test -z "$haveit"; then
6355 ltrpathdirs="$ltrpathdirs $dir"
6359 -l*)
6360 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6362 *.la)
6363 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6366 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6369 esac
6370 done
6372 else
6373 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
6374 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6375 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6376 else
6377 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
6378 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
6383 done
6384 done
6385 if test "X$rpathdirs" != "X"; then
6386 if test -n "$hardcode_libdir_separator"; then
6387 alldirs=
6388 for found_dir in $rpathdirs; do
6389 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6390 done
6391 acl_save_libdir="$libdir"
6392 libdir="$alldirs"
6393 eval flag=\"$hardcode_libdir_flag_spec\"
6394 libdir="$acl_save_libdir"
6395 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6396 else
6397 for found_dir in $rpathdirs; do
6398 acl_save_libdir="$libdir"
6399 libdir="$found_dir"
6400 eval flag=\"$hardcode_libdir_flag_spec\"
6401 libdir="$acl_save_libdir"
6402 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6403 done
6406 if test "X$ltrpathdirs" != "X"; then
6407 for found_dir in $ltrpathdirs; do
6408 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6409 done
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6413 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6414 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 gt_save_CPPFLAGS="$CPPFLAGS"
6418 CPPFLAGS="$CPPFLAGS $INCINTL"
6419 gt_save_LIBS="$LIBS"
6420 LIBS="$LIBS $LIBINTL"
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <libintl.h>
6424 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6425 extern int _nl_msg_cat_cntr;
6426 extern
6427 #ifdef __cplusplus
6429 #endif
6430 const char *_nl_expand_alias ();
6431 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6432 #else
6433 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6434 #endif
6437 main ()
6439 bindtextdomain ("", "");
6440 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6442 return 0;
6444 _ACEOF
6445 if ac_fn_c_try_link "$LINENO"; then :
6446 gt_cv_func_gnugettext2_libintl=yes
6447 else
6448 gt_cv_func_gnugettext2_libintl=no
6450 rm -f core conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
6452 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6453 LIBS="$LIBS $LIBICONV"
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #include <libintl.h>
6457 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6458 extern int _nl_msg_cat_cntr;
6459 extern
6460 #ifdef __cplusplus
6462 #endif
6463 const char *_nl_expand_alias ();
6464 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6465 #else
6466 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6467 #endif
6470 main ()
6472 bindtextdomain ("", "");
6473 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6475 return 0;
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"; then :
6479 LIBINTL="$LIBINTL $LIBICONV"
6480 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6481 gt_cv_func_gnugettext2_libintl=yes
6484 rm -f core conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6487 CPPFLAGS="$gt_save_CPPFLAGS"
6488 LIBS="$gt_save_LIBS"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6491 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6494 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6495 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6496 && test "$PACKAGE" != gettext-runtime \
6497 && test "$PACKAGE" != gettext-tools; }; then
6498 gt_use_preinstalled_gnugettext=yes
6499 else
6500 LIBINTL=
6501 LTLIBINTL=
6502 INCINTL=
6506 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6507 nls_cv_use_gnu_gettext=yes
6511 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6512 BUILD_INCLUDED_LIBINTL=yes
6513 USE_INCLUDED_LIBINTL=yes
6514 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6515 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6516 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6519 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6520 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6521 CATOBJEXT=.gmo
6525 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6526 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6528 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6530 else
6531 USE_NLS=no
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6536 $as_echo_n "checking whether to use NLS... " >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6538 $as_echo "$USE_NLS" >&6; }
6539 if test "$USE_NLS" = "yes"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6541 $as_echo_n "checking where the gettext function comes from... " >&6; }
6542 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6543 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6544 gt_source="external libintl"
6545 else
6546 gt_source="libc"
6548 else
6549 gt_source="included intl directory"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6552 $as_echo "$gt_source" >&6; }
6555 if test "$USE_NLS" = "yes"; then
6557 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6558 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6560 $as_echo_n "checking how to link with libintl... " >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6562 $as_echo "$LIBINTL" >&6; }
6564 for element in $INCINTL; do
6565 haveit=
6566 for x in $CPPFLAGS; do
6568 acl_save_prefix="$prefix"
6569 prefix="$acl_final_prefix"
6570 acl_save_exec_prefix="$exec_prefix"
6571 exec_prefix="$acl_final_exec_prefix"
6572 eval x=\"$x\"
6573 exec_prefix="$acl_save_exec_prefix"
6574 prefix="$acl_save_prefix"
6576 if test "X$x" = "X$element"; then
6577 haveit=yes
6578 break
6580 done
6581 if test -z "$haveit"; then
6582 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6584 done
6589 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6592 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6596 POSUB=po
6600 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6601 BUILD_INCLUDED_LIBINTL=yes
6608 nls_cv_header_intl=
6609 nls_cv_header_libgt=
6611 DATADIRNAME=share
6614 INSTOBJEXT=.mo
6617 GENCAT=gencat
6620 if test "$USE_INCLUDED_LIBINTL" = yes; then
6621 INTLOBJS="\$(GETTOBJS)"
6625 INTL_LIBTOOL_SUFFIX_PREFIX=
6629 INTLLIBS="$LIBINTL"
6637 # This replaces the extensive use of DEFS in the original Makefile.in.
6639 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6642 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6645 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6648 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6651 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6654 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6657 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6660 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6661 for ac_prog in aclocal
6663 # Extract the first word of "$ac_prog", so it can be a program name with args.
6664 set dummy $ac_prog; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_ACLOCAL+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$ACLOCAL"; then
6671 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ACLOCAL="$ac_prog"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6684 done
6685 done
6686 IFS=$as_save_IFS
6690 ACLOCAL=$ac_cv_prog_ACLOCAL
6691 if test -n "$ACLOCAL"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6693 $as_echo "$ACLOCAL" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6700 test -n "$ACLOCAL" && break
6701 done
6702 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6704 for ac_prog in autoconf
6706 # Extract the first word of "$ac_prog", so it can be a program name with args.
6707 set dummy $ac_prog; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_AUTOCONF+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 if test -n "$AUTOCONF"; then
6714 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_AUTOCONF="$ac_prog"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6727 done
6728 done
6729 IFS=$as_save_IFS
6733 AUTOCONF=$ac_cv_prog_AUTOCONF
6734 if test -n "$AUTOCONF"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6736 $as_echo "$AUTOCONF" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6743 test -n "$AUTOCONF" && break
6744 done
6745 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6747 for ac_prog in autoheader
6749 # Extract the first word of "$ac_prog", so it can be a program name with args.
6750 set dummy $ac_prog; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_AUTOHEADER+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 if test -n "$AUTOHEADER"; then
6757 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_AUTOHEADER="$ac_prog"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6770 done
6771 done
6772 IFS=$as_save_IFS
6776 AUTOHEADER=$ac_cv_prog_AUTOHEADER
6777 if test -n "$AUTOHEADER"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6779 $as_echo "$AUTOHEADER" >&6; }
6780 else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6786 test -n "$AUTOHEADER" && break
6787 done
6788 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6791 # Check whether --enable-maintainer-mode was given.
6792 if test "${enable_maintainer_mode+set}" = set; then :
6793 enableval=$enable_maintainer_mode;
6794 else
6795 enable_maintainer_mode=no
6798 if test "x$enable_maintainer_mode" = xno; then
6799 MAINT='#'
6800 else
6801 MAINT=
6805 if test -z "$CTAGS"; then
6806 CTAGS=ctags
6809 if test -z "$ETAGS"; then
6810 ETAGS=etags
6813 if test -z "$MKID"; then
6814 MKID=mkid
6818 # Additional info for config.intl.
6822 LIBINTL_DEP=
6823 INCINTL=
6824 case $USE_INCLUDED_LIBINTL in
6825 yes)
6826 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6827 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6828 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6829 INCINTL='-I${top_builddir}/../intl'
6831 esac
6833 BISON3_YES='#'
6834 BISON3_NO=
6835 if test "$INTLBISON" != :; then
6836 ac_bison3=no
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5
6838 $as_echo_n "checking bison 3 or later... " >&6; }
6839 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6840 case $ac_prog_version in
6841 [3-9].*)
6842 ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;;
6843 *) ac_prog_version="$ac_prog_version, old";;
6844 esac
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6846 $as_echo "$ac_prog_version" >&6; }
6847 if test $ac_bison3 = yes; then
6848 BISON3_YES=
6849 BISON3_NO='#'
6855 # Check whether --enable-host-shared was given.
6856 if test "${enable_host_shared+set}" = set; then :
6857 enableval=$enable_host_shared; PICFLAG=-fPIC
6858 else
6859 PICFLAG=
6864 ac_config_files="$ac_config_files Makefile config.intl"
6866 cat >confcache <<\_ACEOF
6867 # This file is a shell script that caches the results of configure
6868 # tests run on this system so they can be shared between configure
6869 # scripts and configure runs, see configure's option --config-cache.
6870 # It is not useful on other systems. If it contains results you don't
6871 # want to keep, you may remove or edit it.
6873 # config.status only pays attention to the cache file if you give it
6874 # the --recheck option to rerun configure.
6876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6878 # following values.
6880 _ACEOF
6882 # The following way of writing the cache mishandles newlines in values,
6883 # but we know of no workaround that is simple, portable, and efficient.
6884 # So, we kill variables containing newlines.
6885 # Ultrix sh set writes to stderr and can't be redirected directly,
6886 # and sets the high bit in the cache file unless we assign to the vars.
6888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6889 eval ac_val=\$$ac_var
6890 case $ac_val in #(
6891 *${as_nl}*)
6892 case $ac_var in #(
6893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6895 esac
6896 case $ac_var in #(
6897 _ | IFS | as_nl) ;; #(
6898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6899 *) { eval $ac_var=; unset $ac_var;} ;;
6900 esac ;;
6901 esac
6902 done
6904 (set) 2>&1 |
6905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6906 *${as_nl}ac_space=\ *)
6907 # `set' does not quote correctly, so add quotes: double-quote
6908 # substitution turns \\\\ into \\, and sed turns \\ into \.
6909 sed -n \
6910 "s/'/'\\\\''/g;
6911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6912 ;; #(
6914 # `set' quotes correctly as required by POSIX, so do not add quotes.
6915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6917 esac |
6918 sort
6920 sed '
6921 /^ac_cv_env_/b end
6922 t clear
6923 :clear
6924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6925 t end
6926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6927 :end' >>confcache
6928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6929 if test -w "$cache_file"; then
6930 if test "x$cache_file" != "x/dev/null"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6932 $as_echo "$as_me: updating cache $cache_file" >&6;}
6933 if test ! -f "$cache_file" || test -h "$cache_file"; then
6934 cat confcache >"$cache_file"
6935 else
6936 case $cache_file in #(
6937 */* | ?:*)
6938 mv -f confcache "$cache_file"$$ &&
6939 mv -f "$cache_file"$$ "$cache_file" ;; #(
6941 mv -f confcache "$cache_file" ;;
6942 esac
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6947 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6950 rm -f confcache
6952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6953 # Let make expand exec_prefix.
6954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6956 DEFS=-DHAVE_CONFIG_H
6958 ac_libobjs=
6959 ac_ltlibobjs=
6961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6962 # 1. Remove the extension, and $U if already installed.
6963 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6964 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6965 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6966 # will be set to the directory where LIBOBJS objects are built.
6967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6968 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6969 done
6970 LIBOBJS=$ac_libobjs
6972 LTLIBOBJS=$ac_ltlibobjs
6976 : "${CONFIG_STATUS=./config.status}"
6977 ac_write_fail=0
6978 ac_clean_files_save=$ac_clean_files
6979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6981 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6982 as_write_fail=0
6983 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6984 #! $SHELL
6985 # Generated by $as_me.
6986 # Run this file to recreate the current configuration.
6987 # Compiler output produced by configure, useful for debugging
6988 # configure, is in config.log if it exists.
6990 debug=false
6991 ac_cs_recheck=false
6992 ac_cs_silent=false
6994 SHELL=\${CONFIG_SHELL-$SHELL}
6995 export SHELL
6996 _ASEOF
6997 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6998 ## -------------------- ##
6999 ## M4sh Initialization. ##
7000 ## -------------------- ##
7002 # Be more Bourne compatible
7003 DUALCASE=1; export DUALCASE # for MKS sh
7004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7005 emulate sh
7006 NULLCMD=:
7007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7008 # is contrary to our usage. Disable this feature.
7009 alias -g '${1+"$@"}'='"$@"'
7010 setopt NO_GLOB_SUBST
7011 else
7012 case `(set -o) 2>/dev/null` in #(
7013 *posix*) :
7014 set -o posix ;; #(
7015 *) :
7017 esac
7021 as_nl='
7023 export as_nl
7024 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7025 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7027 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7028 # Prefer a ksh shell builtin over an external printf program on Solaris,
7029 # but without wasting forks for bash or zsh.
7030 if test -z "$BASH_VERSION$ZSH_VERSION" \
7031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7032 as_echo='print -r --'
7033 as_echo_n='print -rn --'
7034 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7035 as_echo='printf %s\n'
7036 as_echo_n='printf %s'
7037 else
7038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7040 as_echo_n='/usr/ucb/echo -n'
7041 else
7042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7043 as_echo_n_body='eval
7044 arg=$1;
7045 case $arg in #(
7046 *"$as_nl"*)
7047 expr "X$arg" : "X\\(.*\\)$as_nl";
7048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7049 esac;
7050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7052 export as_echo_n_body
7053 as_echo_n='sh -c $as_echo_n_body as_echo'
7055 export as_echo_body
7056 as_echo='sh -c $as_echo_body as_echo'
7059 # The user is always right.
7060 if test "${PATH_SEPARATOR+set}" != set; then
7061 PATH_SEPARATOR=:
7062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7064 PATH_SEPARATOR=';'
7069 # IFS
7070 # We need space, tab and new line, in precisely that order. Quoting is
7071 # there to prevent editors from complaining about space-tab.
7072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7073 # splitting by setting IFS to empty value.)
7074 IFS=" "" $as_nl"
7076 # Find who we are. Look in the path if we contain no directory separator.
7077 as_myself=
7078 case $0 in #((
7079 *[\\/]* ) as_myself=$0 ;;
7080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7086 done
7087 IFS=$as_save_IFS
7090 esac
7091 # We did not find ourselves, most probably we were run as `sh COMMAND'
7092 # in which case we are not to be found in the path.
7093 if test "x$as_myself" = x; then
7094 as_myself=$0
7096 if test ! -f "$as_myself"; then
7097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7098 exit 1
7101 # Unset variables that we do not need and which cause bugs (e.g. in
7102 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7103 # suppresses any "Segmentation fault" message there. '((' could
7104 # trigger a bug in pdksh 5.2.14.
7105 for as_var in BASH_ENV ENV MAIL MAILPATH
7106 do eval test x\${$as_var+set} = xset \
7107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7108 done
7109 PS1='$ '
7110 PS2='> '
7111 PS4='+ '
7113 # NLS nuisances.
7114 LC_ALL=C
7115 export LC_ALL
7116 LANGUAGE=C
7117 export LANGUAGE
7119 # CDPATH.
7120 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7124 # ----------------------------------------
7125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7127 # script with STATUS, using 1 if that was 0.
7128 as_fn_error ()
7130 as_status=$1; test $as_status -eq 0 && as_status=1
7131 if test "$4"; then
7132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7133 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7135 $as_echo "$as_me: error: $2" >&2
7136 as_fn_exit $as_status
7137 } # as_fn_error
7140 # as_fn_set_status STATUS
7141 # -----------------------
7142 # Set $? to STATUS, without forking.
7143 as_fn_set_status ()
7145 return $1
7146 } # as_fn_set_status
7148 # as_fn_exit STATUS
7149 # -----------------
7150 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7151 as_fn_exit ()
7153 set +e
7154 as_fn_set_status $1
7155 exit $1
7156 } # as_fn_exit
7158 # as_fn_unset VAR
7159 # ---------------
7160 # Portably unset VAR.
7161 as_fn_unset ()
7163 { eval $1=; unset $1;}
7165 as_unset=as_fn_unset
7166 # as_fn_append VAR VALUE
7167 # ----------------------
7168 # Append the text in VALUE to the end of the definition contained in VAR. Take
7169 # advantage of any shell optimizations that allow amortized linear growth over
7170 # repeated appends, instead of the typical quadratic growth present in naive
7171 # implementations.
7172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7173 eval 'as_fn_append ()
7175 eval $1+=\$2
7177 else
7178 as_fn_append ()
7180 eval $1=\$$1\$2
7182 fi # as_fn_append
7184 # as_fn_arith ARG...
7185 # ------------------
7186 # Perform arithmetic evaluation on the ARGs, and store the result in the
7187 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7188 # must be portable across $(()) and expr.
7189 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7190 eval 'as_fn_arith ()
7192 as_val=$(( $* ))
7194 else
7195 as_fn_arith ()
7197 as_val=`expr "$@" || test $? -eq 1`
7199 fi # as_fn_arith
7202 if expr a : '\(a\)' >/dev/null 2>&1 &&
7203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7204 as_expr=expr
7205 else
7206 as_expr=false
7209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7210 as_basename=basename
7211 else
7212 as_basename=false
7215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7216 as_dirname=dirname
7217 else
7218 as_dirname=false
7221 as_me=`$as_basename -- "$0" ||
7222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7223 X"$0" : 'X\(//\)$' \| \
7224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7225 $as_echo X/"$0" |
7226 sed '/^.*\/\([^/][^/]*\)\/*$/{
7227 s//\1/
7230 /^X\/\(\/\/\)$/{
7231 s//\1/
7234 /^X\/\(\/\).*/{
7235 s//\1/
7238 s/.*/./; q'`
7240 # Avoid depending upon Character Ranges.
7241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7244 as_cr_digits='0123456789'
7245 as_cr_alnum=$as_cr_Letters$as_cr_digits
7247 ECHO_C= ECHO_N= ECHO_T=
7248 case `echo -n x` in #(((((
7249 -n*)
7250 case `echo 'xy\c'` in
7251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7252 xy) ECHO_C='\c';;
7253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7254 ECHO_T=' ';;
7255 esac;;
7257 ECHO_N='-n';;
7258 esac
7260 rm -f conf$$ conf$$.exe conf$$.file
7261 if test -d conf$$.dir; then
7262 rm -f conf$$.dir/conf$$.file
7263 else
7264 rm -f conf$$.dir
7265 mkdir conf$$.dir 2>/dev/null
7267 if (echo >conf$$.file) 2>/dev/null; then
7268 if ln -s conf$$.file conf$$ 2>/dev/null; then
7269 as_ln_s='ln -s'
7270 # ... but there are two gotchas:
7271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7273 # In both cases, we have to default to `cp -pR'.
7274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7275 as_ln_s='cp -pR'
7276 elif ln conf$$.file conf$$ 2>/dev/null; then
7277 as_ln_s=ln
7278 else
7279 as_ln_s='cp -pR'
7281 else
7282 as_ln_s='cp -pR'
7284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7285 rmdir conf$$.dir 2>/dev/null
7288 # as_fn_mkdir_p
7289 # -------------
7290 # Create "$as_dir" as a directory, including parents if necessary.
7291 as_fn_mkdir_p ()
7294 case $as_dir in #(
7295 -*) as_dir=./$as_dir;;
7296 esac
7297 test -d "$as_dir" || eval $as_mkdir_p || {
7298 as_dirs=
7299 while :; do
7300 case $as_dir in #(
7301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7302 *) as_qdir=$as_dir;;
7303 esac
7304 as_dirs="'$as_qdir' $as_dirs"
7305 as_dir=`$as_dirname -- "$as_dir" ||
7306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7307 X"$as_dir" : 'X\(//\)[^/]' \| \
7308 X"$as_dir" : 'X\(//\)$' \| \
7309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7310 $as_echo X"$as_dir" |
7311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7312 s//\1/
7315 /^X\(\/\/\)[^/].*/{
7316 s//\1/
7319 /^X\(\/\/\)$/{
7320 s//\1/
7323 /^X\(\/\).*/{
7324 s//\1/
7327 s/.*/./; q'`
7328 test -d "$as_dir" && break
7329 done
7330 test -z "$as_dirs" || eval "mkdir $as_dirs"
7331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7334 } # as_fn_mkdir_p
7335 if mkdir -p . 2>/dev/null; then
7336 as_mkdir_p='mkdir -p "$as_dir"'
7337 else
7338 test -d ./-p && rmdir ./-p
7339 as_mkdir_p=false
7343 # as_fn_executable_p FILE
7344 # -----------------------
7345 # Test if FILE is an executable regular file.
7346 as_fn_executable_p ()
7348 test -f "$1" && test -x "$1"
7349 } # as_fn_executable_p
7350 as_test_x='test -x'
7351 as_executable_p=as_fn_executable_p
7353 # Sed expression to map a string onto a valid CPP name.
7354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7356 # Sed expression to map a string onto a valid variable name.
7357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7360 exec 6>&1
7361 ## ----------------------------------- ##
7362 ## Main body of $CONFIG_STATUS script. ##
7363 ## ----------------------------------- ##
7364 _ASEOF
7365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7368 # Save the log message, to keep $0 and so on meaningful, and to
7369 # report actual input values of CONFIG_FILES etc. instead of their
7370 # values after options handling.
7371 ac_log="
7372 This file was extended by $as_me, which was
7373 generated by GNU Autoconf 2.69. Invocation command line was
7375 CONFIG_FILES = $CONFIG_FILES
7376 CONFIG_HEADERS = $CONFIG_HEADERS
7377 CONFIG_LINKS = $CONFIG_LINKS
7378 CONFIG_COMMANDS = $CONFIG_COMMANDS
7379 $ $0 $@
7381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7384 _ACEOF
7386 case $ac_config_files in *"
7387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7388 esac
7390 case $ac_config_headers in *"
7391 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7392 esac
7395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7396 # Files that config.status was made for.
7397 config_files="$ac_config_files"
7398 config_headers="$ac_config_headers"
7399 config_commands="$ac_config_commands"
7401 _ACEOF
7403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7404 ac_cs_usage="\
7405 \`$as_me' instantiates files and other configuration actions
7406 from templates according to the current configuration. Unless the files
7407 and actions are specified as TAGs, all are instantiated by default.
7409 Usage: $0 [OPTION]... [TAG]...
7411 -h, --help print this help, then exit
7412 -V, --version print version number and configuration settings, then exit
7413 --config print configuration, then exit
7414 -q, --quiet, --silent
7415 do not print progress messages
7416 -d, --debug don't remove temporary files
7417 --recheck update $as_me by reconfiguring in the same conditions
7418 --file=FILE[:TEMPLATE]
7419 instantiate the configuration file FILE
7420 --header=FILE[:TEMPLATE]
7421 instantiate the configuration header FILE
7423 Configuration files:
7424 $config_files
7426 Configuration headers:
7427 $config_headers
7429 Configuration commands:
7430 $config_commands
7432 Report bugs to the package provider."
7434 _ACEOF
7435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7436 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7437 ac_cs_version="\\
7438 config.status
7439 configured by $0, generated by GNU Autoconf 2.69,
7440 with options \\"\$ac_cs_config\\"
7442 Copyright (C) 2012 Free Software Foundation, Inc.
7443 This config.status script is free software; the Free Software Foundation
7444 gives unlimited permission to copy, distribute and modify it."
7446 ac_pwd='$ac_pwd'
7447 srcdir='$srcdir'
7448 INSTALL='$INSTALL'
7449 test -n "\$AWK" || AWK=awk
7450 _ACEOF
7452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7453 # The default lists apply if the user does not specify any file.
7454 ac_need_defaults=:
7455 while test $# != 0
7457 case $1 in
7458 --*=?*)
7459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7460 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7461 ac_shift=:
7463 --*=)
7464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7465 ac_optarg=
7466 ac_shift=:
7469 ac_option=$1
7470 ac_optarg=$2
7471 ac_shift=shift
7473 esac
7475 case $ac_option in
7476 # Handling of the options.
7477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7478 ac_cs_recheck=: ;;
7479 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7480 $as_echo "$ac_cs_version"; exit ;;
7481 --config | --confi | --conf | --con | --co | --c )
7482 $as_echo "$ac_cs_config"; exit ;;
7483 --debug | --debu | --deb | --de | --d | -d )
7484 debug=: ;;
7485 --file | --fil | --fi | --f )
7486 $ac_shift
7487 case $ac_optarg in
7488 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7489 '') as_fn_error $? "missing file argument" ;;
7490 esac
7491 as_fn_append CONFIG_FILES " '$ac_optarg'"
7492 ac_need_defaults=false;;
7493 --header | --heade | --head | --hea )
7494 $ac_shift
7495 case $ac_optarg in
7496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7497 esac
7498 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7499 ac_need_defaults=false;;
7500 --he | --h)
7501 # Conflict between --help and --header
7502 as_fn_error $? "ambiguous option: \`$1'
7503 Try \`$0 --help' for more information.";;
7504 --help | --hel | -h )
7505 $as_echo "$ac_cs_usage"; exit ;;
7506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7508 ac_cs_silent=: ;;
7510 # This is an error.
7511 -*) as_fn_error $? "unrecognized option: \`$1'
7512 Try \`$0 --help' for more information." ;;
7514 *) as_fn_append ac_config_targets " $1"
7515 ac_need_defaults=false ;;
7517 esac
7518 shift
7519 done
7521 ac_configure_extra_args=
7523 if $ac_cs_silent; then
7524 exec 6>/dev/null
7525 ac_configure_extra_args="$ac_configure_extra_args --silent"
7528 _ACEOF
7529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7530 if \$ac_cs_recheck; then
7531 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7532 shift
7533 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7534 CONFIG_SHELL='$SHELL'
7535 export CONFIG_SHELL
7536 exec "\$@"
7539 _ACEOF
7540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7541 exec 5>>config.log
7543 echo
7544 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7545 ## Running $as_me. ##
7546 _ASBOX
7547 $as_echo "$ac_log"
7548 } >&5
7550 _ACEOF
7551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7553 # INIT-COMMANDS
7555 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7556 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7557 # from automake.
7558 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7559 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7560 LINGUAS="${LINGUAS-%UNSET%}"
7563 _ACEOF
7565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7567 # Handling of arguments.
7568 for ac_config_target in $ac_config_targets
7570 case $ac_config_target in
7571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7572 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7574 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
7576 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7577 esac
7578 done
7581 # If the user did not use the arguments to specify the items to instantiate,
7582 # then the envvar interface is used. Set only those that are not.
7583 # We use the long form for the default assignment because of an extremely
7584 # bizarre bug on SunOS 4.1.3.
7585 if $ac_need_defaults; then
7586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7588 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7591 # Have a temporary directory for convenience. Make it in the build tree
7592 # simply because there is no reason against having it here, and in addition,
7593 # creating and moving files from /tmp can sometimes cause problems.
7594 # Hook for its removal unless debugging.
7595 # Note that there is a small window in which the directory will not be cleaned:
7596 # after its creation but before its name has been assigned to `$tmp'.
7597 $debug ||
7599 tmp= ac_tmp=
7600 trap 'exit_status=$?
7601 : "${ac_tmp:=$tmp}"
7602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7604 trap 'as_fn_exit 1' 1 2 13 15
7606 # Create a (secure) tmp directory for tmp files.
7609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7610 test -d "$tmp"
7611 } ||
7613 tmp=./conf$$-$RANDOM
7614 (umask 077 && mkdir "$tmp")
7615 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7616 ac_tmp=$tmp
7618 # Set up the scripts for CONFIG_FILES section.
7619 # No need to generate them if there are no CONFIG_FILES.
7620 # This happens for instance with `./config.status config.h'.
7621 if test -n "$CONFIG_FILES"; then
7624 ac_cr=`echo X | tr X '\015'`
7625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7626 # But we know of no other shell where ac_cr would be empty at this
7627 # point, so we can use a bashism as a fallback.
7628 if test "x$ac_cr" = x; then
7629 eval ac_cr=\$\'\\r\'
7631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7633 ac_cs_awk_cr='\\r'
7634 else
7635 ac_cs_awk_cr=$ac_cr
7638 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7639 _ACEOF
7643 echo "cat >conf$$subs.awk <<_ACEOF" &&
7644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7645 echo "_ACEOF"
7646 } >conf$$subs.sh ||
7647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7649 ac_delim='%!_!# '
7650 for ac_last_try in false false false false false :; do
7651 . ./conf$$subs.sh ||
7652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7655 if test $ac_delim_n = $ac_delim_num; then
7656 break
7657 elif $ac_last_try; then
7658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7659 else
7660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7662 done
7663 rm -f conf$$subs.sh
7665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7666 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7667 _ACEOF
7668 sed -n '
7670 s/^/S["/; s/!.*/"]=/
7673 s/^[^!]*!//
7674 :repl
7675 t repl
7676 s/'"$ac_delim"'$//
7677 t delim
7680 s/\(.\{148\}\)..*/\1/
7681 t more1
7682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7685 b repl
7686 :more1
7687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7690 s/.\{148\}//
7691 t nl
7692 :delim
7694 s/\(.\{148\}\)..*/\1/
7695 t more2
7696 s/["\\]/\\&/g; s/^/"/; s/$/"/
7699 :more2
7700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7703 s/.\{148\}//
7704 t delim
7705 ' <conf$$subs.awk | sed '
7706 /^[^""]/{
7708 s/\n//
7710 ' >>$CONFIG_STATUS || ac_write_fail=1
7711 rm -f conf$$subs.awk
7712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7713 _ACAWK
7714 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7715 for (key in S) S_is_set[key] = 1
7716 FS = "\a"
7720 line = $ 0
7721 nfields = split(line, field, "@")
7722 substed = 0
7723 len = length(field[1])
7724 for (i = 2; i < nfields; i++) {
7725 key = field[i]
7726 keylen = length(key)
7727 if (S_is_set[key]) {
7728 value = S[key]
7729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7730 len += length(value) + length(field[++i])
7731 substed = 1
7732 } else
7733 len += 1 + keylen
7736 print line
7739 _ACAWK
7740 _ACEOF
7741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7744 else
7746 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7747 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7748 _ACEOF
7750 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7751 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7752 # trailing colons and then remove the whole line if VPATH becomes empty
7753 # (actually we leave an empty line to preserve line numbers).
7754 if test "x$srcdir" = x.; then
7755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7757 s///
7758 s/^/:/
7759 s/[ ]*$/:/
7760 s/:\$(srcdir):/:/g
7761 s/:\${srcdir}:/:/g
7762 s/:@srcdir@:/:/g
7763 s/^:*//
7764 s/:*$//
7766 s/\(=[ ]*\).*/\1/
7768 s/\n//
7769 s/^[^=]*=[ ]*$//
7773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7774 fi # test -n "$CONFIG_FILES"
7776 # Set up the scripts for CONFIG_HEADERS section.
7777 # No need to generate them if there are no CONFIG_HEADERS.
7778 # This happens for instance with `./config.status Makefile'.
7779 if test -n "$CONFIG_HEADERS"; then
7780 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7781 BEGIN {
7782 _ACEOF
7784 # Transform confdefs.h into an awk script `defines.awk', embedded as
7785 # here-document in config.status, that substitutes the proper values into
7786 # config.h.in to produce config.h.
7788 # Create a delimiter string that does not exist in confdefs.h, to ease
7789 # handling of long lines.
7790 ac_delim='%!_!# '
7791 for ac_last_try in false false :; do
7792 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7793 if test -z "$ac_tt"; then
7794 break
7795 elif $ac_last_try; then
7796 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7797 else
7798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7800 done
7802 # For the awk script, D is an array of macro values keyed by name,
7803 # likewise P contains macro parameters if any. Preserve backslash
7804 # newline sequences.
7806 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7807 sed -n '
7808 s/.\{148\}/&'"$ac_delim"'/g
7809 t rset
7810 :rset
7811 s/^[ ]*#[ ]*define[ ][ ]*/ /
7812 t def
7814 :def
7815 s/\\$//
7816 t bsnl
7817 s/["\\]/\\&/g
7818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7819 D["\1"]=" \3"/p
7820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7822 :bsnl
7823 s/["\\]/\\&/g
7824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7825 D["\1"]=" \3\\\\\\n"\\/p
7826 t cont
7827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7828 t cont
7830 :cont
7832 s/.\{148\}/&'"$ac_delim"'/g
7833 t clear
7834 :clear
7835 s/\\$//
7836 t bsnlc
7837 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7839 :bsnlc
7840 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7841 b cont
7842 ' <confdefs.h | sed '
7843 s/'"$ac_delim"'/"\\\
7844 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7847 for (key in D) D_is_set[key] = 1
7848 FS = "\a"
7850 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7851 line = \$ 0
7852 split(line, arg, " ")
7853 if (arg[1] == "#") {
7854 defundef = arg[2]
7855 mac1 = arg[3]
7856 } else {
7857 defundef = substr(arg[1], 2)
7858 mac1 = arg[2]
7860 split(mac1, mac2, "(") #)
7861 macro = mac2[1]
7862 prefix = substr(line, 1, index(line, defundef) - 1)
7863 if (D_is_set[macro]) {
7864 # Preserve the white space surrounding the "#".
7865 print prefix "define", macro P[macro] D[macro]
7866 next
7867 } else {
7868 # Replace #undef with comments. This is necessary, for example,
7869 # in the case of _POSIX_SOURCE, which is predefined and required
7870 # on some systems where configure will not decide to define it.
7871 if (defundef == "undef") {
7872 print "/*", prefix defundef, macro, "*/"
7873 next
7877 { print }
7878 _ACAWK
7879 _ACEOF
7880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7881 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7882 fi # test -n "$CONFIG_HEADERS"
7885 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7886 shift
7887 for ac_tag
7889 case $ac_tag in
7890 :[FHLC]) ac_mode=$ac_tag; continue;;
7891 esac
7892 case $ac_mode$ac_tag in
7893 :[FHL]*:*);;
7894 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7895 :[FH]-) ac_tag=-:-;;
7896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7897 esac
7898 ac_save_IFS=$IFS
7899 IFS=:
7900 set x $ac_tag
7901 IFS=$ac_save_IFS
7902 shift
7903 ac_file=$1
7904 shift
7906 case $ac_mode in
7907 :L) ac_source=$1;;
7908 :[FH])
7909 ac_file_inputs=
7910 for ac_f
7912 case $ac_f in
7913 -) ac_f="$ac_tmp/stdin";;
7914 *) # Look for the file first in the build tree, then in the source tree
7915 # (if the path is not absolute). The absolute path cannot be DOS-style,
7916 # because $ac_f cannot contain `:'.
7917 test -f "$ac_f" ||
7918 case $ac_f in
7919 [\\/$]*) false;;
7920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7921 esac ||
7922 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7923 esac
7924 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7925 as_fn_append ac_file_inputs " '$ac_f'"
7926 done
7928 # Let's still pretend it is `configure' which instantiates (i.e., don't
7929 # use $as_me), people would be surprised to read:
7930 # /* config.h. Generated by config.status. */
7931 configure_input='Generated from '`
7932 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7933 `' by configure.'
7934 if test x"$ac_file" != x-; then
7935 configure_input="$ac_file. $configure_input"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7937 $as_echo "$as_me: creating $ac_file" >&6;}
7939 # Neutralize special characters interpreted by sed in replacement strings.
7940 case $configure_input in #(
7941 *\&* | *\|* | *\\* )
7942 ac_sed_conf_input=`$as_echo "$configure_input" |
7943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7944 *) ac_sed_conf_input=$configure_input;;
7945 esac
7947 case $ac_tag in
7948 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7950 esac
7952 esac
7954 ac_dir=`$as_dirname -- "$ac_file" ||
7955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7956 X"$ac_file" : 'X\(//\)[^/]' \| \
7957 X"$ac_file" : 'X\(//\)$' \| \
7958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7959 $as_echo X"$ac_file" |
7960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7961 s//\1/
7964 /^X\(\/\/\)[^/].*/{
7965 s//\1/
7968 /^X\(\/\/\)$/{
7969 s//\1/
7972 /^X\(\/\).*/{
7973 s//\1/
7976 s/.*/./; q'`
7977 as_dir="$ac_dir"; as_fn_mkdir_p
7978 ac_builddir=.
7980 case "$ac_dir" in
7981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7984 # A ".." for each directory in $ac_dir_suffix.
7985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7986 case $ac_top_builddir_sub in
7987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7989 esac ;;
7990 esac
7991 ac_abs_top_builddir=$ac_pwd
7992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7993 # for backward compatibility:
7994 ac_top_builddir=$ac_top_build_prefix
7996 case $srcdir in
7997 .) # We are building in place.
7998 ac_srcdir=.
7999 ac_top_srcdir=$ac_top_builddir_sub
8000 ac_abs_top_srcdir=$ac_pwd ;;
8001 [\\/]* | ?:[\\/]* ) # Absolute name.
8002 ac_srcdir=$srcdir$ac_dir_suffix;
8003 ac_top_srcdir=$srcdir
8004 ac_abs_top_srcdir=$srcdir ;;
8005 *) # Relative name.
8006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8007 ac_top_srcdir=$ac_top_build_prefix$srcdir
8008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8009 esac
8010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8013 case $ac_mode in
8016 # CONFIG_FILE
8019 case $INSTALL in
8020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8022 esac
8023 _ACEOF
8025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8026 # If the template does not know about datarootdir, expand it.
8027 # FIXME: This hack should be removed a few years after 2.60.
8028 ac_datarootdir_hack=; ac_datarootdir_seen=
8029 ac_sed_dataroot='
8030 /datarootdir/ {
8034 /@datadir@/p
8035 /@docdir@/p
8036 /@infodir@/p
8037 /@localedir@/p
8038 /@mandir@/p'
8039 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8040 *datarootdir*) ac_datarootdir_seen=yes;;
8041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8043 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8044 _ACEOF
8045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8046 ac_datarootdir_hack='
8047 s&@datadir@&$datadir&g
8048 s&@docdir@&$docdir&g
8049 s&@infodir@&$infodir&g
8050 s&@localedir@&$localedir&g
8051 s&@mandir@&$mandir&g
8052 s&\\\${datarootdir}&$datarootdir&g' ;;
8053 esac
8054 _ACEOF
8056 # Neutralize VPATH when `$srcdir' = `.'.
8057 # Shell code in configure.ac might set extrasub.
8058 # FIXME: do we really want to maintain this feature?
8059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8060 ac_sed_extra="$ac_vpsub
8061 $extrasub
8062 _ACEOF
8063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8066 s|@configure_input@|$ac_sed_conf_input|;t t
8067 s&@top_builddir@&$ac_top_builddir_sub&;t t
8068 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8069 s&@srcdir@&$ac_srcdir&;t t
8070 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8071 s&@top_srcdir@&$ac_top_srcdir&;t t
8072 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8073 s&@builddir@&$ac_builddir&;t t
8074 s&@abs_builddir@&$ac_abs_builddir&;t t
8075 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8076 s&@INSTALL@&$ac_INSTALL&;t t
8077 $ac_datarootdir_hack
8079 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8085 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8087 which seems to be undefined. Please make sure it is defined" >&5
8088 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8089 which seems to be undefined. Please make sure it is defined" >&2;}
8091 rm -f "$ac_tmp/stdin"
8092 case $ac_file in
8093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8095 esac \
8096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8100 # CONFIG_HEADER
8102 if test x"$ac_file" != x-; then
8104 $as_echo "/* $configure_input */" \
8105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8106 } >"$ac_tmp/config.h" \
8107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8108 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8110 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8111 else
8112 rm -f "$ac_file"
8113 mv "$ac_tmp/config.h" "$ac_file" \
8114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8116 else
8117 $as_echo "/* $configure_input */" \
8118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8119 || as_fn_error $? "could not create -" "$LINENO" 5
8123 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8124 $as_echo "$as_me: executing $ac_file commands" >&6;}
8126 esac
8129 case $ac_file$ac_mode in
8130 "default-1":C)
8131 for ac_file in $CONFIG_FILES; do
8132 # Support "outfile[:infile[:infile...]]"
8133 case "$ac_file" in
8134 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8135 esac
8136 # PO directories have a Makefile.in generated from Makefile.in.in.
8137 case "$ac_file" in */Makefile.in)
8138 # Adjust a relative srcdir.
8139 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8140 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8141 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8142 # In autoconf-2.13 it is called $ac_given_srcdir.
8143 # In autoconf-2.50 it is called $srcdir.
8144 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8145 case "$ac_given_srcdir" in
8146 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8147 /*) top_srcdir="$ac_given_srcdir" ;;
8148 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8149 esac
8150 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8151 rm -f "$ac_dir/POTFILES"
8152 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8153 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8154 POMAKEFILEDEPS="POTFILES.in"
8155 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8156 # on $ac_dir but don't depend on user-specified configuration
8157 # parameters.
8158 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8159 # The LINGUAS file contains the set of available languages.
8160 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8161 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
8163 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8164 # Hide the ALL_LINGUAS assigment from automake.
8165 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8166 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8167 else
8168 # The set of available languages was given in configure.ac.
8169 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8171 case "$ac_given_srcdir" in
8172 .) srcdirpre= ;;
8173 *) srcdirpre='$(srcdir)/' ;;
8174 esac
8175 POFILES=
8176 GMOFILES=
8177 UPDATEPOFILES=
8178 DUMMYPOFILES=
8179 for lang in $ALL_LINGUAS; do
8180 POFILES="$POFILES $srcdirpre$lang.po"
8181 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8182 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8183 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8184 done
8185 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8186 # environment variable.
8187 INST_LINGUAS=
8188 if test -n "$ALL_LINGUAS"; then
8189 for presentlang in $ALL_LINGUAS; do
8190 useit=no
8191 if test "%UNSET%" != "$LINGUAS"; then
8192 desiredlanguages="$LINGUAS"
8193 else
8194 desiredlanguages="$ALL_LINGUAS"
8196 for desiredlang in $desiredlanguages; do
8197 # Use the presentlang catalog if desiredlang is
8198 # a. equal to presentlang, or
8199 # b. a variant of presentlang (because in this case,
8200 # presentlang can be used as a fallback for messages
8201 # which are not translated in the desiredlang catalog).
8202 case "$desiredlang" in
8203 "$presentlang"*) useit=yes;;
8204 esac
8205 done
8206 if test $useit = yes; then
8207 INST_LINGUAS="$INST_LINGUAS $presentlang"
8209 done
8211 CATALOGS=
8212 if test -n "$INST_LINGUAS"; then
8213 for lang in $INST_LINGUAS; do
8214 CATALOGS="$CATALOGS $lang.gmo"
8215 done
8217 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8218 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"
8219 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8220 if test -f "$f"; then
8221 case "$f" in
8222 *.orig | *.bak | *~) ;;
8223 *) cat "$f" >> "$ac_dir/Makefile" ;;
8224 esac
8226 done
8229 esac
8230 done ;;
8232 esac
8233 done # for ac_tag
8236 as_fn_exit 0
8237 _ACEOF
8238 ac_clean_files=$ac_clean_files_save
8240 test $ac_write_fail = 0 ||
8241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8244 # configure is writing to config.log, and then calls config.status.
8245 # config.status does its own redirection, appending to config.log.
8246 # Unfortunately, on DOS this fails, as config.log is still kept open
8247 # by configure, so config.status won't be able to write to it; its
8248 # output is simply discarded. So we exec the FD to /dev/null,
8249 # effectively closing config.log, so it can be properly (re)opened and
8250 # appended to by config.status. When coming back to configure, we
8251 # need to make the FD available again.
8252 if test "$no_create" != yes; then
8253 ac_cs_success=:
8254 ac_config_status_args=
8255 test "$silent" = yes &&
8256 ac_config_status_args="$ac_config_status_args --quiet"
8257 exec 5>/dev/null
8258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8259 exec 5>>config.log
8260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8261 # would make configure fail if this is the last instruction.
8262 $ac_cs_success || as_fn_exit 1
8264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8266 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}