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