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