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