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