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