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