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