blob: 5032a174f0974e19e4f3e34a2f82ed6b75fcad69 [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
2223
Daniel Jacobowitzf5bc1772007-10-11 18:15:022224# Checks for programs.
DJ Delorie75086672009-08-22 14:31:162225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2226$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2227set x ${MAKE-make}
2228ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2229if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2230 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022231else
2232 cat >conftest.make <<\_ACEOF
DJ Delorie75086672009-08-22 14:31:162233SHELL = /bin/sh
Daniel Jacobowitzf5bc1772007-10-11 18:15:022234all:
DJ Delorie75086672009-08-22 14:31:162235@echo '@@@%%%=$(MAKE)=@@@%%%'
Daniel Jacobowitzf5bc1772007-10-11 18:15:022236_ACEOF
2237# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
DJ Delorie75086672009-08-22 14:31:162238case `${MAKE-make} -f conftest.make 2>/dev/null` in
2239 *@@@%%%=?*=@@@%%%*)
2240 eval ac_cv_prog_make_${ac_make}_set=yes;;
2241 *)
2242 eval ac_cv_prog_make_${ac_make}_set=no;;
2243esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:022244rm -f conftest.make
2245fi
DJ Delorie75086672009-08-22 14:31:162246if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2248$as_echo "yes" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022249 SET_MAKE=
2250else
DJ Delorie75086672009-08-22 14:31:162251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2252$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022253 SET_MAKE="MAKE=${MAKE-make}"
2254fi
2255
2256ac_ext=c
2257ac_cpp='$CPP $CPPFLAGS'
2258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261if test -n "$ac_tool_prefix"; then
2262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2263set dummy ${ac_tool_prefix}gcc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2265$as_echo_n "checking for $ac_word... " >&6; }
2266if test "${ac_cv_prog_CC+set}" = set; then :
2267 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022268else
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022279 ac_cv_prog_CC="${ac_tool_prefix}gcc"
DJ Delorie75086672009-08-22 14:31:162280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022281 break 2
2282 fi
2283done
DJ Delorie75086672009-08-22 14:31:162284 done
2285IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022286
2287fi
2288fi
2289CC=$ac_cv_prog_CC
2290if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2292$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022293else
DJ Delorie75086672009-08-22 14:31:162294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2295$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022296fi
2297
DJ Delorie75086672009-08-22 14:31:162298
Daniel Jacobowitzf5bc1772007-10-11 18:15:022299fi
2300if test -z "$ac_cv_prog_CC"; then
2301 ac_ct_CC=$CC
2302 # Extract the first word of "gcc", so it can be a program name with args.
2303set dummy gcc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2305$as_echo_n "checking for $ac_word... " >&6; }
2306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022308else
2309 if test -n "$ac_ct_CC"; then
2310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022319 ac_cv_prog_ac_ct_CC="gcc"
DJ Delorie75086672009-08-22 14:31:162320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022321 break 2
2322 fi
2323done
DJ Delorie75086672009-08-22 14:31:162324 done
2325IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022326
2327fi
2328fi
2329ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330if test -n "$ac_ct_CC"; then
DJ Delorie75086672009-08-22 14:31:162331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2332$as_echo "$ac_ct_CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022333else
DJ Delorie75086672009-08-22 14:31:162334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022336fi
2337
DJ Delorie75086672009-08-22 14:31:162338 if test "x$ac_ct_CC" = x; then
2339 CC=""
2340 else
2341 case $cross_compiling:$ac_tool_warned in
2342yes:)
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2345ac_tool_warned=yes ;;
2346esac
2347 CC=$ac_ct_CC
2348 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022349else
2350 CC="$ac_cv_prog_CC"
2351fi
2352
2353if test -z "$CC"; then
DJ Delorie75086672009-08-22 14:31:162354 if test -n "$ac_tool_prefix"; then
2355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Daniel Jacobowitzf5bc1772007-10-11 18:15:022356set dummy ${ac_tool_prefix}cc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if test "${ac_cv_prog_CC+set}" = set; then :
2360 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022361else
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC="$CC" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022372 ac_cv_prog_CC="${ac_tool_prefix}cc"
DJ Delorie75086672009-08-22 14:31:162373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022374 break 2
2375 fi
2376done
DJ Delorie75086672009-08-22 14:31:162377 done
2378IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022379
2380fi
2381fi
2382CC=$ac_cv_prog_CC
2383if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2385$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022386else
DJ Delorie75086672009-08-22 14:31:162387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022389fi
2390
DJ Delorie75086672009-08-22 14:31:162391
Daniel Jacobowitzf5bc1772007-10-11 18:15:022392 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022393fi
2394if test -z "$CC"; then
2395 # Extract the first word of "cc", so it can be a program name with args.
2396set dummy cc; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398$as_echo_n "checking for $ac_word... " >&6; }
2399if test "${ac_cv_prog_CC+set}" = set; then :
2400 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022401else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404else
2405 ac_prog_rejected=no
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2414 ac_prog_rejected=yes
2415 continue
2416 fi
2417 ac_cv_prog_CC="cc"
DJ Delorie75086672009-08-22 14:31:162418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022419 break 2
2420 fi
2421done
DJ Delorie75086672009-08-22 14:31:162422 done
2423IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022424
2425if test $ac_prog_rejected = yes; then
2426 # We found a bogon in the path, so make sure we never use it.
2427 set dummy $ac_cv_prog_CC
2428 shift
2429 if test $# != 0; then
2430 # We chose a different compiler from the bogus one.
2431 # However, it has the same basename, so the bogon will be chosen
2432 # first if we set CC to just the basename; use the full file name.
2433 shift
2434 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2435 fi
2436fi
2437fi
2438fi
2439CC=$ac_cv_prog_CC
2440if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022443else
DJ Delorie75086672009-08-22 14:31:162444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022446fi
2447
DJ Delorie75086672009-08-22 14:31:162448
Daniel Jacobowitzf5bc1772007-10-11 18:15:022449fi
2450if test -z "$CC"; then
2451 if test -n "$ac_tool_prefix"; then
DJ Delorie75086672009-08-22 14:31:162452 for ac_prog in cl.exe
Daniel Jacobowitzf5bc1772007-10-11 18:15:022453 do
2454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if test "${ac_cv_prog_CC+set}" = set; then :
2459 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022460else
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
DJ Delorie75086672009-08-22 14:31:162472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022473 break 2
2474 fi
2475done
DJ Delorie75086672009-08-22 14:31:162476 done
2477IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022478
2479fi
2480fi
2481CC=$ac_cv_prog_CC
2482if test -n "$CC"; then
DJ Delorie75086672009-08-22 14:31:162483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484$as_echo "$CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022485else
DJ Delorie75086672009-08-22 14:31:162486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022488fi
2489
DJ Delorie75086672009-08-22 14:31:162490
Daniel Jacobowitzf5bc1772007-10-11 18:15:022491 test -n "$CC" && break
2492 done
2493fi
2494if test -z "$CC"; then
2495 ac_ct_CC=$CC
DJ Delorie75086672009-08-22 14:31:162496 for ac_prog in cl.exe
Daniel Jacobowitzf5bc1772007-10-11 18:15:022497do
2498 # Extract the first word of "$ac_prog", so it can be a program name with args.
2499set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:162500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501$as_echo_n "checking for $ac_word... " >&6; }
2502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022504else
2505 if test -n "$ac_ct_CC"; then
2506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:162513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022515 ac_cv_prog_ac_ct_CC="$ac_prog"
DJ Delorie75086672009-08-22 14:31:162516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022517 break 2
2518 fi
2519done
DJ Delorie75086672009-08-22 14:31:162520 done
2521IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:022522
2523fi
2524fi
2525ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526if test -n "$ac_ct_CC"; then
DJ Delorie75086672009-08-22 14:31:162527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2528$as_echo "$ac_ct_CC" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022529else
DJ Delorie75086672009-08-22 14:31:162530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022532fi
2533
DJ Delorie75086672009-08-22 14:31:162534
Daniel Jacobowitzf5bc1772007-10-11 18:15:022535 test -n "$ac_ct_CC" && break
2536done
2537
DJ Delorie75086672009-08-22 14:31:162538 if test "x$ac_ct_CC" = x; then
2539 CC=""
2540 else
2541 case $cross_compiling:$ac_tool_warned in
2542yes:)
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545ac_tool_warned=yes ;;
2546esac
2547 CC=$ac_ct_CC
2548 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022549fi
2550
2551fi
2552
2553
DJ Delorie75086672009-08-22 14:31:162554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556as_fn_error "no acceptable C compiler found in \$PATH
2557See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022558
2559# Provide some information about the compiler.
DJ Delorie75086672009-08-22 14:31:162560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2561set X $ac_compile
2562ac_compiler=$2
2563for ac_option in --version -v -V -qversion; do
2564 { { ac_try="$ac_compiler $ac_option >&5"
2565case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568esac
2569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570$as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Daniel Jacobowitzf5bc1772007-10-11 18:15:022572 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162573 if test -s conftest.err; then
2574 sed '10a\
2575... rest of stderr output deleted ...
2576 10q' conftest.err >conftest.er1
2577 cat conftest.er1 >&5
2578 rm -f conftest.er1 conftest.err
2579 fi
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; }
2582done
Daniel Jacobowitzf5bc1772007-10-11 18:15:022583
DJ Delorie75086672009-08-22 14:31:162584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022585/* end confdefs.h. */
2586
2587int
2588main ()
2589{
2590
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595ac_clean_files_save=$ac_clean_files
DJ Delorie75086672009-08-22 14:31:162596ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Daniel Jacobowitzf5bc1772007-10-11 18:15:022597# Try to create an executable without -o first, disregard a.out.
2598# It will help us diagnose broken compilers, and finding out an intuition
2599# of exeext.
DJ Delorie75086672009-08-22 14:31:162600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2601$as_echo_n "checking for C compiler default output file name... " >&6; }
2602ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:022603
DJ Delorie75086672009-08-22 14:31:162604# The possible output files:
2605ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2606
2607ac_rmfiles=
2608for ac_file in $ac_files
2609do
2610 case $ac_file in
2611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2612 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2613 esac
2614done
2615rm -f $ac_rmfiles
2616
2617if { { ac_try="$ac_link_default"
2618case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621esac
2622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623$as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link_default") 2>&5
2625 ac_status=$?
2626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2627 test $ac_status = 0; }; then :
2628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2629# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2630# in a Makefile. We should not override ac_cv_exeext if it was cached,
2631# so that the user can short-circuit this test for compilers unknown to
2632# Autoconf.
2633for ac_file in $ac_files ''
Daniel Jacobowitzf5bc1772007-10-11 18:15:022634do
2635 test -f "$ac_file" || continue
2636 case $ac_file in
DJ Delorie75086672009-08-22 14:31:162637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Daniel Jacobowitzf5bc1772007-10-11 18:15:022638;;
2639 [ab].out )
2640# We found the default executable, but exeext='' is most
2641# certainly right.
2642break;;
2643 *.* )
DJ Delorie75086672009-08-22 14:31:162644if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2645then :; else
2646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647fi
2648# We set ac_cv_exeext here because the later test for it is not
2649# safe: cross compilers may not add the suffix if given an `-o'
2650# argument, so we may need to know it at that point already.
2651# Even if this section looks crufty: it has the advantage of
2652# actually working.
Daniel Jacobowitzf5bc1772007-10-11 18:15:022653break;;
2654 * )
2655break;;
2656 esac
2657done
DJ Delorie75086672009-08-22 14:31:162658test "$ac_cv_exeext" = no && ac_cv_exeext=
2659
Daniel Jacobowitzf5bc1772007-10-11 18:15:022660else
DJ Delorie75086672009-08-22 14:31:162661 ac_file=''
2662fi
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2664$as_echo "$ac_file" >&6; }
2665if test -z "$ac_file"; then :
2666 $as_echo "$as_me: failed program was:" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022667sed 's/^/| /' conftest.$ac_ext >&5
2668
DJ Delorie75086672009-08-22 14:31:162669{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671{ as_fn_set_status 77
2672as_fn_error "C compiler cannot create executables
2673See \`config.log' for more details." "$LINENO" 5; }; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022674fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022675ac_exeext=$ac_cv_exeext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022676
DJ Delorie75086672009-08-22 14:31:162677# Check that the compiler produces executables we can run. If not, either
Daniel Jacobowitzf5bc1772007-10-11 18:15:022678# the compiler is broken, or we cross compile.
DJ Delorie75086672009-08-22 14:31:162679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2680$as_echo_n "checking whether the C compiler works... " >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022681# If not cross compiling, check that we can run a simple program.
2682if test "$cross_compiling" != yes; then
2683 if { ac_try='./$ac_file'
DJ Delorie75086672009-08-22 14:31:162684 { { case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689$as_echo "$ac_try_echo"; } >&5
2690 (eval "$ac_try") 2>&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022691 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2693 test $ac_status = 0; }; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:022694 cross_compiling=no
2695 else
2696 if test "$cross_compiling" = maybe; then
2697cross_compiling=yes
2698 else
DJ Delorie75086672009-08-22 14:31:162699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701as_fn_error "cannot run C compiled programs.
Daniel Jacobowitzf5bc1772007-10-11 18:15:022702If you meant to cross compile, use \`--host'.
DJ Delorie75086672009-08-22 14:31:162703See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022704 fi
2705 fi
2706fi
DJ Delorie75086672009-08-22 14:31:162707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022709
DJ Delorie75086672009-08-22 14:31:162710rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
Daniel Jacobowitzf5bc1772007-10-11 18:15:022711ac_clean_files=$ac_clean_files_save
DJ Delorie75086672009-08-22 14:31:162712# Check that the compiler produces executables we can run. If not, either
Daniel Jacobowitzf5bc1772007-10-11 18:15:022713# the compiler is broken, or we cross compile.
DJ Delorie75086672009-08-22 14:31:162714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2715$as_echo_n "checking whether we are cross compiling... " >&6; }
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2717$as_echo "$cross_compiling" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022718
DJ Delorie75086672009-08-22 14:31:162719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2720$as_echo_n "checking for suffix of executables... " >&6; }
2721if { { ac_try="$ac_link"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727$as_echo "$ac_try_echo"; } >&5
2728 (eval "$ac_link") 2>&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022729 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; }; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:022732 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2733# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2734# work properly (i.e., refer to `conftest.exe'), while it won't with
2735# `rm'.
2736for ac_file in conftest.exe conftest conftest.*; do
2737 test -f "$ac_file" || continue
2738 case $ac_file in
DJ Delorie75086672009-08-22 14:31:162739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:022741 break;;
2742 * ) break;;
2743 esac
2744done
2745else
DJ Delorie75086672009-08-22 14:31:162746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748as_fn_error "cannot compute suffix of executables: cannot compile and link
2749See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022750fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022751rm -f conftest$ac_cv_exeext
DJ Delorie75086672009-08-22 14:31:162752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2753$as_echo "$ac_cv_exeext" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022754
2755rm -f conftest.$ac_ext
2756EXEEXT=$ac_cv_exeext
2757ac_exeext=$EXEEXT
DJ Delorie75086672009-08-22 14:31:162758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2759$as_echo_n "checking for suffix of object files... " >&6; }
2760if test "${ac_cv_objext+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022762else
DJ Delorie75086672009-08-22 14:31:162763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022764/* end confdefs.h. */
2765
2766int
2767main ()
2768{
2769
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774rm -f conftest.o conftest.obj
DJ Delorie75086672009-08-22 14:31:162775if { { ac_try="$ac_compile"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_compile") 2>&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022783 ac_status=$?
DJ Delorie75086672009-08-22 14:31:162784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }; then :
2786 for ac_file in conftest.o conftest.obj conftest.*; do
2787 test -f "$ac_file" || continue;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022788 case $ac_file in
DJ Delorie75086672009-08-22 14:31:162789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:022790 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2791 break;;
2792 esac
2793done
2794else
DJ Delorie75086672009-08-22 14:31:162795 $as_echo "$as_me: failed program was:" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:022796sed 's/^/| /' conftest.$ac_ext >&5
2797
DJ Delorie75086672009-08-22 14:31:162798{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800as_fn_error "cannot compute suffix of object files: cannot compile
2801See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022802fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022803rm -f conftest.$ac_cv_objext conftest.$ac_ext
2804fi
DJ Delorie75086672009-08-22 14:31:162805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2806$as_echo "$ac_cv_objext" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022807OBJEXT=$ac_cv_objext
2808ac_objext=$OBJEXT
DJ Delorie75086672009-08-22 14:31:162809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2810$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2811if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2812 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022813else
DJ Delorie75086672009-08-22 14:31:162814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022815/* end confdefs.h. */
2816
2817int
2818main ()
2819{
2820#ifndef __GNUC__
2821 choke me
2822#endif
2823
2824 ;
2825 return 0;
2826}
2827_ACEOF
DJ Delorie75086672009-08-22 14:31:162828if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:022829 ac_compiler_gnu=yes
2830else
DJ Delorie75086672009-08-22 14:31:162831 ac_compiler_gnu=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:022832fi
DJ Delorie75086672009-08-22 14:31:162833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022834ac_cv_c_compiler_gnu=$ac_compiler_gnu
2835
2836fi
DJ Delorie75086672009-08-22 14:31:162837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2838$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2839if test $ac_compiler_gnu = yes; then
2840 GCC=yes
2841else
2842 GCC=
2843fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:022844ac_test_CFLAGS=${CFLAGS+set}
2845ac_save_CFLAGS=$CFLAGS
DJ Delorie75086672009-08-22 14:31:162846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2847$as_echo_n "checking whether $CC accepts -g... " >&6; }
2848if test "${ac_cv_prog_cc_g+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022850else
DJ Delorie75086672009-08-22 14:31:162851 ac_save_c_werror_flag=$ac_c_werror_flag
2852 ac_c_werror_flag=yes
2853 ac_cv_prog_cc_g=no
2854 CFLAGS="-g"
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022856/* end confdefs.h. */
2857
2858int
2859main ()
2860{
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
DJ Delorie75086672009-08-22 14:31:162866if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:022867 ac_cv_prog_cc_g=yes
2868else
DJ Delorie75086672009-08-22 14:31:162869 CFLAGS=""
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h. */
Daniel Jacobowitzf5bc1772007-10-11 18:15:022872
DJ Delorie75086672009-08-22 14:31:162873int
2874main ()
2875{
2876
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882
2883else
2884 ac_c_werror_flag=$ac_save_c_werror_flag
2885 CFLAGS="-g"
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h. */
2888
2889int
2890main ()
2891{
2892
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897if ac_fn_c_try_compile "$LINENO"; then :
2898 ac_cv_prog_cc_g=yes
Daniel Jacobowitzf5bc1772007-10-11 18:15:022899fi
DJ Delorie75086672009-08-22 14:31:162900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022901fi
DJ Delorie75086672009-08-22 14:31:162902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903fi
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 ac_c_werror_flag=$ac_save_c_werror_flag
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2908$as_echo "$ac_cv_prog_cc_g" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:022909if test "$ac_test_CFLAGS" = set; then
2910 CFLAGS=$ac_save_CFLAGS
2911elif test $ac_cv_prog_cc_g = yes; then
2912 if test "$GCC" = yes; then
2913 CFLAGS="-g -O2"
2914 else
2915 CFLAGS="-g"
2916 fi
2917else
2918 if test "$GCC" = yes; then
2919 CFLAGS="-O2"
2920 else
2921 CFLAGS=
2922 fi
2923fi
DJ Delorie75086672009-08-22 14:31:162924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2925$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2926if test "${ac_cv_prog_cc_c89+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:022928else
DJ Delorie75086672009-08-22 14:31:162929 ac_cv_prog_cc_c89=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:022930ac_save_CC=$CC
DJ Delorie75086672009-08-22 14:31:162931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022932/* end confdefs.h. */
2933#include <stdarg.h>
2934#include <stdio.h>
2935#include <sys/types.h>
2936#include <sys/stat.h>
2937/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2938struct buf { int x; };
2939FILE * (*rcsopen) (struct buf *, struct stat *, int);
2940static char *e (p, i)
2941 char **p;
2942 int i;
2943{
2944 return p[i];
2945}
2946static char *f (char * (*g) (char **, int), char **p, ...)
2947{
2948 char *s;
2949 va_list v;
2950 va_start (v,p);
2951 s = g (p, va_arg (v,int));
2952 va_end (v);
2953 return s;
2954}
2955
2956/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2957 function prototypes and stuff, but not '\xHH' hex character constants.
2958 These don't provoke an error unfortunately, instead are silently treated
DJ Delorie75086672009-08-22 14:31:162959 as 'x'. The following induces an error, until -std is added to get
Daniel Jacobowitzf5bc1772007-10-11 18:15:022960 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2961 array size at least. It's necessary to write '\x00'==0 to get something
DJ Delorie75086672009-08-22 14:31:162962 that's true only with -std. */
Daniel Jacobowitzf5bc1772007-10-11 18:15:022963int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2964
DJ Delorie75086672009-08-22 14:31:162965/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2966 inside strings and character constants. */
2967#define FOO(x) 'x'
2968int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2969
Daniel Jacobowitzf5bc1772007-10-11 18:15:022970int test (int i, double x);
2971struct s1 {int (*f) (int a);};
2972struct s2 {int (*f) (double a);};
2973int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2974int argc;
2975char **argv;
2976int
2977main ()
2978{
2979return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2980 ;
2981 return 0;
2982}
2983_ACEOF
DJ Delorie75086672009-08-22 14:31:162984for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2985-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Daniel Jacobowitzf5bc1772007-10-11 18:15:022986do
2987 CC="$ac_save_CC $ac_arg"
DJ Delorie75086672009-08-22 14:31:162988 if ac_fn_c_try_compile "$LINENO"; then :
2989 ac_cv_prog_cc_c89=$ac_arg
Daniel Jacobowitzf5bc1772007-10-11 18:15:022990fi
DJ Delorie75086672009-08-22 14:31:162991rm -f core conftest.err conftest.$ac_objext
2992 test "x$ac_cv_prog_cc_c89" != "xno" && break
Daniel Jacobowitzf5bc1772007-10-11 18:15:022993done
DJ Delorie75086672009-08-22 14:31:162994rm -f conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:022995CC=$ac_save_CC
2996
2997fi
DJ Delorie75086672009-08-22 14:31:162998# AC_CACHE_VAL
2999case "x$ac_cv_prog_cc_c89" in
3000 x)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3002$as_echo "none needed" >&6; } ;;
3003 xno)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3005$as_echo "unsupported" >&6; } ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023006 *)
DJ Delorie75086672009-08-22 14:31:163007 CC="$CC $ac_cv_prog_cc_c89"
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3009$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023010esac
DJ Delorie75086672009-08-22 14:31:163011if test "x$ac_cv_prog_cc_c89" != xno; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023012
3013fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023014
Daniel Jacobowitzf5bc1772007-10-11 18:15:023015ac_ext=c
3016ac_cpp='$CPP $CPPFLAGS'
3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3023set dummy ${ac_tool_prefix}ranlib; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if test "${ac_cv_prog_RANLIB+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023028else
3029 if test -n "$RANLIB"; then
3030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
DJ Delorie75086672009-08-22 14:31:163040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023041 break 2
3042 fi
3043done
DJ Delorie75086672009-08-22 14:31:163044 done
3045IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023046
3047fi
3048fi
3049RANLIB=$ac_cv_prog_RANLIB
3050if test -n "$RANLIB"; then
DJ Delorie75086672009-08-22 14:31:163051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3052$as_echo "$RANLIB" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023053else
DJ Delorie75086672009-08-22 14:31:163054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023056fi
3057
DJ Delorie75086672009-08-22 14:31:163058
Daniel Jacobowitzf5bc1772007-10-11 18:15:023059fi
3060if test -z "$ac_cv_prog_RANLIB"; then
3061 ac_ct_RANLIB=$RANLIB
3062 # Extract the first word of "ranlib", so it can be a program name with args.
3063set dummy ranlib; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023068else
3069 if test -n "$ac_ct_RANLIB"; then
3070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023079 ac_cv_prog_ac_ct_RANLIB="ranlib"
DJ Delorie75086672009-08-22 14:31:163080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023081 break 2
3082 fi
3083done
DJ Delorie75086672009-08-22 14:31:163084 done
3085IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023086
Daniel Jacobowitzf5bc1772007-10-11 18:15:023087fi
3088fi
3089ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3090if test -n "$ac_ct_RANLIB"; then
DJ Delorie75086672009-08-22 14:31:163091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3092$as_echo "$ac_ct_RANLIB" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023093else
DJ Delorie75086672009-08-22 14:31:163094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023096fi
3097
DJ Delorie75086672009-08-22 14:31:163098 if test "x$ac_ct_RANLIB" = x; then
3099 RANLIB=":"
3100 else
3101 case $cross_compiling:$ac_tool_warned in
3102yes:)
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105ac_tool_warned=yes ;;
3106esac
3107 RANLIB=$ac_ct_RANLIB
3108 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023109else
3110 RANLIB="$ac_cv_prog_RANLIB"
3111fi
3112
3113
3114MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3115for ac_prog in aclocal
3116do
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023123else
3124 if test -n "$ACLOCAL"; then
3125 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023134 ac_cv_prog_ACLOCAL="$ac_prog"
DJ Delorie75086672009-08-22 14:31:163135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023136 break 2
3137 fi
3138done
DJ Delorie75086672009-08-22 14:31:163139 done
3140IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023141
3142fi
3143fi
3144ACLOCAL=$ac_cv_prog_ACLOCAL
3145if test -n "$ACLOCAL"; then
DJ Delorie75086672009-08-22 14:31:163146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
3147$as_echo "$ACLOCAL" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023148else
DJ Delorie75086672009-08-22 14:31:163149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023151fi
3152
DJ Delorie75086672009-08-22 14:31:163153
Daniel Jacobowitzf5bc1772007-10-11 18:15:023154 test -n "$ACLOCAL" && break
3155done
3156test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
3157
3158for ac_prog in autoconf
3159do
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
3164if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023166else
3167 if test -n "$AUTOCONF"; then
3168 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023177 ac_cv_prog_AUTOCONF="$ac_prog"
DJ Delorie75086672009-08-22 14:31:163178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023179 break 2
3180 fi
3181done
DJ Delorie75086672009-08-22 14:31:163182 done
3183IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023184
3185fi
3186fi
3187AUTOCONF=$ac_cv_prog_AUTOCONF
3188if test -n "$AUTOCONF"; then
DJ Delorie75086672009-08-22 14:31:163189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
3190$as_echo "$AUTOCONF" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023191else
DJ Delorie75086672009-08-22 14:31:163192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023194fi
3195
DJ Delorie75086672009-08-22 14:31:163196
Daniel Jacobowitzf5bc1772007-10-11 18:15:023197 test -n "$AUTOCONF" && break
3198done
3199test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
3200
3201for ac_prog in autoheader
3202do
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204set dummy $ac_prog; ac_word=$2
DJ Delorie75086672009-08-22 14:31:163205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206$as_echo_n "checking for $ac_word... " >&6; }
3207if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023209else
3210 if test -n "$AUTOHEADER"; then
3211 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
DJ Delorie75086672009-08-22 14:31:163218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:023220 ac_cv_prog_AUTOHEADER="$ac_prog"
DJ Delorie75086672009-08-22 14:31:163221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:023222 break 2
3223 fi
3224done
DJ Delorie75086672009-08-22 14:31:163225 done
3226IFS=$as_save_IFS
Daniel Jacobowitzf5bc1772007-10-11 18:15:023227
3228fi
3229fi
3230AUTOHEADER=$ac_cv_prog_AUTOHEADER
3231if test -n "$AUTOHEADER"; then
DJ Delorie75086672009-08-22 14:31:163232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
3233$as_echo "$AUTOHEADER" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023234else
DJ Delorie75086672009-08-22 14:31:163235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023237fi
3238
DJ Delorie75086672009-08-22 14:31:163239
Daniel Jacobowitzf5bc1772007-10-11 18:15:023240 test -n "$AUTOHEADER" && break
3241done
3242test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
3243
3244
3245# Figure out what compiler warnings we can enable.
3246# See config/warnings.m4 for details.
3247
3248
3249WARN_CFLAGS=
3250save_CFLAGS="$CFLAGS"
Andreas Schwaba53e62c2011-12-19 13:20:243251for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
Daniel Jacobowitzf5bc1772007-10-11 18:15:023252 -Wmissing-prototypes -Wold-style-definition \
3253 -Wmissing-format-attribute -Wcast-qual; do
Andreas Schwaba53e62c2011-12-19 13:20:243254 # Do the check with the no- prefix removed since gcc silently
3255 # accepts any -Wno-* option on purpose
3256 case $real_option in
3257 -Wno-*) option=-W`expr $real_option : '-Wno-\(.*\)'` ;;
3258 *) option=$real_option ;;
3259 esac
DJ Delorie75086672009-08-22 14:31:163260 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
Daniel Jacobowitzf5bc1772007-10-11 18:15:023261
DJ Delorie75086672009-08-22 14:31:163262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3263$as_echo_n "checking whether $CC supports $option... " >&6; }
3264if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
3265 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023266else
3267 CFLAGS="$option"
DJ Delorie75086672009-08-22 14:31:163268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023269/* end confdefs.h. */
3270
3271int
3272main ()
3273{
3274
3275 ;
3276 return 0;
3277}
3278_ACEOF
DJ Delorie75086672009-08-22 14:31:163279if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023280 eval "$as_acx_Woption=yes"
3281else
DJ Delorie75086672009-08-22 14:31:163282 eval "$as_acx_Woption=no"
Daniel Jacobowitzf5bc1772007-10-11 18:15:023283fi
DJ Delorie75086672009-08-22 14:31:163284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023285
3286fi
DJ Delorie75086672009-08-22 14:31:163287eval ac_res=\$$as_acx_Woption
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3289$as_echo "$ac_res" >&6; }
3290 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
Andreas Schwaba53e62c2011-12-19 13:20:243291 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option"
Daniel Jacobowitzf5bc1772007-10-11 18:15:023292fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023293 done
3294CFLAGS="$save_CFLAGS"
3295
3296WARN_PEDANTIC=
Andreas Schwaba53e62c2011-12-19 13:20:243297# Do the check with the no- prefix removed from the warning options
3298# since gcc silently accepts any -Wno-* option on purpose
DJ Delorie75086672009-08-22 14:31:163299if test "$GCC" = yes; then :
Andreas Schwaba53e62c2011-12-19 13:20:243300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
3301$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
3302if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
DJ Delorie75086672009-08-22 14:31:163303 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023304else
3305 save_CFLAGS="$CFLAGS"
Andreas Schwaba53e62c2011-12-19 13:20:243306CFLAGS="-pedantic -Wlong-long"
DJ Delorie75086672009-08-22 14:31:163307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
DJ Delorie75086672009-08-22 14:31:163318if ac_fn_c_try_compile "$LINENO"; then :
Andreas Schwaba53e62c2011-12-19 13:20:243319 acx_cv_prog_cc_pedantic__Wlong_long=yes
Daniel Jacobowitzf5bc1772007-10-11 18:15:023320else
Andreas Schwaba53e62c2011-12-19 13:20:243321 acx_cv_prog_cc_pedantic__Wlong_long=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023322fi
DJ Delorie75086672009-08-22 14:31:163323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023324CFLAGS="$save_CFLAGS"
3325fi
Andreas Schwaba53e62c2011-12-19 13:20:243326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
3327$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
3328if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023329 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3330fi
3331
Daniel Jacobowitzf5bc1772007-10-11 18:15:023332fi
3333
3334
Daniel Jacobowitzf5bc1772007-10-11 18:15:023335# Only enable with --enable-werror-always until existing warnings are
3336# corrected.
3337WERROR=
DJ Delorie75086672009-08-22 14:31:163338# Check whether --enable-werror-always was given.
3339if test "${enable_werror_always+set}" = set; then :
3340 enableval=$enable_werror_always;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023341else
3342 enable_werror_always=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023343fi
3344
DJ Delorie75086672009-08-22 14:31:163345if test $enable_werror_always = yes; then :
3346 WERROR="$WERROR${WERROR:+ }-Werror"
3347fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023348
3349
3350
3351# Checks for header files.
3352ac_ext=c
3353ac_cpp='$CPP $CPPFLAGS'
3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356ac_compiler_gnu=$ac_cv_c_compiler_gnu
DJ Delorie75086672009-08-22 14:31:163357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3358$as_echo_n "checking how to run the C preprocessor... " >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023359# On Suns, sometimes $CPP names a directory.
3360if test -n "$CPP" && test -d "$CPP"; then
3361 CPP=
3362fi
3363if test -z "$CPP"; then
DJ Delorie75086672009-08-22 14:31:163364 if test "${ac_cv_prog_CPP+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023366else
3367 # Double quotes because CPP needs to be expanded
3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3369 do
3370 ac_preproc_ok=false
3371for ac_c_preproc_warn_flag in '' yes
3372do
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
DJ Delorie75086672009-08-22 14:31:163379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023380/* end confdefs.h. */
3381#ifdef __STDC__
3382# include <limits.h>
3383#else
3384# include <assert.h>
3385#endif
3386 Syntax error
3387_ACEOF
DJ Delorie75086672009-08-22 14:31:163388if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023389
DJ Delorie75086672009-08-22 14:31:163390else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023391 # Broken: fails on valid input.
3392continue
3393fi
3394rm -f conftest.err conftest.$ac_ext
3395
DJ Delorie75086672009-08-22 14:31:163396 # OK, works on sane cases. Now check whether nonexistent headers
Daniel Jacobowitzf5bc1772007-10-11 18:15:023397 # can be detected and how.
DJ Delorie75086672009-08-22 14:31:163398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023399/* end confdefs.h. */
3400#include <ac_nonexistent.h>
3401_ACEOF
DJ Delorie75086672009-08-22 14:31:163402if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023403 # Broken: success on invalid input.
3404continue
3405else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023406 # Passes both tests.
3407ac_preproc_ok=:
3408break
3409fi
3410rm -f conftest.err conftest.$ac_ext
3411
3412done
3413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3414rm -f conftest.err conftest.$ac_ext
DJ Delorie75086672009-08-22 14:31:163415if $ac_preproc_ok; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023416 break
3417fi
3418
3419 done
3420 ac_cv_prog_CPP=$CPP
3421
3422fi
3423 CPP=$ac_cv_prog_CPP
3424else
3425 ac_cv_prog_CPP=$CPP
3426fi
DJ Delorie75086672009-08-22 14:31:163427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3428$as_echo "$CPP" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023429ac_preproc_ok=false
3430for ac_c_preproc_warn_flag in '' yes
3431do
3432 # Use a header file that comes with gcc, so configuring glibc
3433 # with a fresh cross-compiler works.
3434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435 # <limits.h> exists even on freestanding compilers.
3436 # On the NeXT, cc -E runs the code through the compiler's parser,
3437 # not just through cpp. "Syntax error" is here to catch this case.
DJ Delorie75086672009-08-22 14:31:163438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023439/* end confdefs.h. */
3440#ifdef __STDC__
3441# include <limits.h>
3442#else
3443# include <assert.h>
3444#endif
3445 Syntax error
3446_ACEOF
DJ Delorie75086672009-08-22 14:31:163447if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023448
DJ Delorie75086672009-08-22 14:31:163449else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023450 # Broken: fails on valid input.
3451continue
3452fi
3453rm -f conftest.err conftest.$ac_ext
3454
DJ Delorie75086672009-08-22 14:31:163455 # OK, works on sane cases. Now check whether nonexistent headers
Daniel Jacobowitzf5bc1772007-10-11 18:15:023456 # can be detected and how.
DJ Delorie75086672009-08-22 14:31:163457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023458/* end confdefs.h. */
3459#include <ac_nonexistent.h>
3460_ACEOF
DJ Delorie75086672009-08-22 14:31:163461if ac_fn_c_try_cpp "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023462 # Broken: success on invalid input.
3463continue
3464else
Daniel Jacobowitzf5bc1772007-10-11 18:15:023465 # Passes both tests.
3466ac_preproc_ok=:
3467break
3468fi
3469rm -f conftest.err conftest.$ac_ext
3470
3471done
3472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3473rm -f conftest.err conftest.$ac_ext
DJ Delorie75086672009-08-22 14:31:163474if $ac_preproc_ok; then :
3475
Daniel Jacobowitzf5bc1772007-10-11 18:15:023476else
DJ Delorie75086672009-08-22 14:31:163477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error "C preprocessor \"$CPP\" fails sanity check
3480See \`config.log' for more details." "$LINENO" 5; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023481fi
3482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
DJ Delorie75086672009-08-22 14:31:163490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3491$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3492if test "${ac_cv_path_GREP+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:023494else
DJ Delorie75086672009-08-22 14:31:163495 if test -z "$GREP"; then
3496 ac_path_GREP_found=false
3497 # Loop through the user's path and test for each of PROGNAME-LIST
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3500do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_prog in grep ggrep; do
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3506 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3507# Check for GNU ac_path_GREP and select it if it is found.
3508 # Check for GNU $ac_path_GREP
3509case `"$ac_path_GREP" --version 2>&1` in
3510*GNU*)
3511 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3512*)
3513 ac_count=0
3514 $as_echo_n 0123456789 >"conftest.in"
3515 while :
3516 do
3517 cat "conftest.in" "conftest.in" >"conftest.tmp"
3518 mv "conftest.tmp" "conftest.in"
3519 cp "conftest.in" "conftest.nl"
3520 $as_echo 'GREP' >> "conftest.nl"
3521 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3523 as_fn_arith $ac_count + 1 && ac_count=$as_val
3524 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3525 # Best one so far, save it but keep looking for a better one
3526 ac_cv_path_GREP="$ac_path_GREP"
3527 ac_path_GREP_max=$ac_count
Daniel Jacobowitzf5bc1772007-10-11 18:15:023528 fi
DJ Delorie75086672009-08-22 14:31:163529 # 10*(2^10) chars as input seems more than enough
3530 test $ac_count -gt 10 && break
3531 done
3532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3533esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:023534
DJ Delorie75086672009-08-22 14:31:163535 $ac_path_GREP_found && break 3
3536 done
3537 done
3538 done
3539IFS=$as_save_IFS
3540 if test -z "$ac_cv_path_GREP"; then
3541 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3542 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023543else
DJ Delorie75086672009-08-22 14:31:163544 ac_cv_path_GREP=$GREP
3545fi
3546
3547fi
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3549$as_echo "$ac_cv_path_GREP" >&6; }
3550 GREP="$ac_cv_path_GREP"
3551
3552
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3554$as_echo_n "checking for egrep... " >&6; }
3555if test "${ac_cv_path_EGREP+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557else
3558 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3559 then ac_cv_path_EGREP="$GREP -E"
3560 else
3561 if test -z "$EGREP"; then
3562 ac_path_EGREP_found=false
3563 # Loop through the user's path and test for each of PROGNAME-LIST
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_prog in egrep; do
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3572 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3573# Check for GNU ac_path_EGREP and select it if it is found.
3574 # Check for GNU $ac_path_EGREP
3575case `"$ac_path_EGREP" --version 2>&1` in
3576*GNU*)
3577 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3578*)
3579 ac_count=0
3580 $as_echo_n 0123456789 >"conftest.in"
3581 while :
3582 do
3583 cat "conftest.in" "conftest.in" >"conftest.tmp"
3584 mv "conftest.tmp" "conftest.in"
3585 cp "conftest.in" "conftest.nl"
3586 $as_echo 'EGREP' >> "conftest.nl"
3587 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3589 as_fn_arith $ac_count + 1 && ac_count=$as_val
3590 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3591 # Best one so far, save it but keep looking for a better one
3592 ac_cv_path_EGREP="$ac_path_EGREP"
3593 ac_path_EGREP_max=$ac_count
3594 fi
3595 # 10*(2^10) chars as input seems more than enough
3596 test $ac_count -gt 10 && break
3597 done
3598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3599esac
3600
3601 $ac_path_EGREP_found && break 3
3602 done
3603 done
3604 done
3605IFS=$as_save_IFS
3606 if test -z "$ac_cv_path_EGREP"; then
3607 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3608 fi
3609else
3610 ac_cv_path_EGREP=$EGREP
3611fi
3612
3613 fi
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3616$as_echo "$ac_cv_path_EGREP" >&6; }
3617 EGREP="$ac_cv_path_EGREP"
3618
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3621$as_echo_n "checking for ANSI C header files... " >&6; }
3622if test "${ac_cv_header_stdc+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023626/* end confdefs.h. */
3627#include <stdlib.h>
3628#include <stdarg.h>
3629#include <string.h>
3630#include <float.h>
3631
3632int
3633main ()
3634{
3635
3636 ;
3637 return 0;
3638}
3639_ACEOF
DJ Delorie75086672009-08-22 14:31:163640if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023641 ac_cv_header_stdc=yes
3642else
DJ Delorie75086672009-08-22 14:31:163643 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023644fi
DJ Delorie75086672009-08-22 14:31:163645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023646
3647if test $ac_cv_header_stdc = yes; then
3648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:163649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023650/* end confdefs.h. */
3651#include <string.h>
3652
3653_ACEOF
3654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:163655 $EGREP "memchr" >/dev/null 2>&1; then :
3656
Daniel Jacobowitzf5bc1772007-10-11 18:15:023657else
3658 ac_cv_header_stdc=no
3659fi
3660rm -f conftest*
3661
3662fi
3663
3664if test $ac_cv_header_stdc = yes; then
3665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:163666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023667/* end confdefs.h. */
3668#include <stdlib.h>
3669
3670_ACEOF
3671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:163672 $EGREP "free" >/dev/null 2>&1; then :
3673
Daniel Jacobowitzf5bc1772007-10-11 18:15:023674else
3675 ac_cv_header_stdc=no
3676fi
3677rm -f conftest*
3678
3679fi
3680
3681if test $ac_cv_header_stdc = yes; then
3682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
DJ Delorie75086672009-08-22 14:31:163683 if test "$cross_compiling" = yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023684 :
3685else
DJ Delorie75086672009-08-22 14:31:163686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:023687/* end confdefs.h. */
3688#include <ctype.h>
DJ Delorie75086672009-08-22 14:31:163689#include <stdlib.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:023690#if ((' ' & 0x0FF) == 0x020)
3691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3693#else
3694# define ISLOWER(c) \
3695 (('a' <= (c) && (c) <= 'i') \
3696 || ('j' <= (c) && (c) <= 'r') \
3697 || ('s' <= (c) && (c) <= 'z'))
3698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3699#endif
3700
3701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3702int
3703main ()
3704{
3705 int i;
3706 for (i = 0; i < 256; i++)
3707 if (XOR (islower (i), ISLOWER (i))
3708|| toupper (i) != TOUPPER (i))
DJ Delorie75086672009-08-22 14:31:163709 return 2;
3710 return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:023711}
3712_ACEOF
DJ Delorie75086672009-08-22 14:31:163713if ac_fn_c_try_run "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023714
DJ Delorie75086672009-08-22 14:31:163715else
3716 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:023717fi
DJ Delorie75086672009-08-22 14:31:163718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3719 conftest.$ac_objext conftest.beam conftest.$ac_ext
3720fi
3721
Daniel Jacobowitzf5bc1772007-10-11 18:15:023722fi
3723fi
DJ Delorie75086672009-08-22 14:31:163724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3725$as_echo "$ac_cv_header_stdc" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023726if test $ac_cv_header_stdc = yes; then
3727
DJ Delorie75086672009-08-22 14:31:163728$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:023729
3730fi
3731
3732# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Daniel Jacobowitzf5bc1772007-10-11 18:15:023733for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3734 inttypes.h stdint.h unistd.h
DJ Delorie75086672009-08-22 14:31:163735do :
3736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3737ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3738"
3739eval as_val=\$$as_ac_Header
3740 if test "x$as_val" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023741 cat >>confdefs.h <<_ACEOF
DJ Delorie75086672009-08-22 14:31:163742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Daniel Jacobowitzf5bc1772007-10-11 18:15:023743_ACEOF
3744
3745fi
3746
3747done
3748
3749
Daniel Jacobowitzf5bc1772007-10-11 18:15:023750for ac_header in ctype.h stddef.h string.h stdio.h
DJ Delorie75086672009-08-22 14:31:163751do :
3752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3754eval as_val=\$$as_ac_Header
3755 if test "x$as_val" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023756 cat >>confdefs.h <<_ACEOF
DJ Delorie75086672009-08-22 14:31:163757#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Daniel Jacobowitzf5bc1772007-10-11 18:15:023758_ACEOF
3759
3760fi
3761
3762done
3763
3764
3765
DJ Delorieb1dfe692009-09-09 20:25:353766inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
DJ Delorie52c745b2009-09-09 17:08:233767
DJ Delorieb1dfe692009-09-09 20:25:353768acx_cv_header_stdint=stddef.h
3769acx_cv_header_stdint_kind="(already complete)"
3770for i in stdint.h $inttype_headers; do
3771 unset ac_cv_type_uintptr_t
3772 unset ac_cv_type_uintmax_t
3773 unset ac_cv_type_int_least32_t
3774 unset ac_cv_type_int_fast32_t
3775 unset ac_cv_type_uint64_t
3776 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
3777 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
3778#include <$i>
3779"
DJ Delorie52c745b2009-09-09 17:08:233780if test "x$ac_cv_type_uintmax_t" = x""yes; then :
DJ Delorieb1dfe692009-09-09 20:25:353781 acx_cv_header_stdint=$i
DJ Delorie52c745b2009-09-09 17:08:233782else
DJ Delorieb1dfe692009-09-09 20:25:353783 continue
DJ Delorie52c745b2009-09-09 17:08:233784fi
3785
DJ Delorieb1dfe692009-09-09 20:25:353786 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
3787#include <$i>
3788"
DJ Delorie75086672009-08-22 14:31:163789if test "x$ac_cv_type_uintptr_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023790
Daniel Jacobowitzf5bc1772007-10-11 18:15:023791else
DJ Delorieb1dfe692009-09-09 20:25:353792 acx_cv_header_stdint_kind="(mostly complete)"
Daniel Jacobowitzf5bc1772007-10-11 18:15:023793fi
3794
DJ Delorieb1dfe692009-09-09 20:25:353795 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
3796#include <$i>
DJ Delorie75086672009-08-22 14:31:163797"
3798if test "x$ac_cv_type_int_least32_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023799
DJ Delorieb1dfe692009-09-09 20:25:353800else
3801 acx_cv_header_stdint_kind="(mostly complete)"
DJ Delorie52c745b2009-09-09 17:08:233802fi
DJ Delorieb1dfe692009-09-09 20:25:353803
3804 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
3805#include <$i>
DJ Delorie75086672009-08-22 14:31:163806"
3807if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023808
DJ Delorieb1dfe692009-09-09 20:25:353809else
3810 acx_cv_header_stdint_kind="(mostly complete)"
3811fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023812
DJ Delorieb1dfe692009-09-09 20:25:353813 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
3814#include <$i>
3815"
3816if test "x$ac_cv_type_uint64_t" = x""yes; then :
3817
3818else
3819 acx_cv_header_stdint_kind="(lacks uint64_t)"
3820fi
3821
3822 break
3823done
3824if test "$acx_cv_header_stdint" = stddef.h; then
3825 acx_cv_header_stdint_kind="(lacks uintmax_t)"
3826 for i in stdint.h $inttype_headers; do
3827 unset ac_cv_type_uintptr_t
3828 unset ac_cv_type_uint32_t
3829 unset ac_cv_type_uint64_t
3830 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
3831 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
3832#include <$i>
3833"
3834if test "x$ac_cv_type_uint32_t" = x""yes; then :
3835 acx_cv_header_stdint=$i
3836else
3837 continue
3838fi
3839
3840 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
3841#include <$i>
3842"
3843if test "x$ac_cv_type_uint64_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:023844
Daniel Jacobowitzf5bc1772007-10-11 18:15:023845fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:023846
DJ Delorieb1dfe692009-09-09 20:25:353847 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
3848#include <$i>
3849"
3850if test "x$ac_cv_type_uintptr_t" = x""yes; then :
3851
3852fi
3853
3854 break
3855 done
3856fi
3857if test "$acx_cv_header_stdint" = stddef.h; then
3858 acx_cv_header_stdint_kind="(u_intXX_t style)"
3859 for i in sys/types.h $inttype_headers; do
3860 unset ac_cv_type_u_int32_t
3861 unset ac_cv_type_u_int64_t
3862 $as_echo_n "looking for u_intXX_t types in $i, " >&6
3863 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
3864#include <$i>
3865"
3866if test "x$ac_cv_type_u_int32_t" = x""yes; then :
3867 acx_cv_header_stdint=$i
3868else
3869 continue
3870fi
3871
3872 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
3873#include <$i>
3874"
3875if test "x$ac_cv_type_u_int64_t" = x""yes; then :
3876
3877fi
3878
3879 break
3880 done
3881fi
3882if test "$acx_cv_header_stdint" = stddef.h; then
3883 acx_cv_header_stdint_kind="(using manual detection)"
3884fi
3885
3886test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3887test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3888test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3889test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3890test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3891
3892# ----------------- Summarize what we found so far
3893
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
3895$as_echo_n "checking what to include in gstdint.h... " >&6; }
3896
3897case `$as_basename -- gstdint.h ||
3898$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3899 Xgstdint.h : 'X\(//\)$' \| \
3900 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
3901$as_echo X/gstdint.h |
3902 sed '/^.*\/\([^/][^/]*\)\/*$/{
3903 s//\1/
3904 q
3905 }
3906 /^X\/\(\/\/\)$/{
3907 s//\1/
3908 q
3909 }
3910 /^X\/\(\/\).*/{
3911 s//\1/
3912 q
3913 }
3914 s/.*/./; q'` in
3915 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
3916$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3917 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
3918$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3919 *) ;;
3920esac
3921
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3923$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
3924
3925# ----------------- done included file, check C basic types --------
3926
3927# Lacking an uintptr_t? Test size of void *
3928case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3929 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
3930# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3931# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3932# This bug is HP SR number 8606223364.
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3934$as_echo_n "checking size of void *... " >&6; }
3935if test "${ac_cv_sizeof_void_p+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937else
3938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
3939
3940else
3941 if test "$ac_cv_type_void_p" = yes; then
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944{ as_fn_set_status 77
3945as_fn_error "cannot compute sizeof (void *)
3946See \`config.log' for more details." "$LINENO" 5; }; }
3947 else
3948 ac_cv_sizeof_void_p=0
3949 fi
3950fi
3951
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
3954$as_echo "$ac_cv_sizeof_void_p" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:023955
Daniel Jacobowitzf5bc1772007-10-11 18:15:023956
Daniel Jacobowitzf5bc1772007-10-11 18:15:023957
DJ Delorieb1dfe692009-09-09 20:25:353958cat >>confdefs.h <<_ACEOF
3959#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3960_ACEOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:023961
DJ Delorieb1dfe692009-09-09 20:25:353962 ;;
3963esac
3964
3965# Lacking an uint64_t? Test size of long
3966case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
3967 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
3968# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3969# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3970# This bug is HP SR number 8606223364.
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
3972$as_echo_n "checking size of long... " >&6; }
3973if test "${ac_cv_sizeof_long+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975else
3976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
3977
3978else
3979 if test "$ac_cv_type_long" = yes; then
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982{ as_fn_set_status 77
3983as_fn_error "cannot compute sizeof (long)
3984See \`config.log' for more details." "$LINENO" 5; }; }
3985 else
3986 ac_cv_sizeof_long=0
3987 fi
3988fi
3989
3990fi
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
3992$as_echo "$ac_cv_sizeof_long" >&6; }
3993
3994
3995
3996cat >>confdefs.h <<_ACEOF
3997#define SIZEOF_LONG $ac_cv_sizeof_long
3998_ACEOF
3999
4000 ;;
4001esac
4002
4003if test $acx_cv_header_stdint = stddef.h; then
4004 # Lacking a good header? Test size of everything and deduce all types.
4005 # The cast to long int works around a bug in the HP C Compiler
4006# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4007# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4008# This bug is HP SR number 8606223364.
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4010$as_echo_n "checking size of int... " >&6; }
4011if test "${ac_cv_sizeof_int+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4013else
4014 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4015
4016else
4017 if test "$ac_cv_type_int" = yes; then
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020{ as_fn_set_status 77
4021as_fn_error "cannot compute sizeof (int)
4022See \`config.log' for more details." "$LINENO" 5; }; }
4023 else
4024 ac_cv_sizeof_int=0
4025 fi
4026fi
4027
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4030$as_echo "$ac_cv_sizeof_int" >&6; }
4031
4032
4033
4034cat >>confdefs.h <<_ACEOF
4035#define SIZEOF_INT $ac_cv_sizeof_int
4036_ACEOF
4037
4038
4039 # The cast to long int works around a bug in the HP C Compiler
4040# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4041# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4042# This bug is HP SR number 8606223364.
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4044$as_echo_n "checking size of short... " >&6; }
4045if test "${ac_cv_sizeof_short+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047else
4048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4049
4050else
4051 if test "$ac_cv_type_short" = yes; then
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054{ as_fn_set_status 77
4055as_fn_error "cannot compute sizeof (short)
4056See \`config.log' for more details." "$LINENO" 5; }; }
4057 else
4058 ac_cv_sizeof_short=0
4059 fi
4060fi
4061
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4064$as_echo "$ac_cv_sizeof_short" >&6; }
4065
4066
4067
4068cat >>confdefs.h <<_ACEOF
4069#define SIZEOF_SHORT $ac_cv_sizeof_short
4070_ACEOF
4071
4072
4073 # The cast to long int works around a bug in the HP C Compiler
4074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4076# This bug is HP SR number 8606223364.
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4078$as_echo_n "checking size of char... " >&6; }
4079if test "${ac_cv_sizeof_char+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081else
4082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
4083
4084else
4085 if test "$ac_cv_type_char" = yes; then
4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088{ as_fn_set_status 77
4089as_fn_error "cannot compute sizeof (char)
4090See \`config.log' for more details." "$LINENO" 5; }; }
4091 else
4092 ac_cv_sizeof_char=0
4093 fi
4094fi
4095
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4098$as_echo "$ac_cv_sizeof_char" >&6; }
4099
4100
4101
4102cat >>confdefs.h <<_ACEOF
4103#define SIZEOF_CHAR $ac_cv_sizeof_char
4104_ACEOF
4105
4106
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
4109$as_echo_n "checking for type equivalent to int8_t... " >&6; }
4110 case "$ac_cv_sizeof_char" in
4111 1) acx_cv_type_int8_t=char ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064112 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354113 esac
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
4115$as_echo "$acx_cv_type_int8_t" >&6; }
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
4118$as_echo_n "checking for type equivalent to int16_t... " >&6; }
4119 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
4120 2:*) acx_cv_type_int16_t=int ;;
4121 *:2) acx_cv_type_int16_t=short ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064122 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354123 esac
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
4125$as_echo "$acx_cv_type_int16_t" >&6; }
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
4128$as_echo_n "checking for type equivalent to int32_t... " >&6; }
4129 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
4130 4:*) acx_cv_type_int32_t=int ;;
4131 *:4) acx_cv_type_int32_t=long ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064132 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354133 esac
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
4135$as_echo "$acx_cv_type_int32_t" >&6; }
4136fi
4137
4138# These tests are here to make the output prettier
4139
4140if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
4141 case "$ac_cv_sizeof_long" in
4142 8) acx_cv_type_int64_t=long ;;
4143 esac
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
4145$as_echo_n "checking for type equivalent to int64_t... " >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
4147$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
4148fi
4149
4150# Now we can use the above types
4151
4152if test "$ac_cv_type_uintptr_t" != yes; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
4154$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
4155 case $ac_cv_sizeof_void_p in
4156 2) acx_cv_type_intptr_t=int16_t ;;
4157 4) acx_cv_type_intptr_t=int32_t ;;
4158 8) acx_cv_type_intptr_t=int64_t ;;
Ralf Wildenhues58bbed62010-08-21 12:34:064159 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
DJ Delorieb1dfe692009-09-09 20:25:354160 esac
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
4162$as_echo "$acx_cv_type_intptr_t" >&6; }
4163fi
4164
4165# ----------------- done all checks, emit header -------------
DJ Delorie75086672009-08-22 14:31:164166ac_config_commands="$ac_config_commands gstdint.h"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024167
4168
4169
4170
4171# Checks for typedefs, structures, and compiler characteristics.
DJ Delorie75086672009-08-22 14:31:164172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4173$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4174if test "${ac_cv_c_const+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024176else
DJ Delorie75086672009-08-22 14:31:164177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024178/* end confdefs.h. */
4179
4180int
4181main ()
4182{
4183/* FIXME: Include the comments suggested by Paul. */
4184#ifndef __cplusplus
4185 /* Ultrix mips cc rejects this. */
4186 typedef int charset[2];
DJ Delorie75086672009-08-22 14:31:164187 const charset cs;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024188 /* SunOS 4.1.1 cc rejects this. */
DJ Delorie75086672009-08-22 14:31:164189 char const *const *pcpcc;
4190 char **ppc;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024191 /* NEC SVR4.0.2 mips cc rejects this. */
4192 struct point {int x, y;};
4193 static struct point const zero = {0,0};
4194 /* AIX XL C 1.02.0.0 rejects this.
4195 It does not let you subtract one const X* pointer from another in
4196 an arm of an if-expression whose if-part is not a constant
4197 expression */
4198 const char *g = "string";
DJ Delorie75086672009-08-22 14:31:164199 pcpcc = &g + (g ? g-g : 0);
Daniel Jacobowitzf5bc1772007-10-11 18:15:024200 /* HPUX 7.0 cc rejects these. */
DJ Delorie75086672009-08-22 14:31:164201 ++pcpcc;
4202 ppc = (char**) pcpcc;
4203 pcpcc = (char const *const *) ppc;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024204 { /* SCO 3.2v4 cc rejects this. */
4205 char *t;
4206 char const *s = 0 ? (char *) 0 : (char const *) 0;
4207
4208 *t++ = 0;
DJ Delorie75086672009-08-22 14:31:164209 if (s) return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024210 }
4211 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4212 int x[] = {25, 17};
4213 const int *foo = &x[0];
4214 ++foo;
4215 }
4216 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4217 typedef const int *iptr;
4218 iptr p = 0;
4219 ++p;
4220 }
4221 { /* AIX XL C 1.02.0.0 rejects this saying
4222 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4223 struct s { int j; const int *ap[3]; };
4224 struct s *b; b->j = 5;
4225 }
4226 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4227 const int foo = 10;
DJ Delorie75086672009-08-22 14:31:164228 if (!foo) return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024229 }
DJ Delorie75086672009-08-22 14:31:164230 return !cs[0] && !zero.x;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024231#endif
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
DJ Delorie75086672009-08-22 14:31:164237if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024238 ac_cv_c_const=yes
4239else
DJ Delorie75086672009-08-22 14:31:164240 ac_cv_c_const=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024241fi
DJ Delorie75086672009-08-22 14:31:164242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024243fi
DJ Delorie75086672009-08-22 14:31:164244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4245$as_echo "$ac_cv_c_const" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024246if test $ac_cv_c_const = no; then
4247
DJ Delorie75086672009-08-22 14:31:164248$as_echo "#define const /**/" >>confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:024249
4250fi
4251
DJ Delorie75086672009-08-22 14:31:164252ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4253if test "x$ac_cv_type_off_t" = x""yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024254
Daniel Jacobowitzf5bc1772007-10-11 18:15:024255else
4256
4257cat >>confdefs.h <<_ACEOF
DJ Delorie75086672009-08-22 14:31:164258#define off_t long int
Daniel Jacobowitzf5bc1772007-10-11 18:15:024259_ACEOF
4260
4261fi
4262
DJ Delorie75086672009-08-22 14:31:164263# The cast to long int works around a bug in the HP C Compiler
4264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4266# This bug is HP SR number 8606223364.
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4268$as_echo_n "checking size of int... " >&6; }
4269if test "${ac_cv_sizeof_int+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024271else
DJ Delorie75086672009-08-22 14:31:164272 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:024273
Daniel Jacobowitzf5bc1772007-10-11 18:15:024274else
4275 if test "$ac_cv_type_int" = yes; then
DJ Delorie75086672009-08-22 14:31:164276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278{ as_fn_set_status 77
4279as_fn_error "cannot compute sizeof (int)
4280See \`config.log' for more details." "$LINENO" 5; }; }
4281 else
4282 ac_cv_sizeof_int=0
4283 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024284fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024285
Daniel Jacobowitzf5bc1772007-10-11 18:15:024286fi
DJ Delorie75086672009-08-22 14:31:164287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4288$as_echo "$ac_cv_sizeof_int" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024289
Daniel Jacobowitzf5bc1772007-10-11 18:15:024290
Daniel Jacobowitzf5bc1772007-10-11 18:15:024291
Daniel Jacobowitzf5bc1772007-10-11 18:15:024292cat >>confdefs.h <<_ACEOF
4293#define SIZEOF_INT $ac_cv_sizeof_int
4294_ACEOF
4295
4296
DJ Delorie75086672009-08-22 14:31:164297# The cast to long int works around a bug in the HP C Compiler
4298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4300# This bug is HP SR number 8606223364.
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4302$as_echo_n "checking size of long... " >&6; }
4303if test "${ac_cv_sizeof_long+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024305else
DJ Delorie75086672009-08-22 14:31:164306 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:024307
Daniel Jacobowitzf5bc1772007-10-11 18:15:024308else
4309 if test "$ac_cv_type_long" = yes; then
DJ Delorie75086672009-08-22 14:31:164310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4312{ as_fn_set_status 77
4313as_fn_error "cannot compute sizeof (long)
4314See \`config.log' for more details." "$LINENO" 5; }; }
4315 else
4316 ac_cv_sizeof_long=0
4317 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024318fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024319
Daniel Jacobowitzf5bc1772007-10-11 18:15:024320fi
DJ Delorie75086672009-08-22 14:31:164321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4322$as_echo "$ac_cv_sizeof_long" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024323
Daniel Jacobowitzf5bc1772007-10-11 18:15:024324
Daniel Jacobowitzf5bc1772007-10-11 18:15:024325
Daniel Jacobowitzf5bc1772007-10-11 18:15:024326cat >>confdefs.h <<_ACEOF
4327#define SIZEOF_LONG $ac_cv_sizeof_long
4328_ACEOF
4329
4330
4331
4332# Checks for library functions.
DJ Delorie75086672009-08-22 14:31:164333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4334$as_echo_n "checking for ANSI C header files... " >&6; }
4335if test "${ac_cv_header_stdc+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024337else
DJ Delorie75086672009-08-22 14:31:164338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024339/* end confdefs.h. */
4340#include <stdlib.h>
4341#include <stdarg.h>
4342#include <string.h>
4343#include <float.h>
4344
4345int
4346main ()
4347{
4348
4349 ;
4350 return 0;
4351}
4352_ACEOF
DJ Delorie75086672009-08-22 14:31:164353if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024354 ac_cv_header_stdc=yes
4355else
DJ Delorie75086672009-08-22 14:31:164356 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024357fi
DJ Delorie75086672009-08-22 14:31:164358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024359
4360if test $ac_cv_header_stdc = yes; then
4361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:164362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024363/* end confdefs.h. */
4364#include <string.h>
4365
4366_ACEOF
4367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:164368 $EGREP "memchr" >/dev/null 2>&1; then :
4369
Daniel Jacobowitzf5bc1772007-10-11 18:15:024370else
4371 ac_cv_header_stdc=no
4372fi
4373rm -f conftest*
4374
4375fi
4376
4377if test $ac_cv_header_stdc = yes; then
4378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
DJ Delorie75086672009-08-22 14:31:164379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024380/* end confdefs.h. */
4381#include <stdlib.h>
4382
4383_ACEOF
4384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
DJ Delorie75086672009-08-22 14:31:164385 $EGREP "free" >/dev/null 2>&1; then :
4386
Daniel Jacobowitzf5bc1772007-10-11 18:15:024387else
4388 ac_cv_header_stdc=no
4389fi
4390rm -f conftest*
4391
4392fi
4393
4394if test $ac_cv_header_stdc = yes; then
4395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
DJ Delorie75086672009-08-22 14:31:164396 if test "$cross_compiling" = yes; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024397 :
4398else
DJ Delorie75086672009-08-22 14:31:164399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024400/* end confdefs.h. */
4401#include <ctype.h>
DJ Delorie75086672009-08-22 14:31:164402#include <stdlib.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:024403#if ((' ' & 0x0FF) == 0x020)
4404# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4405# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4406#else
4407# define ISLOWER(c) \
4408 (('a' <= (c) && (c) <= 'i') \
4409 || ('j' <= (c) && (c) <= 'r') \
4410 || ('s' <= (c) && (c) <= 'z'))
4411# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4412#endif
4413
4414#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4415int
4416main ()
4417{
4418 int i;
4419 for (i = 0; i < 256; i++)
4420 if (XOR (islower (i), ISLOWER (i))
4421|| toupper (i) != TOUPPER (i))
DJ Delorie75086672009-08-22 14:31:164422 return 2;
4423 return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024424}
4425_ACEOF
DJ Delorie75086672009-08-22 14:31:164426if ac_fn_c_try_run "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024427
DJ Delorie75086672009-08-22 14:31:164428else
4429 ac_cv_header_stdc=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024430fi
DJ Delorie75086672009-08-22 14:31:164431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4432 conftest.$ac_objext conftest.beam conftest.$ac_ext
4433fi
4434
Daniel Jacobowitzf5bc1772007-10-11 18:15:024435fi
4436fi
DJ Delorie75086672009-08-22 14:31:164437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4438$as_echo "$ac_cv_header_stdc" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024439if test $ac_cv_header_stdc = yes; then
4440
DJ Delorie75086672009-08-22 14:31:164441$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:024442
4443fi
4444
4445
DJ Delorie75086672009-08-22 14:31:164446# Check whether --enable-maintainer-mode was given.
4447if test "${enable_maintainer_mode+set}" = set; then :
4448 enableval=$enable_maintainer_mode;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024449else
4450 enable_maintainer_mode=no
DJ Delorie75086672009-08-22 14:31:164451fi
4452
Daniel Jacobowitzf5bc1772007-10-11 18:15:024453
4454if test "x$enable_maintainer_mode" = xno; then
4455 MAINT='#'
4456else
4457 MAINT=
4458fi
4459
4460
4461ac_aux_dir=
DJ Delorie75086672009-08-22 14:31:164462for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4463 for ac_t in install-sh install.sh shtool; do
4464 if test -f "$ac_dir/$ac_t"; then
4465 ac_aux_dir=$ac_dir
4466 ac_install_sh="$ac_aux_dir/$ac_t -c"
4467 break 2
4468 fi
4469 done
Daniel Jacobowitzf5bc1772007-10-11 18:15:024470done
4471if test -z "$ac_aux_dir"; then
DJ Delorie75086672009-08-22 14:31:164472 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:024473fi
DJ Delorie75086672009-08-22 14:31:164474
4475# These three variables are undocumented and unsupported,
4476# and are intended to be withdrawn in a future Autoconf release.
4477# They can cause serious problems if a builder's source tree is in a directory
4478# whose full name contains unusual characters.
4479ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4480ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4481ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4482
Daniel Jacobowitzf5bc1772007-10-11 18:15:024483
4484# 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* | \
4614 i?86*-*-mingw* | x86_64*-*-mingw* | \
4615 i?86*-*-cygwin*)
Daniel Jacobowitzf5bc1772007-10-11 18:15:024616 enable_decimal_float=yes
4617 ;;
4618 *)
DJ Delorieaf8b82c2010-09-07 19:28:014619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4620$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:024621 enable_decimal_float=no
4622 ;;
4623 esac
4624
DJ Delorie75086672009-08-22 14:31:164625fi
4626
Daniel Jacobowitzf5bc1772007-10-11 18:15:024627
4628# x86's use BID format instead of DPD
Andreas Krebbel0b51ce02010-09-03 13:30:584629case x$enable_decimal_float in
4630 xyes)
4631 case $target in
4632 i?86*-*-* | x86_64*-*-*)
4633enable_decimal_float=bid
4634;;
4635 *)
4636enable_decimal_float=dpd
4637;;
4638 esac
DJ Delorieaf8b82c2010-09-07 19:28:014639 default_decimal_float=$enable_decimal_float
Andreas Krebbel0b51ce02010-09-03 13:30:584640 ;;
4641 xno)
4642 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4643 # dependency on libdecnumber.
DJ Delorieaf8b82c2010-09-07 19:28:014644 default_decimal_float=dpd
Andreas Krebbel0b51ce02010-09-03 13:30:584645 ;;
4646esac
4647
4648
4649
Daniel Jacobowitzf5bc1772007-10-11 18:15:024650
DJ Delorieaf8b82c2010-09-07 19:28:014651# Use default_decimal_float for dependency.
4652enable_decimal_float=$default_decimal_float
4653
DJ Delorie8f3bca32007-10-31 18:37:194654# If BID is being used, additional objects should be linked in.
4655if test x$enable_decimal_float = xbid; then
4656 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
4657else
4658 ADDITIONAL_OBJS=
4659fi
4660
DJ Delorie75086672009-08-22 14:31:164661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decimal_float" >&5
4662$as_echo "$enable_decimal_float" >&6; }
Daniel Jacobowitzf5bc1772007-10-11 18:15:024663
4664
DJ Delorie8f3bca32007-10-31 18:37:194665
DJ Delorie75086672009-08-22 14:31:164666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4667$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4668if test "${ac_cv_c_bigendian+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
Daniel Jacobowitzf5bc1772007-10-11 18:15:024670else
DJ Delorie75086672009-08-22 14:31:164671 ac_cv_c_bigendian=unknown
4672 # See if we're dealing with a universal compiler.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h. */
4675#ifndef __APPLE_CC__
4676 not a universal capable compiler
4677 #endif
4678 typedef int dummy;
4679
Daniel Jacobowitzf5bc1772007-10-11 18:15:024680_ACEOF
DJ Delorie75086672009-08-22 14:31:164681if ac_fn_c_try_compile "$LINENO"; then :
4682
4683# Check for potential -arch flags. It is not universal unless
4684# there are at least two -arch flags with different values.
4685ac_arch=
4686ac_prev=
4687for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4688 if test -n "$ac_prev"; then
4689 case $ac_word in
4690 i?86 | x86_64 | ppc | ppc64)
4691 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4692 ac_arch=$ac_word
4693 else
4694 ac_cv_c_bigendian=universal
4695 break
4696 fi
4697 ;;
4698 esac
4699 ac_prev=
4700 elif test "x$ac_word" = "x-arch"; then
4701 ac_prev=arch
4702 fi
4703 done
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 if test $ac_cv_c_bigendian = unknown; then
4707 # See if sys/param.h defines the BYTE_ORDER macro.
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024709/* end confdefs.h. */
4710#include <sys/types.h>
DJ Delorie75086672009-08-22 14:31:164711 #include <sys/param.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:024712
4713int
4714main ()
4715{
DJ Delorie75086672009-08-22 14:31:164716#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4717 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4718 && LITTLE_ENDIAN)
4719 bogus endian macros
4720 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:024721
4722 ;
4723 return 0;
4724}
4725_ACEOF
DJ Delorie75086672009-08-22 14:31:164726if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024727 # It does; now see whether it defined to BIG_ENDIAN or not.
DJ Delorie75086672009-08-22 14:31:164728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024729/* end confdefs.h. */
4730#include <sys/types.h>
DJ Delorie75086672009-08-22 14:31:164731#include <sys/param.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:024732
4733int
4734main ()
4735{
4736#if BYTE_ORDER != BIG_ENDIAN
DJ Delorie75086672009-08-22 14:31:164737 not big endian
4738#endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:024739
4740 ;
4741 return 0;
4742}
4743_ACEOF
DJ Delorie75086672009-08-22 14:31:164744if ac_fn_c_try_compile "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024745 ac_cv_c_bigendian=yes
4746else
DJ Delorie75086672009-08-22 14:31:164747 ac_cv_c_bigendian=no
Daniel Jacobowitzf5bc1772007-10-11 18:15:024748fi
DJ Delorie75086672009-08-22 14:31:164749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750fi
4751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 if test $ac_cv_c_bigendian = unknown; then
4754 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024756/* end confdefs.h. */
DJ Delorie75086672009-08-22 14:31:164757#include <limits.h>
4758
Daniel Jacobowitzf5bc1772007-10-11 18:15:024759int
4760main ()
4761{
DJ Delorie75086672009-08-22 14:31:164762#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4763 bogus endian macros
4764 #endif
4765
Daniel Jacobowitzf5bc1772007-10-11 18:15:024766 ;
4767 return 0;
4768}
4769_ACEOF
DJ Delorie75086672009-08-22 14:31:164770if ac_fn_c_try_compile "$LINENO"; then :
4771 # It does; now see whether it defined to _BIG_ENDIAN or not.
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Jacobowitzf5bc1772007-10-11 18:15:024773/* end confdefs.h. */
DJ Delorie75086672009-08-22 14:31:164774#include <limits.h>
4775
Daniel Jacobowitzf5bc1772007-10-11 18:15:024776int
4777main ()
4778{
DJ Delorie75086672009-08-22 14:31:164779#ifndef _BIG_ENDIAN
4780 not big endian
4781#endif
4782
4783 ;
4784 return 0;
Daniel Jacobowitzf5bc1772007-10-11 18:15:024785}
4786_ACEOF
DJ Delorie75086672009-08-22 14:31:164787if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_c_bigendian=yes
4789else
4790 ac_cv_c_bigendian=no
4791fi
4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793fi
4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 if test $ac_cv_c_bigendian = unknown; then
4797 # Compile a test program.
4798 if test "$cross_compiling" = yes; then :
4799 # Try to guess by grepping values from an object file.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802short int ascii_mm[] =
4803 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4804short int ascii_ii[] =
4805 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4806int use_ascii (int i) {
4807 return ascii_mm[i] + ascii_ii[i];
4808}
4809short int ebcdic_ii[] =
4810 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4811short int ebcdic_mm[] =
4812 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4813int use_ebcdic (int i) {
4814 return ebcdic_mm[i] + ebcdic_ii[i];
4815}
4816extern int foo;
4817
4818int
4819main ()
4820{
4821return use_ascii (foo) == use_ebcdic (foo);
4822 ;
4823 return 0;
4824}
4825_ACEOF
4826if ac_fn_c_try_compile "$LINENO"; then :
4827 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4828 ac_cv_c_bigendian=yes
4829 fi
4830 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4831 if test "$ac_cv_c_bigendian" = unknown; then
4832ac_cv_c_bigendian=no
4833 else
4834# finding both strings is unlikely to happen, but who knows?
4835ac_cv_c_bigendian=unknown
4836 fi
4837 fi
4838fi
4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840else
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842/* end confdefs.h. */
4843$ac_includes_default
4844int
4845main ()
4846{
4847
4848 /* Are we little or big endian? From Harbison&Steele. */
4849 union
4850 {
4851 long int l;
4852 char c[sizeof (long int)];
4853 } u;
4854 u.l = 1;
4855 return u.c[sizeof (long int) - 1] == 1;
4856
4857 ;
4858 return 0;
4859}
4860_ACEOF
4861if ac_fn_c_try_run "$LINENO"; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:024862 ac_cv_c_bigendian=no
4863else
DJ Delorie75086672009-08-22 14:31:164864 ac_cv_c_bigendian=yes
4865fi
4866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4867 conftest.$ac_objext conftest.beam conftest.$ac_ext
4868fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024869
DJ Delorie75086672009-08-22 14:31:164870 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:024871fi
DJ Delorie75086672009-08-22 14:31:164872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4873$as_echo "$ac_cv_c_bigendian" >&6; }
4874 case $ac_cv_c_bigendian in #(
4875 yes)
4876 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4877;; #(
4878 no)
4879 ;; #(
4880 universal)
Daniel Jacobowitzf5bc1772007-10-11 18:15:024881
DJ Delorie75086672009-08-22 14:31:164882$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4883
4884 ;; #(
4885 *)
4886 as_fn_error "unknown endianness
4887 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4888 esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:024889
4890
4891# Output.
4892
DJ Delorie75086672009-08-22 14:31:164893ac_config_headers="$ac_config_headers config.h:config.in"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024894
DJ Delorie75086672009-08-22 14:31:164895ac_config_files="$ac_config_files Makefile"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024896
4897cat >confcache <<\_ACEOF
4898# This file is a shell script that caches the results of configure
4899# tests run on this system so they can be shared between configure
4900# scripts and configure runs, see configure's option --config-cache.
4901# It is not useful on other systems. If it contains results you don't
4902# want to keep, you may remove or edit it.
4903#
4904# config.status only pays attention to the cache file if you give it
4905# the --recheck option to rerun configure.
4906#
4907# `ac_cv_env_foo' variables (set or unset) will be overridden when
4908# loading this file, other *unset* `ac_cv_foo' will be assigned the
4909# following values.
4910
4911_ACEOF
4912
4913# The following way of writing the cache mishandles newlines in values,
4914# but we know of no workaround that is simple, portable, and efficient.
DJ Delorie75086672009-08-22 14:31:164915# So, we kill variables containing newlines.
Daniel Jacobowitzf5bc1772007-10-11 18:15:024916# Ultrix sh set writes to stderr and can't be redirected directly,
4917# and sets the high bit in the cache file unless we assign to the vars.
DJ Delorie75086672009-08-22 14:31:164918(
4919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4920 eval ac_val=\$$ac_var
4921 case $ac_val in #(
4922 *${as_nl}*)
4923 case $ac_var in #(
4924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4926 esac
4927 case $ac_var in #(
4928 _ | IFS | as_nl) ;; #(
4929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4930 *) { eval $ac_var=; unset $ac_var;} ;;
4931 esac ;;
4932 esac
4933 done
4934
Daniel Jacobowitzf5bc1772007-10-11 18:15:024935 (set) 2>&1 |
DJ Delorie75086672009-08-22 14:31:164936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4937 *${as_nl}ac_space=\ *)
4938 # `set' does not quote correctly, so add quotes: double-quote
4939 # substitution turns \\\\ into \\, and sed turns \\ into \.
Daniel Jacobowitzf5bc1772007-10-11 18:15:024940 sed -n \
4941"s/'/'\\\\''/g;
4942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
DJ Delorie75086672009-08-22 14:31:164943 ;; #(
Daniel Jacobowitzf5bc1772007-10-11 18:15:024944 *)
4945 # `set' quotes correctly as required by POSIX, so do not add quotes.
DJ Delorie75086672009-08-22 14:31:164946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Daniel Jacobowitzf5bc1772007-10-11 18:15:024947 ;;
DJ Delorie75086672009-08-22 14:31:164948 esac |
4949 sort
4950) |
Daniel Jacobowitzf5bc1772007-10-11 18:15:024951 sed '
DJ Delorie75086672009-08-22 14:31:164952 /^ac_cv_env_/b end
Daniel Jacobowitzf5bc1772007-10-11 18:15:024953 t clear
DJ Delorie75086672009-08-22 14:31:164954 :clear
Daniel Jacobowitzf5bc1772007-10-11 18:15:024955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4956 t end
DJ Delorie75086672009-08-22 14:31:164957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4958 :end' >>confcache
4959if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4960 if test -w "$cache_file"; then
4961 test "x$cache_file" != "x/dev/null" &&
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4963$as_echo "$as_me: updating cache $cache_file" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:024964 cat confcache >$cache_file
4965 else
DJ Delorie75086672009-08-22 14:31:164966 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4967$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:024968 fi
4969fi
4970rm -f confcache
4971
4972test "x$prefix" = xNONE && prefix=$ac_default_prefix
4973# Let make expand exec_prefix.
4974test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4975
Daniel Jacobowitzf5bc1772007-10-11 18:15:024976DEFS=-DHAVE_CONFIG_H
4977
4978ac_libobjs=
4979ac_ltlibobjs=
4980for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4981 # 1. Remove the extension, and $U if already installed.
DJ Delorie75086672009-08-22 14:31:164982 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4983 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4985 # will be set to the directory where LIBOBJS objects are built.
4986 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4987 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Daniel Jacobowitzf5bc1772007-10-11 18:15:024988done
4989LIBOBJS=$ac_libobjs
4990
4991LTLIBOBJS=$ac_ltlibobjs
4992
4993
4994
DJ Delorie75086672009-08-22 14:31:164995
Daniel Jacobowitzf5bc1772007-10-11 18:15:024996: ${CONFIG_STATUS=./config.status}
DJ Delorie75086672009-08-22 14:31:164997ac_write_fail=0
Daniel Jacobowitzf5bc1772007-10-11 18:15:024998ac_clean_files_save=$ac_clean_files
4999ac_clean_files="$ac_clean_files $CONFIG_STATUS"
DJ Delorie75086672009-08-22 14:31:165000{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5001$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5002as_write_fail=0
5003cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025004#! $SHELL
5005# Generated by $as_me.
5006# Run this file to recreate the current configuration.
5007# Compiler output produced by configure, useful for debugging
5008# configure, is in config.log if it exists.
5009
5010debug=false
5011ac_cs_recheck=false
5012ac_cs_silent=false
DJ Delorie75086672009-08-22 14:31:165013
Daniel Jacobowitzf5bc1772007-10-11 18:15:025014SHELL=\${CONFIG_SHELL-$SHELL}
DJ Delorie75086672009-08-22 14:31:165015export SHELL
5016_ASEOF
5017cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5018## -------------------- ##
5019## M4sh Initialization. ##
5020## -------------------- ##
Daniel Jacobowitzf5bc1772007-10-11 18:15:025021
DJ Delorie75086672009-08-22 14:31:165022# Be more Bourne compatible
5023DUALCASE=1; export DUALCASE # for MKS sh
5024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Daniel Jacobowitzf5bc1772007-10-11 18:15:025025 emulate sh
5026 NULLCMD=:
DJ Delorie75086672009-08-22 14:31:165027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Daniel Jacobowitzf5bc1772007-10-11 18:15:025028 # is contrary to our usage. Disable this feature.
5029 alias -g '${1+"$@"}'='"$@"'
DJ Delorie75086672009-08-22 14:31:165030 setopt NO_GLOB_SUBST
Daniel Jacobowitzf5bc1772007-10-11 18:15:025031else
DJ Delorie75086672009-08-22 14:31:165032 case `(set -o) 2>/dev/null` in #(
5033 *posix*) :
5034 set -o posix ;; #(
5035 *) :
5036 ;;
5037esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:025038fi
5039
5040
DJ Delorie75086672009-08-22 14:31:165041as_nl='
5042'
5043export as_nl
5044# Printing a long string crashes Solaris 7 /usr/bin/printf.
5045as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5048# Prefer a ksh shell builtin over an external printf program on Solaris,
5049# but without wasting forks for bash or zsh.
5050if test -z "$BASH_VERSION$ZSH_VERSION" \
5051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5052 as_echo='print -r --'
5053 as_echo_n='print -rn --'
5054elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5055 as_echo='printf %s\n'
5056 as_echo_n='printf %s'
5057else
5058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5060 as_echo_n='/usr/ucb/echo -n'
5061 else
5062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5063 as_echo_n_body='eval
5064 arg=$1;
5065 case $arg in #(
5066 *"$as_nl"*)
5067expr "X$arg" : "X\\(.*\\)$as_nl";
5068arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5069 esac;
5070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5071 '
5072 export as_echo_n_body
5073 as_echo_n='sh -c $as_echo_n_body as_echo'
5074 fi
5075 export as_echo_body
5076 as_echo='sh -c $as_echo_body as_echo'
5077fi
5078
5079# The user is always right.
5080if test "${PATH_SEPARATOR+set}" != set; then
5081 PATH_SEPARATOR=:
5082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5084 PATH_SEPARATOR=';'
5085 }
5086fi
5087
5088
5089# IFS
5090# We need space, tab and new line, in precisely that order. Quoting is
5091# there to prevent editors from complaining about space-tab.
5092# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5093# splitting by setting IFS to empty value.)
5094IFS=" "" $as_nl"
5095
5096# Find who we are. Look in the path if we contain no directory separator.
5097case $0 in #((
5098 *[\\/]* ) as_myself=$0 ;;
5099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5105 done
5106IFS=$as_save_IFS
5107
5108 ;;
5109esac
5110# We did not find ourselves, most probably we were run as `sh COMMAND'
5111# in which case we are not to be found in the path.
5112if test "x$as_myself" = x; then
5113 as_myself=$0
5114fi
5115if test ! -f "$as_myself"; then
5116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5117 exit 1
5118fi
5119
5120# Unset variables that we do not need and which cause bugs (e.g. in
5121# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5122# suppresses any "Segmentation fault" message there. '((' could
5123# trigger a bug in pdksh 5.2.14.
5124for as_var in BASH_ENV ENV MAIL MAILPATH
5125do eval test x\${$as_var+set} = xset \
5126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5127done
Daniel Jacobowitzf5bc1772007-10-11 18:15:025128PS1='$ '
5129PS2='> '
5130PS4='+ '
5131
5132# NLS nuisances.
DJ Delorie75086672009-08-22 14:31:165133LC_ALL=C
5134export LC_ALL
5135LANGUAGE=C
5136export LANGUAGE
Daniel Jacobowitzf5bc1772007-10-11 18:15:025137
DJ Delorie75086672009-08-22 14:31:165138# CDPATH.
5139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5140
5141
5142# as_fn_error ERROR [LINENO LOG_FD]
5143# ---------------------------------
5144# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5145# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5146# script with status $?, using 1 if that was 0.
5147as_fn_error ()
5148{
5149 as_status=$?; test $as_status -eq 0 && as_status=1
5150 if test "$3"; then
5151 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5152 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5153 fi
5154 $as_echo "$as_me: error: $1" >&2
5155 as_fn_exit $as_status
5156} # as_fn_error
5157
5158
5159# as_fn_set_status STATUS
5160# -----------------------
5161# Set $? to STATUS, without forking.
5162as_fn_set_status ()
5163{
5164 return $1
5165} # as_fn_set_status
5166
5167# as_fn_exit STATUS
5168# -----------------
5169# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5170as_fn_exit ()
5171{
5172 set +e
5173 as_fn_set_status $1
5174 exit $1
5175} # as_fn_exit
5176
5177# as_fn_unset VAR
5178# ---------------
5179# Portably unset VAR.
5180as_fn_unset ()
5181{
5182 { eval $1=; unset $1;}
5183}
5184as_unset=as_fn_unset
5185# as_fn_append VAR VALUE
5186# ----------------------
5187# Append the text in VALUE to the end of the definition contained in VAR. Take
5188# advantage of any shell optimizations that allow amortized linear growth over
5189# repeated appends, instead of the typical quadratic growth present in naive
5190# implementations.
5191if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5192 eval 'as_fn_append ()
5193 {
5194 eval $1+=\$2
5195 }'
5196else
5197 as_fn_append ()
5198 {
5199 eval $1=\$$1\$2
5200 }
5201fi # as_fn_append
5202
5203# as_fn_arith ARG...
5204# ------------------
5205# Perform arithmetic evaluation on the ARGs, and store the result in the
5206# global $as_val. Take advantage of shells that can avoid forks. The arguments
5207# must be portable across $(()) and expr.
5208if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5209 eval 'as_fn_arith ()
5210 {
5211 as_val=$(( $* ))
5212 }'
5213else
5214 as_fn_arith ()
5215 {
5216 as_val=`expr "$@" || test $? -eq 1`
5217 }
5218fi # as_fn_arith
5219
5220
5221if expr a : '\(a\)' >/dev/null 2>&1 &&
5222 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:025223 as_expr=expr
5224else
5225 as_expr=false
5226fi
5227
DJ Delorie75086672009-08-22 14:31:165228if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:025229 as_basename=basename
5230else
5231 as_basename=false
5232fi
5233
DJ Delorie75086672009-08-22 14:31:165234if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5235 as_dirname=dirname
5236else
5237 as_dirname=false
5238fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:025239
DJ Delorie75086672009-08-22 14:31:165240as_me=`$as_basename -- "$0" ||
Daniel Jacobowitzf5bc1772007-10-11 18:15:025241$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5242 X"$0" : 'X\(//\)$' \| \
DJ Delorie75086672009-08-22 14:31:165243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5244$as_echo X/"$0" |
5245 sed '/^.*\/\([^/][^/]*\)\/*$/{
5246 s//\1/
5247 q
5248 }
5249 /^X\/\(\/\/\)$/{
5250 s//\1/
5251 q
5252 }
5253 /^X\/\(\/\).*/{
5254 s//\1/
5255 q
5256 }
5257 s/.*/./; q'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:025258
Daniel Jacobowitzf5bc1772007-10-11 18:15:025259# Avoid depending upon Character Ranges.
5260as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5261as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5262as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5263as_cr_digits='0123456789'
5264as_cr_alnum=$as_cr_Letters$as_cr_digits
5265
DJ Delorie75086672009-08-22 14:31:165266ECHO_C= ECHO_N= ECHO_T=
5267case `echo -n x` in #(((((
5268-n*)
5269 case `echo 'xy\c'` in
5270 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5271 xy) ECHO_C='\c';;
5272 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5273 ECHO_T=' ';;
5274 esac;;
5275*)
5276 ECHO_N='-n';;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025277esac
5278
Daniel Jacobowitzf5bc1772007-10-11 18:15:025279rm -f conf$$ conf$$.exe conf$$.file
DJ Delorie75086672009-08-22 14:31:165280if test -d conf$$.dir; then
5281 rm -f conf$$.dir/conf$$.file
5282else
5283 rm -f conf$$.dir
5284 mkdir conf$$.dir 2>/dev/null
5285fi
5286if (echo >conf$$.file) 2>/dev/null; then
5287 if ln -s conf$$.file conf$$ 2>/dev/null; then
Daniel Jacobowitzf5bc1772007-10-11 18:15:025288 as_ln_s='ln -s'
DJ Delorie75086672009-08-22 14:31:165289 # ... but there are two gotchas:
5290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5292 # In both cases, we have to default to `cp -p'.
5293 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5294 as_ln_s='cp -p'
5295 elif ln conf$$.file conf$$ 2>/dev/null; then
5296 as_ln_s=ln
5297 else
5298 as_ln_s='cp -p'
Daniel Jacobowitzf5bc1772007-10-11 18:15:025299 fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:025300else
5301 as_ln_s='cp -p'
5302fi
DJ Delorie75086672009-08-22 14:31:165303rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5304rmdir conf$$.dir 2>/dev/null
Daniel Jacobowitzf5bc1772007-10-11 18:15:025305
DJ Delorie75086672009-08-22 14:31:165306
5307# as_fn_mkdir_p
5308# -------------
5309# Create "$as_dir" as a directory, including parents if necessary.
5310as_fn_mkdir_p ()
5311{
5312
5313 case $as_dir in #(
5314 -*) as_dir=./$as_dir;;
5315 esac
5316 test -d "$as_dir" || eval $as_mkdir_p || {
5317 as_dirs=
5318 while :; do
5319 case $as_dir in #(
5320 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5321 *) as_qdir=$as_dir;;
5322 esac
5323 as_dirs="'$as_qdir' $as_dirs"
5324 as_dir=`$as_dirname -- "$as_dir" ||
5325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5326 X"$as_dir" : 'X\(//\)[^/]' \| \
5327 X"$as_dir" : 'X\(//\)$' \| \
5328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5329$as_echo X"$as_dir" |
5330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5331 s//\1/
5332 q
5333 }
5334 /^X\(\/\/\)[^/].*/{
5335 s//\1/
5336 q
5337 }
5338 /^X\(\/\/\)$/{
5339 s//\1/
5340 q
5341 }
5342 /^X\(\/\).*/{
5343 s//\1/
5344 q
5345 }
5346 s/.*/./; q'`
5347 test -d "$as_dir" && break
5348 done
5349 test -z "$as_dirs" || eval "mkdir $as_dirs"
5350 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5351
5352
5353} # as_fn_mkdir_p
Daniel Jacobowitzf5bc1772007-10-11 18:15:025354if mkdir -p . 2>/dev/null; then
DJ Delorie75086672009-08-22 14:31:165355 as_mkdir_p='mkdir -p "$as_dir"'
Daniel Jacobowitzf5bc1772007-10-11 18:15:025356else
5357 test -d ./-p && rmdir ./-p
5358 as_mkdir_p=false
5359fi
5360
DJ Delorie75086672009-08-22 14:31:165361if test -x / >/dev/null 2>&1; then
5362 as_test_x='test -x'
5363else
5364 if ls -dL / >/dev/null 2>&1; then
5365 as_ls_L_option=L
5366 else
5367 as_ls_L_option=
5368 fi
5369 as_test_x='
5370 eval sh -c '\''
5371 if test -d "$1"; then
5372test -d "$1/.";
5373 else
5374case $1 in #(
5375-*)set "./$1";;
5376esac;
5377case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5378???[sx]*):;;*)false;;esac;fi
5379 '\'' sh
5380 '
5381fi
5382as_executable_p=$as_test_x
Daniel Jacobowitzf5bc1772007-10-11 18:15:025383
5384# Sed expression to map a string onto a valid CPP name.
5385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5386
5387# Sed expression to map a string onto a valid variable name.
5388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5389
5390
Daniel Jacobowitzf5bc1772007-10-11 18:15:025391exec 6>&1
DJ Delorie75086672009-08-22 14:31:165392## ----------------------------------- ##
5393## Main body of $CONFIG_STATUS script. ##
5394## ----------------------------------- ##
5395_ASEOF
5396test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025397
DJ Delorie75086672009-08-22 14:31:165398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5399# Save the log message, to keep $0 and so on meaningful, and to
Daniel Jacobowitzf5bc1772007-10-11 18:15:025400# report actual input values of CONFIG_FILES etc. instead of their
DJ Delorie75086672009-08-22 14:31:165401# values after options handling.
5402ac_log="
Daniel Jacobowitzf5bc1772007-10-11 18:15:025403This file was extended by libdecnumber $as_me , which was
DJ Delorie75086672009-08-22 14:31:165404generated by GNU Autoconf 2.64. Invocation command line was
Daniel Jacobowitzf5bc1772007-10-11 18:15:025405
5406 CONFIG_FILES = $CONFIG_FILES
5407 CONFIG_HEADERS = $CONFIG_HEADERS
5408 CONFIG_LINKS = $CONFIG_LINKS
5409 CONFIG_COMMANDS = $CONFIG_COMMANDS
5410 $ $0 $@
5411
DJ Delorie75086672009-08-22 14:31:165412on `(hostname || uname -n) 2>/dev/null | sed 1q`
5413"
5414
Daniel Jacobowitzf5bc1772007-10-11 18:15:025415_ACEOF
5416
DJ Delorie75086672009-08-22 14:31:165417case $ac_config_files in *"
5418"*) set x $ac_config_files; shift; ac_config_files=$*;;
5419esac
5420
5421case $ac_config_headers in *"
5422"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5423esac
5424
5425
5426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025427# Files that config.status was made for.
DJ Delorie75086672009-08-22 14:31:165428config_files="$ac_config_files"
5429config_headers="$ac_config_headers"
5430config_commands="$ac_config_commands"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025431
DJ Delorie75086672009-08-22 14:31:165432_ACEOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:025433
DJ Delorie75086672009-08-22 14:31:165434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025435ac_cs_usage="\
DJ Delorie75086672009-08-22 14:31:165436\`$as_me' instantiates files and other configuration actions
5437from templates according to the current configuration. Unless the files
5438and actions are specified as TAGs, all are instantiated by default.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025439
DJ Delorie75086672009-08-22 14:31:165440Usage: $0 [OPTION]... [TAG]...
Daniel Jacobowitzf5bc1772007-10-11 18:15:025441
5442 -h, --help print this help, then exit
DJ Delorie75086672009-08-22 14:31:165443 -V, --version print version number and configuration settings, then exit
5444 -q, --quiet, --silent
5445 do not print progress messages
Daniel Jacobowitzf5bc1772007-10-11 18:15:025446 -d, --debug don't remove temporary files
5447 --recheck update $as_me by reconfiguring in the same conditions
DJ Delorie75086672009-08-22 14:31:165448 --file=FILE[:TEMPLATE]
5449 instantiate the configuration file FILE
5450 --header=FILE[:TEMPLATE]
5451 instantiate the configuration header FILE
Daniel Jacobowitzf5bc1772007-10-11 18:15:025452
5453Configuration files:
5454$config_files
5455
5456Configuration headers:
5457$config_headers
5458
5459Configuration commands:
5460$config_commands
5461
DJ Delorie75086672009-08-22 14:31:165462Report bugs to <gcc-bugs@gcc.gnu.org>."
Daniel Jacobowitzf5bc1772007-10-11 18:15:025463
DJ Delorie75086672009-08-22 14:31:165464_ACEOF
5465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025466ac_cs_version="\\
5467libdecnumber config.status
DJ Delorie75086672009-08-22 14:31:165468configured by $0, generated by GNU Autoconf 2.64,
5469 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025470
DJ Delorie75086672009-08-22 14:31:165471Copyright (C) 2009 Free Software Foundation, Inc.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025472This config.status script is free software; the Free Software Foundation
5473gives unlimited permission to copy, distribute and modify it."
DJ Delorie75086672009-08-22 14:31:165474
5475ac_pwd='$ac_pwd'
5476srcdir='$srcdir'
5477test -n "\$AWK" || AWK=awk
Daniel Jacobowitzf5bc1772007-10-11 18:15:025478_ACEOF
5479
DJ Delorie75086672009-08-22 14:31:165480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5481# The default lists apply if the user does not specify any file.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025482ac_need_defaults=:
5483while test $# != 0
5484do
5485 case $1 in
5486 --*=*)
DJ Delorie75086672009-08-22 14:31:165487 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Daniel Jacobowitzf5bc1772007-10-11 18:15:025489 ac_shift=:
5490 ;;
DJ Delorie75086672009-08-22 14:31:165491 *)
Daniel Jacobowitzf5bc1772007-10-11 18:15:025492 ac_option=$1
5493 ac_optarg=$2
5494 ac_shift=shift
5495 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025496 esac
5497
5498 case $ac_option in
5499 # Handling of the options.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5501 ac_cs_recheck=: ;;
DJ Delorie75086672009-08-22 14:31:165502 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5503 $as_echo "$ac_cs_version"; exit ;;
5504 --debug | --debu | --deb | --de | --d | -d )
Daniel Jacobowitzf5bc1772007-10-11 18:15:025505 debug=: ;;
5506 --file | --fil | --fi | --f )
5507 $ac_shift
DJ Delorie75086672009-08-22 14:31:165508 case $ac_optarg in
5509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5510 esac
5511 as_fn_append CONFIG_FILES " '$ac_optarg'"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025512 ac_need_defaults=false;;
5513 --header | --heade | --head | --hea )
5514 $ac_shift
DJ Delorie75086672009-08-22 14:31:165515 case $ac_optarg in
5516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5517 esac
5518 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025519 ac_need_defaults=false;;
DJ Delorie75086672009-08-22 14:31:165520 --he | --h)
5521 # Conflict between --help and --header
5522 as_fn_error "ambiguous option: \`$1'
5523Try \`$0 --help' for more information.";;
5524 --help | --hel | -h )
5525 $as_echo "$ac_cs_usage"; exit ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5528 ac_cs_silent=: ;;
5529
5530 # This is an error.
DJ Delorie75086672009-08-22 14:31:165531 -*) as_fn_error "unrecognized option: \`$1'
5532Try \`$0 --help' for more information." ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025533
DJ Delorie75086672009-08-22 14:31:165534 *) as_fn_append ac_config_targets " $1"
5535 ac_need_defaults=false ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025536
5537 esac
5538 shift
5539done
5540
5541ac_configure_extra_args=
5542
5543if $ac_cs_silent; then
5544 exec 6>/dev/null
5545 ac_configure_extra_args="$ac_configure_extra_args --silent"
5546fi
5547
5548_ACEOF
DJ Delorie75086672009-08-22 14:31:165549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025550if \$ac_cs_recheck; then
DJ Delorie75086672009-08-22 14:31:165551 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5552 shift
5553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5554 CONFIG_SHELL='$SHELL'
5555 export CONFIG_SHELL
5556 exec "\$@"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025557fi
5558
5559_ACEOF
DJ Delorie75086672009-08-22 14:31:165560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5561exec 5>>config.log
5562{
5563 echo
5564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5565## Running $as_me. ##
5566_ASBOX
5567 $as_echo "$ac_log"
5568} >&5
Daniel Jacobowitzf5bc1772007-10-11 18:15:025569
DJ Delorie75086672009-08-22 14:31:165570_ACEOF
5571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025572#
DJ Delorie75086672009-08-22 14:31:165573# INIT-COMMANDS
Daniel Jacobowitzf5bc1772007-10-11 18:15:025574#
5575
DJ Delorieb1dfe692009-09-09 20:25:355576GCC="$GCC"
5577CC="$CC"
5578acx_cv_header_stdint="$acx_cv_header_stdint"
5579acx_cv_type_int8_t="$acx_cv_type_int8_t"
5580acx_cv_type_int16_t="$acx_cv_type_int16_t"
5581acx_cv_type_int32_t="$acx_cv_type_int32_t"
5582acx_cv_type_int64_t="$acx_cv_type_int64_t"
5583acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
5584ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
5585ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
5586ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
5587ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
5588ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025589ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
5590ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
DJ Delorieb1dfe692009-09-09 20:25:355591ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
Daniel Jacobowitzf5bc1772007-10-11 18:15:025592
5593
5594_ACEOF
5595
DJ Delorie75086672009-08-22 14:31:165596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025597
DJ Delorie75086672009-08-22 14:31:165598# Handling of arguments.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025599for ac_config_target in $ac_config_targets
5600do
DJ Delorie75086672009-08-22 14:31:165601 case $ac_config_target in
5602 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
5603 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5604 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5605
5606 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025607 esac
5608done
5609
DJ Delorie75086672009-08-22 14:31:165610
Daniel Jacobowitzf5bc1772007-10-11 18:15:025611# If the user did not use the arguments to specify the items to instantiate,
5612# then the envvar interface is used. Set only those that are not.
5613# We use the long form for the default assignment because of an extremely
5614# bizarre bug on SunOS 4.1.3.
5615if $ac_need_defaults; then
5616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5619fi
5620
5621# Have a temporary directory for convenience. Make it in the build tree
DJ Delorie75086672009-08-22 14:31:165622# simply because there is no reason against having it here, and in addition,
Daniel Jacobowitzf5bc1772007-10-11 18:15:025623# creating and moving files from /tmp can sometimes cause problems.
DJ Delorie75086672009-08-22 14:31:165624# Hook for its removal unless debugging.
5625# Note that there is a small window in which the directory will not be cleaned:
5626# after its creation but before its name has been assigned to `$tmp'.
Daniel Jacobowitzf5bc1772007-10-11 18:15:025627$debug ||
5628{
DJ Delorie75086672009-08-22 14:31:165629 tmp=
5630 trap 'exit_status=$?
5631 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5632' 0
5633 trap 'as_fn_exit 1' 1 2 13 15
Daniel Jacobowitzf5bc1772007-10-11 18:15:025634}
Daniel Jacobowitzf5bc1772007-10-11 18:15:025635# Create a (secure) tmp directory for tmp files.
5636
5637{
DJ Delorie75086672009-08-22 14:31:165638 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Daniel Jacobowitzf5bc1772007-10-11 18:15:025639 test -n "$tmp" && test -d "$tmp"
5640} ||
5641{
DJ Delorie75086672009-08-22 14:31:165642 tmp=./conf$$-$RANDOM
5643 (umask 077 && mkdir "$tmp")
5644} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5645
5646# Set up the scripts for CONFIG_FILES section.
5647# No need to generate them if there are no CONFIG_FILES.
5648# This happens for instance with `./config.status config.h'.
5649if test -n "$CONFIG_FILES"; then
5650
5651
5652ac_cr=`echo X | tr X '\015'`
5653# On cygwin, bash can eat \r inside `` if the user requested igncr.
5654# But we know of no other shell where ac_cr would be empty at this
5655# point, so we can use a bashism as a fallback.
5656if test "x$ac_cr" = x; then
5657 eval ac_cr=\$\'\\r\'
5658fi
5659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5661 ac_cs_awk_cr='\r'
5662else
5663 ac_cs_awk_cr=$ac_cr
5664fi
5665
5666echo 'BEGIN {' >"$tmp/subs1.awk" &&
5667_ACEOF
5668
5669
Daniel Jacobowitzf5bc1772007-10-11 18:15:025670{
DJ Delorie75086672009-08-22 14:31:165671 echo "cat >conf$$subs.awk <<_ACEOF" &&
5672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5673 echo "_ACEOF"
5674} >conf$$subs.sh ||
5675 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5676ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5677ac_delim='%!_!# '
5678for ac_last_try in false false false false false :; do
5679 . ./conf$$subs.sh ||
5680 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5681
5682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5683 if test $ac_delim_n = $ac_delim_num; then
5684 break
5685 elif $ac_last_try; then
5686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5687 else
5688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5689 fi
5690done
5691rm -f conf$$subs.sh
5692
5693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5694cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5695_ACEOF
5696sed -n '
5697h
5698s/^/S["/; s/!.*/"]=/
5699p
5700g
5701s/^[^!]*!//
5702:repl
5703t repl
5704s/'"$ac_delim"'$//
5705t delim
5706:nl
5707h
5708s/\(.\{148\}\).*/\1/
5709t more1
5710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5711p
5712n
5713b repl
5714:more1
5715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5716p
5717g
5718s/.\{148\}//
5719t nl
5720:delim
5721h
5722s/\(.\{148\}\).*/\1/
5723t more2
5724s/["\\]/\\&/g; s/^/"/; s/$/"/
5725p
5726b
5727:more2
5728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5729p
5730g
5731s/.\{148\}//
5732t delim
5733' <conf$$subs.awk | sed '
5734/^[^""]/{
5735 N
5736 s/\n//
5737}
5738' >>$CONFIG_STATUS || ac_write_fail=1
5739rm -f conf$$subs.awk
5740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5741_ACAWK
5742cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5743 for (key in S) S_is_set[key] = 1
5744 FS = ""
5745
5746}
5747{
5748 line = $ 0
5749 nfields = split(line, field, "@")
5750 substed = 0
5751 len = length(field[1])
5752 for (i = 2; i < nfields; i++) {
5753 key = field[i]
5754 keylen = length(key)
5755 if (S_is_set[key]) {
5756 value = S[key]
5757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5758 len += length(value) + length(field[++i])
5759 substed = 1
5760 } else
5761 len += 1 + keylen
5762 }
5763
5764 print line
Daniel Jacobowitzf5bc1772007-10-11 18:15:025765}
5766
DJ Delorie75086672009-08-22 14:31:165767_ACAWK
5768_ACEOF
5769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5772else
5773 cat
5774fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5775 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:025776_ACEOF
5777
DJ Delorie75086672009-08-22 14:31:165778# VPATH may cause trouble with some makes, so we remove $(srcdir),
5779# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5780# trailing colons and then remove the whole line if VPATH becomes empty
5781# (actually we leave an empty line to preserve line numbers).
5782if test "x$srcdir" = x.; then
5783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5784s/:*\$(srcdir):*/:/
5785s/:*\${srcdir}:*/:/
5786s/:*@srcdir@:*/:/
5787s/^\([^=]*=[ ]*\):*/\1/
5788s/:*$//
5789s/^[^=]*=[ ]*$//
5790}'
5791fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:025792
DJ Delorie75086672009-08-22 14:31:165793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:025794fi # test -n "$CONFIG_FILES"
5795
DJ Delorie75086672009-08-22 14:31:165796# Set up the scripts for CONFIG_HEADERS section.
5797# No need to generate them if there are no CONFIG_HEADERS.
5798# This happens for instance with `./config.status Makefile'.
5799if test -n "$CONFIG_HEADERS"; then
5800cat >"$tmp/defines.awk" <<\_ACAWK ||
5801BEGIN {
Daniel Jacobowitzf5bc1772007-10-11 18:15:025802_ACEOF
DJ Delorie75086672009-08-22 14:31:165803
5804# Transform confdefs.h into an awk script `defines.awk', embedded as
5805# here-document in config.status, that substitutes the proper values into
5806# config.h.in to produce config.h.
5807
5808# Create a delimiter string that does not exist in confdefs.h, to ease
5809# handling of long lines.
5810ac_delim='%!_!# '
5811for ac_last_try in false false :; do
5812 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5813 if test -z "$ac_t"; then
5814 break
5815 elif $ac_last_try; then
5816 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5817 else
5818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5819 fi
5820done
5821
5822# For the awk script, D is an array of macro values keyed by name,
5823# likewise P contains macro parameters if any. Preserve backslash
5824# newline sequences.
5825
5826ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5827sed -n '
5828s/.\{148\}/&'"$ac_delim"'/g
5829t rset
5830:rset
5831s/^[ ]*#[ ]*define[ ][ ]*/ /
5832t def
5833d
5834:def
5835s/\\$//
5836t bsnl
5837s/["\\]/\\&/g
5838s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5839D["\1"]=" \3"/p
5840s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5841d
5842:bsnl
5843s/["\\]/\\&/g
5844s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5845D["\1"]=" \3\\\\\\n"\\/p
5846t cont
5847s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5848t cont
5849d
5850:cont
5851n
5852s/.\{148\}/&'"$ac_delim"'/g
5853t clear
5854:clear
5855s/\\$//
5856t bsnlc
5857s/["\\]/\\&/g; s/^/"/; s/$/"/p
5858d
5859:bsnlc
5860s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5861b cont
5862' <confdefs.h | sed '
5863s/'"$ac_delim"'/"\\\
5864"/g' >>$CONFIG_STATUS || ac_write_fail=1
5865
5866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5867 for (key in D) D_is_set[key] = 1
5868 FS = ""
5869}
5870/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5871 line = \$ 0
5872 split(line, arg, " ")
5873 if (arg[1] == "#") {
5874 defundef = arg[2]
5875 mac1 = arg[3]
5876 } else {
5877 defundef = substr(arg[1], 2)
5878 mac1 = arg[2]
5879 }
5880 split(mac1, mac2, "(") #)
5881 macro = mac2[1]
5882 prefix = substr(line, 1, index(line, defundef) - 1)
5883 if (D_is_set[macro]) {
5884 # Preserve the white space surrounding the "#".
5885 print prefix "define", macro P[macro] D[macro]
5886 next
5887 } else {
5888 # Replace #undef with comments. This is necessary, for example,
5889 # in the case of _POSIX_SOURCE, which is predefined and required
5890 # on some systems where configure will not decide to define it.
5891 if (defundef == "undef") {
5892 print "/*", prefix defundef, macro, "*/"
5893 next
5894 }
5895 }
5896}
5897{ print }
5898_ACAWK
5899_ACEOF
5900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5901 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5902fi # test -n "$CONFIG_HEADERS"
5903
5904
5905eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5906shift
5907for ac_tag
5908do
5909 case $ac_tag in
5910 :[FHLC]) ac_mode=$ac_tag; continue;;
5911 esac
5912 case $ac_mode$ac_tag in
5913 :[FHL]*:*);;
5914 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5915 :[FH]-) ac_tag=-:-;;
5916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5917 esac
5918 ac_save_IFS=$IFS
5919 IFS=:
5920 set x $ac_tag
5921 IFS=$ac_save_IFS
5922 shift
5923 ac_file=$1
5924 shift
5925
5926 case $ac_mode in
5927 :L) ac_source=$1;;
5928 :[FH])
5929 ac_file_inputs=
5930 for ac_f
5931 do
5932 case $ac_f in
5933 -) ac_f="$tmp/stdin";;
5934 *) # Look for the file first in the build tree, then in the source tree
5935 # (if the path is not absolute). The absolute path cannot be DOS-style,
5936 # because $ac_f cannot contain `:'.
5937 test -f "$ac_f" ||
5938 case $ac_f in
5939 [\\/$]*) false;;
5940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5941 esac ||
5942 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5943 esac
5944 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5945 as_fn_append ac_file_inputs " '$ac_f'"
5946 done
5947
5948 # Let's still pretend it is `configure' which instantiates (i.e., don't
5949 # use $as_me), people would be surprised to read:
5950 # /* config.h. Generated by config.status. */
5951 configure_input='Generated from '`
5952 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5953`' by configure.'
5954 if test x"$ac_file" != x-; then
5955 configure_input="$ac_file. $configure_input"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5957$as_echo "$as_me: creating $ac_file" >&6;}
5958 fi
5959 # Neutralize special characters interpreted by sed in replacement strings.
5960 case $configure_input in #(
5961 *\&* | *\|* | *\\* )
5962 ac_sed_conf_input=`$as_echo "$configure_input" |
5963 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5964 *) ac_sed_conf_input=$configure_input;;
5965 esac
5966
5967 case $ac_tag in
5968 *:-:* | *:-) cat >"$tmp/stdin" \
5969 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5970 esac
5971 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:025972 esac
5973
DJ Delorie75086672009-08-22 14:31:165974 ac_dir=`$as_dirname -- "$ac_file" ||
Daniel Jacobowitzf5bc1772007-10-11 18:15:025975$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5976 X"$ac_file" : 'X\(//\)[^/]' \| \
5977 X"$ac_file" : 'X\(//\)$' \| \
DJ Delorie75086672009-08-22 14:31:165978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5979$as_echo X"$ac_file" |
5980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5981 s//\1/
5982 q
5983 }
5984 /^X\(\/\/\)[^/].*/{
5985 s//\1/
5986 q
5987 }
5988 /^X\(\/\/\)$/{
5989 s//\1/
5990 q
5991 }
5992 /^X\(\/\).*/{
5993 s//\1/
5994 q
5995 }
5996 s/.*/./; q'`
5997 as_dir="$ac_dir"; as_fn_mkdir_p
Daniel Jacobowitzf5bc1772007-10-11 18:15:025998 ac_builddir=.
5999
DJ Delorie75086672009-08-22 14:31:166000case "$ac_dir" in
6001.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6002*)
6003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6004 # A ".." for each directory in $ac_dir_suffix.
6005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6006 case $ac_top_builddir_sub in
6007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6009 esac ;;
6010esac
6011ac_abs_top_builddir=$ac_pwd
6012ac_abs_builddir=$ac_pwd$ac_dir_suffix
6013# for backward compatibility:
6014ac_top_builddir=$ac_top_build_prefix
Daniel Jacobowitzf5bc1772007-10-11 18:15:026015
6016case $srcdir in
DJ Delorie75086672009-08-22 14:31:166017 .) # We are building in place.
Daniel Jacobowitzf5bc1772007-10-11 18:15:026018 ac_srcdir=.
DJ Delorie75086672009-08-22 14:31:166019 ac_top_srcdir=$ac_top_builddir_sub
6020 ac_abs_top_srcdir=$ac_pwd ;;
6021 [\\/]* | ?:[\\/]* ) # Absolute name.
Daniel Jacobowitzf5bc1772007-10-11 18:15:026022 ac_srcdir=$srcdir$ac_dir_suffix;
DJ Delorie75086672009-08-22 14:31:166023 ac_top_srcdir=$srcdir
6024 ac_abs_top_srcdir=$srcdir ;;
6025 *) # Relative name.
6026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6027 ac_top_srcdir=$ac_top_build_prefix$srcdir
6028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:026029esac
DJ Delorie75086672009-08-22 14:31:166030ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Daniel Jacobowitzf5bc1772007-10-11 18:15:026031
6032
DJ Delorie75086672009-08-22 14:31:166033 case $ac_mode in
6034 :F)
6035 #
6036 # CONFIG_FILE
6037 #
Daniel Jacobowitzf5bc1772007-10-11 18:15:026038
Daniel Jacobowitzf5bc1772007-10-11 18:15:026039_ACEOF
DJ Delorie75086672009-08-22 14:31:166040
6041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6042# If the template does not know about datarootdir, expand it.
6043# FIXME: This hack should be removed a few years after 2.60.
6044ac_datarootdir_hack=; ac_datarootdir_seen=
6045ac_sed_dataroot='
6046/datarootdir/ {
6047 p
6048 q
6049}
6050/@datadir@/p
6051/@docdir@/p
6052/@infodir@/p
6053/@localedir@/p
6054/@mandir@/p'
6055case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6056*datarootdir*) ac_datarootdir_seen=yes;;
6057*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6059$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6060_ACEOF
6061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6062 ac_datarootdir_hack='
6063 s&@datadir@&$datadir&g
6064 s&@docdir@&$docdir&g
6065 s&@infodir@&$infodir&g
6066 s&@localedir@&$localedir&g
6067 s&@mandir@&$mandir&g
6068 s&\\\${datarootdir}&$datarootdir&g' ;;
6069esac
6070_ACEOF
6071
6072# Neutralize VPATH when `$srcdir' = `.'.
6073# Shell code in configure.ac might set extrasub.
6074# FIXME: do we really want to maintain this feature?
6075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6076ac_sed_extra="$ac_vpsub
Daniel Jacobowitzf5bc1772007-10-11 18:15:026077$extrasub
6078_ACEOF
DJ Delorie75086672009-08-22 14:31:166079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Daniel Jacobowitzf5bc1772007-10-11 18:15:026080:t
6081/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
DJ Delorie75086672009-08-22 14:31:166082s|@configure_input@|$ac_sed_conf_input|;t t
6083s&@top_builddir@&$ac_top_builddir_sub&;t t
6084s&@top_build_prefix@&$ac_top_build_prefix&;t t
6085s&@srcdir@&$ac_srcdir&;t t
6086s&@abs_srcdir@&$ac_abs_srcdir&;t t
6087s&@top_srcdir@&$ac_top_srcdir&;t t
6088s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6089s&@builddir@&$ac_builddir&;t t
6090s&@abs_builddir@&$ac_abs_builddir&;t t
6091s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6092$ac_datarootdir_hack
6093"
6094eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6095 || as_fn_error "could not create $ac_file" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:026096
DJ Delorie75086672009-08-22 14:31:166097test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6101which seems to be undefined. Please make sure it is defined." >&5
6102$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6103which seems to be undefined. Please make sure it is defined." >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:026104
DJ Delorie75086672009-08-22 14:31:166105 rm -f "$tmp/stdin"
Daniel Jacobowitzf5bc1772007-10-11 18:15:026106 case $ac_file in
DJ Delorie75086672009-08-22 14:31:166107 -) cat "$tmp/out" && rm -f "$tmp/out";;
6108 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6109 esac \
6110 || as_fn_error "could not create $ac_file" "$LINENO" 5
6111 ;;
6112 :H)
6113 #
6114 # CONFIG_HEADER
6115 #
Daniel Jacobowitzf5bc1772007-10-11 18:15:026116 if test x"$ac_file" != x-; then
DJ Delorie75086672009-08-22 14:31:166117 {
6118 $as_echo "/* $configure_input */" \
6119 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6120 } >"$tmp/config.h" \
6121 || as_fn_error "could not create $ac_file" "$LINENO" 5
6122 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6124$as_echo "$as_me: $ac_file is unchanged" >&6;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:026125 else
DJ Delorie75086672009-08-22 14:31:166126 rm -f "$ac_file"
6127 mv "$tmp/config.h" "$ac_file" \
6128|| as_fn_error "could not create $ac_file" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:026129 fi
6130 else
DJ Delorie75086672009-08-22 14:31:166131 $as_echo "/* $configure_input */" \
6132 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6133 || as_fn_error "could not create -" "$LINENO" 5
Daniel Jacobowitzf5bc1772007-10-11 18:15:026134 fi
DJ Delorie75086672009-08-22 14:31:166135 ;;
6136
6137 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6138$as_echo "$as_me: executing $ac_file commands" >&6;}
6139 ;;
Daniel Jacobowitzf5bc1772007-10-11 18:15:026140 esac
Daniel Jacobowitzf5bc1772007-10-11 18:15:026141
6142
DJ Delorie75086672009-08-22 14:31:166143 case $ac_file$ac_mode in
6144 "gstdint.h":C)
DJ Delorieb1dfe692009-09-09 20:25:356145if test "$GCC" = yes; then
6146 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
6147else
6148 echo "/* generated for $CC */" > tmp-stdint.h
6149fi
Daniel Jacobowitzf5bc1772007-10-11 18:15:026150
DJ Delorieb1dfe692009-09-09 20:25:356151sed 's/^ *//' >> tmp-stdint.h <<EOF
6152
6153 #ifndef GCC_GENERATED_STDINT_H
6154 #define GCC_GENERATED_STDINT_H 1
6155
6156 #include <sys/types.h>
Daniel Jacobowitzf5bc1772007-10-11 18:15:026157EOF
6158
DJ Delorieb1dfe692009-09-09 20:25:356159if test "$acx_cv_header_stdint" != stdint.h; then
6160 echo "#include <stddef.h>" >> tmp-stdint.h
6161fi
6162if test "$acx_cv_header_stdint" != stddef.h; then
6163 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
6164fi
6165
6166sed 's/^ *//' >> tmp-stdint.h <<EOF
6167 /* glibc uses these symbols as guards to prevent redefinitions. */
6168 #ifdef __int8_t_defined
6169 #define _INT8_T
6170 #define _INT16_T
6171 #define _INT32_T
6172 #endif
6173 #ifdef __uint32_t_defined
6174 #define _UINT32_T
6175 #endif
6176
6177EOF
6178
6179# ----------------- done header, emit basic int types -------------
6180if test "$acx_cv_header_stdint" = stddef.h; then
6181 sed 's/^ *//' >> tmp-stdint.h <<EOF
6182
6183 #ifndef _UINT8_T
6184 #define _UINT8_T
6185 #ifndef __uint8_t_defined
6186 #define __uint8_t_defined
DJ Delorie43e85a82010-01-05 21:10:306187 #ifndef uint8_t
DJ Delorieb1dfe692009-09-09 20:25:356188 typedef unsigned $acx_cv_type_int8_t uint8_t;
6189 #endif
6190 #endif
DJ Delorie43e85a82010-01-05 21:10:306191 #endif
DJ Delorieb1dfe692009-09-09 20:25:356192
6193 #ifndef _UINT16_T
6194 #define _UINT16_T
6195 #ifndef __uint16_t_defined
6196 #define __uint16_t_defined
DJ Delorie43e85a82010-01-05 21:10:306197 #ifndef uint16_t
DJ Delorieb1dfe692009-09-09 20:25:356198 typedef unsigned $acx_cv_type_int16_t uint16_t;
6199 #endif
6200 #endif
DJ Delorie43e85a82010-01-05 21:10:306201 #endif
DJ Delorieb1dfe692009-09-09 20:25:356202
6203 #ifndef _UINT32_T
6204 #define _UINT32_T
6205 #ifndef __uint32_t_defined
6206 #define __uint32_t_defined
DJ Delorie43e85a82010-01-05 21:10:306207 #ifndef uint32_t
DJ Delorieb1dfe692009-09-09 20:25:356208 typedef unsigned $acx_cv_type_int32_t uint32_t;
6209 #endif
6210 #endif
DJ Delorie43e85a82010-01-05 21:10:306211 #endif
DJ Delorieb1dfe692009-09-09 20:25:356212
6213 #ifndef _INT8_T
6214 #define _INT8_T
6215 #ifndef __int8_t_defined
6216 #define __int8_t_defined
DJ Delorie43e85a82010-01-05 21:10:306217 #ifndef int8_t
DJ Delorieb1dfe692009-09-09 20:25:356218 typedef $acx_cv_type_int8_t int8_t;
6219 #endif
6220 #endif
DJ Delorie43e85a82010-01-05 21:10:306221 #endif
DJ Delorieb1dfe692009-09-09 20:25:356222
6223 #ifndef _INT16_T
6224 #define _INT16_T
6225 #ifndef __int16_t_defined
6226 #define __int16_t_defined
DJ Delorie43e85a82010-01-05 21:10:306227 #ifndef int16_t
DJ Delorieb1dfe692009-09-09 20:25:356228 typedef $acx_cv_type_int16_t int16_t;
6229 #endif
6230 #endif
DJ Delorie43e85a82010-01-05 21:10:306231 #endif
DJ Delorieb1dfe692009-09-09 20:25:356232
6233 #ifndef _INT32_T
6234 #define _INT32_T
6235 #ifndef __int32_t_defined
6236 #define __int32_t_defined
DJ Delorie43e85a82010-01-05 21:10:306237 #ifndef int32_t
DJ Delorieb1dfe692009-09-09 20:25:356238 typedef $acx_cv_type_int32_t int32_t;
6239 #endif
6240 #endif
DJ Delorie43e85a82010-01-05 21:10:306241 #endif
DJ Delorieb1dfe692009-09-09 20:25:356242EOF
6243elif test "$ac_cv_type_u_int32_t" = yes; then
6244 sed 's/^ *//' >> tmp-stdint.h <<EOF
6245
6246 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
6247 #ifndef _INT8_T
6248 #define _INT8_T
6249 #endif
6250 #ifndef _INT16_T
6251 #define _INT16_T
6252 #endif
6253 #ifndef _INT32_T
6254 #define _INT32_T
6255 #endif
6256
6257 #ifndef _UINT8_T
6258 #define _UINT8_T
6259 #ifndef __uint8_t_defined
6260 #define __uint8_t_defined
DJ Delorie43e85a82010-01-05 21:10:306261 #ifndef uint8_t
DJ Delorieb1dfe692009-09-09 20:25:356262 typedef u_int8_t uint8_t;
6263 #endif
6264 #endif
DJ Delorie43e85a82010-01-05 21:10:306265 #endif
DJ Delorieb1dfe692009-09-09 20:25:356266
6267 #ifndef _UINT16_T
6268 #define _UINT16_T
6269 #ifndef __uint16_t_defined
6270 #define __uint16_t_defined
DJ Delorie43e85a82010-01-05 21:10:306271 #ifndef uint16_t
DJ Delorieb1dfe692009-09-09 20:25:356272 typedef u_int16_t uint16_t;
6273 #endif
6274 #endif
DJ Delorie43e85a82010-01-05 21:10:306275 #endif
DJ Delorieb1dfe692009-09-09 20:25:356276
6277 #ifndef _UINT32_T
6278 #define _UINT32_T
6279 #ifndef __uint32_t_defined
6280 #define __uint32_t_defined
DJ Delorie43e85a82010-01-05 21:10:306281 #ifndef uint32_t
DJ Delorieb1dfe692009-09-09 20:25:356282 typedef u_int32_t uint32_t;
6283 #endif
6284 #endif
DJ Delorie43e85a82010-01-05 21:10:306285 #endif
DJ Delorieb1dfe692009-09-09 20:25:356286EOF
6287else
6288 sed 's/^ *//' >> tmp-stdint.h <<EOF
6289
6290 /* Some systems have guard macros to prevent redefinitions, define them. */
6291 #ifndef _INT8_T
6292 #define _INT8_T
6293 #endif
6294 #ifndef _INT16_T
6295 #define _INT16_T
6296 #endif
6297 #ifndef _INT32_T
6298 #define _INT32_T
6299 #endif
6300 #ifndef _UINT8_T
6301 #define _UINT8_T
6302 #endif
6303 #ifndef _UINT16_T
6304 #define _UINT16_T
6305 #endif
6306 #ifndef _UINT32_T
6307 #define _UINT32_T
6308 #endif
6309EOF
6310fi
6311
6312# ------------- done basic int types, emit int64_t types ------------
6313if test "$ac_cv_type_uint64_t" = yes; then
6314 sed 's/^ *//' >> tmp-stdint.h <<EOF
6315
6316 /* system headers have good uint64_t and int64_t */
6317 #ifndef _INT64_T
6318 #define _INT64_T
6319 #endif
6320 #ifndef _UINT64_T
6321 #define _UINT64_T
6322 #endif
6323EOF
6324elif test "$ac_cv_type_u_int64_t" = yes; then
6325 sed 's/^ *//' >> tmp-stdint.h <<EOF
6326
6327 /* system headers have an u_int64_t (and int64_t) */
6328 #ifndef _INT64_T
6329 #define _INT64_T
6330 #endif
6331 #ifndef _UINT64_T
6332 #define _UINT64_T
6333 #ifndef __uint64_t_defined
6334 #define __uint64_t_defined
DJ Delorie43e85a82010-01-05 21:10:306335 #ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356336 typedef u_int64_t uint64_t;
6337 #endif
6338 #endif
DJ Delorie43e85a82010-01-05 21:10:306339 #endif
DJ Delorieb1dfe692009-09-09 20:25:356340EOF
6341elif test -n "$acx_cv_type_int64_t"; then
6342 sed 's/^ *//' >> tmp-stdint.h <<EOF
6343
6344 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
6345 #ifndef _INT64_T
6346 #define _INT64_T
DJ Delorie43e85a82010-01-05 21:10:306347 #ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356348 typedef $acx_cv_type_int64_t int64_t;
6349 #endif
DJ Delorie43e85a82010-01-05 21:10:306350 #endif
DJ Delorieb1dfe692009-09-09 20:25:356351 #ifndef _UINT64_T
6352 #define _UINT64_T
6353 #ifndef __uint64_t_defined
6354 #define __uint64_t_defined
DJ Delorie43e85a82010-01-05 21:10:306355 #ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356356 typedef unsigned $acx_cv_type_int64_t uint64_t;
6357 #endif
6358 #endif
DJ Delorie43e85a82010-01-05 21:10:306359 #endif
DJ Delorieb1dfe692009-09-09 20:25:356360EOF
6361else
6362 sed 's/^ *//' >> tmp-stdint.h <<EOF
6363
6364 /* some common heuristics for int64_t, using compiler-specific tests */
6365 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
6366 #ifndef _INT64_T
6367 #define _INT64_T
6368 #ifndef __int64_t_defined
DJ Delorie43e85a82010-01-05 21:10:306369 #ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356370 typedef long long int64_t;
6371 #endif
6372 #endif
DJ Delorie43e85a82010-01-05 21:10:306373 #endif
DJ Delorieb1dfe692009-09-09 20:25:356374 #ifndef _UINT64_T
6375 #define _UINT64_T
DJ Delorie43e85a82010-01-05 21:10:306376 #ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356377 typedef unsigned long long uint64_t;
6378 #endif
DJ Delorie43e85a82010-01-05 21:10:306379 #endif
DJ Delorieb1dfe692009-09-09 20:25:356380
6381 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
6382 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
6383 does not implement __extension__. But that compiler doesn't define
6384 __GNUC_MINOR__. */
6385 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
6386 # define __extension__
6387 # endif
6388
6389 # ifndef _INT64_T
6390 # define _INT64_T
DJ Delorie43e85a82010-01-05 21:10:306391 # ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356392 __extension__ typedef long long int64_t;
6393 # endif
DJ Delorie43e85a82010-01-05 21:10:306394 # endif
DJ Delorieb1dfe692009-09-09 20:25:356395 # ifndef _UINT64_T
6396 # define _UINT64_T
DJ Delorie43e85a82010-01-05 21:10:306397 # ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356398 __extension__ typedef unsigned long long uint64_t;
6399 # endif
DJ Delorie43e85a82010-01-05 21:10:306400 # endif
DJ Delorieb1dfe692009-09-09 20:25:356401
6402 #elif !defined __STRICT_ANSI__
6403 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
6404
6405 # ifndef _INT64_T
6406 # define _INT64_T
DJ Delorie43e85a82010-01-05 21:10:306407 # ifndef int64_t
DJ Delorieb1dfe692009-09-09 20:25:356408 typedef __int64 int64_t;
6409 # endif
DJ Delorie43e85a82010-01-05 21:10:306410 # endif
DJ Delorieb1dfe692009-09-09 20:25:356411 # ifndef _UINT64_T
6412 # define _UINT64_T
DJ Delorie43e85a82010-01-05 21:10:306413 # ifndef uint64_t
DJ Delorieb1dfe692009-09-09 20:25:356414 typedef unsigned __int64 uint64_t;
6415 # endif
DJ Delorie43e85a82010-01-05 21:10:306416 # endif
DJ Delorieb1dfe692009-09-09 20:25:356417 # endif /* compiler */
6418
6419 #endif /* ANSI version */
6420EOF
6421fi
6422
6423# ------------- done int64_t types, emit intptr types ------------
6424if test "$ac_cv_type_uintptr_t" != yes; then
6425 sed 's/^ *//' >> tmp-stdint.h <<EOF
6426
6427 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
6428 #ifndef __uintptr_t_defined
DJ Delorie43e85a82010-01-05 21:10:306429 #ifndef uintptr_t
DJ Delorieb1dfe692009-09-09 20:25:356430 typedef u$acx_cv_type_intptr_t uintptr_t;
6431 #endif
DJ Delorie43e85a82010-01-05 21:10:306432 #endif
DJ Delorieb1dfe692009-09-09 20:25:356433 #ifndef __intptr_t_defined
DJ Delorie43e85a82010-01-05 21:10:306434 #ifndef intptr_t
DJ Delorieb1dfe692009-09-09 20:25:356435 typedef $acx_cv_type_intptr_t intptr_t;
6436 #endif
DJ Delorie43e85a82010-01-05 21:10:306437 #endif
DJ Delorieb1dfe692009-09-09 20:25:356438EOF
6439fi
6440
6441# ------------- done intptr types, emit int_least types ------------
Daniel Jacobowitzf5bc1772007-10-11 18:15:026442if test "$ac_cv_type_int_least32_t" != yes; then
DJ Delorieb1dfe692009-09-09 20:25:356443 sed 's/^ *//' >> tmp-stdint.h <<EOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026444
6445 /* Define int_least types */
6446 typedef int8_t int_least8_t;
6447 typedef int16_t int_least16_t;
6448 typedef int32_t int_least32_t;
DJ Delorieb1dfe692009-09-09 20:25:356449 #ifdef _INT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026450 typedef int64_t int_least64_t;
DJ Delorieb1dfe692009-09-09 20:25:356451 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026452
6453 typedef uint8_t uint_least8_t;
6454 typedef uint16_t uint_least16_t;
6455 typedef uint32_t uint_least32_t;
DJ Delorieb1dfe692009-09-09 20:25:356456 #ifdef _UINT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026457 typedef uint64_t uint_least64_t;
DJ Delorieb1dfe692009-09-09 20:25:356458 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026459EOF
6460fi
6461
DJ Delorieb1dfe692009-09-09 20:25:356462# ------------- done intptr types, emit int_fast types ------------
Daniel Jacobowitzf5bc1772007-10-11 18:15:026463if test "$ac_cv_type_int_fast32_t" != yes; then
DJ Delorieb1dfe692009-09-09 20:25:356464 sed 's/^ *//' >> tmp-stdint.h <<EOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026465
6466 /* Define int_fast types. short is often slow */
6467 typedef int8_t int_fast8_t;
6468 typedef int int_fast16_t;
6469 typedef int32_t int_fast32_t;
DJ Delorieb1dfe692009-09-09 20:25:356470 #ifdef _INT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026471 typedef int64_t int_fast64_t;
DJ Delorieb1dfe692009-09-09 20:25:356472 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026473
6474 typedef uint8_t uint_fast8_t;
6475 typedef unsigned int uint_fast16_t;
6476 typedef uint32_t uint_fast32_t;
DJ Delorieb1dfe692009-09-09 20:25:356477 #ifdef _UINT64_T
Daniel Jacobowitzf5bc1772007-10-11 18:15:026478 typedef uint64_t uint_fast64_t;
DJ Delorieb1dfe692009-09-09 20:25:356479 #endif
Daniel Jacobowitzf5bc1772007-10-11 18:15:026480EOF
6481fi
6482
DJ Delorieb1dfe692009-09-09 20:25:356483if test "$ac_cv_type_uintmax_t" != yes; then
6484 sed 's/^ *//' >> tmp-stdint.h <<EOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026485
DJ Delorieb1dfe692009-09-09 20:25:356486 /* Define intmax based on what we found */
DJ Delorie43e85a82010-01-05 21:10:306487 #ifndef intmax_t
DJ Delorieb1dfe692009-09-09 20:25:356488 #ifdef _INT64_T
6489 typedef int64_t intmax_t;
6490 #else
6491 typedef long intmax_t;
6492 #endif
DJ Delorie43e85a82010-01-05 21:10:306493 #endif
6494 #ifndef uintmax_t
DJ Delorieb1dfe692009-09-09 20:25:356495 #ifdef _UINT64_T
6496 typedef uint64_t uintmax_t;
6497 #else
6498 typedef unsigned long uintmax_t;
6499 #endif
DJ Delorie43e85a82010-01-05 21:10:306500 #endif
DJ Delorieb1dfe692009-09-09 20:25:356501EOF
6502fi
6503
6504sed 's/^ *//' >> tmp-stdint.h <<EOF
6505
6506 #endif /* GCC_GENERATED_STDINT_H */
6507EOF
6508
6509if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
6510 rm -f tmp-stdint.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:026511else
DJ Delorieb1dfe692009-09-09 20:25:356512 mv -f tmp-stdint.h gstdint.h
Daniel Jacobowitzf5bc1772007-10-11 18:15:026513fi
6514
6515 ;;
DJ Delorie75086672009-08-22 14:31:166516 "config.h":H) echo timestamp > stamp-h1 ;;
6517
Daniel Jacobowitzf5bc1772007-10-11 18:15:026518 esac
DJ Delorie75086672009-08-22 14:31:166519done # for ac_tag
Daniel Jacobowitzf5bc1772007-10-11 18:15:026520
Daniel Jacobowitzf5bc1772007-10-11 18:15:026521
DJ Delorie75086672009-08-22 14:31:166522as_fn_exit 0
Daniel Jacobowitzf5bc1772007-10-11 18:15:026523_ACEOF
Daniel Jacobowitzf5bc1772007-10-11 18:15:026524ac_clean_files=$ac_clean_files_save
6525
DJ Delorie75086672009-08-22 14:31:166526test $ac_write_fail = 0 ||
6527 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6528
Daniel Jacobowitzf5bc1772007-10-11 18:15:026529
6530# configure is writing to config.log, and then calls config.status.
6531# config.status does its own redirection, appending to config.log.
6532# Unfortunately, on DOS this fails, as config.log is still kept open
6533# by configure, so config.status won't be able to write to it; its
6534# output is simply discarded. So we exec the FD to /dev/null,
6535# effectively closing config.log, so it can be properly (re)opened and
6536# appended to by config.status. When coming back to configure, we
6537# need to make the FD available again.
6538if test "$no_create" != yes; then
6539 ac_cs_success=:
6540 ac_config_status_args=
6541 test "$silent" = yes &&
6542 ac_config_status_args="$ac_config_status_args --quiet"
6543 exec 5>/dev/null
6544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6545 exec 5>>config.log
6546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6547 # would make configure fail if this is the last instruction.
DJ Delorie75086672009-08-22 14:31:166548 $ac_cs_success || as_fn_exit $?
6549fi
6550if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6552$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Daniel Jacobowitzf5bc1772007-10-11 18:15:026553fi
6554