blob: 4a1896e1b97a3239058bb9e17fbd4d736cc6ff14 [file] [log] [blame]
Daniel Jacobowitzf5bc1772007-10-11 18:15:021#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
DJ Delorie75086672009-08-22 14:31:163# Generated by GNU Autoconf 2.64 for libdecnumber .
Daniel Jacobowitzf5bc1772007-10-11 18:15:024#
5# Report bugs to <gcc-bugs@gcc.gnu.org>.
6#
DJ Delorie75086672009-08-22 14:31:167# 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#
Daniel Jacobowitzf5bc1772007-10-11 18:15:0211# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
DJ Delorie75086672009-08-22 14:31:1613## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Daniel Jacobowitzf5bc1772007-10-11 18:15:0216
DJ Delorie75086672009-08-22 14:31:1617# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:0220 emulate sh
21 NULLCMD=:
DJ Delorie75086672009-08-22 14:31:1622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Daniel Jacobowitzf5bc1772007-10-11 18:15:0223 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
DJ Delorie75086672009-08-22 14:31:1625 setopt NO_GLOB_SUBST
Daniel Jacobowitzf5bc1772007-10-11 18:15:0226else
DJ Delorie75086672009-08-22 14:31:1627 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:0233fi
34
35
DJ Delorie75086672009-08-22 14:31:1636as_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"*)
62expr "X$arg" : "X\\(.*\\)$as_nl";
63arg=`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 }
81fi
82
83
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
Daniel Jacobowitzf5bc1772007-10-11 18:15:02123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
DJ Delorie75086672009-08-22 14:31:16128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Daniel Jacobowitzf5bc1772007-10-11 18:15:02132
DJ Delorie75086672009-08-22 14:31:16133# 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
186do
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.
217BASH_ENV=/dev/null
218ENV=/dev/null
219(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220export CONFIG_SHELL
221exec "$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."
230 else
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."
236 fi
237 exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255 { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264 return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272 set +e
273 as_fn_set_status $1
274 exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
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
Daniel Jacobowitzf5bc1772007-10-11 18:15:02378 as_expr=expr
379else
380 as_expr=false
381fi
382
DJ Delorie75086672009-08-22 14:31:16383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:02384 as_basename=basename
385else
386 as_basename=false
387fi
388
DJ Delorie75086672009-08-22 14:31:16389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391else
392 as_dirname=false
393fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:02394
DJ Delorie75086672009-08-22 14:31:16395as_me=`$as_basename -- "$0" ||
Daniel Jacobowitzf5bc1772007-10-11 18:15:02396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
DJ Delorie75086672009-08-22 14:31:16398 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'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:02413
Daniel Jacobowitzf5bc1772007-10-11 18:15:02414# 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
Daniel Jacobowitzf5bc1772007-10-11 18:15:02421
DJ Delorie75086672009-08-22 14:31:16422 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 |
Daniel Jacobowitzf5bc1772007-10-11 18:15:02431 sed '
DJ Delorie75086672009-08-22 14:31:16432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
Daniel Jacobowitzf5bc1772007-10-11 18:15:02436 N
DJ Delorie75086672009-08-22 14:31:16437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Daniel Jacobowitzf5bc1772007-10-11 18:15:02439 t loop
DJ Delorie75086672009-08-22 14:31:16440 s/-\n.*//
Daniel Jacobowitzf5bc1772007-10-11 18:15:02441 ' >$as_me.lineno &&
DJ Delorie75086672009-08-22 14:31:16442 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; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:02444
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
DJ Delorie75086672009-08-22 14:31:16447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
Daniel Jacobowitzf5bc1772007-10-11 18:15:02449 # Exit status is that of the last command.
450 exit
451}
452
DJ Delorie75086672009-08-22 14:31:16453ECHO_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';;
Daniel Jacobowitzf5bc1772007-10-11 18:15:02464esac
465
Daniel Jacobowitzf5bc1772007-10-11 18:15:02466rm -f conf$$ conf$$.exe conf$$.file
DJ Delorie75086672009-08-22 14:31:16467if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:02475 as_ln_s='ln -s'
DJ Delorie75086672009-08-22 14:31:16476 # ... 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'
Daniel Jacobowitzf5bc1772007-10-11 18:15:02486 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:02487else
488 as_ln_s='cp -p'
489fi
DJ Delorie75086672009-08-22 14:31:16490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
Daniel Jacobowitzf5bc1772007-10-11 18:15:02492
493if mkdir -p . 2>/dev/null; then
DJ Delorie75086672009-08-22 14:31:16494 as_mkdir_p='mkdir -p "$as_dir"'
Daniel Jacobowitzf5bc1772007-10-11 18:15:02495else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498fi
499
DJ Delorie75086672009-08-22 14:31:16500if 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
511test -d "$1/.";
512 else
513case $1 in #(
514-*)set "./$1";;
515esac;
516case `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
Daniel Jacobowitzf5bc1772007-10-11 18:15:02522
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
DJ Delorie75086672009-08-22 14:31:16530exec 7<&0 </dev/null 6>&1
Daniel Jacobowitzf5bc1772007-10-11 18:15:02531
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
Daniel Jacobowitzf5bc1772007-10-11 18:15:02537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
DJ Delorie75086672009-08-22 14:31:16541ac_clean_files=
Daniel Jacobowitzf5bc1772007-10-11 18:15:02542ac_config_libobj_dir=.
DJ Delorie75086672009-08-22 14:31:16543LIBOBJS=
Daniel Jacobowitzf5bc1772007-10-11 18:15:02544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
Daniel Jacobowitzf5bc1772007-10-11 18:15:02548
549# Identity of this package.
550PACKAGE_NAME='libdecnumber'
551PACKAGE_TARNAME='libdecnumber'
552PACKAGE_VERSION=' '
553PACKAGE_STRING='libdecnumber '
554PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
DJ Delorie75086672009-08-22 14:31:16555PACKAGE_URL=''
Daniel Jacobowitzf5bc1772007-10-11 18:15:02556
557ac_unique_file="decNumber.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
DJ Delorie75086672009-08-22 14:31:16561#ifdef HAVE_SYS_TYPES_H
Daniel Jacobowitzf5bc1772007-10-11 18:15:02562# include <sys/types.h>
563#endif
DJ Delorie75086672009-08-22 14:31:16564#ifdef HAVE_SYS_STAT_H
Daniel Jacobowitzf5bc1772007-10-11 18:15:02565# include <sys/stat.h>
566#endif
DJ Delorie75086672009-08-22 14:31:16567#ifdef STDC_HEADERS
Daniel Jacobowitzf5bc1772007-10-11 18:15:02568# include <stdlib.h>
569# include <stddef.h>
570#else
DJ Delorie75086672009-08-22 14:31:16571# ifdef HAVE_STDLIB_H
Daniel Jacobowitzf5bc1772007-10-11 18:15:02572# include <stdlib.h>
573# endif
574#endif
DJ Delorie75086672009-08-22 14:31:16575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Daniel Jacobowitzf5bc1772007-10-11 18:15:02577# include <memory.h>
578# endif
579# include <string.h>
580#endif
DJ Delorie75086672009-08-22 14:31:16581#ifdef HAVE_STRINGS_H
Daniel Jacobowitzf5bc1772007-10-11 18:15:02582# include <strings.h>
583#endif
DJ Delorie75086672009-08-22 14:31:16584#ifdef HAVE_INTTYPES_H
Daniel Jacobowitzf5bc1772007-10-11 18:15:02585# include <inttypes.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:02586#endif
DJ Delorie75086672009-08-22 14:31:16587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
Daniel Jacobowitzf5bc1772007-10-11 18:15:02591# include <unistd.h>
592#endif"
593
DJ Delorie75086672009-08-22 14:31:16594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596ADDITIONAL_OBJS
597enable_decimal_float
598target_os
599target_vendor
600target_cpu
601target
602host_os
603host_vendor
604host_cpu
605host
606build_os
607build_vendor
608build_cpu
609build
610MAINT
611EGREP
612GREP
613CPP
614WERROR
615WARN_PEDANTIC
616WARN_CFLAGS
617AUTOHEADER
618AUTOCONF
619ACLOCAL
620RANLIB
621OBJEXT
622EXEEXT
623ac_ct_CC
624CPPFLAGS
625LDFLAGS
626CFLAGS
627CC
628SET_MAKE
629target_alias
630host_alias
631build_alias
632LIBS
633ECHO_T
634ECHO_N
635ECHO_C
636DEFS
637mandir
638localedir
639libdir
640psdir
641pdfdir
642dvidir
643htmldir
644infodir
645docdir
646oldincludedir
647includedir
648localstatedir
649sharedstatedir
650sysconfdir
651datadir
652datarootdir
653libexecdir
654sbindir
655bindir
656program_transform_name
657prefix
658exec_prefix
659PACKAGE_URL
660PACKAGE_BUGREPORT
661PACKAGE_STRING
662PACKAGE_VERSION
663PACKAGE_TARNAME
664PACKAGE_NAME
665PATH_SEPARATOR
666SHELL'
Daniel Jacobowitzf5bc1772007-10-11 18:15:02667ac_subst_files=''
DJ Delorie75086672009-08-22 14:31:16668ac_user_opts='
669enable_option_checking
670enable_werror_always
671enable_maintainer_mode
672enable_decimal_float
673'
674 ac_precious_vars='build_alias
675host_alias
676target_alias
677CC
678CFLAGS
679LDFLAGS
680LIBS
681CPPFLAGS
682CPP'
683
Daniel Jacobowitzf5bc1772007-10-11 18:15:02684
685# Initialize some variables set by options.
686ac_init_help=
687ac_init_version=false
DJ Delorie75086672009-08-22 14:31:16688ac_unrecognized_opts=
689ac_unrecognized_sep=
Daniel Jacobowitzf5bc1772007-10-11 18:15:02690# The variables have the same names as the options, with
691# dashes changed to underlines.
692cache_file=/dev/null
693exec_prefix=NONE
694no_create=
695no_recursion=
696prefix=NONE
697program_prefix=NONE
698program_suffix=NONE
699program_transform_name=s,x,x,
700silent=
701site=
702srcdir=
703verbose=
704x_includes=NONE
705x_libraries=NONE
706
707# Installation directory options.
708# These are left unexpanded so users can "make install exec_prefix=/foo"
709# and all the variables that are supposed to be based on exec_prefix
710# by default will actually change.
711# Use braces instead of parens because sh, perl, etc. also accept them.
DJ Delorie75086672009-08-22 14:31:16712# (The list follows the same order as the GNU Coding Standards.)
Daniel Jacobowitzf5bc1772007-10-11 18:15:02713bindir='${exec_prefix}/bin'
714sbindir='${exec_prefix}/sbin'
715libexecdir='${exec_prefix}/libexec'
DJ Delorie75086672009-08-22 14:31:16716datarootdir='${prefix}/share'
717datadir='${datarootdir}'
Daniel Jacobowitzf5bc1772007-10-11 18:15:02718sysconfdir='${prefix}/etc'
719sharedstatedir='${prefix}/com'
720localstatedir='${prefix}/var'
Daniel Jacobowitzf5bc1772007-10-11 18:15:02721includedir='${prefix}/include'
722oldincludedir='/usr/include'
DJ Delorie75086672009-08-22 14:31:16723docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
724infodir='${datarootdir}/info'
725htmldir='${docdir}'
726dvidir='${docdir}'
727pdfdir='${docdir}'
728psdir='${docdir}'
729libdir='${exec_prefix}/lib'
730localedir='${datarootdir}/locale'
731mandir='${datarootdir}/man'
Daniel Jacobowitzf5bc1772007-10-11 18:15:02732
733ac_prev=
DJ Delorie75086672009-08-22 14:31:16734ac_dashdash=
Daniel Jacobowitzf5bc1772007-10-11 18:15:02735for ac_option
736do
737 # If the previous option needs an argument, assign it.
738 if test -n "$ac_prev"; then
DJ Delorie75086672009-08-22 14:31:16739 eval $ac_prev=\$ac_option
Daniel Jacobowitzf5bc1772007-10-11 18:15:02740 ac_prev=
741 continue
742 fi
743
DJ Delorie75086672009-08-22 14:31:16744 case $ac_option in
745 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
746 *) ac_optarg=yes ;;
747 esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:02748
749 # Accept the important Cygnus configure options, so we can diagnose typos.
750
DJ Delorie75086672009-08-22 14:31:16751 case $ac_dashdash$ac_option in
752 --)
753 ac_dashdash=yes ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:02754
755 -bindir | --bindir | --bindi | --bind | --bin | --bi)
756 ac_prev=bindir ;;
757 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
758 bindir=$ac_optarg ;;
759
760 -build | --build | --buil | --bui | --bu)
761 ac_prev=build_alias ;;
762 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
763 build_alias=$ac_optarg ;;
764
765 -cache-file | --cache-file | --cache-fil | --cache-fi \
766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
767 ac_prev=cache_file ;;
768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
770 cache_file=$ac_optarg ;;
771
772 --config-cache | -C)
773 cache_file=config.cache ;;
774
DJ Delorie75086672009-08-22 14:31:16775 -datadir | --datadir | --datadi | --datad)
Daniel Jacobowitzf5bc1772007-10-11 18:15:02776 ac_prev=datadir ;;
DJ Delorie75086672009-08-22 14:31:16777 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Daniel Jacobowitzf5bc1772007-10-11 18:15:02778 datadir=$ac_optarg ;;
779
DJ Delorie75086672009-08-22 14:31:16780 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
781 | --dataroo | --dataro | --datar)
782 ac_prev=datarootdir ;;
783 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
784 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
785 datarootdir=$ac_optarg ;;
786
Daniel Jacobowitzf5bc1772007-10-11 18:15:02787 -disable-* | --disable-*)
DJ Delorie75086672009-08-22 14:31:16788 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:02789 # Reject names that are not valid shell variable names.
DJ Delorie75086672009-08-22 14:31:16790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
791 as_fn_error "invalid feature name: $ac_useropt"
792 ac_useropt_orig=$ac_useropt
793 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in
795 *"
796"enable_$ac_useropt"
797"*) ;;
798 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
799 ac_unrecognized_sep=', ';;
800 esac
801 eval enable_$ac_useropt=no ;;
802
803 -docdir | --docdir | --docdi | --doc | --do)
804 ac_prev=docdir ;;
805 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
806 docdir=$ac_optarg ;;
807
808 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
809 ac_prev=dvidir ;;
810 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
811 dvidir=$ac_optarg ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:02812
813 -enable-* | --enable-*)
DJ Delorie75086672009-08-22 14:31:16814 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:02815 # Reject names that are not valid shell variable names.
DJ Delorie75086672009-08-22 14:31:16816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error "invalid feature name: $ac_useropt"
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
821 *"
822"enable_$ac_useropt"
823"*) ;;
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
Daniel Jacobowitzf5bc1772007-10-11 18:15:02826 esac
DJ Delorie75086672009-08-22 14:31:16827 eval enable_$ac_useropt=\$ac_optarg ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:02828
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
837
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
840 with_gas=yes ;;
841
842 -help | --help | --hel | --he | -h)
843 ac_init_help=long ;;
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
848
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
853
DJ Delorie75086672009-08-22 14:31:16854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855 ac_prev=htmldir ;;
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857 | --ht=*)
858 htmldir=$ac_optarg ;;
859
Daniel Jacobowitzf5bc1772007-10-11 18:15:02860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
866
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
868 ac_prev=infodir ;;
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
871
872 -libdir | --libdir | --libdi | --libd)
873 ac_prev=libdir ;;
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
875 libdir=$ac_optarg ;;
876
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
883
DJ Delorie75086672009-08-22 14:31:16884 -localedir | --localedir | --localedi | --localed | --locale)
885 ac_prev=localedir ;;
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
888
Daniel Jacobowitzf5bc1772007-10-11 18:15:02889 -localstatedir | --localstatedir | --localstatedi | --localstated \
DJ Delorie75086672009-08-22 14:31:16890 | --localstate | --localstat | --localsta | --localst | --locals)
Daniel Jacobowitzf5bc1772007-10-11 18:15:02891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
DJ Delorie75086672009-08-22 14:31:16893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Daniel Jacobowitzf5bc1772007-10-11 18:15:02894 localstatedir=$ac_optarg ;;
895
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897 ac_prev=mandir ;;
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 mandir=$ac_optarg ;;
900
901 -nfp | --nfp | --nf)
902 # Obsolete; use --without-fp.
903 with_fp=no ;;
904
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
907 no_create=yes ;;
908
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911 no_recursion=yes ;;
912
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
921
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923 ac_prev=prefix ;;
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925 prefix=$ac_optarg ;;
926
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
933
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
940
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
957
DJ Delorie75086672009-08-22 14:31:16958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959 ac_prev=pdfdir ;;
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961 pdfdir=$ac_optarg ;;
962
963 -psdir | --psdir | --psdi | --psd | --ps)
964 ac_prev=psdir ;;
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966 psdir=$ac_optarg ;;
967
Daniel Jacobowitzf5bc1772007-10-11 18:15:02968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
970 silent=yes ;;
971
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973 ac_prev=sbindir ;;
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975 | --sbi=* | --sb=*)
976 sbindir=$ac_optarg ;;
977
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
981 | --sha | --sh)
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986 | --sha=* | --sh=*)
987 sharedstatedir=$ac_optarg ;;
988
989 -site | --site | --sit)
990 ac_prev=site ;;
991 -site=* | --site=* | --sit=*)
992 site=$ac_optarg ;;
993
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995 ac_prev=srcdir ;;
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997 srcdir=$ac_optarg ;;
998
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1005
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1010
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012 verbose=yes ;;
1013
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1016
1017 -with-* | --with-*)
DJ Delorie75086672009-08-22 14:31:161018 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:021019 # Reject names that are not valid shell variable names.
DJ Delorie75086672009-08-22 14:31:161020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error "invalid package name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"with_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021030 esac
DJ Delorie75086672009-08-22 14:31:161031 eval with_$ac_useropt=\$ac_optarg ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021032
1033 -without-* | --without-*)
DJ Delorie75086672009-08-22 14:31:161034 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:021035 # Reject names that are not valid shell variable names.
DJ Delorie75086672009-08-22 14:31:161036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error "invalid package name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042"with_$ac_useropt"
1043"*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval with_$ac_useropt=no ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021048
1049 --x)
1050 # Obsolete; use --with-x.
1051 with_x=yes ;;
1052
1053 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1054 | --x-incl | --x-inc | --x-in | --x-i)
1055 ac_prev=x_includes ;;
1056 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1057 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1058 x_includes=$ac_optarg ;;
1059
1060 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1061 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1062 ac_prev=x_libraries ;;
1063 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1064 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1065 x_libraries=$ac_optarg ;;
1066
DJ Delorie75086672009-08-22 14:31:161067 -*) as_fn_error "unrecognized option: \`$ac_option'
1068Try \`$0 --help' for more information."
Daniel Jacobowitzf5bc1772007-10-11 18:15:021069 ;;
1070
1071 *=*)
1072 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names.
DJ Delorie75086672009-08-22 14:31:161074 case $ac_envvar in #(
1075 '' | [0-9]* | *[!_$as_cr_alnum]* )
1076 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1077 esac
1078 eval $ac_envvar=\$ac_optarg
Daniel Jacobowitzf5bc1772007-10-11 18:15:021079 export $ac_envvar ;;
1080
1081 *)
1082 # FIXME: should be removed in autoconf 3.0.
DJ Delorie75086672009-08-22 14:31:161083 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Daniel Jacobowitzf5bc1772007-10-11 18:15:021084 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
DJ Delorie75086672009-08-22 14:31:161085 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Daniel Jacobowitzf5bc1772007-10-11 18:15:021086 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1087 ;;
1088
1089 esac
1090done
1091
1092if test -n "$ac_prev"; then
1093 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
DJ Delorie75086672009-08-22 14:31:161094 as_fn_error "missing argument to $ac_option"
Daniel Jacobowitzf5bc1772007-10-11 18:15:021095fi
1096
DJ Delorie75086672009-08-22 14:31:161097if test -n "$ac_unrecognized_opts"; then
1098 case $enable_option_checking in
1099 no) ;;
1100 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1101 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021102 esac
DJ Delorie75086672009-08-22 14:31:161103fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:021104
DJ Delorie75086672009-08-22 14:31:161105# Check all directory arguments for consistency.
1106for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107datadir sysconfdir sharedstatedir localstatedir includedir \
1108oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109libdir localedir mandir
Daniel Jacobowitzf5bc1772007-10-11 18:15:021110do
DJ Delorie75086672009-08-22 14:31:161111 eval ac_val=\$$ac_var
1112 # Remove trailing slashes.
Daniel Jacobowitzf5bc1772007-10-11 18:15:021113 case $ac_val in
DJ Delorie75086672009-08-22 14:31:161114 */ )
1115 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1116 eval $ac_var=\$ac_val;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021117 esac
DJ Delorie75086672009-08-22 14:31:161118 # Be sure to have absolute directory names.
1119 case $ac_val in
1120 [\\/$]* | ?:[\\/]* ) continue;;
1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1122 esac
1123 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Daniel Jacobowitzf5bc1772007-10-11 18:15:021124done
1125
1126# There might be people who depend on the old broken behavior: `$host'
1127# used to hold the argument of --host etc.
1128# FIXME: To remove some day.
1129build=$build_alias
1130host=$host_alias
1131target=$target_alias
1132
1133# FIXME: To remove some day.
1134if test "x$host_alias" != x; then
1135 if test "x$build_alias" = x; then
1136 cross_compiling=maybe
DJ Delorie75086672009-08-22 14:31:161137 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Daniel Jacobowitzf5bc1772007-10-11 18:15:021138 If a cross compiler is detected then cross compile mode will be used." >&2
1139 elif test "x$build_alias" != "x$host_alias"; then
1140 cross_compiling=yes
1141 fi
1142fi
1143
1144ac_tool_prefix=
1145test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146
1147test "$silent" = yes && exec 6>/dev/null
1148
1149
DJ Delorie75086672009-08-22 14:31:161150ac_pwd=`pwd` && test -n "$ac_pwd" &&
1151ac_ls_di=`ls -di .` &&
1152ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1153 as_fn_error "working directory cannot be determined"
1154test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 as_fn_error "pwd does not report name of working directory"
1156
1157
Daniel Jacobowitzf5bc1772007-10-11 18:15:021158# Find the source files, if location was not specified.
1159if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
DJ Delorie75086672009-08-22 14:31:161161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$as_myself" ||
1163$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$as_myself" : 'X\(//\)[^/]' \| \
1165 X"$as_myself" : 'X\(//\)$' \| \
1166 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1167$as_echo X"$as_myself" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\/\)[^/].*/{
1173 s//\1/
1174 q
1175 }
1176 /^X\(\/\/\)$/{
1177 s//\1/
1178 q
1179 }
1180 /^X\(\/\).*/{
1181 s//\1/
1182 q
1183 }
1184 s/.*/./; q'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:021185 srcdir=$ac_confdir
DJ Delorie75086672009-08-22 14:31:161186 if test ! -r "$srcdir/$ac_unique_file"; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:021187 srcdir=..
1188 fi
1189else
1190 ac_srcdir_defaulted=no
1191fi
DJ Delorie75086672009-08-22 14:31:161192if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Daniel Jacobowitzf5bc1772007-10-11 18:15:021195fi
DJ Delorie75086672009-08-22 14:31:161196ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197ac_abs_confdir=`(
1198cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1199pwd)`
1200# When building in place, set srcdir=.
1201if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 srcdir=.
1203fi
1204# Remove unnecessary trailing slashes from srcdir.
1205# Double slashes in file names in object file debugging info
1206# mess up M-x gdb in Emacs.
1207case $srcdir in
1208*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209esac
1210for ac_var in $ac_precious_vars; do
1211 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_${ac_var}_value=\$${ac_var}
1213 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215done
Daniel Jacobowitzf5bc1772007-10-11 18:15:021216
1217#
1218# Report the --help message.
1219#
1220if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1223 cat <<_ACEOF
1224\`configure' configures libdecnumber to adapt to many kinds of systems.
1225
1226Usage: $0 [OPTION]... [VAR=VALUE]...
1227
1228To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229VAR=VALUE. See below for descriptions of some of the useful variables.
1230
1231Defaults for the options are specified in brackets.
1232
1233Configuration:
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1243
Daniel Jacobowitzf5bc1772007-10-11 18:15:021244Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
DJ Delorie75086672009-08-22 14:31:161246 [$ac_default_prefix]
Daniel Jacobowitzf5bc1772007-10-11 18:15:021247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
DJ Delorie75086672009-08-22 14:31:161248 [PREFIX]
Daniel Jacobowitzf5bc1772007-10-11 18:15:021249
1250By default, \`make install' will install all the files in
1251\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253for instance \`--prefix=\$HOME'.
1254
1255For better control, use the options below.
1256
1257Fine tuning of the installation directories:
DJ Delorie75086672009-08-22 14:31:161258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/libdecnumber]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
Daniel Jacobowitzf5bc1772007-10-11 18:15:021277_ACEOF
1278
1279 cat <<\_ACEOF
1280
1281System types:
1282 --build=BUILD configure for building on BUILD [guessed]
1283 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1284 --target=TARGET configure for building compilers for TARGET [HOST]
1285_ACEOF
1286fi
1287
1288if test -n "$ac_init_help"; then
1289 case $ac_init_help in
1290 short | recursive ) echo "Configuration of libdecnumber :";;
1291 esac
1292 cat <<\_ACEOF
1293
1294Optional Features:
DJ Delorie75086672009-08-22 14:31:161295 --disable-option-checking ignore unrecognized --enable/--with options
Daniel Jacobowitzf5bc1772007-10-11 18:15:021296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1298 --enable-werror-always enable -Werror despite compiler version
1299 --enable-maintainer-mode enable rules only needed by maintainers
1300 --enable-decimal-float={no,yes,bid,dpd}
1301enable decimal float extension to C. Selecting 'bid'
1302or 'dpd' choses which decimal floating point format
1303to use
1304
1305Some influential environment variables:
1306 CC C compiler command
1307 CFLAGS C compiler flags
1308 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1309 nonstandard directory <lib dir>
DJ Delorie75086672009-08-22 14:31:161310 LIBS libraries to pass to the linker, e.g. -l<library>
1311 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1312 you have headers in a nonstandard directory <include dir>
Daniel Jacobowitzf5bc1772007-10-11 18:15:021313 CPP C preprocessor
1314
1315Use these variables to override the choices made by `configure' or to help
1316it to find libraries and programs with nonstandard names/locations.
1317
1318Report bugs to <gcc-bugs@gcc.gnu.org>.
1319_ACEOF
DJ Delorie75086672009-08-22 14:31:161320ac_status=$?
Daniel Jacobowitzf5bc1772007-10-11 18:15:021321fi
1322
1323if test "$ac_init_help" = "recursive"; then
1324 # If there are subdirs, report their specific --help.
Daniel Jacobowitzf5bc1772007-10-11 18:15:021325 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
DJ Delorie75086672009-08-22 14:31:161326 test -d "$ac_dir" ||
1327 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1328 continue
Daniel Jacobowitzf5bc1772007-10-11 18:15:021329 ac_builddir=.
1330
DJ Delorie75086672009-08-22 14:31:161331case "$ac_dir" in
1332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333*)
1334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1335 # A ".." for each directory in $ac_dir_suffix.
1336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1337 case $ac_top_builddir_sub in
1338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1340 esac ;;
1341esac
1342ac_abs_top_builddir=$ac_pwd
1343ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344# for backward compatibility:
1345ac_top_builddir=$ac_top_build_prefix
Daniel Jacobowitzf5bc1772007-10-11 18:15:021346
1347case $srcdir in
DJ Delorie75086672009-08-22 14:31:161348 .) # We are building in place.
Daniel Jacobowitzf5bc1772007-10-11 18:15:021349 ac_srcdir=.
DJ Delorie75086672009-08-22 14:31:161350 ac_top_srcdir=$ac_top_builddir_sub
1351 ac_abs_top_srcdir=$ac_pwd ;;
1352 [\\/]* | ?:[\\/]* ) # Absolute name.
Daniel Jacobowitzf5bc1772007-10-11 18:15:021353 ac_srcdir=$srcdir$ac_dir_suffix;
DJ Delorie75086672009-08-22 14:31:161354 ac_top_srcdir=$srcdir
1355 ac_abs_top_srcdir=$srcdir ;;
1356 *) # Relative name.
1357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358 ac_top_srcdir=$ac_top_build_prefix$srcdir
1359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021360esac
DJ Delorie75086672009-08-22 14:31:161361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Daniel Jacobowitzf5bc1772007-10-11 18:15:021362
DJ Delorie75086672009-08-22 14:31:161363 cd "$ac_dir" || { ac_status=$?; continue; }
1364 # Check for guested configure.
1365 if test -f "$ac_srcdir/configure.gnu"; then
1366 echo &&
1367 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368 elif test -f "$ac_srcdir/configure"; then
1369 echo &&
1370 $SHELL "$ac_srcdir/configure" --help=recursive
Daniel Jacobowitzf5bc1772007-10-11 18:15:021371 else
DJ Delorie75086672009-08-22 14:31:161372 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1373 fi || ac_status=$?
1374 cd "$ac_pwd" || { ac_status=$?; break; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:021375 done
1376fi
1377
DJ Delorie75086672009-08-22 14:31:161378test -n "$ac_init_help" && exit $ac_status
Daniel Jacobowitzf5bc1772007-10-11 18:15:021379if $ac_init_version; then
1380 cat <<\_ACEOF
1381libdecnumber configure
DJ Delorie75086672009-08-22 14:31:161382generated by GNU Autoconf 2.64
Daniel Jacobowitzf5bc1772007-10-11 18:15:021383
DJ Delorie75086672009-08-22 14:31:161384Copyright (C) 2009 Free Software Foundation, Inc.
Daniel Jacobowitzf5bc1772007-10-11 18:15:021385This configure script is free software; the Free Software Foundation
1386gives unlimited permission to copy, distribute and modify it.
1387_ACEOF
DJ Delorie75086672009-08-22 14:31:161388 exit
Daniel Jacobowitzf5bc1772007-10-11 18:15:021389fi
DJ Delorie75086672009-08-22 14:31:161390
1391## ------------------------ ##
1392## Autoconf initialization. ##
1393## ------------------------ ##
1394
1395# ac_fn_c_try_compile LINENO
1396# --------------------------
1397# Try to compile conftest.$ac_ext, and return whether this succeeded.
1398ac_fn_c_try_compile ()
1399{
1400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1401 rm -f conftest.$ac_objext
1402 if { { ac_try="$ac_compile"
1403case "(($ac_try" in
1404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1405 *) ac_try_echo=$ac_try;;
1406esac
1407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1408$as_echo "$ac_try_echo"; } >&5
1409 (eval "$ac_compile") 2>conftest.err
1410 ac_status=$?
1411 if test -s conftest.err; then
1412 grep -v '^ *+' conftest.err >conftest.er1
1413 cat conftest.er1 >&5
1414 mv -f conftest.er1 conftest.err
1415 fi
1416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1417 test $ac_status = 0; } && {
1418 test -z "$ac_c_werror_flag" ||
1419 test ! -s conftest.err
1420 } && test -s conftest.$ac_objext; then :
1421 ac_retval=0
1422else
1423 $as_echo "$as_me: failed program was:" >&5
1424sed 's/^/| /' conftest.$ac_ext >&5
1425
1426ac_retval=1
1427fi
1428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1429 return $ac_retval
1430
1431} # ac_fn_c_try_compile
1432
1433# ac_fn_c_try_cpp LINENO
1434# ----------------------
1435# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1436ac_fn_c_try_cpp ()
1437{
1438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439 if { { ac_try="$ac_cpp conftest.$ac_ext"
1440case "(($ac_try" in
1441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442 *) ac_try_echo=$ac_try;;
1443esac
1444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445$as_echo "$ac_try_echo"; } >&5
1446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1447 ac_status=$?
1448 if test -s conftest.err; then
1449 grep -v '^ *+' conftest.err >conftest.er1
1450 cat conftest.er1 >&5
1451 mv -f conftest.er1 conftest.err
1452 fi
1453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454 test $ac_status = 0; } >/dev/null && {
1455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1456 test ! -s conftest.err
1457 }; then :
1458 ac_retval=0
1459else
1460 $as_echo "$as_me: failed program was:" >&5
1461sed 's/^/| /' conftest.$ac_ext >&5
1462
1463 ac_retval=1
1464fi
1465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1466 return $ac_retval
1467
1468} # ac_fn_c_try_cpp
1469
1470# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1471# -------------------------------------------------------
1472# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1473# the include files in INCLUDES and setting the cache variable VAR
1474# accordingly.
1475ac_fn_c_check_header_mongrel ()
1476{
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1480$as_echo_n "checking for $2... " >&6; }
1481if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1482 $as_echo_n "(cached) " >&6
1483fi
1484eval ac_res=\$$3
1485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486$as_echo "$ac_res" >&6; }
1487else
1488 # Is the header compilable?
1489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1490$as_echo_n "checking $2 usability... " >&6; }
1491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492/* end confdefs.h. */
1493$4
1494#include <$2>
1495_ACEOF
1496if ac_fn_c_try_compile "$LINENO"; then :
1497 ac_header_compiler=yes
1498else
1499 ac_header_compiler=no
1500fi
1501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1503$as_echo "$ac_header_compiler" >&6; }
1504
1505# Is the header present?
1506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1507$as_echo_n "checking $2 presence... " >&6; }
1508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1509/* end confdefs.h. */
1510#include <$2>
1511_ACEOF
1512if ac_fn_c_try_cpp "$LINENO"; then :
1513 ac_header_preproc=yes
1514else
1515 ac_header_preproc=no
1516fi
1517rm -f conftest.err conftest.$ac_ext
1518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1519$as_echo "$ac_header_preproc" >&6; }
1520
1521# So? What about this header?
1522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1523 yes:no: )
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1525$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1527$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1528 ;;
1529 no:yes:* )
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1531$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1533$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1535$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1537$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1539$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1540( cat <<\_ASBOX
1541## ----------------------------------- ##
1542## Report this to gcc-bugs@gcc.gnu.org ##
1543## ----------------------------------- ##
1544_ASBOX
1545 ) | sed "s/^/$as_me: WARNING: /" >&2
1546 ;;
1547esac
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1549$as_echo_n "checking for $2... " >&6; }
1550if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1551 $as_echo_n "(cached) " >&6
1552else
1553 eval "$3=\$ac_header_compiler"
1554fi
1555eval ac_res=\$$3
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1557$as_echo "$ac_res" >&6; }
1558fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560
1561} # ac_fn_c_check_header_mongrel
1562
1563# ac_fn_c_try_run LINENO
1564# ----------------------
1565# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1566# that executables *can* be run.
1567ac_fn_c_try_run ()
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 if { { ac_try="$ac_link"
1571case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>&5
1578 ac_status=$?
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1581 { { case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_try") 2>&5
1588 ac_status=$?
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; }; }; then :
1591 ac_retval=0
1592else
1593 $as_echo "$as_me: program exited with status $ac_status" >&5
1594 $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=$ac_status
1598fi
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601 return $ac_retval
1602
1603} # ac_fn_c_try_run
1604
1605# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606# -------------------------------------------------------
1607# Tests whether HEADER exists and can be compiled using the include files in
1608# INCLUDES, setting the cache variable VAR accordingly.
1609ac_fn_c_check_header_compile ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613$as_echo_n "checking for $2... " >&6; }
1614if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1616else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h. */
1619$4
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624else
1625 eval "$3=no"
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628fi
1629eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631$as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633
1634} # ac_fn_c_check_header_compile
1635
1636# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1637# -------------------------------------------
1638# Tests whether TYPE exists after having included INCLUDES, setting cache
1639# variable VAR accordingly.
1640ac_fn_c_check_type ()
1641{
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644$as_echo_n "checking for $2... " >&6; }
1645if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1646 $as_echo_n "(cached) " >&6
1647else
1648 eval "$3=no"
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h. */
1651$4
1652int
1653main ()
1654{
1655if (sizeof ($2))
1656 return 0;
1657 ;
1658 return 0;
1659}
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"; then :
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663/* end confdefs.h. */
1664$4
1665int
1666main ()
1667{
1668if (sizeof (($2)))
1669 return 0;
1670 ;
1671 return 0;
1672}
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"; then :
1675
1676else
1677 eval "$3=yes"
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682fi
1683eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685$as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687
1688} # ac_fn_c_check_type
1689
1690# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1691# --------------------------------------------
1692# Tries to find the compile-time value of EXPR in a program that includes
1693# INCLUDES, setting VAR accordingly. Returns whether the value could be
1694# computed
1695ac_fn_c_compute_int ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if test "$cross_compiling" = yes; then
1699 # Depending upon the size, compute the lo and hi bounds.
1700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701/* end confdefs.h. */
1702$4
1703int
1704main ()
1705{
1706static int test_array [1 - 2 * !(($2) >= 0)];
1707test_array [0] = 0
1708
1709 ;
1710 return 0;
1711}
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_lo=0 ac_mid=0
1715 while :; do
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717/* end confdefs.h. */
1718$4
1719int
1720main ()
1721{
1722static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1723test_array [0] = 0
1724
1725 ;
1726 return 0;
1727}
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"; then :
1730 ac_hi=$ac_mid; break
1731else
1732 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1733if test $ac_lo -le $ac_mid; then
1734 ac_lo= ac_hi=
1735 break
1736fi
1737as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 done
1741else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h. */
1744$4
1745int
1746main ()
1747{
1748static int test_array [1 - 2 * !(($2) < 0)];
1749test_array [0] = 0
1750
1751 ;
1752 return 0;
1753}
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_hi=-1 ac_mid=-1
1757 while :; do
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h. */
1760$4
1761int
1762main ()
1763{
1764static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1765test_array [0] = 0
1766
1767 ;
1768 return 0;
1769}
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_lo=$ac_mid; break
1773else
1774 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1775if test $ac_mid -le $ac_hi; then
1776 ac_lo= ac_hi=
1777 break
1778fi
1779as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 done
1783else
1784 ac_lo= ac_hi=
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789# Binary search between lo and hi bounds.
1790while test "x$ac_lo" != "x$ac_hi"; do
1791 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794$4
1795int
1796main ()
1797{
1798static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1799test_array [0] = 0
1800
1801 ;
1802 return 0;
1803}
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_hi=$ac_mid
1807else
1808 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811done
1812case $ac_lo in #((
1813?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1814'') ac_retval=1 ;;
1815esac
1816 else
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819$4
1820static long int longval () { return $2; }
1821static unsigned long int ulongval () { return $2; }
1822#include <stdio.h>
1823#include <stdlib.h>
1824int
1825main ()
1826{
1827
1828 FILE *f = fopen ("conftest.val", "w");
1829 if (! f)
1830 return 1;
1831 if (($2) < 0)
1832 {
1833 long int i = longval ();
1834 if (i != ($2))
1835return 1;
1836 fprintf (f, "%ld", i);
1837 }
1838 else
1839 {
1840 unsigned long int i = ulongval ();
1841 if (i != ($2))
1842return 1;
1843 fprintf (f, "%lu", i);
1844 }
1845 /* Do not output a trailing newline, as this causes \r\n confusion
1846 on some platforms. */
1847 return ferror (f) || fclose (f) != 0;
1848
1849 ;
1850 return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_run "$LINENO"; then :
1854 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1855else
1856 ac_retval=1
1857fi
1858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1859 conftest.$ac_objext conftest.beam conftest.$ac_ext
1860rm -f conftest.val
1861
1862 fi
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 return $ac_retval
1865
1866} # ac_fn_c_compute_int
1867cat >config.log <<_ACEOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:021868This file contains any messages produced by compilers while
1869running configure, to aid debugging if configure makes a mistake.
1870
1871It was created by libdecnumber $as_me , which was
DJ Delorie75086672009-08-22 14:31:161872generated by GNU Autoconf 2.64. Invocation command line was
Daniel Jacobowitzf5bc1772007-10-11 18:15:021873
1874 $ $0 $@
1875
1876_ACEOF
DJ Delorie75086672009-08-22 14:31:161877exec 5>>config.log
Daniel Jacobowitzf5bc1772007-10-11 18:15:021878{
1879cat <<_ASUNAME
1880## --------- ##
1881## Platform. ##
1882## --------- ##
1883
1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
DJ Delorie75086672009-08-22 14:31:161896/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Daniel Jacobowitzf5bc1772007-10-11 18:15:021897/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901_ASUNAME
1902
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:161908 $as_echo "PATH: $as_dir"
1909 done
1910IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:021911
1912} >&5
1913
1914cat >&5 <<_ACEOF
1915
1916
1917## ----------- ##
1918## Core tests. ##
1919## ----------- ##
1920
1921_ACEOF
1922
1923
1924# Keep a trace of the command line.
1925# Strip out --no-create and --no-recursion so they do not pile up.
1926# Strip out --silent because we don't want to record it for future runs.
1927# Also quote any args containing shell meta-characters.
1928# Make two passes to allow for proper duplicate-argument suppression.
1929ac_configure_args=
1930ac_configure_args0=
1931ac_configure_args1=
Daniel Jacobowitzf5bc1772007-10-11 18:15:021932ac_must_keep_next=false
1933for ac_pass in 1 2
1934do
1935 for ac_arg
1936 do
1937 case $ac_arg in
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1941 continue ;;
DJ Delorie75086672009-08-22 14:31:161942 *\'*)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021944 esac
1945 case $ac_pass in
DJ Delorie75086672009-08-22 14:31:161946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:021947 2)
DJ Delorie75086672009-08-22 14:31:161948 as_fn_append ac_configure_args1 " '$ac_arg'"
Daniel Jacobowitzf5bc1772007-10-11 18:15:021949 if test $ac_must_keep_next = true; then
1950ac_must_keep_next=false # Got value, back to normal.
1951 else
1952case $ac_arg in
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 esac
1960 ;;
1961 -* ) ac_must_keep_next=true ;;
1962esac
1963 fi
DJ Delorie75086672009-08-22 14:31:161964 as_fn_append ac_configure_args " '$ac_arg'"
Daniel Jacobowitzf5bc1772007-10-11 18:15:021965 ;;
1966 esac
1967 done
1968done
DJ Delorie75086672009-08-22 14:31:161969{ ac_configure_args0=; unset ac_configure_args0;}
1970{ ac_configure_args1=; unset ac_configure_args1;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:021971
1972# When interrupted or exit'd, cleanup temporary files, and complete
1973# config.log. We remove comments because anyway the quotes in there
1974# would cause problems or look ugly.
DJ Delorie75086672009-08-22 14:31:161975# WARNING: Use '\'' to represent an apostrophe within the trap.
1976# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Daniel Jacobowitzf5bc1772007-10-11 18:15:021977trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1979 {
1980 echo
1981
1982 cat <<\_ASBOX
1983## ---------------- ##
1984## Cache variables. ##
1985## ---------------- ##
1986_ASBOX
1987 echo
1988 # The following way of writing the cache mishandles newlines in values,
DJ Delorie75086672009-08-22 14:31:161989(
1990 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in #(
1993 *${as_nl}*)
1994 case $ac_var in #(
1995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997 esac
1998 case $ac_var in #(
1999 _ | IFS | as_nl) ;; #(
2000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2001 *) { eval $ac_var=; unset $ac_var;} ;;
2002 esac ;;
2003 esac
2004 done
Daniel Jacobowitzf5bc1772007-10-11 18:15:022005 (set) 2>&1 |
DJ Delorie75086672009-08-22 14:31:162006 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2007 *${as_nl}ac_space=\ *)
Daniel Jacobowitzf5bc1772007-10-11 18:15:022008 sed -n \
DJ Delorie75086672009-08-22 14:31:162009"s/'\''/'\''\\\\'\'''\''/g;
2010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011 ;; #(
Daniel Jacobowitzf5bc1772007-10-11 18:15:022012 *)
DJ Delorie75086672009-08-22 14:31:162013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Daniel Jacobowitzf5bc1772007-10-11 18:15:022014 ;;
DJ Delorie75086672009-08-22 14:31:162015 esac |
2016 sort
2017)
Daniel Jacobowitzf5bc1772007-10-11 18:15:022018 echo
2019
2020 cat <<\_ASBOX
2021## ----------------- ##
2022## Output variables. ##
2023## ----------------- ##
2024_ASBOX
2025 echo
2026 for ac_var in $ac_subst_vars
2027 do
DJ Delorie75086672009-08-22 14:31:162028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
Daniel Jacobowitzf5bc1772007-10-11 18:15:022033 done | sort
2034 echo
2035
2036 if test -n "$ac_subst_files"; then
2037 cat <<\_ASBOX
DJ Delorie75086672009-08-22 14:31:162038## ------------------- ##
2039## File substitutions. ##
2040## ------------------- ##
Daniel Jacobowitzf5bc1772007-10-11 18:15:022041_ASBOX
2042 echo
2043 for ac_var in $ac_subst_files
2044 do
DJ Delorie75086672009-08-22 14:31:162045eval ac_val=\$$ac_var
2046case $ac_val in
2047*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048esac
2049$as_echo "$ac_var='\''$ac_val'\''"
Daniel Jacobowitzf5bc1772007-10-11 18:15:022050 done | sort
2051 echo
2052 fi
2053
2054 if test -s confdefs.h; then
2055 cat <<\_ASBOX
2056## ----------- ##
2057## confdefs.h. ##
2058## ----------- ##
2059_ASBOX
2060 echo
DJ Delorie75086672009-08-22 14:31:162061 cat confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:022062 echo
2063 fi
2064 test "$ac_signal" != 0 &&
DJ Delorie75086672009-08-22 14:31:162065 $as_echo "$as_me: caught signal $ac_signal"
2066 $as_echo "$as_me: exit $exit_status"
Daniel Jacobowitzf5bc1772007-10-11 18:15:022067 } >&5
DJ Delorie75086672009-08-22 14:31:162068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Daniel Jacobowitzf5bc1772007-10-11 18:15:022070 exit $exit_status
DJ Delorie75086672009-08-22 14:31:162071' 0
Daniel Jacobowitzf5bc1772007-10-11 18:15:022072for ac_signal in 1 2 13 15; do
DJ Delorie75086672009-08-22 14:31:162073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Daniel Jacobowitzf5bc1772007-10-11 18:15:022074done
2075ac_signal=0
2076
2077# confdefs.h avoids OS command line length limits that DEFS can exceed.
DJ Delorie75086672009-08-22 14:31:162078rm -f -r conftest* confdefs.h
2079
2080$as_echo "/* confdefs.h */" > confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:022081
2082# Predefined preprocessor variables.
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_NAME "$PACKAGE_NAME"
2086_ACEOF
2087
Daniel Jacobowitzf5bc1772007-10-11 18:15:022088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090_ACEOF
2091
Daniel Jacobowitzf5bc1772007-10-11 18:15:022092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_VERSION "$PACKAGE_VERSION"
2094_ACEOF
2095
Daniel Jacobowitzf5bc1772007-10-11 18:15:022096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_STRING "$PACKAGE_STRING"
2098_ACEOF
2099
Daniel Jacobowitzf5bc1772007-10-11 18:15:022100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102_ACEOF
2103
DJ Delorie75086672009-08-22 14:31:162104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_URL "$PACKAGE_URL"
2106_ACEOF
2107
Daniel Jacobowitzf5bc1772007-10-11 18:15:022108
2109# Let the site file select an alternate cache file if it wants to.
DJ Delorie75086672009-08-22 14:31:162110# Prefer an explicitly selected file to automatically selected ones.
2111ac_site_file1=NONE
2112ac_site_file2=NONE
2113if test -n "$CONFIG_SITE"; then
2114 ac_site_file1=$CONFIG_SITE
2115elif test "x$prefix" != xNONE; then
2116 ac_site_file1=$prefix/share/config.site
2117 ac_site_file2=$prefix/etc/config.site
2118else
2119 ac_site_file1=$ac_default_prefix/share/config.site
2120 ac_site_file2=$ac_default_prefix/etc/config.site
Daniel Jacobowitzf5bc1772007-10-11 18:15:022121fi
DJ Delorie75086672009-08-22 14:31:162122for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2123do
2124 test "x$ac_site_file" = xNONE && continue
Daniel Jacobowitzf5bc1772007-10-11 18:15:022125 if test -r "$ac_site_file"; then
DJ Delorie75086672009-08-22 14:31:162126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:022128 sed 's/^/| /' "$ac_site_file" >&5
2129 . "$ac_site_file"
2130 fi
2131done
2132
2133if test -r "$cache_file"; then
2134 # Some versions of bash will fail to source /dev/null (special
2135 # files actually), so we avoid doing that.
2136 if test -f "$cache_file"; then
DJ Delorie75086672009-08-22 14:31:162137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2138$as_echo "$as_me: loading cache $cache_file" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:022139 case $cache_file in
DJ Delorie75086672009-08-22 14:31:162140 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2141 *) . "./$cache_file";;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022142 esac
2143 fi
2144else
DJ Delorie75086672009-08-22 14:31:162145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2146$as_echo "$as_me: creating cache $cache_file" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:022147 >$cache_file
2148fi
2149
2150# Check that the precious variables saved in the cache have kept the same
2151# value.
2152ac_cache_corrupted=false
DJ Delorie75086672009-08-22 14:31:162153for ac_var in $ac_precious_vars; do
Daniel Jacobowitzf5bc1772007-10-11 18:15:022154 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2155 eval ac_new_set=\$ac_env_${ac_var}_set
DJ Delorie75086672009-08-22 14:31:162156 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2157 eval ac_new_val=\$ac_env_${ac_var}_value
Daniel Jacobowitzf5bc1772007-10-11 18:15:022158 case $ac_old_set,$ac_new_set in
2159 set,)
DJ Delorie75086672009-08-22 14:31:162160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2161$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:022162 ac_cache_corrupted=: ;;
2163 ,set)
DJ Delorie75086672009-08-22 14:31:162164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2165$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:022166 ac_cache_corrupted=: ;;
2167 ,);;
2168 *)
2169 if test "x$ac_old_val" != "x$ac_new_val"; then
DJ Delorie75086672009-08-22 14:31:162170# differences in whitespace do not lead to failure.
2171ac_old_val_w=`echo x $ac_old_val`
2172ac_new_val_w=`echo x $ac_new_val`
2173if test "$ac_old_val_w" != "$ac_new_val_w"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2175$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2176 ac_cache_corrupted=:
2177else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2179$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2180 eval $ac_var=\$ac_old_val
2181fi
2182{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2183$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2185$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:022186 fi;;
2187 esac
2188 # Pass precious variables to config.status.
2189 if test "$ac_new_set" = set; then
2190 case $ac_new_val in
DJ Delorie75086672009-08-22 14:31:162191 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022192 *) ac_arg=$ac_var=$ac_new_val ;;
2193 esac
2194 case " $ac_configure_args " in
2195 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
DJ Delorie75086672009-08-22 14:31:162196 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022197 esac
2198 fi
2199done
2200if $ac_cache_corrupted; then
DJ Delorie75086672009-08-22 14:31:162201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2204$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2205 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022206fi
DJ Delorie75086672009-08-22 14:31:162207## -------------------- ##
2208## Main body of script. ##
2209## -------------------- ##
Daniel Jacobowitzf5bc1772007-10-11 18:15:022210
2211ac_ext=c
2212ac_cpp='$CPP $CPPFLAGS'
2213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216
2217
2218
2219
2220
2221
2222
DJ Delorie564027b2013-07-09 16:04:442223ac_aux_dir=
2224for ac_dir in .. "$srcdir"/..; do
2225 for ac_t in install-sh install.sh shtool; do
2226 if test -f "$ac_dir/$ac_t"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/$ac_t -c"
2229 break 2
2230 fi
2231 done
2232done
2233if test -z "$ac_aux_dir"; then
2234 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2235fi
2236
2237# These three variables are undocumented and unsupported,
2238# and are intended to be withdrawn in a future Autoconf release.
2239# They can cause serious problems if a builder's source tree is in a directory
2240# whose full name contains unusual characters.
2241ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2244
2245
Daniel Jacobowitzf5bc1772007-10-11 18:15:022246
Daniel Jacobowitzf5bc1772007-10-11 18:15:022247# Checks for programs.
DJ Delorie75086672009-08-22 14:31:162248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2250set x ${MAKE-make}
2251ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2252if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2253 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022254else
2255 cat >conftest.make <<\_ACEOF
DJ Delorie75086672009-08-22 14:31:162256SHELL = /bin/sh
Daniel Jacobowitzf5bc1772007-10-11 18:15:022257all:
DJ Delorie75086672009-08-22 14:31:162258@echo '@@@%%%=$(MAKE)=@@@%%%'
Daniel Jacobowitzf5bc1772007-10-11 18:15:022259_ACEOF
2260# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
DJ Delorie75086672009-08-22 14:31:162261case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 *@@@%%%=?*=@@@%%%*)
2263 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 *)
2265 eval ac_cv_prog_make_${ac_make}_set=no;;
2266esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:022267rm -f conftest.make
2268fi
DJ Delorie75086672009-08-22 14:31:162269if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2271$as_echo "yes" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022272 SET_MAKE=
2273else
DJ Delorie75086672009-08-22 14:31:162274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2275$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022276 SET_MAKE="MAKE=${MAKE-make}"
2277fi
2278
2279ac_ext=c
2280ac_cpp='$CPP $CPPFLAGS'
2281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2286set dummy ${ac_tool_prefix}gcc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2288$as_echo_n "checking for $ac_word... " >&6; }
2289if test "${ac_cv_prog_CC+set}" = set; then :
2290 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022291else
2292 if test -n "$CC"; then
2293 ac_cv_prog_CC="$CC" # Let the user override the test.
2294else
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022302 ac_cv_prog_CC="${ac_tool_prefix}gcc"
DJ Delorie75086672009-08-22 14:31:162303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022304 break 2
2305 fi
2306done
DJ Delorie75086672009-08-22 14:31:162307 done
2308IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022309
2310fi
2311fi
2312CC=$ac_cv_prog_CC
2313if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2315$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022316else
DJ Delorie75086672009-08-22 14:31:162317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2318$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022319fi
2320
DJ Delorie75086672009-08-22 14:31:162321
Daniel Jacobowitzf5bc1772007-10-11 18:15:022322fi
2323if test -z "$ac_cv_prog_CC"; then
2324 ac_ct_CC=$CC
2325 # Extract the first word of "gcc", so it can be a program name with args.
2326set dummy gcc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2328$as_echo_n "checking for $ac_word... " >&6; }
2329if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2330 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022331else
2332 if test -n "$ac_ct_CC"; then
2333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334else
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022342 ac_cv_prog_ac_ct_CC="gcc"
DJ Delorie75086672009-08-22 14:31:162343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022344 break 2
2345 fi
2346done
DJ Delorie75086672009-08-22 14:31:162347 done
2348IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022349
2350fi
2351fi
2352ac_ct_CC=$ac_cv_prog_ac_ct_CC
2353if test -n "$ac_ct_CC"; then
DJ Delorie75086672009-08-22 14:31:162354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2355$as_echo "$ac_ct_CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022356else
DJ Delorie75086672009-08-22 14:31:162357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2358$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022359fi
2360
DJ Delorie75086672009-08-22 14:31:162361 if test "x$ac_ct_CC" = x; then
2362 CC=""
2363 else
2364 case $cross_compiling:$ac_tool_warned in
2365yes:)
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2368ac_tool_warned=yes ;;
2369esac
2370 CC=$ac_ct_CC
2371 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022372else
2373 CC="$ac_cv_prog_CC"
2374fi
2375
2376if test -z "$CC"; then
DJ Delorie75086672009-08-22 14:31:162377 if test -n "$ac_tool_prefix"; then
2378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Daniel Jacobowitzf5bc1772007-10-11 18:15:022379set dummy ${ac_tool_prefix}cc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2381$as_echo_n "checking for $ac_word... " >&6; }
2382if test "${ac_cv_prog_CC+set}" = set; then :
2383 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022384else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387else
2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022395 ac_cv_prog_CC="${ac_tool_prefix}cc"
DJ Delorie75086672009-08-22 14:31:162396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022397 break 2
2398 fi
2399done
DJ Delorie75086672009-08-22 14:31:162400 done
2401IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022402
2403fi
2404fi
2405CC=$ac_cv_prog_CC
2406if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2408$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022409else
DJ Delorie75086672009-08-22 14:31:162410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2411$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022412fi
2413
DJ Delorie75086672009-08-22 14:31:162414
Daniel Jacobowitzf5bc1772007-10-11 18:15:022415 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022416fi
2417if test -z "$CC"; then
2418 # Extract the first word of "cc", so it can be a program name with args.
2419set dummy cc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
2422if test "${ac_cv_prog_CC+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022424else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427else
2428 ac_prog_rejected=no
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2437 ac_prog_rejected=yes
2438 continue
2439 fi
2440 ac_cv_prog_CC="cc"
DJ Delorie75086672009-08-22 14:31:162441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022442 break 2
2443 fi
2444done
DJ Delorie75086672009-08-22 14:31:162445 done
2446IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022447
2448if test $ac_prog_rejected = yes; then
2449 # We found a bogon in the path, so make sure we never use it.
2450 set dummy $ac_cv_prog_CC
2451 shift
2452 if test $# != 0; then
2453 # We chose a different compiler from the bogus one.
2454 # However, it has the same basename, so the bogon will be chosen
2455 # first if we set CC to just the basename; use the full file name.
2456 shift
2457 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2458 fi
2459fi
2460fi
2461fi
2462CC=$ac_cv_prog_CC
2463if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2465$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022466else
DJ Delorie75086672009-08-22 14:31:162467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022469fi
2470
DJ Delorie75086672009-08-22 14:31:162471
Daniel Jacobowitzf5bc1772007-10-11 18:15:022472fi
2473if test -z "$CC"; then
2474 if test -n "$ac_tool_prefix"; then
DJ Delorie75086672009-08-22 14:31:162475 for ac_prog in cl.exe
Daniel Jacobowitzf5bc1772007-10-11 18:15:022476 do
2477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if test "${ac_cv_prog_CC+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
DJ Delorie75086672009-08-22 14:31:162495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022496 break 2
2497 fi
2498done
DJ Delorie75086672009-08-22 14:31:162499 done
2500IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2507$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022508else
DJ Delorie75086672009-08-22 14:31:162509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022511fi
2512
DJ Delorie75086672009-08-22 14:31:162513
Daniel Jacobowitzf5bc1772007-10-11 18:15:022514 test -n "$CC" && break
2515 done
2516fi
2517if test -z "$CC"; then
2518 ac_ct_CC=$CC
DJ Delorie75086672009-08-22 14:31:162519 for ac_prog in cl.exe
Daniel Jacobowitzf5bc1772007-10-11 18:15:022520do
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022527else
2528 if test -n "$ac_ct_CC"; then
2529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022538 ac_cv_prog_ac_ct_CC="$ac_prog"
DJ Delorie75086672009-08-22 14:31:162539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022540 break 2
2541 fi
2542done
DJ Delorie75086672009-08-22 14:31:162543 done
2544IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022545
2546fi
2547fi
2548ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549if test -n "$ac_ct_CC"; then
DJ Delorie75086672009-08-22 14:31:162550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2551$as_echo "$ac_ct_CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022552else
DJ Delorie75086672009-08-22 14:31:162553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022555fi
2556
DJ Delorie75086672009-08-22 14:31:162557
Daniel Jacobowitzf5bc1772007-10-11 18:15:022558 test -n "$ac_ct_CC" && break
2559done
2560
DJ Delorie75086672009-08-22 14:31:162561 if test "x$ac_ct_CC" = x; then
2562 CC=""
2563 else
2564 case $cross_compiling:$ac_tool_warned in
2565yes:)
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2568ac_tool_warned=yes ;;
2569esac
2570 CC=$ac_ct_CC
2571 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022572fi
2573
2574fi
2575
2576
DJ Delorie75086672009-08-22 14:31:162577test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579as_fn_error "no acceptable C compiler found in \$PATH
2580See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022581
2582# Provide some information about the compiler.
DJ Delorie75086672009-08-22 14:31:162583$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2584set X $ac_compile
2585ac_compiler=$2
2586for ac_option in --version -v -V -qversion; do
2587 { { ac_try="$ac_compiler $ac_option >&5"
2588case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591esac
2592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2593$as_echo "$ac_try_echo"; } >&5
2594 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Daniel Jacobowitzf5bc1772007-10-11 18:15:022595 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162596 if test -s conftest.err; then
2597 sed '10a\
2598... rest of stderr output deleted ...
2599 10q' conftest.err >conftest.er1
2600 cat conftest.er1 >&5
2601 rm -f conftest.er1 conftest.err
2602 fi
2603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604 test $ac_status = 0; }
2605done
Daniel Jacobowitzf5bc1772007-10-11 18:15:022606
DJ Delorie75086672009-08-22 14:31:162607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022608/* end confdefs.h. */
2609
2610int
2611main ()
2612{
2613
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618ac_clean_files_save=$ac_clean_files
DJ Delorie75086672009-08-22 14:31:162619ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Daniel Jacobowitzf5bc1772007-10-11 18:15:022620# Try to create an executable without -o first, disregard a.out.
2621# It will help us diagnose broken compilers, and finding out an intuition
2622# of exeext.
DJ Delorie75086672009-08-22 14:31:162623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2624$as_echo_n "checking for C compiler default output file name... " >&6; }
2625ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:022626
DJ Delorie75086672009-08-22 14:31:162627# The possible output files:
2628ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2629
2630ac_rmfiles=
2631for ac_file in $ac_files
2632do
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2635 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2636 esac
2637done
2638rm -f $ac_rmfiles
2639
2640if { { ac_try="$ac_link_default"
2641case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644esac
2645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2646$as_echo "$ac_try_echo"; } >&5
2647 (eval "$ac_link_default") 2>&5
2648 ac_status=$?
2649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2650 test $ac_status = 0; }; then :
2651 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2652# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2653# in a Makefile. We should not override ac_cv_exeext if it was cached,
2654# so that the user can short-circuit this test for compilers unknown to
2655# Autoconf.
2656for ac_file in $ac_files ''
Daniel Jacobowitzf5bc1772007-10-11 18:15:022657do
2658 test -f "$ac_file" || continue
2659 case $ac_file in
DJ Delorie75086672009-08-22 14:31:162660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Daniel Jacobowitzf5bc1772007-10-11 18:15:022661;;
2662 [ab].out )
2663# We found the default executable, but exeext='' is most
2664# certainly right.
2665break;;
2666 *.* )
DJ Delorie75086672009-08-22 14:31:162667if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2668then :; else
2669 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2670fi
2671# We set ac_cv_exeext here because the later test for it is not
2672# safe: cross compilers may not add the suffix if given an `-o'
2673# argument, so we may need to know it at that point already.
2674# Even if this section looks crufty: it has the advantage of
2675# actually working.
Daniel Jacobowitzf5bc1772007-10-11 18:15:022676break;;
2677 * )
2678break;;
2679 esac
2680done
DJ Delorie75086672009-08-22 14:31:162681test "$ac_cv_exeext" = no && ac_cv_exeext=
2682
Daniel Jacobowitzf5bc1772007-10-11 18:15:022683else
DJ Delorie75086672009-08-22 14:31:162684 ac_file=''
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2687$as_echo "$ac_file" >&6; }
2688if test -z "$ac_file"; then :
2689 $as_echo "$as_me: failed program was:" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022690sed 's/^/| /' conftest.$ac_ext >&5
2691
DJ Delorie75086672009-08-22 14:31:162692{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694{ as_fn_set_status 77
2695as_fn_error "C compiler cannot create executables
2696See \`config.log' for more details." "$LINENO" 5; }; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022697fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022698ac_exeext=$ac_cv_exeext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022699
DJ Delorie75086672009-08-22 14:31:162700# Check that the compiler produces executables we can run. If not, either
Daniel Jacobowitzf5bc1772007-10-11 18:15:022701# the compiler is broken, or we cross compile.
DJ Delorie75086672009-08-22 14:31:162702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2703$as_echo_n "checking whether the C compiler works... " >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022704# If not cross compiling, check that we can run a simple program.
2705if test "$cross_compiling" != yes; then
2706 if { ac_try='./$ac_file'
DJ Delorie75086672009-08-22 14:31:162707 { { case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712$as_echo "$ac_try_echo"; } >&5
2713 (eval "$ac_try") 2>&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022714 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716 test $ac_status = 0; }; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022717 cross_compiling=no
2718 else
2719 if test "$cross_compiling" = maybe; then
2720cross_compiling=yes
2721 else
DJ Delorie75086672009-08-22 14:31:162722{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724as_fn_error "cannot run C compiled programs.
Daniel Jacobowitzf5bc1772007-10-11 18:15:022725If you meant to cross compile, use \`--host'.
DJ Delorie75086672009-08-22 14:31:162726See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022727 fi
2728 fi
2729fi
DJ Delorie75086672009-08-22 14:31:162730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731$as_echo "yes" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022732
DJ Delorie75086672009-08-22 14:31:162733rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
Daniel Jacobowitzf5bc1772007-10-11 18:15:022734ac_clean_files=$ac_clean_files_save
DJ Delorie75086672009-08-22 14:31:162735# Check that the compiler produces executables we can run. If not, either
Daniel Jacobowitzf5bc1772007-10-11 18:15:022736# the compiler is broken, or we cross compile.
DJ Delorie75086672009-08-22 14:31:162737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2738$as_echo_n "checking whether we are cross compiling... " >&6; }
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2740$as_echo "$cross_compiling" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022741
DJ Delorie75086672009-08-22 14:31:162742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2743$as_echo_n "checking for suffix of executables... " >&6; }
2744if { { ac_try="$ac_link"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750$as_echo "$ac_try_echo"; } >&5
2751 (eval "$ac_link") 2>&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022752 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2754 test $ac_status = 0; }; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:022755 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2756# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2757# work properly (i.e., refer to `conftest.exe'), while it won't with
2758# `rm'.
2759for ac_file in conftest.exe conftest conftest.*; do
2760 test -f "$ac_file" || continue
2761 case $ac_file in
DJ Delorie75086672009-08-22 14:31:162762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022763 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:022764 break;;
2765 * ) break;;
2766 esac
2767done
2768else
DJ Delorie75086672009-08-22 14:31:162769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2771as_fn_error "cannot compute suffix of executables: cannot compile and link
2772See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022773fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022774rm -f conftest$ac_cv_exeext
DJ Delorie75086672009-08-22 14:31:162775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2776$as_echo "$ac_cv_exeext" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022777
2778rm -f conftest.$ac_ext
2779EXEEXT=$ac_cv_exeext
2780ac_exeext=$EXEEXT
DJ Delorie75086672009-08-22 14:31:162781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2782$as_echo_n "checking for suffix of object files... " >&6; }
2783if test "${ac_cv_objext+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022785else
DJ Delorie75086672009-08-22 14:31:162786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022787/* end confdefs.h. */
2788
2789int
2790main ()
2791{
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797rm -f conftest.o conftest.obj
DJ Delorie75086672009-08-22 14:31:162798if { { ac_try="$ac_compile"
2799case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802esac
2803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804$as_echo "$ac_try_echo"; } >&5
2805 (eval "$ac_compile") 2>&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022806 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; }; then :
2809 for ac_file in conftest.o conftest.obj conftest.*; do
2810 test -f "$ac_file" || continue;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022811 case $ac_file in
DJ Delorie75086672009-08-22 14:31:162812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2814 break;;
2815 esac
2816done
2817else
DJ Delorie75086672009-08-22 14:31:162818 $as_echo "$as_me: failed program was:" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022819sed 's/^/| /' conftest.$ac_ext >&5
2820
DJ Delorie75086672009-08-22 14:31:162821{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823as_fn_error "cannot compute suffix of object files: cannot compile
2824See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022825fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022826rm -f conftest.$ac_cv_objext conftest.$ac_ext
2827fi
DJ Delorie75086672009-08-22 14:31:162828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2829$as_echo "$ac_cv_objext" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022830OBJEXT=$ac_cv_objext
2831ac_objext=$OBJEXT
DJ Delorie75086672009-08-22 14:31:162832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2833$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2834if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022836else
DJ Delorie75086672009-08-22 14:31:162837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843#ifndef __GNUC__
2844 choke me
2845#endif
2846
2847 ;
2848 return 0;
2849}
2850_ACEOF
DJ Delorie75086672009-08-22 14:31:162851if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:022852 ac_compiler_gnu=yes
2853else
DJ Delorie75086672009-08-22 14:31:162854 ac_compiler_gnu=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:022855fi
DJ Delorie75086672009-08-22 14:31:162856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022857ac_cv_c_compiler_gnu=$ac_compiler_gnu
2858
2859fi
DJ Delorie75086672009-08-22 14:31:162860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2861$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2862if test $ac_compiler_gnu = yes; then
2863 GCC=yes
2864else
2865 GCC=
2866fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022867ac_test_CFLAGS=${CFLAGS+set}
2868ac_save_CFLAGS=$CFLAGS
DJ Delorie75086672009-08-22 14:31:162869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2870$as_echo_n "checking whether $CC accepts -g... " >&6; }
2871if test "${ac_cv_prog_cc_g+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022873else
DJ Delorie75086672009-08-22 14:31:162874 ac_save_c_werror_flag=$ac_c_werror_flag
2875 ac_c_werror_flag=yes
2876 ac_cv_prog_cc_g=no
2877 CFLAGS="-g"
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022879/* end confdefs.h. */
2880
2881int
2882main ()
2883{
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
DJ Delorie75086672009-08-22 14:31:162889if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:022890 ac_cv_prog_cc_g=yes
2891else
DJ Delorie75086672009-08-22 14:31:162892 CFLAGS=""
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h. */
Daniel Jacobowitzf5bc1772007-10-11 18:15:022895
DJ Delorie75086672009-08-22 14:31:162896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_compile "$LINENO"; then :
2905
2906else
2907 ac_c_werror_flag=$ac_save_c_werror_flag
2908 CFLAGS="-g"
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h. */
2911
2912int
2913main ()
2914{
2915
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920if ac_fn_c_try_compile "$LINENO"; then :
2921 ac_cv_prog_cc_g=yes
Daniel Jacobowitzf5bc1772007-10-11 18:15:022922fi
DJ Delorie75086672009-08-22 14:31:162923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022924fi
DJ Delorie75086672009-08-22 14:31:162925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926fi
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 ac_c_werror_flag=$ac_save_c_werror_flag
2929fi
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2931$as_echo "$ac_cv_prog_cc_g" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022932if test "$ac_test_CFLAGS" = set; then
2933 CFLAGS=$ac_save_CFLAGS
2934elif test $ac_cv_prog_cc_g = yes; then
2935 if test "$GCC" = yes; then
2936 CFLAGS="-g -O2"
2937 else
2938 CFLAGS="-g"
2939 fi
2940else
2941 if test "$GCC" = yes; then
2942 CFLAGS="-O2"
2943 else
2944 CFLAGS=
2945 fi
2946fi
DJ Delorie75086672009-08-22 14:31:162947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2948$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2949if test "${ac_cv_prog_cc_c89+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022951else
DJ Delorie75086672009-08-22 14:31:162952 ac_cv_prog_cc_c89=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:022953ac_save_CC=$CC
DJ Delorie75086672009-08-22 14:31:162954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022955/* end confdefs.h. */
2956#include <stdarg.h>
2957#include <stdio.h>
2958#include <sys/types.h>
2959#include <sys/stat.h>
2960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2961struct buf { int x; };
2962FILE * (*rcsopen) (struct buf *, struct stat *, int);
2963static char *e (p, i)
2964 char **p;
2965 int i;
2966{
2967 return p[i];
2968}
2969static char *f (char * (*g) (char **, int), char **p, ...)
2970{
2971 char *s;
2972 va_list v;
2973 va_start (v,p);
2974 s = g (p, va_arg (v,int));
2975 va_end (v);
2976 return s;
2977}
2978
2979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2980 function prototypes and stuff, but not '\xHH' hex character constants.
2981 These don't provoke an error unfortunately, instead are silently treated
DJ Delorie75086672009-08-22 14:31:162982 as 'x'. The following induces an error, until -std is added to get
Daniel Jacobowitzf5bc1772007-10-11 18:15:022983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2984 array size at least. It's necessary to write '\x00'==0 to get something
DJ Delorie75086672009-08-22 14:31:162985 that's true only with -std. */
Daniel Jacobowitzf5bc1772007-10-11 18:15:022986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2987
DJ Delorie75086672009-08-22 14:31:162988/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2989 inside strings and character constants. */
2990#define FOO(x) 'x'
2991int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2992
Daniel Jacobowitzf5bc1772007-10-11 18:15:022993int test (int i, double x);
2994struct s1 {int (*f) (int a);};
2995struct s2 {int (*f) (double a);};
2996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997int argc;
2998char **argv;
2999int
3000main ()
3001{
3002return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3003 ;
3004 return 0;
3005}
3006_ACEOF
DJ Delorie75086672009-08-22 14:31:163007for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3008-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Daniel Jacobowitzf5bc1772007-10-11 18:15:023009do
3010 CC="$ac_save_CC $ac_arg"
DJ Delorie75086672009-08-22 14:31:163011 if ac_fn_c_try_compile "$LINENO"; then :
3012 ac_cv_prog_cc_c89=$ac_arg
Daniel Jacobowitzf5bc1772007-10-11 18:15:023013fi
DJ Delorie75086672009-08-22 14:31:163014rm -f core conftest.err conftest.$ac_objext
3015 test "x$ac_cv_prog_cc_c89" != "xno" && break
Daniel Jacobowitzf5bc1772007-10-11 18:15:023016done
DJ Delorie75086672009-08-22 14:31:163017rm -f conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023018CC=$ac_save_CC
3019
3020fi
DJ Delorie75086672009-08-22 14:31:163021# AC_CACHE_VAL
3022case "x$ac_cv_prog_cc_c89" in
3023 x)
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3025$as_echo "none needed" >&6; } ;;
3026 xno)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3028$as_echo "unsupported" >&6; } ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023029 *)
DJ Delorie75086672009-08-22 14:31:163030 CC="$CC $ac_cv_prog_cc_c89"
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3032$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023033esac
DJ Delorie75086672009-08-22 14:31:163034if test "x$ac_cv_prog_cc_c89" != xno; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023035
3036fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023037
Daniel Jacobowitzf5bc1772007-10-11 18:15:023038ac_ext=c
3039ac_cpp='$CPP $CPPFLAGS'
3040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if test "${ac_cv_prog_RANLIB+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023051else
3052 if test -n "$RANLIB"; then
3053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
DJ Delorie75086672009-08-22 14:31:163063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023064 break 2
3065 fi
3066done
DJ Delorie75086672009-08-22 14:31:163067 done
3068IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023069
3070fi
3071fi
3072RANLIB=$ac_cv_prog_RANLIB
3073if test -n "$RANLIB"; then
DJ Delorie75086672009-08-22 14:31:163074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3075$as_echo "$RANLIB" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023076else
DJ Delorie75086672009-08-22 14:31:163077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023079fi
3080
DJ Delorie75086672009-08-22 14:31:163081
Daniel Jacobowitzf5bc1772007-10-11 18:15:023082fi
3083if test -z "$ac_cv_prog_RANLIB"; then
3084 ac_ct_RANLIB=$RANLIB
3085 # Extract the first word of "ranlib", so it can be a program name with args.
3086set dummy ranlib; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023091else
3092 if test -n "$ac_ct_RANLIB"; then
3093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023102 ac_cv_prog_ac_ct_RANLIB="ranlib"
DJ Delorie75086672009-08-22 14:31:163103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023104 break 2
3105 fi
3106done
DJ Delorie75086672009-08-22 14:31:163107 done
3108IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023109
Daniel Jacobowitzf5bc1772007-10-11 18:15:023110fi
3111fi
3112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3113if test -n "$ac_ct_RANLIB"; then
DJ Delorie75086672009-08-22 14:31:163114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3115$as_echo "$ac_ct_RANLIB" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023116else
DJ Delorie75086672009-08-22 14:31:163117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023119fi
3120
DJ Delorie75086672009-08-22 14:31:163121 if test "x$ac_ct_RANLIB" = x; then
3122 RANLIB=":"
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125yes:)
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128ac_tool_warned=yes ;;
3129esac
3130 RANLIB=$ac_ct_RANLIB
3131 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023132else
3133 RANLIB="$ac_cv_prog_RANLIB"
3134fi
3135
3136
3137MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3138for ac_prog in aclocal
3139do
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
3144if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023146else
3147 if test -n "$ACLOCAL"; then
3148 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023157 ac_cv_prog_ACLOCAL="$ac_prog"
DJ Delorie75086672009-08-22 14:31:163158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023159 break 2
3160 fi
3161done
DJ Delorie75086672009-08-22 14:31:163162 done
3163IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023164
3165fi
3166fi
3167ACLOCAL=$ac_cv_prog_ACLOCAL
3168if test -n "$ACLOCAL"; then
DJ Delorie75086672009-08-22 14:31:163169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
3170$as_echo "$ACLOCAL" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023171else
DJ Delorie75086672009-08-22 14:31:163172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023174fi
3175
DJ Delorie75086672009-08-22 14:31:163176
Daniel Jacobowitzf5bc1772007-10-11 18:15:023177 test -n "$ACLOCAL" && break
3178done
3179test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
3180
3181for ac_prog in autoconf
3182do
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
3187if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023189else
3190 if test -n "$AUTOCONF"; then
3191 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023200 ac_cv_prog_AUTOCONF="$ac_prog"
DJ Delorie75086672009-08-22 14:31:163201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023202 break 2
3203 fi
3204done
DJ Delorie75086672009-08-22 14:31:163205 done
3206IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023207
3208fi
3209fi
3210AUTOCONF=$ac_cv_prog_AUTOCONF
3211if test -n "$AUTOCONF"; then
DJ Delorie75086672009-08-22 14:31:163212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
3213$as_echo "$AUTOCONF" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023214else
DJ Delorie75086672009-08-22 14:31:163215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023217fi
3218
DJ Delorie75086672009-08-22 14:31:163219
Daniel Jacobowitzf5bc1772007-10-11 18:15:023220 test -n "$AUTOCONF" && break
3221done
3222test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
3223
3224for ac_prog in autoheader
3225do
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023232else
3233 if test -n "$AUTOHEADER"; then
3234 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
3235else
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023243 ac_cv_prog_AUTOHEADER="$ac_prog"
DJ Delorie75086672009-08-22 14:31:163244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023245 break 2
3246 fi
3247done
DJ Delorie75086672009-08-22 14:31:163248 done
3249IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023250
3251fi
3252fi
3253AUTOHEADER=$ac_cv_prog_AUTOHEADER
3254if test -n "$AUTOHEADER"; then
DJ Delorie75086672009-08-22 14:31:163255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
3256$as_echo "$AUTOHEADER" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023257else
DJ Delorie75086672009-08-22 14:31:163258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023260fi
3261
DJ Delorie75086672009-08-22 14:31:163262
Daniel Jacobowitzf5bc1772007-10-11 18:15:023263 test -n "$AUTOHEADER" && break
3264done
3265test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
3266
3267
3268# Figure out what compiler warnings we can enable.
3269# See config/warnings.m4 for details.
3270
3271
3272WARN_CFLAGS=
3273save_CFLAGS="$CFLAGS"
Andreas Schwaba53e62c2011-12-19 13:20:243274for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
Daniel Jacobowitzf5bc1772007-10-11 18:15:023275 -Wmissing-prototypes -Wold-style-definition \
3276 -Wmissing-format-attribute -Wcast-qual; do
Andreas Schwaba53e62c2011-12-19 13:20:243277 # Do the check with the no- prefix removed since gcc silently
3278 # accepts any -Wno-* option on purpose
3279 case $real_option in
Andreas Schwab604fcd62011-12-20 17:01:303280 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
Andreas Schwaba53e62c2011-12-19 13:20:243281 *) option=$real_option ;;
3282 esac
DJ Delorie75086672009-08-22 14:31:163283 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
Daniel Jacobowitzf5bc1772007-10-11 18:15:023284
DJ Delorie75086672009-08-22 14:31:163285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3286$as_echo_n "checking whether $CC supports $option... " >&6; }
3287if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
3288 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023289else
3290 CFLAGS="$option"
DJ Delorie75086672009-08-22 14:31:163291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023292/* end confdefs.h. */
3293
3294int
3295main ()
3296{
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
DJ Delorie75086672009-08-22 14:31:163302if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023303 eval "$as_acx_Woption=yes"
3304else
DJ Delorie75086672009-08-22 14:31:163305 eval "$as_acx_Woption=no"
Daniel Jacobowitzf5bc1772007-10-11 18:15:023306fi
DJ Delorie75086672009-08-22 14:31:163307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023308
3309fi
DJ Delorie75086672009-08-22 14:31:163310eval ac_res=\$$as_acx_Woption
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3312$as_echo "$ac_res" >&6; }
3313 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
Andreas Schwaba53e62c2011-12-19 13:20:243314 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option"
Daniel Jacobowitzf5bc1772007-10-11 18:15:023315fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023316 done
3317CFLAGS="$save_CFLAGS"
3318
3319WARN_PEDANTIC=
Andreas Schwaba53e62c2011-12-19 13:20:243320# Do the check with the no- prefix removed from the warning options
3321# since gcc silently accepts any -Wno-* option on purpose
DJ Delorie75086672009-08-22 14:31:163322if test "$GCC" = yes; then :
Andreas Schwaba53e62c2011-12-19 13:20:243323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
3324$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
3325if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
DJ Delorie75086672009-08-22 14:31:163326 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023327else
3328 save_CFLAGS="$CFLAGS"
Andreas Schwaba53e62c2011-12-19 13:20:243329CFLAGS="-pedantic -Wlong-long"
DJ Delorie75086672009-08-22 14:31:163330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023331/* end confdefs.h. */
3332
3333int
3334main ()
3335{
3336
3337 ;
3338 return 0;
3339}
3340_ACEOF
DJ Delorie75086672009-08-22 14:31:163341if ac_fn_c_try_compile "$LINENO"; then :
Andreas Schwaba53e62c2011-12-19 13:20:243342 acx_cv_prog_cc_pedantic__Wlong_long=yes
Daniel Jacobowitzf5bc1772007-10-11 18:15:023343else
Andreas Schwaba53e62c2011-12-19 13:20:243344 acx_cv_prog_cc_pedantic__Wlong_long=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023345fi
DJ Delorie75086672009-08-22 14:31:163346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023347CFLAGS="$save_CFLAGS"
3348fi
Andreas Schwaba53e62c2011-12-19 13:20:243349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
3350$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
3351if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023352 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3353fi
3354
Daniel Jacobowitzf5bc1772007-10-11 18:15:023355fi
3356
3357
Daniel Jacobowitzf5bc1772007-10-11 18:15:023358# Only enable with --enable-werror-always until existing warnings are
3359# corrected.
3360WERROR=
DJ Delorie75086672009-08-22 14:31:163361# Check whether --enable-werror-always was given.
3362if test "${enable_werror_always+set}" = set; then :
3363 enableval=$enable_werror_always;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023364else
3365 enable_werror_always=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023366fi
3367
DJ Delorie75086672009-08-22 14:31:163368if test $enable_werror_always = yes; then :
3369 WERROR="$WERROR${WERROR:+ }-Werror"
3370fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023371
3372
3373
3374# Checks for header files.
3375ac_ext=c
3376ac_cpp='$CPP $CPPFLAGS'
3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379ac_compiler_gnu=$ac_cv_c_compiler_gnu
DJ Delorie75086672009-08-22 14:31:163380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3381$as_echo_n "checking how to run the C preprocessor... " >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023382# On Suns, sometimes $CPP names a directory.
3383if test -n "$CPP" && test -d "$CPP"; then
3384 CPP=
3385fi
3386if test -z "$CPP"; then
DJ Delorie75086672009-08-22 14:31:163387 if test "${ac_cv_prog_CPP+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023389else
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3392 do
3393 ac_preproc_ok=false
3394for ac_c_preproc_warn_flag in '' yes
3395do
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
DJ Delorie75086672009-08-22 14:31:163402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023403/* end confdefs.h. */
3404#ifdef __STDC__
3405# include <limits.h>
3406#else
3407# include <assert.h>
3408#endif
3409 Syntax error
3410_ACEOF
DJ Delorie75086672009-08-22 14:31:163411if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023412
DJ Delorie75086672009-08-22 14:31:163413else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023414 # Broken: fails on valid input.
3415continue
3416fi
3417rm -f conftest.err conftest.$ac_ext
3418
DJ Delorie75086672009-08-22 14:31:163419 # OK, works on sane cases. Now check whether nonexistent headers
Daniel Jacobowitzf5bc1772007-10-11 18:15:023420 # can be detected and how.
DJ Delorie75086672009-08-22 14:31:163421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023422/* end confdefs.h. */
3423#include <ac_nonexistent.h>
3424_ACEOF
DJ Delorie75086672009-08-22 14:31:163425if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023426 # Broken: success on invalid input.
3427continue
3428else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023429 # Passes both tests.
3430ac_preproc_ok=:
3431break
3432fi
3433rm -f conftest.err conftest.$ac_ext
3434
3435done
3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437rm -f conftest.err conftest.$ac_ext
DJ Delorie75086672009-08-22 14:31:163438if $ac_preproc_ok; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023439 break
3440fi
3441
3442 done
3443 ac_cv_prog_CPP=$CPP
3444
3445fi
3446 CPP=$ac_cv_prog_CPP
3447else
3448 ac_cv_prog_CPP=$CPP
3449fi
DJ Delorie75086672009-08-22 14:31:163450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3451$as_echo "$CPP" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023452ac_preproc_ok=false
3453for ac_c_preproc_warn_flag in '' yes
3454do
3455 # Use a header file that comes with gcc, so configuring glibc
3456 # with a fresh cross-compiler works.
3457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3458 # <limits.h> exists even on freestanding compilers.
3459 # On the NeXT, cc -E runs the code through the compiler's parser,
3460 # not just through cpp. "Syntax error" is here to catch this case.
DJ Delorie75086672009-08-22 14:31:163461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023462/* end confdefs.h. */
3463#ifdef __STDC__
3464# include <limits.h>
3465#else
3466# include <assert.h>
3467#endif
3468 Syntax error
3469_ACEOF
DJ Delorie75086672009-08-22 14:31:163470if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023471
DJ Delorie75086672009-08-22 14:31:163472else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023473 # Broken: fails on valid input.
3474continue
3475fi
3476rm -f conftest.err conftest.$ac_ext
3477
DJ Delorie75086672009-08-22 14:31:163478 # OK, works on sane cases. Now check whether nonexistent headers
Daniel Jacobowitzf5bc1772007-10-11 18:15:023479 # can be detected and how.
DJ Delorie75086672009-08-22 14:31:163480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023481/* end confdefs.h. */
3482#include <ac_nonexistent.h>
3483_ACEOF
DJ Delorie75086672009-08-22 14:31:163484if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023485 # Broken: success on invalid input.
3486continue
3487else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023488 # Passes both tests.
3489ac_preproc_ok=:
3490break
3491fi
3492rm -f conftest.err conftest.$ac_ext
3493
3494done
3495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496rm -f conftest.err conftest.$ac_ext
DJ Delorie75086672009-08-22 14:31:163497if $ac_preproc_ok; then :
3498
Daniel Jacobowitzf5bc1772007-10-11 18:15:023499else
DJ Delorie75086672009-08-22 14:31:163500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502as_fn_error "C preprocessor \"$CPP\" fails sanity check
3503See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023504fi
3505
3506ac_ext=c
3507ac_cpp='$CPP $CPPFLAGS'
3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511
3512
DJ Delorie75086672009-08-22 14:31:163513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3514$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3515if test "${ac_cv_path_GREP+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023517else
DJ Delorie75086672009-08-22 14:31:163518 if test -z "$GREP"; then
3519 ac_path_GREP_found=false
3520 # Loop through the user's path and test for each of PROGNAME-LIST
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_prog in grep ggrep; do
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3529 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3530# Check for GNU ac_path_GREP and select it if it is found.
3531 # Check for GNU $ac_path_GREP
3532case `"$ac_path_GREP" --version 2>&1` in
3533*GNU*)
3534 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3535*)
3536 ac_count=0
3537 $as_echo_n 0123456789 >"conftest.in"
3538 while :
3539 do
3540 cat "conftest.in" "conftest.in" >"conftest.tmp"
3541 mv "conftest.tmp" "conftest.in"
3542 cp "conftest.in" "conftest.nl"
3543 $as_echo 'GREP' >> "conftest.nl"
3544 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3546 as_fn_arith $ac_count + 1 && ac_count=$as_val
3547 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3548 # Best one so far, save it but keep looking for a better one
3549 ac_cv_path_GREP="$ac_path_GREP"
3550 ac_path_GREP_max=$ac_count
Daniel Jacobowitzf5bc1772007-10-11 18:15:023551 fi
DJ Delorie75086672009-08-22 14:31:163552 # 10*(2^10) chars as input seems more than enough
3553 test $ac_count -gt 10 && break
3554 done
3555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3556esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:023557
DJ Delorie75086672009-08-22 14:31:163558 $ac_path_GREP_found && break 3
3559 done
3560 done
3561 done
3562IFS=$as_save_IFS
3563 if test -z "$ac_cv_path_GREP"; then
3564 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3565 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023566else
DJ Delorie75086672009-08-22 14:31:163567 ac_cv_path_GREP=$GREP
3568fi
3569
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3572$as_echo "$ac_cv_path_GREP" >&6; }
3573 GREP="$ac_cv_path_GREP"
3574
3575
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3577$as_echo_n "checking for egrep... " >&6; }
3578if test "${ac_cv_path_EGREP+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3580else
3581 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3582 then ac_cv_path_EGREP="$GREP -E"
3583 else
3584 if test -z "$EGREP"; then
3585 ac_path_EGREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in egrep; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3595 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3596# Check for GNU ac_path_EGREP and select it if it is found.
3597 # Check for GNU $ac_path_EGREP
3598case `"$ac_path_EGREP" --version 2>&1` in
3599*GNU*)
3600 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3601*)
3602 ac_count=0
3603 $as_echo_n 0123456789 >"conftest.in"
3604 while :
3605 do
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
3609 $as_echo 'EGREP' >> "conftest.nl"
3610 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612 as_fn_arith $ac_count + 1 && ac_count=$as_val
3613 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_EGREP="$ac_path_EGREP"
3616 ac_path_EGREP_max=$ac_count
3617 fi
3618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3620 done
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622esac
3623
3624 $ac_path_EGREP_found && break 3
3625 done
3626 done
3627 done
3628IFS=$as_save_IFS
3629 if test -z "$ac_cv_path_EGREP"; then
3630 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3631 fi
3632else
3633 ac_cv_path_EGREP=$EGREP
3634fi
3635
3636 fi
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3639$as_echo "$ac_cv_path_EGREP" >&6; }
3640 EGREP="$ac_cv_path_EGREP"
3641
3642
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3644$as_echo_n "checking for ANSI C header files... " >&6; }
3645if test "${ac_cv_header_stdc+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023649/* end confdefs.h. */
3650#include <stdlib.h>
3651#include <stdarg.h>
3652#include <string.h>
3653#include <float.h>
3654
3655int
3656main ()
3657{
3658
3659 ;
3660 return 0;
3661}
3662_ACEOF
DJ Delorie75086672009-08-22 14:31:163663if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023664 ac_cv_header_stdc=yes
3665else
DJ Delorie75086672009-08-22 14:31:163666 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023667fi
DJ Delorie75086672009-08-22 14:31:163668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023669
3670if test $ac_cv_header_stdc = yes; then
3671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:163672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023673/* end confdefs.h. */
3674#include <string.h>
3675
3676_ACEOF
3677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:163678 $EGREP "memchr" >/dev/null 2>&1; then :
3679
Daniel Jacobowitzf5bc1772007-10-11 18:15:023680else
3681 ac_cv_header_stdc=no
3682fi
3683rm -f conftest*
3684
3685fi
3686
3687if test $ac_cv_header_stdc = yes; then
3688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:163689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023690/* end confdefs.h. */
3691#include <stdlib.h>
3692
3693_ACEOF
3694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:163695 $EGREP "free" >/dev/null 2>&1; then :
3696
Daniel Jacobowitzf5bc1772007-10-11 18:15:023697else
3698 ac_cv_header_stdc=no
3699fi
3700rm -f conftest*
3701
3702fi
3703
3704if test $ac_cv_header_stdc = yes; then
3705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
DJ Delorie75086672009-08-22 14:31:163706 if test "$cross_compiling" = yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023707 :
3708else
DJ Delorie75086672009-08-22 14:31:163709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023710/* end confdefs.h. */
3711#include <ctype.h>
DJ Delorie75086672009-08-22 14:31:163712#include <stdlib.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:023713#if ((' ' & 0x0FF) == 0x020)
3714# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3715# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3716#else
3717# define ISLOWER(c) \
3718 (('a' <= (c) && (c) <= 'i') \
3719 || ('j' <= (c) && (c) <= 'r') \
3720 || ('s' <= (c) && (c) <= 'z'))
3721# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3722#endif
3723
3724#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3725int
3726main ()
3727{
3728 int i;
3729 for (i = 0; i < 256; i++)
3730 if (XOR (islower (i), ISLOWER (i))
3731|| toupper (i) != TOUPPER (i))
DJ Delorie75086672009-08-22 14:31:163732 return 2;
3733 return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023734}
3735_ACEOF
DJ Delorie75086672009-08-22 14:31:163736if ac_fn_c_try_run "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023737
DJ Delorie75086672009-08-22 14:31:163738else
3739 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023740fi
DJ Delorie75086672009-08-22 14:31:163741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3742 conftest.$ac_objext conftest.beam conftest.$ac_ext
3743fi
3744
Daniel Jacobowitzf5bc1772007-10-11 18:15:023745fi
3746fi
DJ Delorie75086672009-08-22 14:31:163747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3748$as_echo "$ac_cv_header_stdc" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023749if test $ac_cv_header_stdc = yes; then
3750
DJ Delorie75086672009-08-22 14:31:163751$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:023752
3753fi
3754
3755# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Daniel Jacobowitzf5bc1772007-10-11 18:15:023756for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3757 inttypes.h stdint.h unistd.h
DJ Delorie75086672009-08-22 14:31:163758do :
3759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3760ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3761"
3762eval as_val=\$$as_ac_Header
3763 if test "x$as_val" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023764 cat >>confdefs.h <<_ACEOF
DJ Delorie75086672009-08-22 14:31:163765#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Daniel Jacobowitzf5bc1772007-10-11 18:15:023766_ACEOF
3767
3768fi
3769
3770done
3771
3772
Daniel Jacobowitzf5bc1772007-10-11 18:15:023773for ac_header in ctype.h stddef.h string.h stdio.h
DJ Delorie75086672009-08-22 14:31:163774do :
3775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3776ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3777eval as_val=\$$as_ac_Header
3778 if test "x$as_val" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023779 cat >>confdefs.h <<_ACEOF
DJ Delorie75086672009-08-22 14:31:163780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Daniel Jacobowitzf5bc1772007-10-11 18:15:023781_ACEOF
3782
3783fi
3784
3785done
3786
3787
3788
DJ Delorieb1dfe692009-09-09 20:25:353789inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
DJ Delorie52c745b2009-09-09 17:08:233790
DJ Delorieb1dfe692009-09-09 20:25:353791acx_cv_header_stdint=stddef.h
3792acx_cv_header_stdint_kind="(already complete)"
3793for i in stdint.h $inttype_headers; do
3794 unset ac_cv_type_uintptr_t
3795 unset ac_cv_type_uintmax_t
3796 unset ac_cv_type_int_least32_t
3797 unset ac_cv_type_int_fast32_t
3798 unset ac_cv_type_uint64_t
3799 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
3800 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
3801#include <$i>
3802"
DJ Delorie52c745b2009-09-09 17:08:233803if test "x$ac_cv_type_uintmax_t" = x""yes; then :
DJ Delorieb1dfe692009-09-09 20:25:353804 acx_cv_header_stdint=$i
DJ Delorie52c745b2009-09-09 17:08:233805else
DJ Delorieb1dfe692009-09-09 20:25:353806 continue
DJ Delorie52c745b2009-09-09 17:08:233807fi
3808
DJ Delorieb1dfe692009-09-09 20:25:353809 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
3810#include <$i>
3811"
DJ Delorie75086672009-08-22 14:31:163812if test "x$ac_cv_type_uintptr_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023813
Daniel Jacobowitzf5bc1772007-10-11 18:15:023814else
DJ Delorieb1dfe692009-09-09 20:25:353815 acx_cv_header_stdint_kind="(mostly complete)"
Daniel Jacobowitzf5bc1772007-10-11 18:15:023816fi
3817
DJ Delorieb1dfe692009-09-09 20:25:353818 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
3819#include <$i>
DJ Delorie75086672009-08-22 14:31:163820"
3821if test "x$ac_cv_type_int_least32_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023822
DJ Delorieb1dfe692009-09-09 20:25:353823else
3824 acx_cv_header_stdint_kind="(mostly complete)"
DJ Delorie52c745b2009-09-09 17:08:233825fi
DJ Delorieb1dfe692009-09-09 20:25:353826
3827 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
3828#include <$i>
DJ Delorie75086672009-08-22 14:31:163829"
3830if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023831
DJ Delorieb1dfe692009-09-09 20:25:353832else
3833 acx_cv_header_stdint_kind="(mostly complete)"
3834fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023835
DJ Delorieb1dfe692009-09-09 20:25:353836 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
3837#include <$i>
3838"
3839if test "x$ac_cv_type_uint64_t" = x""yes; then :
3840
3841else
3842 acx_cv_header_stdint_kind="(lacks uint64_t)"
3843fi
3844
3845 break
3846done
3847if test "$acx_cv_header_stdint" = stddef.h; then
3848 acx_cv_header_stdint_kind="(lacks uintmax_t)"
3849 for i in stdint.h $inttype_headers; do
3850 unset ac_cv_type_uintptr_t
3851 unset ac_cv_type_uint32_t
3852 unset ac_cv_type_uint64_t
3853 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
3854 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
3855#include <$i>
3856"
3857if test "x$ac_cv_type_uint32_t" = x""yes; then :
3858 acx_cv_header_stdint=$i
3859else
3860 continue
3861fi
3862
3863 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
3864#include <$i>
3865"
3866if test "x$ac_cv_type_uint64_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023867
Daniel Jacobowitzf5bc1772007-10-11 18:15:023868fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023869
DJ Delorieb1dfe692009-09-09 20:25:353870 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
3871#include <$i>
3872"
3873if test "x$ac_cv_type_uintptr_t" = x""yes; then :
3874
3875fi
3876
3877 break
3878 done
3879fi
3880if test "$acx_cv_header_stdint" = stddef.h; then
3881 acx_cv_header_stdint_kind="(u_intXX_t style)"
3882 for i in sys/types.h $inttype_headers; do
3883 unset ac_cv_type_u_int32_t
3884 unset ac_cv_type_u_int64_t
3885 $as_echo_n "looking for u_intXX_t types in $i, " >&6
3886 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
3887#include <$i>
3888"
3889if test "x$ac_cv_type_u_int32_t" = x""yes; then :
3890 acx_cv_header_stdint=$i
3891else
3892 continue
3893fi
3894
3895 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
3896#include <$i>
3897"
3898if test "x$ac_cv_type_u_int64_t" = x""yes; then :
3899
3900fi
3901
3902 break
3903 done
3904fi
3905if test "$acx_cv_header_stdint" = stddef.h; then
3906 acx_cv_header_stdint_kind="(using manual detection)"
3907fi
3908
3909test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3910test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3911test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3912test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3913test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3914
3915# ----------------- Summarize what we found so far
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
3918$as_echo_n "checking what to include in gstdint.h... " >&6; }
3919
3920case `$as_basename -- gstdint.h ||
3921$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3922 Xgstdint.h : 'X\(//\)$' \| \
3923 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
3924$as_echo X/gstdint.h |
3925 sed '/^.*\/\([^/][^/]*\)\/*$/{
3926 s//\1/
3927 q
3928 }
3929 /^X\/\(\/\/\)$/{
3930 s//\1/
3931 q
3932 }
3933 /^X\/\(\/\).*/{
3934 s//\1/
3935 q
3936 }
3937 s/.*/./; q'` in
3938 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
3939$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3940 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
3941$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3942 *) ;;
3943esac
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3946$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
3947
3948# ----------------- done included file, check C basic types --------
3949
3950# Lacking an uintptr_t? Test size of void *
3951case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3952 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
3953# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3954# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3955# This bug is HP SR number 8606223364.
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3957$as_echo_n "checking size of void *... " >&6; }
3958if test "${ac_cv_sizeof_void_p+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
3962
3963else
3964 if test "$ac_cv_type_void_p" = yes; then
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967{ as_fn_set_status 77
3968as_fn_error "cannot compute sizeof (void *)
3969See \`config.log' for more details." "$LINENO" 5; }; }
3970 else
3971 ac_cv_sizeof_void_p=0
3972 fi
3973fi
3974
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
3977$as_echo "$ac_cv_sizeof_void_p" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023978
Daniel Jacobowitzf5bc1772007-10-11 18:15:023979
Daniel Jacobowitzf5bc1772007-10-11 18:15:023980
DJ Delorieb1dfe692009-09-09 20:25:353981cat >>confdefs.h <<_ACEOF
3982#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3983_ACEOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:023984
DJ Delorieb1dfe692009-09-09 20:25:353985 ;;
3986esac
3987
3988# Lacking an uint64_t? Test size of long
3989case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
3990 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
3991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3993# This bug is HP SR number 8606223364.
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
3995$as_echo_n "checking size of long... " >&6; }
3996if test "${ac_cv_sizeof_long+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4000
4001else
4002 if test "$ac_cv_type_long" = yes; then
4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005{ as_fn_set_status 77
4006as_fn_error "cannot compute sizeof (long)
4007See \`config.log' for more details." "$LINENO" 5; }; }
4008 else
4009 ac_cv_sizeof_long=0
4010 fi
4011fi
4012
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4015$as_echo "$ac_cv_sizeof_long" >&6; }
4016
4017
4018
4019cat >>confdefs.h <<_ACEOF
4020#define SIZEOF_LONG $ac_cv_sizeof_long
4021_ACEOF
4022
4023 ;;
4024esac
4025
4026if test $acx_cv_header_stdint = stddef.h; then
4027 # Lacking a good header? Test size of everything and deduce all types.
4028 # The cast to long int works around a bug in the HP C Compiler
4029# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4030# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4031# This bug is HP SR number 8606223364.
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4033$as_echo_n "checking size of int... " >&6; }
4034if test "${ac_cv_sizeof_int+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4036else
4037 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4038
4039else
4040 if test "$ac_cv_type_int" = yes; then
4041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043{ as_fn_set_status 77
4044as_fn_error "cannot compute sizeof (int)
4045See \`config.log' for more details." "$LINENO" 5; }; }
4046 else
4047 ac_cv_sizeof_int=0
4048 fi
4049fi
4050
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4053$as_echo "$ac_cv_sizeof_int" >&6; }
4054
4055
4056
4057cat >>confdefs.h <<_ACEOF
4058#define SIZEOF_INT $ac_cv_sizeof_int
4059_ACEOF
4060
4061
4062 # The cast to long int works around a bug in the HP C Compiler
4063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4065# This bug is HP SR number 8606223364.
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4067$as_echo_n "checking size of short... " >&6; }
4068if test "${ac_cv_sizeof_short+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4070else
4071 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4072
4073else
4074 if test "$ac_cv_type_short" = yes; then
4075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077{ as_fn_set_status 77
4078as_fn_error "cannot compute sizeof (short)
4079See \`config.log' for more details." "$LINENO" 5; }; }
4080 else
4081 ac_cv_sizeof_short=0
4082 fi
4083fi
4084
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4087$as_echo "$ac_cv_sizeof_short" >&6; }
4088
4089
4090
4091cat >>confdefs.h <<_ACEOF
4092#define SIZEOF_SHORT $ac_cv_sizeof_short
4093_ACEOF
4094
4095
4096 # The cast to long int works around a bug in the HP C Compiler
4097# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4098# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4099# This bug is HP SR number 8606223364.
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4101$as_echo_n "checking size of char... " >&6; }
4102if test "${ac_cv_sizeof_char+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104else
4105 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
4106
4107else
4108 if test "$ac_cv_type_char" = yes; then
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111{ as_fn_set_status 77
4112as_fn_error "cannot compute sizeof (char)
4113See \`config.log' for more details." "$LINENO" 5; }; }
4114 else
4115 ac_cv_sizeof_char=0
4116 fi
4117fi
4118
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4121$as_echo "$ac_cv_sizeof_char" >&6; }
4122
4123
4124
4125cat >>confdefs.h <<_ACEOF
4126#define SIZEOF_CHAR $ac_cv_sizeof_char
4127_ACEOF
4128
4129
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
4132$as_echo_n "checking for type equivalent to int8_t... " >&6; }
4133 case "$ac_cv_sizeof_char" in
4134 1) acx_cv_type_int8_t=char ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064135 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354136 esac
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
4138$as_echo "$acx_cv_type_int8_t" >&6; }
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
4141$as_echo_n "checking for type equivalent to int16_t... " >&6; }
4142 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
4143 2:*) acx_cv_type_int16_t=int ;;
4144 *:2) acx_cv_type_int16_t=short ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064145 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354146 esac
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
4148$as_echo "$acx_cv_type_int16_t" >&6; }
4149
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
4151$as_echo_n "checking for type equivalent to int32_t... " >&6; }
4152 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
4153 4:*) acx_cv_type_int32_t=int ;;
4154 *:4) acx_cv_type_int32_t=long ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064155 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354156 esac
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
4158$as_echo "$acx_cv_type_int32_t" >&6; }
4159fi
4160
4161# These tests are here to make the output prettier
4162
4163if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
4164 case "$ac_cv_sizeof_long" in
4165 8) acx_cv_type_int64_t=long ;;
4166 esac
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
4168$as_echo_n "checking for type equivalent to int64_t... " >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
4170$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
4171fi
4172
4173# Now we can use the above types
4174
4175if test "$ac_cv_type_uintptr_t" != yes; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
4177$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
4178 case $ac_cv_sizeof_void_p in
4179 2) acx_cv_type_intptr_t=int16_t ;;
4180 4) acx_cv_type_intptr_t=int32_t ;;
4181 8) acx_cv_type_intptr_t=int64_t ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064182 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354183 esac
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
4185$as_echo "$acx_cv_type_intptr_t" >&6; }
4186fi
4187
4188# ----------------- done all checks, emit header -------------
DJ Delorie75086672009-08-22 14:31:164189ac_config_commands="$ac_config_commands gstdint.h"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024190
4191
4192
4193
4194# Checks for typedefs, structures, and compiler characteristics.
DJ Delorie75086672009-08-22 14:31:164195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4196$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4197if test "${ac_cv_c_const+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024199else
DJ Delorie75086672009-08-22 14:31:164200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024201/* end confdefs.h. */
4202
4203int
4204main ()
4205{
4206/* FIXME: Include the comments suggested by Paul. */
4207#ifndef __cplusplus
4208 /* Ultrix mips cc rejects this. */
4209 typedef int charset[2];
DJ Delorie75086672009-08-22 14:31:164210 const charset cs;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024211 /* SunOS 4.1.1 cc rejects this. */
DJ Delorie75086672009-08-22 14:31:164212 char const *const *pcpcc;
4213 char **ppc;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024214 /* NEC SVR4.0.2 mips cc rejects this. */
4215 struct point {int x, y;};
4216 static struct point const zero = {0,0};
4217 /* AIX XL C 1.02.0.0 rejects this.
4218 It does not let you subtract one const X* pointer from another in
4219 an arm of an if-expression whose if-part is not a constant
4220 expression */
4221 const char *g = "string";
DJ Delorie75086672009-08-22 14:31:164222 pcpcc = &g + (g ? g-g : 0);
Daniel Jacobowitzf5bc1772007-10-11 18:15:024223 /* HPUX 7.0 cc rejects these. */
DJ Delorie75086672009-08-22 14:31:164224 ++pcpcc;
4225 ppc = (char**) pcpcc;
4226 pcpcc = (char const *const *) ppc;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024227 { /* SCO 3.2v4 cc rejects this. */
4228 char *t;
4229 char const *s = 0 ? (char *) 0 : (char const *) 0;
4230
4231 *t++ = 0;
DJ Delorie75086672009-08-22 14:31:164232 if (s) return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024233 }
4234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4235 int x[] = {25, 17};
4236 const int *foo = &x[0];
4237 ++foo;
4238 }
4239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4240 typedef const int *iptr;
4241 iptr p = 0;
4242 ++p;
4243 }
4244 { /* AIX XL C 1.02.0.0 rejects this saying
4245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4246 struct s { int j; const int *ap[3]; };
4247 struct s *b; b->j = 5;
4248 }
4249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4250 const int foo = 10;
DJ Delorie75086672009-08-22 14:31:164251 if (!foo) return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024252 }
DJ Delorie75086672009-08-22 14:31:164253 return !cs[0] && !zero.x;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024254#endif
4255
4256 ;
4257 return 0;
4258}
4259_ACEOF
DJ Delorie75086672009-08-22 14:31:164260if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024261 ac_cv_c_const=yes
4262else
DJ Delorie75086672009-08-22 14:31:164263 ac_cv_c_const=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024264fi
DJ Delorie75086672009-08-22 14:31:164265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024266fi
DJ Delorie75086672009-08-22 14:31:164267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4268$as_echo "$ac_cv_c_const" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024269if test $ac_cv_c_const = no; then
4270
DJ Delorie75086672009-08-22 14:31:164271$as_echo "#define const /**/" >>confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:024272
4273fi
4274
DJ Delorie75086672009-08-22 14:31:164275ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4276if test "x$ac_cv_type_off_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024277
Daniel Jacobowitzf5bc1772007-10-11 18:15:024278else
4279
4280cat >>confdefs.h <<_ACEOF
DJ Delorie75086672009-08-22 14:31:164281#define off_t long int
Daniel Jacobowitzf5bc1772007-10-11 18:15:024282_ACEOF
4283
4284fi
4285
DJ Delorie75086672009-08-22 14:31:164286# The cast to long int works around a bug in the HP C Compiler
4287# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4288# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4289# This bug is HP SR number 8606223364.
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4291$as_echo_n "checking size of int... " >&6; }
4292if test "${ac_cv_sizeof_int+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024294else
DJ Delorie75086672009-08-22 14:31:164295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024296
Daniel Jacobowitzf5bc1772007-10-11 18:15:024297else
4298 if test "$ac_cv_type_int" = yes; then
DJ Delorie75086672009-08-22 14:31:164299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301{ as_fn_set_status 77
4302as_fn_error "cannot compute sizeof (int)
4303See \`config.log' for more details." "$LINENO" 5; }; }
4304 else
4305 ac_cv_sizeof_int=0
4306 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024307fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024308
Daniel Jacobowitzf5bc1772007-10-11 18:15:024309fi
DJ Delorie75086672009-08-22 14:31:164310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4311$as_echo "$ac_cv_sizeof_int" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024312
Daniel Jacobowitzf5bc1772007-10-11 18:15:024313
Daniel Jacobowitzf5bc1772007-10-11 18:15:024314
Daniel Jacobowitzf5bc1772007-10-11 18:15:024315cat >>confdefs.h <<_ACEOF
4316#define SIZEOF_INT $ac_cv_sizeof_int
4317_ACEOF
4318
4319
DJ Delorie75086672009-08-22 14:31:164320# The cast to long int works around a bug in the HP C Compiler
4321# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4322# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4323# This bug is HP SR number 8606223364.
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4325$as_echo_n "checking size of long... " >&6; }
4326if test "${ac_cv_sizeof_long+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024328else
DJ Delorie75086672009-08-22 14:31:164329 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024330
Daniel Jacobowitzf5bc1772007-10-11 18:15:024331else
4332 if test "$ac_cv_type_long" = yes; then
DJ Delorie75086672009-08-22 14:31:164333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335{ as_fn_set_status 77
4336as_fn_error "cannot compute sizeof (long)
4337See \`config.log' for more details." "$LINENO" 5; }; }
4338 else
4339 ac_cv_sizeof_long=0
4340 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024341fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024342
Daniel Jacobowitzf5bc1772007-10-11 18:15:024343fi
DJ Delorie75086672009-08-22 14:31:164344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4345$as_echo "$ac_cv_sizeof_long" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024346
Daniel Jacobowitzf5bc1772007-10-11 18:15:024347
Daniel Jacobowitzf5bc1772007-10-11 18:15:024348
Daniel Jacobowitzf5bc1772007-10-11 18:15:024349cat >>confdefs.h <<_ACEOF
4350#define SIZEOF_LONG $ac_cv_sizeof_long
4351_ACEOF
4352
4353
4354
4355# Checks for library functions.
DJ Delorie75086672009-08-22 14:31:164356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4357$as_echo_n "checking for ANSI C header files... " >&6; }
4358if test "${ac_cv_header_stdc+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024360else
DJ Delorie75086672009-08-22 14:31:164361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024362/* end confdefs.h. */
4363#include <stdlib.h>
4364#include <stdarg.h>
4365#include <string.h>
4366#include <float.h>
4367
4368int
4369main ()
4370{
4371
4372 ;
4373 return 0;
4374}
4375_ACEOF
DJ Delorie75086672009-08-22 14:31:164376if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024377 ac_cv_header_stdc=yes
4378else
DJ Delorie75086672009-08-22 14:31:164379 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024380fi
DJ Delorie75086672009-08-22 14:31:164381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024382
4383if test $ac_cv_header_stdc = yes; then
4384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:164385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024386/* end confdefs.h. */
4387#include <string.h>
4388
4389_ACEOF
4390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:164391 $EGREP "memchr" >/dev/null 2>&1; then :
4392
Daniel Jacobowitzf5bc1772007-10-11 18:15:024393else
4394 ac_cv_header_stdc=no
4395fi
4396rm -f conftest*
4397
4398fi
4399
4400if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:164402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024403/* end confdefs.h. */
4404#include <stdlib.h>
4405
4406_ACEOF
4407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:164408 $EGREP "free" >/dev/null 2>&1; then :
4409
Daniel Jacobowitzf5bc1772007-10-11 18:15:024410else
4411 ac_cv_header_stdc=no
4412fi
4413rm -f conftest*
4414
4415fi
4416
4417if test $ac_cv_header_stdc = yes; then
4418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
DJ Delorie75086672009-08-22 14:31:164419 if test "$cross_compiling" = yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024420 :
4421else
DJ Delorie75086672009-08-22 14:31:164422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024423/* end confdefs.h. */
4424#include <ctype.h>
DJ Delorie75086672009-08-22 14:31:164425#include <stdlib.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:024426#if ((' ' & 0x0FF) == 0x020)
4427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4429#else
4430# define ISLOWER(c) \
4431 (('a' <= (c) && (c) <= 'i') \
4432 || ('j' <= (c) && (c) <= 'r') \
4433 || ('s' <= (c) && (c) <= 'z'))
4434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4435#endif
4436
4437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4438int
4439main ()
4440{
4441 int i;
4442 for (i = 0; i < 256; i++)
4443 if (XOR (islower (i), ISLOWER (i))
4444|| toupper (i) != TOUPPER (i))
DJ Delorie75086672009-08-22 14:31:164445 return 2;
4446 return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024447}
4448_ACEOF
DJ Delorie75086672009-08-22 14:31:164449if ac_fn_c_try_run "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024450
DJ Delorie75086672009-08-22 14:31:164451else
4452 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024453fi
DJ Delorie75086672009-08-22 14:31:164454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4455 conftest.$ac_objext conftest.beam conftest.$ac_ext
4456fi
4457
Daniel Jacobowitzf5bc1772007-10-11 18:15:024458fi
4459fi
DJ Delorie75086672009-08-22 14:31:164460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4461$as_echo "$ac_cv_header_stdc" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024462if test $ac_cv_header_stdc = yes; then
4463
DJ Delorie75086672009-08-22 14:31:164464$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:024465
4466fi
4467
4468
DJ Delorie75086672009-08-22 14:31:164469# Check whether --enable-maintainer-mode was given.
4470if test "${enable_maintainer_mode+set}" = set; then :
4471 enableval=$enable_maintainer_mode;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024472else
4473 enable_maintainer_mode=no
DJ Delorie75086672009-08-22 14:31:164474fi
4475
Daniel Jacobowitzf5bc1772007-10-11 18:15:024476
4477if test "x$enable_maintainer_mode" = xno; then
4478 MAINT='#'
4479else
4480 MAINT=
4481fi
4482
4483
Daniel Jacobowitzf5bc1772007-10-11 18:15:024484# Make sure we can run config.sub.
DJ Delorie75086672009-08-22 14:31:164485$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4486 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:024487
DJ Delorie75086672009-08-22 14:31:164488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4489$as_echo_n "checking build system type... " >&6; }
4490if test "${ac_cv_build+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024492else
DJ Delorie75086672009-08-22 14:31:164493 ac_build_alias=$build_alias
4494test "x$ac_build_alias" = x &&
4495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4496test "x$ac_build_alias" = x &&
4497 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4498ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4499 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:024500
4501fi
DJ Delorie75086672009-08-22 14:31:164502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4503$as_echo "$ac_cv_build" >&6; }
4504case $ac_cv_build in
4505*-*-*) ;;
4506*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4507esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024508build=$ac_cv_build
DJ Delorie75086672009-08-22 14:31:164509ac_save_IFS=$IFS; IFS='-'
4510set x $ac_cv_build
4511shift
4512build_cpu=$1
4513build_vendor=$2
4514shift; shift
4515# Remember, the first character of IFS is used to create $*,
4516# except with old shells:
4517build_os=$*
4518IFS=$ac_save_IFS
4519case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024520
4521
DJ Delorie75086672009-08-22 14:31:164522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4523$as_echo_n "checking host system type... " >&6; }
4524if test "${ac_cv_host+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024526else
DJ Delorie75086672009-08-22 14:31:164527 if test "x$host_alias" = x; then
4528 ac_cv_host=$ac_cv_build
4529else
4530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4531 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4532fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024533
4534fi
DJ Delorie75086672009-08-22 14:31:164535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4536$as_echo "$ac_cv_host" >&6; }
4537case $ac_cv_host in
4538*-*-*) ;;
4539*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4540esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024541host=$ac_cv_host
DJ Delorie75086672009-08-22 14:31:164542ac_save_IFS=$IFS; IFS='-'
4543set x $ac_cv_host
4544shift
4545host_cpu=$1
4546host_vendor=$2
4547shift; shift
4548# Remember, the first character of IFS is used to create $*,
4549# except with old shells:
4550host_os=$*
4551IFS=$ac_save_IFS
4552case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024553
4554
DJ Delorie75086672009-08-22 14:31:164555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4556$as_echo_n "checking target system type... " >&6; }
4557if test "${ac_cv_target+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024559else
DJ Delorie75086672009-08-22 14:31:164560 if test "x$target_alias" = x; then
4561 ac_cv_target=$ac_cv_host
4562else
4563 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4564 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4565fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024566
4567fi
DJ Delorie75086672009-08-22 14:31:164568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4569$as_echo "$ac_cv_target" >&6; }
4570case $ac_cv_target in
4571*-*-*) ;;
4572*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4573esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024574target=$ac_cv_target
DJ Delorie75086672009-08-22 14:31:164575ac_save_IFS=$IFS; IFS='-'
4576set x $ac_cv_target
4577shift
4578target_cpu=$1
4579target_vendor=$2
4580shift; shift
4581# Remember, the first character of IFS is used to create $*,
4582# except with old shells:
4583target_os=$*
4584IFS=$ac_save_IFS
4585case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024586
4587
4588# The aliases save the names the user supplied, while $host etc.
4589# will get canonicalized.
4590test -n "$target_alias" &&
4591 test "$program_prefix$program_suffix$program_transform_name" = \
4592 NONENONEs,x,x, &&
4593 program_prefix=${target_alias}-
4594
4595# Default decimal format
4596# If you change the defaults here, be sure to change them in the GCC directory also
DJ Delorie75086672009-08-22 14:31:164597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decimal floating point" >&5
4598$as_echo_n "checking for decimal floating point... " >&6; }
Andreas Krebbel0b51ce02010-09-03 13:30:584599
4600
DJ Delorie75086672009-08-22 14:31:164601# Check whether --enable-decimal-float was given.
4602if test "${enable_decimal_float+set}" = set; then :
4603 enableval=$enable_decimal_float;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024604 case $enable_decimal_float in
DJ Delorieaf8b82c2010-09-07 19:28:014605 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
DJ Delorie75086672009-08-22 14:31:164606 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4607Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024608 esac
4609
4610else
4611
4612 case $target in
DJ Delorie9ec3c242010-09-10 23:17:284613 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
Thomas Schwinge416a7dc2012-11-11 10:59:504614 i?86*-*-gnu* | \
DJ Delorie9ec3c242010-09-10 23:17:284615 i?86*-*-mingw* | x86_64*-*-mingw* | \
DJ Delorie3afd2652013-03-28 02:00:054616 i?86*-*-cygwin* | x86_64*-*-cygwin*)
Daniel Jacobowitzf5bc1772007-10-11 18:15:024617 enable_decimal_float=yes
4618 ;;
4619 *)
DJ Delorieaf8b82c2010-09-07 19:28:014620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4621$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:024622 enable_decimal_float=no
4623 ;;
4624 esac
4625
DJ Delorie75086672009-08-22 14:31:164626fi
4627
Daniel Jacobowitzf5bc1772007-10-11 18:15:024628
4629# x86's use BID format instead of DPD
Andreas Krebbel0b51ce02010-09-03 13:30:584630case x$enable_decimal_float in
4631 xyes)
4632 case $target in
4633 i?86*-*-* | x86_64*-*-*)
4634enable_decimal_float=bid
4635;;
4636 *)
4637enable_decimal_float=dpd
4638;;
4639 esac
DJ Delorieaf8b82c2010-09-07 19:28:014640 default_decimal_float=$enable_decimal_float
Andreas Krebbel0b51ce02010-09-03 13:30:584641 ;;
4642 xno)
4643 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4644 # dependency on libdecnumber.
DJ Delorieaf8b82c2010-09-07 19:28:014645 default_decimal_float=dpd
Andreas Krebbel0b51ce02010-09-03 13:30:584646 ;;
4647esac
4648
4649
4650
Daniel Jacobowitzf5bc1772007-10-11 18:15:024651
DJ Delorieaf8b82c2010-09-07 19:28:014652# Use default_decimal_float for dependency.
4653enable_decimal_float=$default_decimal_float
4654
DJ Delorie8f3bca32007-10-31 18:37:194655# If BID is being used, additional objects should be linked in.
4656if test x$enable_decimal_float = xbid; then
4657 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
4658else
4659 ADDITIONAL_OBJS=
4660fi
4661
DJ Delorie75086672009-08-22 14:31:164662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decimal_float" >&5
4663$as_echo "$enable_decimal_float" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024664
4665
DJ Delorie8f3bca32007-10-31 18:37:194666
DJ Delorie75086672009-08-22 14:31:164667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4668$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4669if test "${ac_cv_c_bigendian+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024671else
DJ Delorie75086672009-08-22 14:31:164672 ac_cv_c_bigendian=unknown
4673 # See if we're dealing with a universal compiler.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
4676#ifndef __APPLE_CC__
4677 not a universal capable compiler
4678 #endif
4679 typedef int dummy;
4680
Daniel Jacobowitzf5bc1772007-10-11 18:15:024681_ACEOF
DJ Delorie75086672009-08-22 14:31:164682if ac_fn_c_try_compile "$LINENO"; then :
4683
4684# Check for potential -arch flags. It is not universal unless
4685# there are at least two -arch flags with different values.
4686ac_arch=
4687ac_prev=
4688for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4689 if test -n "$ac_prev"; then
4690 case $ac_word in
4691 i?86 | x86_64 | ppc | ppc64)
4692 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4693 ac_arch=$ac_word
4694 else
4695 ac_cv_c_bigendian=universal
4696 break
4697 fi
4698 ;;
4699 esac
4700 ac_prev=
4701 elif test "x$ac_word" = "x-arch"; then
4702 ac_prev=arch
4703 fi
4704 done
4705fi
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 if test $ac_cv_c_bigendian = unknown; then
4708 # See if sys/param.h defines the BYTE_ORDER macro.
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024710/* end confdefs.h. */
4711#include <sys/types.h>
DJ Delorie75086672009-08-22 14:31:164712 #include <sys/param.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:024713
4714int
4715main ()
4716{
DJ Delorie75086672009-08-22 14:31:164717#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4718 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4719 && LITTLE_ENDIAN)
4720 bogus endian macros
4721 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:024722
4723 ;
4724 return 0;
4725}
4726_ACEOF
DJ Delorie75086672009-08-22 14:31:164727if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024728 # It does; now see whether it defined to BIG_ENDIAN or not.
DJ Delorie75086672009-08-22 14:31:164729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024730/* end confdefs.h. */
4731#include <sys/types.h>
DJ Delorie75086672009-08-22 14:31:164732#include <sys/param.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:024733
4734int
4735main ()
4736{
4737#if BYTE_ORDER != BIG_ENDIAN
DJ Delorie75086672009-08-22 14:31:164738 not big endian
4739#endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:024740
4741 ;
4742 return 0;
4743}
4744_ACEOF
DJ Delorie75086672009-08-22 14:31:164745if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024746 ac_cv_c_bigendian=yes
4747else
DJ Delorie75086672009-08-22 14:31:164748 ac_cv_c_bigendian=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024749fi
DJ Delorie75086672009-08-22 14:31:164750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 if test $ac_cv_c_bigendian = unknown; then
4755 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024757/* end confdefs.h. */
DJ Delorie75086672009-08-22 14:31:164758#include <limits.h>
4759
Daniel Jacobowitzf5bc1772007-10-11 18:15:024760int
4761main ()
4762{
DJ Delorie75086672009-08-22 14:31:164763#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4764 bogus endian macros
4765 #endif
4766
Daniel Jacobowitzf5bc1772007-10-11 18:15:024767 ;
4768 return 0;
4769}
4770_ACEOF
DJ Delorie75086672009-08-22 14:31:164771if ac_fn_c_try_compile "$LINENO"; then :
4772 # It does; now see whether it defined to _BIG_ENDIAN or not.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024774/* end confdefs.h. */
DJ Delorie75086672009-08-22 14:31:164775#include <limits.h>
4776
Daniel Jacobowitzf5bc1772007-10-11 18:15:024777int
4778main ()
4779{
DJ Delorie75086672009-08-22 14:31:164780#ifndef _BIG_ENDIAN
4781 not big endian
4782#endif
4783
4784 ;
4785 return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024786}
4787_ACEOF
DJ Delorie75086672009-08-22 14:31:164788if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_c_bigendian=yes
4790else
4791 ac_cv_c_bigendian=no
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794fi
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 if test $ac_cv_c_bigendian = unknown; then
4798 # Compile a test program.
4799 if test "$cross_compiling" = yes; then :
4800 # Try to guess by grepping values from an object file.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803short int ascii_mm[] =
4804 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4805short int ascii_ii[] =
4806 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4807int use_ascii (int i) {
4808 return ascii_mm[i] + ascii_ii[i];
4809}
4810short int ebcdic_ii[] =
4811 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4812short int ebcdic_mm[] =
4813 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4814int use_ebcdic (int i) {
4815 return ebcdic_mm[i] + ebcdic_ii[i];
4816}
4817extern int foo;
4818
4819int
4820main ()
4821{
4822return use_ascii (foo) == use_ebcdic (foo);
4823 ;
4824 return 0;
4825}
4826_ACEOF
4827if ac_fn_c_try_compile "$LINENO"; then :
4828 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4829 ac_cv_c_bigendian=yes
4830 fi
4831 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4832 if test "$ac_cv_c_bigendian" = unknown; then
4833ac_cv_c_bigendian=no
4834 else
4835# finding both strings is unlikely to happen, but who knows?
4836ac_cv_c_bigendian=unknown
4837 fi
4838 fi
4839fi
4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841else
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844$ac_includes_default
4845int
4846main ()
4847{
4848
4849 /* Are we little or big endian? From Harbison&Steele. */
4850 union
4851 {
4852 long int l;
4853 char c[sizeof (long int)];
4854 } u;
4855 u.l = 1;
4856 return u.c[sizeof (long int) - 1] == 1;
4857
4858 ;
4859 return 0;
4860}
4861_ACEOF
4862if ac_fn_c_try_run "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024863 ac_cv_c_bigendian=no
4864else
DJ Delorie75086672009-08-22 14:31:164865 ac_cv_c_bigendian=yes
4866fi
4867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4868 conftest.$ac_objext conftest.beam conftest.$ac_ext
4869fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024870
DJ Delorie75086672009-08-22 14:31:164871 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024872fi
DJ Delorie75086672009-08-22 14:31:164873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4874$as_echo "$ac_cv_c_bigendian" >&6; }
4875 case $ac_cv_c_bigendian in #(
4876 yes)
4877 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4878;; #(
4879 no)
4880 ;; #(
4881 universal)
Daniel Jacobowitzf5bc1772007-10-11 18:15:024882
DJ Delorie75086672009-08-22 14:31:164883$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4884
4885 ;; #(
4886 *)
4887 as_fn_error "unknown endianness
4888 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4889 esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024890
4891
4892# Output.
4893
DJ Delorie75086672009-08-22 14:31:164894ac_config_headers="$ac_config_headers config.h:config.in"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024895
DJ Delorie75086672009-08-22 14:31:164896ac_config_files="$ac_config_files Makefile"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024897
4898cat >confcache <<\_ACEOF
4899# This file is a shell script that caches the results of configure
4900# tests run on this system so they can be shared between configure
4901# scripts and configure runs, see configure's option --config-cache.
4902# It is not useful on other systems. If it contains results you don't
4903# want to keep, you may remove or edit it.
4904#
4905# config.status only pays attention to the cache file if you give it
4906# the --recheck option to rerun configure.
4907#
4908# `ac_cv_env_foo' variables (set or unset) will be overridden when
4909# loading this file, other *unset* `ac_cv_foo' will be assigned the
4910# following values.
4911
4912_ACEOF
4913
4914# The following way of writing the cache mishandles newlines in values,
4915# but we know of no workaround that is simple, portable, and efficient.
DJ Delorie75086672009-08-22 14:31:164916# So, we kill variables containing newlines.
Daniel Jacobowitzf5bc1772007-10-11 18:15:024917# Ultrix sh set writes to stderr and can't be redirected directly,
4918# and sets the high bit in the cache file unless we assign to the vars.
DJ Delorie75086672009-08-22 14:31:164919(
4920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4921 eval ac_val=\$$ac_var
4922 case $ac_val in #(
4923 *${as_nl}*)
4924 case $ac_var in #(
4925 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4926$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4927 esac
4928 case $ac_var in #(
4929 _ | IFS | as_nl) ;; #(
4930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4931 *) { eval $ac_var=; unset $ac_var;} ;;
4932 esac ;;
4933 esac
4934 done
4935
Daniel Jacobowitzf5bc1772007-10-11 18:15:024936 (set) 2>&1 |
DJ Delorie75086672009-08-22 14:31:164937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4938 *${as_nl}ac_space=\ *)
4939 # `set' does not quote correctly, so add quotes: double-quote
4940 # substitution turns \\\\ into \\, and sed turns \\ into \.
Daniel Jacobowitzf5bc1772007-10-11 18:15:024941 sed -n \
4942"s/'/'\\\\''/g;
4943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
DJ Delorie75086672009-08-22 14:31:164944 ;; #(
Daniel Jacobowitzf5bc1772007-10-11 18:15:024945 *)
4946 # `set' quotes correctly as required by POSIX, so do not add quotes.
DJ Delorie75086672009-08-22 14:31:164947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024948 ;;
DJ Delorie75086672009-08-22 14:31:164949 esac |
4950 sort
4951) |
Daniel Jacobowitzf5bc1772007-10-11 18:15:024952 sed '
DJ Delorie75086672009-08-22 14:31:164953 /^ac_cv_env_/b end
Daniel Jacobowitzf5bc1772007-10-11 18:15:024954 t clear
DJ Delorie75086672009-08-22 14:31:164955 :clear
Daniel Jacobowitzf5bc1772007-10-11 18:15:024956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4957 t end
DJ Delorie75086672009-08-22 14:31:164958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4959 :end' >>confcache
4960if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4961 if test -w "$cache_file"; then
4962 test "x$cache_file" != "x/dev/null" &&
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4964$as_echo "$as_me: updating cache $cache_file" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:024965 cat confcache >$cache_file
4966 else
DJ Delorie75086672009-08-22 14:31:164967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4968$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:024969 fi
4970fi
4971rm -f confcache
4972
4973test "x$prefix" = xNONE && prefix=$ac_default_prefix
4974# Let make expand exec_prefix.
4975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4976
Daniel Jacobowitzf5bc1772007-10-11 18:15:024977DEFS=-DHAVE_CONFIG_H
4978
4979ac_libobjs=
4980ac_ltlibobjs=
4981for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4982 # 1. Remove the extension, and $U if already installed.
DJ Delorie75086672009-08-22 14:31:164983 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4984 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4985 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4986 # will be set to the directory where LIBOBJS objects are built.
4987 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4988 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Daniel Jacobowitzf5bc1772007-10-11 18:15:024989done
4990LIBOBJS=$ac_libobjs
4991
4992LTLIBOBJS=$ac_ltlibobjs
4993
4994
4995
DJ Delorie75086672009-08-22 14:31:164996
Daniel Jacobowitzf5bc1772007-10-11 18:15:024997: ${CONFIG_STATUS=./config.status}
DJ Delorie75086672009-08-22 14:31:164998ac_write_fail=0
Daniel Jacobowitzf5bc1772007-10-11 18:15:024999ac_clean_files_save=$ac_clean_files
5000ac_clean_files="$ac_clean_files $CONFIG_STATUS"
DJ Delorie75086672009-08-22 14:31:165001{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5002$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5003as_write_fail=0
5004cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025005#! $SHELL
5006# Generated by $as_me.
5007# Run this file to recreate the current configuration.
5008# Compiler output produced by configure, useful for debugging
5009# configure, is in config.log if it exists.
5010
5011debug=false
5012ac_cs_recheck=false
5013ac_cs_silent=false
DJ Delorie75086672009-08-22 14:31:165014
Daniel Jacobowitzf5bc1772007-10-11 18:15:025015SHELL=\${CONFIG_SHELL-$SHELL}
DJ Delorie75086672009-08-22 14:31:165016export SHELL
5017_ASEOF
5018cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5019## -------------------- ##
5020## M4sh Initialization. ##
5021## -------------------- ##
Daniel Jacobowitzf5bc1772007-10-11 18:15:025022
DJ Delorie75086672009-08-22 14:31:165023# Be more Bourne compatible
5024DUALCASE=1; export DUALCASE # for MKS sh
5025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:025026 emulate sh
5027 NULLCMD=:
DJ Delorie75086672009-08-22 14:31:165028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Daniel Jacobowitzf5bc1772007-10-11 18:15:025029 # is contrary to our usage. Disable this feature.
5030 alias -g '${1+"$@"}'='"$@"'
DJ Delorie75086672009-08-22 14:31:165031 setopt NO_GLOB_SUBST
Daniel Jacobowitzf5bc1772007-10-11 18:15:025032else
DJ Delorie75086672009-08-22 14:31:165033 case `(set -o) 2>/dev/null` in #(
5034 *posix*) :
5035 set -o posix ;; #(
5036 *) :
5037 ;;
5038esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:025039fi
5040
5041
DJ Delorie75086672009-08-22 14:31:165042as_nl='
5043'
5044export as_nl
5045# Printing a long string crashes Solaris 7 /usr/bin/printf.
5046as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5048as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5049# Prefer a ksh shell builtin over an external printf program on Solaris,
5050# but without wasting forks for bash or zsh.
5051if test -z "$BASH_VERSION$ZSH_VERSION" \
5052 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5053 as_echo='print -r --'
5054 as_echo_n='print -rn --'
5055elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5056 as_echo='printf %s\n'
5057 as_echo_n='printf %s'
5058else
5059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5061 as_echo_n='/usr/ucb/echo -n'
5062 else
5063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5064 as_echo_n_body='eval
5065 arg=$1;
5066 case $arg in #(
5067 *"$as_nl"*)
5068expr "X$arg" : "X\\(.*\\)$as_nl";
5069arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5070 esac;
5071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5072 '
5073 export as_echo_n_body
5074 as_echo_n='sh -c $as_echo_n_body as_echo'
5075 fi
5076 export as_echo_body
5077 as_echo='sh -c $as_echo_body as_echo'
5078fi
5079
5080# The user is always right.
5081if test "${PATH_SEPARATOR+set}" != set; then
5082 PATH_SEPARATOR=:
5083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5085 PATH_SEPARATOR=';'
5086 }
5087fi
5088
5089
5090# IFS
5091# We need space, tab and new line, in precisely that order. Quoting is
5092# there to prevent editors from complaining about space-tab.
5093# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5094# splitting by setting IFS to empty value.)
5095IFS=" "" $as_nl"
5096
5097# Find who we are. Look in the path if we contain no directory separator.
5098case $0 in #((
5099 *[\\/]* ) as_myself=$0 ;;
5100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5106 done
5107IFS=$as_save_IFS
5108
5109 ;;
5110esac
5111# We did not find ourselves, most probably we were run as `sh COMMAND'
5112# in which case we are not to be found in the path.
5113if test "x$as_myself" = x; then
5114 as_myself=$0
5115fi
5116if test ! -f "$as_myself"; then
5117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5118 exit 1
5119fi
5120
5121# Unset variables that we do not need and which cause bugs (e.g. in
5122# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5123# suppresses any "Segmentation fault" message there. '((' could
5124# trigger a bug in pdksh 5.2.14.
5125for as_var in BASH_ENV ENV MAIL MAILPATH
5126do eval test x\${$as_var+set} = xset \
5127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5128done
Daniel Jacobowitzf5bc1772007-10-11 18:15:025129PS1='$ '
5130PS2='> '
5131PS4='+ '
5132
5133# NLS nuisances.
DJ Delorie75086672009-08-22 14:31:165134LC_ALL=C
5135export LC_ALL
5136LANGUAGE=C
5137export LANGUAGE
Daniel Jacobowitzf5bc1772007-10-11 18:15:025138
DJ Delorie75086672009-08-22 14:31:165139# CDPATH.
5140(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5141
5142
5143# as_fn_error ERROR [LINENO LOG_FD]
5144# ---------------------------------
5145# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5146# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5147# script with status $?, using 1 if that was 0.
5148as_fn_error ()
5149{
5150 as_status=$?; test $as_status -eq 0 && as_status=1
5151 if test "$3"; then
5152 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5154 fi
5155 $as_echo "$as_me: error: $1" >&2
5156 as_fn_exit $as_status
5157} # as_fn_error
5158
5159
5160# as_fn_set_status STATUS
5161# -----------------------
5162# Set $? to STATUS, without forking.
5163as_fn_set_status ()
5164{
5165 return $1
5166} # as_fn_set_status
5167
5168# as_fn_exit STATUS
5169# -----------------
5170# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5171as_fn_exit ()
5172{
5173 set +e
5174 as_fn_set_status $1
5175 exit $1
5176} # as_fn_exit
5177
5178# as_fn_unset VAR
5179# ---------------
5180# Portably unset VAR.
5181as_fn_unset ()
5182{
5183 { eval $1=; unset $1;}
5184}
5185as_unset=as_fn_unset
5186# as_fn_append VAR VALUE
5187# ----------------------
5188# Append the text in VALUE to the end of the definition contained in VAR. Take
5189# advantage of any shell optimizations that allow amortized linear growth over
5190# repeated appends, instead of the typical quadratic growth present in naive
5191# implementations.
5192if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5193 eval 'as_fn_append ()
5194 {
5195 eval $1+=\$2
5196 }'
5197else
5198 as_fn_append ()
5199 {
5200 eval $1=\$$1\$2
5201 }
5202fi # as_fn_append
5203
5204# as_fn_arith ARG...
5205# ------------------
5206# Perform arithmetic evaluation on the ARGs, and store the result in the
5207# global $as_val. Take advantage of shells that can avoid forks. The arguments
5208# must be portable across $(()) and expr.
5209if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5210 eval 'as_fn_arith ()
5211 {
5212 as_val=$(( $* ))
5213 }'
5214else
5215 as_fn_arith ()
5216 {
5217 as_val=`expr "$@" || test $? -eq 1`
5218 }
5219fi # as_fn_arith
5220
5221
5222if expr a : '\(a\)' >/dev/null 2>&1 &&
5223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:025224 as_expr=expr
5225else
5226 as_expr=false
5227fi
5228
DJ Delorie75086672009-08-22 14:31:165229if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:025230 as_basename=basename
5231else
5232 as_basename=false
5233fi
5234
DJ Delorie75086672009-08-22 14:31:165235if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5236 as_dirname=dirname
5237else
5238 as_dirname=false
5239fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:025240
DJ Delorie75086672009-08-22 14:31:165241as_me=`$as_basename -- "$0" ||
Daniel Jacobowitzf5bc1772007-10-11 18:15:025242$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5243 X"$0" : 'X\(//\)$' \| \
DJ Delorie75086672009-08-22 14:31:165244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5245$as_echo X/"$0" |
5246 sed '/^.*\/\([^/][^/]*\)\/*$/{
5247 s//\1/
5248 q
5249 }
5250 /^X\/\(\/\/\)$/{
5251 s//\1/
5252 q
5253 }
5254 /^X\/\(\/\).*/{
5255 s//\1/
5256 q
5257 }
5258 s/.*/./; q'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:025259
Daniel Jacobowitzf5bc1772007-10-11 18:15:025260# Avoid depending upon Character Ranges.
5261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5264as_cr_digits='0123456789'
5265as_cr_alnum=$as_cr_Letters$as_cr_digits
5266
DJ Delorie75086672009-08-22 14:31:165267ECHO_C= ECHO_N= ECHO_T=
5268case `echo -n x` in #(((((
5269-n*)
5270 case `echo 'xy\c'` in
5271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5272 xy) ECHO_C='\c';;
5273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5274 ECHO_T=' ';;
5275 esac;;
5276*)
5277 ECHO_N='-n';;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025278esac
5279
Daniel Jacobowitzf5bc1772007-10-11 18:15:025280rm -f conf$$ conf$$.exe conf$$.file
DJ Delorie75086672009-08-22 14:31:165281if test -d conf$$.dir; then
5282 rm -f conf$$.dir/conf$$.file
5283else
5284 rm -f conf$$.dir
5285 mkdir conf$$.dir 2>/dev/null
5286fi
5287if (echo >conf$$.file) 2>/dev/null; then
5288 if ln -s conf$$.file conf$$ 2>/dev/null; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:025289 as_ln_s='ln -s'
DJ Delorie75086672009-08-22 14:31:165290 # ... but there are two gotchas:
5291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5293 # In both cases, we have to default to `cp -p'.
5294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5295 as_ln_s='cp -p'
5296 elif ln conf$$.file conf$$ 2>/dev/null; then
5297 as_ln_s=ln
5298 else
5299 as_ln_s='cp -p'
Daniel Jacobowitzf5bc1772007-10-11 18:15:025300 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:025301else
5302 as_ln_s='cp -p'
5303fi
DJ Delorie75086672009-08-22 14:31:165304rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5305rmdir conf$$.dir 2>/dev/null
Daniel Jacobowitzf5bc1772007-10-11 18:15:025306
DJ Delorie75086672009-08-22 14:31:165307
5308# as_fn_mkdir_p
5309# -------------
5310# Create "$as_dir" as a directory, including parents if necessary.
5311as_fn_mkdir_p ()
5312{
5313
5314 case $as_dir in #(
5315 -*) as_dir=./$as_dir;;
5316 esac
5317 test -d "$as_dir" || eval $as_mkdir_p || {
5318 as_dirs=
5319 while :; do
5320 case $as_dir in #(
5321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5322 *) as_qdir=$as_dir;;
5323 esac
5324 as_dirs="'$as_qdir' $as_dirs"
5325 as_dir=`$as_dirname -- "$as_dir" ||
5326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5327 X"$as_dir" : 'X\(//\)[^/]' \| \
5328 X"$as_dir" : 'X\(//\)$' \| \
5329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5330$as_echo X"$as_dir" |
5331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5332 s//\1/
5333 q
5334 }
5335 /^X\(\/\/\)[^/].*/{
5336 s//\1/
5337 q
5338 }
5339 /^X\(\/\/\)$/{
5340 s//\1/
5341 q
5342 }
5343 /^X\(\/\).*/{
5344 s//\1/
5345 q
5346 }
5347 s/.*/./; q'`
5348 test -d "$as_dir" && break
5349 done
5350 test -z "$as_dirs" || eval "mkdir $as_dirs"
5351 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5352
5353
5354} # as_fn_mkdir_p
Daniel Jacobowitzf5bc1772007-10-11 18:15:025355if mkdir -p . 2>/dev/null; then
DJ Delorie75086672009-08-22 14:31:165356 as_mkdir_p='mkdir -p "$as_dir"'
Daniel Jacobowitzf5bc1772007-10-11 18:15:025357else
5358 test -d ./-p && rmdir ./-p
5359 as_mkdir_p=false
5360fi
5361
DJ Delorie75086672009-08-22 14:31:165362if test -x / >/dev/null 2>&1; then
5363 as_test_x='test -x'
5364else
5365 if ls -dL / >/dev/null 2>&1; then
5366 as_ls_L_option=L
5367 else
5368 as_ls_L_option=
5369 fi
5370 as_test_x='
5371 eval sh -c '\''
5372 if test -d "$1"; then
5373test -d "$1/.";
5374 else
5375case $1 in #(
5376-*)set "./$1";;
5377esac;
5378case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5379???[sx]*):;;*)false;;esac;fi
5380 '\'' sh
5381 '
5382fi
5383as_executable_p=$as_test_x
Daniel Jacobowitzf5bc1772007-10-11 18:15:025384
5385# Sed expression to map a string onto a valid CPP name.
5386as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5387
5388# Sed expression to map a string onto a valid variable name.
5389as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5390
5391
Daniel Jacobowitzf5bc1772007-10-11 18:15:025392exec 6>&1
DJ Delorie75086672009-08-22 14:31:165393## ----------------------------------- ##
5394## Main body of $CONFIG_STATUS script. ##
5395## ----------------------------------- ##
5396_ASEOF
5397test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025398
DJ Delorie75086672009-08-22 14:31:165399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5400# Save the log message, to keep $0 and so on meaningful, and to
Daniel Jacobowitzf5bc1772007-10-11 18:15:025401# report actual input values of CONFIG_FILES etc. instead of their
DJ Delorie75086672009-08-22 14:31:165402# values after options handling.
5403ac_log="
Daniel Jacobowitzf5bc1772007-10-11 18:15:025404This file was extended by libdecnumber $as_me , which was
DJ Delorie75086672009-08-22 14:31:165405generated by GNU Autoconf 2.64. Invocation command line was
Daniel Jacobowitzf5bc1772007-10-11 18:15:025406
5407 CONFIG_FILES = $CONFIG_FILES
5408 CONFIG_HEADERS = $CONFIG_HEADERS
5409 CONFIG_LINKS = $CONFIG_LINKS
5410 CONFIG_COMMANDS = $CONFIG_COMMANDS
5411 $ $0 $@
5412
DJ Delorie75086672009-08-22 14:31:165413on `(hostname || uname -n) 2>/dev/null | sed 1q`
5414"
5415
Daniel Jacobowitzf5bc1772007-10-11 18:15:025416_ACEOF
5417
DJ Delorie75086672009-08-22 14:31:165418case $ac_config_files in *"
5419"*) set x $ac_config_files; shift; ac_config_files=$*;;
5420esac
5421
5422case $ac_config_headers in *"
5423"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5424esac
5425
5426
5427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025428# Files that config.status was made for.
DJ Delorie75086672009-08-22 14:31:165429config_files="$ac_config_files"
5430config_headers="$ac_config_headers"
5431config_commands="$ac_config_commands"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025432
DJ Delorie75086672009-08-22 14:31:165433_ACEOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:025434
DJ Delorie75086672009-08-22 14:31:165435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025436ac_cs_usage="\
DJ Delorie75086672009-08-22 14:31:165437\`$as_me' instantiates files and other configuration actions
5438from templates according to the current configuration. Unless the files
5439and actions are specified as TAGs, all are instantiated by default.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025440
DJ Delorie75086672009-08-22 14:31:165441Usage: $0 [OPTION]... [TAG]...
Daniel Jacobowitzf5bc1772007-10-11 18:15:025442
5443 -h, --help print this help, then exit
DJ Delorie75086672009-08-22 14:31:165444 -V, --version print version number and configuration settings, then exit
5445 -q, --quiet, --silent
5446 do not print progress messages
Daniel Jacobowitzf5bc1772007-10-11 18:15:025447 -d, --debug don't remove temporary files
5448 --recheck update $as_me by reconfiguring in the same conditions
DJ Delorie75086672009-08-22 14:31:165449 --file=FILE[:TEMPLATE]
5450 instantiate the configuration file FILE
5451 --header=FILE[:TEMPLATE]
5452 instantiate the configuration header FILE
Daniel Jacobowitzf5bc1772007-10-11 18:15:025453
5454Configuration files:
5455$config_files
5456
5457Configuration headers:
5458$config_headers
5459
5460Configuration commands:
5461$config_commands
5462
DJ Delorie75086672009-08-22 14:31:165463Report bugs to <gcc-bugs@gcc.gnu.org>."
Daniel Jacobowitzf5bc1772007-10-11 18:15:025464
DJ Delorie75086672009-08-22 14:31:165465_ACEOF
5466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025467ac_cs_version="\\
5468libdecnumber config.status
DJ Delorie75086672009-08-22 14:31:165469configured by $0, generated by GNU Autoconf 2.64,
5470 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025471
DJ Delorie75086672009-08-22 14:31:165472Copyright (C) 2009 Free Software Foundation, Inc.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025473This config.status script is free software; the Free Software Foundation
5474gives unlimited permission to copy, distribute and modify it."
DJ Delorie75086672009-08-22 14:31:165475
5476ac_pwd='$ac_pwd'
5477srcdir='$srcdir'
5478test -n "\$AWK" || AWK=awk
Daniel Jacobowitzf5bc1772007-10-11 18:15:025479_ACEOF
5480
DJ Delorie75086672009-08-22 14:31:165481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5482# The default lists apply if the user does not specify any file.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025483ac_need_defaults=:
5484while test $# != 0
5485do
5486 case $1 in
5487 --*=*)
DJ Delorie75086672009-08-22 14:31:165488 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5489 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:025490 ac_shift=:
5491 ;;
DJ Delorie75086672009-08-22 14:31:165492 *)
Daniel Jacobowitzf5bc1772007-10-11 18:15:025493 ac_option=$1
5494 ac_optarg=$2
5495 ac_shift=shift
5496 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025497 esac
5498
5499 case $ac_option in
5500 # Handling of the options.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5502 ac_cs_recheck=: ;;
DJ Delorie75086672009-08-22 14:31:165503 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5504 $as_echo "$ac_cs_version"; exit ;;
5505 --debug | --debu | --deb | --de | --d | -d )
Daniel Jacobowitzf5bc1772007-10-11 18:15:025506 debug=: ;;
5507 --file | --fil | --fi | --f )
5508 $ac_shift
DJ Delorie75086672009-08-22 14:31:165509 case $ac_optarg in
5510 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5511 esac
5512 as_fn_append CONFIG_FILES " '$ac_optarg'"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025513 ac_need_defaults=false;;
5514 --header | --heade | --head | --hea )
5515 $ac_shift
DJ Delorie75086672009-08-22 14:31:165516 case $ac_optarg in
5517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5518 esac
5519 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025520 ac_need_defaults=false;;
DJ Delorie75086672009-08-22 14:31:165521 --he | --h)
5522 # Conflict between --help and --header
5523 as_fn_error "ambiguous option: \`$1'
5524Try \`$0 --help' for more information.";;
5525 --help | --hel | -h )
5526 $as_echo "$ac_cs_usage"; exit ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5529 ac_cs_silent=: ;;
5530
5531 # This is an error.
DJ Delorie75086672009-08-22 14:31:165532 -*) as_fn_error "unrecognized option: \`$1'
5533Try \`$0 --help' for more information." ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025534
DJ Delorie75086672009-08-22 14:31:165535 *) as_fn_append ac_config_targets " $1"
5536 ac_need_defaults=false ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025537
5538 esac
5539 shift
5540done
5541
5542ac_configure_extra_args=
5543
5544if $ac_cs_silent; then
5545 exec 6>/dev/null
5546 ac_configure_extra_args="$ac_configure_extra_args --silent"
5547fi
5548
5549_ACEOF
DJ Delorie75086672009-08-22 14:31:165550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025551if \$ac_cs_recheck; then
DJ Delorie75086672009-08-22 14:31:165552 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5553 shift
5554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5555 CONFIG_SHELL='$SHELL'
5556 export CONFIG_SHELL
5557 exec "\$@"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025558fi
5559
5560_ACEOF
DJ Delorie75086672009-08-22 14:31:165561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5562exec 5>>config.log
5563{
5564 echo
5565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5566## Running $as_me. ##
5567_ASBOX
5568 $as_echo "$ac_log"
5569} >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:025570
DJ Delorie75086672009-08-22 14:31:165571_ACEOF
5572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025573#
DJ Delorie75086672009-08-22 14:31:165574# INIT-COMMANDS
Daniel Jacobowitzf5bc1772007-10-11 18:15:025575#
5576
DJ Delorieb1dfe692009-09-09 20:25:355577GCC="$GCC"
5578CC="$CC"
5579acx_cv_header_stdint="$acx_cv_header_stdint"
5580acx_cv_type_int8_t="$acx_cv_type_int8_t"
5581acx_cv_type_int16_t="$acx_cv_type_int16_t"
5582acx_cv_type_int32_t="$acx_cv_type_int32_t"
5583acx_cv_type_int64_t="$acx_cv_type_int64_t"
5584acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
5585ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
5586ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
5587ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
5588ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
5589ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025590ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
5591ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
DJ Delorieb1dfe692009-09-09 20:25:355592ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025593
5594
5595_ACEOF
5596
DJ Delorie75086672009-08-22 14:31:165597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025598
DJ Delorie75086672009-08-22 14:31:165599# Handling of arguments.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025600for ac_config_target in $ac_config_targets
5601do
DJ Delorie75086672009-08-22 14:31:165602 case $ac_config_target in
5603 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
5604 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5605 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5606
5607 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025608 esac
5609done
5610
DJ Delorie75086672009-08-22 14:31:165611
Daniel Jacobowitzf5bc1772007-10-11 18:15:025612# If the user did not use the arguments to specify the items to instantiate,
5613# then the envvar interface is used. Set only those that are not.
5614# We use the long form for the default assignment because of an extremely
5615# bizarre bug on SunOS 4.1.3.
5616if $ac_need_defaults; then
5617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5620fi
5621
5622# Have a temporary directory for convenience. Make it in the build tree
DJ Delorie75086672009-08-22 14:31:165623# simply because there is no reason against having it here, and in addition,
Daniel Jacobowitzf5bc1772007-10-11 18:15:025624# creating and moving files from /tmp can sometimes cause problems.
DJ Delorie75086672009-08-22 14:31:165625# Hook for its removal unless debugging.
5626# Note that there is a small window in which the directory will not be cleaned:
5627# after its creation but before its name has been assigned to `$tmp'.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025628$debug ||
5629{
DJ Delorie75086672009-08-22 14:31:165630 tmp=
5631 trap 'exit_status=$?
5632 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5633' 0
5634 trap 'as_fn_exit 1' 1 2 13 15
Daniel Jacobowitzf5bc1772007-10-11 18:15:025635}
Daniel Jacobowitzf5bc1772007-10-11 18:15:025636# Create a (secure) tmp directory for tmp files.
5637
5638{
DJ Delorie75086672009-08-22 14:31:165639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Daniel Jacobowitzf5bc1772007-10-11 18:15:025640 test -n "$tmp" && test -d "$tmp"
5641} ||
5642{
DJ Delorie75086672009-08-22 14:31:165643 tmp=./conf$$-$RANDOM
5644 (umask 077 && mkdir "$tmp")
5645} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5646
5647# Set up the scripts for CONFIG_FILES section.
5648# No need to generate them if there are no CONFIG_FILES.
5649# This happens for instance with `./config.status config.h'.
5650if test -n "$CONFIG_FILES"; then
5651
5652
5653ac_cr=`echo X | tr X '\015'`
5654# On cygwin, bash can eat \r inside `` if the user requested igncr.
5655# But we know of no other shell where ac_cr would be empty at this
5656# point, so we can use a bashism as a fallback.
5657if test "x$ac_cr" = x; then
5658 eval ac_cr=\$\'\\r\'
5659fi
5660ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5661if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5662 ac_cs_awk_cr='\r'
5663else
5664 ac_cs_awk_cr=$ac_cr
5665fi
5666
5667echo 'BEGIN {' >"$tmp/subs1.awk" &&
5668_ACEOF
5669
5670
Daniel Jacobowitzf5bc1772007-10-11 18:15:025671{
DJ Delorie75086672009-08-22 14:31:165672 echo "cat >conf$$subs.awk <<_ACEOF" &&
5673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5674 echo "_ACEOF"
5675} >conf$$subs.sh ||
5676 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5677ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5678ac_delim='%!_!# '
5679for ac_last_try in false false false false false :; do
5680 . ./conf$$subs.sh ||
5681 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5682
5683 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5684 if test $ac_delim_n = $ac_delim_num; then
5685 break
5686 elif $ac_last_try; then
5687 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5688 else
5689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5690 fi
5691done
5692rm -f conf$$subs.sh
5693
5694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5695cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5696_ACEOF
5697sed -n '
5698h
5699s/^/S["/; s/!.*/"]=/
5700p
5701g
5702s/^[^!]*!//
5703:repl
5704t repl
5705s/'"$ac_delim"'$//
5706t delim
5707:nl
5708h
5709s/\(.\{148\}\).*/\1/
5710t more1
5711s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5712p
5713n
5714b repl
5715:more1
5716s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5717p
5718g
5719s/.\{148\}//
5720t nl
5721:delim
5722h
5723s/\(.\{148\}\).*/\1/
5724t more2
5725s/["\\]/\\&/g; s/^/"/; s/$/"/
5726p
5727b
5728:more2
5729s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5730p
5731g
5732s/.\{148\}//
5733t delim
5734' <conf$$subs.awk | sed '
5735/^[^""]/{
5736 N
5737 s/\n//
5738}
5739' >>$CONFIG_STATUS || ac_write_fail=1
5740rm -f conf$$subs.awk
5741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5742_ACAWK
5743cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5744 for (key in S) S_is_set[key] = 1
5745 FS = ""
5746
5747}
5748{
5749 line = $ 0
5750 nfields = split(line, field, "@")
5751 substed = 0
5752 len = length(field[1])
5753 for (i = 2; i < nfields; i++) {
5754 key = field[i]
5755 keylen = length(key)
5756 if (S_is_set[key]) {
5757 value = S[key]
5758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5759 len += length(value) + length(field[++i])
5760 substed = 1
5761 } else
5762 len += 1 + keylen
5763 }
5764
5765 print line
Daniel Jacobowitzf5bc1772007-10-11 18:15:025766}
5767
DJ Delorie75086672009-08-22 14:31:165768_ACAWK
5769_ACEOF
5770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5771if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5772 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5773else
5774 cat
5775fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5776 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:025777_ACEOF
5778
DJ Delorie75086672009-08-22 14:31:165779# VPATH may cause trouble with some makes, so we remove $(srcdir),
5780# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5781# trailing colons and then remove the whole line if VPATH becomes empty
5782# (actually we leave an empty line to preserve line numbers).
5783if test "x$srcdir" = x.; then
5784 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5785s/:*\$(srcdir):*/:/
5786s/:*\${srcdir}:*/:/
5787s/:*@srcdir@:*/:/
5788s/^\([^=]*=[ ]*\):*/\1/
5789s/:*$//
5790s/^[^=]*=[ ]*$//
5791}'
5792fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:025793
DJ Delorie75086672009-08-22 14:31:165794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025795fi # test -n "$CONFIG_FILES"
5796
DJ Delorie75086672009-08-22 14:31:165797# Set up the scripts for CONFIG_HEADERS section.
5798# No need to generate them if there are no CONFIG_HEADERS.
5799# This happens for instance with `./config.status Makefile'.
5800if test -n "$CONFIG_HEADERS"; then
5801cat >"$tmp/defines.awk" <<\_ACAWK ||
5802BEGIN {
Daniel Jacobowitzf5bc1772007-10-11 18:15:025803_ACEOF
DJ Delorie75086672009-08-22 14:31:165804
5805# Transform confdefs.h into an awk script `defines.awk', embedded as
5806# here-document in config.status, that substitutes the proper values into
5807# config.h.in to produce config.h.
5808
5809# Create a delimiter string that does not exist in confdefs.h, to ease
5810# handling of long lines.
5811ac_delim='%!_!# '
5812for ac_last_try in false false :; do
5813 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5814 if test -z "$ac_t"; then
5815 break
5816 elif $ac_last_try; then
5817 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5818 else
5819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5820 fi
5821done
5822
5823# For the awk script, D is an array of macro values keyed by name,
5824# likewise P contains macro parameters if any. Preserve backslash
5825# newline sequences.
5826
5827ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5828sed -n '
5829s/.\{148\}/&'"$ac_delim"'/g
5830t rset
5831:rset
5832s/^[ ]*#[ ]*define[ ][ ]*/ /
5833t def
5834d
5835:def
5836s/\\$//
5837t bsnl
5838s/["\\]/\\&/g
5839s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5840D["\1"]=" \3"/p
5841s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5842d
5843:bsnl
5844s/["\\]/\\&/g
5845s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5846D["\1"]=" \3\\\\\\n"\\/p
5847t cont
5848s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5849t cont
5850d
5851:cont
5852n
5853s/.\{148\}/&'"$ac_delim"'/g
5854t clear
5855:clear
5856s/\\$//
5857t bsnlc
5858s/["\\]/\\&/g; s/^/"/; s/$/"/p
5859d
5860:bsnlc
5861s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5862b cont
5863' <confdefs.h | sed '
5864s/'"$ac_delim"'/"\\\
5865"/g' >>$CONFIG_STATUS || ac_write_fail=1
5866
5867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5868 for (key in D) D_is_set[key] = 1
5869 FS = ""
5870}
5871/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5872 line = \$ 0
5873 split(line, arg, " ")
5874 if (arg[1] == "#") {
5875 defundef = arg[2]
5876 mac1 = arg[3]
5877 } else {
5878 defundef = substr(arg[1], 2)
5879 mac1 = arg[2]
5880 }
5881 split(mac1, mac2, "(") #)
5882 macro = mac2[1]
5883 prefix = substr(line, 1, index(line, defundef) - 1)
5884 if (D_is_set[macro]) {
5885 # Preserve the white space surrounding the "#".
5886 print prefix "define", macro P[macro] D[macro]
5887 next
5888 } else {
5889 # Replace #undef with comments. This is necessary, for example,
5890 # in the case of _POSIX_SOURCE, which is predefined and required
5891 # on some systems where configure will not decide to define it.
5892 if (defundef == "undef") {
5893 print "/*", prefix defundef, macro, "*/"
5894 next
5895 }
5896 }
5897}
5898{ print }
5899_ACAWK
5900_ACEOF
5901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5902 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5903fi # test -n "$CONFIG_HEADERS"
5904
5905
5906eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5907shift
5908for ac_tag
5909do
5910 case $ac_tag in
5911 :[FHLC]) ac_mode=$ac_tag; continue;;
5912 esac
5913 case $ac_mode$ac_tag in
5914 :[FHL]*:*);;
5915 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5916 :[FH]-) ac_tag=-:-;;
5917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5918 esac
5919 ac_save_IFS=$IFS
5920 IFS=:
5921 set x $ac_tag
5922 IFS=$ac_save_IFS
5923 shift
5924 ac_file=$1
5925 shift
5926
5927 case $ac_mode in
5928 :L) ac_source=$1;;
5929 :[FH])
5930 ac_file_inputs=
5931 for ac_f
5932 do
5933 case $ac_f in
5934 -) ac_f="$tmp/stdin";;
5935 *) # Look for the file first in the build tree, then in the source tree
5936 # (if the path is not absolute). The absolute path cannot be DOS-style,
5937 # because $ac_f cannot contain `:'.
5938 test -f "$ac_f" ||
5939 case $ac_f in
5940 [\\/$]*) false;;
5941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5942 esac ||
5943 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5944 esac
5945 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5946 as_fn_append ac_file_inputs " '$ac_f'"
5947 done
5948
5949 # Let's still pretend it is `configure' which instantiates (i.e., don't
5950 # use $as_me), people would be surprised to read:
5951 # /* config.h. Generated by config.status. */
5952 configure_input='Generated from '`
5953 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5954`' by configure.'
5955 if test x"$ac_file" != x-; then
5956 configure_input="$ac_file. $configure_input"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5958$as_echo "$as_me: creating $ac_file" >&6;}
5959 fi
5960 # Neutralize special characters interpreted by sed in replacement strings.
5961 case $configure_input in #(
5962 *\&* | *\|* | *\\* )
5963 ac_sed_conf_input=`$as_echo "$configure_input" |
5964 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5965 *) ac_sed_conf_input=$configure_input;;
5966 esac
5967
5968 case $ac_tag in
5969 *:-:* | *:-) cat >"$tmp/stdin" \
5970 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5971 esac
5972 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025973 esac
5974
DJ Delorie75086672009-08-22 14:31:165975 ac_dir=`$as_dirname -- "$ac_file" ||
Daniel Jacobowitzf5bc1772007-10-11 18:15:025976$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5977 X"$ac_file" : 'X\(//\)[^/]' \| \
5978 X"$ac_file" : 'X\(//\)$' \| \
DJ Delorie75086672009-08-22 14:31:165979 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5980$as_echo X"$ac_file" |
5981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5982 s//\1/
5983 q
5984 }
5985 /^X\(\/\/\)[^/].*/{
5986 s//\1/
5987 q
5988 }
5989 /^X\(\/\/\)$/{
5990 s//\1/
5991 q
5992 }
5993 /^X\(\/\).*/{
5994 s//\1/
5995 q
5996 }
5997 s/.*/./; q'`
5998 as_dir="$ac_dir"; as_fn_mkdir_p
Daniel Jacobowitzf5bc1772007-10-11 18:15:025999 ac_builddir=.
6000
DJ Delorie75086672009-08-22 14:31:166001case "$ac_dir" in
6002.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6003*)
6004 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6005 # A ".." for each directory in $ac_dir_suffix.
6006 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6007 case $ac_top_builddir_sub in
6008 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6009 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6010 esac ;;
6011esac
6012ac_abs_top_builddir=$ac_pwd
6013ac_abs_builddir=$ac_pwd$ac_dir_suffix
6014# for backward compatibility:
6015ac_top_builddir=$ac_top_build_prefix
Daniel Jacobowitzf5bc1772007-10-11 18:15:026016
6017case $srcdir in
DJ Delorie75086672009-08-22 14:31:166018 .) # We are building in place.
Daniel Jacobowitzf5bc1772007-10-11 18:15:026019 ac_srcdir=.
DJ Delorie75086672009-08-22 14:31:166020 ac_top_srcdir=$ac_top_builddir_sub
6021 ac_abs_top_srcdir=$ac_pwd ;;
6022 [\\/]* | ?:[\\/]* ) # Absolute name.
Daniel Jacobowitzf5bc1772007-10-11 18:15:026023 ac_srcdir=$srcdir$ac_dir_suffix;
DJ Delorie75086672009-08-22 14:31:166024 ac_top_srcdir=$srcdir
6025 ac_abs_top_srcdir=$srcdir ;;
6026 *) # Relative name.
6027 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6028 ac_top_srcdir=$ac_top_build_prefix$srcdir
6029 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:026030esac
DJ Delorie75086672009-08-22 14:31:166031ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Daniel Jacobowitzf5bc1772007-10-11 18:15:026032
6033
DJ Delorie75086672009-08-22 14:31:166034 case $ac_mode in
6035 :F)
6036 #
6037 # CONFIG_FILE
6038 #
Daniel Jacobowitzf5bc1772007-10-11 18:15:026039
Daniel Jacobowitzf5bc1772007-10-11 18:15:026040_ACEOF
DJ Delorie75086672009-08-22 14:31:166041
6042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6043# If the template does not know about datarootdir, expand it.
6044# FIXME: This hack should be removed a few years after 2.60.
6045ac_datarootdir_hack=; ac_datarootdir_seen=
6046ac_sed_dataroot='
6047/datarootdir/ {
6048 p
6049 q
6050}
6051/@datadir@/p
6052/@docdir@/p
6053/@infodir@/p
6054/@localedir@/p
6055/@mandir@/p'
6056case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6057*datarootdir*) ac_datarootdir_seen=yes;;
6058*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6060$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6061_ACEOF
6062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6063 ac_datarootdir_hack='
6064 s&@datadir@&$datadir&g
6065 s&@docdir@&$docdir&g
6066 s&@infodir@&$infodir&g
6067 s&@localedir@&$localedir&g
6068 s&@mandir@&$mandir&g
6069 s&\\\${datarootdir}&$datarootdir&g' ;;
6070esac
6071_ACEOF
6072
6073# Neutralize VPATH when `$srcdir' = `.'.
6074# Shell code in configure.ac might set extrasub.
6075# FIXME: do we really want to maintain this feature?
6076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6077ac_sed_extra="$ac_vpsub
Daniel Jacobowitzf5bc1772007-10-11 18:15:026078$extrasub
6079_ACEOF
DJ Delorie75086672009-08-22 14:31:166080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:026081:t
6082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
DJ Delorie75086672009-08-22 14:31:166083s|@configure_input@|$ac_sed_conf_input|;t t
6084s&@top_builddir@&$ac_top_builddir_sub&;t t
6085s&@top_build_prefix@&$ac_top_build_prefix&;t t
6086s&@srcdir@&$ac_srcdir&;t t
6087s&@abs_srcdir@&$ac_abs_srcdir&;t t
6088s&@top_srcdir@&$ac_top_srcdir&;t t
6089s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6090s&@builddir@&$ac_builddir&;t t
6091s&@abs_builddir@&$ac_abs_builddir&;t t
6092s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6093$ac_datarootdir_hack
6094"
6095eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6096 || as_fn_error "could not create $ac_file" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:026097
DJ Delorie75086672009-08-22 14:31:166098test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6099 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6102which seems to be undefined. Please make sure it is defined." >&5
6103$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6104which seems to be undefined. Please make sure it is defined." >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:026105
DJ Delorie75086672009-08-22 14:31:166106 rm -f "$tmp/stdin"
Daniel Jacobowitzf5bc1772007-10-11 18:15:026107 case $ac_file in
DJ Delorie75086672009-08-22 14:31:166108 -) cat "$tmp/out" && rm -f "$tmp/out";;
6109 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6110 esac \
6111 || as_fn_error "could not create $ac_file" "$LINENO" 5
6112 ;;
6113 :H)
6114 #
6115 # CONFIG_HEADER
6116 #
Daniel Jacobowitzf5bc1772007-10-11 18:15:026117 if test x"$ac_file" != x-; then
DJ Delorie75086672009-08-22 14:31:166118 {
6119 $as_echo "/* $configure_input */" \
6120 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6121 } >"$tmp/config.h" \
6122 || as_fn_error "could not create $ac_file" "$LINENO" 5
6123 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6125$as_echo "$as_me: $ac_file is unchanged" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:026126 else
DJ Delorie75086672009-08-22 14:31:166127 rm -f "$ac_file"
6128 mv "$tmp/config.h" "$ac_file" \
6129|| as_fn_error "could not create $ac_file" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:026130 fi
6131 else
DJ Delorie75086672009-08-22 14:31:166132 $as_echo "/* $configure_input */" \
6133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6134 || as_fn_error "could not create -" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:026135 fi
DJ Delorie75086672009-08-22 14:31:166136 ;;
6137
6138 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6139$as_echo "$as_me: executing $ac_file commands" >&6;}
6140 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:026141 esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:026142
6143
DJ Delorie75086672009-08-22 14:31:166144 case $ac_file$ac_mode in
6145 "gstdint.h":C)
DJ Delorieb1dfe692009-09-09 20:25:356146if test "$GCC" = yes; then
6147 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
6148else
6149 echo "/* generated for $CC */" > tmp-stdint.h
6150fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:026151
DJ Delorieb1dfe692009-09-09 20:25:356152sed 's/^ *//' >> tmp-stdint.h <<EOF
6153
6154 #ifndef GCC_GENERATED_STDINT_H
6155 #define GCC_GENERATED_STDINT_H 1
6156
6157 #include <sys/types.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:026158EOF
6159
DJ Delorieb1dfe692009-09-09 20:25:356160if test "$acx_cv_header_stdint" != stdint.h; then
6161 echo "#include <stddef.h>" >> tmp-stdint.h
6162fi
6163if test "$acx_cv_header_stdint" != stddef.h; then
6164 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
6165fi
6166
6167sed 's/^ *//' >> tmp-stdint.h <<EOF
6168 /* glibc uses these symbols as guards to prevent redefinitions. */
6169 #ifdef __int8_t_defined
6170 #define _INT8_T
6171 #define _INT16_T
6172 #define _INT32_T
6173 #endif
6174 #ifdef __uint32_t_defined
6175 #define _UINT32_T
6176 #endif
6177
6178EOF
6179
6180# ----------------- done header, emit basic int types -------------
6181if test "$acx_cv_header_stdint" = stddef.h; then
6182 sed 's/^ *//' >> tmp-stdint.h <<EOF
6183
6184 #ifndef _UINT8_T
6185 #define _UINT8_T
6186 #ifndef __uint8_t_defined
6187 #define __uint8_t_defined
DJ Delorie43e85a82010-01-05 21:10:306188 #ifndef uint8_t
DJ Delorieb1dfe692009-09-09 20:25:356189 typedef unsigned $acx_cv_type_int8_t uint8_t;
6190 #endif
6191 #endif
DJ Delorie43e85a82010-01-05 21:10:306192 #endif
DJ Delorieb1dfe692009-09-09 20:25:356193
6194 #ifndef _UINT16_T
6195 #define _UINT16_T
6196 #ifndef __uint16_t_defined
6197 #define __uint16_t_defined
DJ Delorie43e85a82010-01-05 21:10:306198 #ifndef uint16_t
DJ Delorieb1dfe692009-09-09 20:25:356199 typedef unsigned $acx_cv_type_int16_t uint16_t;
6200 #endif
6201 #endif
DJ Delorie43e85a82010-01-05 21:10:306202 #endif
DJ Delorieb1dfe692009-09-09 20:25:356203
6204 #ifndef _UINT32_T
6205 #define _UINT32_T
6206 #ifndef __uint32_t_defined
6207 #define __uint32_t_defined
DJ Delorie43e85a82010-01-05 21:10:306208 #ifndef uint32_t
DJ Delorieb1dfe692009-09-09 20:25:356209 typedef unsigned $acx_cv_type_int32_t uint32_t;
6210 #endif
6211 #endif
DJ Delorie43e85a82010-01-05 21:10:306212 #endif
DJ Delorieb1dfe692009-09-09 20:25:356213
6214 #ifndef _INT8_T
6215 #define _INT8_T
6216 #ifndef __int8_t_defined
6217 #define __int8_t_defined
DJ Delorie43e85a82010-01-05 21:10:306218 #ifndef int8_t
DJ Delorieb1dfe692009-09-09 20:25:356219 typedef $acx_cv_type_int8_t int8_t;
6220 #endif
6221 #endif
DJ Delorie43e85a82010-01-05 21:10:306222 #endif
DJ Delorieb1dfe692009-09-09 20:25:356223
6224 #ifndef _INT16_T
6225 #define _INT16_T
6226 #ifndef __int16_t_defined
6227 #define __int16_t_defined
DJ Delorie43e85a82010-01-05 21:10:306228 #ifndef int16_t
DJ Delorieb1dfe692009-09-09 20:25:356229 typedef $acx_cv_type_int16_t int16_t;
6230 #endif
6231 #endif
DJ Delorie43e85a82010-01-05 21:10:306232 #endif
DJ Delorieb1dfe692009-09-09 20:25:356233
6234 #ifndef _INT32_T
6235 #define _INT32_T
6236 #ifndef __int32_t_defined
6237 #define __int32_t_defined
DJ Delorie43e85a82010-01-05 21:10:306238 #ifndef int32_t
DJ Delorieb1dfe692009-09-09 20:25:356239 typedef $acx_cv_type_int32_t int32_t;
6240 #endif
6241 #endif
DJ Delorie43e85a82010-01-05 21:10:306242 #endif
DJ Delorieb1dfe692009-09-09 20:25:356243EOF
6244elif test "$ac_cv_type_u_int32_t" = yes; then
6245 sed 's/^ *//' >> tmp-stdint.h <<EOF
6246
6247 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
6248 #ifndef _INT8_T
6249 #define _INT8_T
6250 #endif
6251 #ifndef _INT16_T
6252 #define _INT16_T
6253 #endif
6254 #ifndef _INT32_T
6255 #define _INT32_T
6256 #endif
6257
6258 #ifndef _UINT8_T
6259 #define _UINT8_T
6260 #ifndef __uint8_t_defined
6261 #define __uint8_t_defined
DJ Delorie43e85a82010-01-05 21:10:306262 #ifndef uint8_t
DJ Delorieb1dfe692009-09-09 20:25:356263 typedef u_int8_t uint8_t;
6264 #endif
6265 #endif
DJ Delorie43e85a82010-01-05 21:10:306266 #endif
DJ Delorieb1dfe692009-09-09 20:25:356267
6268 #ifndef _UINT16_T
6269 #define _UINT16_T
6270 #ifndef __uint16_t_defined
6271 #define __uint16_t_defined
DJ Delorie43e85a82010-01-05 21:10:306272 #ifndef uint16_t
DJ Delorieb1dfe692009-09-09 20:25:356273 typedef u_int16_t uint16_t;
6274 #endif
6275 #endif
DJ Delorie43e85a82010-01-05 21:10:306276 #endif
DJ Delorieb1dfe692009-09-09 20:25:356277
6278 #ifndef _UINT32_T
6279 #define _UINT32_T
6280 #ifndef __uint32_t_defined
6281 #define __uint32_t_defined
DJ Delorie43e85a82010-01-05 21:10:306282 #ifndef uint32_t
DJ Delorieb1dfe692009-09-09 20:25:356283 typedef u_int32_t uint32_t;
6284 #endif
6285 #endif
DJ Delorie43e85a82010-01-05 21:10:306286 #endif
DJ Delorieb1dfe692009-09-09 20:25:356287EOF
6288else
6289 sed 's/^ *//' >> tmp-stdint.h <<EOF
6290
6291 /* Some systems have guard macros to prevent redefinitions, define them. */
6292 #ifndef _INT8_T
6293 #define _INT8_T
6294 #endif
6295 #ifndef _INT16_T
6296 #define _INT16_T
6297 #endif
6298 #ifndef _INT32_T
6299 #define _INT32_T
6300 #endif
6301 #ifndef _UINT8_T
6302 #define _UINT8_T
6303 #endif
6304 #ifndef _UINT16_T
6305 #define _UINT16_T
6306 #endif
6307 #ifndef _UINT32_T
6308 #define _UINT32_T
6309 #endif
6310EOF
6311fi
6312
6313# ------------- done basic int types, emit int64_t types ------------
6314if test "$ac_cv_type_uint64_t" = yes; then
6315 sed 's/^ *//' >> tmp-stdint.h <<EOF
6316
6317 /* system headers have good uint64_t and int64_t */
6318 #ifndef _INT64_T
6319 #define _INT64_T
6320 #endif
6321 #ifndef _UINT64_T
6322 #define _UINT64_T
6323 #endif
6324EOF
6325elif test "$ac_cv_type_u_int64_t" = yes; then
6326 sed 's/^ *//' >> tmp-stdint.h <<EOF
6327
6328 /* system headers have an u_int64_t (and int64_t) */
6329 #ifndef _INT64_T
6330 #define _INT64_T
6331 #endif
6332 #ifndef _UINT64_T
6333 #define _UINT64_T
6334 #ifndef __uint64_t_defined
6335 #define __uint64_t_defined
DJ Delorie43e85a82010-01-05 21:10:306336 #ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356337 typedef u_int64_t uint64_t;
6338 #endif
6339 #endif
DJ Delorie43e85a82010-01-05 21:10:306340 #endif
DJ Delorieb1dfe692009-09-09 20:25:356341EOF
6342elif test -n "$acx_cv_type_int64_t"; then
6343 sed 's/^ *//' >> tmp-stdint.h <<EOF
6344
6345 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
6346 #ifndef _INT64_T
6347 #define _INT64_T
DJ Delorie43e85a82010-01-05 21:10:306348 #ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356349 typedef $acx_cv_type_int64_t int64_t;
6350 #endif
DJ Delorie43e85a82010-01-05 21:10:306351 #endif
DJ Delorieb1dfe692009-09-09 20:25:356352 #ifndef _UINT64_T
6353 #define _UINT64_T
6354 #ifndef __uint64_t_defined
6355 #define __uint64_t_defined
DJ Delorie43e85a82010-01-05 21:10:306356 #ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356357 typedef unsigned $acx_cv_type_int64_t uint64_t;
6358 #endif
6359 #endif
DJ Delorie43e85a82010-01-05 21:10:306360 #endif
DJ Delorieb1dfe692009-09-09 20:25:356361EOF
6362else
6363 sed 's/^ *//' >> tmp-stdint.h <<EOF
6364
6365 /* some common heuristics for int64_t, using compiler-specific tests */
6366 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
6367 #ifndef _INT64_T
6368 #define _INT64_T
6369 #ifndef __int64_t_defined
DJ Delorie43e85a82010-01-05 21:10:306370 #ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356371 typedef long long int64_t;
6372 #endif
6373 #endif
DJ Delorie43e85a82010-01-05 21:10:306374 #endif
DJ Delorieb1dfe692009-09-09 20:25:356375 #ifndef _UINT64_T
6376 #define _UINT64_T
DJ Delorie43e85a82010-01-05 21:10:306377 #ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356378 typedef unsigned long long uint64_t;
6379 #endif
DJ Delorie43e85a82010-01-05 21:10:306380 #endif
DJ Delorieb1dfe692009-09-09 20:25:356381
6382 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
6383 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
6384 does not implement __extension__. But that compiler doesn't define
6385 __GNUC_MINOR__. */
6386 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
6387 # define __extension__
6388 # endif
6389
6390 # ifndef _INT64_T
6391 # define _INT64_T
DJ Delorie43e85a82010-01-05 21:10:306392 # ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356393 __extension__ typedef long long int64_t;
6394 # endif
DJ Delorie43e85a82010-01-05 21:10:306395 # endif
DJ Delorieb1dfe692009-09-09 20:25:356396 # ifndef _UINT64_T
6397 # define _UINT64_T
DJ Delorie43e85a82010-01-05 21:10:306398 # ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356399 __extension__ typedef unsigned long long uint64_t;
6400 # endif
DJ Delorie43e85a82010-01-05 21:10:306401 # endif
DJ Delorieb1dfe692009-09-09 20:25:356402
6403 #elif !defined __STRICT_ANSI__
6404 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
6405
6406 # ifndef _INT64_T
6407 # define _INT64_T
DJ Delorie43e85a82010-01-05 21:10:306408 # ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356409 typedef __int64 int64_t;
6410 # endif
DJ Delorie43e85a82010-01-05 21:10:306411 # endif
DJ Delorieb1dfe692009-09-09 20:25:356412 # ifndef _UINT64_T
6413 # define _UINT64_T
DJ Delorie43e85a82010-01-05 21:10:306414 # ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356415 typedef unsigned __int64 uint64_t;
6416 # endif
DJ Delorie43e85a82010-01-05 21:10:306417 # endif
DJ Delorieb1dfe692009-09-09 20:25:356418 # endif /* compiler */
6419
6420 #endif /* ANSI version */
6421EOF
6422fi
6423
6424# ------------- done int64_t types, emit intptr types ------------
6425if test "$ac_cv_type_uintptr_t" != yes; then
6426 sed 's/^ *//' >> tmp-stdint.h <<EOF
6427
6428 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
6429 #ifndef __uintptr_t_defined
DJ Delorie43e85a82010-01-05 21:10:306430 #ifndef uintptr_t
DJ Delorieb1dfe692009-09-09 20:25:356431 typedef u$acx_cv_type_intptr_t uintptr_t;
6432 #endif
DJ Delorie43e85a82010-01-05 21:10:306433 #endif
DJ Delorieb1dfe692009-09-09 20:25:356434 #ifndef __intptr_t_defined
DJ Delorie43e85a82010-01-05 21:10:306435 #ifndef intptr_t
DJ Delorieb1dfe692009-09-09 20:25:356436 typedef $acx_cv_type_intptr_t intptr_t;
6437 #endif
DJ Delorie43e85a82010-01-05 21:10:306438 #endif
DJ Delorieb1dfe692009-09-09 20:25:356439EOF
6440fi
6441
6442# ------------- done intptr types, emit int_least types ------------
Daniel Jacobowitzf5bc1772007-10-11 18:15:026443if test "$ac_cv_type_int_least32_t" != yes; then
DJ Delorieb1dfe692009-09-09 20:25:356444 sed 's/^ *//' >> tmp-stdint.h <<EOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026445
6446 /* Define int_least types */
6447 typedef int8_t int_least8_t;
6448 typedef int16_t int_least16_t;
6449 typedef int32_t int_least32_t;
DJ Delorieb1dfe692009-09-09 20:25:356450 #ifdef _INT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026451 typedef int64_t int_least64_t;
DJ Delorieb1dfe692009-09-09 20:25:356452 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026453
6454 typedef uint8_t uint_least8_t;
6455 typedef uint16_t uint_least16_t;
6456 typedef uint32_t uint_least32_t;
DJ Delorieb1dfe692009-09-09 20:25:356457 #ifdef _UINT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026458 typedef uint64_t uint_least64_t;
DJ Delorieb1dfe692009-09-09 20:25:356459 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026460EOF
6461fi
6462
DJ Delorieb1dfe692009-09-09 20:25:356463# ------------- done intptr types, emit int_fast types ------------
Daniel Jacobowitzf5bc1772007-10-11 18:15:026464if test "$ac_cv_type_int_fast32_t" != yes; then
DJ Delorieb1dfe692009-09-09 20:25:356465 sed 's/^ *//' >> tmp-stdint.h <<EOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026466
6467 /* Define int_fast types. short is often slow */
6468 typedef int8_t int_fast8_t;
6469 typedef int int_fast16_t;
6470 typedef int32_t int_fast32_t;
DJ Delorieb1dfe692009-09-09 20:25:356471 #ifdef _INT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026472 typedef int64_t int_fast64_t;
DJ Delorieb1dfe692009-09-09 20:25:356473 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026474
6475 typedef uint8_t uint_fast8_t;
6476 typedef unsigned int uint_fast16_t;
6477 typedef uint32_t uint_fast32_t;
DJ Delorieb1dfe692009-09-09 20:25:356478 #ifdef _UINT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026479 typedef uint64_t uint_fast64_t;
DJ Delorieb1dfe692009-09-09 20:25:356480 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026481EOF
6482fi
6483
DJ Delorieb1dfe692009-09-09 20:25:356484if test "$ac_cv_type_uintmax_t" != yes; then
6485 sed 's/^ *//' >> tmp-stdint.h <<EOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026486
DJ Delorieb1dfe692009-09-09 20:25:356487 /* Define intmax based on what we found */
DJ Delorie43e85a82010-01-05 21:10:306488 #ifndef intmax_t
DJ Delorieb1dfe692009-09-09 20:25:356489 #ifdef _INT64_T
6490 typedef int64_t intmax_t;
6491 #else
6492 typedef long intmax_t;
6493 #endif
DJ Delorie43e85a82010-01-05 21:10:306494 #endif
6495 #ifndef uintmax_t
DJ Delorieb1dfe692009-09-09 20:25:356496 #ifdef _UINT64_T
6497 typedef uint64_t uintmax_t;
6498 #else
6499 typedef unsigned long uintmax_t;
6500 #endif
DJ Delorie43e85a82010-01-05 21:10:306501 #endif
DJ Delorieb1dfe692009-09-09 20:25:356502EOF
6503fi
6504
6505sed 's/^ *//' >> tmp-stdint.h <<EOF
6506
6507 #endif /* GCC_GENERATED_STDINT_H */
6508EOF
6509
6510if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
6511 rm -f tmp-stdint.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:026512else
DJ Delorieb1dfe692009-09-09 20:25:356513 mv -f tmp-stdint.h gstdint.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:026514fi
6515
6516 ;;
DJ Delorie75086672009-08-22 14:31:166517 "config.h":H) echo timestamp > stamp-h1 ;;
6518
Daniel Jacobowitzf5bc1772007-10-11 18:15:026519 esac
DJ Delorie75086672009-08-22 14:31:166520done # for ac_tag
Daniel Jacobowitzf5bc1772007-10-11 18:15:026521
Daniel Jacobowitzf5bc1772007-10-11 18:15:026522
DJ Delorie75086672009-08-22 14:31:166523as_fn_exit 0
Daniel Jacobowitzf5bc1772007-10-11 18:15:026524_ACEOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026525ac_clean_files=$ac_clean_files_save
6526
DJ Delorie75086672009-08-22 14:31:166527test $ac_write_fail = 0 ||
6528 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6529
Daniel Jacobowitzf5bc1772007-10-11 18:15:026530
6531# configure is writing to config.log, and then calls config.status.
6532# config.status does its own redirection, appending to config.log.
6533# Unfortunately, on DOS this fails, as config.log is still kept open
6534# by configure, so config.status won't be able to write to it; its
6535# output is simply discarded. So we exec the FD to /dev/null,
6536# effectively closing config.log, so it can be properly (re)opened and
6537# appended to by config.status. When coming back to configure, we
6538# need to make the FD available again.
6539if test "$no_create" != yes; then
6540 ac_cs_success=:
6541 ac_config_status_args=
6542 test "$silent" = yes &&
6543 ac_config_status_args="$ac_config_status_args --quiet"
6544 exec 5>/dev/null
6545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6546 exec 5>>config.log
6547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6548 # would make configure fail if this is the last instruction.
DJ Delorie75086672009-08-22 14:31:166549 $ac_cs_success || as_fn_exit $?
6550fi
6551if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6553$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:026554fi
6555