]> git.saurik.com Git - apt-legacy.git/blob - configure
Fix compilation of http when embedding into Cydia.
[apt-legacy.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="configure.in"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 gt_needs=
595 ac_subst_vars='LTLIBOBJS
596 LIBOBJS
597 BASH
598 POSUB
599 LTLIBINTL
600 LIBINTL
601 INTLLIBS
602 LTLIBICONV
603 LIBICONV
604 INTL_MACOSX_LIBS
605 XGETTEXT_EXTRA_OPTIONS
606 MSGMERGE
607 XGETTEXT_015
608 XGETTEXT
609 GMSGFMT_015
610 MSGFMT_015
611 GMSGFMT
612 MSGFMT
613 GETTEXT_MACRO_VERSION
614 USE_NLS
615 mkdir_p
616 MKDIR_P
617 INSTALL_DATA
618 INSTALL_SCRIPT
619 INSTALL_PROGRAM
620 SET_MAKE
621 GCC3DEP
622 NUM_PROCS
623 PROC_MULTIPLY
624 NUM_CPUS
625 GETCONF
626 DOTDIR
627 DOT
628 HAVE_DOT
629 PO4A
630 XSLTPROC
631 DOXYGEN
632 DEBIANDOC_TEXT
633 DEBIANDOC_HTML
634 NEED_SOCKLEN_T_DEFINE
635 HAVE_C9X
636 HAVE_TIMEGM
637 HAVE_STATVFS
638 BDBLIB
639 EGREP
640 GREP
641 PTHREADLIB
642 SOCKETLIBS
643 AR
644 RANLIB
645 CPP
646 ac_ct_CXX
647 CXXFLAGS
648 CXX
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 target_os
657 target_vendor
658 target_cpu
659 target
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 PACKAGE
669 target_alias
670 host_alias
671 build_alias
672 LIBS
673 ECHO_T
674 ECHO_N
675 ECHO_C
676 DEFS
677 mandir
678 localedir
679 libdir
680 psdir
681 pdfdir
682 dvidir
683 htmldir
684 infodir
685 docdir
686 oldincludedir
687 includedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 with_cpus
711 with_getconf
712 with_proc_multiply
713 with_procs
714 enable_nls
715 with_gnu_ld
716 enable_rpath
717 with_libiconv_prefix
718 with_libintl_prefix
719 '
720 ac_precious_vars='build_alias
721 host_alias
722 target_alias
723 CC
724 CFLAGS
725 LDFLAGS
726 LIBS
727 CPPFLAGS
728 CXX
729 CXXFLAGS
730 CCC
731 CPP'
732
733
734 # Initialize some variables set by options.
735 ac_init_help=
736 ac_init_version=false
737 ac_unrecognized_opts=
738 ac_unrecognized_sep=
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
755
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE}'
773 infodir='${datarootdir}/info'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
781
782 ac_prev=
783 ac_dashdash=
784 for ac_option
785 do
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
791 fi
792
793 case $ac_option in
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *) ac_optarg=yes ;;
796 esac
797
798 # Accept the important Cygnus configure options, so we can diagnose typos.
799
800 case $ac_dashdash$ac_option in
801 --)
802 ac_dashdash=yes ;;
803
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
808
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
813
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
820
821 --config-cache | -C)
822 cache_file=config.cache ;;
823
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
828
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
835
836 -disable-* | --disable-*)
837 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 as_fn_error "invalid feature name: $ac_useropt"
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
844 *"
845 "enable_$ac_useropt"
846 "*) ;;
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
849 esac
850 eval enable_$ac_useropt=no ;;
851
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
856
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
861
862 -enable-* | --enable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=\$ac_optarg ;;
877
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
886
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
890
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
897
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
902
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
908
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
915
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
920
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
925
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
932
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
937
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
944
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
949
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
953
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
957
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
961
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
970
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
975
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
982
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
989
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1006
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1011
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1016
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1020
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1026
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1037
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1042
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1047
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1054
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1059
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1062
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1065
1066 -with-* | --with-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error "invalid package name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "with_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval with_$ac_useropt=\$ac_optarg ;;
1081
1082 -without-* | --without-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=no ;;
1097
1098 --x)
1099 # Obsolete; use --with-x.
1100 with_x=yes ;;
1101
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1108
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1115
1116 -*) as_fn_error "unrecognized option: \`$ac_option'
1117 Try \`$0 --help' for more information."
1118 ;;
1119
1120 *=*)
1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122 # Reject names that are not valid shell variable names.
1123 case $ac_envvar in #(
1124 '' | [0-9]* | *[!_$as_cr_alnum]* )
1125 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1126 esac
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1129
1130 *)
1131 # FIXME: should be removed in autoconf 3.0.
1132 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 ;;
1137
1138 esac
1139 done
1140
1141 if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 as_fn_error "missing argument to $ac_option"
1144 fi
1145
1146 if test -n "$ac_unrecognized_opts"; then
1147 case $enable_option_checking in
1148 no) ;;
1149 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1150 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151 esac
1152 fi
1153
1154 # Check all directory arguments for consistency.
1155 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1156 datadir sysconfdir sharedstatedir localstatedir includedir \
1157 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1158 libdir localedir mandir
1159 do
1160 eval ac_val=\$$ac_var
1161 # Remove trailing slashes.
1162 case $ac_val in
1163 */ )
1164 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1165 eval $ac_var=\$ac_val;;
1166 esac
1167 # Be sure to have absolute directory names.
1168 case $ac_val in
1169 [\\/$]* | ?:[\\/]* ) continue;;
1170 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171 esac
1172 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1173 done
1174
1175 # There might be people who depend on the old broken behavior: `$host'
1176 # used to hold the argument of --host etc.
1177 # FIXME: To remove some day.
1178 build=$build_alias
1179 host=$host_alias
1180 target=$target_alias
1181
1182 # FIXME: To remove some day.
1183 if test "x$host_alias" != x; then
1184 if test "x$build_alias" = x; then
1185 cross_compiling=maybe
1186 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1187 If a cross compiler is detected then cross compile mode will be used." >&2
1188 elif test "x$build_alias" != "x$host_alias"; then
1189 cross_compiling=yes
1190 fi
1191 fi
1192
1193 ac_tool_prefix=
1194 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195
1196 test "$silent" = yes && exec 6>/dev/null
1197
1198
1199 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di=`ls -di .` &&
1201 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202 as_fn_error "working directory cannot be determined"
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 as_fn_error "pwd does not report name of working directory"
1205
1206
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir=`$as_dirname -- "$as_myself" ||
1212 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216 $as_echo X"$as_myself" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\/\)[^/].*/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)$/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\).*/{
1230 s//\1/
1231 q
1232 }
1233 s/.*/./; q'`
1234 srcdir=$ac_confdir
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 srcdir=..
1237 fi
1238 else
1239 ac_srcdir_defaulted=no
1240 fi
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1244 fi
1245 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246 ac_abs_confdir=`(
1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1248 pwd)`
1249 # When building in place, set srcdir=.
1250 if test "$ac_abs_confdir" = "$ac_pwd"; then
1251 srcdir=.
1252 fi
1253 # Remove unnecessary trailing slashes from srcdir.
1254 # Double slashes in file names in object file debugging info
1255 # mess up M-x gdb in Emacs.
1256 case $srcdir in
1257 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258 esac
1259 for ac_var in $ac_precious_vars; do
1260 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_${ac_var}_value=\$${ac_var}
1262 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264 done
1265
1266 #
1267 # Report the --help message.
1268 #
1269 if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1272 cat <<_ACEOF
1273 \`configure' configures this package to adapt to many kinds of systems.
1274
1275 Usage: $0 [OPTION]... [VAR=VALUE]...
1276
1277 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278 VAR=VALUE. See below for descriptions of some of the useful variables.
1279
1280 Defaults for the options are specified in brackets.
1281
1282 Configuration:
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1292
1293 Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
1295 [$ac_default_prefix]
1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1297 [PREFIX]
1298
1299 By default, \`make install' will install all the files in
1300 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302 for instance \`--prefix=\$HOME'.
1303
1304 For better control, use the options below.
1305
1306 Fine tuning of the installation directories:
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --libdir=DIR object code libraries [EPREFIX/lib]
1314 --includedir=DIR C header files [PREFIX/include]
1315 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1316 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1317 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1318 --infodir=DIR info documentation [DATAROOTDIR/info]
1319 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1320 --mandir=DIR man documentation [DATAROOTDIR/man]
1321 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1322 --htmldir=DIR html documentation [DOCDIR]
1323 --dvidir=DIR dvi documentation [DOCDIR]
1324 --pdfdir=DIR pdf documentation [DOCDIR]
1325 --psdir=DIR ps documentation [DOCDIR]
1326 _ACEOF
1327
1328 cat <<\_ACEOF
1329
1330 System types:
1331 --build=BUILD configure for building on BUILD [guessed]
1332 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1333 --target=TARGET configure for building compilers for TARGET [HOST]
1334 _ACEOF
1335 fi
1336
1337 if test -n "$ac_init_help"; then
1338
1339 cat <<\_ACEOF
1340
1341 Optional Features:
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --disable-nls do not use Native Language Support
1346 --disable-rpath do not hardcode runtime library paths
1347
1348 Optional Packages:
1349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1351 --with-cpus The number of cpus to be used for building(see --with-procs, default 1)
1352 --with-getconf Enable automagical buildtime configuration
1353 --with-proc-multiply Multiply this * number of cpus for parallel making(default 2).
1354 --with-procs The number of processes to run in parallel during make(num_cpus * multiplier).
1355 --with-gnu-ld assume the C compiler uses GNU ld default=no
1356 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1357 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1358 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1359 --without-libintl-prefix don't search for libintl in includedir and libdir
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CXX C++ compiler command
1370 CXXFLAGS C++ compiler flags
1371 CPP C preprocessor
1372
1373 Use these variables to override the choices made by `configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1375
1376 Report bugs to the package provider.
1377 _ACEOF
1378 ac_status=$?
1379 fi
1380
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d "$ac_dir" ||
1385 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1386 continue
1387 ac_builddir=.
1388
1389 case "$ac_dir" in
1390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *)
1392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1393 # A ".." for each directory in $ac_dir_suffix.
1394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1395 case $ac_top_builddir_sub in
1396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 esac ;;
1399 esac
1400 ac_abs_top_builddir=$ac_pwd
1401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1402 # for backward compatibility:
1403 ac_top_builddir=$ac_top_build_prefix
1404
1405 case $srcdir in
1406 .) # We are building in place.
1407 ac_srcdir=.
1408 ac_top_srcdir=$ac_top_builddir_sub
1409 ac_abs_top_srcdir=$ac_pwd ;;
1410 [\\/]* | ?:[\\/]* ) # Absolute name.
1411 ac_srcdir=$srcdir$ac_dir_suffix;
1412 ac_top_srcdir=$srcdir
1413 ac_abs_top_srcdir=$srcdir ;;
1414 *) # Relative name.
1415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1416 ac_top_srcdir=$ac_top_build_prefix$srcdir
1417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 esac
1419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420
1421 cd "$ac_dir" || { ac_status=$?; continue; }
1422 # Check for guested configure.
1423 if test -f "$ac_srcdir/configure.gnu"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1426 elif test -f "$ac_srcdir/configure"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure" --help=recursive
1429 else
1430 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 fi || ac_status=$?
1432 cd "$ac_pwd" || { ac_status=$?; break; }
1433 done
1434 fi
1435
1436 test -n "$ac_init_help" && exit $ac_status
1437 if $ac_init_version; then
1438 cat <<\_ACEOF
1439 configure
1440 generated by GNU Autoconf 2.65
1441
1442 Copyright (C) 2009 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1445 _ACEOF
1446 exit
1447 fi
1448
1449 ## ------------------------ ##
1450 ## Autoconf initialization. ##
1451 ## ------------------------ ##
1452
1453 # ac_fn_c_try_compile LINENO
1454 # --------------------------
1455 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1456 ac_fn_c_try_compile ()
1457 {
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 rm -f conftest.$ac_objext
1460 if { { ac_try="$ac_compile"
1461 case "(($ac_try" in
1462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463 *) ac_try_echo=$ac_try;;
1464 esac
1465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466 $as_echo "$ac_try_echo"; } >&5
1467 (eval "$ac_compile") 2>conftest.err
1468 ac_status=$?
1469 if test -s conftest.err; then
1470 grep -v '^ *+' conftest.err >conftest.er1
1471 cat conftest.er1 >&5
1472 mv -f conftest.er1 conftest.err
1473 fi
1474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && {
1476 test -z "$ac_c_werror_flag" ||
1477 test ! -s conftest.err
1478 } && test -s conftest.$ac_objext; then :
1479 ac_retval=0
1480 else
1481 $as_echo "$as_me: failed program was:" >&5
1482 sed 's/^/| /' conftest.$ac_ext >&5
1483
1484 ac_retval=1
1485 fi
1486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1487 as_fn_set_status $ac_retval
1488
1489 } # ac_fn_c_try_compile
1490
1491 # ac_fn_c_try_link LINENO
1492 # -----------------------
1493 # Try to link conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_link ()
1495 {
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext conftest$ac_exeext
1498 if { { ac_try="$ac_link"
1499 case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502 esac
1503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 $as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_link") 2>conftest.err
1506 ac_status=$?
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1511 fi
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest$ac_exeext && {
1517 test "$cross_compiling" = yes ||
1518 $as_test_x conftest$ac_exeext
1519 }; then :
1520 ac_retval=0
1521 else
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1524
1525 ac_retval=1
1526 fi
1527 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1528 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1529 # interfere with the next link command; also delete a directory that is
1530 # left behind by Apple's compiler. We do this before executing the actions.
1531 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_link
1536
1537 # ac_fn_cxx_try_compile LINENO
1538 # ----------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_cxx_try_compile ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_cxx_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_cxx_try_compile
1574
1575 # ac_fn_c_try_cpp LINENO
1576 # ----------------------
1577 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_cpp ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } >/dev/null && {
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_cpp
1611
1612 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1615 # the include files in INCLUDES and setting the cache variable VAR
1616 # accordingly.
1617 ac_fn_c_check_header_mongrel ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625 fi
1626 eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 else
1630 # Is the header compilable?
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1632 $as_echo_n "checking $2 usability... " >&6; }
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1635 $4
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639 ac_header_compiler=yes
1640 else
1641 ac_header_compiler=no
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1645 $as_echo "$ac_header_compiler" >&6; }
1646
1647 # Is the header present?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1649 $as_echo_n "checking $2 presence... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_cpp "$LINENO"; then :
1655 ac_header_preproc=yes
1656 else
1657 ac_header_preproc=no
1658 fi
1659 rm -f conftest.err conftest.$ac_ext
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1661 $as_echo "$ac_header_preproc" >&6; }
1662
1663 # So? What about this header?
1664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1665 yes:no: )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1667 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ;;
1671 no:yes:* )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1673 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1675 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1677 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1679 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1681 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 ;;
1683 esac
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1688 else
1689 eval "$3=\$ac_header_compiler"
1690 fi
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 fi
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696
1697 } # ac_fn_c_check_header_mongrel
1698
1699 # ac_fn_c_try_run LINENO
1700 # ----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702 # that executables *can* be run.
1703 ac_fn_c_try_run ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728 else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=$ac_status
1734 fi
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_run
1740
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 fi
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
1770 } # ac_fn_c_check_header_compile
1771
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787 #define $2 innocuous_$2
1788
1789 /* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
1793
1794 #ifdef __STDC__
1795 # include <limits.h>
1796 #else
1797 # include <assert.h>
1798 #endif
1799
1800 #undef $2
1801
1802 /* Override any GCC internal prototype to avoid an error.
1803 Use char because int might match the return type of a GCC
1804 builtin and then its argument prototype would still apply. */
1805 #ifdef __cplusplus
1806 extern "C"
1807 #endif
1808 char $2 ();
1809 /* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812 #if defined __stub_$2 || defined __stub___$2
1813 choke me
1814 #endif
1815
1816 int
1817 main ()
1818 {
1819 return $2 ();
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_link "$LINENO"; then :
1825 eval "$3=yes"
1826 else
1827 eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1831 fi
1832 eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
1837 } # ac_fn_c_check_func
1838
1839 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1840 # ----------------------------------------------------
1841 # Tries to find if the field MEMBER exists in type AGGR, after including
1842 # INCLUDES, setting cache variable VAR accordingly.
1843 ac_fn_c_check_member ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1847 $as_echo_n "checking for $2.$3... " >&6; }
1848 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $5
1854 int
1855 main ()
1856 {
1857 static $2 ac_aggr;
1858 if (ac_aggr.$3)
1859 return 0;
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 eval "$4=yes"
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $5
1870 int
1871 main ()
1872 {
1873 static $2 ac_aggr;
1874 if (sizeof ac_aggr.$3)
1875 return 0;
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$4=yes"
1882 else
1883 eval "$4=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$4
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893
1894 } # ac_fn_c_check_member
1895
1896 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1897 # --------------------------------------------
1898 # Tries to find the compile-time value of EXPR in a program that includes
1899 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1900 # computed
1901 ac_fn_c_compute_int ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if test "$cross_compiling" = yes; then
1905 # Depending upon the size, compute the lo and hi bounds.
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 int
1910 main ()
1911 {
1912 static int test_array [1 - 2 * !(($2) >= 0)];
1913 test_array [0] = 0
1914
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_lo=0 ac_mid=0
1921 while :; do
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 int
1926 main ()
1927 {
1928 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1929 test_array [0] = 0
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_hi=$ac_mid; break
1937 else
1938 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1939 if test $ac_lo -le $ac_mid; then
1940 ac_lo= ac_hi=
1941 break
1942 fi
1943 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 done
1947 else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main ()
1953 {
1954 static int test_array [1 - 2 * !(($2) < 0)];
1955 test_array [0] = 0
1956
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_hi=-1 ac_mid=-1
1963 while :; do
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1971 test_array [0] = 0
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_lo=$ac_mid; break
1979 else
1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1982 ac_lo= ac_hi=
1983 break
1984 fi
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 done
1989 else
1990 ac_lo= ac_hi=
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 # Binary search between lo and hi bounds.
1996 while test "x$ac_lo" != "x$ac_hi"; do
1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 int
2002 main ()
2003 {
2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 test_array [0] = 0
2006
2007 ;
2008 return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_hi=$ac_mid
2013 else
2014 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018 case $ac_lo in #((
2019 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2020 '') ac_retval=1 ;;
2021 esac
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 static long int longval () { return $2; }
2027 static unsigned long int ulongval () { return $2; }
2028 #include <stdio.h>
2029 #include <stdlib.h>
2030 int
2031 main ()
2032 {
2033
2034 FILE *f = fopen ("conftest.val", "w");
2035 if (! f)
2036 return 1;
2037 if (($2) < 0)
2038 {
2039 long int i = longval ();
2040 if (i != ($2))
2041 return 1;
2042 fprintf (f, "%ld", i);
2043 }
2044 else
2045 {
2046 unsigned long int i = ulongval ();
2047 if (i != ($2))
2048 return 1;
2049 fprintf (f, "%lu", i);
2050 }
2051 /* Do not output a trailing newline, as this causes \r\n confusion
2052 on some platforms. */
2053 return ferror (f) || fclose (f) != 0;
2054
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_run "$LINENO"; then :
2060 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2061 else
2062 ac_retval=1
2063 fi
2064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2065 conftest.$ac_objext conftest.beam conftest.$ac_ext
2066 rm -f conftest.val
2067
2068 fi
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 as_fn_set_status $ac_retval
2071
2072 } # ac_fn_c_compute_int
2073 cat >config.log <<_ACEOF
2074 This file contains any messages produced by compilers while
2075 running configure, to aid debugging if configure makes a mistake.
2076
2077 It was created by $as_me, which was
2078 generated by GNU Autoconf 2.65. Invocation command line was
2079
2080 $ $0 $@
2081
2082 _ACEOF
2083 exec 5>>config.log
2084 {
2085 cat <<_ASUNAME
2086 ## --------- ##
2087 ## Platform. ##
2088 ## --------- ##
2089
2090 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2091 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2092 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2093 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2094 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2095
2096 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2097 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2098
2099 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2100 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2101 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2102 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2103 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2104 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2105 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2106
2107 _ASUNAME
2108
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 $as_echo "PATH: $as_dir"
2115 done
2116 IFS=$as_save_IFS
2117
2118 } >&5
2119
2120 cat >&5 <<_ACEOF
2121
2122
2123 ## ----------- ##
2124 ## Core tests. ##
2125 ## ----------- ##
2126
2127 _ACEOF
2128
2129
2130 # Keep a trace of the command line.
2131 # Strip out --no-create and --no-recursion so they do not pile up.
2132 # Strip out --silent because we don't want to record it for future runs.
2133 # Also quote any args containing shell meta-characters.
2134 # Make two passes to allow for proper duplicate-argument suppression.
2135 ac_configure_args=
2136 ac_configure_args0=
2137 ac_configure_args1=
2138 ac_must_keep_next=false
2139 for ac_pass in 1 2
2140 do
2141 for ac_arg
2142 do
2143 case $ac_arg in
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2147 continue ;;
2148 *\'*)
2149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 esac
2151 case $ac_pass in
2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2153 2)
2154 as_fn_append ac_configure_args1 " '$ac_arg'"
2155 if test $ac_must_keep_next = true; then
2156 ac_must_keep_next=false # Got value, back to normal.
2157 else
2158 case $ac_arg in
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165 esac
2166 ;;
2167 -* ) ac_must_keep_next=true ;;
2168 esac
2169 fi
2170 as_fn_append ac_configure_args " '$ac_arg'"
2171 ;;
2172 esac
2173 done
2174 done
2175 { ac_configure_args0=; unset ac_configure_args0;}
2176 { ac_configure_args1=; unset ac_configure_args1;}
2177
2178 # When interrupted or exit'd, cleanup temporary files, and complete
2179 # config.log. We remove comments because anyway the quotes in there
2180 # would cause problems or look ugly.
2181 # WARNING: Use '\'' to represent an apostrophe within the trap.
2182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183 trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
2185 {
2186 echo
2187
2188 cat <<\_ASBOX
2189 ## ---------------- ##
2190 ## Cache variables. ##
2191 ## ---------------- ##
2192 _ASBOX
2193 echo
2194 # The following way of writing the cache mishandles newlines in values,
2195 (
2196 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in #(
2199 *${as_nl}*)
2200 case $ac_var in #(
2201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 esac
2204 case $ac_var in #(
2205 _ | IFS | as_nl) ;; #(
2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207 *) { eval $ac_var=; unset $ac_var;} ;;
2208 esac ;;
2209 esac
2210 done
2211 (set) 2>&1 |
2212 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2213 *${as_nl}ac_space=\ *)
2214 sed -n \
2215 "s/'\''/'\''\\\\'\'''\''/g;
2216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 ;; #(
2218 *)
2219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2220 ;;
2221 esac |
2222 sort
2223 )
2224 echo
2225
2226 cat <<\_ASBOX
2227 ## ----------------- ##
2228 ## Output variables. ##
2229 ## ----------------- ##
2230 _ASBOX
2231 echo
2232 for ac_var in $ac_subst_vars
2233 do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
2241
2242 if test -n "$ac_subst_files"; then
2243 cat <<\_ASBOX
2244 ## ------------------- ##
2245 ## File substitutions. ##
2246 ## ------------------- ##
2247 _ASBOX
2248 echo
2249 for ac_var in $ac_subst_files
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258 fi
2259
2260 if test -s confdefs.h; then
2261 cat <<\_ASBOX
2262 ## ----------- ##
2263 ## confdefs.h. ##
2264 ## ----------- ##
2265 _ASBOX
2266 echo
2267 cat confdefs.h
2268 echo
2269 fi
2270 test "$ac_signal" != 0 &&
2271 $as_echo "$as_me: caught signal $ac_signal"
2272 $as_echo "$as_me: exit $exit_status"
2273 } >&5
2274 rm -f core *.core core.conftest.* &&
2275 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2276 exit $exit_status
2277 ' 0
2278 for ac_signal in 1 2 13 15; do
2279 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2280 done
2281 ac_signal=0
2282
2283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2284 rm -f -r conftest* confdefs.h
2285
2286 $as_echo "/* confdefs.h */" > confdefs.h
2287
2288 # Predefined preprocessor variables.
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_NAME "$PACKAGE_NAME"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_STRING "$PACKAGE_STRING"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_URL "$PACKAGE_URL"
2312 _ACEOF
2313
2314
2315 # Let the site file select an alternate cache file if it wants to.
2316 # Prefer an explicitly selected file to automatically selected ones.
2317 ac_site_file1=NONE
2318 ac_site_file2=NONE
2319 if test -n "$CONFIG_SITE"; then
2320 ac_site_file1=$CONFIG_SITE
2321 elif test "x$prefix" != xNONE; then
2322 ac_site_file1=$prefix/share/config.site
2323 ac_site_file2=$prefix/etc/config.site
2324 else
2325 ac_site_file1=$ac_default_prefix/share/config.site
2326 ac_site_file2=$ac_default_prefix/etc/config.site
2327 fi
2328 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2329 do
2330 test "x$ac_site_file" = xNONE && continue
2331 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2333 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2334 sed 's/^/| /' "$ac_site_file" >&5
2335 . "$ac_site_file"
2336 fi
2337 done
2338
2339 if test -r "$cache_file"; then
2340 # Some versions of bash will fail to source /dev/null (special files
2341 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2344 $as_echo "$as_me: loading cache $cache_file" >&6;}
2345 case $cache_file in
2346 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2347 *) . "./$cache_file";;
2348 esac
2349 fi
2350 else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2352 $as_echo "$as_me: creating cache $cache_file" >&6;}
2353 >$cache_file
2354 fi
2355
2356 gt_needs="$gt_needs "
2357 # Check that the precious variables saved in the cache have kept the same
2358 # value.
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2366 set,)
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2370 ,set)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2374 ,);;
2375 *)
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2393 fi;;
2394 esac
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2397 case $ac_new_val in
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2400 esac
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404 esac
2405 fi
2406 done
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2413 fi
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423
2424
2425 ac_aux_dir=
2426 for ac_dir in buildlib "$srcdir"/buildlib; do
2427 for ac_t in install-sh install.sh shtool; do
2428 if test -f "$ac_dir/$ac_t"; then
2429 ac_aux_dir=$ac_dir
2430 ac_install_sh="$ac_aux_dir/$ac_t -c"
2431 break 2
2432 fi
2433 done
2434 done
2435 if test -z "$ac_aux_dir"; then
2436 as_fn_error "cannot find install-sh, install.sh, or shtool in buildlib \"$srcdir\"/buildlib" "$LINENO" 5
2437 fi
2438
2439 # These three variables are undocumented and unsupported,
2440 # and are intended to be withdrawn in a future Autoconf release.
2441 # They can cause serious problems if a builder's source tree is in a directory
2442 # whose full name contains unusual characters.
2443 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2444 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2445 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446
2447
2448 ac_config_headers="$ac_config_headers include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in"
2449
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define VERSION "0.7.25.3"
2453 _ACEOF
2454
2455 PACKAGE="apt"
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE "$PACKAGE"
2458 _ACEOF
2459
2460
2461
2462 # Make sure we can run config.sub.
2463 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2464 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2465
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2467 $as_echo_n "checking build system type... " >&6; }
2468 if test "${ac_cv_build+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 ac_build_alias=$build_alias
2472 test "x$ac_build_alias" = x &&
2473 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2474 test "x$ac_build_alias" = x &&
2475 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2476 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2477 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2478
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2481 $as_echo "$ac_cv_build" >&6; }
2482 case $ac_cv_build in
2483 *-*-*) ;;
2484 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2485 esac
2486 build=$ac_cv_build
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_build
2489 shift
2490 build_cpu=$1
2491 build_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 build_os=$*
2496 IFS=$ac_save_IFS
2497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2498
2499
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2501 $as_echo_n "checking host system type... " >&6; }
2502 if test "${ac_cv_host+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test "x$host_alias" = x; then
2506 ac_cv_host=$ac_cv_build
2507 else
2508 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2509 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2510 fi
2511
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2514 $as_echo "$ac_cv_host" >&6; }
2515 case $ac_cv_host in
2516 *-*-*) ;;
2517 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2518 esac
2519 host=$ac_cv_host
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_host
2522 shift
2523 host_cpu=$1
2524 host_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 host_os=$*
2529 IFS=$ac_save_IFS
2530 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2531
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2534 $as_echo_n "checking target system type... " >&6; }
2535 if test "${ac_cv_target+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 if test "x$target_alias" = x; then
2539 ac_cv_target=$ac_cv_host
2540 else
2541 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2542 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2543 fi
2544
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2547 $as_echo "$ac_cv_target" >&6; }
2548 case $ac_cv_target in
2549 *-*-*) ;;
2550 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2551 esac
2552 target=$ac_cv_target
2553 ac_save_IFS=$IFS; IFS='-'
2554 set x $ac_cv_target
2555 shift
2556 target_cpu=$1
2557 target_vendor=$2
2558 shift; shift
2559 # Remember, the first character of IFS is used to create $*,
2560 # except with old shells:
2561 target_os=$*
2562 IFS=$ac_save_IFS
2563 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2564
2565
2566 # The aliases save the names the user supplied, while $host etc.
2567 # will get canonicalized.
2568 test -n "$target_alias" &&
2569 test "$program_prefix$program_suffix$program_transform_name" = \
2570 NONENONEs,x,x, &&
2571 program_prefix=${target_alias}-
2572
2573
2574
2575 ac_ext=c
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2601 fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611 $as_echo "$CC" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2615 fi
2616
2617
2618 fi
2619 if test -z "$ac_cv_prog_CC"; then
2620 ac_ct_CC=$CC
2621 # Extract the first word of "gcc", so it can be a program name with args.
2622 set dummy gcc; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_CC="gcc"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649 if test -n "$ac_ct_CC"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2651 $as_echo "$ac_ct_CC" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2656
2657 if test "x$ac_ct_CC" = x; then
2658 CC=""
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664 ac_tool_warned=yes ;;
2665 esac
2666 CC=$ac_ct_CC
2667 fi
2668 else
2669 CC="$ac_cv_prog_CC"
2670 fi
2671
2672 if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}cc; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_CC+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_CC="${ac_tool_prefix}cc"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 $as_echo "$CC" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 fi
2712 fi
2713 if test -z "$CC"; then
2714 # Extract the first word of "cc", so it can be a program name with args.
2715 set dummy cc; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_CC+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 else
2724 ac_prog_rejected=no
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2733 ac_prog_rejected=yes
2734 continue
2735 fi
2736 ac_cv_prog_CC="cc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 if test $ac_prog_rejected = yes; then
2745 # We found a bogon in the path, so make sure we never use it.
2746 set dummy $ac_cv_prog_CC
2747 shift
2748 if test $# != 0; then
2749 # We chose a different compiler from the bogus one.
2750 # However, it has the same basename, so the bogon will be chosen
2751 # first if we set CC to just the basename; use the full file name.
2752 shift
2753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2754 fi
2755 fi
2756 fi
2757 fi
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767
2768 fi
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 for ac_prog in cl.exe
2772 do
2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CC+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 test -n "$CC" && break
2811 done
2812 fi
2813 if test -z "$CC"; then
2814 ac_ct_CC=$CC
2815 for ac_prog in cl.exe
2816 do
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_ac_ct_CC="$ac_prog"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847 $as_echo "$ac_ct_CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853
2854 test -n "$ac_ct_CC" && break
2855 done
2856
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 CC=$ac_ct_CC
2867 fi
2868 fi
2869
2870 fi
2871
2872
2873 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error "no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." "$LINENO" 5; }
2877
2878 # Provide some information about the compiler.
2879 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2880 set X $ac_compile
2881 ac_compiler=$2
2882 for ac_option in --version -v -V -qversion; do
2883 { { ac_try="$ac_compiler $ac_option >&5"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2889 $as_echo "$ac_try_echo"; } >&5
2890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2891 ac_status=$?
2892 if test -s conftest.err; then
2893 sed '10a\
2894 ... rest of stderr output deleted ...
2895 10q' conftest.err >conftest.er1
2896 cat conftest.er1 >&5
2897 fi
2898 rm -f conftest.er1 conftest.err
2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900 test $ac_status = 0; }
2901 done
2902
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h. */
2905
2906 int
2907 main ()
2908 {
2909
2910 ;
2911 return 0;
2912 }
2913 _ACEOF
2914 ac_clean_files_save=$ac_clean_files
2915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2916 # Try to create an executable without -o first, disregard a.out.
2917 # It will help us diagnose broken compilers, and finding out an intuition
2918 # of exeext.
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2920 $as_echo_n "checking whether the C compiler works... " >&6; }
2921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2922
2923 # The possible output files:
2924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2925
2926 ac_rmfiles=
2927 for ac_file in $ac_files
2928 do
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 esac
2933 done
2934 rm -f $ac_rmfiles
2935
2936 if { { ac_try="$ac_link_default"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942 $as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_link_default") 2>&5
2944 ac_status=$?
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }; then :
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2950 # so that the user can short-circuit this test for compilers unknown to
2951 # Autoconf.
2952 for ac_file in $ac_files ''
2953 do
2954 test -f "$ac_file" || continue
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2957 ;;
2958 [ab].out )
2959 # We found the default executable, but exeext='' is most
2960 # certainly right.
2961 break;;
2962 *.* )
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2964 then :; else
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 fi
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2971 # actually working.
2972 break;;
2973 * )
2974 break;;
2975 esac
2976 done
2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
2978
2979 else
2980 ac_file=''
2981 fi
2982 if test -z "$ac_file"; then :
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { as_fn_set_status 77
2991 as_fn_error "C compiler cannot create executables
2992 See \`config.log' for more details." "$LINENO" 5; }; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995 $as_echo "yes" >&6; }
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2998 $as_echo_n "checking for C compiler default output file name... " >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3000 $as_echo "$ac_file" >&6; }
3001 ac_exeext=$ac_cv_exeext
3002
3003 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3004 ac_clean_files=$ac_clean_files_save
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3006 $as_echo_n "checking for suffix of executables... " >&6; }
3007 if { { ac_try="$ac_link"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013 $as_echo "$ac_try_echo"; } >&5
3014 (eval "$ac_link") 2>&5
3015 ac_status=$?
3016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017 test $ac_status = 0; }; then :
3018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3020 # work properly (i.e., refer to `conftest.exe'), while it won't with
3021 # `rm'.
3022 for ac_file in conftest.exe conftest conftest.*; do
3023 test -f "$ac_file" || continue
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027 break;;
3028 * ) break;;
3029 esac
3030 done
3031 else
3032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 as_fn_error "cannot compute suffix of executables: cannot compile and link
3035 See \`config.log' for more details." "$LINENO" 5; }
3036 fi
3037 rm -f conftest conftest$ac_cv_exeext
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3039 $as_echo "$ac_cv_exeext" >&6; }
3040
3041 rm -f conftest.$ac_ext
3042 EXEEXT=$ac_cv_exeext
3043 ac_exeext=$EXEEXT
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h. */
3046 #include <stdio.h>
3047 int
3048 main ()
3049 {
3050 FILE *f = fopen ("conftest.out", "w");
3051 return ferror (f) || fclose (f) != 0;
3052
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 ac_clean_files="$ac_clean_files conftest.out"
3058 # Check that the compiler produces executables we can run. If not, either
3059 # the compiler is broken, or we cross compile.
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3061 $as_echo_n "checking whether we are cross compiling... " >&6; }
3062 if test "$cross_compiling" != yes; then
3063 { { ac_try="$ac_link"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }
3074 if { ac_try='./conftest$ac_cv_exeext'
3075 { { case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_try") 2>&5
3082 ac_status=$?
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; }; then
3085 cross_compiling=no
3086 else
3087 if test "$cross_compiling" = maybe; then
3088 cross_compiling=yes
3089 else
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error "cannot run C compiled programs.
3093 If you meant to cross compile, use \`--host'.
3094 See \`config.log' for more details." "$LINENO" 5; }
3095 fi
3096 fi
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3099 $as_echo "$cross_compiling" >&6; }
3100
3101 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3102 ac_clean_files=$ac_clean_files_save
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3104 $as_echo_n "checking for suffix of object files... " >&6; }
3105 if test "${ac_cv_objext+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.o conftest.obj
3120 if { { ac_try="$ac_compile"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_compile") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; then :
3131 for ac_file in conftest.o conftest.obj conftest.*; do
3132 test -f "$ac_file" || continue;
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3136 break;;
3137 esac
3138 done
3139 else
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error "cannot compute suffix of object files: cannot compile
3146 See \`config.log' for more details." "$LINENO" 5; }
3147 fi
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3151 $as_echo "$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3153 ac_objext=$OBJEXT
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161
3162 int
3163 main ()
3164 {
3165 #ifndef __GNUC__
3166 choke me
3167 #endif
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 if ac_fn_c_try_compile "$LINENO"; then :
3174 ac_compiler_gnu=yes
3175 else
3176 ac_compiler_gnu=no
3177 fi
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3180
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3183 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3184 if test $ac_compiler_gnu = yes; then
3185 GCC=yes
3186 else
3187 GCC=
3188 fi
3189 ac_test_CFLAGS=${CFLAGS+set}
3190 ac_save_CFLAGS=$CFLAGS
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3192 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3193 if test "${ac_cv_prog_cc_g+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 ac_save_c_werror_flag=$ac_c_werror_flag
3197 ac_c_werror_flag=yes
3198 ac_cv_prog_cc_g=no
3199 CFLAGS="-g"
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202
3203 int
3204 main ()
3205 {
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 if ac_fn_c_try_compile "$LINENO"; then :
3212 ac_cv_prog_cc_g=yes
3213 else
3214 CFLAGS=""
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3217
3218 int
3219 main ()
3220 {
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 if ac_fn_c_try_compile "$LINENO"; then :
3227
3228 else
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230 CFLAGS="-g"
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233
3234 int
3235 main ()
3236 {
3237
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_g=yes
3244 fi
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 fi
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 fi
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3253 $as_echo "$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262 else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3270 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 ac_cv_prog_cc_c89=no
3275 ac_save_CC=$CC
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278 #include <stdarg.h>
3279 #include <stdio.h>
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286 char **p;
3287 int i;
3288 {
3289 return p[i];
3290 }
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3292 {
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299 }
3300
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312 #define FOO(x) 'x'
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 int argc;
3320 char **argv;
3321 int
3322 main ()
3323 {
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_prog_cc_c89=$ac_arg
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext
3337 test "x$ac_cv_prog_cc_c89" != "xno" && break
3338 done
3339 rm -f conftest.$ac_ext
3340 CC=$ac_save_CC
3341
3342 fi
3343 # AC_CACHE_VAL
3344 case "x$ac_cv_prog_cc_c89" in
3345 x)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3347 $as_echo "none needed" >&6; } ;;
3348 xno)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3350 $as_echo "unsupported" >&6; } ;;
3351 *)
3352 CC="$CC $ac_cv_prog_cc_c89"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3354 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3355 esac
3356 if test "x$ac_cv_prog_cc_c89" != xno; then :
3357
3358 fi
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3368 $as_echo_n "checking for library containing strerror... " >&6; }
3369 if test "${ac_cv_search_strerror+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 ac_func_search_save_LIBS=$LIBS
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 /* Override any GCC internal prototype to avoid an error.
3377 Use char because int might match the return type of a GCC
3378 builtin and then its argument prototype would still apply. */
3379 #ifdef __cplusplus
3380 extern "C"
3381 #endif
3382 char strerror ();
3383 int
3384 main ()
3385 {
3386 return strerror ();
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 for ac_lib in '' cposix; do
3392 if test -z "$ac_lib"; then
3393 ac_res="none required"
3394 else
3395 ac_res=-l$ac_lib
3396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3397 fi
3398 if ac_fn_c_try_link "$LINENO"; then :
3399 ac_cv_search_strerror=$ac_res
3400 fi
3401 rm -f core conftest.err conftest.$ac_objext \
3402 conftest$ac_exeext
3403 if test "${ac_cv_search_strerror+set}" = set; then :
3404 break
3405 fi
3406 done
3407 if test "${ac_cv_search_strerror+set}" = set; then :
3408
3409 else
3410 ac_cv_search_strerror=no
3411 fi
3412 rm conftest.$ac_ext
3413 LIBS=$ac_func_search_save_LIBS
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3416 $as_echo "$ac_cv_search_strerror" >&6; }
3417 ac_res=$ac_cv_search_strerror
3418 if test "$ac_res" != no; then :
3419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3420
3421 fi
3422
3423
3424 ac_ext=cpp
3425 ac_cpp='$CXXCPP $CPPFLAGS'
3426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3429 if test -z "$CXX"; then
3430 if test -n "$CCC"; then
3431 CXX=$CCC
3432 else
3433 if test -n "$ac_tool_prefix"; then
3434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3435 do
3436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_CXX+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$CXX"; then
3444 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457 done
3458 done
3459 IFS=$as_save_IFS
3460
3461 fi
3462 fi
3463 CXX=$ac_cv_prog_CXX
3464 if test -n "$CXX"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3466 $as_echo "$CXX" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 fi
3471
3472
3473 test -n "$CXX" && break
3474 done
3475 fi
3476 if test -z "$CXX"; then
3477 ac_ct_CXX=$CXX
3478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3479 do
3480 # Extract the first word of "$ac_prog", so it can be a program name with args.
3481 set dummy $ac_prog; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -n "$ac_ct_CXX"; then
3488 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_CXX="$ac_prog"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501 done
3502 done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3508 if test -n "$ac_ct_CXX"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3510 $as_echo "$ac_ct_CXX" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 fi
3515
3516
3517 test -n "$ac_ct_CXX" && break
3518 done
3519
3520 if test "x$ac_ct_CXX" = x; then
3521 CXX="g++"
3522 else
3523 case $cross_compiling:$ac_tool_warned in
3524 yes:)
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned=yes ;;
3528 esac
3529 CXX=$ac_ct_CXX
3530 fi
3531 fi
3532
3533 fi
3534 fi
3535 # Provide some information about the compiler.
3536 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3537 set X $ac_compile
3538 ac_compiler=$2
3539 for ac_option in --version -v -V -qversion; do
3540 { { ac_try="$ac_compiler $ac_option >&5"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3548 ac_status=$?
3549 if test -s conftest.err; then
3550 sed '10a\
3551 ... rest of stderr output deleted ...
3552 10q' conftest.err >conftest.er1
3553 cat conftest.er1 >&5
3554 fi
3555 rm -f conftest.er1 conftest.err
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3558 done
3559
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3561 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571 #ifndef __GNUC__
3572 choke me
3573 #endif
3574
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 if ac_fn_cxx_try_compile "$LINENO"; then :
3580 ac_compiler_gnu=yes
3581 else
3582 ac_compiler_gnu=no
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3586
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3589 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3591 GXX=yes
3592 else
3593 GXX=
3594 fi
3595 ac_test_CXXFLAGS=${CXXFLAGS+set}
3596 ac_save_CXXFLAGS=$CXXFLAGS
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3598 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3599 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3603 ac_cxx_werror_flag=yes
3604 ac_cv_prog_cxx_g=no
3605 CXXFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608
3609 int
3610 main ()
3611 {
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_cxx_try_compile "$LINENO"; then :
3618 ac_cv_prog_cxx_g=yes
3619 else
3620 CXXFLAGS=""
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623
3624 int
3625 main ()
3626 {
3627
3628 ;
3629 return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_cxx_try_compile "$LINENO"; then :
3633
3634 else
3635 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3636 CXXFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639
3640 int
3641 main ()
3642 {
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_cxx_try_compile "$LINENO"; then :
3649 ac_cv_prog_cxx_g=yes
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 fi
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3659 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3660 if test "$ac_test_CXXFLAGS" = set; then
3661 CXXFLAGS=$ac_save_CXXFLAGS
3662 elif test $ac_cv_prog_cxx_g = yes; then
3663 if test "$GXX" = yes; then
3664 CXXFLAGS="-g -O2"
3665 else
3666 CXXFLAGS="-g"
3667 fi
3668 else
3669 if test "$GXX" = yes; then
3670 CXXFLAGS="-O2"
3671 else
3672 CXXFLAGS=
3673 fi
3674 fi
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3687 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3688 # On Suns, sometimes $CPP names a directory.
3689 if test -n "$CPP" && test -d "$CPP"; then
3690 CPP=
3691 fi
3692 if test -z "$CPP"; then
3693 if test "${ac_cv_prog_CPP+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 # Double quotes because CPP needs to be expanded
3697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3698 do
3699 ac_preproc_ok=false
3700 for ac_c_preproc_warn_flag in '' yes
3701 do
3702 # Use a header file that comes with gcc, so configuring glibc
3703 # with a fresh cross-compiler works.
3704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 # <limits.h> exists even on freestanding compilers.
3706 # On the NeXT, cc -E runs the code through the compiler's parser,
3707 # not just through cpp. "Syntax error" is here to catch this case.
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 #ifdef __STDC__
3711 # include <limits.h>
3712 #else
3713 # include <assert.h>
3714 #endif
3715 Syntax error
3716 _ACEOF
3717 if ac_fn_c_try_cpp "$LINENO"; then :
3718
3719 else
3720 # Broken: fails on valid input.
3721 continue
3722 fi
3723 rm -f conftest.err conftest.$ac_ext
3724
3725 # OK, works on sane cases. Now check whether nonexistent headers
3726 # can be detected and how.
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3730 _ACEOF
3731 if ac_fn_c_try_cpp "$LINENO"; then :
3732 # Broken: success on invalid input.
3733 continue
3734 else
3735 # Passes both tests.
3736 ac_preproc_ok=:
3737 break
3738 fi
3739 rm -f conftest.err conftest.$ac_ext
3740
3741 done
3742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743 rm -f conftest.err conftest.$ac_ext
3744 if $ac_preproc_ok; then :
3745 break
3746 fi
3747
3748 done
3749 ac_cv_prog_CPP=$CPP
3750
3751 fi
3752 CPP=$ac_cv_prog_CPP
3753 else
3754 ac_cv_prog_CPP=$CPP
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3757 $as_echo "$CPP" >&6; }
3758 ac_preproc_ok=false
3759 for ac_c_preproc_warn_flag in '' yes
3760 do
3761 # Use a header file that comes with gcc, so configuring glibc
3762 # with a fresh cross-compiler works.
3763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3764 # <limits.h> exists even on freestanding compilers.
3765 # On the NeXT, cc -E runs the code through the compiler's parser,
3766 # not just through cpp. "Syntax error" is here to catch this case.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #ifdef __STDC__
3770 # include <limits.h>
3771 #else
3772 # include <assert.h>
3773 #endif
3774 Syntax error
3775 _ACEOF
3776 if ac_fn_c_try_cpp "$LINENO"; then :
3777
3778 else
3779 # Broken: fails on valid input.
3780 continue
3781 fi
3782 rm -f conftest.err conftest.$ac_ext
3783
3784 # OK, works on sane cases. Now check whether nonexistent headers
3785 # can be detected and how.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <ac_nonexistent.h>
3789 _ACEOF
3790 if ac_fn_c_try_cpp "$LINENO"; then :
3791 # Broken: success on invalid input.
3792 continue
3793 else
3794 # Passes both tests.
3795 ac_preproc_ok=:
3796 break
3797 fi
3798 rm -f conftest.err conftest.$ac_ext
3799
3800 done
3801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802 rm -f conftest.err conftest.$ac_ext
3803 if $ac_preproc_ok; then :
3804
3805 else
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3809 See \`config.log' for more details." "$LINENO" 5; }
3810 fi
3811
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817
3818 if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 if test -n "$RANLIB"; then
3827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840 done
3841 done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 RANLIB=$ac_cv_prog_RANLIB
3847 if test -n "$RANLIB"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3849 $as_echo "$RANLIB" >&6; }
3850 else
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3853 fi
3854
3855
3856 fi
3857 if test -z "$ac_cv_prog_RANLIB"; then
3858 ac_ct_RANLIB=$RANLIB
3859 # Extract the first word of "ranlib", so it can be a program name with args.
3860 set dummy ranlib; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 if test -n "$ac_ct_RANLIB"; then
3867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_ac_ct_RANLIB="ranlib"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880 done
3881 done
3882 IFS=$as_save_IFS
3883
3884 fi
3885 fi
3886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3887 if test -n "$ac_ct_RANLIB"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3889 $as_echo "$ac_ct_RANLIB" >&6; }
3890 else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3893 fi
3894
3895 if test "x$ac_ct_RANLIB" = x; then
3896 RANLIB=":"
3897 else
3898 case $cross_compiling:$ac_tool_warned in
3899 yes:)
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3902 ac_tool_warned=yes ;;
3903 esac
3904 RANLIB=$ac_ct_RANLIB
3905 fi
3906 else
3907 RANLIB="$ac_cv_prog_RANLIB"
3908 fi
3909
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}ar; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_AR+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$AR"; then
3919 ac_cv_prog_AR="$AR" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_AR="${ac_tool_prefix}ar"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 AR=$ac_cv_prog_AR
3939 if test -n "$AR"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3941 $as_echo "$AR" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948 fi
3949 if test -z "$ac_cv_prog_AR"; then
3950 ac_ct_AR=$AR
3951 # Extract the first word of "ar", so it can be a program name with args.
3952 set dummy ar; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test -n "$ac_ct_AR"; then
3959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_ac_ct_AR="ar"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3979 if test -n "$ac_ct_AR"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3981 $as_echo "$ac_ct_AR" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987 if test "x$ac_ct_AR" = x; then
3988 AR=""ar""
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991 yes:)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994 ac_tool_warned=yes ;;
3995 esac
3996 AR=$ac_ct_AR
3997 fi
3998 else
3999 AR="$ac_cv_prog_AR"
4000 fi
4001
4002
4003 SAVE_LIBS="$LIBS"
4004 LIBS=""
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4006 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4007 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 ac_func_search_save_LIBS=$LIBS
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013
4014 /* Override any GCC internal prototype to avoid an error.
4015 Use char because int might match the return type of a GCC
4016 builtin and then its argument prototype would still apply. */
4017 #ifdef __cplusplus
4018 extern "C"
4019 #endif
4020 char gethostbyname ();
4021 int
4022 main ()
4023 {
4024 return gethostbyname ();
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 for ac_lib in '' nsl; do
4030 if test -z "$ac_lib"; then
4031 ac_res="none required"
4032 else
4033 ac_res=-l$ac_lib
4034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4035 fi
4036 if ac_fn_c_try_link "$LINENO"; then :
4037 ac_cv_search_gethostbyname=$ac_res
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext
4041 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4042 break
4043 fi
4044 done
4045 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4046
4047 else
4048 ac_cv_search_gethostbyname=no
4049 fi
4050 rm conftest.$ac_ext
4051 LIBS=$ac_func_search_save_LIBS
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4054 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4055 ac_res=$ac_cv_search_gethostbyname
4056 if test "$ac_res" != no; then :
4057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4058
4059 fi
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
4062 $as_echo_n "checking for library containing connect... " >&6; }
4063 if test "${ac_cv_search_connect+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 ac_func_search_save_LIBS=$LIBS
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 /* Override any GCC internal prototype to avoid an error.
4071 Use char because int might match the return type of a GCC
4072 builtin and then its argument prototype would still apply. */
4073 #ifdef __cplusplus
4074 extern "C"
4075 #endif
4076 char connect ();
4077 int
4078 main ()
4079 {
4080 return connect ();
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 for ac_lib in '' socket; do
4086 if test -z "$ac_lib"; then
4087 ac_res="none required"
4088 else
4089 ac_res=-l$ac_lib
4090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4091 fi
4092 if ac_fn_c_try_link "$LINENO"; then :
4093 ac_cv_search_connect=$ac_res
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext \
4096 conftest$ac_exeext
4097 if test "${ac_cv_search_connect+set}" = set; then :
4098 break
4099 fi
4100 done
4101 if test "${ac_cv_search_connect+set}" = set; then :
4102
4103 else
4104 ac_cv_search_connect=no
4105 fi
4106 rm conftest.$ac_ext
4107 LIBS=$ac_func_search_save_LIBS
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
4110 $as_echo "$ac_cv_search_connect" >&6; }
4111 ac_res=$ac_cv_search_connect
4112 if test "$ac_res" != no; then :
4113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4114
4115 fi
4116
4117 SOCKETLIBS="$LIBS"
4118
4119 LIBS="$SAVE_LIBS"
4120
4121
4122
4123 saveLIBS="$LIBS"
4124 LIBS="$LIBS -ldb"
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4128 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4129 if test "${ac_cv_path_GREP+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -z "$GREP"; then
4133 ac_path_GREP_found=false
4134 # Loop through the user's path and test for each of PROGNAME-LIST
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_prog in grep ggrep; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4143 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4144 # Check for GNU ac_path_GREP and select it if it is found.
4145 # Check for GNU $ac_path_GREP
4146 case `"$ac_path_GREP" --version 2>&1` in
4147 *GNU*)
4148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149 *)
4150 ac_count=0
4151 $as_echo_n 0123456789 >"conftest.in"
4152 while :
4153 do
4154 cat "conftest.in" "conftest.in" >"conftest.tmp"
4155 mv "conftest.tmp" "conftest.in"
4156 cp "conftest.in" "conftest.nl"
4157 $as_echo 'GREP' >> "conftest.nl"
4158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160 as_fn_arith $ac_count + 1 && ac_count=$as_val
4161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4162 # Best one so far, save it but keep looking for a better one
4163 ac_cv_path_GREP="$ac_path_GREP"
4164 ac_path_GREP_max=$ac_count
4165 fi
4166 # 10*(2^10) chars as input seems more than enough
4167 test $ac_count -gt 10 && break
4168 done
4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 esac
4171
4172 $ac_path_GREP_found && break 3
4173 done
4174 done
4175 done
4176 IFS=$as_save_IFS
4177 if test -z "$ac_cv_path_GREP"; then
4178 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179 fi
4180 else
4181 ac_cv_path_GREP=$GREP
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4186 $as_echo "$ac_cv_path_GREP" >&6; }
4187 GREP="$ac_cv_path_GREP"
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4191 $as_echo_n "checking for egrep... " >&6; }
4192 if test "${ac_cv_path_EGREP+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4196 then ac_cv_path_EGREP="$GREP -E"
4197 else
4198 if test -z "$EGREP"; then
4199 ac_path_EGREP_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in egrep; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4209 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4210 # Check for GNU ac_path_EGREP and select it if it is found.
4211 # Check for GNU $ac_path_EGREP
4212 case `"$ac_path_EGREP" --version 2>&1` in
4213 *GNU*)
4214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4215 *)
4216 ac_count=0
4217 $as_echo_n 0123456789 >"conftest.in"
4218 while :
4219 do
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 $as_echo 'EGREP' >> "conftest.nl"
4224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 as_fn_arith $ac_count + 1 && ac_count=$as_val
4227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_EGREP="$ac_path_EGREP"
4230 ac_path_EGREP_max=$ac_count
4231 fi
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4234 done
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4237
4238 $ac_path_EGREP_found && break 3
4239 done
4240 done
4241 done
4242 IFS=$as_save_IFS
4243 if test -z "$ac_cv_path_EGREP"; then
4244 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245 fi
4246 else
4247 ac_cv_path_EGREP=$EGREP
4248 fi
4249
4250 fi
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4253 $as_echo "$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4258 $as_echo_n "checking for ANSI C header files... " >&6; }
4259 if test "${ac_cv_header_stdc+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <stdlib.h>
4265 #include <stdarg.h>
4266 #include <string.h>
4267 #include <float.h>
4268
4269 int
4270 main ()
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_cv_header_stdc=yes
4279 else
4280 ac_cv_header_stdc=no
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283
4284 if test $ac_cv_header_stdc = yes; then
4285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <string.h>
4289
4290 _ACEOF
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 $EGREP "memchr" >/dev/null 2>&1; then :
4293
4294 else
4295 ac_cv_header_stdc=no
4296 fi
4297 rm -f conftest*
4298
4299 fi
4300
4301 if test $ac_cv_header_stdc = yes; then
4302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <stdlib.h>
4306
4307 _ACEOF
4308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4309 $EGREP "free" >/dev/null 2>&1; then :
4310
4311 else
4312 ac_cv_header_stdc=no
4313 fi
4314 rm -f conftest*
4315
4316 fi
4317
4318 if test $ac_cv_header_stdc = yes; then
4319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4320 if test "$cross_compiling" = yes; then :
4321 :
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <ctype.h>
4326 #include <stdlib.h>
4327 #if ((' ' & 0x0FF) == 0x020)
4328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4330 #else
4331 # define ISLOWER(c) \
4332 (('a' <= (c) && (c) <= 'i') \
4333 || ('j' <= (c) && (c) <= 'r') \
4334 || ('s' <= (c) && (c) <= 'z'))
4335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4336 #endif
4337
4338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4339 int
4340 main ()
4341 {
4342 int i;
4343 for (i = 0; i < 256; i++)
4344 if (XOR (islower (i), ISLOWER (i))
4345 || toupper (i) != TOUPPER (i))
4346 return 2;
4347 return 0;
4348 }
4349 _ACEOF
4350 if ac_fn_c_try_run "$LINENO"; then :
4351
4352 else
4353 ac_cv_header_stdc=no
4354 fi
4355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4356 conftest.$ac_objext conftest.beam conftest.$ac_ext
4357 fi
4358
4359 fi
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4362 $as_echo "$ac_cv_header_stdc" >&6; }
4363 if test $ac_cv_header_stdc = yes; then
4364
4365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4366
4367 fi
4368
4369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4371 inttypes.h stdint.h unistd.h
4372 do :
4373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4375 "
4376 eval as_val=\$$as_ac_Header
4377 if test "x$as_val" = x""yes; then :
4378 cat >>confdefs.h <<_ACEOF
4379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4380 _ACEOF
4381
4382 fi
4383
4384 done
4385
4386
4387 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
4388 if test "x$ac_cv_header_db_h" = x""yes; then :
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link against BerkeleyDB" >&5
4390 $as_echo_n "checking if we can link against BerkeleyDB... " >&6; }
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #include <db.h>
4394 int
4395 main ()
4396 {
4397 int r, s, t; db_version(&r, &s, &t);
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_c_try_link "$LINENO"; then :
4404 $as_echo "#define HAVE_BDB 1" >>confdefs.h
4405
4406 BDBLIB="-ldb"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4408 $as_echo "yes" >&6; }
4409 else
4410 BDBLIB=""
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413
4414 fi
4415 rm -f core conftest.err conftest.$ac_objext \
4416 conftest$ac_exeext conftest.$ac_ext
4417
4418 fi
4419
4420
4421
4422 LIBS="$saveLIBS"
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
4425 $as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
4426 if test "${ac_cv_lib_curl_curl_easy_init+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 ac_check_lib_save_LIBS=$LIBS
4430 LIBS="-lcurl $LIBS"
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433
4434 /* Override any GCC internal prototype to avoid an error.
4435 Use char because int might match the return type of a GCC
4436 builtin and then its argument prototype would still apply. */
4437 #ifdef __cplusplus
4438 extern "C"
4439 #endif
4440 char curl_easy_init ();
4441 int
4442 main ()
4443 {
4444 return curl_easy_init ();
4445 ;
4446 return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_link "$LINENO"; then :
4450 ac_cv_lib_curl_curl_easy_init=yes
4451 else
4452 ac_cv_lib_curl_curl_easy_init=no
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext \
4455 conftest$ac_exeext conftest.$ac_ext
4456 LIBS=$ac_check_lib_save_LIBS
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
4459 $as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
4460 if test "x$ac_cv_lib_curl_curl_easy_init" = x""yes; then :
4461 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
4462 if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
4463 curl_ok=yes
4464 else
4465 curl_ok=no
4466 fi
4467
4468
4469 else
4470 as_fn_error "failed: I need CURL due https support" "$LINENO" 5
4471 fi
4472
4473
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debian architecture" >&5
4477 $as_echo_n "checking debian architecture... " >&6; }
4478 archset="`dpkg-architecture -qDEB_HOST_ARCH`"
4479 if test "x$archset" = "x"; then
4480 as_fn_error "failed: use --host= or output from dpkg-architecture" "$LINENO" 5
4481 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archset" >&5
4483 $as_echo "$archset" >&6; }
4484 cat >>confdefs.h <<_ACEOF
4485 #define COMMON_ARCH "$archset"
4486 _ACEOF
4487
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 integer types" >&5
4490 $as_echo_n "checking for C99 integer types... " >&6; }
4491 if test "${apt_cv_c9x_ints+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <inttypes.h>
4498 int
4499 main ()
4500 {
4501 uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 apt_cv_c9x_ints=yes
4508 else
4509 apt_cv_c9x_ints=no
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apt_cv_c9x_ints" >&5
4514 $as_echo "$apt_cv_c9x_ints" >&6; }
4515
4516 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
4517 if test "x$ac_cv_func_statvfs" = x""yes; then :
4518 HAVE_STATVFS=yes
4519 fi
4520
4521
4522
4523 if test x"$HAVE_STATVFS" != x"yes"; then
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #include <sys/vfs.h>
4527
4528 _ACEOF
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 $EGREP "statfs" >/dev/null 2>&1; then :
4531 $as_echo "#define HAVE_VFS_H 1" >>confdefs.h
4532
4533 else
4534
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <sys/mount.h>
4538
4539 _ACEOF
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 $EGREP "statfs" >/dev/null 2>&1; then :
4542 $as_echo "#define HAVE_MOUNT_H 1" >>confdefs.h
4543
4544 else
4545 as_fn_error "failed: Need statvfs" "$LINENO" 5
4546 fi
4547 rm -f conftest*
4548
4549
4550 fi
4551 rm -f conftest*
4552
4553 fi
4554
4555 ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" "$ac_includes_default
4556 #include <sys/vfs.h>
4557 "
4558 if test "x$ac_cv_member_struct_statfs_f_type" = x""yes; then :
4559
4560 cat >>confdefs.h <<_ACEOF
4561 #define HAVE_STRUCT_STATFS_F_TYPE 1
4562 _ACEOF
4563
4564
4565 fi
4566
4567
4568 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
4569 if test "x$ac_cv_func_timegm" = x""yes; then :
4570 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
4571
4572 fi
4573
4574
4575
4576
4577 archline="`awk \" ! /^#|^\\\$/ {if (match(\\\"$archset\\\",\\\$1)) {print; exit}}\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`"
4578 if test "x$archline" != "x"; then
4579
4580 set $archline
4581 if test "$1" = "little"; then
4582 ac_cv_c_bigendian=no
4583 else
4584 ac_cv_c_bigendian=yes
4585 fi
4586 size_char=$2
4587 size_int=$3
4588 size_short=$4
4589 size_long=$5
4590 fi
4591
4592 if test "$cross_compiling" = "yes" -a "x$archline" = "x"; then
4593 { as_fn_set_status architecture must be present in sizetable
4594 as_fn_error "When cross compiling" "$LINENO" 5; }
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4597 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4598 if test "${ac_cv_c_bigendian+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 ac_cv_c_bigendian=unknown
4602 # See if we're dealing with a universal compiler.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #ifndef __APPLE_CC__
4606 not a universal capable compiler
4607 #endif
4608 typedef int dummy;
4609
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612
4613 # Check for potential -arch flags. It is not universal unless
4614 # there are at least two -arch flags with different values.
4615 ac_arch=
4616 ac_prev=
4617 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4618 if test -n "$ac_prev"; then
4619 case $ac_word in
4620 i?86 | x86_64 | ppc | ppc64)
4621 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4622 ac_arch=$ac_word
4623 else
4624 ac_cv_c_bigendian=universal
4625 break
4626 fi
4627 ;;
4628 esac
4629 ac_prev=
4630 elif test "x$ac_word" = "x-arch"; then
4631 ac_prev=arch
4632 fi
4633 done
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 if test $ac_cv_c_bigendian = unknown; then
4637 # See if sys/param.h defines the BYTE_ORDER macro.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4641 #include <sys/param.h>
4642
4643 int
4644 main ()
4645 {
4646 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4647 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4648 && LITTLE_ENDIAN)
4649 bogus endian macros
4650 #endif
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 # It does; now see whether it defined to BIG_ENDIAN or not.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <sys/types.h>
4661 #include <sys/param.h>
4662
4663 int
4664 main ()
4665 {
4666 #if BYTE_ORDER != BIG_ENDIAN
4667 not big endian
4668 #endif
4669
4670 ;
4671 return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_c_bigendian=yes
4676 else
4677 ac_cv_c_bigendian=no
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 if test $ac_cv_c_bigendian = unknown; then
4684 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <limits.h>
4688
4689 int
4690 main ()
4691 {
4692 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4693 bogus endian macros
4694 #endif
4695
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"; then :
4701 # It does; now see whether it defined to _BIG_ENDIAN or not.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <limits.h>
4705
4706 int
4707 main ()
4708 {
4709 #ifndef _BIG_ENDIAN
4710 not big endian
4711 #endif
4712
4713 ;
4714 return 0;
4715 }
4716 _ACEOF
4717 if ac_fn_c_try_compile "$LINENO"; then :
4718 ac_cv_c_bigendian=yes
4719 else
4720 ac_cv_c_bigendian=no
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 fi
4726 if test $ac_cv_c_bigendian = unknown; then
4727 # Compile a test program.
4728 if test "$cross_compiling" = yes; then :
4729 # Try to guess by grepping values from an object file.
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732 short int ascii_mm[] =
4733 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4734 short int ascii_ii[] =
4735 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4736 int use_ascii (int i) {
4737 return ascii_mm[i] + ascii_ii[i];
4738 }
4739 short int ebcdic_ii[] =
4740 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4741 short int ebcdic_mm[] =
4742 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4743 int use_ebcdic (int i) {
4744 return ebcdic_mm[i] + ebcdic_ii[i];
4745 }
4746 extern int foo;
4747
4748 int
4749 main ()
4750 {
4751 return use_ascii (foo) == use_ebcdic (foo);
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4758 ac_cv_c_bigendian=yes
4759 fi
4760 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4761 if test "$ac_cv_c_bigendian" = unknown; then
4762 ac_cv_c_bigendian=no
4763 else
4764 # finding both strings is unlikely to happen, but who knows?
4765 ac_cv_c_bigendian=unknown
4766 fi
4767 fi
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 $ac_includes_default
4774 int
4775 main ()
4776 {
4777
4778 /* Are we little or big endian? From Harbison&Steele. */
4779 union
4780 {
4781 long int l;
4782 char c[sizeof (long int)];
4783 } u;
4784 u.l = 1;
4785 return u.c[sizeof (long int) - 1] == 1;
4786
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 if ac_fn_c_try_run "$LINENO"; then :
4792 ac_cv_c_bigendian=no
4793 else
4794 ac_cv_c_bigendian=yes
4795 fi
4796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4797 conftest.$ac_objext conftest.beam conftest.$ac_ext
4798 fi
4799
4800 fi
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4803 $as_echo "$ac_cv_c_bigendian" >&6; }
4804 case $ac_cv_c_bigendian in #(
4805 yes)
4806 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4807 ;; #(
4808 no)
4809 ;; #(
4810 universal)
4811
4812 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4813
4814 ;; #(
4815 *)
4816 as_fn_error "unknown endianness
4817 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4818 esac
4819
4820
4821 HAVE_C9X=yes
4822 if test x"$apt_cv_c9x_ints" = x"no"; then
4823 # The cast to long int works around a bug in the HP C Compiler
4824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4826 # This bug is HP SR number 8606223364.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4828 $as_echo_n "checking size of char... " >&6; }
4829 if test "${ac_cv_sizeof_char+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
4833
4834 else
4835 if test "$ac_cv_type_char" = yes; then
4836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838 { as_fn_set_status 77
4839 as_fn_error "cannot compute sizeof (char)
4840 See \`config.log' for more details." "$LINENO" 5; }; }
4841 else
4842 ac_cv_sizeof_char=0
4843 fi
4844 fi
4845
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4848 $as_echo "$ac_cv_sizeof_char" >&6; }
4849
4850
4851
4852 cat >>confdefs.h <<_ACEOF
4853 #define SIZEOF_CHAR $ac_cv_sizeof_char
4854 _ACEOF
4855
4856
4857 # The cast to long int works around a bug in the HP C Compiler
4858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4860 # This bug is HP SR number 8606223364.
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4862 $as_echo_n "checking size of int... " >&6; }
4863 if test "${ac_cv_sizeof_int+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4867
4868 else
4869 if test "$ac_cv_type_int" = yes; then
4870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4872 { as_fn_set_status 77
4873 as_fn_error "cannot compute sizeof (int)
4874 See \`config.log' for more details." "$LINENO" 5; }; }
4875 else
4876 ac_cv_sizeof_int=0
4877 fi
4878 fi
4879
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4882 $as_echo "$ac_cv_sizeof_int" >&6; }
4883
4884
4885
4886 cat >>confdefs.h <<_ACEOF
4887 #define SIZEOF_INT $ac_cv_sizeof_int
4888 _ACEOF
4889
4890
4891 # The cast to long int works around a bug in the HP C Compiler
4892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4894 # This bug is HP SR number 8606223364.
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4896 $as_echo_n "checking size of short... " >&6; }
4897 if test "${ac_cv_sizeof_short+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4901
4902 else
4903 if test "$ac_cv_type_short" = yes; then
4904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906 { as_fn_set_status 77
4907 as_fn_error "cannot compute sizeof (short)
4908 See \`config.log' for more details." "$LINENO" 5; }; }
4909 else
4910 ac_cv_sizeof_short=0
4911 fi
4912 fi
4913
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4916 $as_echo "$ac_cv_sizeof_short" >&6; }
4917
4918
4919
4920 cat >>confdefs.h <<_ACEOF
4921 #define SIZEOF_SHORT $ac_cv_sizeof_short
4922 _ACEOF
4923
4924
4925 # The cast to long int works around a bug in the HP C Compiler
4926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4928 # This bug is HP SR number 8606223364.
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4930 $as_echo_n "checking size of long... " >&6; }
4931 if test "${ac_cv_sizeof_long+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4935
4936 else
4937 if test "$ac_cv_type_long" = yes; then
4938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4940 { as_fn_set_status 77
4941 as_fn_error "cannot compute sizeof (long)
4942 See \`config.log' for more details." "$LINENO" 5; }; }
4943 else
4944 ac_cv_sizeof_long=0
4945 fi
4946 fi
4947
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4950 $as_echo "$ac_cv_sizeof_long" >&6; }
4951
4952
4953
4954 cat >>confdefs.h <<_ACEOF
4955 #define SIZEOF_LONG $ac_cv_sizeof_long
4956 _ACEOF
4957
4958
4959
4960 HAVE_C9X=
4961
4962 fi
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing socklen_t" >&5
4965 $as_echo_n "checking for missing socklen_t... " >&6; }
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #include <sys/socket.h>
4969
4970 _ACEOF
4971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4972 $EGREP "socklen_t" >/dev/null 2>&1; then :
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 else
4976
4977 $as_echo "#define NEED_SOCKLEN_T_DEFINE 1" >>confdefs.h
4978
4979 NEED_SOCKLEN_T_DEFINE=yes
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing." >&5
4981 $as_echo "missing." >&6; }
4982 fi
4983 rm -f conftest*
4984
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
4988 $as_echo_n "checking for h_errno... " >&6; }
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #include <netdb.h>
4992
4993 _ACEOF
4994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4995 $EGREP "h_errno" >/dev/null 2>&1; then :
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: normal" >&5
4997 $as_echo "normal" >&6; }
4998 else
4999 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <netdb.h>
5003
5004 _ACEOF
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006 $EGREP "h_errno" >/dev/null 2>&1; then :
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needs _XOPEN_SOURCE_EXTENDED" >&5
5008 $as_echo "needs _XOPEN_SOURCE_EXTENDED" >&6; }
5009 else
5010 as_fn_error "\"not found.\"" "$LINENO" 5
5011 fi
5012 rm -f conftest*
5013
5014
5015 fi
5016 rm -f conftest*
5017
5018
5019 # Extract the first word of "debiandoc2html", so it can be a program name with args.
5020 set dummy debiandoc2html; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_path_DEBIANDOC_HTML+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 case $DEBIANDOC_HTML in
5027 [\\/]* | ?:[\\/]*)
5028 ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a path.
5029 ;;
5030 *)
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_DEBIANDOC_HTML="$as_dir/$ac_word$ac_exec_ext"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 ;;
5047 esac
5048 fi
5049 DEBIANDOC_HTML=$ac_cv_path_DEBIANDOC_HTML
5050 if test -n "$DEBIANDOC_HTML"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBIANDOC_HTML" >&5
5052 $as_echo "$DEBIANDOC_HTML" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 # Extract the first word of "debiandoc2text", so it can be a program name with args.
5060 set dummy debiandoc2text; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_path_DEBIANDOC_TEXT+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 case $DEBIANDOC_TEXT in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_DEBIANDOC_TEXT="$as_dir/$ac_word$ac_exec_ext"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 ;;
5087 esac
5088 fi
5089 DEBIANDOC_TEXT=$ac_cv_path_DEBIANDOC_TEXT
5090 if test -n "$DEBIANDOC_TEXT"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBIANDOC_TEXT" >&5
5092 $as_echo "$DEBIANDOC_TEXT" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099
5100 # Extract the first word of "doxygen", so it can be a program name with args.
5101 set dummy doxygen; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 case $DOXYGEN in
5108 [\\/]* | ?:[\\/]*)
5109 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5110 ;;
5111 *)
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 ;;
5128 esac
5129 fi
5130 DOXYGEN=$ac_cv_path_DOXYGEN
5131 if test -n "$DOXYGEN"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
5133 $as_echo "$DOXYGEN" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140
5141 # Extract the first word of "xsltproc", so it can be a program name with args.
5142 set dummy xsltproc; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 case $XSLTPROC in
5149 [\\/]* | ?:[\\/]*)
5150 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
5151 ;;
5152 *)
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 ;;
5169 esac
5170 fi
5171 XSLTPROC=$ac_cv_path_XSLTPROC
5172 if test -n "$XSLTPROC"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
5174 $as_echo "$XSLTPROC" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181
5182 # Extract the first word of "po4a", so it can be a program name with args.
5183 set dummy po4a; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if test "${ac_cv_path_PO4A+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 case $PO4A in
5190 [\\/]* | ?:[\\/]*)
5191 ac_cv_path_PO4A="$PO4A" # Let the user override the test with a path.
5192 ;;
5193 *)
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_PO4A="$as_dir/$ac_word$ac_exec_ext"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 ;;
5210 esac
5211 fi
5212 PO4A=$ac_cv_path_PO4A
5213 if test -n "$PO4A"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
5215 $as_echo "$PO4A" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221
5222
5223 # Extract the first word of "dot", so it can be a program name with args.
5224 set dummy dot; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$HAVE_DOT"; then
5231 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_HAVE_DOT="YES"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
5249 fi
5250 fi
5251 HAVE_DOT=$ac_cv_prog_HAVE_DOT
5252 if test -n "$HAVE_DOT"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
5254 $as_echo "$HAVE_DOT" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261 # Extract the first word of "dot", so it can be a program name with args.
5262 set dummy dot; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if test "${ac_cv_path_DOT+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 case $DOT in
5269 [\\/]* | ?:[\\/]*)
5270 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5271 ;;
5272 *)
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 ;;
5289 esac
5290 fi
5291 DOT=$ac_cv_path_DOT
5292 if test -n "$DOT"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
5294 $as_echo "$DOT" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 DOTDIR=$(dirname $DOT)
5302
5303
5304
5305 # Check whether --with-getconf was given.
5306 if test "${with_getconf+set}" = set; then :
5307 withval=$with_getconf; if test "$withval" = "yes"; then
5308 # Extract the first word of "getconf", so it can be a program name with args.
5309 set dummy getconf; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_path_GETCONF+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 case $GETCONF in
5316 [\\/]* | ?:[\\/]*)
5317 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
5318 ;;
5319 *)
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 ;;
5336 esac
5337 fi
5338 GETCONF=$ac_cv_path_GETCONF
5339 if test -n "$GETCONF"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
5341 $as_echo "$GETCONF" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5345 fi
5346
5347
5348 elif test ! "$withval" = "no";then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getconf" >&5
5350 $as_echo_n "checking getconf... " >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5352 $as_echo "$withval" >&6; }
5353 GETCONF=$withval
5354 fi
5355 else
5356 # Extract the first word of "getconf", so it can be a program name with args.
5357 set dummy getconf; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_path_GETCONF+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 case $GETCONF in
5364 [\\/]* | ?:[\\/]*)
5365 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
5366 ;;
5367 *)
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5378 fi
5379 done
5380 done
5381 IFS=$as_save_IFS
5382
5383 ;;
5384 esac
5385 fi
5386 GETCONF=$ac_cv_path_GETCONF
5387 if test -n "$GETCONF"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
5389 $as_echo "$GETCONF" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394
5395
5396
5397 fi
5398
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of cpus" >&5
5402 $as_echo_n "checking number of cpus... " >&6; }
5403
5404 # Check whether --with-cpus was given.
5405 if test "${with_cpus+set}" = set; then :
5406 withval=$with_cpus;
5407 if test "$withval" = "yes"; then
5408
5409 if test ! -z "$GETCONF";then
5410 old_args="$@"
5411 set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
5412 while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
5413 eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
5414 shift
5415 done
5416 fi
5417 if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
5418 eval NUM_CPUS="1"
5419 fi
5420
5421 elif test ! "$withval" = "no";then
5422 NUM_CPUS=$withval
5423 elif test "$withval" = "no";then
5424 NUM_CPUS=1
5425 fi
5426 else
5427
5428 if test ! -z "$GETCONF";then
5429 old_args="$@"
5430 set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
5431 while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
5432 eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
5433 shift
5434 done
5435 fi
5436 if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
5437 eval NUM_CPUS="1"
5438 fi
5439
5440
5441 fi
5442
5443 ah_NUM_CPUS_msg="$NUM_CPUS"
5444 if test "$NUM_CPUS" = "0"; then
5445 # broken getconf, time to bitch.
5446 ah_NUM_CPUS_msg="found 0 cpus. Has someone done a lobotomy?"
5447 NUM_CPUS=1
5448 fi
5449 if test $NUM_CPUS = 1 ;then
5450 default_PROC_MULTIPLY=1
5451 else
5452 default_PROC_MULTIPLY=2
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ah_NUM_CPUS_msg" >&5
5455 $as_echo "$ah_NUM_CPUS_msg" >&6; }
5456
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor multiplier" >&5
5460 $as_echo_n "checking processor multiplier... " >&6; }
5461
5462 # Check whether --with-proc-multiply was given.
5463 if test "${with_proc_multiply+set}" = set; then :
5464 withval=$with_proc_multiply; if test "$withval" = "yes"; then
5465 PROC_MULTIPLY=$default_PROC_MULTIPLY
5466 elif test ! "$withval" = "no";then
5467 PROC_MULTIPLY=$withval
5468 fi
5469 else
5470 PROC_MULTIPLY=$default_PROC_MULTIPLY
5471
5472 fi
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROC_MULTIPLY" >&5
5475 $as_echo "$PROC_MULTIPLY" >&6; }
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of processes to run during make" >&5
5481 $as_echo_n "checking number of processes to run during make... " >&6; }
5482
5483 # Check whether --with-procs was given.
5484 if test "${with_procs+set}" = set; then :
5485 withval=$with_procs; if test "$withval" = "yes"; then
5486 NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
5487 elif test ! "$withval" = "no";then
5488 NUM_PROCS=$withval
5489 fi
5490 else
5491 NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
5492
5493 fi
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_PROCS" >&5
5496 $as_echo "$NUM_PROCS" >&6; }
5497
5498
5499
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX -MD works" >&5
5501 $as_echo_n "checking if $CXX -MD works... " >&6; }
5502 touch gcc3dep.cc
5503 ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc
5504 rm -f gcc3dep.cc gcc3dep_test.o
5505 if test -e gcc3dep.d; then
5506 rm -f gcc3dep.d
5507 GCC_MD=input
5508 GCC3DEP=
5509 elif test -e gcc3dep_test.d; then
5510 rm -f gcc3dep_test.d
5511 GCC_MD=output
5512 GCC3DEP=yes
5513 else
5514 as_fn_error "no" "$LINENO" 5
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, for $GCC_MD" >&5
5517 $as_echo "yes, for $GCC_MD" >&6; }
5518
5519
5520
5521 ALL_LINGUAS="bg bs ca cs cy da de dz el en_GB es eu fi fr gl hu it ja ko ku nb nl nn pl pt_BR pt ro ru sk sl sv th tl uk vi zn_CN zh_TW"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5523 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5524 set x ${MAKE-make}
5525 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5526 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 cat >conftest.make <<\_ACEOF
5530 SHELL = /bin/sh
5531 all:
5532 @echo '@@@%%%=$(MAKE)=@@@%%%'
5533 _ACEOF
5534 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5535 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5536 *@@@%%%=?*=@@@%%%*)
5537 eval ac_cv_prog_make_${ac_make}_set=yes;;
5538 *)
5539 eval ac_cv_prog_make_${ac_make}_set=no;;
5540 esac
5541 rm -f conftest.make
5542 fi
5543 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5545 $as_echo "yes" >&6; }
5546 SET_MAKE=
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 SET_MAKE="MAKE=${MAKE-make}"
5551 fi
5552
5553 # Find a good install program. We prefer a C program (faster),
5554 # so one script is as good as another. But avoid the broken or
5555 # incompatible versions:
5556 # SysV /etc/install, /usr/sbin/install
5557 # SunOS /usr/etc/install
5558 # IRIX /sbin/install
5559 # AIX /bin/install
5560 # AmigaOS /C/install, which installs bootblocks on floppy discs
5561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5564 # OS/2's system install, which has a completely different semantic
5565 # ./install, which can be erroneously created by make from ./install.sh.
5566 # Reject install programs that cannot install multiple files.
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5569 if test -z "$INSTALL"; then
5570 if test "${ac_cv_path_install+set}" = set; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 # Account for people who put trailing slashes in PATH elements.
5579 case $as_dir/ in #((
5580 ./ | .// | /[cC]/* | \
5581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5583 /usr/ucb/* ) ;;
5584 *)
5585 # OSF1 and SCO ODT 3.0 have their own names for install.
5586 # Don't use installbsd from OSF since it installs stuff as root
5587 # by default.
5588 for ac_prog in ginstall scoinst install; do
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5591 if test $ac_prog = install &&
5592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5593 # AIX install. It has an incompatible calling convention.
5594 :
5595 elif test $ac_prog = install &&
5596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5597 # program-specific install script used by HP pwplus--don't use.
5598 :
5599 else
5600 rm -rf conftest.one conftest.two conftest.dir
5601 echo one > conftest.one
5602 echo two > conftest.two
5603 mkdir conftest.dir
5604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5605 test -s conftest.one && test -s conftest.two &&
5606 test -s conftest.dir/conftest.one &&
5607 test -s conftest.dir/conftest.two
5608 then
5609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5610 break 3
5611 fi
5612 fi
5613 fi
5614 done
5615 done
5616 ;;
5617 esac
5618
5619 done
5620 IFS=$as_save_IFS
5621
5622 rm -rf conftest.one conftest.two conftest.dir
5623
5624 fi
5625 if test "${ac_cv_path_install+set}" = set; then
5626 INSTALL=$ac_cv_path_install
5627 else
5628 # As a last resort, use the slow shell script. Don't cache a
5629 # value for INSTALL within a source directory, because that will
5630 # break other packages using the cache if that directory is
5631 # removed, or if the value is a relative name.
5632 INSTALL=$ac_install_sh
5633 fi
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5636 $as_echo "$INSTALL" >&6; }
5637
5638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5639 # It thinks the first close brace ends the variable substitution.
5640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5641
5642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5643
5644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5647 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5648 if test -z "$MKDIR_P"; then
5649 if test "${ac_cv_path_mkdir+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5654 do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_prog in mkdir gmkdir; do
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5660 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5661 'mkdir (GNU coreutils) '* | \
5662 'mkdir (coreutils) '* | \
5663 'mkdir (fileutils) '4.1*)
5664 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5665 break 3;;
5666 esac
5667 done
5668 done
5669 done
5670 IFS=$as_save_IFS
5671
5672 fi
5673
5674 test -d ./--version && rmdir ./--version
5675 if test "${ac_cv_path_mkdir+set}" = set; then
5676 MKDIR_P="$ac_cv_path_mkdir -p"
5677 else
5678 # As a last resort, use the slow shell script. Don't cache a
5679 # value for MKDIR_P within a source directory, because that will
5680 # break other packages using the cache if that directory is
5681 # removed, or if the value is a relative name.
5682 MKDIR_P="$ac_install_sh -d"
5683 fi
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5686 $as_echo "$MKDIR_P" >&6; }
5687
5688 mkdir_p="$MKDIR_P"
5689 case $mkdir_p in
5690 [\\/$]* | ?:[\\/]*) ;;
5691 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5692 esac
5693
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5696 $as_echo_n "checking whether NLS is requested... " >&6; }
5697 # Check whether --enable-nls was given.
5698 if test "${enable_nls+set}" = set; then :
5699 enableval=$enable_nls; USE_NLS=$enableval
5700 else
5701 USE_NLS=yes
5702 fi
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5705 $as_echo "$USE_NLS" >&6; }
5706
5707
5708
5709
5710 GETTEXT_MACRO_VERSION=0.17
5711
5712
5713
5714
5715 # Prepare PATH_SEPARATOR.
5716 # The user is always right.
5717 if test "${PATH_SEPARATOR+set}" != set; then
5718 echo "#! /bin/sh" >conf$$.sh
5719 echo "exit 0" >>conf$$.sh
5720 chmod +x conf$$.sh
5721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5722 PATH_SEPARATOR=';'
5723 else
5724 PATH_SEPARATOR=:
5725 fi
5726 rm -f conf$$.sh
5727 fi
5728
5729 # Find out how to test for executable files. Don't use a zero-byte file,
5730 # as systems may use methods other than mode bits to determine executability.
5731 cat >conf$$.file <<_ASEOF
5732 #! /bin/sh
5733 exit 0
5734 _ASEOF
5735 chmod +x conf$$.file
5736 if test -x conf$$.file >/dev/null 2>&1; then
5737 ac_executable_p="test -x"
5738 else
5739 ac_executable_p="test -f"
5740 fi
5741 rm -f conf$$.file
5742
5743 # Extract the first word of "msgfmt", so it can be a program name with args.
5744 set dummy msgfmt; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 case "$MSGFMT" in
5751 [\\/]* | ?:[\\/]*)
5752 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5753 ;;
5754 *)
5755 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5756 for ac_dir in $PATH; do
5757 IFS="$ac_save_IFS"
5758 test -z "$ac_dir" && ac_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5761 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5762 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5763 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5764 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5765 break 2
5766 fi
5767 fi
5768 done
5769 done
5770 IFS="$ac_save_IFS"
5771 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5772 ;;
5773 esac
5774 fi
5775 MSGFMT="$ac_cv_path_MSGFMT"
5776 if test "$MSGFMT" != ":"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5778 $as_echo "$MSGFMT" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5785 set dummy gmsgfmt; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 case $GMSGFMT in
5792 [\\/]* | ?:[\\/]*)
5793 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5794 ;;
5795 *)
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5812 ;;
5813 esac
5814 fi
5815 GMSGFMT=$ac_cv_path_GMSGFMT
5816 if test -n "$GMSGFMT"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5818 $as_echo "$GMSGFMT" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5822 fi
5823
5824
5825
5826 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5827 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5828 *) MSGFMT_015=$MSGFMT ;;
5829 esac
5830
5831 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5832 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5833 *) GMSGFMT_015=$GMSGFMT ;;
5834 esac
5835
5836
5837
5838 # Prepare PATH_SEPARATOR.
5839 # The user is always right.
5840 if test "${PATH_SEPARATOR+set}" != set; then
5841 echo "#! /bin/sh" >conf$$.sh
5842 echo "exit 0" >>conf$$.sh
5843 chmod +x conf$$.sh
5844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5845 PATH_SEPARATOR=';'
5846 else
5847 PATH_SEPARATOR=:
5848 fi
5849 rm -f conf$$.sh
5850 fi
5851
5852 # Find out how to test for executable files. Don't use a zero-byte file,
5853 # as systems may use methods other than mode bits to determine executability.
5854 cat >conf$$.file <<_ASEOF
5855 #! /bin/sh
5856 exit 0
5857 _ASEOF
5858 chmod +x conf$$.file
5859 if test -x conf$$.file >/dev/null 2>&1; then
5860 ac_executable_p="test -x"
5861 else
5862 ac_executable_p="test -f"
5863 fi
5864 rm -f conf$$.file
5865
5866 # Extract the first word of "xgettext", so it can be a program name with args.
5867 set dummy xgettext; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 case "$XGETTEXT" in
5874 [\\/]* | ?:[\\/]*)
5875 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5876 ;;
5877 *)
5878 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5879 for ac_dir in $PATH; do
5880 IFS="$ac_save_IFS"
5881 test -z "$ac_dir" && ac_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5884 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5885 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5886 (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
5887 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5888 break 2
5889 fi
5890 fi
5891 done
5892 done
5893 IFS="$ac_save_IFS"
5894 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5895 ;;
5896 esac
5897 fi
5898 XGETTEXT="$ac_cv_path_XGETTEXT"
5899 if test "$XGETTEXT" != ":"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5901 $as_echo "$XGETTEXT" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907 rm -f messages.po
5908
5909 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5910 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5911 *) XGETTEXT_015=$XGETTEXT ;;
5912 esac
5913
5914
5915
5916 # Prepare PATH_SEPARATOR.
5917 # The user is always right.
5918 if test "${PATH_SEPARATOR+set}" != set; then
5919 echo "#! /bin/sh" >conf$$.sh
5920 echo "exit 0" >>conf$$.sh
5921 chmod +x conf$$.sh
5922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5923 PATH_SEPARATOR=';'
5924 else
5925 PATH_SEPARATOR=:
5926 fi
5927 rm -f conf$$.sh
5928 fi
5929
5930 # Find out how to test for executable files. Don't use a zero-byte file,
5931 # as systems may use methods other than mode bits to determine executability.
5932 cat >conf$$.file <<_ASEOF
5933 #! /bin/sh
5934 exit 0
5935 _ASEOF
5936 chmod +x conf$$.file
5937 if test -x conf$$.file >/dev/null 2>&1; then
5938 ac_executable_p="test -x"
5939 else
5940 ac_executable_p="test -f"
5941 fi
5942 rm -f conf$$.file
5943
5944 # Extract the first word of "msgmerge", so it can be a program name with args.
5945 set dummy msgmerge; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 case "$MSGMERGE" in
5952 [\\/]* | ?:[\\/]*)
5953 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5954 ;;
5955 *)
5956 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5957 for ac_dir in $PATH; do
5958 IFS="$ac_save_IFS"
5959 test -z "$ac_dir" && ac_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5962 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5963 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5964 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5965 break 2
5966 fi
5967 fi
5968 done
5969 done
5970 IFS="$ac_save_IFS"
5971 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5972 ;;
5973 esac
5974 fi
5975 MSGMERGE="$ac_cv_path_MSGMERGE"
5976 if test "$MSGMERGE" != ":"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5978 $as_echo "$MSGMERGE" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984
5985 test -n "$localedir" || localedir='${datadir}/locale'
5986
5987
5988 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5989
5990
5991 ac_config_commands="$ac_config_commands po-directories"
5992
5993
5994
5995 if test "X$prefix" = "XNONE"; then
5996 acl_final_prefix="$ac_default_prefix"
5997 else
5998 acl_final_prefix="$prefix"
5999 fi
6000 if test "X$exec_prefix" = "XNONE"; then
6001 acl_final_exec_prefix='${prefix}'
6002 else
6003 acl_final_exec_prefix="$exec_prefix"
6004 fi
6005 acl_save_prefix="$prefix"
6006 prefix="$acl_final_prefix"
6007 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6008 prefix="$acl_save_prefix"
6009
6010
6011 # Check whether --with-gnu-ld was given.
6012 if test "${with_gnu_ld+set}" = set; then :
6013 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6014 else
6015 with_gnu_ld=no
6016 fi
6017
6018 # Prepare PATH_SEPARATOR.
6019 # The user is always right.
6020 if test "${PATH_SEPARATOR+set}" != set; then
6021 echo "#! /bin/sh" >conf$$.sh
6022 echo "exit 0" >>conf$$.sh
6023 chmod +x conf$$.sh
6024 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6025 PATH_SEPARATOR=';'
6026 else
6027 PATH_SEPARATOR=:
6028 fi
6029 rm -f conf$$.sh
6030 fi
6031 ac_prog=ld
6032 if test "$GCC" = yes; then
6033 # Check if gcc -print-prog-name=ld gives a path.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6035 $as_echo_n "checking for ld used by GCC... " >&6; }
6036 case $host in
6037 *-*-mingw*)
6038 # gcc leaves a trailing carriage return which upsets mingw
6039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6040 *)
6041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6042 esac
6043 case $ac_prog in
6044 # Accept absolute paths.
6045 [\\/]* | [A-Za-z]:[\\/]*)
6046 re_direlt='/[^/][^/]*/\.\./'
6047 # Canonicalize the path of ld
6048 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6049 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6050 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6051 done
6052 test -z "$LD" && LD="$ac_prog"
6053 ;;
6054 "")
6055 # If it fails, then pretend we aren't using GCC.
6056 ac_prog=ld
6057 ;;
6058 *)
6059 # If it is relative, then search for the first ld in PATH.
6060 with_gnu_ld=unknown
6061 ;;
6062 esac
6063 elif test "$with_gnu_ld" = yes; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6065 $as_echo_n "checking for GNU ld... " >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6068 $as_echo_n "checking for non-GNU ld... " >&6; }
6069 fi
6070 if test "${acl_cv_path_LD+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -z "$LD"; then
6074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6075 for ac_dir in $PATH; do
6076 test -z "$ac_dir" && ac_dir=.
6077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6078 acl_cv_path_LD="$ac_dir/$ac_prog"
6079 # Check to see if the program is GNU ld. I'd rather use --version,
6080 # but apparently some GNU ld's only accept -v.
6081 # Break only if it was the GNU/non-GNU ld that we prefer.
6082 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6083 *GNU* | *'with BFD'*)
6084 test "$with_gnu_ld" != no && break ;;
6085 *)
6086 test "$with_gnu_ld" != yes && break ;;
6087 esac
6088 fi
6089 done
6090 IFS="$ac_save_ifs"
6091 else
6092 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6093 fi
6094 fi
6095
6096 LD="$acl_cv_path_LD"
6097 if test -n "$LD"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6099 $as_echo "$LD" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6106 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6107 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6111 case `$LD -v 2>&1 </dev/null` in
6112 *GNU* | *'with BFD'*)
6113 acl_cv_prog_gnu_ld=yes ;;
6114 *)
6115 acl_cv_prog_gnu_ld=no ;;
6116 esac
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6119 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6120 with_gnu_ld=$acl_cv_prog_gnu_ld
6121
6122
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6126 $as_echo_n "checking for shared library run path origin... " >&6; }
6127 if test "${acl_cv_rpath+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130
6131 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6132 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6133 . ./conftest.sh
6134 rm -f ./conftest.sh
6135 acl_cv_rpath=done
6136
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6139 $as_echo "$acl_cv_rpath" >&6; }
6140 wl="$acl_cv_wl"
6141 acl_libext="$acl_cv_libext"
6142 acl_shlibext="$acl_cv_shlibext"
6143 acl_libname_spec="$acl_cv_libname_spec"
6144 acl_library_names_spec="$acl_cv_library_names_spec"
6145 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6146 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6147 acl_hardcode_direct="$acl_cv_hardcode_direct"
6148 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6149 # Check whether --enable-rpath was given.
6150 if test "${enable_rpath+set}" = set; then :
6151 enableval=$enable_rpath; :
6152 else
6153 enable_rpath=yes
6154 fi
6155
6156
6157
6158 acl_libdirstem=lib
6159 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6160 if test -n "$searchpath"; then
6161 acl_save_IFS="${IFS= }"; IFS=":"
6162 for searchdir in $searchpath; do
6163 if test -d "$searchdir"; then
6164 case "$searchdir" in
6165 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6166 *) searchdir=`cd "$searchdir" && pwd`
6167 case "$searchdir" in
6168 */lib64 ) acl_libdirstem=lib64 ;;
6169 esac ;;
6170 esac
6171 fi
6172 done
6173 IFS="$acl_save_IFS"
6174 fi
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184 use_additional=yes
6185
6186 acl_save_prefix="$prefix"
6187 prefix="$acl_final_prefix"
6188 acl_save_exec_prefix="$exec_prefix"
6189 exec_prefix="$acl_final_exec_prefix"
6190
6191 eval additional_includedir=\"$includedir\"
6192 eval additional_libdir=\"$libdir\"
6193
6194 exec_prefix="$acl_save_exec_prefix"
6195 prefix="$acl_save_prefix"
6196
6197
6198 # Check whether --with-libiconv-prefix was given.
6199 if test "${with_libiconv_prefix+set}" = set; then :
6200 withval=$with_libiconv_prefix;
6201 if test "X$withval" = "Xno"; then
6202 use_additional=no
6203 else
6204 if test "X$withval" = "X"; then
6205
6206 acl_save_prefix="$prefix"
6207 prefix="$acl_final_prefix"
6208 acl_save_exec_prefix="$exec_prefix"
6209 exec_prefix="$acl_final_exec_prefix"
6210
6211 eval additional_includedir=\"$includedir\"
6212 eval additional_libdir=\"$libdir\"
6213
6214 exec_prefix="$acl_save_exec_prefix"
6215 prefix="$acl_save_prefix"
6216
6217 else
6218 additional_includedir="$withval/include"
6219 additional_libdir="$withval/$acl_libdirstem"
6220 fi
6221 fi
6222
6223 fi
6224
6225 LIBICONV=
6226 LTLIBICONV=
6227 INCICONV=
6228 LIBICONV_PREFIX=
6229 rpathdirs=
6230 ltrpathdirs=
6231 names_already_handled=
6232 names_next_round='iconv '
6233 while test -n "$names_next_round"; do
6234 names_this_round="$names_next_round"
6235 names_next_round=
6236 for name in $names_this_round; do
6237 already_handled=
6238 for n in $names_already_handled; do
6239 if test "$n" = "$name"; then
6240 already_handled=yes
6241 break
6242 fi
6243 done
6244 if test -z "$already_handled"; then
6245 names_already_handled="$names_already_handled $name"
6246 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6247 eval value=\"\$HAVE_LIB$uppername\"
6248 if test -n "$value"; then
6249 if test "$value" = yes; then
6250 eval value=\"\$LIB$uppername\"
6251 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6252 eval value=\"\$LTLIB$uppername\"
6253 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6254 else
6255 :
6256 fi
6257 else
6258 found_dir=
6259 found_la=
6260 found_so=
6261 found_a=
6262 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6263 if test -n "$acl_shlibext"; then
6264 shrext=".$acl_shlibext" # typically: shrext=.so
6265 else
6266 shrext=
6267 fi
6268 if test $use_additional = yes; then
6269 dir="$additional_libdir"
6270 if test -n "$acl_shlibext"; then
6271 if test -f "$dir/$libname$shrext"; then
6272 found_dir="$dir"
6273 found_so="$dir/$libname$shrext"
6274 else
6275 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6276 ver=`(cd "$dir" && \
6277 for f in "$libname$shrext".*; do echo "$f"; done \
6278 | sed -e "s,^$libname$shrext\\\\.,," \
6279 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6280 | sed 1q ) 2>/dev/null`
6281 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6282 found_dir="$dir"
6283 found_so="$dir/$libname$shrext.$ver"
6284 fi
6285 else
6286 eval library_names=\"$acl_library_names_spec\"
6287 for f in $library_names; do
6288 if test -f "$dir/$f"; then
6289 found_dir="$dir"
6290 found_so="$dir/$f"
6291 break
6292 fi
6293 done
6294 fi
6295 fi
6296 fi
6297 if test "X$found_dir" = "X"; then
6298 if test -f "$dir/$libname.$acl_libext"; then
6299 found_dir="$dir"
6300 found_a="$dir/$libname.$acl_libext"
6301 fi
6302 fi
6303 if test "X$found_dir" != "X"; then
6304 if test -f "$dir/$libname.la"; then
6305 found_la="$dir/$libname.la"
6306 fi
6307 fi
6308 fi
6309 if test "X$found_dir" = "X"; then
6310 for x in $LDFLAGS $LTLIBICONV; do
6311
6312 acl_save_prefix="$prefix"
6313 prefix="$acl_final_prefix"
6314 acl_save_exec_prefix="$exec_prefix"
6315 exec_prefix="$acl_final_exec_prefix"
6316 eval x=\"$x\"
6317 exec_prefix="$acl_save_exec_prefix"
6318 prefix="$acl_save_prefix"
6319
6320 case "$x" in
6321 -L*)
6322 dir=`echo "X$x" | sed -e 's/^X-L//'`
6323 if test -n "$acl_shlibext"; then
6324 if test -f "$dir/$libname$shrext"; then
6325 found_dir="$dir"
6326 found_so="$dir/$libname$shrext"
6327 else
6328 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6329 ver=`(cd "$dir" && \
6330 for f in "$libname$shrext".*; do echo "$f"; done \
6331 | sed -e "s,^$libname$shrext\\\\.,," \
6332 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6333 | sed 1q ) 2>/dev/null`
6334 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6335 found_dir="$dir"
6336 found_so="$dir/$libname$shrext.$ver"
6337 fi
6338 else
6339 eval library_names=\"$acl_library_names_spec\"
6340 for f in $library_names; do
6341 if test -f "$dir/$f"; then
6342 found_dir="$dir"
6343 found_so="$dir/$f"
6344 break
6345 fi
6346 done
6347 fi
6348 fi
6349 fi
6350 if test "X$found_dir" = "X"; then
6351 if test -f "$dir/$libname.$acl_libext"; then
6352 found_dir="$dir"
6353 found_a="$dir/$libname.$acl_libext"
6354 fi
6355 fi
6356 if test "X$found_dir" != "X"; then
6357 if test -f "$dir/$libname.la"; then
6358 found_la="$dir/$libname.la"
6359 fi
6360 fi
6361 ;;
6362 esac
6363 if test "X$found_dir" != "X"; then
6364 break
6365 fi
6366 done
6367 fi
6368 if test "X$found_dir" != "X"; then
6369 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6370 if test "X$found_so" != "X"; then
6371 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6373 else
6374 haveit=
6375 for x in $ltrpathdirs; do
6376 if test "X$x" = "X$found_dir"; then
6377 haveit=yes
6378 break
6379 fi
6380 done
6381 if test -z "$haveit"; then
6382 ltrpathdirs="$ltrpathdirs $found_dir"
6383 fi
6384 if test "$acl_hardcode_direct" = yes; then
6385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6386 else
6387 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6388 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6389 haveit=
6390 for x in $rpathdirs; do
6391 if test "X$x" = "X$found_dir"; then
6392 haveit=yes
6393 break
6394 fi
6395 done
6396 if test -z "$haveit"; then
6397 rpathdirs="$rpathdirs $found_dir"
6398 fi
6399 else
6400 haveit=
6401 for x in $LDFLAGS $LIBICONV; do
6402
6403 acl_save_prefix="$prefix"
6404 prefix="$acl_final_prefix"
6405 acl_save_exec_prefix="$exec_prefix"
6406 exec_prefix="$acl_final_exec_prefix"
6407 eval x=\"$x\"
6408 exec_prefix="$acl_save_exec_prefix"
6409 prefix="$acl_save_prefix"
6410
6411 if test "X$x" = "X-L$found_dir"; then
6412 haveit=yes
6413 break
6414 fi
6415 done
6416 if test -z "$haveit"; then
6417 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6418 fi
6419 if test "$acl_hardcode_minus_L" != no; then
6420 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6421 else
6422 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6423 fi
6424 fi
6425 fi
6426 fi
6427 else
6428 if test "X$found_a" != "X"; then
6429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6430 else
6431 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6432 fi
6433 fi
6434 additional_includedir=
6435 case "$found_dir" in
6436 */$acl_libdirstem | */$acl_libdirstem/)
6437 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6438 LIBICONV_PREFIX="$basedir"
6439 additional_includedir="$basedir/include"
6440 ;;
6441 esac
6442 if test "X$additional_includedir" != "X"; then
6443 if test "X$additional_includedir" != "X/usr/include"; then
6444 haveit=
6445 if test "X$additional_includedir" = "X/usr/local/include"; then
6446 if test -n "$GCC"; then
6447 case $host_os in
6448 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6449 esac
6450 fi
6451 fi
6452 if test -z "$haveit"; then
6453 for x in $CPPFLAGS $INCICONV; do
6454
6455 acl_save_prefix="$prefix"
6456 prefix="$acl_final_prefix"
6457 acl_save_exec_prefix="$exec_prefix"
6458 exec_prefix="$acl_final_exec_prefix"
6459 eval x=\"$x\"
6460 exec_prefix="$acl_save_exec_prefix"
6461 prefix="$acl_save_prefix"
6462
6463 if test "X$x" = "X-I$additional_includedir"; then
6464 haveit=yes
6465 break
6466 fi
6467 done
6468 if test -z "$haveit"; then
6469 if test -d "$additional_includedir"; then
6470 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6471 fi
6472 fi
6473 fi
6474 fi
6475 fi
6476 if test -n "$found_la"; then
6477 save_libdir="$libdir"
6478 case "$found_la" in
6479 */* | *\\*) . "$found_la" ;;
6480 *) . "./$found_la" ;;
6481 esac
6482 libdir="$save_libdir"
6483 for dep in $dependency_libs; do
6484 case "$dep" in
6485 -L*)
6486 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6487 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6488 haveit=
6489 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6490 if test -n "$GCC"; then
6491 case $host_os in
6492 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6493 esac
6494 fi
6495 fi
6496 if test -z "$haveit"; then
6497 haveit=
6498 for x in $LDFLAGS $LIBICONV; do
6499
6500 acl_save_prefix="$prefix"
6501 prefix="$acl_final_prefix"
6502 acl_save_exec_prefix="$exec_prefix"
6503 exec_prefix="$acl_final_exec_prefix"
6504 eval x=\"$x\"
6505 exec_prefix="$acl_save_exec_prefix"
6506 prefix="$acl_save_prefix"
6507
6508 if test "X$x" = "X-L$additional_libdir"; then
6509 haveit=yes
6510 break
6511 fi
6512 done
6513 if test -z "$haveit"; then
6514 if test -d "$additional_libdir"; then
6515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6516 fi
6517 fi
6518 haveit=
6519 for x in $LDFLAGS $LTLIBICONV; do
6520
6521 acl_save_prefix="$prefix"
6522 prefix="$acl_final_prefix"
6523 acl_save_exec_prefix="$exec_prefix"
6524 exec_prefix="$acl_final_exec_prefix"
6525 eval x=\"$x\"
6526 exec_prefix="$acl_save_exec_prefix"
6527 prefix="$acl_save_prefix"
6528
6529 if test "X$x" = "X-L$additional_libdir"; then
6530 haveit=yes
6531 break
6532 fi
6533 done
6534 if test -z "$haveit"; then
6535 if test -d "$additional_libdir"; then
6536 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6537 fi
6538 fi
6539 fi
6540 fi
6541 ;;
6542 -R*)
6543 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6544 if test "$enable_rpath" != no; then
6545 haveit=
6546 for x in $rpathdirs; do
6547 if test "X$x" = "X$dir"; then
6548 haveit=yes
6549 break
6550 fi
6551 done
6552 if test -z "$haveit"; then
6553 rpathdirs="$rpathdirs $dir"
6554 fi
6555 haveit=
6556 for x in $ltrpathdirs; do
6557 if test "X$x" = "X$dir"; then
6558 haveit=yes
6559 break
6560 fi
6561 done
6562 if test -z "$haveit"; then
6563 ltrpathdirs="$ltrpathdirs $dir"
6564 fi
6565 fi
6566 ;;
6567 -l*)
6568 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6569 ;;
6570 *.la)
6571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6572 ;;
6573 *)
6574 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6576 ;;
6577 esac
6578 done
6579 fi
6580 else
6581 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6583 fi
6584 fi
6585 fi
6586 done
6587 done
6588 if test "X$rpathdirs" != "X"; then
6589 if test -n "$acl_hardcode_libdir_separator"; then
6590 alldirs=
6591 for found_dir in $rpathdirs; do
6592 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6593 done
6594 acl_save_libdir="$libdir"
6595 libdir="$alldirs"
6596 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6597 libdir="$acl_save_libdir"
6598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6599 else
6600 for found_dir in $rpathdirs; do
6601 acl_save_libdir="$libdir"
6602 libdir="$found_dir"
6603 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6604 libdir="$acl_save_libdir"
6605 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6606 done
6607 fi
6608 fi
6609 if test "X$ltrpathdirs" != "X"; then
6610 for found_dir in $ltrpathdirs; do
6611 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6612 done
6613 fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6640 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6641 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 gt_save_LIBS="$LIBS"
6645 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 #include <CoreFoundation/CFPreferences.h>
6649 int
6650 main ()
6651 {
6652 CFPreferencesCopyAppValue(NULL, NULL)
6653 ;
6654 return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_link "$LINENO"; then :
6658 gt_cv_func_CFPreferencesCopyAppValue=yes
6659 else
6660 gt_cv_func_CFPreferencesCopyAppValue=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 LIBS="$gt_save_LIBS"
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6667 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6668 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6669
6670 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6671
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6674 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6675 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 gt_save_LIBS="$LIBS"
6679 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 #include <CoreFoundation/CFLocale.h>
6683 int
6684 main ()
6685 {
6686 CFLocaleCopyCurrent();
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 if ac_fn_c_try_link "$LINENO"; then :
6692 gt_cv_func_CFLocaleCopyCurrent=yes
6693 else
6694 gt_cv_func_CFLocaleCopyCurrent=no
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698 LIBS="$gt_save_LIBS"
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6701 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6702 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6703
6704 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6705
6706 fi
6707 INTL_MACOSX_LIBS=
6708 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6709 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6710 fi
6711
6712
6713
6714
6715
6716
6717 LIBINTL=
6718 LTLIBINTL=
6719 POSUB=
6720
6721 case " $gt_needs " in
6722 *" need-formatstring-macros "*) gt_api_version=3 ;;
6723 *" need-ngettext "*) gt_api_version=2 ;;
6724 *) gt_api_version=1 ;;
6725 esac
6726 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6727 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6728
6729 if test "$USE_NLS" = "yes"; then
6730 gt_use_preinstalled_gnugettext=no
6731
6732
6733 if test $gt_api_version -ge 3; then
6734 gt_revision_test_code='
6735 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6736 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6737 #endif
6738 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6739 '
6740 else
6741 gt_revision_test_code=
6742 fi
6743 if test $gt_api_version -ge 2; then
6744 gt_expression_test_code=' + * ngettext ("", "", 0)'
6745 else
6746 gt_expression_test_code=
6747 fi
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6750 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6751 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <libintl.h>
6757 $gt_revision_test_code
6758 extern int _nl_msg_cat_cntr;
6759 extern int *_nl_domain_bindings;
6760 int
6761 main ()
6762 {
6763 bindtextdomain ("", "");
6764 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"; then :
6770 eval "$gt_func_gnugettext_libc=yes"
6771 else
6772 eval "$gt_func_gnugettext_libc=no"
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 fi
6777 eval ac_res=\$$gt_func_gnugettext_libc
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780
6781 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6782
6783
6784
6785
6786
6787 am_save_CPPFLAGS="$CPPFLAGS"
6788
6789 for element in $INCICONV; do
6790 haveit=
6791 for x in $CPPFLAGS; do
6792
6793 acl_save_prefix="$prefix"
6794 prefix="$acl_final_prefix"
6795 acl_save_exec_prefix="$exec_prefix"
6796 exec_prefix="$acl_final_exec_prefix"
6797 eval x=\"$x\"
6798 exec_prefix="$acl_save_exec_prefix"
6799 prefix="$acl_save_prefix"
6800
6801 if test "X$x" = "X$element"; then
6802 haveit=yes
6803 break
6804 fi
6805 done
6806 if test -z "$haveit"; then
6807 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6808 fi
6809 done
6810
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6813 $as_echo_n "checking for iconv... " >&6; }
6814 if test "${am_cv_func_iconv+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817
6818 am_cv_func_iconv="no, consider installing GNU libiconv"
6819 am_cv_lib_iconv=no
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 #include <stdlib.h>
6823 #include <iconv.h>
6824 int
6825 main ()
6826 {
6827 iconv_t cd = iconv_open("","");
6828 iconv(cd,NULL,NULL,NULL,NULL);
6829 iconv_close(cd);
6830 ;
6831 return 0;
6832 }
6833 _ACEOF
6834 if ac_fn_c_try_link "$LINENO"; then :
6835 am_cv_func_iconv=yes
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 if test "$am_cv_func_iconv" != yes; then
6840 am_save_LIBS="$LIBS"
6841 LIBS="$LIBS $LIBICONV"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 #include <stdlib.h>
6845 #include <iconv.h>
6846 int
6847 main ()
6848 {
6849 iconv_t cd = iconv_open("","");
6850 iconv(cd,NULL,NULL,NULL,NULL);
6851 iconv_close(cd);
6852 ;
6853 return 0;
6854 }
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"; then :
6857 am_cv_lib_iconv=yes
6858 am_cv_func_iconv=yes
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 LIBS="$am_save_LIBS"
6863 fi
6864
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6867 $as_echo "$am_cv_func_iconv" >&6; }
6868 if test "$am_cv_func_iconv" = yes; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6870 $as_echo_n "checking for working iconv... " >&6; }
6871 if test "${am_cv_func_iconv_works+set}" = set; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874
6875 am_save_LIBS="$LIBS"
6876 if test $am_cv_lib_iconv = yes; then
6877 LIBS="$LIBS $LIBICONV"
6878 fi
6879 if test "$cross_compiling" = yes; then :
6880 case "$host_os" in
6881 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6882 *) am_cv_func_iconv_works="guessing yes" ;;
6883 esac
6884 else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887
6888 #include <iconv.h>
6889 #include <string.h>
6890 int main ()
6891 {
6892 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6893 returns. */
6894 {
6895 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6896 if (cd_utf8_to_88591 != (iconv_t)(-1))
6897 {
6898 static const char input[] = "\342\202\254"; /* EURO SIGN */
6899 char buf[10];
6900 const char *inptr = input;
6901 size_t inbytesleft = strlen (input);
6902 char *outptr = buf;
6903 size_t outbytesleft = sizeof (buf);
6904 size_t res = iconv (cd_utf8_to_88591,
6905 (char **) &inptr, &inbytesleft,
6906 &outptr, &outbytesleft);
6907 if (res == 0)
6908 return 1;
6909 }
6910 }
6911 #if 0 /* This bug could be worked around by the caller. */
6912 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6913 {
6914 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6915 if (cd_88591_to_utf8 != (iconv_t)(-1))
6916 {
6917 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6918 char buf[50];
6919 const char *inptr = input;
6920 size_t inbytesleft = strlen (input);
6921 char *outptr = buf;
6922 size_t outbytesleft = sizeof (buf);
6923 size_t res = iconv (cd_88591_to_utf8,
6924 (char **) &inptr, &inbytesleft,
6925 &outptr, &outbytesleft);
6926 if ((int)res > 0)
6927 return 1;
6928 }
6929 }
6930 #endif
6931 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6932 provided. */
6933 if (/* Try standardized names. */
6934 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6935 /* Try IRIX, OSF/1 names. */
6936 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6937 /* Try AIX names. */
6938 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6939 /* Try HP-UX names. */
6940 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6941 return 1;
6942 return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_run "$LINENO"; then :
6946 am_cv_func_iconv_works=yes
6947 else
6948 am_cv_func_iconv_works=no
6949 fi
6950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6951 conftest.$ac_objext conftest.beam conftest.$ac_ext
6952 fi
6953
6954 LIBS="$am_save_LIBS"
6955
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6958 $as_echo "$am_cv_func_iconv_works" >&6; }
6959 case "$am_cv_func_iconv_works" in
6960 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6961 *) am_func_iconv=yes ;;
6962 esac
6963 else
6964 am_func_iconv=no am_cv_lib_iconv=no
6965 fi
6966 if test "$am_func_iconv" = yes; then
6967
6968 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6969
6970 fi
6971 if test "$am_cv_lib_iconv" = yes; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6973 $as_echo_n "checking how to link with libiconv... " >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6975 $as_echo "$LIBICONV" >&6; }
6976 else
6977 CPPFLAGS="$am_save_CPPFLAGS"
6978 LIBICONV=
6979 LTLIBICONV=
6980 fi
6981
6982
6983
6984
6985
6986
6987
6988
6989 use_additional=yes
6990
6991 acl_save_prefix="$prefix"
6992 prefix="$acl_final_prefix"
6993 acl_save_exec_prefix="$exec_prefix"
6994 exec_prefix="$acl_final_exec_prefix"
6995
6996 eval additional_includedir=\"$includedir\"
6997 eval additional_libdir=\"$libdir\"
6998
6999 exec_prefix="$acl_save_exec_prefix"
7000 prefix="$acl_save_prefix"
7001
7002
7003 # Check whether --with-libintl-prefix was given.
7004 if test "${with_libintl_prefix+set}" = set; then :
7005 withval=$with_libintl_prefix;
7006 if test "X$withval" = "Xno"; then
7007 use_additional=no
7008 else
7009 if test "X$withval" = "X"; then
7010
7011 acl_save_prefix="$prefix"
7012 prefix="$acl_final_prefix"
7013 acl_save_exec_prefix="$exec_prefix"
7014 exec_prefix="$acl_final_exec_prefix"
7015
7016 eval additional_includedir=\"$includedir\"
7017 eval additional_libdir=\"$libdir\"
7018
7019 exec_prefix="$acl_save_exec_prefix"
7020 prefix="$acl_save_prefix"
7021
7022 else
7023 additional_includedir="$withval/include"
7024 additional_libdir="$withval/$acl_libdirstem"
7025 fi
7026 fi
7027
7028 fi
7029
7030 LIBINTL=
7031 LTLIBINTL=
7032 INCINTL=
7033 LIBINTL_PREFIX=
7034 rpathdirs=
7035 ltrpathdirs=
7036 names_already_handled=
7037 names_next_round='intl '
7038 while test -n "$names_next_round"; do
7039 names_this_round="$names_next_round"
7040 names_next_round=
7041 for name in $names_this_round; do
7042 already_handled=
7043 for n in $names_already_handled; do
7044 if test "$n" = "$name"; then
7045 already_handled=yes
7046 break
7047 fi
7048 done
7049 if test -z "$already_handled"; then
7050 names_already_handled="$names_already_handled $name"
7051 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7052 eval value=\"\$HAVE_LIB$uppername\"
7053 if test -n "$value"; then
7054 if test "$value" = yes; then
7055 eval value=\"\$LIB$uppername\"
7056 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7057 eval value=\"\$LTLIB$uppername\"
7058 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7059 else
7060 :
7061 fi
7062 else
7063 found_dir=
7064 found_la=
7065 found_so=
7066 found_a=
7067 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7068 if test -n "$acl_shlibext"; then
7069 shrext=".$acl_shlibext" # typically: shrext=.so
7070 else
7071 shrext=
7072 fi
7073 if test $use_additional = yes; then
7074 dir="$additional_libdir"
7075 if test -n "$acl_shlibext"; then
7076 if test -f "$dir/$libname$shrext"; then
7077 found_dir="$dir"
7078 found_so="$dir/$libname$shrext"
7079 else
7080 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7081 ver=`(cd "$dir" && \
7082 for f in "$libname$shrext".*; do echo "$f"; done \
7083 | sed -e "s,^$libname$shrext\\\\.,," \
7084 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7085 | sed 1q ) 2>/dev/null`
7086 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7087 found_dir="$dir"
7088 found_so="$dir/$libname$shrext.$ver"
7089 fi
7090 else
7091 eval library_names=\"$acl_library_names_spec\"
7092 for f in $library_names; do
7093 if test -f "$dir/$f"; then
7094 found_dir="$dir"
7095 found_so="$dir/$f"
7096 break
7097 fi
7098 done
7099 fi
7100 fi
7101 fi
7102 if test "X$found_dir" = "X"; then
7103 if test -f "$dir/$libname.$acl_libext"; then
7104 found_dir="$dir"
7105 found_a="$dir/$libname.$acl_libext"
7106 fi
7107 fi
7108 if test "X$found_dir" != "X"; then
7109 if test -f "$dir/$libname.la"; then
7110 found_la="$dir/$libname.la"
7111 fi
7112 fi
7113 fi
7114 if test "X$found_dir" = "X"; then
7115 for x in $LDFLAGS $LTLIBINTL; do
7116
7117 acl_save_prefix="$prefix"
7118 prefix="$acl_final_prefix"
7119 acl_save_exec_prefix="$exec_prefix"
7120 exec_prefix="$acl_final_exec_prefix"
7121 eval x=\"$x\"
7122 exec_prefix="$acl_save_exec_prefix"
7123 prefix="$acl_save_prefix"
7124
7125 case "$x" in
7126 -L*)
7127 dir=`echo "X$x" | sed -e 's/^X-L//'`
7128 if test -n "$acl_shlibext"; then
7129 if test -f "$dir/$libname$shrext"; then
7130 found_dir="$dir"
7131 found_so="$dir/$libname$shrext"
7132 else
7133 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7134 ver=`(cd "$dir" && \
7135 for f in "$libname$shrext".*; do echo "$f"; done \
7136 | sed -e "s,^$libname$shrext\\\\.,," \
7137 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7138 | sed 1q ) 2>/dev/null`
7139 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7140 found_dir="$dir"
7141 found_so="$dir/$libname$shrext.$ver"
7142 fi
7143 else
7144 eval library_names=\"$acl_library_names_spec\"
7145 for f in $library_names; do
7146 if test -f "$dir/$f"; then
7147 found_dir="$dir"
7148 found_so="$dir/$f"
7149 break
7150 fi
7151 done
7152 fi
7153 fi
7154 fi
7155 if test "X$found_dir" = "X"; then
7156 if test -f "$dir/$libname.$acl_libext"; then
7157 found_dir="$dir"
7158 found_a="$dir/$libname.$acl_libext"
7159 fi
7160 fi
7161 if test "X$found_dir" != "X"; then
7162 if test -f "$dir/$libname.la"; then
7163 found_la="$dir/$libname.la"
7164 fi
7165 fi
7166 ;;
7167 esac
7168 if test "X$found_dir" != "X"; then
7169 break
7170 fi
7171 done
7172 fi
7173 if test "X$found_dir" != "X"; then
7174 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7175 if test "X$found_so" != "X"; then
7176 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7178 else
7179 haveit=
7180 for x in $ltrpathdirs; do
7181 if test "X$x" = "X$found_dir"; then
7182 haveit=yes
7183 break
7184 fi
7185 done
7186 if test -z "$haveit"; then
7187 ltrpathdirs="$ltrpathdirs $found_dir"
7188 fi
7189 if test "$acl_hardcode_direct" = yes; then
7190 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7191 else
7192 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7194 haveit=
7195 for x in $rpathdirs; do
7196 if test "X$x" = "X$found_dir"; then
7197 haveit=yes
7198 break
7199 fi
7200 done
7201 if test -z "$haveit"; then
7202 rpathdirs="$rpathdirs $found_dir"
7203 fi
7204 else
7205 haveit=
7206 for x in $LDFLAGS $LIBINTL; do
7207
7208 acl_save_prefix="$prefix"
7209 prefix="$acl_final_prefix"
7210 acl_save_exec_prefix="$exec_prefix"
7211 exec_prefix="$acl_final_exec_prefix"
7212 eval x=\"$x\"
7213 exec_prefix="$acl_save_exec_prefix"
7214 prefix="$acl_save_prefix"
7215
7216 if test "X$x" = "X-L$found_dir"; then
7217 haveit=yes
7218 break
7219 fi
7220 done
7221 if test -z "$haveit"; then
7222 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7223 fi
7224 if test "$acl_hardcode_minus_L" != no; then
7225 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7226 else
7227 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7228 fi
7229 fi
7230 fi
7231 fi
7232 else
7233 if test "X$found_a" != "X"; then
7234 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7235 else
7236 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7237 fi
7238 fi
7239 additional_includedir=
7240 case "$found_dir" in
7241 */$acl_libdirstem | */$acl_libdirstem/)
7242 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7243 LIBINTL_PREFIX="$basedir"
7244 additional_includedir="$basedir/include"
7245 ;;
7246 esac
7247 if test "X$additional_includedir" != "X"; then
7248 if test "X$additional_includedir" != "X/usr/include"; then
7249 haveit=
7250 if test "X$additional_includedir" = "X/usr/local/include"; then
7251 if test -n "$GCC"; then
7252 case $host_os in
7253 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7254 esac
7255 fi
7256 fi
7257 if test -z "$haveit"; then
7258 for x in $CPPFLAGS $INCINTL; do
7259
7260 acl_save_prefix="$prefix"
7261 prefix="$acl_final_prefix"
7262 acl_save_exec_prefix="$exec_prefix"
7263 exec_prefix="$acl_final_exec_prefix"
7264 eval x=\"$x\"
7265 exec_prefix="$acl_save_exec_prefix"
7266 prefix="$acl_save_prefix"
7267
7268 if test "X$x" = "X-I$additional_includedir"; then
7269 haveit=yes
7270 break
7271 fi
7272 done
7273 if test -z "$haveit"; then
7274 if test -d "$additional_includedir"; then
7275 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7276 fi
7277 fi
7278 fi
7279 fi
7280 fi
7281 if test -n "$found_la"; then
7282 save_libdir="$libdir"
7283 case "$found_la" in
7284 */* | *\\*) . "$found_la" ;;
7285 *) . "./$found_la" ;;
7286 esac
7287 libdir="$save_libdir"
7288 for dep in $dependency_libs; do
7289 case "$dep" in
7290 -L*)
7291 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7292 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7293 haveit=
7294 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7295 if test -n "$GCC"; then
7296 case $host_os in
7297 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7298 esac
7299 fi
7300 fi
7301 if test -z "$haveit"; then
7302 haveit=
7303 for x in $LDFLAGS $LIBINTL; do
7304
7305 acl_save_prefix="$prefix"
7306 prefix="$acl_final_prefix"
7307 acl_save_exec_prefix="$exec_prefix"
7308 exec_prefix="$acl_final_exec_prefix"
7309 eval x=\"$x\"
7310 exec_prefix="$acl_save_exec_prefix"
7311 prefix="$acl_save_prefix"
7312
7313 if test "X$x" = "X-L$additional_libdir"; then
7314 haveit=yes
7315 break
7316 fi
7317 done
7318 if test -z "$haveit"; then
7319 if test -d "$additional_libdir"; then
7320 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7321 fi
7322 fi
7323 haveit=
7324 for x in $LDFLAGS $LTLIBINTL; do
7325
7326 acl_save_prefix="$prefix"
7327 prefix="$acl_final_prefix"
7328 acl_save_exec_prefix="$exec_prefix"
7329 exec_prefix="$acl_final_exec_prefix"
7330 eval x=\"$x\"
7331 exec_prefix="$acl_save_exec_prefix"
7332 prefix="$acl_save_prefix"
7333
7334 if test "X$x" = "X-L$additional_libdir"; then
7335 haveit=yes
7336 break
7337 fi
7338 done
7339 if test -z "$haveit"; then
7340 if test -d "$additional_libdir"; then
7341 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7342 fi
7343 fi
7344 fi
7345 fi
7346 ;;
7347 -R*)
7348 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7349 if test "$enable_rpath" != no; then
7350 haveit=
7351 for x in $rpathdirs; do
7352 if test "X$x" = "X$dir"; then
7353 haveit=yes
7354 break
7355 fi
7356 done
7357 if test -z "$haveit"; then
7358 rpathdirs="$rpathdirs $dir"
7359 fi
7360 haveit=
7361 for x in $ltrpathdirs; do
7362 if test "X$x" = "X$dir"; then
7363 haveit=yes
7364 break
7365 fi
7366 done
7367 if test -z "$haveit"; then
7368 ltrpathdirs="$ltrpathdirs $dir"
7369 fi
7370 fi
7371 ;;
7372 -l*)
7373 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7374 ;;
7375 *.la)
7376 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7377 ;;
7378 *)
7379 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7380 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7381 ;;
7382 esac
7383 done
7384 fi
7385 else
7386 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7387 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7388 fi
7389 fi
7390 fi
7391 done
7392 done
7393 if test "X$rpathdirs" != "X"; then
7394 if test -n "$acl_hardcode_libdir_separator"; then
7395 alldirs=
7396 for found_dir in $rpathdirs; do
7397 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7398 done
7399 acl_save_libdir="$libdir"
7400 libdir="$alldirs"
7401 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7402 libdir="$acl_save_libdir"
7403 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7404 else
7405 for found_dir in $rpathdirs; do
7406 acl_save_libdir="$libdir"
7407 libdir="$found_dir"
7408 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7409 libdir="$acl_save_libdir"
7410 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7411 done
7412 fi
7413 fi
7414 if test "X$ltrpathdirs" != "X"; then
7415 for found_dir in $ltrpathdirs; do
7416 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7417 done
7418 fi
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7421 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7422 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 gt_save_CPPFLAGS="$CPPFLAGS"
7426 CPPFLAGS="$CPPFLAGS $INCINTL"
7427 gt_save_LIBS="$LIBS"
7428 LIBS="$LIBS $LIBINTL"
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 #include <libintl.h>
7432 $gt_revision_test_code
7433 extern int _nl_msg_cat_cntr;
7434 extern
7435 #ifdef __cplusplus
7436 "C"
7437 #endif
7438 const char *_nl_expand_alias (const char *);
7439 int
7440 main ()
7441 {
7442 bindtextdomain ("", "");
7443 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 if ac_fn_c_try_link "$LINENO"; then :
7449 eval "$gt_func_gnugettext_libintl=yes"
7450 else
7451 eval "$gt_func_gnugettext_libintl=no"
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext \
7454 conftest$ac_exeext conftest.$ac_ext
7455 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7456 LIBS="$LIBS $LIBICONV"
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <libintl.h>
7460 $gt_revision_test_code
7461 extern int _nl_msg_cat_cntr;
7462 extern
7463 #ifdef __cplusplus
7464 "C"
7465 #endif
7466 const char *_nl_expand_alias (const char *);
7467 int
7468 main ()
7469 {
7470 bindtextdomain ("", "");
7471 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 LIBINTL="$LIBINTL $LIBICONV"
7478 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7479 eval "$gt_func_gnugettext_libintl=yes"
7480
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 fi
7485 CPPFLAGS="$gt_save_CPPFLAGS"
7486 LIBS="$gt_save_LIBS"
7487 fi
7488 eval ac_res=\$$gt_func_gnugettext_libintl
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7490 $as_echo "$ac_res" >&6; }
7491 fi
7492
7493 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7494 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7495 && test "$PACKAGE" != gettext-runtime \
7496 && test "$PACKAGE" != gettext-tools; }; then
7497 gt_use_preinstalled_gnugettext=yes
7498 else
7499 LIBINTL=
7500 LTLIBINTL=
7501 INCINTL=
7502 fi
7503
7504
7505
7506 if test -n "$INTL_MACOSX_LIBS"; then
7507 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7508 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7509 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7510 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7511 fi
7512 fi
7513
7514 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7515 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7516
7517 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7518
7519 else
7520 USE_NLS=no
7521 fi
7522 fi
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7525 $as_echo_n "checking whether to use NLS... " >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7527 $as_echo "$USE_NLS" >&6; }
7528 if test "$USE_NLS" = "yes"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7530 $as_echo_n "checking where the gettext function comes from... " >&6; }
7531 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7532 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7533 gt_source="external libintl"
7534 else
7535 gt_source="libc"
7536 fi
7537 else
7538 gt_source="included intl directory"
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7541 $as_echo "$gt_source" >&6; }
7542 fi
7543
7544 if test "$USE_NLS" = "yes"; then
7545
7546 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7547 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7549 $as_echo_n "checking how to link with libintl... " >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7551 $as_echo "$LIBINTL" >&6; }
7552
7553 for element in $INCINTL; do
7554 haveit=
7555 for x in $CPPFLAGS; do
7556
7557 acl_save_prefix="$prefix"
7558 prefix="$acl_final_prefix"
7559 acl_save_exec_prefix="$exec_prefix"
7560 exec_prefix="$acl_final_exec_prefix"
7561 eval x=\"$x\"
7562 exec_prefix="$acl_save_exec_prefix"
7563 prefix="$acl_save_prefix"
7564
7565 if test "X$x" = "X$element"; then
7566 haveit=yes
7567 break
7568 fi
7569 done
7570 if test -z "$haveit"; then
7571 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7572 fi
7573 done
7574
7575 fi
7576
7577
7578 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7579
7580
7581 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7582
7583 fi
7584
7585 POSUB=po
7586 fi
7587
7588
7589
7590 INTLLIBS="$LIBINTL"
7591
7592
7593
7594
7595
7596
7597 if test x"$USE_NLS" = "xyes"; then
7598 $as_echo "#define USE_NLS 1" >>confdefs.h
7599
7600 fi
7601
7602 # Extract the first word of "bash", so it can be a program name with args.
7603 set dummy bash; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if test "${ac_cv_path_BASH+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 case $BASH in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
7612 ;;
7613 *)
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 ;;
7630 esac
7631 fi
7632 BASH=$ac_cv_path_BASH
7633 if test -n "$BASH"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
7635 $as_echo "$BASH" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7639 fi
7640
7641
7642
7643 ac_config_files="$ac_config_files environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in doc/Doxyfile"
7644
7645 ac_config_commands="$ac_config_commands default"
7646
7647 cat >confcache <<\_ACEOF
7648 # This file is a shell script that caches the results of configure
7649 # tests run on this system so they can be shared between configure
7650 # scripts and configure runs, see configure's option --config-cache.
7651 # It is not useful on other systems. If it contains results you don't
7652 # want to keep, you may remove or edit it.
7653 #
7654 # config.status only pays attention to the cache file if you give it
7655 # the --recheck option to rerun configure.
7656 #
7657 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7658 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7659 # following values.
7660
7661 _ACEOF
7662
7663 # The following way of writing the cache mishandles newlines in values,
7664 # but we know of no workaround that is simple, portable, and efficient.
7665 # So, we kill variables containing newlines.
7666 # Ultrix sh set writes to stderr and can't be redirected directly,
7667 # and sets the high bit in the cache file unless we assign to the vars.
7668 (
7669 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7670 eval ac_val=\$$ac_var
7671 case $ac_val in #(
7672 *${as_nl}*)
7673 case $ac_var in #(
7674 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7676 esac
7677 case $ac_var in #(
7678 _ | IFS | as_nl) ;; #(
7679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7680 *) { eval $ac_var=; unset $ac_var;} ;;
7681 esac ;;
7682 esac
7683 done
7684
7685 (set) 2>&1 |
7686 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7687 *${as_nl}ac_space=\ *)
7688 # `set' does not quote correctly, so add quotes: double-quote
7689 # substitution turns \\\\ into \\, and sed turns \\ into \.
7690 sed -n \
7691 "s/'/'\\\\''/g;
7692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7693 ;; #(
7694 *)
7695 # `set' quotes correctly as required by POSIX, so do not add quotes.
7696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7697 ;;
7698 esac |
7699 sort
7700 ) |
7701 sed '
7702 /^ac_cv_env_/b end
7703 t clear
7704 :clear
7705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7706 t end
7707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7708 :end' >>confcache
7709 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7710 if test -w "$cache_file"; then
7711 test "x$cache_file" != "x/dev/null" &&
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7713 $as_echo "$as_me: updating cache $cache_file" >&6;}
7714 cat confcache >$cache_file
7715 else
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7717 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7718 fi
7719 fi
7720 rm -f confcache
7721
7722 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7723 # Let make expand exec_prefix.
7724 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7725
7726 DEFS=-DHAVE_CONFIG_H
7727
7728 ac_libobjs=
7729 ac_ltlibobjs=
7730 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7731 # 1. Remove the extension, and $U if already installed.
7732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7733 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7735 # will be set to the directory where LIBOBJS objects are built.
7736 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7737 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7738 done
7739 LIBOBJS=$ac_libobjs
7740
7741 LTLIBOBJS=$ac_ltlibobjs
7742
7743
7744
7745
7746 : ${CONFIG_STATUS=./config.status}
7747 ac_write_fail=0
7748 ac_clean_files_save=$ac_clean_files
7749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7751 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7752 as_write_fail=0
7753 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7754 #! $SHELL
7755 # Generated by $as_me.
7756 # Run this file to recreate the current configuration.
7757 # Compiler output produced by configure, useful for debugging
7758 # configure, is in config.log if it exists.
7759
7760 debug=false
7761 ac_cs_recheck=false
7762 ac_cs_silent=false
7763
7764 SHELL=\${CONFIG_SHELL-$SHELL}
7765 export SHELL
7766 _ASEOF
7767 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7768 ## -------------------- ##
7769 ## M4sh Initialization. ##
7770 ## -------------------- ##
7771
7772 # Be more Bourne compatible
7773 DUALCASE=1; export DUALCASE # for MKS sh
7774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7775 emulate sh
7776 NULLCMD=:
7777 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7778 # is contrary to our usage. Disable this feature.
7779 alias -g '${1+"$@"}'='"$@"'
7780 setopt NO_GLOB_SUBST
7781 else
7782 case `(set -o) 2>/dev/null` in #(
7783 *posix*) :
7784 set -o posix ;; #(
7785 *) :
7786 ;;
7787 esac
7788 fi
7789
7790
7791 as_nl='
7792 '
7793 export as_nl
7794 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7795 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7798 # Prefer a ksh shell builtin over an external printf program on Solaris,
7799 # but without wasting forks for bash or zsh.
7800 if test -z "$BASH_VERSION$ZSH_VERSION" \
7801 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7802 as_echo='print -r --'
7803 as_echo_n='print -rn --'
7804 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7805 as_echo='printf %s\n'
7806 as_echo_n='printf %s'
7807 else
7808 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7809 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7810 as_echo_n='/usr/ucb/echo -n'
7811 else
7812 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7813 as_echo_n_body='eval
7814 arg=$1;
7815 case $arg in #(
7816 *"$as_nl"*)
7817 expr "X$arg" : "X\\(.*\\)$as_nl";
7818 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7819 esac;
7820 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7821 '
7822 export as_echo_n_body
7823 as_echo_n='sh -c $as_echo_n_body as_echo'
7824 fi
7825 export as_echo_body
7826 as_echo='sh -c $as_echo_body as_echo'
7827 fi
7828
7829 # The user is always right.
7830 if test "${PATH_SEPARATOR+set}" != set; then
7831 PATH_SEPARATOR=:
7832 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7833 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7834 PATH_SEPARATOR=';'
7835 }
7836 fi
7837
7838
7839 # IFS
7840 # We need space, tab and new line, in precisely that order. Quoting is
7841 # there to prevent editors from complaining about space-tab.
7842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7843 # splitting by setting IFS to empty value.)
7844 IFS=" "" $as_nl"
7845
7846 # Find who we are. Look in the path if we contain no directory separator.
7847 case $0 in #((
7848 *[\\/]* ) as_myself=$0 ;;
7849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7855 done
7856 IFS=$as_save_IFS
7857
7858 ;;
7859 esac
7860 # We did not find ourselves, most probably we were run as `sh COMMAND'
7861 # in which case we are not to be found in the path.
7862 if test "x$as_myself" = x; then
7863 as_myself=$0
7864 fi
7865 if test ! -f "$as_myself"; then
7866 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7867 exit 1
7868 fi
7869
7870 # Unset variables that we do not need and which cause bugs (e.g. in
7871 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7872 # suppresses any "Segmentation fault" message there. '((' could
7873 # trigger a bug in pdksh 5.2.14.
7874 for as_var in BASH_ENV ENV MAIL MAILPATH
7875 do eval test x\${$as_var+set} = xset \
7876 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7877 done
7878 PS1='$ '
7879 PS2='> '
7880 PS4='+ '
7881
7882 # NLS nuisances.
7883 LC_ALL=C
7884 export LC_ALL
7885 LANGUAGE=C
7886 export LANGUAGE
7887
7888 # CDPATH.
7889 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7890
7891
7892 # as_fn_error ERROR [LINENO LOG_FD]
7893 # ---------------------------------
7894 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7895 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7896 # script with status $?, using 1 if that was 0.
7897 as_fn_error ()
7898 {
7899 as_status=$?; test $as_status -eq 0 && as_status=1
7900 if test "$3"; then
7901 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7902 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7903 fi
7904 $as_echo "$as_me: error: $1" >&2
7905 as_fn_exit $as_status
7906 } # as_fn_error
7907
7908
7909 # as_fn_set_status STATUS
7910 # -----------------------
7911 # Set $? to STATUS, without forking.
7912 as_fn_set_status ()
7913 {
7914 return $1
7915 } # as_fn_set_status
7916
7917 # as_fn_exit STATUS
7918 # -----------------
7919 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7920 as_fn_exit ()
7921 {
7922 set +e
7923 as_fn_set_status $1
7924 exit $1
7925 } # as_fn_exit
7926
7927 # as_fn_unset VAR
7928 # ---------------
7929 # Portably unset VAR.
7930 as_fn_unset ()
7931 {
7932 { eval $1=; unset $1;}
7933 }
7934 as_unset=as_fn_unset
7935 # as_fn_append VAR VALUE
7936 # ----------------------
7937 # Append the text in VALUE to the end of the definition contained in VAR. Take
7938 # advantage of any shell optimizations that allow amortized linear growth over
7939 # repeated appends, instead of the typical quadratic growth present in naive
7940 # implementations.
7941 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7942 eval 'as_fn_append ()
7943 {
7944 eval $1+=\$2
7945 }'
7946 else
7947 as_fn_append ()
7948 {
7949 eval $1=\$$1\$2
7950 }
7951 fi # as_fn_append
7952
7953 # as_fn_arith ARG...
7954 # ------------------
7955 # Perform arithmetic evaluation on the ARGs, and store the result in the
7956 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7957 # must be portable across $(()) and expr.
7958 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7959 eval 'as_fn_arith ()
7960 {
7961 as_val=$(( $* ))
7962 }'
7963 else
7964 as_fn_arith ()
7965 {
7966 as_val=`expr "$@" || test $? -eq 1`
7967 }
7968 fi # as_fn_arith
7969
7970
7971 if expr a : '\(a\)' >/dev/null 2>&1 &&
7972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7973 as_expr=expr
7974 else
7975 as_expr=false
7976 fi
7977
7978 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7979 as_basename=basename
7980 else
7981 as_basename=false
7982 fi
7983
7984 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7985 as_dirname=dirname
7986 else
7987 as_dirname=false
7988 fi
7989
7990 as_me=`$as_basename -- "$0" ||
7991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7992 X"$0" : 'X\(//\)$' \| \
7993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7994 $as_echo X/"$0" |
7995 sed '/^.*\/\([^/][^/]*\)\/*$/{
7996 s//\1/
7997 q
7998 }
7999 /^X\/\(\/\/\)$/{
8000 s//\1/
8001 q
8002 }
8003 /^X\/\(\/\).*/{
8004 s//\1/
8005 q
8006 }
8007 s/.*/./; q'`
8008
8009 # Avoid depending upon Character Ranges.
8010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8013 as_cr_digits='0123456789'
8014 as_cr_alnum=$as_cr_Letters$as_cr_digits
8015
8016 ECHO_C= ECHO_N= ECHO_T=
8017 case `echo -n x` in #(((((
8018 -n*)
8019 case `echo 'xy\c'` in
8020 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8021 xy) ECHO_C='\c';;
8022 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8023 ECHO_T=' ';;
8024 esac;;
8025 *)
8026 ECHO_N='-n';;
8027 esac
8028
8029 rm -f conf$$ conf$$.exe conf$$.file
8030 if test -d conf$$.dir; then
8031 rm -f conf$$.dir/conf$$.file
8032 else
8033 rm -f conf$$.dir
8034 mkdir conf$$.dir 2>/dev/null
8035 fi
8036 if (echo >conf$$.file) 2>/dev/null; then
8037 if ln -s conf$$.file conf$$ 2>/dev/null; then
8038 as_ln_s='ln -s'
8039 # ... but there are two gotchas:
8040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8042 # In both cases, we have to default to `cp -p'.
8043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8044 as_ln_s='cp -p'
8045 elif ln conf$$.file conf$$ 2>/dev/null; then
8046 as_ln_s=ln
8047 else
8048 as_ln_s='cp -p'
8049 fi
8050 else
8051 as_ln_s='cp -p'
8052 fi
8053 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8054 rmdir conf$$.dir 2>/dev/null
8055
8056
8057 # as_fn_mkdir_p
8058 # -------------
8059 # Create "$as_dir" as a directory, including parents if necessary.
8060 as_fn_mkdir_p ()
8061 {
8062
8063 case $as_dir in #(
8064 -*) as_dir=./$as_dir;;
8065 esac
8066 test -d "$as_dir" || eval $as_mkdir_p || {
8067 as_dirs=
8068 while :; do
8069 case $as_dir in #(
8070 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8071 *) as_qdir=$as_dir;;
8072 esac
8073 as_dirs="'$as_qdir' $as_dirs"
8074 as_dir=`$as_dirname -- "$as_dir" ||
8075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8076 X"$as_dir" : 'X\(//\)[^/]' \| \
8077 X"$as_dir" : 'X\(//\)$' \| \
8078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8079 $as_echo X"$as_dir" |
8080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8081 s//\1/
8082 q
8083 }
8084 /^X\(\/\/\)[^/].*/{
8085 s//\1/
8086 q
8087 }
8088 /^X\(\/\/\)$/{
8089 s//\1/
8090 q
8091 }
8092 /^X\(\/\).*/{
8093 s//\1/
8094 q
8095 }
8096 s/.*/./; q'`
8097 test -d "$as_dir" && break
8098 done
8099 test -z "$as_dirs" || eval "mkdir $as_dirs"
8100 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8101
8102
8103 } # as_fn_mkdir_p
8104 if mkdir -p . 2>/dev/null; then
8105 as_mkdir_p='mkdir -p "$as_dir"'
8106 else
8107 test -d ./-p && rmdir ./-p
8108 as_mkdir_p=false
8109 fi
8110
8111 if test -x / >/dev/null 2>&1; then
8112 as_test_x='test -x'
8113 else
8114 if ls -dL / >/dev/null 2>&1; then
8115 as_ls_L_option=L
8116 else
8117 as_ls_L_option=
8118 fi
8119 as_test_x='
8120 eval sh -c '\''
8121 if test -d "$1"; then
8122 test -d "$1/.";
8123 else
8124 case $1 in #(
8125 -*)set "./$1";;
8126 esac;
8127 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8128 ???[sx]*):;;*)false;;esac;fi
8129 '\'' sh
8130 '
8131 fi
8132 as_executable_p=$as_test_x
8133
8134 # Sed expression to map a string onto a valid CPP name.
8135 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8136
8137 # Sed expression to map a string onto a valid variable name.
8138 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8139
8140
8141 exec 6>&1
8142 ## ----------------------------------- ##
8143 ## Main body of $CONFIG_STATUS script. ##
8144 ## ----------------------------------- ##
8145 _ASEOF
8146 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8147
8148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8149 # Save the log message, to keep $0 and so on meaningful, and to
8150 # report actual input values of CONFIG_FILES etc. instead of their
8151 # values after options handling.
8152 ac_log="
8153 This file was extended by $as_me, which was
8154 generated by GNU Autoconf 2.65. Invocation command line was
8155
8156 CONFIG_FILES = $CONFIG_FILES
8157 CONFIG_HEADERS = $CONFIG_HEADERS
8158 CONFIG_LINKS = $CONFIG_LINKS
8159 CONFIG_COMMANDS = $CONFIG_COMMANDS
8160 $ $0 $@
8161
8162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8163 "
8164
8165 _ACEOF
8166
8167 case $ac_config_files in *"
8168 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8169 esac
8170
8171 case $ac_config_headers in *"
8172 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8173 esac
8174
8175
8176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8177 # Files that config.status was made for.
8178 config_files="$ac_config_files"
8179 config_headers="$ac_config_headers"
8180 config_commands="$ac_config_commands"
8181
8182 _ACEOF
8183
8184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8185 ac_cs_usage="\
8186 \`$as_me' instantiates files and other configuration actions
8187 from templates according to the current configuration. Unless the files
8188 and actions are specified as TAGs, all are instantiated by default.
8189
8190 Usage: $0 [OPTION]... [TAG]...
8191
8192 -h, --help print this help, then exit
8193 -V, --version print version number and configuration settings, then exit
8194 --config print configuration, then exit
8195 -q, --quiet, --silent
8196 do not print progress messages
8197 -d, --debug don't remove temporary files
8198 --recheck update $as_me by reconfiguring in the same conditions
8199 --file=FILE[:TEMPLATE]
8200 instantiate the configuration file FILE
8201 --header=FILE[:TEMPLATE]
8202 instantiate the configuration header FILE
8203
8204 Configuration files:
8205 $config_files
8206
8207 Configuration headers:
8208 $config_headers
8209
8210 Configuration commands:
8211 $config_commands
8212
8213 Report bugs to the package provider."
8214
8215 _ACEOF
8216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8217 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8218 ac_cs_version="\\
8219 config.status
8220 configured by $0, generated by GNU Autoconf 2.65,
8221 with options \\"\$ac_cs_config\\"
8222
8223 Copyright (C) 2009 Free Software Foundation, Inc.
8224 This config.status script is free software; the Free Software Foundation
8225 gives unlimited permission to copy, distribute and modify it."
8226
8227 ac_pwd='$ac_pwd'
8228 srcdir='$srcdir'
8229 INSTALL='$INSTALL'
8230 MKDIR_P='$MKDIR_P'
8231 test -n "\$AWK" || AWK=awk
8232 _ACEOF
8233
8234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8235 # The default lists apply if the user does not specify any file.
8236 ac_need_defaults=:
8237 while test $# != 0
8238 do
8239 case $1 in
8240 --*=*)
8241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8242 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8243 ac_shift=:
8244 ;;
8245 *)
8246 ac_option=$1
8247 ac_optarg=$2
8248 ac_shift=shift
8249 ;;
8250 esac
8251
8252 case $ac_option in
8253 # Handling of the options.
8254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8255 ac_cs_recheck=: ;;
8256 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8257 $as_echo "$ac_cs_version"; exit ;;
8258 --config | --confi | --conf | --con | --co | --c )
8259 $as_echo "$ac_cs_config"; exit ;;
8260 --debug | --debu | --deb | --de | --d | -d )
8261 debug=: ;;
8262 --file | --fil | --fi | --f )
8263 $ac_shift
8264 case $ac_optarg in
8265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8266 esac
8267 as_fn_append CONFIG_FILES " '$ac_optarg'"
8268 ac_need_defaults=false;;
8269 --header | --heade | --head | --hea )
8270 $ac_shift
8271 case $ac_optarg in
8272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8273 esac
8274 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8275 ac_need_defaults=false;;
8276 --he | --h)
8277 # Conflict between --help and --header
8278 as_fn_error "ambiguous option: \`$1'
8279 Try \`$0 --help' for more information.";;
8280 --help | --hel | -h )
8281 $as_echo "$ac_cs_usage"; exit ;;
8282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8284 ac_cs_silent=: ;;
8285
8286 # This is an error.
8287 -*) as_fn_error "unrecognized option: \`$1'
8288 Try \`$0 --help' for more information." ;;
8289
8290 *) as_fn_append ac_config_targets " $1"
8291 ac_need_defaults=false ;;
8292
8293 esac
8294 shift
8295 done
8296
8297 ac_configure_extra_args=
8298
8299 if $ac_cs_silent; then
8300 exec 6>/dev/null
8301 ac_configure_extra_args="$ac_configure_extra_args --silent"
8302 fi
8303
8304 _ACEOF
8305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8306 if \$ac_cs_recheck; then
8307 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8308 shift
8309 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8310 CONFIG_SHELL='$SHELL'
8311 export CONFIG_SHELL
8312 exec "\$@"
8313 fi
8314
8315 _ACEOF
8316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8317 exec 5>>config.log
8318 {
8319 echo
8320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8321 ## Running $as_me. ##
8322 _ASBOX
8323 $as_echo "$ac_log"
8324 } >&5
8325
8326 _ACEOF
8327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8328 #
8329 # INIT-COMMANDS
8330 #
8331 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8332 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8333 # from automake < 1.5.
8334 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8335 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8336 LINGUAS="${LINGUAS-%UNSET%}"
8337
8338
8339 _ACEOF
8340
8341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8342
8343 # Handling of arguments.
8344 for ac_config_target in $ac_config_targets
8345 do
8346 case $ac_config_target in
8347 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:buildlib/config.h.in" ;;
8348 "include/apti18n.h") CONFIG_HEADERS="$CONFIG_HEADERS include/apti18n.h:buildlib/apti18n.h.in" ;;
8349 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8350 "environment.mak") CONFIG_FILES="$CONFIG_FILES environment.mak:buildlib/environment.mak.in" ;;
8351 "makefile") CONFIG_FILES="$CONFIG_FILES makefile:buildlib/makefile.in" ;;
8352 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
8353 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8354
8355 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8356 esac
8357 done
8358
8359
8360 # If the user did not use the arguments to specify the items to instantiate,
8361 # then the envvar interface is used. Set only those that are not.
8362 # We use the long form for the default assignment because of an extremely
8363 # bizarre bug on SunOS 4.1.3.
8364 if $ac_need_defaults; then
8365 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8366 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8368 fi
8369
8370 # Have a temporary directory for convenience. Make it in the build tree
8371 # simply because there is no reason against having it here, and in addition,
8372 # creating and moving files from /tmp can sometimes cause problems.
8373 # Hook for its removal unless debugging.
8374 # Note that there is a small window in which the directory will not be cleaned:
8375 # after its creation but before its name has been assigned to `$tmp'.
8376 $debug ||
8377 {
8378 tmp=
8379 trap 'exit_status=$?
8380 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8381 ' 0
8382 trap 'as_fn_exit 1' 1 2 13 15
8383 }
8384 # Create a (secure) tmp directory for tmp files.
8385
8386 {
8387 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8388 test -n "$tmp" && test -d "$tmp"
8389 } ||
8390 {
8391 tmp=./conf$$-$RANDOM
8392 (umask 077 && mkdir "$tmp")
8393 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8394
8395 # Set up the scripts for CONFIG_FILES section.
8396 # No need to generate them if there are no CONFIG_FILES.
8397 # This happens for instance with `./config.status config.h'.
8398 if test -n "$CONFIG_FILES"; then
8399
8400
8401 ac_cr=`echo X | tr X '\015'`
8402 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8403 # But we know of no other shell where ac_cr would be empty at this
8404 # point, so we can use a bashism as a fallback.
8405 if test "x$ac_cr" = x; then
8406 eval ac_cr=\$\'\\r\'
8407 fi
8408 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8409 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8410 ac_cs_awk_cr='\r'
8411 else
8412 ac_cs_awk_cr=$ac_cr
8413 fi
8414
8415 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8416 _ACEOF
8417
8418
8419 {
8420 echo "cat >conf$$subs.awk <<_ACEOF" &&
8421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8422 echo "_ACEOF"
8423 } >conf$$subs.sh ||
8424 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8425 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8426 ac_delim='%!_!# '
8427 for ac_last_try in false false false false false :; do
8428 . ./conf$$subs.sh ||
8429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8430
8431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8432 if test $ac_delim_n = $ac_delim_num; then
8433 break
8434 elif $ac_last_try; then
8435 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8436 else
8437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8438 fi
8439 done
8440 rm -f conf$$subs.sh
8441
8442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8443 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8444 _ACEOF
8445 sed -n '
8446 h
8447 s/^/S["/; s/!.*/"]=/
8448 p
8449 g
8450 s/^[^!]*!//
8451 :repl
8452 t repl
8453 s/'"$ac_delim"'$//
8454 t delim
8455 :nl
8456 h
8457 s/\(.\{148\}\)..*/\1/
8458 t more1
8459 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8460 p
8461 n
8462 b repl
8463 :more1
8464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8465 p
8466 g
8467 s/.\{148\}//
8468 t nl
8469 :delim
8470 h
8471 s/\(.\{148\}\)..*/\1/
8472 t more2
8473 s/["\\]/\\&/g; s/^/"/; s/$/"/
8474 p
8475 b
8476 :more2
8477 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8478 p
8479 g
8480 s/.\{148\}//
8481 t delim
8482 ' <conf$$subs.awk | sed '
8483 /^[^""]/{
8484 N
8485 s/\n//
8486 }
8487 ' >>$CONFIG_STATUS || ac_write_fail=1
8488 rm -f conf$$subs.awk
8489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8490 _ACAWK
8491 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8492 for (key in S) S_is_set[key] = 1
8493 FS = "\a"
8494
8495 }
8496 {
8497 line = $ 0
8498 nfields = split(line, field, "@")
8499 substed = 0
8500 len = length(field[1])
8501 for (i = 2; i < nfields; i++) {
8502 key = field[i]
8503 keylen = length(key)
8504 if (S_is_set[key]) {
8505 value = S[key]
8506 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8507 len += length(value) + length(field[++i])
8508 substed = 1
8509 } else
8510 len += 1 + keylen
8511 }
8512
8513 print line
8514 }
8515
8516 _ACAWK
8517 _ACEOF
8518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8519 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8521 else
8522 cat
8523 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8524 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8525 _ACEOF
8526
8527 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8528 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8529 # trailing colons and then remove the whole line if VPATH becomes empty
8530 # (actually we leave an empty line to preserve line numbers).
8531 if test "x$srcdir" = x.; then
8532 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8533 s/:*\$(srcdir):*/:/
8534 s/:*\${srcdir}:*/:/
8535 s/:*@srcdir@:*/:/
8536 s/^\([^=]*=[ ]*\):*/\1/
8537 s/:*$//
8538 s/^[^=]*=[ ]*$//
8539 }'
8540 fi
8541
8542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8543 fi # test -n "$CONFIG_FILES"
8544
8545 # Set up the scripts for CONFIG_HEADERS section.
8546 # No need to generate them if there are no CONFIG_HEADERS.
8547 # This happens for instance with `./config.status Makefile'.
8548 if test -n "$CONFIG_HEADERS"; then
8549 cat >"$tmp/defines.awk" <<\_ACAWK ||
8550 BEGIN {
8551 _ACEOF
8552
8553 # Transform confdefs.h into an awk script `defines.awk', embedded as
8554 # here-document in config.status, that substitutes the proper values into
8555 # config.h.in to produce config.h.
8556
8557 # Create a delimiter string that does not exist in confdefs.h, to ease
8558 # handling of long lines.
8559 ac_delim='%!_!# '
8560 for ac_last_try in false false :; do
8561 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8562 if test -z "$ac_t"; then
8563 break
8564 elif $ac_last_try; then
8565 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8566 else
8567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8568 fi
8569 done
8570
8571 # For the awk script, D is an array of macro values keyed by name,
8572 # likewise P contains macro parameters if any. Preserve backslash
8573 # newline sequences.
8574
8575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8576 sed -n '
8577 s/.\{148\}/&'"$ac_delim"'/g
8578 t rset
8579 :rset
8580 s/^[ ]*#[ ]*define[ ][ ]*/ /
8581 t def
8582 d
8583 :def
8584 s/\\$//
8585 t bsnl
8586 s/["\\]/\\&/g
8587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8588 D["\1"]=" \3"/p
8589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8590 d
8591 :bsnl
8592 s/["\\]/\\&/g
8593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8594 D["\1"]=" \3\\\\\\n"\\/p
8595 t cont
8596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8597 t cont
8598 d
8599 :cont
8600 n
8601 s/.\{148\}/&'"$ac_delim"'/g
8602 t clear
8603 :clear
8604 s/\\$//
8605 t bsnlc
8606 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8607 d
8608 :bsnlc
8609 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8610 b cont
8611 ' <confdefs.h | sed '
8612 s/'"$ac_delim"'/"\\\
8613 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8614
8615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8616 for (key in D) D_is_set[key] = 1
8617 FS = "\a"
8618 }
8619 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8620 line = \$ 0
8621 split(line, arg, " ")
8622 if (arg[1] == "#") {
8623 defundef = arg[2]
8624 mac1 = arg[3]
8625 } else {
8626 defundef = substr(arg[1], 2)
8627 mac1 = arg[2]
8628 }
8629 split(mac1, mac2, "(") #)
8630 macro = mac2[1]
8631 prefix = substr(line, 1, index(line, defundef) - 1)
8632 if (D_is_set[macro]) {
8633 # Preserve the white space surrounding the "#".
8634 print prefix "define", macro P[macro] D[macro]
8635 next
8636 } else {
8637 # Replace #undef with comments. This is necessary, for example,
8638 # in the case of _POSIX_SOURCE, which is predefined and required
8639 # on some systems where configure will not decide to define it.
8640 if (defundef == "undef") {
8641 print "/*", prefix defundef, macro, "*/"
8642 next
8643 }
8644 }
8645 }
8646 { print }
8647 _ACAWK
8648 _ACEOF
8649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8650 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8651 fi # test -n "$CONFIG_HEADERS"
8652
8653
8654 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8655 shift
8656 for ac_tag
8657 do
8658 case $ac_tag in
8659 :[FHLC]) ac_mode=$ac_tag; continue;;
8660 esac
8661 case $ac_mode$ac_tag in
8662 :[FHL]*:*);;
8663 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8664 :[FH]-) ac_tag=-:-;;
8665 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8666 esac
8667 ac_save_IFS=$IFS
8668 IFS=:
8669 set x $ac_tag
8670 IFS=$ac_save_IFS
8671 shift
8672 ac_file=$1
8673 shift
8674
8675 case $ac_mode in
8676 :L) ac_source=$1;;
8677 :[FH])
8678 ac_file_inputs=
8679 for ac_f
8680 do
8681 case $ac_f in
8682 -) ac_f="$tmp/stdin";;
8683 *) # Look for the file first in the build tree, then in the source tree
8684 # (if the path is not absolute). The absolute path cannot be DOS-style,
8685 # because $ac_f cannot contain `:'.
8686 test -f "$ac_f" ||
8687 case $ac_f in
8688 [\\/$]*) false;;
8689 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8690 esac ||
8691 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8692 esac
8693 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8694 as_fn_append ac_file_inputs " '$ac_f'"
8695 done
8696
8697 # Let's still pretend it is `configure' which instantiates (i.e., don't
8698 # use $as_me), people would be surprised to read:
8699 # /* config.h. Generated by config.status. */
8700 configure_input='Generated from '`
8701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8702 `' by configure.'
8703 if test x"$ac_file" != x-; then
8704 configure_input="$ac_file. $configure_input"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8706 $as_echo "$as_me: creating $ac_file" >&6;}
8707 fi
8708 # Neutralize special characters interpreted by sed in replacement strings.
8709 case $configure_input in #(
8710 *\&* | *\|* | *\\* )
8711 ac_sed_conf_input=`$as_echo "$configure_input" |
8712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8713 *) ac_sed_conf_input=$configure_input;;
8714 esac
8715
8716 case $ac_tag in
8717 *:-:* | *:-) cat >"$tmp/stdin" \
8718 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8719 esac
8720 ;;
8721 esac
8722
8723 ac_dir=`$as_dirname -- "$ac_file" ||
8724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8725 X"$ac_file" : 'X\(//\)[^/]' \| \
8726 X"$ac_file" : 'X\(//\)$' \| \
8727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8728 $as_echo X"$ac_file" |
8729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8730 s//\1/
8731 q
8732 }
8733 /^X\(\/\/\)[^/].*/{
8734 s//\1/
8735 q
8736 }
8737 /^X\(\/\/\)$/{
8738 s//\1/
8739 q
8740 }
8741 /^X\(\/\).*/{
8742 s//\1/
8743 q
8744 }
8745 s/.*/./; q'`
8746 as_dir="$ac_dir"; as_fn_mkdir_p
8747 ac_builddir=.
8748
8749 case "$ac_dir" in
8750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8751 *)
8752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8753 # A ".." for each directory in $ac_dir_suffix.
8754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8755 case $ac_top_builddir_sub in
8756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8758 esac ;;
8759 esac
8760 ac_abs_top_builddir=$ac_pwd
8761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8762 # for backward compatibility:
8763 ac_top_builddir=$ac_top_build_prefix
8764
8765 case $srcdir in
8766 .) # We are building in place.
8767 ac_srcdir=.
8768 ac_top_srcdir=$ac_top_builddir_sub
8769 ac_abs_top_srcdir=$ac_pwd ;;
8770 [\\/]* | ?:[\\/]* ) # Absolute name.
8771 ac_srcdir=$srcdir$ac_dir_suffix;
8772 ac_top_srcdir=$srcdir
8773 ac_abs_top_srcdir=$srcdir ;;
8774 *) # Relative name.
8775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8776 ac_top_srcdir=$ac_top_build_prefix$srcdir
8777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8778 esac
8779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8780
8781
8782 case $ac_mode in
8783 :F)
8784 #
8785 # CONFIG_FILE
8786 #
8787
8788 case $INSTALL in
8789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8790 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8791 esac
8792 ac_MKDIR_P=$MKDIR_P
8793 case $MKDIR_P in
8794 [\\/$]* | ?:[\\/]* ) ;;
8795 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8796 esac
8797 _ACEOF
8798
8799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8800 # If the template does not know about datarootdir, expand it.
8801 # FIXME: This hack should be removed a few years after 2.60.
8802 ac_datarootdir_hack=; ac_datarootdir_seen=
8803 ac_sed_dataroot='
8804 /datarootdir/ {
8805 p
8806 q
8807 }
8808 /@datadir@/p
8809 /@docdir@/p
8810 /@infodir@/p
8811 /@localedir@/p
8812 /@mandir@/p'
8813 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8814 *datarootdir*) ac_datarootdir_seen=yes;;
8815 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8817 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8818 _ACEOF
8819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8820 ac_datarootdir_hack='
8821 s&@datadir@&$datadir&g
8822 s&@docdir@&$docdir&g
8823 s&@infodir@&$infodir&g
8824 s&@localedir@&$localedir&g
8825 s&@mandir@&$mandir&g
8826 s&\\\${datarootdir}&$datarootdir&g' ;;
8827 esac
8828 _ACEOF
8829
8830 # Neutralize VPATH when `$srcdir' = `.'.
8831 # Shell code in configure.ac might set extrasub.
8832 # FIXME: do we really want to maintain this feature?
8833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8834 ac_sed_extra="$ac_vpsub
8835 $extrasub
8836 _ACEOF
8837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8838 :t
8839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8840 s|@configure_input@|$ac_sed_conf_input|;t t
8841 s&@top_builddir@&$ac_top_builddir_sub&;t t
8842 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8843 s&@srcdir@&$ac_srcdir&;t t
8844 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8845 s&@top_srcdir@&$ac_top_srcdir&;t t
8846 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8847 s&@builddir@&$ac_builddir&;t t
8848 s&@abs_builddir@&$ac_abs_builddir&;t t
8849 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8850 s&@INSTALL@&$ac_INSTALL&;t t
8851 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8852 $ac_datarootdir_hack
8853 "
8854 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8855 || as_fn_error "could not create $ac_file" "$LINENO" 5
8856
8857 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8858 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8859 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8861 which seems to be undefined. Please make sure it is defined." >&5
8862 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8863 which seems to be undefined. Please make sure it is defined." >&2;}
8864
8865 rm -f "$tmp/stdin"
8866 case $ac_file in
8867 -) cat "$tmp/out" && rm -f "$tmp/out";;
8868 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8869 esac \
8870 || as_fn_error "could not create $ac_file" "$LINENO" 5
8871 ;;
8872 :H)
8873 #
8874 # CONFIG_HEADER
8875 #
8876 if test x"$ac_file" != x-; then
8877 {
8878 $as_echo "/* $configure_input */" \
8879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8880 } >"$tmp/config.h" \
8881 || as_fn_error "could not create $ac_file" "$LINENO" 5
8882 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8884 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8885 else
8886 rm -f "$ac_file"
8887 mv "$tmp/config.h" "$ac_file" \
8888 || as_fn_error "could not create $ac_file" "$LINENO" 5
8889 fi
8890 else
8891 $as_echo "/* $configure_input */" \
8892 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8893 || as_fn_error "could not create -" "$LINENO" 5
8894 fi
8895 ;;
8896
8897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8898 $as_echo "$as_me: executing $ac_file commands" >&6;}
8899 ;;
8900 esac
8901
8902
8903 case $ac_file$ac_mode in
8904 "po-directories":C)
8905 for ac_file in $CONFIG_FILES; do
8906 # Support "outfile[:infile[:infile...]]"
8907 case "$ac_file" in
8908 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8909 esac
8910 # PO directories have a Makefile.in generated from Makefile.in.in.
8911 case "$ac_file" in */Makefile.in)
8912 # Adjust a relative srcdir.
8913 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8914 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8915 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8916 # In autoconf-2.13 it is called $ac_given_srcdir.
8917 # In autoconf-2.50 it is called $srcdir.
8918 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8919 case "$ac_given_srcdir" in
8920 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8921 /*) top_srcdir="$ac_given_srcdir" ;;
8922 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8923 esac
8924 # Treat a directory as a PO directory if and only if it has a
8925 # POTFILES.in file. This allows packages to have multiple PO
8926 # directories under different names or in different locations.
8927 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8928 rm -f "$ac_dir/POTFILES"
8929 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8930 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8931 POMAKEFILEDEPS="POTFILES.in"
8932 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8933 # on $ac_dir but don't depend on user-specified configuration
8934 # parameters.
8935 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8936 # The LINGUAS file contains the set of available languages.
8937 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8938 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8939 fi
8940 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8941 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8942 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8943 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8944 else
8945 # The set of available languages was given in configure.in.
8946 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8947 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8948 fi
8949 # Compute POFILES
8950 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8951 # Compute UPDATEPOFILES
8952 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8953 # Compute DUMMYPOFILES
8954 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8955 # Compute GMOFILES
8956 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8957 case "$ac_given_srcdir" in
8958 .) srcdirpre= ;;
8959 *) srcdirpre='$(srcdir)/' ;;
8960 esac
8961 POFILES=
8962 UPDATEPOFILES=
8963 DUMMYPOFILES=
8964 GMOFILES=
8965 for lang in $ALL_LINGUAS; do
8966 POFILES="$POFILES $srcdirpre$lang.po"
8967 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8968 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8969 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8970 done
8971 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8972 # environment variable.
8973 INST_LINGUAS=
8974 if test -n "$ALL_LINGUAS"; then
8975 for presentlang in $ALL_LINGUAS; do
8976 useit=no
8977 if test "%UNSET%" != "$LINGUAS"; then
8978 desiredlanguages="$LINGUAS"
8979 else
8980 desiredlanguages="$ALL_LINGUAS"
8981 fi
8982 for desiredlang in $desiredlanguages; do
8983 # Use the presentlang catalog if desiredlang is
8984 # a. equal to presentlang, or
8985 # b. a variant of presentlang (because in this case,
8986 # presentlang can be used as a fallback for messages
8987 # which are not translated in the desiredlang catalog).
8988 case "$desiredlang" in
8989 "$presentlang"*) useit=yes;;
8990 esac
8991 done
8992 if test $useit = yes; then
8993 INST_LINGUAS="$INST_LINGUAS $presentlang"
8994 fi
8995 done
8996 fi
8997 CATALOGS=
8998 if test -n "$INST_LINGUAS"; then
8999 for lang in $INST_LINGUAS; do
9000 CATALOGS="$CATALOGS $lang.gmo"
9001 done
9002 fi
9003 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9004 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9005 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9006 if test -f "$f"; then
9007 case "$f" in
9008 *.orig | *.bak | *~) ;;
9009 *) cat "$f" >> "$ac_dir/Makefile" ;;
9010 esac
9011 fi
9012 done
9013 fi
9014 ;;
9015 esac
9016 done ;;
9017 "default":C) make -s dirs ;;
9018
9019 esac
9020 done # for ac_tag
9021
9022
9023 as_fn_exit 0
9024 _ACEOF
9025 ac_clean_files=$ac_clean_files_save
9026
9027 test $ac_write_fail = 0 ||
9028 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9029
9030
9031 # configure is writing to config.log, and then calls config.status.
9032 # config.status does its own redirection, appending to config.log.
9033 # Unfortunately, on DOS this fails, as config.log is still kept open
9034 # by configure, so config.status won't be able to write to it; its
9035 # output is simply discarded. So we exec the FD to /dev/null,
9036 # effectively closing config.log, so it can be properly (re)opened and
9037 # appended to by config.status. When coming back to configure, we
9038 # need to make the FD available again.
9039 if test "$no_create" != yes; then
9040 ac_cs_success=:
9041 ac_config_status_args=
9042 test "$silent" = yes &&
9043 ac_config_status_args="$ac_config_status_args --quiet"
9044 exec 5>/dev/null
9045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9046 exec 5>>config.log
9047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9048 # would make configure fail if this is the last instruction.
9049 $ac_cs_success || as_fn_exit $?
9050 fi
9051 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9053 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9054 fi
9055