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