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