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