]> git.ipfire.org Git - thirdparty/gcc.git/blame - libdecnumber/configure
[Ada] Improved support for aspect alignment in CCG
[thirdparty/gcc.git] / libdecnumber / configure
CommitLineData
8fdb0857
BE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272 3# Generated by GNU Autoconf 2.69 for libdecnumber .
8fdb0857
BE
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#
8fdb0857
BE
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## -------------------- ##
8fdb0857 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 :
8fdb0857
BE
20 emulate sh
21 NULLCMD=:
5213506e 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8fdb0857
BE
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
8fdb0857 33fi
8fdb0857 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 }
8fdb0857
BE
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
8fdb0857
BE
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
8fdb0857 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."
8fdb0857 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."
8fdb0857 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
8fdb0857 304
5213506e
RW
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{
320
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
8fdb0857
BE
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
8fdb0857
BE
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
8fdb0857 440
5213506e 441as_me=`$as_basename -- "$0" ||
8fdb0857
BE
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'`
8fdb0857 459
8fdb0857
BE
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
8fdb0857 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 |
8fdb0857 477 sed '
5213506e
RW
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
8fdb0857 482 N
5213506e
RW
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8fdb0857 485 t loop
5213506e 486 s/-\n.*//
8fdb0857 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; }
8fdb0857 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
8fdb0857
BE
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"
8fdb0857
BE
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';;
8fdb0857
BE
514esac
515
5213506e
RW
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
8fdb0857 519else
5213506e
RW
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
8fdb0857 522fi
5213506e
RW
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
8fdb0857 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'
8fdb0857 536 fi
8fdb0857 537else
22e05272 538 as_ln_s='cp -pR'
8fdb0857 539fi
5213506e
RW
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
8fdb0857
BE
542
543if mkdir -p . 2>/dev/null; then
5213506e 544 as_mkdir_p='mkdir -p "$as_dir"'
8fdb0857
BE
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
8fdb0857
BE
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
8fdb0857
BE
562
563# Name of the host.
22e05272 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
8fdb0857
BE
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
8fdb0857
BE
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
5213506e 572ac_clean_files=
8fdb0857 573ac_config_libobj_dir=.
5213506e 574LIBOBJS=
8fdb0857
BE
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
8fdb0857
BE
579
580# Identity of this package.
581PACKAGE_NAME='libdecnumber'
582PACKAGE_TARNAME='libdecnumber'
583PACKAGE_VERSION=' '
584PACKAGE_STRING='libdecnumber '
585PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
5213506e 586PACKAGE_URL=''
8fdb0857
BE
587
588ac_unique_file="decNumber.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
5213506e 592#ifdef HAVE_SYS_TYPES_H
8fdb0857
BE
593# include <sys/types.h>
594#endif
5213506e 595#ifdef HAVE_SYS_STAT_H
8fdb0857
BE
596# include <sys/stat.h>
597#endif
5213506e 598#ifdef STDC_HEADERS
8fdb0857
BE
599# include <stdlib.h>
600# include <stddef.h>
601#else
5213506e 602# ifdef HAVE_STDLIB_H
8fdb0857
BE
603# include <stdlib.h>
604# endif
605#endif
5213506e
RW
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
8fdb0857
BE
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
5213506e 612#ifdef HAVE_STRINGS_H
8fdb0857
BE
613# include <strings.h>
614#endif
5213506e 615#ifdef HAVE_INTTYPES_H
8fdb0857 616# include <inttypes.h>
8fdb0857 617#endif
5213506e
RW
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
8fdb0857
BE
622# include <unistd.h>
623#endif"
624
5213506e
RW
625ac_subst_vars='LTLIBOBJS
626LIBOBJS
b3d16040 627CET_HOST_FLAGS
459260ec 628PICFLAG
5213506e
RW
629ADDITIONAL_OBJS
630enable_decimal_float
631target_os
632target_vendor
633target_cpu
634target
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643MAINT
644EGREP
645GREP
646CPP
647WERROR
8a1f09e4 648nolto_flags
5213506e
RW
649WARN_PEDANTIC
650WARN_CFLAGS
651AUTOHEADER
652AUTOCONF
653ACLOCAL
731c4ce0 654AR
5213506e
RW
655RANLIB
656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
663SET_MAKE
664target_alias
665host_alias
666build_alias
667LIBS
668ECHO_T
669ECHO_N
670ECHO_C
671DEFS
672mandir
673localedir
674libdir
675psdir
676pdfdir
677dvidir
678htmldir
679infodir
680docdir
681oldincludedir
682includedir
683localstatedir
684sharedstatedir
685sysconfdir
686datadir
687datarootdir
688libexecdir
689sbindir
690bindir
691program_transform_name
692prefix
693exec_prefix
694PACKAGE_URL
695PACKAGE_BUGREPORT
696PACKAGE_STRING
697PACKAGE_VERSION
698PACKAGE_TARNAME
699PACKAGE_NAME
700PATH_SEPARATOR
701SHELL'
8fdb0857 702ac_subst_files=''
5213506e
RW
703ac_user_opts='
704enable_option_checking
705enable_werror_always
706enable_maintainer_mode
707enable_decimal_float
459260ec 708enable_host_shared
b3d16040 709enable_cet
5213506e
RW
710'
711 ac_precious_vars='build_alias
712host_alias
713target_alias
714CC
715CFLAGS
716LDFLAGS
717LIBS
718CPPFLAGS
719CPP'
720
8fdb0857
BE
721
722# Initialize some variables set by options.
723ac_init_help=
724ac_init_version=false
5213506e
RW
725ac_unrecognized_opts=
726ac_unrecognized_sep=
8fdb0857
BE
727# The variables have the same names as the options, with
728# dashes changed to underlines.
729cache_file=/dev/null
730exec_prefix=NONE
731no_create=
732no_recursion=
733prefix=NONE
734program_prefix=NONE
735program_suffix=NONE
736program_transform_name=s,x,x,
737silent=
738site=
739srcdir=
740verbose=
741x_includes=NONE
742x_libraries=NONE
743
744# Installation directory options.
745# These are left unexpanded so users can "make install exec_prefix=/foo"
746# and all the variables that are supposed to be based on exec_prefix
747# by default will actually change.
748# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 749# (The list follows the same order as the GNU Coding Standards.)
8fdb0857
BE
750bindir='${exec_prefix}/bin'
751sbindir='${exec_prefix}/sbin'
752libexecdir='${exec_prefix}/libexec'
5213506e
RW
753datarootdir='${prefix}/share'
754datadir='${datarootdir}'
8fdb0857
BE
755sysconfdir='${prefix}/etc'
756sharedstatedir='${prefix}/com'
757localstatedir='${prefix}/var'
8fdb0857
BE
758includedir='${prefix}/include'
759oldincludedir='/usr/include'
5213506e
RW
760docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761infodir='${datarootdir}/info'
762htmldir='${docdir}'
763dvidir='${docdir}'
764pdfdir='${docdir}'
765psdir='${docdir}'
766libdir='${exec_prefix}/lib'
767localedir='${datarootdir}/locale'
768mandir='${datarootdir}/man'
8fdb0857
BE
769
770ac_prev=
5213506e 771ac_dashdash=
8fdb0857
BE
772for ac_option
773do
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
5213506e 776 eval $ac_prev=\$ac_option
8fdb0857
BE
777 ac_prev=
778 continue
779 fi
780
5213506e 781 case $ac_option in
22e05272
JM
782 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *=) ac_optarg= ;;
784 *) ac_optarg=yes ;;
5213506e 785 esac
8fdb0857
BE
786
787 # Accept the important Cygnus configure options, so we can diagnose typos.
788
5213506e
RW
789 case $ac_dashdash$ac_option in
790 --)
791 ac_dashdash=yes ;;
8fdb0857
BE
792
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 ac_prev=bindir ;;
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 bindir=$ac_optarg ;;
797
798 -build | --build | --buil | --bui | --bu)
799 ac_prev=build_alias ;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias=$ac_optarg ;;
802
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file=$ac_optarg ;;
809
810 --config-cache | -C)
811 cache_file=config.cache ;;
812
5213506e 813 -datadir | --datadir | --datadi | --datad)
8fdb0857 814 ac_prev=datadir ;;
5213506e 815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
8fdb0857
BE
816 datadir=$ac_optarg ;;
817
5213506e
RW
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
824
8fdb0857 825 -disable-* | --disable-*)
5213506e 826 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8fdb0857 827 # Reject names that are not valid shell variable names.
5213506e 828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 829 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
833 *"
834"enable_$ac_useropt"
835"*) ;;
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
838 esac
839 eval enable_$ac_useropt=no ;;
840
841 -docdir | --docdir | --docdi | --doc | --do)
842 ac_prev=docdir ;;
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 docdir=$ac_optarg ;;
845
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 ac_prev=dvidir ;;
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 dvidir=$ac_optarg ;;
8fdb0857
BE
850
851 -enable-* | --enable-*)
5213506e 852 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8fdb0857 853 # Reject names that are not valid shell variable names.
5213506e 854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 855 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
859 *"
860"enable_$ac_useropt"
861"*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
8fdb0857 864 esac
5213506e 865 eval enable_$ac_useropt=\$ac_optarg ;;
8fdb0857
BE
866
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;;
875
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
878 with_gas=yes ;;
879
880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
886
887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;;
891
5213506e
RW
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*)
896 htmldir=$ac_optarg ;;
897
8fdb0857
BE
898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;;
904
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;;
909
910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 libdir=$ac_optarg ;;
914
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;;
921
5213506e
RW
922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
926
8fdb0857 927 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 928 | --localstate | --localstat | --localsta | --localst | --locals)
8fdb0857
BE
929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
8fdb0857
BE
932 localstatedir=$ac_optarg ;;
933
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 mandir=$ac_optarg ;;
938
939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp.
941 with_fp=no ;;
942
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c | -n)
945 no_create=yes ;;
946
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;;
950
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;;
959
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 prefix=$ac_optarg ;;
964
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;;
971
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;;
978
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;;
995
5213506e
RW
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;;
1000
1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;;
1005
8fdb0857
BE
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;;
1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1026
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1031
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1051
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1054
1055 -with-* | --with-*)
5213506e 1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
8fdb0857 1057 # Reject names that are not valid shell variable names.
5213506e 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1059 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064"with_$ac_useropt"
1065"*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
8fdb0857 1068 esac
5213506e 1069 eval with_$ac_useropt=\$ac_optarg ;;
8fdb0857
BE
1070
1071 -without-* | --without-*)
5213506e 1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
8fdb0857 1073 # Reject names that are not valid shell variable names.
5213506e 1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1075 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080"with_$ac_useropt"
1081"*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
8fdb0857
BE
1086
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1090
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1097
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1104
22e05272
JM
1105 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1106Try \`$0 --help' for more information"
8fdb0857
BE
1107 ;;
1108
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
5213506e
RW
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1114 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1115 esac
1116 eval $ac_envvar=\$ac_optarg
8fdb0857
BE
1117 export $ac_envvar ;;
1118
1119 *)
1120 # FIXME: should be removed in autoconf 3.0.
5213506e 1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
8fdb0857 1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
8fdb0857
BE
1125 ;;
1126
1127 esac
1128done
1129
1130if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1132 as_fn_error $? "missing argument to $ac_option"
8fdb0857
BE
1133fi
1134
5213506e
RW
1135if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1137 no) ;;
22e05272 1138 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
8fdb0857 1140 esac
5213506e 1141fi
8fdb0857 1142
5213506e
RW
1143# Check all directory arguments for consistency.
1144for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
8fdb0857 1148do
5213506e
RW
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1151 case $ac_val in
1152 */ )
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1155 esac
1156 # Be sure to have absolute directory names.
8fdb0857 1157 case $ac_val in
5213506e
RW
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
8fdb0857 1160 esac
22e05272 1161 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
8fdb0857
BE
1162done
1163
1164# There might be people who depend on the old broken behavior: `$host'
1165# used to hold the argument of --host etc.
1166# FIXME: To remove some day.
1167build=$build_alias
1168host=$host_alias
1169target=$target_alias
1170
1171# FIXME: To remove some day.
1172if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
8fdb0857
BE
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1177 fi
1178fi
1179
1180ac_tool_prefix=
1181test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183test "$silent" = yes && exec 6>/dev/null
1184
1185
5213506e
RW
1186ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187ac_ls_di=`ls -di .` &&
1188ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1189 as_fn_error $? "working directory cannot be determined"
5213506e 1190test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1191 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1192
1193
8fdb0857
BE
1194# Find the source files, if location was not specified.
1195if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
5213506e
RW
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203$as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)[^/].*/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\/\)$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\).*/{
1217 s//\1/
1218 q
1219 }
1220 s/.*/./; q'`
8fdb0857 1221 srcdir=$ac_confdir
5213506e 1222 if test ! -r "$srcdir/$ac_unique_file"; then
8fdb0857
BE
1223 srcdir=..
1224 fi
1225else
1226 ac_srcdir_defaulted=no
1227fi
5213506e
RW
1228if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1231fi
1232ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233ac_abs_confdir=`(
22e05272 1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1235 pwd)`
1236# When building in place, set srcdir=.
1237if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 srcdir=.
1239fi
1240# Remove unnecessary trailing slashes from srcdir.
1241# Double slashes in file names in object file debugging info
1242# mess up M-x gdb in Emacs.
1243case $srcdir in
1244*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245esac
1246for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251done
8fdb0857
BE
1252
1253#
1254# Report the --help message.
1255#
1256if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1259 cat <<_ACEOF
1260\`configure' configures libdecnumber to adapt to many kinds of systems.
1261
1262Usage: $0 [OPTION]... [VAR=VALUE]...
1263
1264To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265VAR=VALUE. See below for descriptions of some of the useful variables.
1266
1267Defaults for the options are specified in brackets.
1268
1269Configuration:
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
22e05272 1274 -q, --quiet, --silent do not print \`checking ...' messages
8fdb0857
BE
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279
8fdb0857
BE
1280Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1282 [$ac_default_prefix]
8fdb0857 1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1284 [PREFIX]
8fdb0857
BE
1285
1286By default, \`make install' will install all the files in
1287\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289for instance \`--prefix=\$HOME'.
1290
1291For better control, use the options below.
1292
1293Fine tuning of the installation directories:
5213506e
RW
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/libdecnumber]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
8fdb0857
BE
1313_ACEOF
1314
1315 cat <<\_ACEOF
f808a484
MM
1316
1317System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 --target=TARGET configure for building compilers for TARGET [HOST]
8fdb0857
BE
1321_ACEOF
1322fi
1323
1324if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of libdecnumber :";;
1327 esac
1328 cat <<\_ACEOF
1329
1330Optional Features:
5213506e 1331 --disable-option-checking ignore unrecognized --enable/--with options
8fdb0857
BE
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --enable-werror-always enable -Werror despite compiler version
1335 --enable-maintainer-mode enable rules only needed by maintainers
79b87c74
MM
1336 --enable-decimal-float={no,yes,bid,dpd}
1337 enable decimal float extension to C. Selecting 'bid'
1338 or 'dpd' choses which decimal floating point format
1339 to use
459260ec 1340 --enable-host-shared build host code as shared libraries
b3d16040 1341 --enable-cet enable Intel CET in host libraries [default=auto]
8fdb0857
BE
1342
1343Some influential environment variables:
1344 CC C compiler command
1345 CFLAGS C compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
5213506e 1348 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1349 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1350 you have headers in a nonstandard directory <include dir>
8fdb0857
BE
1351 CPP C preprocessor
1352
1353Use these variables to override the choices made by `configure' or to help
1354it to find libraries and programs with nonstandard names/locations.
1355
1356Report bugs to <gcc-bugs@gcc.gnu.org>.
1357_ACEOF
5213506e 1358ac_status=$?
8fdb0857
BE
1359fi
1360
1361if test "$ac_init_help" = "recursive"; then
1362 # If there are subdirs, report their specific --help.
8fdb0857 1363 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1364 test -d "$ac_dir" ||
1365 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1366 continue
8fdb0857
BE
1367 ac_builddir=.
1368
5213506e
RW
1369case "$ac_dir" in
1370.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371*)
1372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1373 # A ".." for each directory in $ac_dir_suffix.
1374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1375 case $ac_top_builddir_sub in
1376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378 esac ;;
1379esac
1380ac_abs_top_builddir=$ac_pwd
1381ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382# for backward compatibility:
1383ac_top_builddir=$ac_top_build_prefix
8fdb0857
BE
1384
1385case $srcdir in
5213506e 1386 .) # We are building in place.
8fdb0857 1387 ac_srcdir=.
5213506e
RW
1388 ac_top_srcdir=$ac_top_builddir_sub
1389 ac_abs_top_srcdir=$ac_pwd ;;
1390 [\\/]* | ?:[\\/]* ) # Absolute name.
8fdb0857 1391 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1392 ac_top_srcdir=$srcdir
1393 ac_abs_top_srcdir=$srcdir ;;
1394 *) # Relative name.
1395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396 ac_top_srcdir=$ac_top_build_prefix$srcdir
1397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8fdb0857 1398esac
5213506e
RW
1399ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400
1401 cd "$ac_dir" || { ac_status=$?; continue; }
1402 # Check for guested configure.
1403 if test -f "$ac_srcdir/configure.gnu"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406 elif test -f "$ac_srcdir/configure"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure" --help=recursive
8fdb0857 1409 else
5213506e
RW
1410 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1411 fi || ac_status=$?
1412 cd "$ac_pwd" || { ac_status=$?; break; }
8fdb0857
BE
1413 done
1414fi
1415
5213506e 1416test -n "$ac_init_help" && exit $ac_status
8fdb0857
BE
1417if $ac_init_version; then
1418 cat <<\_ACEOF
1419libdecnumber configure
22e05272 1420generated by GNU Autoconf 2.69
8fdb0857 1421
22e05272 1422Copyright (C) 2012 Free Software Foundation, Inc.
8fdb0857
BE
1423This configure script is free software; the Free Software Foundation
1424gives unlimited permission to copy, distribute and modify it.
1425_ACEOF
5213506e 1426 exit
8fdb0857 1427fi
8fdb0857 1428
5213506e
RW
1429## ------------------------ ##
1430## Autoconf initialization. ##
1431## ------------------------ ##
8fdb0857 1432
5213506e
RW
1433# ac_fn_c_try_compile LINENO
1434# --------------------------
1435# Try to compile conftest.$ac_ext, and return whether this succeeded.
1436ac_fn_c_try_compile ()
8fdb0857 1437{
5213506e
RW
1438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439 rm -f conftest.$ac_objext
1440 if { { ac_try="$ac_compile"
1441case "(($ac_try" in
1442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1443 *) ac_try_echo=$ac_try;;
1444esac
1445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446$as_echo "$ac_try_echo"; } >&5
1447 (eval "$ac_compile") 2>conftest.err
1448 ac_status=$?
1449 if test -s conftest.err; then
1450 grep -v '^ *+' conftest.err >conftest.er1
1451 cat conftest.er1 >&5
1452 mv -f conftest.er1 conftest.err
1453 fi
1454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455 test $ac_status = 0; } && {
1456 test -z "$ac_c_werror_flag" ||
1457 test ! -s conftest.err
1458 } && test -s conftest.$ac_objext; then :
1459 ac_retval=0
1460else
1461 $as_echo "$as_me: failed program was:" >&5
1462sed 's/^/| /' conftest.$ac_ext >&5
8fdb0857 1463
5213506e
RW
1464 ac_retval=1
1465fi
22e05272
JM
1466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1467 as_fn_set_status $ac_retval
8fdb0857 1468
5213506e 1469} # ac_fn_c_try_compile
8fdb0857 1470
5213506e
RW
1471# ac_fn_c_try_cpp LINENO
1472# ----------------------
1473# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1474ac_fn_c_try_cpp ()
1475{
1476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477 if { { ac_try="$ac_cpp conftest.$ac_ext"
1478case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1485 ac_status=$?
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1490 fi
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1492 test $ac_status = 0; } > conftest.i && {
5213506e
RW
1493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1495 }; then :
1496 ac_retval=0
1497else
1498 $as_echo "$as_me: failed program was:" >&5
1499sed 's/^/| /' conftest.$ac_ext >&5
8fdb0857 1500
5213506e
RW
1501 ac_retval=1
1502fi
22e05272
JM
1503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1504 as_fn_set_status $ac_retval
8fdb0857 1505
5213506e 1506} # ac_fn_c_try_cpp
8fdb0857 1507
5213506e
RW
1508# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1509# -------------------------------------------------------
1510# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1511# the include files in INCLUDES and setting the cache variable VAR
1512# accordingly.
1513ac_fn_c_check_header_mongrel ()
1514{
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1516 if eval \${$3+:} false; then :
5213506e
RW
1517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1518$as_echo_n "checking for $2... " >&6; }
22e05272 1519if eval \${$3+:} false; then :
5213506e
RW
1520 $as_echo_n "(cached) " >&6
1521fi
1522eval ac_res=\$$3
1523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1524$as_echo "$ac_res" >&6; }
1525else
1526 # Is the header compilable?
1527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1528$as_echo_n "checking $2 usability... " >&6; }
1529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530/* end confdefs.h. */
1531$4
1532#include <$2>
1533_ACEOF
1534if ac_fn_c_try_compile "$LINENO"; then :
1535 ac_header_compiler=yes
1536else
1537 ac_header_compiler=no
1538fi
1539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1541$as_echo "$ac_header_compiler" >&6; }
1542
1543# Is the header present?
1544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1545$as_echo_n "checking $2 presence... " >&6; }
1546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547/* end confdefs.h. */
1548#include <$2>
1549_ACEOF
1550if ac_fn_c_try_cpp "$LINENO"; then :
1551 ac_header_preproc=yes
1552else
1553 ac_header_preproc=no
1554fi
22e05272 1555rm -f conftest.err conftest.i conftest.$ac_ext
5213506e
RW
1556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1557$as_echo "$ac_header_preproc" >&6; }
1558
1559# So? What about this header?
1560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1561 yes:no: )
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1563$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1565$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1566 ;;
1567 no:yes:* )
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1569$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1571$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1573$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1575$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1577$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
22e05272 1578( $as_echo "## ----------------------------------- ##
5213506e 1579## Report this to gcc-bugs@gcc.gnu.org ##
22e05272 1580## ----------------------------------- ##"
5213506e
RW
1581 ) | sed "s/^/$as_me: WARNING: /" >&2
1582 ;;
1583esac
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
22e05272 1586if eval \${$3+:} false; then :
5213506e
RW
1587 $as_echo_n "(cached) " >&6
1588else
1589 eval "$3=\$ac_header_compiler"
1590fi
1591eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593$as_echo "$ac_res" >&6; }
1594fi
22e05272 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1596
1597} # ac_fn_c_check_header_mongrel
1598
1599# ac_fn_c_try_run LINENO
1600# ----------------------
1601# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602# that executables *can* be run.
1603ac_fn_c_try_run ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_link"
1607case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>&5
1614 ac_status=$?
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617 { { case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_try") 2>&5
1624 ac_status=$?
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; }; }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: program exited with status $ac_status" >&5
1630 $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=$ac_status
1634fi
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
5213506e
RW
1638
1639} # ac_fn_c_try_run
1640
1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642# -------------------------------------------------------
1643# Tests whether HEADER exists and can be compiled using the include files in
1644# INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
22e05272 1650if eval \${$3+:} false; then :
5213506e
RW
1651 $as_echo_n "(cached) " >&6
1652else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660else
1661 eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
22e05272 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1669
1670} # ac_fn_c_check_header_compile
1671
1672# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1673# -------------------------------------------
1674# Tests whether TYPE exists after having included INCLUDES, setting cache
1675# variable VAR accordingly.
1676ac_fn_c_check_type ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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=no"
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h. */
1687$4
1688int
1689main ()
1690{
1691if (sizeof ($2))
1692 return 0;
1693 ;
1694 return 0;
1695}
1696_ACEOF
1697if ac_fn_c_try_compile "$LINENO"; then :
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699/* end confdefs.h. */
1700$4
1701int
1702main ()
1703{
1704if (sizeof (($2)))
1705 return 0;
1706 ;
1707 return 0;
1708}
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711
1712else
1713 eval "$3=yes"
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718fi
1719eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721$as_echo "$ac_res" >&6; }
22e05272 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1723
1724} # ac_fn_c_check_type
1725
1726# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1727# --------------------------------------------
1728# Tries to find the compile-time value of EXPR in a program that includes
1729# INCLUDES, setting VAR accordingly. Returns whether the value could be
1730# computed
1731ac_fn_c_compute_int ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if test "$cross_compiling" = yes; then
1735 # Depending upon the size, compute the lo and hi bounds.
1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738$4
1739int
1740main ()
1741{
1742static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1743test_array [0] = 0;
1744return test_array [0];
5213506e
RW
1745
1746 ;
1747 return 0;
1748}
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_lo=0 ac_mid=0
1752 while :; do
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756int
1757main ()
1758{
1759static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1760test_array [0] = 0;
1761return test_array [0];
5213506e
RW
1762
1763 ;
1764 return 0;
1765}
1766_ACEOF
1767if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_hi=$ac_mid; break
1769else
1770 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1771 if test $ac_lo -le $ac_mid; then
1772 ac_lo= ac_hi=
1773 break
1774 fi
1775 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 done
1779else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h. */
1782$4
1783int
1784main ()
1785{
1786static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1787test_array [0] = 0;
1788return test_array [0];
5213506e
RW
1789
1790 ;
1791 return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_hi=-1 ac_mid=-1
1796 while :; do
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800int
1801main ()
1802{
1803static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
1804test_array [0] = 0;
1805return test_array [0];
5213506e
RW
1806
1807 ;
1808 return 0;
1809}
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_lo=$ac_mid; break
1813else
1814 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1815 if test $ac_mid -le $ac_hi; then
1816 ac_lo= ac_hi=
1817 break
1818 fi
1819 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 done
1823else
1824 ac_lo= ac_hi=
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829# Binary search between lo and hi bounds.
1830while test "x$ac_lo" != "x$ac_hi"; do
1831 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834$4
1835int
1836main ()
1837{
1838static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1839test_array [0] = 0;
1840return test_array [0];
5213506e
RW
1841
1842 ;
1843 return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_hi=$ac_mid
1848else
1849 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852done
1853case $ac_lo in #((
1854?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1855'') ac_retval=1 ;;
1856esac
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860$4
1861static long int longval () { return $2; }
1862static unsigned long int ulongval () { return $2; }
1863#include <stdio.h>
1864#include <stdlib.h>
1865int
1866main ()
1867{
1868
1869 FILE *f = fopen ("conftest.val", "w");
1870 if (! f)
1871 return 1;
1872 if (($2) < 0)
1873 {
1874 long int i = longval ();
1875 if (i != ($2))
1876 return 1;
1877 fprintf (f, "%ld", i);
1878 }
1879 else
1880 {
1881 unsigned long int i = ulongval ();
1882 if (i != ($2))
1883 return 1;
1884 fprintf (f, "%lu", i);
1885 }
1886 /* Do not output a trailing newline, as this causes \r\n confusion
1887 on some platforms. */
1888 return ferror (f) || fclose (f) != 0;
1889
1890 ;
1891 return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_run "$LINENO"; then :
1895 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1896else
1897 ac_retval=1
1898fi
1899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1900 conftest.$ac_objext conftest.beam conftest.$ac_ext
1901rm -f conftest.val
1902
1903 fi
22e05272
JM
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
5213506e
RW
1906
1907} # ac_fn_c_compute_int
8d286dd1
L
1908
1909# ac_fn_c_try_link LINENO
1910# -----------------------
1911# Try to link conftest.$ac_ext, and return whether this succeeded.
1912ac_fn_c_try_link ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939else
1940 $as_echo "$as_me: failed program was:" >&5
1941sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=1
1944fi
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1952
1953} # ac_fn_c_try_link
5213506e
RW
1954cat >config.log <<_ACEOF
1955This file contains any messages produced by compilers while
1956running configure, to aid debugging if configure makes a mistake.
1957
1958It was created by libdecnumber $as_me , which was
22e05272 1959generated by GNU Autoconf 2.69. Invocation command line was
5213506e
RW
1960
1961 $ $0 $@
1962
1963_ACEOF
1964exec 5>>config.log
1965{
1966cat <<_ASUNAME
1967## --------- ##
1968## Platform. ##
1969## --------- ##
1970
1971hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976
1977/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1979
1980/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1981/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1982/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1984/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1985/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1986/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1987
1988_ASUNAME
1989
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 $as_echo "PATH: $as_dir"
1996 done
1997IFS=$as_save_IFS
1998
1999} >&5
2000
2001cat >&5 <<_ACEOF
2002
2003
2004## ----------- ##
2005## Core tests. ##
8fdb0857
BE
2006## ----------- ##
2007
2008_ACEOF
2009
2010
2011# Keep a trace of the command line.
2012# Strip out --no-create and --no-recursion so they do not pile up.
2013# Strip out --silent because we don't want to record it for future runs.
2014# Also quote any args containing shell meta-characters.
2015# Make two passes to allow for proper duplicate-argument suppression.
2016ac_configure_args=
2017ac_configure_args0=
2018ac_configure_args1=
8fdb0857
BE
2019ac_must_keep_next=false
2020for ac_pass in 1 2
2021do
2022 for ac_arg
2023 do
2024 case $ac_arg in
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2028 continue ;;
5213506e
RW
2029 *\'*)
2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8fdb0857
BE
2031 esac
2032 case $ac_pass in
5213506e 2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
8fdb0857 2034 2)
5213506e 2035 as_fn_append ac_configure_args1 " '$ac_arg'"
8fdb0857
BE
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2038 else
2039 case $ac_arg in
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 esac
2047 ;;
2048 -* ) ac_must_keep_next=true ;;
2049 esac
2050 fi
5213506e 2051 as_fn_append ac_configure_args " '$ac_arg'"
8fdb0857
BE
2052 ;;
2053 esac
2054 done
2055done
5213506e
RW
2056{ ac_configure_args0=; unset ac_configure_args0;}
2057{ ac_configure_args1=; unset ac_configure_args1;}
8fdb0857
BE
2058
2059# When interrupted or exit'd, cleanup temporary files, and complete
2060# config.log. We remove comments because anyway the quotes in there
2061# would cause problems or look ugly.
5213506e
RW
2062# WARNING: Use '\'' to represent an apostrophe within the trap.
2063# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
8fdb0857
BE
2064trap 'exit_status=$?
2065 # Save into config.log some information that might help in debugging.
2066 {
2067 echo
2068
22e05272 2069 $as_echo "## ---------------- ##
8fdb0857 2070## Cache variables. ##
22e05272 2071## ---------------- ##"
8fdb0857
BE
2072 echo
2073 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2074(
2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in #(
2078 *${as_nl}*)
2079 case $ac_var in #(
2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 esac
2083 case $ac_var in #(
2084 _ | IFS | as_nl) ;; #(
2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086 *) { eval $ac_var=; unset $ac_var;} ;;
2087 esac ;;
2088 esac
2089 done
8fdb0857 2090 (set) 2>&1 |
5213506e
RW
2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092 *${as_nl}ac_space=\ *)
8fdb0857 2093 sed -n \
5213506e
RW
2094 "s/'\''/'\''\\\\'\'''\''/g;
2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 ;; #(
8fdb0857 2097 *)
5213506e 2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8fdb0857 2099 ;;
5213506e
RW
2100 esac |
2101 sort
2102)
8fdb0857
BE
2103 echo
2104
22e05272 2105 $as_echo "## ----------------- ##
8fdb0857 2106## Output variables. ##
22e05272 2107## ----------------- ##"
8fdb0857
BE
2108 echo
2109 for ac_var in $ac_subst_vars
2110 do
5213506e
RW
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 $as_echo "$ac_var='\''$ac_val'\''"
8fdb0857
BE
2116 done | sort
2117 echo
2118
2119 if test -n "$ac_subst_files"; then
22e05272 2120 $as_echo "## ------------------- ##
5213506e 2121## File substitutions. ##
22e05272 2122## ------------------- ##"
8fdb0857
BE
2123 echo
2124 for ac_var in $ac_subst_files
2125 do
5213506e
RW
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 $as_echo "$ac_var='\''$ac_val'\''"
8fdb0857
BE
2131 done | sort
2132 echo
2133 fi
2134
2135 if test -s confdefs.h; then
22e05272 2136 $as_echo "## ----------- ##
8fdb0857 2137## confdefs.h. ##
22e05272 2138## ----------- ##"
8fdb0857 2139 echo
5213506e 2140 cat confdefs.h
8fdb0857
BE
2141 echo
2142 fi
2143 test "$ac_signal" != 0 &&
5213506e
RW
2144 $as_echo "$as_me: caught signal $ac_signal"
2145 $as_echo "$as_me: exit $exit_status"
8fdb0857 2146 } >&5
5213506e
RW
2147 rm -f core *.core core.conftest.* &&
2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
8fdb0857 2149 exit $exit_status
5213506e 2150' 0
8fdb0857 2151for ac_signal in 1 2 13 15; do
5213506e 2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
8fdb0857
BE
2153done
2154ac_signal=0
2155
2156# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2157rm -f -r conftest* confdefs.h
2158
2159$as_echo "/* confdefs.h */" > confdefs.h
8fdb0857
BE
2160
2161# Predefined preprocessor variables.
2162
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_NAME "$PACKAGE_NAME"
2165_ACEOF
2166
8fdb0857
BE
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169_ACEOF
2170
8fdb0857
BE
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_VERSION "$PACKAGE_VERSION"
2173_ACEOF
2174
8fdb0857
BE
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_STRING "$PACKAGE_STRING"
2177_ACEOF
2178
8fdb0857
BE
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181_ACEOF
2182
5213506e
RW
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_URL "$PACKAGE_URL"
2185_ACEOF
2186
8fdb0857
BE
2187
2188# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2189# Prefer an explicitly selected file to automatically selected ones.
2190ac_site_file1=NONE
2191ac_site_file2=NONE
2192if test -n "$CONFIG_SITE"; then
22e05272
JM
2193 # We do not want a PATH search for config.site.
2194 case $CONFIG_SITE in #((
2195 -*) ac_site_file1=./$CONFIG_SITE;;
2196 */*) ac_site_file1=$CONFIG_SITE;;
2197 *) ac_site_file1=./$CONFIG_SITE;;
2198 esac
5213506e
RW
2199elif test "x$prefix" != xNONE; then
2200 ac_site_file1=$prefix/share/config.site
2201 ac_site_file2=$prefix/etc/config.site
2202else
2203 ac_site_file1=$ac_default_prefix/share/config.site
2204 ac_site_file2=$ac_default_prefix/etc/config.site
2205fi
2206for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207do
2208 test "x$ac_site_file" = xNONE && continue
22e05272 2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211$as_echo "$as_me: loading site script $ac_site_file" >&6;}
8fdb0857 2212 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2213 . "$ac_site_file" \
2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216as_fn_error $? "failed to load site script $ac_site_file
2217See \`config.log' for more details" "$LINENO" 5; }
8fdb0857
BE
2218 fi
2219done
2220
2221if test -r "$cache_file"; then
22e05272
JM
2222 # Some versions of bash will fail to source /dev/null (special files
2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226$as_echo "$as_me: loading cache $cache_file" >&6;}
8fdb0857 2227 case $cache_file in
5213506e
RW
2228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229 *) . "./$cache_file";;
8fdb0857
BE
2230 esac
2231 fi
2232else
5213506e
RW
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234$as_echo "$as_me: creating cache $cache_file" >&6;}
8fdb0857
BE
2235 >$cache_file
2236fi
2237
2238# Check that the precious variables saved in the cache have kept the same
2239# value.
2240ac_cache_corrupted=false
5213506e 2241for ac_var in $ac_precious_vars; do
8fdb0857
BE
2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245 eval ac_new_val=\$ac_env_${ac_var}_value
8fdb0857
BE
2246 case $ac_old_set,$ac_new_set in
2247 set,)
5213506e
RW
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
8fdb0857
BE
2250 ac_cache_corrupted=: ;;
2251 ,set)
5213506e
RW
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
8fdb0857
BE
2254 ac_cache_corrupted=: ;;
2255 ,);;
2256 *)
2257 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2258 # differences in whitespace do not lead to failure.
2259 ac_old_val_w=`echo x $ac_old_val`
2260 ac_new_val_w=`echo x $ac_new_val`
2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264 ac_cache_corrupted=:
2265 else
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268 eval $ac_var=\$ac_old_val
2269 fi
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2271$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2273$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
8fdb0857
BE
2274 fi;;
2275 esac
2276 # Pass precious variables to config.status.
2277 if test "$ac_new_set" = set; then
2278 case $ac_new_val in
5213506e 2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
8fdb0857
BE
2280 *) ac_arg=$ac_var=$ac_new_val ;;
2281 esac
2282 case " $ac_configure_args " in
2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
8fdb0857
BE
2285 esac
2286 fi
2287done
2288if $ac_cache_corrupted; then
5213506e
RW
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
8fdb0857 2294fi
5213506e
RW
2295## -------------------- ##
2296## Main body of script. ##
2297## -------------------- ##
8fdb0857
BE
2298
2299ac_ext=c
2300ac_cpp='$CPP $CPPFLAGS'
2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306
2307
309f50b9
SB
2308ac_aux_dir=
2309for ac_dir in .. "$srcdir"/..; do
22e05272
JM
2310 if test -f "$ac_dir/install-sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 break
2314 elif test -f "$ac_dir/install.sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 break
2318 elif test -f "$ac_dir/shtool"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 break
2322 fi
309f50b9
SB
2323done
2324if test -z "$ac_aux_dir"; then
22e05272 2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
309f50b9
SB
2326fi
2327
2328# These three variables are undocumented and unsupported,
2329# and are intended to be withdrawn in a future Autoconf release.
2330# They can cause serious problems if a builder's source tree is in a directory
2331# whose full name contains unusual characters.
2332ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335
2336
8fdb0857 2337
8fdb0857 2338# Checks for programs.
5213506e
RW
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2340$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2341set x ${MAKE-make}
2342ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2343if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e 2344 $as_echo_n "(cached) " >&6
8fdb0857
BE
2345else
2346 cat >conftest.make <<\_ACEOF
5213506e 2347SHELL = /bin/sh
8fdb0857 2348all:
5213506e 2349 @echo '@@@%%%=$(MAKE)=@@@%%%'
8fdb0857 2350_ACEOF
22e05272 2351# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
2352case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353 *@@@%%%=?*=@@@%%%*)
2354 eval ac_cv_prog_make_${ac_make}_set=yes;;
2355 *)
2356 eval ac_cv_prog_make_${ac_make}_set=no;;
2357esac
8fdb0857
BE
2358rm -f conftest.make
2359fi
5213506e
RW
2360if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2362$as_echo "yes" >&6; }
8fdb0857
BE
2363 SET_MAKE=
2364else
5213506e
RW
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366$as_echo "no" >&6; }
8fdb0857
BE
2367 SET_MAKE="MAKE=${MAKE-make}"
2368fi
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2380if ${ac_cv_prog_CC+:} false; then :
5213506e 2381 $as_echo_n "(cached) " >&6
8fdb0857
BE
2382else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
5213506e 2391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 2393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
2395 break 2
2396 fi
2397done
5213506e
RW
2398 done
2399IFS=$as_save_IFS
8fdb0857
BE
2400
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
5213506e
RW
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2406$as_echo "$CC" >&6; }
8fdb0857 2407else
5213506e
RW
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409$as_echo "no" >&6; }
8fdb0857
BE
2410fi
2411
5213506e 2412
8fdb0857
BE
2413fi
2414if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "gcc", so it can be a program name with args.
2417set dummy gcc; ac_word=$2
5213506e
RW
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2420if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 2421 $as_echo_n "(cached) " >&6
8fdb0857
BE
2422else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
5213506e 2431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 2433 ac_cv_prog_ac_ct_CC="gcc"
5213506e 2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
2435 break 2
2436 fi
2437done
5213506e
RW
2438 done
2439IFS=$as_save_IFS
8fdb0857
BE
2440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
5213506e
RW
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2446$as_echo "$ac_ct_CC" >&6; }
8fdb0857 2447else
5213506e
RW
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449$as_echo "no" >&6; }
8fdb0857
BE
2450fi
2451
5213506e
RW
2452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456yes:)
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459ac_tool_warned=yes ;;
2460esac
2461 CC=$ac_ct_CC
2462 fi
8fdb0857
BE
2463else
2464 CC="$ac_cv_prog_CC"
2465fi
2466
2467if test -z "$CC"; then
5213506e
RW
2468 if test -n "$ac_tool_prefix"; then
2469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8fdb0857 2470set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2473if ${ac_cv_prog_CC+:} false; then :
5213506e 2474 $as_echo_n "(cached) " >&6
8fdb0857
BE
2475else
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
5213506e 2484 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 2486 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
2488 break 2
2489 fi
2490done
5213506e
RW
2491 done
2492IFS=$as_save_IFS
8fdb0857
BE
2493
2494fi
2495fi
2496CC=$ac_cv_prog_CC
2497if test -n "$CC"; then
5213506e
RW
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2499$as_echo "$CC" >&6; }
8fdb0857 2500else
5213506e
RW
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502$as_echo "no" >&6; }
8fdb0857
BE
2503fi
2504
8fdb0857 2505
5213506e 2506 fi
8fdb0857
BE
2507fi
2508if test -z "$CC"; then
2509 # Extract the first word of "cc", so it can be a program name with args.
2510set dummy cc; ac_word=$2
5213506e
RW
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2513if ${ac_cv_prog_CC+:} false; then :
5213506e 2514 $as_echo_n "(cached) " >&6
8fdb0857
BE
2515else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518else
2519 ac_prog_rejected=no
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
5213506e 2525 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857
BE
2527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2528 ac_prog_rejected=yes
2529 continue
2530 fi
2531 ac_cv_prog_CC="cc"
5213506e 2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
2533 break 2
2534 fi
2535done
5213506e
RW
2536 done
2537IFS=$as_save_IFS
8fdb0857
BE
2538
2539if test $ac_prog_rejected = yes; then
2540 # We found a bogon in the path, so make sure we never use it.
2541 set dummy $ac_cv_prog_CC
2542 shift
2543 if test $# != 0; then
2544 # We chose a different compiler from the bogus one.
2545 # However, it has the same basename, so the bogon will be chosen
2546 # first if we set CC to just the basename; use the full file name.
2547 shift
2548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2549 fi
2550fi
2551fi
2552fi
2553CC=$ac_cv_prog_CC
2554if test -n "$CC"; then
5213506e
RW
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2556$as_echo "$CC" >&6; }
8fdb0857 2557else
5213506e
RW
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
8fdb0857
BE
2560fi
2561
5213506e 2562
8fdb0857
BE
2563fi
2564if test -z "$CC"; then
2565 if test -n "$ac_tool_prefix"; then
5213506e 2566 for ac_prog in cl.exe
8fdb0857
BE
2567 do
2568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2572if ${ac_cv_prog_CC+:} false; then :
5213506e 2573 $as_echo_n "(cached) " >&6
8fdb0857
BE
2574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
5213506e 2583 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 2585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
2587 break 2
2588 fi
2589done
5213506e
RW
2590 done
2591IFS=$as_save_IFS
8fdb0857
BE
2592
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
5213506e
RW
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2598$as_echo "$CC" >&6; }
8fdb0857 2599else
5213506e
RW
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
8fdb0857
BE
2602fi
2603
5213506e 2604
8fdb0857
BE
2605 test -n "$CC" && break
2606 done
2607fi
2608if test -z "$CC"; then
2609 ac_ct_CC=$CC
5213506e 2610 for ac_prog in cl.exe
8fdb0857
BE
2611do
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613set dummy $ac_prog; ac_word=$2
5213506e
RW
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2616if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 2617 $as_echo_n "(cached) " >&6
8fdb0857
BE
2618else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
5213506e 2627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 2629 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
2631 break 2
2632 fi
2633done
5213506e
RW
2634 done
2635IFS=$as_save_IFS
8fdb0857
BE
2636
2637fi
2638fi
2639ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640if test -n "$ac_ct_CC"; then
5213506e
RW
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2642$as_echo "$ac_ct_CC" >&6; }
8fdb0857 2643else
5213506e
RW
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
8fdb0857
BE
2646fi
2647
5213506e 2648
8fdb0857
BE
2649 test -n "$ac_ct_CC" && break
2650done
2651
5213506e
RW
2652 if test "x$ac_ct_CC" = x; then
2653 CC=""
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656yes:)
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659ac_tool_warned=yes ;;
2660esac
2661 CC=$ac_ct_CC
2662 fi
8fdb0857
BE
2663fi
2664
2665fi
2666
2667
5213506e
RW
2668test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2670as_fn_error $? "no acceptable C compiler found in \$PATH
2671See \`config.log' for more details" "$LINENO" 5; }
8fdb0857
BE
2672
2673# Provide some information about the compiler.
5213506e
RW
2674$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2675set X $ac_compile
2676ac_compiler=$2
2677for ac_option in --version -v -V -qversion; do
2678 { { ac_try="$ac_compiler $ac_option >&5"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684$as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8fdb0857 2686 ac_status=$?
5213506e
RW
2687 if test -s conftest.err; then
2688 sed '10a\
2689... rest of stderr output deleted ...
2690 10q' conftest.err >conftest.er1
2691 cat conftest.er1 >&5
5213506e 2692 fi
22e05272 2693 rm -f conftest.er1 conftest.err
5213506e
RW
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695 test $ac_status = 0; }
2696done
8fdb0857 2697
5213506e 2698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
2699/* end confdefs.h. */
2700
2701int
2702main ()
2703{
2704
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709ac_clean_files_save=$ac_clean_files
22e05272 2710ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8fdb0857
BE
2711# Try to create an executable without -o first, disregard a.out.
2712# It will help us diagnose broken compilers, and finding out an intuition
2713# of exeext.
22e05272
JM
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2715$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
2716ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2717
2718# The possible output files:
2719ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2720
2721ac_rmfiles=
2722for ac_file in $ac_files
2723do
2724 case $ac_file in
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2727 esac
2728done
2729rm -f $ac_rmfiles
2730
2731if { { ac_try="$ac_link_default"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737$as_echo "$ac_try_echo"; } >&5
2738 (eval "$ac_link_default") 2>&5
2739 ac_status=$?
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }; then :
2742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2743# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2744# in a Makefile. We should not override ac_cv_exeext if it was cached,
2745# so that the user can short-circuit this test for compilers unknown to
2746# Autoconf.
2747for ac_file in $ac_files ''
8fdb0857
BE
2748do
2749 test -f "$ac_file" || continue
2750 case $ac_file in
5213506e 2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8fdb0857
BE
2752 ;;
2753 [ab].out )
2754 # We found the default executable, but exeext='' is most
2755 # certainly right.
2756 break;;
2757 *.* )
5213506e
RW
2758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2759 then :; else
2760 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761 fi
2762 # We set ac_cv_exeext here because the later test for it is not
2763 # safe: cross compilers may not add the suffix if given an `-o'
2764 # argument, so we may need to know it at that point already.
2765 # Even if this section looks crufty: it has the advantage of
2766 # actually working.
8fdb0857
BE
2767 break;;
2768 * )
2769 break;;
2770 esac
2771done
5213506e
RW
2772test "$ac_cv_exeext" = no && ac_cv_exeext=
2773
8fdb0857 2774else
5213506e
RW
2775 ac_file=''
2776fi
5213506e 2777if test -z "$ac_file"; then :
22e05272
JM
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780$as_echo "$as_me: failed program was:" >&5
8fdb0857
BE
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
5213506e
RW
2783{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2785as_fn_error 77 "C compiler cannot create executables
2786See \`config.log' for more details" "$LINENO" 5; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789$as_echo "yes" >&6; }
8fdb0857 2790fi
22e05272
JM
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2792$as_echo_n "checking for C compiler default output file name... " >&6; }
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2794$as_echo "$ac_file" >&6; }
8fdb0857 2795ac_exeext=$ac_cv_exeext
8fdb0857 2796
22e05272 2797rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8fdb0857 2798ac_clean_files=$ac_clean_files_save
5213506e
RW
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2800$as_echo_n "checking for suffix of executables... " >&6; }
2801if { { ac_try="$ac_link"
2802case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805esac
2806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807$as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_link") 2>&5
8fdb0857 2809 ac_status=$?
5213506e
RW
2810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811 test $ac_status = 0; }; then :
8fdb0857
BE
2812 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2813# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2814# work properly (i.e., refer to `conftest.exe'), while it won't with
2815# `rm'.
2816for ac_file in conftest.exe conftest conftest.*; do
2817 test -f "$ac_file" || continue
2818 case $ac_file in
5213506e 2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8fdb0857 2820 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8fdb0857
BE
2821 break;;
2822 * ) break;;
2823 esac
2824done
2825else
5213506e
RW
2826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2828as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2829See \`config.log' for more details" "$LINENO" 5; }
8fdb0857 2830fi
22e05272 2831rm -f conftest conftest$ac_cv_exeext
5213506e
RW
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2833$as_echo "$ac_cv_exeext" >&6; }
8fdb0857
BE
2834
2835rm -f conftest.$ac_ext
2836EXEEXT=$ac_cv_exeext
2837ac_exeext=$EXEEXT
22e05272
JM
2838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840#include <stdio.h>
2841int
2842main ()
2843{
2844FILE *f = fopen ("conftest.out", "w");
2845 return ferror (f) || fclose (f) != 0;
2846
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851ac_clean_files="$ac_clean_files conftest.out"
2852# Check that the compiler produces executables we can run. If not, either
2853# the compiler is broken, or we cross compile.
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2855$as_echo_n "checking whether we are cross compiling... " >&6; }
2856if test "$cross_compiling" != yes; then
2857 { { ac_try="$ac_link"
2858case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861esac
2862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863$as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_link") 2>&5
2865 ac_status=$?
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }
2868 if { ac_try='./conftest$ac_cv_exeext'
2869 { { case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
2873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2874$as_echo "$ac_try_echo"; } >&5
2875 (eval "$ac_try") 2>&5
2876 ac_status=$?
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; }; }; then
2879 cross_compiling=no
2880 else
2881 if test "$cross_compiling" = maybe; then
2882 cross_compiling=yes
2883 else
2884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886as_fn_error $? "cannot run C compiled programs.
2887If you meant to cross compile, use \`--host'.
2888See \`config.log' for more details" "$LINENO" 5; }
2889 fi
2890 fi
2891fi
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2893$as_echo "$cross_compiling" >&6; }
2894
2895rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2896ac_clean_files=$ac_clean_files_save
5213506e
RW
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2898$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 2899if ${ac_cv_objext+:} false; then :
5213506e 2900 $as_echo_n "(cached) " >&6
8fdb0857 2901else
5213506e 2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
2903/* end confdefs.h. */
2904
2905int
2906main ()
2907{
2908
2909 ;
2910 return 0;
2911}
2912_ACEOF
2913rm -f conftest.o conftest.obj
5213506e
RW
2914if { { ac_try="$ac_compile"
2915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
2919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920$as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_compile") 2>&5
2922 ac_status=$?
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
2925 for ac_file in conftest.o conftest.obj conftest.*; do
2926 test -f "$ac_file" || continue;
8fdb0857 2927 case $ac_file in
5213506e 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8fdb0857
BE
2929 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2930 break;;
2931 esac
2932done
2933else
5213506e 2934 $as_echo "$as_me: failed program was:" >&5
8fdb0857
BE
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
5213506e
RW
2937{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2939as_fn_error $? "cannot compute suffix of object files: cannot compile
2940See \`config.log' for more details" "$LINENO" 5; }
8fdb0857 2941fi
8fdb0857
BE
2942rm -f conftest.$ac_cv_objext conftest.$ac_ext
2943fi
5213506e
RW
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2945$as_echo "$ac_cv_objext" >&6; }
8fdb0857
BE
2946OBJEXT=$ac_cv_objext
2947ac_objext=$OBJEXT
5213506e
RW
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2949$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 2950if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 2951 $as_echo_n "(cached) " >&6
8fdb0857 2952else
5213506e 2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
2954/* end confdefs.h. */
2955
2956int
2957main ()
2958{
2959#ifndef __GNUC__
2960 choke me
2961#endif
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
5213506e 2967if ac_fn_c_try_compile "$LINENO"; then :
8fdb0857
BE
2968 ac_compiler_gnu=yes
2969else
5213506e 2970 ac_compiler_gnu=no
8fdb0857 2971fi
5213506e 2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdb0857
BE
2973ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974
2975fi
5213506e
RW
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2977$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2978if test $ac_compiler_gnu = yes; then
2979 GCC=yes
2980else
2981 GCC=
2982fi
8fdb0857
BE
2983ac_test_CFLAGS=${CFLAGS+set}
2984ac_save_CFLAGS=$CFLAGS
5213506e
RW
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2986$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 2987if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
2988 $as_echo_n "(cached) " >&6
2989else
2990 ac_save_c_werror_flag=$ac_c_werror_flag
2991 ac_c_werror_flag=yes
2992 ac_cv_prog_cc_g=no
2993 CFLAGS="-g"
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
2995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
5213506e 3005if ac_fn_c_try_compile "$LINENO"; then :
8fdb0857
BE
3006 ac_cv_prog_cc_g=yes
3007else
5213506e
RW
3008 CFLAGS=""
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h. */
3011
3012int
3013main ()
3014{
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020if ac_fn_c_try_compile "$LINENO"; then :
3021
3022else
3023 ac_c_werror_flag=$ac_save_c_werror_flag
3024 CFLAGS="-g"
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
8fdb0857 3031
5213506e
RW
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036if ac_fn_c_try_compile "$LINENO"; then :
3037 ac_cv_prog_cc_g=yes
3038fi
3039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040fi
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdb0857 3042fi
5213506e
RW
3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 ac_c_werror_flag=$ac_save_c_werror_flag
8fdb0857 3045fi
5213506e
RW
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3047$as_echo "$ac_cv_prog_cc_g" >&6; }
8fdb0857
BE
3048if test "$ac_test_CFLAGS" = set; then
3049 CFLAGS=$ac_save_CFLAGS
3050elif test $ac_cv_prog_cc_g = yes; then
3051 if test "$GCC" = yes; then
3052 CFLAGS="-g -O2"
3053 else
3054 CFLAGS="-g"
3055 fi
3056else
3057 if test "$GCC" = yes; then
3058 CFLAGS="-O2"
3059 else
3060 CFLAGS=
3061 fi
3062fi
5213506e
RW
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3064$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3065if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 3066 $as_echo_n "(cached) " >&6
8fdb0857 3067else
5213506e 3068 ac_cv_prog_cc_c89=no
8fdb0857 3069ac_save_CC=$CC
5213506e 3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3071/* end confdefs.h. */
3072#include <stdarg.h>
3073#include <stdio.h>
22e05272 3074struct stat;
8fdb0857
BE
3075/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3076struct buf { int x; };
3077FILE * (*rcsopen) (struct buf *, struct stat *, int);
3078static char *e (p, i)
3079 char **p;
3080 int i;
3081{
3082 return p[i];
3083}
3084static char *f (char * (*g) (char **, int), char **p, ...)
3085{
3086 char *s;
3087 va_list v;
3088 va_start (v,p);
3089 s = g (p, va_arg (v,int));
3090 va_end (v);
3091 return s;
3092}
3093
3094/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3095 function prototypes and stuff, but not '\xHH' hex character constants.
3096 These don't provoke an error unfortunately, instead are silently treated
5213506e 3097 as 'x'. The following induces an error, until -std is added to get
8fdb0857
BE
3098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3099 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3100 that's true only with -std. */
8fdb0857
BE
3101int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3102
5213506e
RW
3103/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3104 inside strings and character constants. */
3105#define FOO(x) 'x'
3106int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3107
8fdb0857
BE
3108int test (int i, double x);
3109struct s1 {int (*f) (int a);};
3110struct s2 {int (*f) (double a);};
3111int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3112int argc;
3113char **argv;
3114int
3115main ()
3116{
3117return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3118 ;
3119 return 0;
3120}
3121_ACEOF
5213506e
RW
3122for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8fdb0857
BE
3124do
3125 CC="$ac_save_CC $ac_arg"
5213506e
RW
3126 if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_cv_prog_cc_c89=$ac_arg
8fdb0857 3128fi
5213506e
RW
3129rm -f core conftest.err conftest.$ac_objext
3130 test "x$ac_cv_prog_cc_c89" != "xno" && break
8fdb0857 3131done
5213506e 3132rm -f conftest.$ac_ext
8fdb0857
BE
3133CC=$ac_save_CC
3134
3135fi
5213506e
RW
3136# AC_CACHE_VAL
3137case "x$ac_cv_prog_cc_c89" in
3138 x)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3140$as_echo "none needed" >&6; } ;;
3141 xno)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3143$as_echo "unsupported" >&6; } ;;
8fdb0857 3144 *)
5213506e
RW
3145 CC="$CC $ac_cv_prog_cc_c89"
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3147$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8fdb0857 3148esac
5213506e 3149if test "x$ac_cv_prog_cc_c89" != xno; then :
8fdb0857 3150
8fdb0857
BE
3151fi
3152
8fdb0857
BE
3153ac_ext=c
3154ac_cpp='$CPP $CPPFLAGS'
3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
3159if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3161set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3164if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 3165 $as_echo_n "(cached) " >&6
8fdb0857
BE
3166else
3167 if test -n "$RANLIB"; then
3168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
5213506e 3175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 3177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
3179 break 2
3180 fi
3181done
5213506e
RW
3182 done
3183IFS=$as_save_IFS
8fdb0857
BE
3184
3185fi
3186fi
3187RANLIB=$ac_cv_prog_RANLIB
3188if test -n "$RANLIB"; then
5213506e
RW
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3190$as_echo "$RANLIB" >&6; }
8fdb0857 3191else
5213506e
RW
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193$as_echo "no" >&6; }
8fdb0857
BE
3194fi
3195
5213506e 3196
8fdb0857
BE
3197fi
3198if test -z "$ac_cv_prog_RANLIB"; then
3199 ac_ct_RANLIB=$RANLIB
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201set dummy ranlib; ac_word=$2
5213506e
RW
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3204if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 3205 $as_echo_n "(cached) " >&6
8fdb0857
BE
3206else
3207 if test -n "$ac_ct_RANLIB"; then
3208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3209else
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
5213506e 3215 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 3217 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
3219 break 2
3220 fi
3221done
5213506e
RW
3222 done
3223IFS=$as_save_IFS
8fdb0857 3224
8fdb0857
BE
3225fi
3226fi
3227ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228if test -n "$ac_ct_RANLIB"; then
5213506e
RW
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3230$as_echo "$ac_ct_RANLIB" >&6; }
8fdb0857 3231else
5213506e
RW
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233$as_echo "no" >&6; }
8fdb0857
BE
3234fi
3235
5213506e
RW
3236 if test "x$ac_ct_RANLIB" = x; then
3237 RANLIB=":"
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240yes:)
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243ac_tool_warned=yes ;;
3244esac
3245 RANLIB=$ac_ct_RANLIB
3246 fi
8fdb0857
BE
3247else
3248 RANLIB="$ac_cv_prog_RANLIB"
3249fi
3250
731c4ce0
DE
3251if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3253set dummy ${ac_tool_prefix}ar; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if ${ac_cv_prog_AR+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258else
3259 if test -n "$AR"; then
3260 ac_cv_prog_AR="$AR" # Let the user override the test.
3261else
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_AR="${ac_tool_prefix}ar"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273done
3274 done
3275IFS=$as_save_IFS
3276
3277fi
3278fi
3279AR=$ac_cv_prog_AR
3280if test -n "$AR"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3282$as_echo "$AR" >&6; }
3283else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286fi
3287
3288
3289fi
3290if test -z "$ac_cv_prog_AR"; then
3291 ac_ct_AR=$AR
3292 # Extract the first word of "ar", so it can be a program name with args.
3293set dummy ar; ac_word=$2
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if ${ac_cv_prog_ac_ct_AR+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298else
3299 if test -n "$ac_ct_AR"; then
3300 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_AR="ar"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313done
3314 done
3315IFS=$as_save_IFS
3316
3317fi
3318fi
3319ac_ct_AR=$ac_cv_prog_ac_ct_AR
3320if test -n "$ac_ct_AR"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3322$as_echo "$ac_ct_AR" >&6; }
3323else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326fi
3327
3328 if test "x$ac_ct_AR" = x; then
3329 AR=""
3330 else
3331 case $cross_compiling:$ac_tool_warned in
3332yes:)
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335ac_tool_warned=yes ;;
3336esac
3337 AR=$ac_ct_AR
3338 fi
3339else
3340 AR="$ac_cv_prog_AR"
3341fi
3342
8fdb0857
BE
3343
3344MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3345for ac_prog in aclocal
3346do
3347 # Extract the first word of "$ac_prog", so it can be a program name with args.
3348set dummy $ac_prog; ac_word=$2
5213506e
RW
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3351if ${ac_cv_prog_ACLOCAL+:} false; then :
5213506e 3352 $as_echo_n "(cached) " >&6
8fdb0857
BE
3353else
3354 if test -n "$ACLOCAL"; then
3355 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
3356else
3357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358for as_dir in $PATH
3359do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
5213506e 3362 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 3364 ac_cv_prog_ACLOCAL="$ac_prog"
5213506e 3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
3366 break 2
3367 fi
3368done
5213506e
RW
3369 done
3370IFS=$as_save_IFS
8fdb0857
BE
3371
3372fi
3373fi
3374ACLOCAL=$ac_cv_prog_ACLOCAL
3375if test -n "$ACLOCAL"; then
5213506e
RW
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
3377$as_echo "$ACLOCAL" >&6; }
8fdb0857 3378else
5213506e
RW
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380$as_echo "no" >&6; }
8fdb0857
BE
3381fi
3382
5213506e 3383
8fdb0857
BE
3384 test -n "$ACLOCAL" && break
3385done
3386test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
3387
3388for ac_prog in autoconf
3389do
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391set dummy $ac_prog; ac_word=$2
5213506e
RW
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3394if ${ac_cv_prog_AUTOCONF+:} false; then :
5213506e 3395 $as_echo_n "(cached) " >&6
8fdb0857
BE
3396else
3397 if test -n "$AUTOCONF"; then
3398 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
5213506e 3405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 3407 ac_cv_prog_AUTOCONF="$ac_prog"
5213506e 3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
3409 break 2
3410 fi
3411done
5213506e
RW
3412 done
3413IFS=$as_save_IFS
8fdb0857
BE
3414
3415fi
3416fi
3417AUTOCONF=$ac_cv_prog_AUTOCONF
3418if test -n "$AUTOCONF"; then
5213506e
RW
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
3420$as_echo "$AUTOCONF" >&6; }
8fdb0857 3421else
5213506e
RW
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
8fdb0857
BE
3424fi
3425
5213506e 3426
8fdb0857
BE
3427 test -n "$AUTOCONF" && break
3428done
3429test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
3430
3431for ac_prog in autoheader
3432do
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434set dummy $ac_prog; ac_word=$2
5213506e
RW
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3437if ${ac_cv_prog_AUTOHEADER+:} false; then :
5213506e 3438 $as_echo_n "(cached) " >&6
8fdb0857
BE
3439else
3440 if test -n "$AUTOHEADER"; then
3441 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
5213506e 3448 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8fdb0857 3450 ac_cv_prog_AUTOHEADER="$ac_prog"
5213506e 3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8fdb0857
BE
3452 break 2
3453 fi
3454done
5213506e
RW
3455 done
3456IFS=$as_save_IFS
8fdb0857
BE
3457
3458fi
3459fi
3460AUTOHEADER=$ac_cv_prog_AUTOHEADER
3461if test -n "$AUTOHEADER"; then
5213506e
RW
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
3463$as_echo "$AUTOHEADER" >&6; }
8fdb0857 3464else
5213506e
RW
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
8fdb0857
BE
3467fi
3468
5213506e 3469
8fdb0857
BE
3470 test -n "$AUTOHEADER" && break
3471done
3472test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
3473
3474
3475# Figure out what compiler warnings we can enable.
3476# See config/warnings.m4 for details.
3477
3478
84c1b9d3
MK
3479ac_ext=c
3480ac_cpp='$CPP $CPPFLAGS'
3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
8fdb0857
BE
3485WARN_CFLAGS=
3486save_CFLAGS="$CFLAGS"
095af58f 3487for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
8fdb0857 3488 -Wmissing-prototypes -Wold-style-definition \
aa4f41c1 3489 -Wmissing-format-attribute -Wcast-qual; do
095af58f
AS
3490 # Do the check with the no- prefix removed since gcc silently
3491 # accepts any -Wno-* option on purpose
3492 case $real_option in
4a5e00ca 3493 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
095af58f
AS
3494 *) option=$real_option ;;
3495 esac
5213506e 3496 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
8fdb0857 3497
5213506e
RW
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3499$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 3500if eval \${$as_acx_Woption+:} false; then :
5213506e 3501 $as_echo_n "(cached) " >&6
8fdb0857
BE
3502else
3503 CFLAGS="$option"
5213506e 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3505/* end confdefs.h. */
3506
3507int
3508main ()
3509{
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
5213506e 3515if ac_fn_c_try_compile "$LINENO"; then :
8fdb0857
BE
3516 eval "$as_acx_Woption=yes"
3517else
5213506e 3518 eval "$as_acx_Woption=no"
8fdb0857 3519fi
5213506e 3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdb0857
BE
3521
3522fi
5213506e
RW
3523eval ac_res=\$$as_acx_Woption
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3525$as_echo "$ac_res" >&6; }
3526 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
095af58f 3527 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option"
8fdb0857 3528fi
8fdb0857
BE
3529 done
3530CFLAGS="$save_CFLAGS"
84c1b9d3
MK
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538ac_ext=c
3539ac_cpp='$CPP $CPPFLAGS'
3540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542ac_compiler_gnu=$ac_cv_c_compiler_gnu
8fdb0857
BE
3543
3544WARN_PEDANTIC=
095af58f
AS
3545# Do the check with the no- prefix removed from the warning options
3546# since gcc silently accepts any -Wno-* option on purpose
5213506e 3547if test "$GCC" = yes; then :
095af58f
AS
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
3549$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
22e05272 3550if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5213506e 3551 $as_echo_n "(cached) " >&6
8fdb0857
BE
3552else
3553 save_CFLAGS="$CFLAGS"
095af58f 3554CFLAGS="-pedantic -Wlong-long"
5213506e 3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
5213506e 3566if ac_fn_c_try_compile "$LINENO"; then :
095af58f 3567 acx_cv_prog_cc_pedantic__Wlong_long=yes
8fdb0857 3568else
095af58f 3569 acx_cv_prog_cc_pedantic__Wlong_long=no
8fdb0857 3570fi
5213506e 3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdb0857
BE
3572CFLAGS="$save_CFLAGS"
3573fi
095af58f
AS
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
3575$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
3576if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
79b87c74 3577 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
8fdb0857
BE
3578fi
3579
8fdb0857 3580fi
84c1b9d3
MK
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
8fdb0857
BE
3587
3588
8a1f09e4
JJ
3589ac_ext=c
3590ac_cpp='$CPP $CPPFLAGS'
3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594
3595nolto_flags=
3596save_CFLAGS="$CFLAGS"
3597for real_option in -fno-lto; do
3598 # Do the check with the no- prefix removed since gcc silently
3599 # accepts any -Wno-* option on purpose
3600 case $real_option in
3601 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
3602 *) option=$real_option ;;
3603 esac
3604 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3607$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 3608if eval \${$as_acx_Woption+:} false; then :
8a1f09e4
JJ
3609 $as_echo_n "(cached) " >&6
3610else
3611 CFLAGS="$option"
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h. */
3614
3615int
3616main ()
3617{
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624 eval "$as_acx_Woption=yes"
3625else
3626 eval "$as_acx_Woption=no"
3627fi
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629
3630fi
3631eval ac_res=\$$as_acx_Woption
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3633$as_echo "$ac_res" >&6; }
3634 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
3635 nolto_flags="$nolto_flags${nolto_flags:+ }$real_option"
3636fi
3637 done
3638CFLAGS="$save_CFLAGS"
3639ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645
3646
8fdb0857
BE
3647# Only enable with --enable-werror-always until existing warnings are
3648# corrected.
84c1b9d3
MK
3649ac_ext=c
3650ac_cpp='$CPP $CPPFLAGS'
3651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654
8fdb0857 3655WERROR=
5213506e
RW
3656# Check whether --enable-werror-always was given.
3657if test "${enable_werror_always+set}" = set; then :
3658 enableval=$enable_werror_always;
8fdb0857
BE
3659else
3660 enable_werror_always=no
8fdb0857
BE
3661fi
3662
5213506e
RW
3663if test $enable_werror_always = yes; then :
3664 WERROR="$WERROR${WERROR:+ }-Werror"
3665fi
8fdb0857 3666
84c1b9d3
MK
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
8fdb0857 3673
79b87c74 3674
8fdb0857
BE
3675# Checks for header files.
3676ac_ext=c
3677ac_cpp='$CPP $CPPFLAGS'
3678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3682$as_echo_n "checking how to run the C preprocessor... " >&6; }
8fdb0857
BE
3683# On Suns, sometimes $CPP names a directory.
3684if test -n "$CPP" && test -d "$CPP"; then
3685 CPP=
3686fi
3687if test -z "$CPP"; then
22e05272 3688 if ${ac_cv_prog_CPP+:} false; then :
5213506e 3689 $as_echo_n "(cached) " >&6
8fdb0857
BE
3690else
3691 # Double quotes because CPP needs to be expanded
3692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3693 do
3694 ac_preproc_ok=false
3695for ac_c_preproc_warn_flag in '' yes
3696do
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3704/* end confdefs.h. */
3705#ifdef __STDC__
3706# include <limits.h>
3707#else
3708# include <assert.h>
3709#endif
3710 Syntax error
3711_ACEOF
5213506e 3712if ac_fn_c_try_cpp "$LINENO"; then :
8fdb0857 3713
5213506e 3714else
8fdb0857
BE
3715 # Broken: fails on valid input.
3716continue
3717fi
22e05272 3718rm -f conftest.err conftest.i conftest.$ac_ext
8fdb0857 3719
5213506e 3720 # OK, works on sane cases. Now check whether nonexistent headers
8fdb0857 3721 # can be detected and how.
5213506e 3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3723/* end confdefs.h. */
3724#include <ac_nonexistent.h>
3725_ACEOF
5213506e 3726if ac_fn_c_try_cpp "$LINENO"; then :
8fdb0857
BE
3727 # Broken: success on invalid input.
3728continue
3729else
8fdb0857
BE
3730 # Passes both tests.
3731ac_preproc_ok=:
3732break
3733fi
22e05272 3734rm -f conftest.err conftest.i conftest.$ac_ext
8fdb0857
BE
3735
3736done
3737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3738rm -f conftest.i conftest.err conftest.$ac_ext
5213506e 3739if $ac_preproc_ok; then :
8fdb0857
BE
3740 break
3741fi
3742
3743 done
3744 ac_cv_prog_CPP=$CPP
3745
3746fi
3747 CPP=$ac_cv_prog_CPP
3748else
3749 ac_cv_prog_CPP=$CPP
3750fi
5213506e
RW
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3752$as_echo "$CPP" >&6; }
8fdb0857
BE
3753ac_preproc_ok=false
3754for ac_c_preproc_warn_flag in '' yes
3755do
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3763/* end confdefs.h. */
3764#ifdef __STDC__
3765# include <limits.h>
3766#else
3767# include <assert.h>
3768#endif
3769 Syntax error
3770_ACEOF
5213506e 3771if ac_fn_c_try_cpp "$LINENO"; then :
8fdb0857 3772
5213506e 3773else
8fdb0857
BE
3774 # Broken: fails on valid input.
3775continue
3776fi
22e05272 3777rm -f conftest.err conftest.i conftest.$ac_ext
8fdb0857 3778
5213506e 3779 # OK, works on sane cases. Now check whether nonexistent headers
8fdb0857 3780 # can be detected and how.
5213506e 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3782/* end confdefs.h. */
3783#include <ac_nonexistent.h>
3784_ACEOF
5213506e 3785if ac_fn_c_try_cpp "$LINENO"; then :
8fdb0857
BE
3786 # Broken: success on invalid input.
3787continue
3788else
8fdb0857
BE
3789 # Passes both tests.
3790ac_preproc_ok=:
3791break
3792fi
22e05272 3793rm -f conftest.err conftest.i conftest.$ac_ext
8fdb0857
BE
3794
3795done
3796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3797rm -f conftest.i conftest.err conftest.$ac_ext
5213506e
RW
3798if $ac_preproc_ok; then :
3799
8fdb0857 3800else
5213506e
RW
3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3803as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3804See \`config.log' for more details" "$LINENO" 5; }
8fdb0857
BE
3805fi
3806
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813
5213506e
RW
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3815$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3816if ${ac_cv_path_GREP+:} false; then :
5213506e
RW
3817 $as_echo_n "(cached) " >&6
3818else
3819 if test -z "$GREP"; then
3820 ac_path_GREP_found=false
3821 # Loop through the user's path and test for each of PROGNAME-LIST
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_prog in grep ggrep; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3830 as_fn_executable_p "$ac_path_GREP" || continue
5213506e
RW
3831# Check for GNU ac_path_GREP and select it if it is found.
3832 # Check for GNU $ac_path_GREP
3833case `"$ac_path_GREP" --version 2>&1` in
3834*GNU*)
3835 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3836*)
3837 ac_count=0
3838 $as_echo_n 0123456789 >"conftest.in"
3839 while :
3840 do
3841 cat "conftest.in" "conftest.in" >"conftest.tmp"
3842 mv "conftest.tmp" "conftest.in"
3843 cp "conftest.in" "conftest.nl"
3844 $as_echo 'GREP' >> "conftest.nl"
3845 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3847 as_fn_arith $ac_count + 1 && ac_count=$as_val
3848 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3849 # Best one so far, save it but keep looking for a better one
3850 ac_cv_path_GREP="$ac_path_GREP"
3851 ac_path_GREP_max=$ac_count
3852 fi
3853 # 10*(2^10) chars as input seems more than enough
3854 test $ac_count -gt 10 && break
3855 done
3856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3857esac
3858
3859 $ac_path_GREP_found && break 3
3860 done
3861 done
3862 done
3863IFS=$as_save_IFS
3864 if test -z "$ac_cv_path_GREP"; then
22e05272 3865 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
3866 fi
3867else
3868 ac_cv_path_GREP=$GREP
3869fi
3870
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3873$as_echo "$ac_cv_path_GREP" >&6; }
3874 GREP="$ac_cv_path_GREP"
3875
3876
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3878$as_echo_n "checking for egrep... " >&6; }
22e05272 3879if ${ac_cv_path_EGREP+:} false; then :
5213506e 3880 $as_echo_n "(cached) " >&6
8fdb0857 3881else
5213506e
RW
3882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3883 then ac_cv_path_EGREP="$GREP -E"
3884 else
3885 if test -z "$EGREP"; then
3886 ac_path_EGREP_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in egrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3896 as_fn_executable_p "$ac_path_EGREP" || continue
5213506e
RW
3897# Check for GNU ac_path_EGREP and select it if it is found.
3898 # Check for GNU $ac_path_EGREP
3899case `"$ac_path_EGREP" --version 2>&1` in
3900*GNU*)
3901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3902*)
3903 ac_count=0
3904 $as_echo_n 0123456789 >"conftest.in"
3905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo 'EGREP' >> "conftest.nl"
3911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 as_fn_arith $ac_count + 1 && ac_count=$as_val
3914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_EGREP="$ac_path_EGREP"
3917 ac_path_EGREP_max=$ac_count
8fdb0857 3918 fi
5213506e
RW
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923esac
3924
3925 $ac_path_EGREP_found && break 3
3926 done
3927 done
3928 done
3929IFS=$as_save_IFS
3930 if test -z "$ac_cv_path_EGREP"; then
22e05272 3931 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
3932 fi
3933else
3934 ac_cv_path_EGREP=$EGREP
3935fi
3936
3937 fi
8fdb0857 3938fi
5213506e
RW
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3940$as_echo "$ac_cv_path_EGREP" >&6; }
3941 EGREP="$ac_cv_path_EGREP"
8fdb0857
BE
3942
3943
5213506e
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3945$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3946if ${ac_cv_header_stdc+:} false; then :
5213506e 3947 $as_echo_n "(cached) " >&6
8fdb0857 3948else
5213506e 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3950/* end confdefs.h. */
3951#include <stdlib.h>
3952#include <stdarg.h>
3953#include <string.h>
3954#include <float.h>
3955
3956int
3957main ()
3958{
3959
3960 ;
3961 return 0;
3962}
3963_ACEOF
5213506e 3964if ac_fn_c_try_compile "$LINENO"; then :
8fdb0857
BE
3965 ac_cv_header_stdc=yes
3966else
5213506e 3967 ac_cv_header_stdc=no
8fdb0857 3968fi
5213506e 3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdb0857
BE
3970
3971if test $ac_cv_header_stdc = yes; then
3972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3974/* end confdefs.h. */
3975#include <string.h>
3976
3977_ACEOF
3978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
3979 $EGREP "memchr" >/dev/null 2>&1; then :
3980
8fdb0857
BE
3981else
3982 ac_cv_header_stdc=no
3983fi
3984rm -f conftest*
3985
3986fi
3987
3988if test $ac_cv_header_stdc = yes; then
3989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
3991/* end confdefs.h. */
3992#include <stdlib.h>
3993
3994_ACEOF
3995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
3996 $EGREP "free" >/dev/null 2>&1; then :
3997
8fdb0857
BE
3998else
3999 ac_cv_header_stdc=no
4000fi
4001rm -f conftest*
4002
4003fi
4004
4005if test $ac_cv_header_stdc = yes; then
4006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 4007 if test "$cross_compiling" = yes; then :
8fdb0857
BE
4008 :
4009else
5213506e 4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
4011/* end confdefs.h. */
4012#include <ctype.h>
5213506e 4013#include <stdlib.h>
8fdb0857
BE
4014#if ((' ' & 0x0FF) == 0x020)
4015# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4016# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4017#else
4018# define ISLOWER(c) \
4019 (('a' <= (c) && (c) <= 'i') \
4020 || ('j' <= (c) && (c) <= 'r') \
4021 || ('s' <= (c) && (c) <= 'z'))
4022# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4023#endif
4024
4025#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4026int
4027main ()
4028{
4029 int i;
4030 for (i = 0; i < 256; i++)
4031 if (XOR (islower (i), ISLOWER (i))
4032 || toupper (i) != TOUPPER (i))
5213506e
RW
4033 return 2;
4034 return 0;
8fdb0857
BE
4035}
4036_ACEOF
5213506e 4037if ac_fn_c_try_run "$LINENO"; then :
8fdb0857 4038
5213506e
RW
4039else
4040 ac_cv_header_stdc=no
8fdb0857 4041fi
5213506e
RW
4042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4043 conftest.$ac_objext conftest.beam conftest.$ac_ext
8fdb0857 4044fi
5213506e 4045
8fdb0857
BE
4046fi
4047fi
5213506e
RW
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4049$as_echo "$ac_cv_header_stdc" >&6; }
8fdb0857
BE
4050if test $ac_cv_header_stdc = yes; then
4051
5213506e 4052$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8fdb0857
BE
4053
4054fi
4055
4056# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8fdb0857
BE
4057for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
5213506e
RW
4059do :
4060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4062"
22e05272 4063if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8fdb0857 4064 cat >>confdefs.h <<_ACEOF
5213506e 4065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8fdb0857
BE
4066_ACEOF
4067
4068fi
4069
4070done
4071
4072
8fdb0857 4073for ac_header in ctype.h stddef.h string.h stdio.h
5213506e
RW
4074do :
4075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4076ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22e05272 4077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8fdb0857 4078 cat >>confdefs.h <<_ACEOF
5213506e 4079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8fdb0857
BE
4080_ACEOF
4081
4082fi
4083
4084done
4085
4c4b3eb0 4086
4c4b3eb0 4087
c13e029b 4088inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
4c4b3eb0 4089
c13e029b
PB
4090acx_cv_header_stdint=stddef.h
4091acx_cv_header_stdint_kind="(already complete)"
4092for i in stdint.h $inttype_headers; do
4093 unset ac_cv_type_uintptr_t
4094 unset ac_cv_type_uintmax_t
4095 unset ac_cv_type_int_least32_t
4096 unset ac_cv_type_int_fast32_t
4097 unset ac_cv_type_uint64_t
4098 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
4099 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
4100#include <$i>
4101"
22e05272 4102if test "x$ac_cv_type_uintmax_t" = xyes; then :
c13e029b 4103 acx_cv_header_stdint=$i
4c4b3eb0 4104else
c13e029b
PB
4105 continue
4106fi
4c4b3eb0 4107
c13e029b
PB
4108 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
4109#include <$i>
4110"
22e05272 4111if test "x$ac_cv_type_uintptr_t" = xyes; then :
4c4b3eb0 4112
d72a3ac1 4113else
c13e029b 4114 acx_cv_header_stdint_kind="(mostly complete)"
4c4b3eb0
PB
4115fi
4116
c13e029b
PB
4117 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
4118#include <$i>
4119"
22e05272 4120if test "x$ac_cv_type_int_least32_t" = xyes; then :
c13e029b 4121
4c4b3eb0 4122else
c13e029b 4123 acx_cv_header_stdint_kind="(mostly complete)"
d72a3ac1 4124fi
695cd757 4125
c13e029b
PB
4126 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
4127#include <$i>
4128"
22e05272 4129if test "x$ac_cv_type_int_fast32_t" = xyes; then :
4c4b3eb0 4130
c13e029b
PB
4131else
4132 acx_cv_header_stdint_kind="(mostly complete)"
4133fi
4c4b3eb0 4134
c13e029b
PB
4135 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
4136#include <$i>
4137"
22e05272 4138if test "x$ac_cv_type_uint64_t" = xyes; then :
4c4b3eb0 4139
d72a3ac1 4140else
c13e029b
PB
4141 acx_cv_header_stdint_kind="(lacks uint64_t)"
4142fi
4c4b3eb0 4143
c13e029b
PB
4144 break
4145done
4146if test "$acx_cv_header_stdint" = stddef.h; then
4147 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4148 for i in stdint.h $inttype_headers; do
4149 unset ac_cv_type_uintptr_t
4150 unset ac_cv_type_uint32_t
4151 unset ac_cv_type_uint64_t
4152 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
4153 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
4154#include <$i>
4155"
22e05272 4156if test "x$ac_cv_type_uint32_t" = xyes; then :
c13e029b
PB
4157 acx_cv_header_stdint=$i
4158else
4159 continue
4c4b3eb0
PB
4160fi
4161
c13e029b
PB
4162 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
4163#include <$i>
4164"
22e05272 4165if test "x$ac_cv_type_uint64_t" = xyes; then :
4c4b3eb0 4166
c13e029b 4167fi
4c4b3eb0 4168
c13e029b
PB
4169 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
4170#include <$i>
4171"
22e05272 4172if test "x$ac_cv_type_uintptr_t" = xyes; then :
4c4b3eb0 4173
c13e029b 4174fi
4c4b3eb0 4175
c13e029b
PB
4176 break
4177 done
4178fi
4179if test "$acx_cv_header_stdint" = stddef.h; then
4180 acx_cv_header_stdint_kind="(u_intXX_t style)"
4181 for i in sys/types.h $inttype_headers; do
4182 unset ac_cv_type_u_int32_t
4183 unset ac_cv_type_u_int64_t
4184 $as_echo_n "looking for u_intXX_t types in $i, " >&6
4185 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
4186#include <$i>
4187"
22e05272 4188if test "x$ac_cv_type_u_int32_t" = xyes; then :
c13e029b 4189 acx_cv_header_stdint=$i
d72a3ac1 4190else
c13e029b
PB
4191 continue
4192fi
4c4b3eb0 4193
c13e029b
PB
4194 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
4195#include <$i>
4196"
22e05272 4197if test "x$ac_cv_type_u_int64_t" = xyes; then :
4c4b3eb0 4198
c13e029b 4199fi
4c4b3eb0 4200
c13e029b
PB
4201 break
4202 done
4c4b3eb0 4203fi
c13e029b
PB
4204if test "$acx_cv_header_stdint" = stddef.h; then
4205 acx_cv_header_stdint_kind="(using manual detection)"
4c4b3eb0 4206fi
4c4b3eb0 4207
c13e029b
PB
4208test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
4209test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
4210test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
4211test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
4212test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
4c4b3eb0 4213
c13e029b 4214# ----------------- Summarize what we found so far
4c4b3eb0 4215
c13e029b
PB
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
4217$as_echo_n "checking what to include in gstdint.h... " >&6; }
5213506e 4218
c13e029b
PB
4219case `$as_basename -- gstdint.h ||
4220$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
4221 Xgstdint.h : 'X\(//\)$' \| \
4222 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
4223$as_echo X/gstdint.h |
4224 sed '/^.*\/\([^/][^/]*\)\/*$/{
4225 s//\1/
4226 q
4227 }
4228 /^X\/\(\/\/\)$/{
4229 s//\1/
4230 q
4231 }
4232 /^X\/\(\/\).*/{
4233 s//\1/
4234 q
4235 }
4236 s/.*/./; q'` in
4237 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
4238$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4239 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
4240$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4241 *) ;;
4242esac
4c4b3eb0 4243
c13e029b
PB
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
4245$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
4c4b3eb0 4246
c13e029b 4247# ----------------- done included file, check C basic types --------
4c4b3eb0 4248
c13e029b
PB
4249# Lacking an uintptr_t? Test size of void *
4250case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
4251 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
4252# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4253# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4254# This bug is HP SR number 8606223364.
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4256$as_echo_n "checking size of void *... " >&6; }
22e05272 4257if ${ac_cv_sizeof_void_p+:} false; then :
c13e029b
PB
4258 $as_echo_n "(cached) " >&6
4259else
4260 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5213506e 4261
c13e029b
PB
4262else
4263 if test "$ac_cv_type_void_p" = yes; then
4264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4266as_fn_error 77 "cannot compute sizeof (void *)
4267See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
4268 else
4269 ac_cv_sizeof_void_p=0
4270 fi
4271fi
4c4b3eb0 4272
c13e029b
PB
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4275$as_echo "$ac_cv_sizeof_void_p" >&6; }
5213506e 4276
d72a3ac1
PB
4277
4278
4279cat >>confdefs.h <<_ACEOF
c13e029b 4280#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 4281_ACEOF
d72a3ac1 4282
c13e029b
PB
4283 ;;
4284esac
d72a3ac1 4285
c13e029b
PB
4286# Lacking an uint64_t? Test size of long
4287case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4288 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
4289# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4290# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4291# This bug is HP SR number 8606223364.
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4293$as_echo_n "checking size of long... " >&6; }
22e05272 4294if ${ac_cv_sizeof_long+:} false; then :
5213506e 4295 $as_echo_n "(cached) " >&6
4c4b3eb0 4296else
c13e029b 4297 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4c4b3eb0 4298
5213506e 4299else
c13e029b
PB
4300 if test "$ac_cv_type_long" = yes; then
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4303as_fn_error 77 "cannot compute sizeof (long)
4304See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
4305 else
4306 ac_cv_sizeof_long=0
4307 fi
4c4b3eb0 4308fi
5213506e 4309
c13e029b
PB
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4312$as_echo "$ac_cv_sizeof_long" >&6; }
5213506e
RW
4313
4314
d72a3ac1
PB
4315
4316cat >>confdefs.h <<_ACEOF
c13e029b 4317#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 4318_ACEOF
8fdb0857 4319
c13e029b
PB
4320 ;;
4321esac
8fdb0857 4322
c13e029b
PB
4323if test $acx_cv_header_stdint = stddef.h; then
4324 # Lacking a good header? Test size of everything and deduce all types.
4325 # The cast to long int works around a bug in the HP C Compiler
4326# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4327# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4328# This bug is HP SR number 8606223364.
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4330$as_echo_n "checking size of int... " >&6; }
22e05272 4331if ${ac_cv_sizeof_int+:} false; then :
c13e029b
PB
4332 $as_echo_n "(cached) " >&6
4333else
4334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5213506e 4335
c13e029b
PB
4336else
4337 if test "$ac_cv_type_int" = yes; then
4338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4340as_fn_error 77 "cannot compute sizeof (int)
4341See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
4342 else
4343 ac_cv_sizeof_int=0
4344 fi
4345fi
5213506e 4346
c13e029b
PB
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4349$as_echo "$ac_cv_sizeof_int" >&6; }
5213506e 4350
8fdb0857 4351
5213506e 4352
d72a3ac1 4353cat >>confdefs.h <<_ACEOF
c13e029b 4354#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
4355_ACEOF
4356
d72a3ac1 4357
c13e029b
PB
4358 # The cast to long int works around a bug in the HP C Compiler
4359# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4360# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4361# This bug is HP SR number 8606223364.
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4363$as_echo_n "checking size of short... " >&6; }
22e05272 4364if ${ac_cv_sizeof_short+:} false; then :
c13e029b
PB
4365 $as_echo_n "(cached) " >&6
4366else
4367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 4368
c13e029b
PB
4369else
4370 if test "$ac_cv_type_short" = yes; then
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4373as_fn_error 77 "cannot compute sizeof (short)
4374See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
4375 else
4376 ac_cv_sizeof_short=0
4377 fi
4378fi
d72a3ac1 4379
c13e029b
PB
4380fi
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4382$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
4383
4384
4385
c13e029b
PB
4386cat >>confdefs.h <<_ACEOF
4387#define SIZEOF_SHORT $ac_cv_sizeof_short
4388_ACEOF
d72a3ac1
PB
4389
4390
c13e029b
PB
4391 # The cast to long int works around a bug in the HP C Compiler
4392# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4393# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4394# This bug is HP SR number 8606223364.
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4396$as_echo_n "checking size of char... " >&6; }
22e05272 4397if ${ac_cv_sizeof_char+:} false; then :
c13e029b
PB
4398 $as_echo_n "(cached) " >&6
4399else
4400 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 4401
c13e029b
PB
4402else
4403 if test "$ac_cv_type_char" = yes; then
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4406as_fn_error 77 "cannot compute sizeof (char)
4407See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
4408 else
4409 ac_cv_sizeof_char=0
4410 fi
4411fi
d72a3ac1 4412
c13e029b
PB
4413fi
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4415$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
4416
4417
d72a3ac1 4418
8fdb0857 4419cat >>confdefs.h <<_ACEOF
c13e029b 4420#define SIZEOF_CHAR $ac_cv_sizeof_char
8fdb0857
BE
4421_ACEOF
4422
4423
5213506e 4424
c13e029b
PB
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
4426$as_echo_n "checking for type equivalent to int8_t... " >&6; }
4427 case "$ac_cv_sizeof_char" in
4428 1) acx_cv_type_int8_t=char ;;
22e05272 4429 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
4430 esac
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
4432$as_echo "$acx_cv_type_int8_t" >&6; }
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
4435$as_echo_n "checking for type equivalent to int16_t... " >&6; }
4436 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
4437 2:*) acx_cv_type_int16_t=int ;;
4438 *:2) acx_cv_type_int16_t=short ;;
22e05272 4439 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
4440 esac
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
4442$as_echo "$acx_cv_type_int16_t" >&6; }
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
4445$as_echo_n "checking for type equivalent to int32_t... " >&6; }
4446 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
4447 4:*) acx_cv_type_int32_t=int ;;
4448 *:4) acx_cv_type_int32_t=long ;;
22e05272 4449 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
4450 esac
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
4452$as_echo "$acx_cv_type_int32_t" >&6; }
8fdb0857 4453fi
8fdb0857 4454
c13e029b 4455# These tests are here to make the output prettier
d72a3ac1 4456
c13e029b
PB
4457if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
4458 case "$ac_cv_sizeof_long" in
4459 8) acx_cv_type_int64_t=long ;;
4460 esac
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
4462$as_echo_n "checking for type equivalent to int64_t... " >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
4464$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
4465fi
4466
4467# Now we can use the above types
4468
4469if test "$ac_cv_type_uintptr_t" != yes; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
4471$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
4472 case $ac_cv_sizeof_void_p in
4473 2) acx_cv_type_intptr_t=int16_t ;;
4474 4) acx_cv_type_intptr_t=int32_t ;;
4475 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 4476 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
4477 esac
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
4479$as_echo "$acx_cv_type_intptr_t" >&6; }
4480fi
d72a3ac1 4481
c13e029b 4482# ----------------- done all checks, emit header -------------
5213506e
RW
4483ac_config_commands="$ac_config_commands gstdint.h"
4484
4485
4486
4487
4488# Checks for typedefs, structures, and compiler characteristics.
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4490$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22e05272 4491if ${ac_cv_c_const+:} false; then :
5213506e 4492 $as_echo_n "(cached) " >&6
8fdb0857 4493else
5213506e 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857 4495/* end confdefs.h. */
8fdb0857 4496
8fdb0857
BE
4497int
4498main ()
4499{
22e05272 4500
5213506e 4501#ifndef __cplusplus
22e05272 4502 /* Ultrix mips cc rejects this sort of thing. */
5213506e 4503 typedef int charset[2];
22e05272 4504 const charset cs = { 0, 0 };
5213506e
RW
4505 /* SunOS 4.1.1 cc rejects this. */
4506 char const *const *pcpcc;
4507 char **ppc;
4508 /* NEC SVR4.0.2 mips cc rejects this. */
4509 struct point {int x, y;};
4510 static struct point const zero = {0,0};
4511 /* AIX XL C 1.02.0.0 rejects this.
4512 It does not let you subtract one const X* pointer from another in
4513 an arm of an if-expression whose if-part is not a constant
4514 expression */
4515 const char *g = "string";
4516 pcpcc = &g + (g ? g-g : 0);
4517 /* HPUX 7.0 cc rejects these. */
4518 ++pcpcc;
4519 ppc = (char**) pcpcc;
4520 pcpcc = (char const *const *) ppc;
22e05272
JM
4521 { /* SCO 3.2v4 cc rejects this sort of thing. */
4522 char tx;
4523 char *t = &tx;
5213506e
RW
4524 char const *s = 0 ? (char *) 0 : (char const *) 0;
4525
4526 *t++ = 0;
4527 if (s) return 0;
4528 }
4529 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4530 int x[] = {25, 17};
4531 const int *foo = &x[0];
4532 ++foo;
4533 }
4534 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4535 typedef const int *iptr;
4536 iptr p = 0;
4537 ++p;
4538 }
22e05272 4539 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5213506e 4540 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22e05272
JM
4541 struct s { int j; const int *ap[3]; } bx;
4542 struct s *b = &bx; b->j = 5;
5213506e
RW
4543 }
4544 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4545 const int foo = 10;
4546 if (!foo) return 0;
4547 }
4548 return !cs[0] && !zero.x;
4549#endif
8fdb0857
BE
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
5213506e
RW
4555if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_c_const=yes
8fdb0857 4557else
5213506e
RW
4558 ac_cv_c_const=no
4559fi
4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4563$as_echo "$ac_cv_c_const" >&6; }
4564if test $ac_cv_c_const = no; then
4565
4566$as_echo "#define const /**/" >>confdefs.h
8fdb0857 4567
8fdb0857 4568fi
8fdb0857 4569
5213506e 4570ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22e05272 4571if test "x$ac_cv_type_off_t" = xyes; then :
8fdb0857 4572
5213506e 4573else
8fdb0857 4574
5213506e
RW
4575cat >>confdefs.h <<_ACEOF
4576#define off_t long int
8fdb0857 4577_ACEOF
8fdb0857 4578
8fdb0857 4579fi
5213506e
RW
4580
4581# The cast to long int works around a bug in the HP C Compiler
4582# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4583# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4584# This bug is HP SR number 8606223364.
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4586$as_echo_n "checking size of int... " >&6; }
22e05272 4587if ${ac_cv_sizeof_int+:} false; then :
5213506e 4588 $as_echo_n "(cached) " >&6
8fdb0857 4589else
5213506e 4590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8fdb0857 4591
5213506e
RW
4592else
4593 if test "$ac_cv_type_int" = yes; then
4594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4596as_fn_error 77 "cannot compute sizeof (int)
4597See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
4598 else
4599 ac_cv_sizeof_int=0
4600 fi
8fdb0857 4601fi
5213506e 4602
8fdb0857 4603fi
5213506e
RW
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4605$as_echo "$ac_cv_sizeof_int" >&6; }
8fdb0857 4606
8fdb0857 4607
5213506e
RW
4608
4609cat >>confdefs.h <<_ACEOF
4610#define SIZEOF_INT $ac_cv_sizeof_int
8fdb0857 4611_ACEOF
8fdb0857 4612
8fdb0857 4613
5213506e
RW
4614# The cast to long int works around a bug in the HP C Compiler
4615# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4616# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4617# This bug is HP SR number 8606223364.
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4619$as_echo_n "checking size of long... " >&6; }
22e05272 4620if ${ac_cv_sizeof_long+:} false; then :
5213506e 4621 $as_echo_n "(cached) " >&6
8fdb0857 4622else
5213506e 4623 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8fdb0857 4624
8fdb0857 4625else
5213506e
RW
4626 if test "$ac_cv_type_long" = yes; then
4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4629as_fn_error 77 "cannot compute sizeof (long)
4630See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
4631 else
4632 ac_cv_sizeof_long=0
4633 fi
8fdb0857 4634fi
5213506e 4635
8fdb0857 4636fi
5213506e
RW
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4638$as_echo "$ac_cv_sizeof_long" >&6; }
4639
4640
4641
8fdb0857
BE
4642cat >>confdefs.h <<_ACEOF
4643#define SIZEOF_LONG $ac_cv_sizeof_long
4644_ACEOF
4645
4646
4647
4648# Checks for library functions.
5213506e
RW
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4650$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4651if ${ac_cv_header_stdc+:} false; then :
5213506e 4652 $as_echo_n "(cached) " >&6
8fdb0857 4653else
5213506e 4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
4655/* end confdefs.h. */
4656#include <stdlib.h>
4657#include <stdarg.h>
4658#include <string.h>
4659#include <float.h>
4660
4661int
4662main ()
4663{
4664
4665 ;
4666 return 0;
4667}
4668_ACEOF
5213506e 4669if ac_fn_c_try_compile "$LINENO"; then :
8fdb0857
BE
4670 ac_cv_header_stdc=yes
4671else
5213506e 4672 ac_cv_header_stdc=no
8fdb0857 4673fi
5213506e 4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdb0857
BE
4675
4676if test $ac_cv_header_stdc = yes; then
4677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
4679/* end confdefs.h. */
4680#include <string.h>
4681
4682_ACEOF
4683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
4684 $EGREP "memchr" >/dev/null 2>&1; then :
4685
8fdb0857
BE
4686else
4687 ac_cv_header_stdc=no
4688fi
4689rm -f conftest*
4690
4691fi
4692
4693if test $ac_cv_header_stdc = yes; then
4694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
4696/* end confdefs.h. */
4697#include <stdlib.h>
4698
4699_ACEOF
4700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
4701 $EGREP "free" >/dev/null 2>&1; then :
4702
8fdb0857
BE
4703else
4704 ac_cv_header_stdc=no
4705fi
4706rm -f conftest*
4707
4708fi
4709
4710if test $ac_cv_header_stdc = yes; then
4711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 4712 if test "$cross_compiling" = yes; then :
8fdb0857
BE
4713 :
4714else
5213506e 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8fdb0857
BE
4716/* end confdefs.h. */
4717#include <ctype.h>
5213506e 4718#include <stdlib.h>
8fdb0857
BE
4719#if ((' ' & 0x0FF) == 0x020)
4720# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4721# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4722#else
4723# define ISLOWER(c) \
4724 (('a' <= (c) && (c) <= 'i') \
4725 || ('j' <= (c) && (c) <= 'r') \
4726 || ('s' <= (c) && (c) <= 'z'))
4727# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4728#endif
4729
4730#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4731int
4732main ()
4733{
4734 int i;
4735 for (i = 0; i < 256; i++)
4736 if (XOR (islower (i), ISLOWER (i))
4737 || toupper (i) != TOUPPER (i))
5213506e
RW
4738 return 2;
4739 return 0;
8fdb0857
BE
4740}
4741_ACEOF
5213506e 4742if ac_fn_c_try_run "$LINENO"; then :
8fdb0857 4743
5213506e
RW
4744else
4745 ac_cv_header_stdc=no
8fdb0857 4746fi
5213506e
RW
4747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4748 conftest.$ac_objext conftest.beam conftest.$ac_ext
8fdb0857 4749fi
5213506e 4750
8fdb0857
BE
4751fi
4752fi
5213506e
RW
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4754$as_echo "$ac_cv_header_stdc" >&6; }
8fdb0857
BE
4755if test $ac_cv_header_stdc = yes; then
4756
5213506e 4757$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8fdb0857
BE
4758
4759fi
4760
4761
5213506e
RW
4762# Check whether --enable-maintainer-mode was given.
4763if test "${enable_maintainer_mode+set}" = set; then :
4764 enableval=$enable_maintainer_mode;
8fdb0857
BE
4765else
4766 enable_maintainer_mode=no
5213506e
RW
4767fi
4768
8fdb0857
BE
4769
4770if test "x$enable_maintainer_mode" = xno; then
4771 MAINT='#'
4772else
4773 MAINT=
4774fi
4775
4776
f808a484 4777# Make sure we can run config.sub.
5213506e 4778$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 4779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4782$as_echo_n "checking build system type... " >&6; }
22e05272 4783if ${ac_cv_build+:} false; then :
5213506e
RW
4784 $as_echo_n "(cached) " >&6
4785else
4786 ac_build_alias=$build_alias
4787test "x$ac_build_alias" = x &&
4788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4789test "x$ac_build_alias" = x &&
22e05272 4790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 4791ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 4792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
4793
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4796$as_echo "$ac_cv_build" >&6; }
4797case $ac_cv_build in
4798*-*-*) ;;
22e05272 4799*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 4800esac
f808a484 4801build=$ac_cv_build
5213506e
RW
4802ac_save_IFS=$IFS; IFS='-'
4803set x $ac_cv_build
4804shift
4805build_cpu=$1
4806build_vendor=$2
4807shift; shift
4808# Remember, the first character of IFS is used to create $*,
4809# except with old shells:
4810build_os=$*
4811IFS=$ac_save_IFS
4812case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
f808a484
MM
4813
4814
5213506e
RW
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4816$as_echo_n "checking host system type... " >&6; }
22e05272 4817if ${ac_cv_host+:} false; then :
5213506e 4818 $as_echo_n "(cached) " >&6
f808a484 4819else
5213506e
RW
4820 if test "x$host_alias" = x; then
4821 ac_cv_host=$ac_cv_build
4822else
4823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 4824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 4825fi
f808a484
MM
4826
4827fi
5213506e
RW
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4829$as_echo "$ac_cv_host" >&6; }
4830case $ac_cv_host in
4831*-*-*) ;;
22e05272 4832*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 4833esac
f808a484 4834host=$ac_cv_host
5213506e
RW
4835ac_save_IFS=$IFS; IFS='-'
4836set x $ac_cv_host
4837shift
4838host_cpu=$1
4839host_vendor=$2
4840shift; shift
4841# Remember, the first character of IFS is used to create $*,
4842# except with old shells:
4843host_os=$*
4844IFS=$ac_save_IFS
4845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f808a484
MM
4846
4847
5213506e
RW
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4849$as_echo_n "checking target system type... " >&6; }
22e05272 4850if ${ac_cv_target+:} false; then :
5213506e
RW
4851 $as_echo_n "(cached) " >&6
4852else
4853 if test "x$target_alias" = x; then
4854 ac_cv_target=$ac_cv_host
f808a484 4855else
5213506e 4856 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 4857 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 4858fi
f808a484
MM
4859
4860fi
5213506e
RW
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4862$as_echo "$ac_cv_target" >&6; }
4863case $ac_cv_target in
4864*-*-*) ;;
22e05272 4865*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 4866esac
f808a484 4867target=$ac_cv_target
5213506e
RW
4868ac_save_IFS=$IFS; IFS='-'
4869set x $ac_cv_target
4870shift
4871target_cpu=$1
4872target_vendor=$2
4873shift; shift
4874# Remember, the first character of IFS is used to create $*,
4875# except with old shells:
4876target_os=$*
4877IFS=$ac_save_IFS
4878case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
f808a484
MM
4879
4880
4881# The aliases save the names the user supplied, while $host etc.
4882# will get canonicalized.
4883test -n "$target_alias" &&
4884 test "$program_prefix$program_suffix$program_transform_name" = \
4885 NONENONEs,x,x, &&
4886 program_prefix=${target_alias}-
4887
79b87c74
MM
4888# Default decimal format
4889# If you change the defaults here, be sure to change them in the GCC directory also
5213506e
RW
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decimal floating point" >&5
4891$as_echo_n "checking for decimal floating point... " >&6; }
f4dae9fc
AK
4892
4893
5213506e
RW
4894# Check whether --enable-decimal-float was given.
4895if test "${enable_decimal_float+set}" = set; then :
4896 enableval=$enable_decimal_float;
79b87c74 4897 case $enable_decimal_float in
cc0ae0ca 4898 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
22e05272 4899 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
5213506e 4900Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
79b87c74
MM
4901 esac
4902
4903else
4904
4905 case $target in
996b42ef 4906 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
1c1d2d8c 4907 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
996b42ef 4908 i?86*-*-mingw* | x86_64*-*-mingw* | \
01680d98 4909 i?86*-*-cygwin* | x86_64*-*-cygwin*)
79b87c74
MM
4910 enable_decimal_float=yes
4911 ;;
4912 *)
84f47d20
AS
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4914$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
79b87c74
MM
4915 enable_decimal_float=no
4916 ;;
4917 esac
4918
5213506e
RW
4919fi
4920
79b87c74
MM
4921
4922# x86's use BID format instead of DPD
f4dae9fc
AK
4923case x$enable_decimal_float in
4924 xyes)
4925 case $target in
4926 i?86*-*-* | x86_64*-*-*)
4927 enable_decimal_float=bid
4928 ;;
4929 *)
4930 enable_decimal_float=dpd
4931 ;;
4932 esac
cc0ae0ca 4933 default_decimal_float=$enable_decimal_float
f4dae9fc
AK
4934 ;;
4935 xno)
4936 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4937 # dependency on libdecnumber.
cc0ae0ca 4938 default_decimal_float=dpd
f4dae9fc
AK
4939 ;;
4940esac
4941
4942
4943
79b87c74 4944
cc0ae0ca
L
4945# Use default_decimal_float for dependency.
4946enable_decimal_float=$default_decimal_float
4947
b1237e13
TJB
4948# If BID is being used, additional objects should be linked in.
4949if test x$enable_decimal_float = xbid; then
4950 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
4951else
4952 ADDITIONAL_OBJS=
4953fi
4954
5213506e
RW
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decimal_float" >&5
4956$as_echo "$enable_decimal_float" >&6; }
79b87c74
MM
4957
4958
b1237e13 4959
5213506e
RW
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4961$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22e05272 4962if ${ac_cv_c_bigendian+:} false; then :
5213506e 4963 $as_echo_n "(cached) " >&6
79b87c74 4964else
5213506e
RW
4965 ac_cv_c_bigendian=unknown
4966 # See if we're dealing with a universal compiler.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969#ifndef __APPLE_CC__
4970 not a universal capable compiler
4971 #endif
4972 typedef int dummy;
4973
4974_ACEOF
4975if ac_fn_c_try_compile "$LINENO"; then :
4976
4977 # Check for potential -arch flags. It is not universal unless
4978 # there are at least two -arch flags with different values.
4979 ac_arch=
4980 ac_prev=
4981 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4982 if test -n "$ac_prev"; then
4983 case $ac_word in
4984 i?86 | x86_64 | ppc | ppc64)
4985 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4986 ac_arch=$ac_word
4987 else
4988 ac_cv_c_bigendian=universal
4989 break
4990 fi
4991 ;;
4992 esac
4993 ac_prev=
4994 elif test "x$ac_word" = "x-arch"; then
4995 ac_prev=arch
4996 fi
4997 done
4998fi
4999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 if test $ac_cv_c_bigendian = unknown; then
5001 # See if sys/param.h defines the BYTE_ORDER macro.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79b87c74
MM
5003/* end confdefs.h. */
5004#include <sys/types.h>
5213506e 5005 #include <sys/param.h>
79b87c74
MM
5006
5007int
5008main ()
5009{
5213506e
RW
5010#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5011 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5012 && LITTLE_ENDIAN)
5013 bogus endian macros
5014 #endif
79b87c74
MM
5015
5016 ;
5017 return 0;
5018}
5019_ACEOF
5213506e 5020if ac_fn_c_try_compile "$LINENO"; then :
79b87c74 5021 # It does; now see whether it defined to BIG_ENDIAN or not.
5213506e 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79b87c74
MM
5023/* end confdefs.h. */
5024#include <sys/types.h>
5213506e 5025 #include <sys/param.h>
79b87c74
MM
5026
5027int
5028main ()
5029{
5030#if BYTE_ORDER != BIG_ENDIAN
5213506e
RW
5031 not big endian
5032 #endif
79b87c74
MM
5033
5034 ;
5035 return 0;
5036}
5037_ACEOF
5213506e 5038if ac_fn_c_try_compile "$LINENO"; then :
79b87c74
MM
5039 ac_cv_c_bigendian=yes
5040else
5213506e 5041 ac_cv_c_bigendian=no
79b87c74 5042fi
5213506e
RW
5043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044fi
5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 fi
5047 if test $ac_cv_c_bigendian = unknown; then
5048 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h. */
5051#include <limits.h>
79b87c74 5052
5213506e
RW
5053int
5054main ()
5055{
5056#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5057 bogus endian macros
5058 #endif
5059
5060 ;
5061 return 0;
5062}
79b87c74 5063_ACEOF
5213506e
RW
5064if ac_fn_c_try_compile "$LINENO"; then :
5065 # It does; now see whether it defined to _BIG_ENDIAN or not.
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79b87c74 5067/* end confdefs.h. */
5213506e
RW
5068#include <limits.h>
5069
79b87c74
MM
5070int
5071main ()
5072{
5213506e
RW
5073#ifndef _BIG_ENDIAN
5074 not big endian
5075 #endif
5076
79b87c74
MM
5077 ;
5078 return 0;
5079}
5080_ACEOF
5213506e 5081if ac_fn_c_try_compile "$LINENO"; then :
79b87c74 5082 ac_cv_c_bigendian=yes
5213506e
RW
5083else
5084 ac_cv_c_bigendian=no
79b87c74 5085fi
5213506e 5086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79b87c74 5087fi
5213506e
RW
5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 fi
5090 if test $ac_cv_c_bigendian = unknown; then
5091 # Compile a test program.
5092 if test "$cross_compiling" = yes; then :
5093 # Try to guess by grepping values from an object file.
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h. */
5096short int ascii_mm[] =
5097 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5098 short int ascii_ii[] =
5099 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5100 int use_ascii (int i) {
5101 return ascii_mm[i] + ascii_ii[i];
5102 }
5103 short int ebcdic_ii[] =
5104 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5105 short int ebcdic_mm[] =
5106 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5107 int use_ebcdic (int i) {
5108 return ebcdic_mm[i] + ebcdic_ii[i];
5109 }
5110 extern int foo;
79b87c74 5111
5213506e
RW
5112int
5113main ()
5114{
5115return use_ascii (foo) == use_ebcdic (foo);
5116 ;
5117 return 0;
5118}
79b87c74 5119_ACEOF
5213506e
RW
5120if ac_fn_c_try_compile "$LINENO"; then :
5121 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5122 ac_cv_c_bigendian=yes
5123 fi
5124 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5125 if test "$ac_cv_c_bigendian" = unknown; then
5126 ac_cv_c_bigendian=no
5127 else
5128 # finding both strings is unlikely to happen, but who knows?
5129 ac_cv_c_bigendian=unknown
5130 fi
5131 fi
5132fi
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79b87c74 5136/* end confdefs.h. */
5213506e 5137$ac_includes_default
79b87c74
MM
5138int
5139main ()
5140{
5213506e
RW
5141
5142 /* Are we little or big endian? From Harbison&Steele. */
5143 union
5144 {
5145 long int l;
5146 char c[sizeof (long int)];
5147 } u;
5148 u.l = 1;
5149 return u.c[sizeof (long int) - 1] == 1;
5150
5151 ;
5152 return 0;
79b87c74
MM
5153}
5154_ACEOF
5213506e 5155if ac_fn_c_try_run "$LINENO"; then :
79b87c74
MM
5156 ac_cv_c_bigendian=no
5157else
5213506e 5158 ac_cv_c_bigendian=yes
79b87c74 5159fi
5213506e
RW
5160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5161 conftest.$ac_objext conftest.beam conftest.$ac_ext
79b87c74 5162fi
5213506e
RW
5163
5164 fi
79b87c74 5165fi
5213506e
RW
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5167$as_echo "$ac_cv_c_bigendian" >&6; }
5168 case $ac_cv_c_bigendian in #(
5169 yes)
5170 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5171;; #(
5172 no)
5173 ;; #(
5174 universal)
79b87c74 5175
5213506e
RW
5176$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5177
5178 ;; #(
5179 *)
22e05272 5180 as_fn_error $? "unknown endianness
5213506e
RW
5181 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5182 esac
79b87c74
MM
5183
5184
459260ec
DM
5185# Enable --enable-host-shared.
5186# Check whether --enable-host-shared was given.
5187if test "${enable_host_shared+set}" = set; then :
5188 enableval=$enable_host_shared; PICFLAG=-fPIC
5189else
5190 PICFLAG=
5191fi
5192
5193
5194
b3d16040
L
5195# Enable Intel CET on Intel CET enabled host if jit is enabled.
5196 # Check whether --enable-cet was given.
5197if test "${enable_cet+set}" = set; then :
5198 enableval=$enable_cet;
5199 case "$enableval" in
5200 yes|no|auto) ;;
5201 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5202 esac
5203
5204else
5205 enable_cet=auto
5206fi
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5210$as_echo_n "checking for CET support... " >&6; }
5211
5212case "$host" in
5213 i[34567]86-*-linux* | x86_64-*-linux*)
5214 may_have_cet=yes
9051b548 5215 cet_save_CFLAGS="$CFLAGS"
b3d16040
L
5216 CFLAGS="$CFLAGS -fcf-protection"
5217 case "$enable_cet" in
5218 auto)
5219 # Check if target supports multi-byte NOPs
5220 # and if assembler supports CET insn.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h. */
5223
5224int
5225main ()
5226{
5227
5228#if !defined(__SSE2__)
5229#error target does not support multi-byte NOPs
5230#else
5231asm ("setssbsy");
5232#endif
5233
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_compile "$LINENO"; then :
5239 enable_cet=yes
5240else
5241 enable_cet=no
5242fi
5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 ;;
5245 yes)
5246 # Check if assembler supports CET.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248/* end confdefs.h. */
5249
5250int
5251main ()
5252{
5253asm ("setssbsy");
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258if ac_fn_c_try_compile "$LINENO"; then :
5259
5260else
5261 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ;;
5265 esac
9051b548 5266 CFLAGS="$cet_save_CFLAGS"
b3d16040
L
5267 ;;
5268 *)
5269 may_have_cet=no
5270 enable_cet=no
5271 ;;
5272esac
5273
9051b548 5274cet_save_CFLAGS="$CFLAGS"
8d286dd1 5275CFLAGS="$CFLAGS -fcf-protection=none"
9051b548 5276cet_save_LDFLAGS="$LDFLAGS"
8d286dd1 5277LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
b3d16040 5278if test x$may_have_cet = xyes; then
8d286dd1
L
5279 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h. */
5282
5283int
5284main ()
5285{
5286return 0;
5287 ;
5288 return 0;
5289}
5290_ACEOF
5291if ac_fn_c_try_link "$LINENO"; then :
5292 may_have_cet=yes
5293else
5294 may_have_cet=no
5295fi
5296rm -f core conftest.err conftest.$ac_objext \
5297 conftest$ac_exeext conftest.$ac_ext
5298fi
5299
5300if test x$may_have_cet = xyes; then
5301 if test x$cross_compiling = xno; then
5302 if test "$cross_compiling" = yes; then :
b3d16040
L
5303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5305as_fn_error $? "cannot run test program while cross compiling
5306See \`config.log' for more details" "$LINENO" 5; }
5307else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h. */
5310
5311static void
5312foo (void)
5313{
5314}
5315
5316static void
5317__attribute__ ((noinline, noclone))
5318xxx (void (*f) (void))
5319{
5320 f ();
5321}
5322
5323static void
5324__attribute__ ((noinline, noclone))
5325bar (void)
5326{
5327 xxx (foo);
5328}
5329
5330int
5331main ()
5332{
5333 bar ();
5334 return 0;
5335}
5336
5337_ACEOF
5338if ac_fn_c_try_run "$LINENO"; then :
5339 have_cet=no
5340else
5341 have_cet=yes
5342fi
5343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5344 conftest.$ac_objext conftest.beam conftest.$ac_ext
5345fi
5346
8d286dd1
L
5347 if test x$enable_cet = xno -a x$have_cet = xyes; then
5348 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5349 fi
b3d16040 5350 fi
8d286dd1
L
5351else
5352 # Enable CET in cross compiler if possible so that it will run on both
5353 # CET and non-CET hosts.
5354 have_cet=yes
b3d16040
L
5355fi
5356if test x$enable_cet = xyes; then
5357 CET_HOST_FLAGS="-fcf-protection"
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5359$as_echo "yes" >&6; }
5360else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362$as_echo "no" >&6; }
5363fi
9051b548
L
5364CFLAGS="$cet_save_CFLAGS"
5365LDFLAGS="$cet_save_LDFLAGS"
b3d16040
L
5366
5367case x$enable_languages in
5368*jit*)
5369 ;;
5370*)
5371 CET_HOST_FLAGS=
5372 ;;
5373esac
5374
5375
5376
8fdb0857
BE
5377# Output.
5378
5213506e 5379ac_config_headers="$ac_config_headers config.h:config.in"
8fdb0857 5380
5213506e 5381ac_config_files="$ac_config_files Makefile"
8fdb0857
BE
5382
5383cat >confcache <<\_ACEOF
5384# This file is a shell script that caches the results of configure
5385# tests run on this system so they can be shared between configure
5386# scripts and configure runs, see configure's option --config-cache.
5387# It is not useful on other systems. If it contains results you don't
5388# want to keep, you may remove or edit it.
5389#
5390# config.status only pays attention to the cache file if you give it
5391# the --recheck option to rerun configure.
5392#
5393# `ac_cv_env_foo' variables (set or unset) will be overridden when
5394# loading this file, other *unset* `ac_cv_foo' will be assigned the
5395# following values.
5396
5397_ACEOF
5398
5399# The following way of writing the cache mishandles newlines in values,
5400# but we know of no workaround that is simple, portable, and efficient.
5213506e 5401# So, we kill variables containing newlines.
8fdb0857
BE
5402# Ultrix sh set writes to stderr and can't be redirected directly,
5403# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
5404(
5405 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5406 eval ac_val=\$$ac_var
5407 case $ac_val in #(
5408 *${as_nl}*)
5409 case $ac_var in #(
5410 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5411$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5412 esac
5413 case $ac_var in #(
5414 _ | IFS | as_nl) ;; #(
5415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5416 *) { eval $ac_var=; unset $ac_var;} ;;
5417 esac ;;
5418 esac
5419 done
5420
8fdb0857 5421 (set) 2>&1 |
5213506e
RW
5422 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5423 *${as_nl}ac_space=\ *)
5424 # `set' does not quote correctly, so add quotes: double-quote
5425 # substitution turns \\\\ into \\, and sed turns \\ into \.
8fdb0857
BE
5426 sed -n \
5427 "s/'/'\\\\''/g;
5428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 5429 ;; #(
8fdb0857
BE
5430 *)
5431 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 5432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8fdb0857 5433 ;;
5213506e
RW
5434 esac |
5435 sort
5436) |
8fdb0857 5437 sed '
5213506e 5438 /^ac_cv_env_/b end
8fdb0857 5439 t clear
5213506e 5440 :clear
8fdb0857
BE
5441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5442 t end
5213506e
RW
5443 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5444 :end' >>confcache
5445if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5446 if test -w "$cache_file"; then
22e05272 5447 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5449$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
5450 if test ! -f "$cache_file" || test -h "$cache_file"; then
5451 cat confcache >"$cache_file"
5452 else
5453 case $cache_file in #(
5454 */* | ?:*)
5455 mv -f confcache "$cache_file"$$ &&
5456 mv -f "$cache_file"$$ "$cache_file" ;; #(
5457 *)
5458 mv -f confcache "$cache_file" ;;
5459 esac
5460 fi
5461 fi
8fdb0857 5462 else
5213506e
RW
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5464$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8fdb0857
BE
5465 fi
5466fi
5467rm -f confcache
5468
5469test "x$prefix" = xNONE && prefix=$ac_default_prefix
5470# Let make expand exec_prefix.
5471test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5472
8fdb0857
BE
5473DEFS=-DHAVE_CONFIG_H
5474
5475ac_libobjs=
5476ac_ltlibobjs=
22e05272 5477U=
8fdb0857
BE
5478for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5479 # 1. Remove the extension, and $U if already installed.
5213506e
RW
5480 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5481 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5482 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5483 # will be set to the directory where LIBOBJS objects are built.
5484 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5485 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8fdb0857
BE
5486done
5487LIBOBJS=$ac_libobjs
5488
5489LTLIBOBJS=$ac_ltlibobjs
5490
5491
5492
5213506e 5493
22e05272 5494: "${CONFIG_STATUS=./config.status}"
5213506e 5495ac_write_fail=0
8fdb0857
BE
5496ac_clean_files_save=$ac_clean_files
5497ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5499$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5500as_write_fail=0
5501cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8fdb0857
BE
5502#! $SHELL
5503# Generated by $as_me.
5504# Run this file to recreate the current configuration.
5505# Compiler output produced by configure, useful for debugging
5506# configure, is in config.log if it exists.
5507
5508debug=false
5509ac_cs_recheck=false
5510ac_cs_silent=false
8fdb0857 5511
5213506e
RW
5512SHELL=\${CONFIG_SHELL-$SHELL}
5513export SHELL
5514_ASEOF
5515cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5516## -------------------- ##
5517## M4sh Initialization. ##
5518## -------------------- ##
5519
5520# Be more Bourne compatible
5521DUALCASE=1; export DUALCASE # for MKS sh
5522if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8fdb0857
BE
5523 emulate sh
5524 NULLCMD=:
5213506e 5525 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8fdb0857
BE
5526 # is contrary to our usage. Disable this feature.
5527 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
5528 setopt NO_GLOB_SUBST
5529else
5530 case `(set -o) 2>/dev/null` in #(
5531 *posix*) :
5532 set -o posix ;; #(
5533 *) :
5534 ;;
5535esac
8fdb0857 5536fi
8fdb0857 5537
5213506e
RW
5538
5539as_nl='
5540'
5541export as_nl
5542# Printing a long string crashes Solaris 7 /usr/bin/printf.
5543as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5544as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5545as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5546# Prefer a ksh shell builtin over an external printf program on Solaris,
5547# but without wasting forks for bash or zsh.
5548if test -z "$BASH_VERSION$ZSH_VERSION" \
5549 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5550 as_echo='print -r --'
5551 as_echo_n='print -rn --'
5552elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5553 as_echo='printf %s\n'
5554 as_echo_n='printf %s'
5555else
5556 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5557 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5558 as_echo_n='/usr/ucb/echo -n'
5559 else
5560 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5561 as_echo_n_body='eval
5562 arg=$1;
5563 case $arg in #(
5564 *"$as_nl"*)
5565 expr "X$arg" : "X\\(.*\\)$as_nl";
5566 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5567 esac;
5568 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5569 '
5570 export as_echo_n_body
5571 as_echo_n='sh -c $as_echo_n_body as_echo'
5572 fi
5573 export as_echo_body
5574 as_echo='sh -c $as_echo_body as_echo'
5575fi
5576
5577# The user is always right.
5578if test "${PATH_SEPARATOR+set}" != set; then
5579 PATH_SEPARATOR=:
5580 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5581 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5582 PATH_SEPARATOR=';'
5583 }
8fdb0857
BE
5584fi
5585
5586
5213506e
RW
5587# IFS
5588# We need space, tab and new line, in precisely that order. Quoting is
5589# there to prevent editors from complaining about space-tab.
5590# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5591# splitting by setting IFS to empty value.)
5592IFS=" "" $as_nl"
5593
5594# Find who we are. Look in the path if we contain no directory separator.
22e05272 5595as_myself=
5213506e
RW
5596case $0 in #((
5597 *[\\/]* ) as_myself=$0 ;;
5598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5604 done
5605IFS=$as_save_IFS
5606
5607 ;;
5608esac
5609# We did not find ourselves, most probably we were run as `sh COMMAND'
5610# in which case we are not to be found in the path.
5611if test "x$as_myself" = x; then
5612 as_myself=$0
5613fi
5614if test ! -f "$as_myself"; then
5615 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5616 exit 1
5617fi
5618
5619# Unset variables that we do not need and which cause bugs (e.g. in
5620# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5621# suppresses any "Segmentation fault" message there. '((' could
5622# trigger a bug in pdksh 5.2.14.
5623for as_var in BASH_ENV ENV MAIL MAILPATH
5624do eval test x\${$as_var+set} = xset \
5625 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5626done
8fdb0857
BE
5627PS1='$ '
5628PS2='> '
5629PS4='+ '
5630
5631# NLS nuisances.
5213506e
RW
5632LC_ALL=C
5633export LC_ALL
5634LANGUAGE=C
5635export LANGUAGE
5636
5637# CDPATH.
5638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5639
5640
22e05272
JM
5641# as_fn_error STATUS ERROR [LINENO LOG_FD]
5642# ----------------------------------------
5213506e
RW
5643# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5644# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 5645# script with STATUS, using 1 if that was 0.
5213506e
RW
5646as_fn_error ()
5647{
22e05272
JM
5648 as_status=$1; test $as_status -eq 0 && as_status=1
5649 if test "$4"; then
5650 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5651 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8fdb0857 5652 fi
22e05272 5653 $as_echo "$as_me: error: $2" >&2
5213506e
RW
5654 as_fn_exit $as_status
5655} # as_fn_error
5656
5657
5658# as_fn_set_status STATUS
5659# -----------------------
5660# Set $? to STATUS, without forking.
5661as_fn_set_status ()
5662{
5663 return $1
5664} # as_fn_set_status
5665
5666# as_fn_exit STATUS
5667# -----------------
5668# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5669as_fn_exit ()
5670{
5671 set +e
5672 as_fn_set_status $1
5673 exit $1
5674} # as_fn_exit
5675
5676# as_fn_unset VAR
5677# ---------------
5678# Portably unset VAR.
5679as_fn_unset ()
5680{
5681 { eval $1=; unset $1;}
5682}
5683as_unset=as_fn_unset
5684# as_fn_append VAR VALUE
5685# ----------------------
5686# Append the text in VALUE to the end of the definition contained in VAR. Take
5687# advantage of any shell optimizations that allow amortized linear growth over
5688# repeated appends, instead of the typical quadratic growth present in naive
5689# implementations.
5690if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5691 eval 'as_fn_append ()
5692 {
5693 eval $1+=\$2
5694 }'
5695else
5696 as_fn_append ()
5697 {
5698 eval $1=\$$1\$2
5699 }
5700fi # as_fn_append
5701
5702# as_fn_arith ARG...
5703# ------------------
5704# Perform arithmetic evaluation on the ARGs, and store the result in the
5705# global $as_val. Take advantage of shells that can avoid forks. The arguments
5706# must be portable across $(()) and expr.
5707if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5708 eval 'as_fn_arith ()
5709 {
5710 as_val=$(( $* ))
5711 }'
5712else
5713 as_fn_arith ()
5714 {
5715 as_val=`expr "$@" || test $? -eq 1`
5716 }
5717fi # as_fn_arith
8fdb0857 5718
5213506e
RW
5719
5720if expr a : '\(a\)' >/dev/null 2>&1 &&
5721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8fdb0857
BE
5722 as_expr=expr
5723else
5724 as_expr=false
5725fi
5726
5213506e 5727if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8fdb0857
BE
5728 as_basename=basename
5729else
5730 as_basename=false
5731fi
5732
5213506e
RW
5733if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5734 as_dirname=dirname
5735else
5736 as_dirname=false
5737fi
8fdb0857 5738
5213506e 5739as_me=`$as_basename -- "$0" ||
8fdb0857
BE
5740$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5741 X"$0" : 'X\(//\)$' \| \
5213506e
RW
5742 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5743$as_echo X/"$0" |
5744 sed '/^.*\/\([^/][^/]*\)\/*$/{
5745 s//\1/
5746 q
5747 }
5748 /^X\/\(\/\/\)$/{
5749 s//\1/
5750 q
5751 }
5752 /^X\/\(\/\).*/{
5753 s//\1/
5754 q
5755 }
5756 s/.*/./; q'`
8fdb0857 5757
8fdb0857
BE
5758# Avoid depending upon Character Ranges.
5759as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5761as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5762as_cr_digits='0123456789'
5763as_cr_alnum=$as_cr_Letters$as_cr_digits
5764
5213506e
RW
5765ECHO_C= ECHO_N= ECHO_T=
5766case `echo -n x` in #(((((
5767-n*)
5768 case `echo 'xy\c'` in
5769 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5770 xy) ECHO_C='\c';;
5771 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5772 ECHO_T=' ';;
5773 esac;;
5774*)
5775 ECHO_N='-n';;
5776esac
5777
5778rm -f conf$$ conf$$.exe conf$$.file
5779if test -d conf$$.dir; then
5780 rm -f conf$$.dir/conf$$.file
5781else
5782 rm -f conf$$.dir
5783 mkdir conf$$.dir 2>/dev/null
5784fi
5785if (echo >conf$$.file) 2>/dev/null; then
5786 if ln -s conf$$.file conf$$ 2>/dev/null; then
5787 as_ln_s='ln -s'
5788 # ... but there are two gotchas:
5789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 5791 # In both cases, we have to default to `cp -pR'.
5213506e 5792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 5793 as_ln_s='cp -pR'
5213506e
RW
5794 elif ln conf$$.file conf$$ 2>/dev/null; then
5795 as_ln_s=ln
8fdb0857 5796 else
22e05272 5797 as_ln_s='cp -pR'
8fdb0857 5798 fi
5213506e 5799else
22e05272 5800 as_ln_s='cp -pR'
8fdb0857 5801fi
5213506e
RW
5802rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5803rmdir conf$$.dir 2>/dev/null
8fdb0857
BE
5804
5805
5213506e
RW
5806# as_fn_mkdir_p
5807# -------------
5808# Create "$as_dir" as a directory, including parents if necessary.
5809as_fn_mkdir_p ()
5810{
8fdb0857 5811
5213506e
RW
5812 case $as_dir in #(
5813 -*) as_dir=./$as_dir;;
8fdb0857 5814 esac
5213506e
RW
5815 test -d "$as_dir" || eval $as_mkdir_p || {
5816 as_dirs=
5817 while :; do
5818 case $as_dir in #(
5819 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5820 *) as_qdir=$as_dir;;
5821 esac
5822 as_dirs="'$as_qdir' $as_dirs"
5823 as_dir=`$as_dirname -- "$as_dir" ||
5824$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5825 X"$as_dir" : 'X\(//\)[^/]' \| \
5826 X"$as_dir" : 'X\(//\)$' \| \
5827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5828$as_echo X"$as_dir" |
5829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5830 s//\1/
5831 q
5832 }
5833 /^X\(\/\/\)[^/].*/{
5834 s//\1/
5835 q
5836 }
5837 /^X\(\/\/\)$/{
5838 s//\1/
5839 q
5840 }
5841 /^X\(\/\).*/{
5842 s//\1/
5843 q
5844 }
5845 s/.*/./; q'`
5846 test -d "$as_dir" && break
5847 done
5848 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 5849 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8fdb0857 5850
8fdb0857 5851
5213506e 5852} # as_fn_mkdir_p
8fdb0857 5853if mkdir -p . 2>/dev/null; then
5213506e 5854 as_mkdir_p='mkdir -p "$as_dir"'
8fdb0857
BE
5855else
5856 test -d ./-p && rmdir ./-p
5857 as_mkdir_p=false
5858fi
5859
22e05272
JM
5860
5861# as_fn_executable_p FILE
5862# -----------------------
5863# Test if FILE is an executable regular file.
5864as_fn_executable_p ()
5865{
5866 test -f "$1" && test -x "$1"
5867} # as_fn_executable_p
5868as_test_x='test -x'
5869as_executable_p=as_fn_executable_p
8fdb0857
BE
5870
5871# Sed expression to map a string onto a valid CPP name.
5872as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5873
5874# Sed expression to map a string onto a valid variable name.
5875as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5876
5877
8fdb0857 5878exec 6>&1
5213506e
RW
5879## ----------------------------------- ##
5880## Main body of $CONFIG_STATUS script. ##
5881## ----------------------------------- ##
5882_ASEOF
5883test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8fdb0857 5884
5213506e
RW
5885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5886# Save the log message, to keep $0 and so on meaningful, and to
8fdb0857 5887# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
5888# values after options handling.
5889ac_log="
8fdb0857 5890This file was extended by libdecnumber $as_me , which was
22e05272 5891generated by GNU Autoconf 2.69. Invocation command line was
8fdb0857
BE
5892
5893 CONFIG_FILES = $CONFIG_FILES
5894 CONFIG_HEADERS = $CONFIG_HEADERS
5895 CONFIG_LINKS = $CONFIG_LINKS
5896 CONFIG_COMMANDS = $CONFIG_COMMANDS
5897 $ $0 $@
5898
5213506e
RW
5899on `(hostname || uname -n) 2>/dev/null | sed 1q`
5900"
5901
8fdb0857
BE
5902_ACEOF
5903
5213506e
RW
5904case $ac_config_files in *"
5905"*) set x $ac_config_files; shift; ac_config_files=$*;;
5906esac
8fdb0857 5907
5213506e
RW
5908case $ac_config_headers in *"
5909"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5910esac
8fdb0857 5911
8fdb0857 5912
5213506e
RW
5913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5914# Files that config.status was made for.
5915config_files="$ac_config_files"
5916config_headers="$ac_config_headers"
5917config_commands="$ac_config_commands"
8fdb0857 5918
5213506e 5919_ACEOF
8fdb0857 5920
5213506e 5921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8fdb0857 5922ac_cs_usage="\
5213506e
RW
5923\`$as_me' instantiates files and other configuration actions
5924from templates according to the current configuration. Unless the files
5925and actions are specified as TAGs, all are instantiated by default.
8fdb0857 5926
5213506e 5927Usage: $0 [OPTION]... [TAG]...
8fdb0857
BE
5928
5929 -h, --help print this help, then exit
5213506e 5930 -V, --version print version number and configuration settings, then exit
22e05272 5931 --config print configuration, then exit
5213506e
RW
5932 -q, --quiet, --silent
5933 do not print progress messages
8fdb0857
BE
5934 -d, --debug don't remove temporary files
5935 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
5936 --file=FILE[:TEMPLATE]
5937 instantiate the configuration file FILE
5938 --header=FILE[:TEMPLATE]
5939 instantiate the configuration header FILE
8fdb0857
BE
5940
5941Configuration files:
5942$config_files
5943
5944Configuration headers:
5945$config_headers
5946
4c4b3eb0
PB
5947Configuration commands:
5948$config_commands
5949
5213506e 5950Report bugs to <gcc-bugs@gcc.gnu.org>."
8fdb0857 5951
5213506e
RW
5952_ACEOF
5953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 5954ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8fdb0857
BE
5955ac_cs_version="\\
5956libdecnumber config.status
22e05272
JM
5957configured by $0, generated by GNU Autoconf 2.69,
5958 with options \\"\$ac_cs_config\\"
8fdb0857 5959
22e05272 5960Copyright (C) 2012 Free Software Foundation, Inc.
8fdb0857
BE
5961This config.status script is free software; the Free Software Foundation
5962gives unlimited permission to copy, distribute and modify it."
5213506e
RW
5963
5964ac_pwd='$ac_pwd'
5965srcdir='$srcdir'
5966test -n "\$AWK" || AWK=awk
8fdb0857
BE
5967_ACEOF
5968
5213506e
RW
5969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5970# The default lists apply if the user does not specify any file.
8fdb0857
BE
5971ac_need_defaults=:
5972while test $# != 0
5973do
5974 case $1 in
22e05272 5975 --*=?*)
5213506e
RW
5976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8fdb0857
BE
5978 ac_shift=:
5979 ;;
22e05272
JM
5980 --*=)
5981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5982 ac_optarg=
5983 ac_shift=:
5984 ;;
5213506e 5985 *)
8fdb0857
BE
5986 ac_option=$1
5987 ac_optarg=$2
5988 ac_shift=shift
5989 ;;
8fdb0857
BE
5990 esac
5991
5992 case $ac_option in
5993 # Handling of the options.
8fdb0857
BE
5994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5995 ac_cs_recheck=: ;;
5213506e
RW
5996 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5997 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
5998 --config | --confi | --conf | --con | --co | --c )
5999 $as_echo "$ac_cs_config"; exit ;;
5213506e 6000 --debug | --debu | --deb | --de | --d | -d )
8fdb0857
BE
6001 debug=: ;;
6002 --file | --fil | --fi | --f )
6003 $ac_shift
5213506e
RW
6004 case $ac_optarg in
6005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 6006 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
6007 esac
6008 as_fn_append CONFIG_FILES " '$ac_optarg'"
8fdb0857
BE
6009 ac_need_defaults=false;;
6010 --header | --heade | --head | --hea )
6011 $ac_shift
5213506e
RW
6012 case $ac_optarg in
6013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6014 esac
6015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8fdb0857 6016 ac_need_defaults=false;;
5213506e
RW
6017 --he | --h)
6018 # Conflict between --help and --header
22e05272 6019 as_fn_error $? "ambiguous option: \`$1'
5213506e
RW
6020Try \`$0 --help' for more information.";;
6021 --help | --hel | -h )
6022 $as_echo "$ac_cs_usage"; exit ;;
8fdb0857
BE
6023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6025 ac_cs_silent=: ;;
6026
6027 # This is an error.
22e05272 6028 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 6029Try \`$0 --help' for more information." ;;
8fdb0857 6030
5213506e
RW
6031 *) as_fn_append ac_config_targets " $1"
6032 ac_need_defaults=false ;;
8fdb0857
BE
6033
6034 esac
6035 shift
6036done
6037
6038ac_configure_extra_args=
6039
6040if $ac_cs_silent; then
6041 exec 6>/dev/null
6042 ac_configure_extra_args="$ac_configure_extra_args --silent"
6043fi
6044
6045_ACEOF
5213506e 6046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8fdb0857 6047if \$ac_cs_recheck; then
22e05272 6048 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
6049 shift
6050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6051 CONFIG_SHELL='$SHELL'
6052 export CONFIG_SHELL
6053 exec "\$@"
8fdb0857
BE
6054fi
6055
6056_ACEOF
5213506e
RW
6057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6058exec 5>>config.log
6059{
6060 echo
6061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6062## Running $as_me. ##
6063_ASBOX
6064 $as_echo "$ac_log"
6065} >&5
8fdb0857 6066
5213506e
RW
6067_ACEOF
6068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4c4b3eb0 6069#
5213506e 6070# INIT-COMMANDS
4c4b3eb0
PB
6071#
6072
c13e029b
PB
6073GCC="$GCC"
6074CC="$CC"
6075acx_cv_header_stdint="$acx_cv_header_stdint"
6076acx_cv_type_int8_t="$acx_cv_type_int8_t"
6077acx_cv_type_int16_t="$acx_cv_type_int16_t"
6078acx_cv_type_int32_t="$acx_cv_type_int32_t"
6079acx_cv_type_int64_t="$acx_cv_type_int64_t"
6080acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
6081ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
6082ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
6083ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
6084ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
6085ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
6086ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
6087ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 6088ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
8fdb0857
BE
6089
6090
4c4b3eb0
PB
6091_ACEOF
6092
5213506e 6093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8fdb0857 6094
5213506e 6095# Handling of arguments.
8fdb0857
BE
6096for ac_config_target in $ac_config_targets
6097do
5213506e
RW
6098 case $ac_config_target in
6099 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
6100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6101 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6102
22e05272 6103 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8fdb0857
BE
6104 esac
6105done
6106
5213506e 6107
8fdb0857
BE
6108# If the user did not use the arguments to specify the items to instantiate,
6109# then the envvar interface is used. Set only those that are not.
6110# We use the long form for the default assignment because of an extremely
6111# bizarre bug on SunOS 4.1.3.
6112if $ac_need_defaults; then
6113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4c4b3eb0 6115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8fdb0857
BE
6116fi
6117
6118# Have a temporary directory for convenience. Make it in the build tree
5213506e 6119# simply because there is no reason against having it here, and in addition,
8fdb0857 6120# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
6121# Hook for its removal unless debugging.
6122# Note that there is a small window in which the directory will not be cleaned:
6123# after its creation but before its name has been assigned to `$tmp'.
8fdb0857
BE
6124$debug ||
6125{
22e05272 6126 tmp= ac_tmp=
5213506e 6127 trap 'exit_status=$?
22e05272
JM
6128 : "${ac_tmp:=$tmp}"
6129 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
6130' 0
6131 trap 'as_fn_exit 1' 1 2 13 15
8fdb0857 6132}
8fdb0857
BE
6133# Create a (secure) tmp directory for tmp files.
6134
6135{
5213506e 6136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 6137 test -d "$tmp"
8fdb0857
BE
6138} ||
6139{
5213506e
RW
6140 tmp=./conf$$-$RANDOM
6141 (umask 077 && mkdir "$tmp")
22e05272
JM
6142} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6143ac_tmp=$tmp
8fdb0857 6144
5213506e
RW
6145# Set up the scripts for CONFIG_FILES section.
6146# No need to generate them if there are no CONFIG_FILES.
6147# This happens for instance with `./config.status config.h'.
6148if test -n "$CONFIG_FILES"; then
8fdb0857 6149
8fdb0857 6150
5213506e
RW
6151ac_cr=`echo X | tr X '\015'`
6152# On cygwin, bash can eat \r inside `` if the user requested igncr.
6153# But we know of no other shell where ac_cr would be empty at this
6154# point, so we can use a bashism as a fallback.
6155if test "x$ac_cr" = x; then
6156 eval ac_cr=\$\'\\r\'
6157fi
6158ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6159if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 6160 ac_cs_awk_cr='\\r'
5213506e
RW
6161else
6162 ac_cs_awk_cr=$ac_cr
6163fi
8fdb0857 6164
22e05272 6165echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8fdb0857
BE
6166_ACEOF
6167
8fdb0857 6168
5213506e
RW
6169{
6170 echo "cat >conf$$subs.awk <<_ACEOF" &&
6171 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6172 echo "_ACEOF"
6173} >conf$$subs.sh ||
22e05272
JM
6174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6175ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
6176ac_delim='%!_!# '
6177for ac_last_try in false false false false false :; do
6178 . ./conf$$subs.sh ||
22e05272 6179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
6180
6181 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6182 if test $ac_delim_n = $ac_delim_num; then
6183 break
6184 elif $ac_last_try; then
22e05272 6185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8fdb0857 6186 else
5213506e
RW
6187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6188 fi
6189done
6190rm -f conf$$subs.sh
6191
6192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 6193cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
6194_ACEOF
6195sed -n '
6196h
6197s/^/S["/; s/!.*/"]=/
6198p
6199g
6200s/^[^!]*!//
6201:repl
6202t repl
6203s/'"$ac_delim"'$//
6204t delim
6205:nl
6206h
22e05272 6207s/\(.\{148\}\)..*/\1/
5213506e
RW
6208t more1
6209s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6210p
6211n
6212b repl
6213:more1
6214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6215p
6216g
6217s/.\{148\}//
6218t nl
6219:delim
6220h
22e05272 6221s/\(.\{148\}\)..*/\1/
5213506e
RW
6222t more2
6223s/["\\]/\\&/g; s/^/"/; s/$/"/
6224p
6225b
6226:more2
6227s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6228p
6229g
6230s/.\{148\}//
6231t delim
6232' <conf$$subs.awk | sed '
6233/^[^""]/{
6234 N
6235 s/\n//
6236}
6237' >>$CONFIG_STATUS || ac_write_fail=1
6238rm -f conf$$subs.awk
6239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6240_ACAWK
22e05272 6241cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
6242 for (key in S) S_is_set[key] = 1
6243 FS = "\a"
8fdb0857 6244
5213506e
RW
6245}
6246{
6247 line = $ 0
6248 nfields = split(line, field, "@")
6249 substed = 0
6250 len = length(field[1])
6251 for (i = 2; i < nfields; i++) {
6252 key = field[i]
6253 keylen = length(key)
6254 if (S_is_set[key]) {
6255 value = S[key]
6256 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6257 len += length(value) + length(field[++i])
6258 substed = 1
6259 } else
6260 len += 1 + keylen
6261 }
8fdb0857 6262
5213506e
RW
6263 print line
6264}
6265
6266_ACAWK
6267_ACEOF
6268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6269if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6270 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8fdb0857 6271else
5213506e 6272 cat
22e05272
JM
6273fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6274 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e 6275_ACEOF
8fdb0857 6276
22e05272
JM
6277# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6278# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
6279# trailing colons and then remove the whole line if VPATH becomes empty
6280# (actually we leave an empty line to preserve line numbers).
6281if test "x$srcdir" = x.; then
22e05272
JM
6282 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6283h
6284s///
6285s/^/:/
6286s/[ ]*$/:/
6287s/:\$(srcdir):/:/g
6288s/:\${srcdir}:/:/g
6289s/:@srcdir@:/:/g
6290s/^:*//
5213506e 6291s/:*$//
22e05272
JM
6292x
6293s/\(=[ ]*\).*/\1/
6294G
6295s/\n//
5213506e
RW
6296s/^[^=]*=[ ]*$//
6297}'
6298fi
8fdb0857 6299
5213506e
RW
6300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6301fi # test -n "$CONFIG_FILES"
8fdb0857 6302
5213506e
RW
6303# Set up the scripts for CONFIG_HEADERS section.
6304# No need to generate them if there are no CONFIG_HEADERS.
6305# This happens for instance with `./config.status Makefile'.
6306if test -n "$CONFIG_HEADERS"; then
22e05272 6307cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5213506e
RW
6308BEGIN {
6309_ACEOF
8fdb0857 6310
5213506e
RW
6311# Transform confdefs.h into an awk script `defines.awk', embedded as
6312# here-document in config.status, that substitutes the proper values into
6313# config.h.in to produce config.h.
8fdb0857 6314
5213506e
RW
6315# Create a delimiter string that does not exist in confdefs.h, to ease
6316# handling of long lines.
6317ac_delim='%!_!# '
6318for ac_last_try in false false :; do
22e05272
JM
6319 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6320 if test -z "$ac_tt"; then
5213506e
RW
6321 break
6322 elif $ac_last_try; then
22e05272 6323 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8fdb0857 6324 else
5213506e 6325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8fdb0857 6326 fi
8fdb0857 6327done
5213506e
RW
6328
6329# For the awk script, D is an array of macro values keyed by name,
6330# likewise P contains macro parameters if any. Preserve backslash
6331# newline sequences.
6332
6333ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6334sed -n '
6335s/.\{148\}/&'"$ac_delim"'/g
6336t rset
6337:rset
6338s/^[ ]*#[ ]*define[ ][ ]*/ /
6339t def
6340d
6341:def
6342s/\\$//
6343t bsnl
6344s/["\\]/\\&/g
6345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6346D["\1"]=" \3"/p
6347s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6348d
6349:bsnl
6350s/["\\]/\\&/g
6351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6352D["\1"]=" \3\\\\\\n"\\/p
6353t cont
6354s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6355t cont
6356d
6357:cont
6358n
6359s/.\{148\}/&'"$ac_delim"'/g
6360t clear
6361:clear
6362s/\\$//
6363t bsnlc
6364s/["\\]/\\&/g; s/^/"/; s/$/"/p
6365d
6366:bsnlc
6367s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6368b cont
6369' <confdefs.h | sed '
6370s/'"$ac_delim"'/"\\\
6371"/g' >>$CONFIG_STATUS || ac_write_fail=1
6372
6373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6374 for (key in D) D_is_set[key] = 1
6375 FS = "\a"
6376}
6377/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6378 line = \$ 0
6379 split(line, arg, " ")
6380 if (arg[1] == "#") {
6381 defundef = arg[2]
6382 mac1 = arg[3]
6383 } else {
6384 defundef = substr(arg[1], 2)
6385 mac1 = arg[2]
6386 }
6387 split(mac1, mac2, "(") #)
6388 macro = mac2[1]
6389 prefix = substr(line, 1, index(line, defundef) - 1)
6390 if (D_is_set[macro]) {
6391 # Preserve the white space surrounding the "#".
6392 print prefix "define", macro P[macro] D[macro]
6393 next
6394 } else {
6395 # Replace #undef with comments. This is necessary, for example,
6396 # in the case of _POSIX_SOURCE, which is predefined and required
6397 # on some systems where configure will not decide to define it.
6398 if (defundef == "undef") {
6399 print "/*", prefix defundef, macro, "*/"
6400 next
6401 }
6402 }
6403}
6404{ print }
6405_ACAWK
8fdb0857 6406_ACEOF
5213506e 6407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 6408 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5213506e 6409fi # test -n "$CONFIG_HEADERS"
8fdb0857 6410
8fdb0857 6411
5213506e
RW
6412eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6413shift
6414for ac_tag
6415do
6416 case $ac_tag in
6417 :[FHLC]) ac_mode=$ac_tag; continue;;
6418 esac
6419 case $ac_mode$ac_tag in
6420 :[FHL]*:*);;
22e05272 6421 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
6422 :[FH]-) ac_tag=-:-;;
6423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8fdb0857 6424 esac
5213506e
RW
6425 ac_save_IFS=$IFS
6426 IFS=:
6427 set x $ac_tag
6428 IFS=$ac_save_IFS
6429 shift
6430 ac_file=$1
6431 shift
8fdb0857 6432
5213506e
RW
6433 case $ac_mode in
6434 :L) ac_source=$1;;
6435 :[FH])
6436 ac_file_inputs=
6437 for ac_f
6438 do
6439 case $ac_f in
22e05272 6440 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
6441 *) # Look for the file first in the build tree, then in the source tree
6442 # (if the path is not absolute). The absolute path cannot be DOS-style,
6443 # because $ac_f cannot contain `:'.
6444 test -f "$ac_f" ||
6445 case $ac_f in
6446 [\\/$]*) false;;
6447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6448 esac ||
22e05272 6449 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8fdb0857 6450 esac
5213506e
RW
6451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6452 as_fn_append ac_file_inputs " '$ac_f'"
6453 done
8fdb0857 6454
5213506e
RW
6455 # Let's still pretend it is `configure' which instantiates (i.e., don't
6456 # use $as_me), people would be surprised to read:
6457 # /* config.h. Generated by config.status. */
6458 configure_input='Generated from '`
6459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6460 `' by configure.'
6461 if test x"$ac_file" != x-; then
6462 configure_input="$ac_file. $configure_input"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6464$as_echo "$as_me: creating $ac_file" >&6;}
6465 fi
6466 # Neutralize special characters interpreted by sed in replacement strings.
6467 case $configure_input in #(
6468 *\&* | *\|* | *\\* )
6469 ac_sed_conf_input=`$as_echo "$configure_input" |
6470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6471 *) ac_sed_conf_input=$configure_input;;
6472 esac
8fdb0857 6473
5213506e 6474 case $ac_tag in
22e05272
JM
6475 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
6477 esac
6478 ;;
6479 esac
8fdb0857 6480
5213506e 6481 ac_dir=`$as_dirname -- "$ac_file" ||
8fdb0857
BE
6482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6483 X"$ac_file" : 'X\(//\)[^/]' \| \
6484 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
6485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6486$as_echo X"$ac_file" |
6487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6488 s//\1/
6489 q
6490 }
6491 /^X\(\/\/\)[^/].*/{
6492 s//\1/
6493 q
6494 }
6495 /^X\(\/\/\)$/{
6496 s//\1/
6497 q
6498 }
6499 /^X\(\/\).*/{
6500 s//\1/
6501 q
6502 }
6503 s/.*/./; q'`
6504 as_dir="$ac_dir"; as_fn_mkdir_p
4c4b3eb0
PB
6505 ac_builddir=.
6506
5213506e
RW
6507case "$ac_dir" in
6508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6509*)
6510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6511 # A ".." for each directory in $ac_dir_suffix.
6512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6513 case $ac_top_builddir_sub in
6514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6516 esac ;;
6517esac
6518ac_abs_top_builddir=$ac_pwd
6519ac_abs_builddir=$ac_pwd$ac_dir_suffix
6520# for backward compatibility:
6521ac_top_builddir=$ac_top_build_prefix
4c4b3eb0
PB
6522
6523case $srcdir in
5213506e 6524 .) # We are building in place.
4c4b3eb0 6525 ac_srcdir=.
5213506e
RW
6526 ac_top_srcdir=$ac_top_builddir_sub
6527 ac_abs_top_srcdir=$ac_pwd ;;
6528 [\\/]* | ?:[\\/]* ) # Absolute name.
4c4b3eb0 6529 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
6530 ac_top_srcdir=$srcdir
6531 ac_abs_top_srcdir=$srcdir ;;
6532 *) # Relative name.
6533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6534 ac_top_srcdir=$ac_top_build_prefix$srcdir
6535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4c4b3eb0 6536esac
5213506e 6537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4c4b3eb0 6538
5213506e
RW
6539
6540 case $ac_mode in
6541 :F)
6542 #
6543 # CONFIG_FILE
6544 #
6545
6546_ACEOF
6547
6548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6549# If the template does not know about datarootdir, expand it.
6550# FIXME: This hack should be removed a few years after 2.60.
6551ac_datarootdir_hack=; ac_datarootdir_seen=
6552ac_sed_dataroot='
6553/datarootdir/ {
6554 p
6555 q
6556}
6557/@datadir@/p
6558/@docdir@/p
6559/@infodir@/p
6560/@localedir@/p
6561/@mandir@/p'
6562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6563*datarootdir*) ac_datarootdir_seen=yes;;
6564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6567_ACEOF
6568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6569 ac_datarootdir_hack='
6570 s&@datadir@&$datadir&g
6571 s&@docdir@&$docdir&g
6572 s&@infodir@&$infodir&g
6573 s&@localedir@&$localedir&g
6574 s&@mandir@&$mandir&g
6575 s&\\\${datarootdir}&$datarootdir&g' ;;
4c4b3eb0 6576esac
5213506e
RW
6577_ACEOF
6578
6579# Neutralize VPATH when `$srcdir' = `.'.
6580# Shell code in configure.ac might set extrasub.
6581# FIXME: do we really want to maintain this feature?
6582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6583ac_sed_extra="$ac_vpsub
6584$extrasub
6585_ACEOF
6586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6587:t
6588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6589s|@configure_input@|$ac_sed_conf_input|;t t
6590s&@top_builddir@&$ac_top_builddir_sub&;t t
6591s&@top_build_prefix@&$ac_top_build_prefix&;t t
6592s&@srcdir@&$ac_srcdir&;t t
6593s&@abs_srcdir@&$ac_abs_srcdir&;t t
6594s&@top_srcdir@&$ac_top_srcdir&;t t
6595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6596s&@builddir@&$ac_builddir&;t t
6597s&@abs_builddir@&$ac_abs_builddir&;t t
6598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6599$ac_datarootdir_hack
6600"
22e05272
JM
6601eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6602 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
6603
6604test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
6605 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6606 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6607 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 6609which seems to be undefined. Please make sure it is defined" >&5
5213506e 6610$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 6611which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 6612
22e05272 6613 rm -f "$ac_tmp/stdin"
5213506e 6614 case $ac_file in
22e05272
JM
6615 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6616 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 6617 esac \
22e05272 6618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
6619 ;;
6620 :H)
6621 #
6622 # CONFIG_HEADER
6623 #
6624 if test x"$ac_file" != x-; then
6625 {
6626 $as_echo "/* $configure_input */" \
22e05272
JM
6627 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6628 } >"$ac_tmp/config.h" \
6629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6630 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5213506e
RW
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6632$as_echo "$as_me: $ac_file is unchanged" >&6;}
6633 else
6634 rm -f "$ac_file"
22e05272
JM
6635 mv "$ac_tmp/config.h" "$ac_file" \
6636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
6637 fi
6638 else
6639 $as_echo "/* $configure_input */" \
22e05272
JM
6640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6641 || as_fn_error $? "could not create -" "$LINENO" 5
5213506e
RW
6642 fi
6643 ;;
4c4b3eb0 6644
5213506e
RW
6645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6646$as_echo "$as_me: executing $ac_file commands" >&6;}
6647 ;;
6648 esac
4c4b3eb0 6649
5213506e
RW
6650
6651 case $ac_file$ac_mode in
6652 "gstdint.h":C)
c13e029b
PB
6653if test "$GCC" = yes; then
6654 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
6655else
6656 echo "/* generated for $CC */" > tmp-stdint.h
6657fi
4c4b3eb0 6658
c13e029b
PB
6659sed 's/^ *//' >> tmp-stdint.h <<EOF
6660
6661 #ifndef GCC_GENERATED_STDINT_H
6662 #define GCC_GENERATED_STDINT_H 1
6663
6664 #include <sys/types.h>
4c4b3eb0 6665EOF
4c4b3eb0 6666
c13e029b
PB
6667if test "$acx_cv_header_stdint" != stdint.h; then
6668 echo "#include <stddef.h>" >> tmp-stdint.h
6669fi
6670if test "$acx_cv_header_stdint" != stddef.h; then
6671 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
6672fi
6673
6674sed 's/^ *//' >> tmp-stdint.h <<EOF
6675 /* glibc uses these symbols as guards to prevent redefinitions. */
6676 #ifdef __int8_t_defined
6677 #define _INT8_T
6678 #define _INT16_T
6679 #define _INT32_T
6680 #endif
6681 #ifdef __uint32_t_defined
6682 #define _UINT32_T
6683 #endif
6684
6685EOF
6686
6687# ----------------- done header, emit basic int types -------------
6688if test "$acx_cv_header_stdint" = stddef.h; then
6689 sed 's/^ *//' >> tmp-stdint.h <<EOF
6690
6691 #ifndef _UINT8_T
6692 #define _UINT8_T
6693 #ifndef __uint8_t_defined
6694 #define __uint8_t_defined
b9497ab5 6695 #ifndef uint8_t
c13e029b
PB
6696 typedef unsigned $acx_cv_type_int8_t uint8_t;
6697 #endif
6698 #endif
b9497ab5 6699 #endif
c13e029b
PB
6700
6701 #ifndef _UINT16_T
6702 #define _UINT16_T
6703 #ifndef __uint16_t_defined
6704 #define __uint16_t_defined
b9497ab5 6705 #ifndef uint16_t
c13e029b
PB
6706 typedef unsigned $acx_cv_type_int16_t uint16_t;
6707 #endif
6708 #endif
b9497ab5 6709 #endif
c13e029b
PB
6710
6711 #ifndef _UINT32_T
6712 #define _UINT32_T
6713 #ifndef __uint32_t_defined
6714 #define __uint32_t_defined
b9497ab5 6715 #ifndef uint32_t
c13e029b
PB
6716 typedef unsigned $acx_cv_type_int32_t uint32_t;
6717 #endif
6718 #endif
b9497ab5 6719 #endif
c13e029b
PB
6720
6721 #ifndef _INT8_T
6722 #define _INT8_T
6723 #ifndef __int8_t_defined
6724 #define __int8_t_defined
b9497ab5 6725 #ifndef int8_t
c13e029b
PB
6726 typedef $acx_cv_type_int8_t int8_t;
6727 #endif
6728 #endif
b9497ab5 6729 #endif
c13e029b
PB
6730
6731 #ifndef _INT16_T
6732 #define _INT16_T
6733 #ifndef __int16_t_defined
6734 #define __int16_t_defined
b9497ab5 6735 #ifndef int16_t
c13e029b
PB
6736 typedef $acx_cv_type_int16_t int16_t;
6737 #endif
6738 #endif
b9497ab5 6739 #endif
c13e029b
PB
6740
6741 #ifndef _INT32_T
6742 #define _INT32_T
6743 #ifndef __int32_t_defined
6744 #define __int32_t_defined
b9497ab5 6745 #ifndef int32_t
c13e029b
PB
6746 typedef $acx_cv_type_int32_t int32_t;
6747 #endif
6748 #endif
b9497ab5 6749 #endif
c13e029b
PB
6750EOF
6751elif test "$ac_cv_type_u_int32_t" = yes; then
6752 sed 's/^ *//' >> tmp-stdint.h <<EOF
6753
6754 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
6755 #ifndef _INT8_T
6756 #define _INT8_T
6757 #endif
6758 #ifndef _INT16_T
6759 #define _INT16_T
6760 #endif
6761 #ifndef _INT32_T
6762 #define _INT32_T
6763 #endif
6764
6765 #ifndef _UINT8_T
6766 #define _UINT8_T
6767 #ifndef __uint8_t_defined
6768 #define __uint8_t_defined
b9497ab5 6769 #ifndef uint8_t
c13e029b
PB
6770 typedef u_int8_t uint8_t;
6771 #endif
6772 #endif
b9497ab5 6773 #endif
c13e029b
PB
6774
6775 #ifndef _UINT16_T
6776 #define _UINT16_T
6777 #ifndef __uint16_t_defined
6778 #define __uint16_t_defined
b9497ab5 6779 #ifndef uint16_t
c13e029b
PB
6780 typedef u_int16_t uint16_t;
6781 #endif
6782 #endif
b9497ab5 6783 #endif
c13e029b
PB
6784
6785 #ifndef _UINT32_T
6786 #define _UINT32_T
6787 #ifndef __uint32_t_defined
6788 #define __uint32_t_defined
b9497ab5 6789 #ifndef uint32_t
c13e029b
PB
6790 typedef u_int32_t uint32_t;
6791 #endif
6792 #endif
b9497ab5 6793 #endif
c13e029b
PB
6794EOF
6795else
6796 sed 's/^ *//' >> tmp-stdint.h <<EOF
6797
6798 /* Some systems have guard macros to prevent redefinitions, define them. */
6799 #ifndef _INT8_T
6800 #define _INT8_T
6801 #endif
6802 #ifndef _INT16_T
6803 #define _INT16_T
6804 #endif
6805 #ifndef _INT32_T
6806 #define _INT32_T
6807 #endif
6808 #ifndef _UINT8_T
6809 #define _UINT8_T
6810 #endif
6811 #ifndef _UINT16_T
6812 #define _UINT16_T
6813 #endif
6814 #ifndef _UINT32_T
6815 #define _UINT32_T
6816 #endif
6817EOF
6818fi
6819
6820# ------------- done basic int types, emit int64_t types ------------
6821if test "$ac_cv_type_uint64_t" = yes; then
6822 sed 's/^ *//' >> tmp-stdint.h <<EOF
6823
6824 /* system headers have good uint64_t and int64_t */
6825 #ifndef _INT64_T
6826 #define _INT64_T
6827 #endif
6828 #ifndef _UINT64_T
6829 #define _UINT64_T
6830 #endif
6831EOF
6832elif test "$ac_cv_type_u_int64_t" = yes; then
6833 sed 's/^ *//' >> tmp-stdint.h <<EOF
6834
6835 /* system headers have an u_int64_t (and int64_t) */
6836 #ifndef _INT64_T
6837 #define _INT64_T
6838 #endif
6839 #ifndef _UINT64_T
6840 #define _UINT64_T
6841 #ifndef __uint64_t_defined
6842 #define __uint64_t_defined
b9497ab5 6843 #ifndef uint64_t
c13e029b
PB
6844 typedef u_int64_t uint64_t;
6845 #endif
6846 #endif
b9497ab5 6847 #endif
c13e029b
PB
6848EOF
6849elif test -n "$acx_cv_type_int64_t"; then
6850 sed 's/^ *//' >> tmp-stdint.h <<EOF
6851
6852 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
6853 #ifndef _INT64_T
6854 #define _INT64_T
b9497ab5 6855 #ifndef int64_t
c13e029b
PB
6856 typedef $acx_cv_type_int64_t int64_t;
6857 #endif
b9497ab5 6858 #endif
c13e029b
PB
6859 #ifndef _UINT64_T
6860 #define _UINT64_T
6861 #ifndef __uint64_t_defined
6862 #define __uint64_t_defined
b9497ab5 6863 #ifndef uint64_t
c13e029b
PB
6864 typedef unsigned $acx_cv_type_int64_t uint64_t;
6865 #endif
6866 #endif
b9497ab5 6867 #endif
c13e029b
PB
6868EOF
6869else
6870 sed 's/^ *//' >> tmp-stdint.h <<EOF
6871
6872 /* some common heuristics for int64_t, using compiler-specific tests */
6873 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
6874 #ifndef _INT64_T
6875 #define _INT64_T
6876 #ifndef __int64_t_defined
b9497ab5 6877 #ifndef int64_t
c13e029b
PB
6878 typedef long long int64_t;
6879 #endif
6880 #endif
b9497ab5 6881 #endif
c13e029b
PB
6882 #ifndef _UINT64_T
6883 #define _UINT64_T
b9497ab5 6884 #ifndef uint64_t
c13e029b
PB
6885 typedef unsigned long long uint64_t;
6886 #endif
b9497ab5 6887 #endif
c13e029b
PB
6888
6889 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
6890 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
6891 does not implement __extension__. But that compiler doesn't define
6892 __GNUC_MINOR__. */
6893 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
6894 # define __extension__
6895 # endif
6896
6897 # ifndef _INT64_T
6898 # define _INT64_T
b9497ab5 6899 # ifndef int64_t
c13e029b
PB
6900 __extension__ typedef long long int64_t;
6901 # endif
b9497ab5 6902 # endif
c13e029b
PB
6903 # ifndef _UINT64_T
6904 # define _UINT64_T
b9497ab5 6905 # ifndef uint64_t
c13e029b
PB
6906 __extension__ typedef unsigned long long uint64_t;
6907 # endif
b9497ab5 6908 # endif
c13e029b
PB
6909
6910 #elif !defined __STRICT_ANSI__
6911 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
6912
6913 # ifndef _INT64_T
6914 # define _INT64_T
b9497ab5 6915 # ifndef int64_t
c13e029b
PB
6916 typedef __int64 int64_t;
6917 # endif
b9497ab5 6918 # endif
c13e029b
PB
6919 # ifndef _UINT64_T
6920 # define _UINT64_T
b9497ab5 6921 # ifndef uint64_t
c13e029b
PB
6922 typedef unsigned __int64 uint64_t;
6923 # endif
b9497ab5 6924 # endif
c13e029b
PB
6925 # endif /* compiler */
6926
6927 #endif /* ANSI version */
6928EOF
6929fi
6930
6931# ------------- done int64_t types, emit intptr types ------------
6932if test "$ac_cv_type_uintptr_t" != yes; then
6933 sed 's/^ *//' >> tmp-stdint.h <<EOF
6934
6935 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
6936 #ifndef __uintptr_t_defined
b9497ab5 6937 #ifndef uintptr_t
c13e029b
PB
6938 typedef u$acx_cv_type_intptr_t uintptr_t;
6939 #endif
b9497ab5 6940 #endif
c13e029b 6941 #ifndef __intptr_t_defined
b9497ab5 6942 #ifndef intptr_t
c13e029b
PB
6943 typedef $acx_cv_type_intptr_t intptr_t;
6944 #endif
b9497ab5 6945 #endif
c13e029b
PB
6946EOF
6947fi
6948
6949# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 6950if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 6951 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
6952
6953 /* Define int_least types */
6954 typedef int8_t int_least8_t;
6955 typedef int16_t int_least16_t;
6956 typedef int32_t int_least32_t;
c13e029b 6957 #ifdef _INT64_T
4c4b3eb0 6958 typedef int64_t int_least64_t;
c13e029b 6959 #endif
4c4b3eb0
PB
6960
6961 typedef uint8_t uint_least8_t;
6962 typedef uint16_t uint_least16_t;
6963 typedef uint32_t uint_least32_t;
c13e029b 6964 #ifdef _UINT64_T
4c4b3eb0 6965 typedef uint64_t uint_least64_t;
c13e029b 6966 #endif
4c4b3eb0
PB
6967EOF
6968fi
6969
c13e029b 6970# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 6971if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 6972 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
6973
6974 /* Define int_fast types. short is often slow */
6975 typedef int8_t int_fast8_t;
6976 typedef int int_fast16_t;
6977 typedef int32_t int_fast32_t;
c13e029b 6978 #ifdef _INT64_T
4c4b3eb0 6979 typedef int64_t int_fast64_t;
c13e029b 6980 #endif
4c4b3eb0
PB
6981
6982 typedef uint8_t uint_fast8_t;
6983 typedef unsigned int uint_fast16_t;
6984 typedef uint32_t uint_fast32_t;
c13e029b 6985 #ifdef _UINT64_T
4c4b3eb0 6986 typedef uint64_t uint_fast64_t;
c13e029b
PB
6987 #endif
6988EOF
6989fi
6990
6991if test "$ac_cv_type_uintmax_t" != yes; then
6992 sed 's/^ *//' >> tmp-stdint.h <<EOF
6993
6994 /* Define intmax based on what we found */
b9497ab5 6995 #ifndef intmax_t
c13e029b
PB
6996 #ifdef _INT64_T
6997 typedef int64_t intmax_t;
6998 #else
6999 typedef long intmax_t;
7000 #endif
b9497ab5
RO
7001 #endif
7002 #ifndef uintmax_t
c13e029b
PB
7003 #ifdef _UINT64_T
7004 typedef uint64_t uintmax_t;
7005 #else
7006 typedef unsigned long uintmax_t;
7007 #endif
b9497ab5 7008 #endif
4c4b3eb0
PB
7009EOF
7010fi
7011
c13e029b
PB
7012sed 's/^ *//' >> tmp-stdint.h <<EOF
7013
7014 #endif /* GCC_GENERATED_STDINT_H */
7015EOF
4c4b3eb0 7016
c13e029b
PB
7017if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
7018 rm -f tmp-stdint.h
4c4b3eb0 7019else
c13e029b 7020 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
7021fi
7022
7023 ;;
5213506e
RW
7024 "config.h":H) echo timestamp > stamp-h1 ;;
7025
4c4b3eb0 7026 esac
5213506e 7027done # for ac_tag
8fdb0857 7028
8fdb0857 7029
5213506e 7030as_fn_exit 0
8fdb0857 7031_ACEOF
8fdb0857
BE
7032ac_clean_files=$ac_clean_files_save
7033
5213506e 7034test $ac_write_fail = 0 ||
22e05272 7035 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 7036
8fdb0857
BE
7037
7038# configure is writing to config.log, and then calls config.status.
7039# config.status does its own redirection, appending to config.log.
7040# Unfortunately, on DOS this fails, as config.log is still kept open
7041# by configure, so config.status won't be able to write to it; its
7042# output is simply discarded. So we exec the FD to /dev/null,
7043# effectively closing config.log, so it can be properly (re)opened and
7044# appended to by config.status. When coming back to configure, we
7045# need to make the FD available again.
7046if test "$no_create" != yes; then
7047 ac_cs_success=:
7048 ac_config_status_args=
7049 test "$silent" = yes &&
7050 ac_config_status_args="$ac_config_status_args --quiet"
7051 exec 5>/dev/null
7052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7053 exec 5>>config.log
7054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7055 # would make configure fail if this is the last instruction.
22e05272 7056 $ac_cs_success || as_fn_exit 1
5213506e
RW
7057fi
7058if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7060$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8fdb0857
BE
7061fi
7062