]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/igen/configure
0b14176017e841218813e99a636198a3d3fe04c4
[thirdparty/binutils-gdb.git] / sim / igen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="table.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 RANLIB
625 AR
626 RANLIB_FOR_BUILD
627 CFLAGS_FOR_BUILD
628 CC_FOR_BUILD
629 AR_FLAGS_FOR_BUILD
630 AR_FOR_BUILD
631 EGREP
632 GREP
633 CPP
634 target_os
635 target_vendor
636 target_cpu
637 target
638 host_os
639 host_vendor
640 host_cpu
641 host
642 build_os
643 build_vendor
644 build_cpu
645 build
646 OBJEXT
647 EXEEXT
648 ac_ct_CC
649 CPPFLAGS
650 LDFLAGS
651 CFLAGS
652 CC
653 INSTALL_DATA
654 INSTALL_SCRIPT
655 INSTALL_PROGRAM
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL
694 WERROR_CFLAGS
695 WARN_CFLAGS
696 sim_reserved_bits
697 sim_inline
698 sim_hw
699 sim_hw_objs
700 sim_hw_cflags
701 sim_default_model
702 sim_scache
703 sim_float
704 sim_endian
705 sim_bitsize
706 sim_alignment'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 enable_werror
711 enable_build_warnings
712 enable_sim_build_warnings
713 '
714 ac_precious_vars='build_alias
715 host_alias
716 target_alias
717 CC
718 CFLAGS
719 LDFLAGS
720 LIBS
721 CPPFLAGS
722 CPP'
723
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 ac_unrecognized_opts=
729 ac_unrecognized_sep=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
780 ac_prev=
781 continue
782 fi
783
784 case $ac_option in
785 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *=) ac_optarg= ;;
787 *) ac_optarg=yes ;;
788 esac
789
790 # Accept the important Cygnus configure options, so we can diagnose typos.
791
792 case $ac_dashdash$ac_option in
793 --)
794 ac_dashdash=yes ;;
795
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 ac_prev=bindir ;;
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 bindir=$ac_optarg ;;
800
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
805
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
812
813 --config-cache | -C)
814 cache_file=config.cache ;;
815
816 -datadir | --datadir | --datadi | --datad)
817 ac_prev=datadir ;;
818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
819 datadir=$ac_optarg ;;
820
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
827
828 -disable-* | --disable-*)
829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830 # Reject names that are not valid shell variable names.
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 as_fn_error $? "invalid feature name: $ac_useropt"
833 ac_useropt_orig=$ac_useropt
834 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
836 *"
837 "enable_$ac_useropt"
838 "*) ;;
839 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840 ac_unrecognized_sep=', ';;
841 esac
842 eval enable_$ac_useropt=no ;;
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
853
854 -enable-* | --enable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
862 *"
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=\$ac_optarg ;;
869
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
878
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
882
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
889
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
894
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
900
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
907
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
912
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
917
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
924
925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
929
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir=$ac_optarg ;;
936
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
941
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
945
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
949
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
953
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
962
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
967
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
974
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
981
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
998
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1003
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1008
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid package name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067 "with_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval with_$ac_useropt=\$ac_optarg ;;
1073
1074 -without-* | --without-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid package name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083 "with_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=no ;;
1089
1090 --x)
1091 # Obsolete; use --with-x.
1092 with_x=yes ;;
1093
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1100
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1107
1108 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109 Try \`$0 --help' for more information"
1110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
1117 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1118 esac
1119 eval $ac_envvar=\$ac_optarg
1120 export $ac_envvar ;;
1121
1122 *)
1123 # FIXME: should be removed in autoconf 3.0.
1124 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1128 ;;
1129
1130 esac
1131 done
1132
1133 if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135 as_fn_error $? "missing argument to $ac_option"
1136 fi
1137
1138 if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1140 no) ;;
1141 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 esac
1144 fi
1145
1146 # Check all directory arguments for consistency.
1147 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1151 do
1152 eval ac_val=\$$ac_var
1153 # Remove trailing slashes.
1154 case $ac_val in
1155 */ )
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
1158 esac
1159 # Be sure to have absolute directory names.
1160 case $ac_val in
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 esac
1164 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 done
1166
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 elif test "x$build_alias" != "x$host_alias"; then
1179 cross_compiling=yes
1180 fi
1181 fi
1182
1183 ac_tool_prefix=
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185
1186 test "$silent" = yes && exec 6>/dev/null
1187
1188
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error $? "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error $? "pwd does not report name of working directory"
1195
1196
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\/\)[^/].*/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)$/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\).*/{
1220 s//\1/
1221 q
1222 }
1223 s/.*/./; q'`
1224 srcdir=$ac_confdir
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 srcdir=..
1227 fi
1228 else
1229 ac_srcdir_defaulted=no
1230 fi
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1234 fi
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238 pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1262 cat <<_ACEOF
1263 \`configure' configures this package to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking ...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 [PREFIX]
1288
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1316 _ACEOF
1317
1318 cat <<\_ACEOF
1319
1320 Program names:
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1324
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 --target=TARGET configure for building compilers for TARGET [HOST]
1329 _ACEOF
1330 fi
1331
1332 if test -n "$ac_init_help"; then
1333
1334 cat <<\_ACEOF
1335
1336 Optional Features:
1337 --disable-option-checking ignore unrecognized --enable/--with options
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-werror treat compile warnings as errors
1341 --enable-build-warnings enable build-time compiler warnings if gcc is used
1342 --enable-sim-build-warnings
1343 enable SIM specific build-time compiler warnings if
1344 gcc is used
1345
1346 Some influential environment variables:
1347 CC C compiler command
1348 CFLAGS C compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
1351 LIBS libraries to pass to the linker, e.g. -l<library>
1352 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
1354 CPP C preprocessor
1355
1356 Use these variables to override the choices made by `configure' or to help
1357 it to find libraries and programs with nonstandard names/locations.
1358
1359 Report bugs to the package provider.
1360 _ACEOF
1361 ac_status=$?
1362 fi
1363
1364 if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367 test -d "$ac_dir" ||
1368 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1369 continue
1370 ac_builddir=.
1371
1372 case "$ac_dir" in
1373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *)
1375 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1376 # A ".." for each directory in $ac_dir_suffix.
1377 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1378 case $ac_top_builddir_sub in
1379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381 esac ;;
1382 esac
1383 ac_abs_top_builddir=$ac_pwd
1384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385 # for backward compatibility:
1386 ac_top_builddir=$ac_top_build_prefix
1387
1388 case $srcdir in
1389 .) # We are building in place.
1390 ac_srcdir=.
1391 ac_top_srcdir=$ac_top_builddir_sub
1392 ac_abs_top_srcdir=$ac_pwd ;;
1393 [\\/]* | ?:[\\/]* ) # Absolute name.
1394 ac_srcdir=$srcdir$ac_dir_suffix;
1395 ac_top_srcdir=$srcdir
1396 ac_abs_top_srcdir=$srcdir ;;
1397 *) # Relative name.
1398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399 ac_top_srcdir=$ac_top_build_prefix$srcdir
1400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1401 esac
1402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403
1404 cd "$ac_dir" || { ac_status=$?; continue; }
1405 # Check for guested configure.
1406 if test -f "$ac_srcdir/configure.gnu"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409 elif test -f "$ac_srcdir/configure"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure" --help=recursive
1412 else
1413 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1414 fi || ac_status=$?
1415 cd "$ac_pwd" || { ac_status=$?; break; }
1416 done
1417 fi
1418
1419 test -n "$ac_init_help" && exit $ac_status
1420 if $ac_init_version; then
1421 cat <<\_ACEOF
1422 configure
1423 generated by GNU Autoconf 2.69
1424
1425 Copyright (C) 2012 Free Software Foundation, Inc.
1426 This configure script is free software; the Free Software Foundation
1427 gives unlimited permission to copy, distribute and modify it.
1428 _ACEOF
1429 exit
1430 fi
1431
1432 ## ------------------------ ##
1433 ## Autoconf initialization. ##
1434 ## ------------------------ ##
1435
1436 # ac_fn_c_try_compile LINENO
1437 # --------------------------
1438 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1439 ac_fn_c_try_compile ()
1440 {
1441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1442 rm -f conftest.$ac_objext
1443 if { { ac_try="$ac_compile"
1444 case "(($ac_try" in
1445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1446 *) ac_try_echo=$ac_try;;
1447 esac
1448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1449 $as_echo "$ac_try_echo"; } >&5
1450 (eval "$ac_compile") 2>conftest.err
1451 ac_status=$?
1452 if test -s conftest.err; then
1453 grep -v '^ *+' conftest.err >conftest.er1
1454 cat conftest.er1 >&5
1455 mv -f conftest.er1 conftest.err
1456 fi
1457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1458 test $ac_status = 0; } && {
1459 test -z "$ac_c_werror_flag" ||
1460 test ! -s conftest.err
1461 } && test -s conftest.$ac_objext; then :
1462 ac_retval=0
1463 else
1464 $as_echo "$as_me: failed program was:" >&5
1465 sed 's/^/| /' conftest.$ac_ext >&5
1466
1467 ac_retval=1
1468 fi
1469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1470 as_fn_set_status $ac_retval
1471
1472 } # ac_fn_c_try_compile
1473
1474 # ac_fn_c_try_cpp LINENO
1475 # ----------------------
1476 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1477 ac_fn_c_try_cpp ()
1478 {
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 if { { ac_try="$ac_cpp conftest.$ac_ext"
1481 case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1493 fi
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } > conftest.i && {
1496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 }; then :
1499 ac_retval=0
1500 else
1501 $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1503
1504 ac_retval=1
1505 fi
1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1507 as_fn_set_status $ac_retval
1508
1509 } # ac_fn_c_try_cpp
1510
1511 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1512 # -------------------------------------------------------
1513 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1514 # the include files in INCLUDES and setting the cache variable VAR
1515 # accordingly.
1516 ac_fn_c_check_header_mongrel ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 if eval \${$3+:} false; then :
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1521 $as_echo_n "checking for $2... " >&6; }
1522 if eval \${$3+:} false; then :
1523 $as_echo_n "(cached) " >&6
1524 fi
1525 eval ac_res=\$$3
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1527 $as_echo "$ac_res" >&6; }
1528 else
1529 # Is the header compilable?
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1531 $as_echo_n "checking $2 usability... " >&6; }
1532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533 /* end confdefs.h. */
1534 $4
1535 #include <$2>
1536 _ACEOF
1537 if ac_fn_c_try_compile "$LINENO"; then :
1538 ac_header_compiler=yes
1539 else
1540 ac_header_compiler=no
1541 fi
1542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1544 $as_echo "$ac_header_compiler" >&6; }
1545
1546 # Is the header present?
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1548 $as_echo_n "checking $2 presence... " >&6; }
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h. */
1551 #include <$2>
1552 _ACEOF
1553 if ac_fn_c_try_cpp "$LINENO"; then :
1554 ac_header_preproc=yes
1555 else
1556 ac_header_preproc=no
1557 fi
1558 rm -f conftest.err conftest.i conftest.$ac_ext
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1560 $as_echo "$ac_header_preproc" >&6; }
1561
1562 # So? What about this header?
1563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1564 yes:no: )
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1566 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1568 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1569 ;;
1570 no:yes:* )
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1572 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1574 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1576 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1578 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1580 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1581 ;;
1582 esac
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586 $as_echo_n "(cached) " >&6
1587 else
1588 eval "$3=\$ac_header_compiler"
1589 fi
1590 eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595
1596 } # ac_fn_c_check_header_mongrel
1597
1598 # ac_fn_c_try_run LINENO
1599 # ----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1601 # that executables *can* be run.
1602 ac_fn_c_try_run ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>&5
1613 ac_status=$?
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1616 { { case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_try") 2>&5
1623 ac_status=$?
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; }; }; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: program exited with status $ac_status" >&5
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=$ac_status
1633 fi
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_run
1639
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1651 else
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 $4
1655 #include <$2>
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658 eval "$3=yes"
1659 else
1660 eval "$3=no"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 fi
1664 eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669 } # ac_fn_c_check_header_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_link
1716 cat >config.log <<_ACEOF
1717 This file contains any messages produced by compilers while
1718 running configure, to aid debugging if configure makes a mistake.
1719
1720 It was created by $as_me, which was
1721 generated by GNU Autoconf 2.69. Invocation command line was
1722
1723 $ $0 $@
1724
1725 _ACEOF
1726 exec 5>>config.log
1727 {
1728 cat <<_ASUNAME
1729 ## --------- ##
1730 ## Platform. ##
1731 ## --------- ##
1732
1733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1741
1742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1749
1750 _ASUNAME
1751
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 $as_echo "PATH: $as_dir"
1758 done
1759 IFS=$as_save_IFS
1760
1761 } >&5
1762
1763 cat >&5 <<_ACEOF
1764
1765
1766 ## ----------- ##
1767 ## Core tests. ##
1768 ## ----------- ##
1769
1770 _ACEOF
1771
1772
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1778 ac_configure_args=
1779 ac_configure_args0=
1780 ac_configure_args1=
1781 ac_must_keep_next=false
1782 for ac_pass in 1 2
1783 do
1784 for ac_arg
1785 do
1786 case $ac_arg in
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1790 continue ;;
1791 *\'*)
1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 esac
1794 case $ac_pass in
1795 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1796 2)
1797 as_fn_append ac_configure_args1 " '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1800 else
1801 case $ac_arg in
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 esac
1809 ;;
1810 -* ) ac_must_keep_next=true ;;
1811 esac
1812 fi
1813 as_fn_append ac_configure_args " '$ac_arg'"
1814 ;;
1815 esac
1816 done
1817 done
1818 { ac_configure_args0=; unset ac_configure_args0;}
1819 { ac_configure_args1=; unset ac_configure_args1;}
1820
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log. We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1828 {
1829 echo
1830
1831 $as_echo "## ---------------- ##
1832 ## Cache variables. ##
1833 ## ---------------- ##"
1834 echo
1835 # The following way of writing the cache mishandles newlines in values,
1836 (
1837 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838 eval ac_val=\$$ac_var
1839 case $ac_val in #(
1840 *${as_nl}*)
1841 case $ac_var in #(
1842 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1844 esac
1845 case $ac_var in #(
1846 _ | IFS | as_nl) ;; #(
1847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848 *) { eval $ac_var=; unset $ac_var;} ;;
1849 esac ;;
1850 esac
1851 done
1852 (set) 2>&1 |
1853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
1855 sed -n \
1856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858 ;; #(
1859 *)
1860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861 ;;
1862 esac |
1863 sort
1864 )
1865 echo
1866
1867 $as_echo "## ----------------- ##
1868 ## Output variables. ##
1869 ## ----------------- ##"
1870 echo
1871 for ac_var in $ac_subst_vars
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880
1881 if test -n "$ac_subst_files"; then
1882 $as_echo "## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##"
1885 echo
1886 for ac_var in $ac_subst_files
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 $as_echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895 fi
1896
1897 if test -s confdefs.h; then
1898 $as_echo "## ----------- ##
1899 ## confdefs.h. ##
1900 ## ----------- ##"
1901 echo
1902 cat confdefs.h
1903 echo
1904 fi
1905 test "$ac_signal" != 0 &&
1906 $as_echo "$as_me: caught signal $ac_signal"
1907 $as_echo "$as_me: exit $exit_status"
1908 } >&5
1909 rm -f core *.core core.conftest.* &&
1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911 exit $exit_status
1912 ' 0
1913 for ac_signal in 1 2 13 15; do
1914 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1915 done
1916 ac_signal=0
1917
1918 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1919 rm -f -r conftest* confdefs.h
1920
1921 $as_echo "/* confdefs.h */" > confdefs.h
1922
1923 # Predefined preprocessor variables.
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_NAME "$PACKAGE_NAME"
1927 _ACEOF
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931 _ACEOF
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1935 _ACEOF
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_STRING "$PACKAGE_STRING"
1939 _ACEOF
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1943 _ACEOF
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_URL "$PACKAGE_URL"
1947 _ACEOF
1948
1949
1950 # Let the site file select an alternate cache file if it wants to.
1951 # Prefer an explicitly selected file to automatically selected ones.
1952 ac_site_file1=NONE
1953 ac_site_file2=NONE
1954 if test -n "$CONFIG_SITE"; then
1955 # We do not want a PATH search for config.site.
1956 case $CONFIG_SITE in #((
1957 -*) ac_site_file1=./$CONFIG_SITE;;
1958 */*) ac_site_file1=$CONFIG_SITE;;
1959 *) ac_site_file1=./$CONFIG_SITE;;
1960 esac
1961 elif test "x$prefix" != xNONE; then
1962 ac_site_file1=$prefix/share/config.site
1963 ac_site_file2=$prefix/etc/config.site
1964 else
1965 ac_site_file1=$ac_default_prefix/share/config.site
1966 ac_site_file2=$ac_default_prefix/etc/config.site
1967 fi
1968 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1969 do
1970 test "x$ac_site_file" = xNONE && continue
1971 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1974 sed 's/^/| /' "$ac_site_file" >&5
1975 . "$ac_site_file" \
1976 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1978 as_fn_error $? "failed to load site script $ac_site_file
1979 See \`config.log' for more details" "$LINENO" 5; }
1980 fi
1981 done
1982
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special files
1985 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1986 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
1989 case $cache_file in
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1992 esac
1993 fi
1994 else
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
1997 >$cache_file
1998 fi
1999
2000 # Check that the precious variables saved in the cache have kept the same
2001 # value.
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2009 set,)
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,set)
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,);;
2018 *)
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2027 else
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2031 fi
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2036 fi;;
2037 esac
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2040 case $ac_new_val in
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2043 esac
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2047 esac
2048 fi
2049 done
2050 if $ac_cache_corrupted; then
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2056 fi
2057 ## -------------------- ##
2058 ## Main body of script. ##
2059 ## -------------------- ##
2060
2061 ac_ext=c
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066
2067
2068
2069
2070
2071
2072
2073 ac_aux_dir=
2074 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2075 if test -f "$ac_dir/install-sh"; then
2076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/install-sh -c"
2078 break
2079 elif test -f "$ac_dir/install.sh"; then
2080 ac_aux_dir=$ac_dir
2081 ac_install_sh="$ac_aux_dir/install.sh -c"
2082 break
2083 elif test -f "$ac_dir/shtool"; then
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/shtool install -c"
2086 break
2087 fi
2088 done
2089 if test -z "$ac_aux_dir"; then
2090 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2091 fi
2092
2093 # These three variables are undocumented and unsupported,
2094 # and are intended to be withdrawn in a future Autoconf release.
2095 # They can cause serious problems if a builder's source tree is in a directory
2096 # whose full name contains unusual characters.
2097 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2098 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2099 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2100
2101
2102 # Find a good install program. We prefer a C program (faster),
2103 # so one script is as good as another. But avoid the broken or
2104 # incompatible versions:
2105 # SysV /etc/install, /usr/sbin/install
2106 # SunOS /usr/etc/install
2107 # IRIX /sbin/install
2108 # AIX /bin/install
2109 # AmigaOS /C/install, which installs bootblocks on floppy discs
2110 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2111 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2112 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2113 # OS/2's system install, which has a completely different semantic
2114 # ./install, which can be erroneously created by make from ./install.sh.
2115 # Reject install programs that cannot install multiple files.
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2117 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2118 if test -z "$INSTALL"; then
2119 if ${ac_cv_path_install+:} false; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 # Account for people who put trailing slashes in PATH elements.
2128 case $as_dir/ in #((
2129 ./ | .// | /[cC]/* | \
2130 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2131 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2132 /usr/ucb/* ) ;;
2133 *)
2134 # OSF1 and SCO ODT 3.0 have their own names for install.
2135 # Don't use installbsd from OSF since it installs stuff as root
2136 # by default.
2137 for ac_prog in ginstall scoinst install; do
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2140 if test $ac_prog = install &&
2141 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2142 # AIX install. It has an incompatible calling convention.
2143 :
2144 elif test $ac_prog = install &&
2145 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146 # program-specific install script used by HP pwplus--don't use.
2147 :
2148 else
2149 rm -rf conftest.one conftest.two conftest.dir
2150 echo one > conftest.one
2151 echo two > conftest.two
2152 mkdir conftest.dir
2153 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2154 test -s conftest.one && test -s conftest.two &&
2155 test -s conftest.dir/conftest.one &&
2156 test -s conftest.dir/conftest.two
2157 then
2158 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2159 break 3
2160 fi
2161 fi
2162 fi
2163 done
2164 done
2165 ;;
2166 esac
2167
2168 done
2169 IFS=$as_save_IFS
2170
2171 rm -rf conftest.one conftest.two conftest.dir
2172
2173 fi
2174 if test "${ac_cv_path_install+set}" = set; then
2175 INSTALL=$ac_cv_path_install
2176 else
2177 # As a last resort, use the slow shell script. Don't cache a
2178 # value for INSTALL within a source directory, because that will
2179 # break other packages using the cache if that directory is
2180 # removed, or if the value is a relative name.
2181 INSTALL=$ac_install_sh
2182 fi
2183 fi
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2185 $as_echo "$INSTALL" >&6; }
2186
2187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2188 # It thinks the first close brace ends the variable substitution.
2189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190
2191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192
2193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2204 $as_echo_n "checking for $ac_word... " >&6; }
2205 if ${ac_cv_prog_CC+:} false; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2221 fi
2222 done
2223 done
2224 IFS=$as_save_IFS
2225
2226 fi
2227 fi
2228 CC=$ac_cv_prog_CC
2229 if test -n "$CC"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2231 $as_echo "$CC" >&6; }
2232 else
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2234 $as_echo "no" >&6; }
2235 fi
2236
2237
2238 fi
2239 if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2244 $as_echo_n "checking for $ac_word... " >&6; }
2245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_ac_ct_CC="gcc"
2259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262 done
2263 done
2264 IFS=$as_save_IFS
2265
2266 fi
2267 fi
2268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269 if test -n "$ac_ct_CC"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2271 $as_echo "$ac_ct_CC" >&6; }
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2274 $as_echo "no" >&6; }
2275 fi
2276
2277 if test "x$ac_ct_CC" = x; then
2278 CC=""
2279 else
2280 case $cross_compiling:$ac_tool_warned in
2281 yes:)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2284 ac_tool_warned=yes ;;
2285 esac
2286 CC=$ac_ct_CC
2287 fi
2288 else
2289 CC="$ac_cv_prog_CC"
2290 fi
2291
2292 if test -z "$CC"; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}cc; ac_word=$2
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297 $as_echo_n "checking for $ac_word... " >&6; }
2298 if ${ac_cv_prog_CC+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2306 do
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_CC="${ac_tool_prefix}cc"
2312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2314 fi
2315 done
2316 done
2317 IFS=$as_save_IFS
2318
2319 fi
2320 fi
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2324 $as_echo "$CC" >&6; }
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327 $as_echo "no" >&6; }
2328 fi
2329
2330
2331 fi
2332 fi
2333 if test -z "$CC"; then
2334 # Extract the first word of "cc", so it can be a program name with args.
2335 set dummy cc; ac_word=$2
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337 $as_echo_n "checking for $ac_word... " >&6; }
2338 if ${ac_cv_prog_CC+:} false; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 else
2344 ac_prog_rejected=no
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2353 ac_prog_rejected=yes
2354 continue
2355 fi
2356 ac_cv_prog_CC="cc"
2357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2359 fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 if test $ac_prog_rejected = yes; then
2365 # We found a bogon in the path, so make sure we never use it.
2366 set dummy $ac_cv_prog_CC
2367 shift
2368 if test $# != 0; then
2369 # We chose a different compiler from the bogus one.
2370 # However, it has the same basename, so the bogon will be chosen
2371 # first if we set CC to just the basename; use the full file name.
2372 shift
2373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2374 fi
2375 fi
2376 fi
2377 fi
2378 CC=$ac_cv_prog_CC
2379 if test -n "$CC"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2381 $as_echo "$CC" >&6; }
2382 else
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2384 $as_echo "no" >&6; }
2385 fi
2386
2387
2388 fi
2389 if test -z "$CC"; then
2390 if test -n "$ac_tool_prefix"; then
2391 for ac_prog in cl.exe
2392 do
2393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if ${ac_cv_prog_CC+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2423 $as_echo "$CC" >&6; }
2424 else
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 $as_echo "no" >&6; }
2427 fi
2428
2429
2430 test -n "$CC" && break
2431 done
2432 fi
2433 if test -z "$CC"; then
2434 ac_ct_CC=$CC
2435 for ac_prog in cl.exe
2436 do
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440 $as_echo_n "checking for $ac_word... " >&6; }
2441 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454 ac_cv_prog_ac_ct_CC="$ac_prog"
2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458 done
2459 done
2460 IFS=$as_save_IFS
2461
2462 fi
2463 fi
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2467 $as_echo "$ac_ct_CC" >&6; }
2468 else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470 $as_echo "no" >&6; }
2471 fi
2472
2473
2474 test -n "$ac_ct_CC" && break
2475 done
2476
2477 if test "x$ac_ct_CC" = x; then
2478 CC=""
2479 else
2480 case $cross_compiling:$ac_tool_warned in
2481 yes:)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2484 ac_tool_warned=yes ;;
2485 esac
2486 CC=$ac_ct_CC
2487 fi
2488 fi
2489
2490 fi
2491
2492
2493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 as_fn_error $? "no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details" "$LINENO" 5; }
2497
2498 # Provide some information about the compiler.
2499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2500 set X $ac_compile
2501 ac_compiler=$2
2502 for ac_option in --version -v -V -qversion; do
2503 { { ac_try="$ac_compiler $ac_option >&5"
2504 case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507 esac
2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509 $as_echo "$ac_try_echo"; } >&5
2510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2511 ac_status=$?
2512 if test -s conftest.err; then
2513 sed '10a\
2514 ... rest of stderr output deleted ...
2515 10q' conftest.err >conftest.er1
2516 cat conftest.er1 >&5
2517 fi
2518 rm -f conftest.er1 conftest.err
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; }
2521 done
2522
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525
2526 int
2527 main ()
2528 {
2529
2530 ;
2531 return 0;
2532 }
2533 _ACEOF
2534 ac_clean_files_save=$ac_clean_files
2535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2536 # Try to create an executable without -o first, disregard a.out.
2537 # It will help us diagnose broken compilers, and finding out an intuition
2538 # of exeext.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2540 $as_echo_n "checking whether the C compiler works... " >&6; }
2541 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2542
2543 # The possible output files:
2544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2545
2546 ac_rmfiles=
2547 for ac_file in $ac_files
2548 do
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2551 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2552 esac
2553 done
2554 rm -f $ac_rmfiles
2555
2556 if { { ac_try="$ac_link_default"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563 (eval "$ac_link_default") 2>&5
2564 ac_status=$?
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; }; then :
2567 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2569 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2570 # so that the user can short-circuit this test for compilers unknown to
2571 # Autoconf.
2572 for ac_file in $ac_files ''
2573 do
2574 test -f "$ac_file" || continue
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2577 ;;
2578 [ab].out )
2579 # We found the default executable, but exeext='' is most
2580 # certainly right.
2581 break;;
2582 *.* )
2583 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2584 then :; else
2585 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2586 fi
2587 # We set ac_cv_exeext here because the later test for it is not
2588 # safe: cross compilers may not add the suffix if given an `-o'
2589 # argument, so we may need to know it at that point already.
2590 # Even if this section looks crufty: it has the advantage of
2591 # actually working.
2592 break;;
2593 * )
2594 break;;
2595 esac
2596 done
2597 test "$ac_cv_exeext" = no && ac_cv_exeext=
2598
2599 else
2600 ac_file=''
2601 fi
2602 if test -z "$ac_file"; then :
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 $as_echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 as_fn_error 77 "C compiler cannot create executables
2611 See \`config.log' for more details" "$LINENO" 5; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2614 $as_echo "yes" >&6; }
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2617 $as_echo_n "checking for C compiler default output file name... " >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2619 $as_echo "$ac_file" >&6; }
2620 ac_exeext=$ac_cv_exeext
2621
2622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2625 $as_echo_n "checking for suffix of executables... " >&6; }
2626 if { { ac_try="$ac_link"
2627 case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630 esac
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_link") 2>&5
2634 ac_status=$?
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; }; then :
2637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2639 # work properly (i.e., refer to `conftest.exe'), while it won't with
2640 # `rm'.
2641 for ac_file in conftest.exe conftest conftest.*; do
2642 test -f "$ac_file" || continue
2643 case $ac_file in
2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 break;;
2647 * ) break;;
2648 esac
2649 done
2650 else
2651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details" "$LINENO" 5; }
2655 fi
2656 rm -f conftest conftest$ac_cv_exeext
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2658 $as_echo "$ac_cv_exeext" >&6; }
2659
2660 rm -f conftest.$ac_ext
2661 EXEEXT=$ac_cv_exeext
2662 ac_exeext=$EXEEXT
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 #include <stdio.h>
2666 int
2667 main ()
2668 {
2669 FILE *f = fopen ("conftest.out", "w");
2670 return ferror (f) || fclose (f) != 0;
2671
2672 ;
2673 return 0;
2674 }
2675 _ACEOF
2676 ac_clean_files="$ac_clean_files conftest.out"
2677 # Check that the compiler produces executables we can run. If not, either
2678 # the compiler is broken, or we cross compile.
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2680 $as_echo_n "checking whether we are cross compiling... " >&6; }
2681 if test "$cross_compiling" != yes; then
2682 { { ac_try="$ac_link"
2683 case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686 esac
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688 $as_echo "$ac_try_echo"; } >&5
2689 (eval "$ac_link") 2>&5
2690 ac_status=$?
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; }
2693 if { ac_try='./conftest$ac_cv_exeext'
2694 { { case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697 esac
2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699 $as_echo "$ac_try_echo"; } >&5
2700 (eval "$ac_try") 2>&5
2701 ac_status=$?
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; }; }; then
2704 cross_compiling=no
2705 else
2706 if test "$cross_compiling" = maybe; then
2707 cross_compiling=yes
2708 else
2709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711 as_fn_error $? "cannot run C compiled programs.
2712 If you meant to cross compile, use \`--host'.
2713 See \`config.log' for more details" "$LINENO" 5; }
2714 fi
2715 fi
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2718 $as_echo "$cross_compiling" >&6; }
2719
2720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2721 ac_clean_files=$ac_clean_files_save
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2723 $as_echo_n "checking for suffix of object files... " >&6; }
2724 if ${ac_cv_objext+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h. */
2729
2730 int
2731 main ()
2732 {
2733
2734 ;
2735 return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.o conftest.obj
2739 if { { ac_try="$ac_compile"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745 $as_echo "$ac_try_echo"; } >&5
2746 (eval "$ac_compile") 2>&5
2747 ac_status=$?
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749 test $ac_status = 0; }; then :
2750 for ac_file in conftest.o conftest.obj conftest.*; do
2751 test -f "$ac_file" || continue;
2752 case $ac_file in
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2755 break;;
2756 esac
2757 done
2758 else
2759 $as_echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2761
2762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "cannot compute suffix of object files: cannot compile
2765 See \`config.log' for more details" "$LINENO" 5; }
2766 fi
2767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2770 $as_echo "$ac_cv_objext" >&6; }
2771 OBJEXT=$ac_cv_objext
2772 ac_objext=$OBJEXT
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2775 if ${ac_cv_c_compiler_gnu+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780
2781 int
2782 main ()
2783 {
2784 #ifndef __GNUC__
2785 choke me
2786 #endif
2787
2788 ;
2789 return 0;
2790 }
2791 _ACEOF
2792 if ac_fn_c_try_compile "$LINENO"; then :
2793 ac_compiler_gnu=yes
2794 else
2795 ac_compiler_gnu=no
2796 fi
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2799
2800 fi
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2803 if test $ac_compiler_gnu = yes; then
2804 GCC=yes
2805 else
2806 GCC=
2807 fi
2808 ac_test_CFLAGS=${CFLAGS+set}
2809 ac_save_CFLAGS=$CFLAGS
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2812 if ${ac_cv_prog_cc_g+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 ac_save_c_werror_flag=$ac_c_werror_flag
2816 ac_c_werror_flag=yes
2817 ac_cv_prog_cc_g=no
2818 CFLAGS="-g"
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2821
2822 int
2823 main ()
2824 {
2825
2826 ;
2827 return 0;
2828 }
2829 _ACEOF
2830 if ac_fn_c_try_compile "$LINENO"; then :
2831 ac_cv_prog_cc_g=yes
2832 else
2833 CFLAGS=""
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2836
2837 int
2838 main ()
2839 {
2840
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846
2847 else
2848 ac_c_werror_flag=$ac_save_c_werror_flag
2849 CFLAGS="-g"
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852
2853 int
2854 main ()
2855 {
2856
2857 ;
2858 return 0;
2859 }
2860 _ACEOF
2861 if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_cv_prog_cc_g=yes
2863 fi
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 fi
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 fi
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 ac_c_werror_flag=$ac_save_c_werror_flag
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2872 $as_echo "$ac_cv_prog_cc_g" >&6; }
2873 if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2877 CFLAGS="-g -O2"
2878 else
2879 CFLAGS="-g"
2880 fi
2881 else
2882 if test "$GCC" = yes; then
2883 CFLAGS="-O2"
2884 else
2885 CFLAGS=
2886 fi
2887 fi
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2890 if ${ac_cv_prog_cc_c89+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 ac_cv_prog_cc_c89=no
2894 ac_save_CC=$CC
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2897 #include <stdarg.h>
2898 #include <stdio.h>
2899 struct stat;
2900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2901 struct buf { int x; };
2902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2903 static char *e (p, i)
2904 char **p;
2905 int i;
2906 {
2907 return p[i];
2908 }
2909 static char *f (char * (*g) (char **, int), char **p, ...)
2910 {
2911 char *s;
2912 va_list v;
2913 va_start (v,p);
2914 s = g (p, va_arg (v,int));
2915 va_end (v);
2916 return s;
2917 }
2918
2919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2920 function prototypes and stuff, but not '\xHH' hex character constants.
2921 These don't provoke an error unfortunately, instead are silently treated
2922 as 'x'. The following induces an error, until -std is added to get
2923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2924 array size at least. It's necessary to write '\x00'==0 to get something
2925 that's true only with -std. */
2926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2927
2928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2929 inside strings and character constants. */
2930 #define FOO(x) 'x'
2931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2932
2933 int test (int i, double x);
2934 struct s1 {int (*f) (int a);};
2935 struct s2 {int (*f) (double a);};
2936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937 int argc;
2938 char **argv;
2939 int
2940 main ()
2941 {
2942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2943 ;
2944 return 0;
2945 }
2946 _ACEOF
2947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2949 do
2950 CC="$ac_save_CC $ac_arg"
2951 if ac_fn_c_try_compile "$LINENO"; then :
2952 ac_cv_prog_cc_c89=$ac_arg
2953 fi
2954 rm -f core conftest.err conftest.$ac_objext
2955 test "x$ac_cv_prog_cc_c89" != "xno" && break
2956 done
2957 rm -f conftest.$ac_ext
2958 CC=$ac_save_CC
2959
2960 fi
2961 # AC_CACHE_VAL
2962 case "x$ac_cv_prog_cc_c89" in
2963 x)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2965 $as_echo "none needed" >&6; } ;;
2966 xno)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2968 $as_echo "unsupported" >&6; } ;;
2969 *)
2970 CC="$CC $ac_cv_prog_cc_c89"
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2973 esac
2974 if test "x$ac_cv_prog_cc_c89" != xno; then :
2975
2976 fi
2977
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
2984
2985
2986
2987 # Check whether --enable-werror was given.
2988 if test "${enable_werror+set}" = set; then :
2989 enableval=$enable_werror; case "${enableval}" in
2990 yes | y) ERROR_ON_WARNING="yes" ;;
2991 no | n) ERROR_ON_WARNING="no" ;;
2992 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2993 esac
2994 fi
2995
2996
2997 # Enable -Werror by default when using gcc
2998 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
2999 ERROR_ON_WARNING=yes
3000 fi
3001
3002 WERROR_CFLAGS=""
3003 if test "${ERROR_ON_WARNING}" = yes ; then
3004 WERROR_CFLAGS="-Werror"
3005 fi
3006
3007 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
3008 -Wpointer-sign \
3009 -Wno-unused -Wunused-value -Wunused-function \
3010 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
3011 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
3012 -Wold-style-declaration -Wold-style-definition"
3013
3014 # Enable -Wno-format by default when using gcc on mingw since many
3015 # GCC versions complain about %I64.
3016 case "${host}" in
3017 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
3018 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
3019 esac
3020
3021 # Check whether --enable-build-warnings was given.
3022 if test "${enable_build_warnings+set}" = set; then :
3023 enableval=$enable_build_warnings; case "${enableval}" in
3024 yes) ;;
3025 no) build_warnings="-w";;
3026 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3027 build_warnings="${build_warnings} ${t}";;
3028 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3029 build_warnings="${t} ${build_warnings}";;
3030 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3031 esac
3032 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3033 echo "Setting compiler warning flags = $build_warnings" 6>&1
3034 fi
3035 fi
3036 # Check whether --enable-sim-build-warnings was given.
3037 if test "${enable_sim_build_warnings+set}" = set; then :
3038 enableval=$enable_sim_build_warnings; case "${enableval}" in
3039 yes) ;;
3040 no) build_warnings="-w";;
3041 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3042 build_warnings="${build_warnings} ${t}";;
3043 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3044 build_warnings="${t} ${build_warnings}";;
3045 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3046 esac
3047 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3048 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
3049 fi
3050 fi
3051 WARN_CFLAGS=""
3052 if test "x${build_warnings}" != x -a "x$GCC" = xyes
3053 then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
3055 $as_echo_n "checking compiler warning flags... " >&6; }
3056 # Separate out the -Werror flag as some files just cannot be
3057 # compiled with it enabled.
3058 for w in ${build_warnings}; do
3059 case $w in
3060 -Werr*) WERROR_CFLAGS=-Werror ;;
3061 *) # Check that GCC accepts it
3062 saved_CFLAGS="$CFLAGS"
3063 CFLAGS="$CFLAGS $w"
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 if ac_fn_c_try_compile "$LINENO"; then :
3076 WARN_CFLAGS="${WARN_CFLAGS} $w"
3077 fi
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 CFLAGS="$saved_CFLAGS"
3080 esac
3081 done
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
3083 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
3084 fi
3085
3086
3087 # Put a plausible default for CC_FOR_BUILD in Makefile.
3088 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
3089 AR_FOR_BUILD='$(AR)'
3090 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
3091 CC_FOR_BUILD='$(CC)'
3092 CFLAGS_FOR_BUILD='$(CFLAGS)'
3093 RANLIB_FOR_BUILD='$(RANLIB)'
3094 else
3095 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3096 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
3097 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3098 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
3099 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3100 fi
3101
3102
3103 # Make sure we can run config.sub.
3104 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3105 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3106
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3108 $as_echo_n "checking build system type... " >&6; }
3109 if ${ac_cv_build+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 ac_build_alias=$build_alias
3113 test "x$ac_build_alias" = x &&
3114 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3115 test "x$ac_build_alias" = x &&
3116 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3117 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3118 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3119
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3122 $as_echo "$ac_cv_build" >&6; }
3123 case $ac_cv_build in
3124 *-*-*) ;;
3125 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3126 esac
3127 build=$ac_cv_build
3128 ac_save_IFS=$IFS; IFS='-'
3129 set x $ac_cv_build
3130 shift
3131 build_cpu=$1
3132 build_vendor=$2
3133 shift; shift
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3136 build_os=$*
3137 IFS=$ac_save_IFS
3138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3139
3140
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3142 $as_echo_n "checking host system type... " >&6; }
3143 if ${ac_cv_host+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test "x$host_alias" = x; then
3147 ac_cv_host=$ac_cv_build
3148 else
3149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3150 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3151 fi
3152
3153 fi
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3155 $as_echo "$ac_cv_host" >&6; }
3156 case $ac_cv_host in
3157 *-*-*) ;;
3158 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3159 esac
3160 host=$ac_cv_host
3161 ac_save_IFS=$IFS; IFS='-'
3162 set x $ac_cv_host
3163 shift
3164 host_cpu=$1
3165 host_vendor=$2
3166 shift; shift
3167 # Remember, the first character of IFS is used to create $*,
3168 # except with old shells:
3169 host_os=$*
3170 IFS=$ac_save_IFS
3171 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3172
3173
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3175 $as_echo_n "checking target system type... " >&6; }
3176 if ${ac_cv_target+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test "x$target_alias" = x; then
3180 ac_cv_target=$ac_cv_host
3181 else
3182 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3183 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3184 fi
3185
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3188 $as_echo "$ac_cv_target" >&6; }
3189 case $ac_cv_target in
3190 *-*-*) ;;
3191 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3192 esac
3193 target=$ac_cv_target
3194 ac_save_IFS=$IFS; IFS='-'
3195 set x $ac_cv_target
3196 shift
3197 target_cpu=$1
3198 target_vendor=$2
3199 shift; shift
3200 # Remember, the first character of IFS is used to create $*,
3201 # except with old shells:
3202 target_os=$*
3203 IFS=$ac_save_IFS
3204 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3205
3206
3207 # The aliases save the names the user supplied, while $host etc.
3208 # will get canonicalized.
3209 test -n "$target_alias" &&
3210 test "$program_prefix$program_suffix$program_transform_name" = \
3211 NONENONEs,x,x, &&
3212 program_prefix=${target_alias}-
3213
3214 test "$program_prefix" != NONE &&
3215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3216 # Use a double $ so make ignores it.
3217 test "$program_suffix" != NONE &&
3218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3219 # Double any \ or $.
3220 # By default was `s,x,x', remove it if useless.
3221 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3222 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3223
3224
3225 ac_config_headers="$ac_config_headers config.h:config.in"
3226
3227
3228 # NB: You can assume C11 headers exist.
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3235 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238 CPP=
3239 fi
3240 if test -z "$CPP"; then
3241 if ${ac_cv_prog_CPP+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246 do
3247 ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258 #ifdef __STDC__
3259 # include <limits.h>
3260 #else
3261 # include <assert.h>
3262 #endif
3263 Syntax error
3264 _ACEOF
3265 if ac_fn_c_try_cpp "$LINENO"; then :
3266
3267 else
3268 # Broken: fails on valid input.
3269 continue
3270 fi
3271 rm -f conftest.err conftest.i conftest.$ac_ext
3272
3273 # OK, works on sane cases. Now check whether nonexistent headers
3274 # can be detected and how.
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3277 #include <ac_nonexistent.h>
3278 _ACEOF
3279 if ac_fn_c_try_cpp "$LINENO"; then :
3280 # Broken: success on invalid input.
3281 continue
3282 else
3283 # Passes both tests.
3284 ac_preproc_ok=:
3285 break
3286 fi
3287 rm -f conftest.err conftest.i conftest.$ac_ext
3288
3289 done
3290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3291 rm -f conftest.i conftest.err conftest.$ac_ext
3292 if $ac_preproc_ok; then :
3293 break
3294 fi
3295
3296 done
3297 ac_cv_prog_CPP=$CPP
3298
3299 fi
3300 CPP=$ac_cv_prog_CPP
3301 else
3302 ac_cv_prog_CPP=$CPP
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3305 $as_echo "$CPP" >&6; }
3306 ac_preproc_ok=false
3307 for ac_c_preproc_warn_flag in '' yes
3308 do
3309 # Use a header file that comes with gcc, so configuring glibc
3310 # with a fresh cross-compiler works.
3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3312 # <limits.h> exists even on freestanding compilers.
3313 # On the NeXT, cc -E runs the code through the compiler's parser,
3314 # not just through cpp. "Syntax error" is here to catch this case.
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317 #ifdef __STDC__
3318 # include <limits.h>
3319 #else
3320 # include <assert.h>
3321 #endif
3322 Syntax error
3323 _ACEOF
3324 if ac_fn_c_try_cpp "$LINENO"; then :
3325
3326 else
3327 # Broken: fails on valid input.
3328 continue
3329 fi
3330 rm -f conftest.err conftest.i conftest.$ac_ext
3331
3332 # OK, works on sane cases. Now check whether nonexistent headers
3333 # can be detected and how.
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336 #include <ac_nonexistent.h>
3337 _ACEOF
3338 if ac_fn_c_try_cpp "$LINENO"; then :
3339 # Broken: success on invalid input.
3340 continue
3341 else
3342 # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346 rm -f conftest.err conftest.i conftest.$ac_ext
3347
3348 done
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.i conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then :
3352
3353 else
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3368 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3369 if ${ac_cv_path_GREP+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test -z "$GREP"; then
3373 ac_path_GREP_found=false
3374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3377 do
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_prog in grep ggrep; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3383 as_fn_executable_p "$ac_path_GREP" || continue
3384 # Check for GNU ac_path_GREP and select it if it is found.
3385 # Check for GNU $ac_path_GREP
3386 case `"$ac_path_GREP" --version 2>&1` in
3387 *GNU*)
3388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3389 *)
3390 ac_count=0
3391 $as_echo_n 0123456789 >"conftest.in"
3392 while :
3393 do
3394 cat "conftest.in" "conftest.in" >"conftest.tmp"
3395 mv "conftest.tmp" "conftest.in"
3396 cp "conftest.in" "conftest.nl"
3397 $as_echo 'GREP' >> "conftest.nl"
3398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400 as_fn_arith $ac_count + 1 && ac_count=$as_val
3401 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3402 # Best one so far, save it but keep looking for a better one
3403 ac_cv_path_GREP="$ac_path_GREP"
3404 ac_path_GREP_max=$ac_count
3405 fi
3406 # 10*(2^10) chars as input seems more than enough
3407 test $ac_count -gt 10 && break
3408 done
3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410 esac
3411
3412 $ac_path_GREP_found && break 3
3413 done
3414 done
3415 done
3416 IFS=$as_save_IFS
3417 if test -z "$ac_cv_path_GREP"; then
3418 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3419 fi
3420 else
3421 ac_cv_path_GREP=$GREP
3422 fi
3423
3424 fi
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3426 $as_echo "$ac_cv_path_GREP" >&6; }
3427 GREP="$ac_cv_path_GREP"
3428
3429
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3431 $as_echo_n "checking for egrep... " >&6; }
3432 if ${ac_cv_path_EGREP+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3436 then ac_cv_path_EGREP="$GREP -E"
3437 else
3438 if test -z "$EGREP"; then
3439 ac_path_EGREP_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in egrep; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3449 as_fn_executable_p "$ac_path_EGREP" || continue
3450 # Check for GNU ac_path_EGREP and select it if it is found.
3451 # Check for GNU $ac_path_EGREP
3452 case `"$ac_path_EGREP" --version 2>&1` in
3453 *GNU*)
3454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3455 *)
3456 ac_count=0
3457 $as_echo_n 0123456789 >"conftest.in"
3458 while :
3459 do
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 $as_echo 'EGREP' >> "conftest.nl"
3464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 as_fn_arith $ac_count + 1 && ac_count=$as_val
3467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_EGREP="$ac_path_EGREP"
3470 ac_path_EGREP_max=$ac_count
3471 fi
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3474 done
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476 esac
3477
3478 $ac_path_EGREP_found && break 3
3479 done
3480 done
3481 done
3482 IFS=$as_save_IFS
3483 if test -z "$ac_cv_path_EGREP"; then
3484 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3485 fi
3486 else
3487 ac_cv_path_EGREP=$EGREP
3488 fi
3489
3490 fi
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3493 $as_echo "$ac_cv_path_EGREP" >&6; }
3494 EGREP="$ac_cv_path_EGREP"
3495
3496
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3498 $as_echo_n "checking for ANSI C header files... " >&6; }
3499 if ${ac_cv_header_stdc+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504 #include <stdlib.h>
3505 #include <stdarg.h>
3506 #include <string.h>
3507 #include <float.h>
3508
3509 int
3510 main ()
3511 {
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_cv_header_stdc=yes
3519 else
3520 ac_cv_header_stdc=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523
3524 if test $ac_cv_header_stdc = yes; then
3525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 #include <string.h>
3529
3530 _ACEOF
3531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532 $EGREP "memchr" >/dev/null 2>&1; then :
3533
3534 else
3535 ac_cv_header_stdc=no
3536 fi
3537 rm -f conftest*
3538
3539 fi
3540
3541 if test $ac_cv_header_stdc = yes; then
3542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdlib.h>
3546
3547 _ACEOF
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "free" >/dev/null 2>&1; then :
3550
3551 else
3552 ac_cv_header_stdc=no
3553 fi
3554 rm -f conftest*
3555
3556 fi
3557
3558 if test $ac_cv_header_stdc = yes; then
3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3560 if test "$cross_compiling" = yes; then :
3561 :
3562 else
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <ctype.h>
3566 #include <stdlib.h>
3567 #if ((' ' & 0x0FF) == 0x020)
3568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3570 #else
3571 # define ISLOWER(c) \
3572 (('a' <= (c) && (c) <= 'i') \
3573 || ('j' <= (c) && (c) <= 'r') \
3574 || ('s' <= (c) && (c) <= 'z'))
3575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3576 #endif
3577
3578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3579 int
3580 main ()
3581 {
3582 int i;
3583 for (i = 0; i < 256; i++)
3584 if (XOR (islower (i), ISLOWER (i))
3585 || toupper (i) != TOUPPER (i))
3586 return 2;
3587 return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_run "$LINENO"; then :
3591
3592 else
3593 ac_cv_header_stdc=no
3594 fi
3595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3596 conftest.$ac_objext conftest.beam conftest.$ac_ext
3597 fi
3598
3599 fi
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3602 $as_echo "$ac_cv_header_stdc" >&6; }
3603 if test $ac_cv_header_stdc = yes; then
3604
3605 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3606
3607 fi
3608
3609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3611 inttypes.h stdint.h unistd.h
3612 do :
3613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3615 "
3616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3617 cat >>confdefs.h <<_ACEOF
3618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3619 _ACEOF
3620
3621 fi
3622
3623 done
3624
3625
3626 for ac_header in sys/stat.h sys/types.h unistd.h
3627 do :
3628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3631 cat >>confdefs.h <<_ACEOF
3632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3633 _ACEOF
3634
3635 fi
3636
3637 done
3638
3639 ac_header_dirent=no
3640 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3641 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3643 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3644 if eval \${$as_ac_Header+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #include <sys/types.h>
3650 #include <$ac_hdr>
3651
3652 int
3653 main ()
3654 {
3655 if ((DIR *) 0)
3656 return 0;
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 eval "$as_ac_Header=yes"
3663 else
3664 eval "$as_ac_Header=no"
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 eval ac_res=\$$as_ac_Header
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3670 $as_echo "$ac_res" >&6; }
3671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3672 cat >>confdefs.h <<_ACEOF
3673 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3674 _ACEOF
3675
3676 ac_header_dirent=$ac_hdr; break
3677 fi
3678
3679 done
3680 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3681 if test $ac_header_dirent = dirent.h; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3683 $as_echo_n "checking for library containing opendir... " >&6; }
3684 if ${ac_cv_search_opendir+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 ac_func_search_save_LIBS=$LIBS
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 /* Override any GCC internal prototype to avoid an error.
3692 Use char because int might match the return type of a GCC
3693 builtin and then its argument prototype would still apply. */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 char opendir ();
3698 int
3699 main ()
3700 {
3701 return opendir ();
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 for ac_lib in '' dir; do
3707 if test -z "$ac_lib"; then
3708 ac_res="none required"
3709 else
3710 ac_res=-l$ac_lib
3711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3712 fi
3713 if ac_fn_c_try_link "$LINENO"; then :
3714 ac_cv_search_opendir=$ac_res
3715 fi
3716 rm -f core conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext
3718 if ${ac_cv_search_opendir+:} false; then :
3719 break
3720 fi
3721 done
3722 if ${ac_cv_search_opendir+:} false; then :
3723
3724 else
3725 ac_cv_search_opendir=no
3726 fi
3727 rm conftest.$ac_ext
3728 LIBS=$ac_func_search_save_LIBS
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3731 $as_echo "$ac_cv_search_opendir" >&6; }
3732 ac_res=$ac_cv_search_opendir
3733 if test "$ac_res" != no; then :
3734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3735
3736 fi
3737
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3740 $as_echo_n "checking for library containing opendir... " >&6; }
3741 if ${ac_cv_search_opendir+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 ac_func_search_save_LIBS=$LIBS
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 /* Override any GCC internal prototype to avoid an error.
3749 Use char because int might match the return type of a GCC
3750 builtin and then its argument prototype would still apply. */
3751 #ifdef __cplusplus
3752 extern "C"
3753 #endif
3754 char opendir ();
3755 int
3756 main ()
3757 {
3758 return opendir ();
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 for ac_lib in '' x; do
3764 if test -z "$ac_lib"; then
3765 ac_res="none required"
3766 else
3767 ac_res=-l$ac_lib
3768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3769 fi
3770 if ac_fn_c_try_link "$LINENO"; then :
3771 ac_cv_search_opendir=$ac_res
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext \
3774 conftest$ac_exeext
3775 if ${ac_cv_search_opendir+:} false; then :
3776 break
3777 fi
3778 done
3779 if ${ac_cv_search_opendir+:} false; then :
3780
3781 else
3782 ac_cv_search_opendir=no
3783 fi
3784 rm conftest.$ac_ext
3785 LIBS=$ac_func_search_save_LIBS
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3788 $as_echo "$ac_cv_search_opendir" >&6; }
3789 ac_res=$ac_cv_search_opendir
3790 if test "$ac_res" != no; then :
3791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3792
3793 fi
3794
3795 fi
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 $as_echo_n "checking for $ac_word... " >&6; }
3811 if ${ac_cv_prog_RANLIB+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 fi
3833 fi
3834 RANLIB=$ac_cv_prog_RANLIB
3835 if test -n "$RANLIB"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3837 $as_echo "$RANLIB" >&6; }
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3841 fi
3842
3843
3844 fi
3845 if test -z "$ac_cv_prog_RANLIB"; then
3846 ac_ct_RANLIB=$RANLIB
3847 # Extract the first word of "ranlib", so it can be a program name with args.
3848 set dummy ranlib; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$ac_ct_RANLIB"; then
3855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_RANLIB="ranlib"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875 if test -n "$ac_ct_RANLIB"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3877 $as_echo "$ac_ct_RANLIB" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883 if test "x$ac_ct_RANLIB" = x; then
3884 RANLIB=":"
3885 else
3886 case $cross_compiling:$ac_tool_warned in
3887 yes:)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned=yes ;;
3891 esac
3892 RANLIB=$ac_ct_RANLIB
3893 fi
3894 else
3895 RANLIB="$ac_cv_prog_RANLIB"
3896 fi
3897
3898
3899 ac_config_files="$ac_config_files Makefile"
3900
3901 ac_config_commands="$ac_config_commands default"
3902
3903 cat >confcache <<\_ACEOF
3904 # This file is a shell script that caches the results of configure
3905 # tests run on this system so they can be shared between configure
3906 # scripts and configure runs, see configure's option --config-cache.
3907 # It is not useful on other systems. If it contains results you don't
3908 # want to keep, you may remove or edit it.
3909 #
3910 # config.status only pays attention to the cache file if you give it
3911 # the --recheck option to rerun configure.
3912 #
3913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3915 # following values.
3916
3917 _ACEOF
3918
3919 # The following way of writing the cache mishandles newlines in values,
3920 # but we know of no workaround that is simple, portable, and efficient.
3921 # So, we kill variables containing newlines.
3922 # Ultrix sh set writes to stderr and can't be redirected directly,
3923 # and sets the high bit in the cache file unless we assign to the vars.
3924 (
3925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3926 eval ac_val=\$$ac_var
3927 case $ac_val in #(
3928 *${as_nl}*)
3929 case $ac_var in #(
3930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3932 esac
3933 case $ac_var in #(
3934 _ | IFS | as_nl) ;; #(
3935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3936 *) { eval $ac_var=; unset $ac_var;} ;;
3937 esac ;;
3938 esac
3939 done
3940
3941 (set) 2>&1 |
3942 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3943 *${as_nl}ac_space=\ *)
3944 # `set' does not quote correctly, so add quotes: double-quote
3945 # substitution turns \\\\ into \\, and sed turns \\ into \.
3946 sed -n \
3947 "s/'/'\\\\''/g;
3948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3949 ;; #(
3950 *)
3951 # `set' quotes correctly as required by POSIX, so do not add quotes.
3952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3953 ;;
3954 esac |
3955 sort
3956 ) |
3957 sed '
3958 /^ac_cv_env_/b end
3959 t clear
3960 :clear
3961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3962 t end
3963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3964 :end' >>confcache
3965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3966 if test -w "$cache_file"; then
3967 if test "x$cache_file" != "x/dev/null"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3969 $as_echo "$as_me: updating cache $cache_file" >&6;}
3970 if test ! -f "$cache_file" || test -h "$cache_file"; then
3971 cat confcache >"$cache_file"
3972 else
3973 case $cache_file in #(
3974 */* | ?:*)
3975 mv -f confcache "$cache_file"$$ &&
3976 mv -f "$cache_file"$$ "$cache_file" ;; #(
3977 *)
3978 mv -f confcache "$cache_file" ;;
3979 esac
3980 fi
3981 fi
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3985 fi
3986 fi
3987 rm -f confcache
3988
3989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3990 # Let make expand exec_prefix.
3991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3992
3993 DEFS=-DHAVE_CONFIG_H
3994
3995 ac_libobjs=
3996 ac_ltlibobjs=
3997 U=
3998 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3999 # 1. Remove the extension, and $U if already installed.
4000 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4001 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4003 # will be set to the directory where LIBOBJS objects are built.
4004 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4005 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4006 done
4007 LIBOBJS=$ac_libobjs
4008
4009 LTLIBOBJS=$ac_ltlibobjs
4010
4011
4012
4013 : "${CONFIG_STATUS=./config.status}"
4014 ac_write_fail=0
4015 ac_clean_files_save=$ac_clean_files
4016 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4018 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4019 as_write_fail=0
4020 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4021 #! $SHELL
4022 # Generated by $as_me.
4023 # Run this file to recreate the current configuration.
4024 # Compiler output produced by configure, useful for debugging
4025 # configure, is in config.log if it exists.
4026
4027 debug=false
4028 ac_cs_recheck=false
4029 ac_cs_silent=false
4030
4031 SHELL=\${CONFIG_SHELL-$SHELL}
4032 export SHELL
4033 _ASEOF
4034 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4035 ## -------------------- ##
4036 ## M4sh Initialization. ##
4037 ## -------------------- ##
4038
4039 # Be more Bourne compatible
4040 DUALCASE=1; export DUALCASE # for MKS sh
4041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4042 emulate sh
4043 NULLCMD=:
4044 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4045 # is contrary to our usage. Disable this feature.
4046 alias -g '${1+"$@"}'='"$@"'
4047 setopt NO_GLOB_SUBST
4048 else
4049 case `(set -o) 2>/dev/null` in #(
4050 *posix*) :
4051 set -o posix ;; #(
4052 *) :
4053 ;;
4054 esac
4055 fi
4056
4057
4058 as_nl='
4059 '
4060 export as_nl
4061 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4062 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4065 # Prefer a ksh shell builtin over an external printf program on Solaris,
4066 # but without wasting forks for bash or zsh.
4067 if test -z "$BASH_VERSION$ZSH_VERSION" \
4068 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4069 as_echo='print -r --'
4070 as_echo_n='print -rn --'
4071 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4072 as_echo='printf %s\n'
4073 as_echo_n='printf %s'
4074 else
4075 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4076 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4077 as_echo_n='/usr/ucb/echo -n'
4078 else
4079 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4080 as_echo_n_body='eval
4081 arg=$1;
4082 case $arg in #(
4083 *"$as_nl"*)
4084 expr "X$arg" : "X\\(.*\\)$as_nl";
4085 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4086 esac;
4087 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4088 '
4089 export as_echo_n_body
4090 as_echo_n='sh -c $as_echo_n_body as_echo'
4091 fi
4092 export as_echo_body
4093 as_echo='sh -c $as_echo_body as_echo'
4094 fi
4095
4096 # The user is always right.
4097 if test "${PATH_SEPARATOR+set}" != set; then
4098 PATH_SEPARATOR=:
4099 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4100 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4101 PATH_SEPARATOR=';'
4102 }
4103 fi
4104
4105
4106 # IFS
4107 # We need space, tab and new line, in precisely that order. Quoting is
4108 # there to prevent editors from complaining about space-tab.
4109 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4110 # splitting by setting IFS to empty value.)
4111 IFS=" "" $as_nl"
4112
4113 # Find who we are. Look in the path if we contain no directory separator.
4114 as_myself=
4115 case $0 in #((
4116 *[\\/]* ) as_myself=$0 ;;
4117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4119 do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4123 done
4124 IFS=$as_save_IFS
4125
4126 ;;
4127 esac
4128 # We did not find ourselves, most probably we were run as `sh COMMAND'
4129 # in which case we are not to be found in the path.
4130 if test "x$as_myself" = x; then
4131 as_myself=$0
4132 fi
4133 if test ! -f "$as_myself"; then
4134 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4135 exit 1
4136 fi
4137
4138 # Unset variables that we do not need and which cause bugs (e.g. in
4139 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4140 # suppresses any "Segmentation fault" message there. '((' could
4141 # trigger a bug in pdksh 5.2.14.
4142 for as_var in BASH_ENV ENV MAIL MAILPATH
4143 do eval test x\${$as_var+set} = xset \
4144 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4145 done
4146 PS1='$ '
4147 PS2='> '
4148 PS4='+ '
4149
4150 # NLS nuisances.
4151 LC_ALL=C
4152 export LC_ALL
4153 LANGUAGE=C
4154 export LANGUAGE
4155
4156 # CDPATH.
4157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4158
4159
4160 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4161 # ----------------------------------------
4162 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4163 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4164 # script with STATUS, using 1 if that was 0.
4165 as_fn_error ()
4166 {
4167 as_status=$1; test $as_status -eq 0 && as_status=1
4168 if test "$4"; then
4169 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4170 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4171 fi
4172 $as_echo "$as_me: error: $2" >&2
4173 as_fn_exit $as_status
4174 } # as_fn_error
4175
4176
4177 # as_fn_set_status STATUS
4178 # -----------------------
4179 # Set $? to STATUS, without forking.
4180 as_fn_set_status ()
4181 {
4182 return $1
4183 } # as_fn_set_status
4184
4185 # as_fn_exit STATUS
4186 # -----------------
4187 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4188 as_fn_exit ()
4189 {
4190 set +e
4191 as_fn_set_status $1
4192 exit $1
4193 } # as_fn_exit
4194
4195 # as_fn_unset VAR
4196 # ---------------
4197 # Portably unset VAR.
4198 as_fn_unset ()
4199 {
4200 { eval $1=; unset $1;}
4201 }
4202 as_unset=as_fn_unset
4203 # as_fn_append VAR VALUE
4204 # ----------------------
4205 # Append the text in VALUE to the end of the definition contained in VAR. Take
4206 # advantage of any shell optimizations that allow amortized linear growth over
4207 # repeated appends, instead of the typical quadratic growth present in naive
4208 # implementations.
4209 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4210 eval 'as_fn_append ()
4211 {
4212 eval $1+=\$2
4213 }'
4214 else
4215 as_fn_append ()
4216 {
4217 eval $1=\$$1\$2
4218 }
4219 fi # as_fn_append
4220
4221 # as_fn_arith ARG...
4222 # ------------------
4223 # Perform arithmetic evaluation on the ARGs, and store the result in the
4224 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4225 # must be portable across $(()) and expr.
4226 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4227 eval 'as_fn_arith ()
4228 {
4229 as_val=$(( $* ))
4230 }'
4231 else
4232 as_fn_arith ()
4233 {
4234 as_val=`expr "$@" || test $? -eq 1`
4235 }
4236 fi # as_fn_arith
4237
4238
4239 if expr a : '\(a\)' >/dev/null 2>&1 &&
4240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4241 as_expr=expr
4242 else
4243 as_expr=false
4244 fi
4245
4246 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4247 as_basename=basename
4248 else
4249 as_basename=false
4250 fi
4251
4252 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4253 as_dirname=dirname
4254 else
4255 as_dirname=false
4256 fi
4257
4258 as_me=`$as_basename -- "$0" ||
4259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4260 X"$0" : 'X\(//\)$' \| \
4261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4262 $as_echo X/"$0" |
4263 sed '/^.*\/\([^/][^/]*\)\/*$/{
4264 s//\1/
4265 q
4266 }
4267 /^X\/\(\/\/\)$/{
4268 s//\1/
4269 q
4270 }
4271 /^X\/\(\/\).*/{
4272 s//\1/
4273 q
4274 }
4275 s/.*/./; q'`
4276
4277 # Avoid depending upon Character Ranges.
4278 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4279 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4280 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4281 as_cr_digits='0123456789'
4282 as_cr_alnum=$as_cr_Letters$as_cr_digits
4283
4284 ECHO_C= ECHO_N= ECHO_T=
4285 case `echo -n x` in #(((((
4286 -n*)
4287 case `echo 'xy\c'` in
4288 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4289 xy) ECHO_C='\c';;
4290 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4291 ECHO_T=' ';;
4292 esac;;
4293 *)
4294 ECHO_N='-n';;
4295 esac
4296
4297 rm -f conf$$ conf$$.exe conf$$.file
4298 if test -d conf$$.dir; then
4299 rm -f conf$$.dir/conf$$.file
4300 else
4301 rm -f conf$$.dir
4302 mkdir conf$$.dir 2>/dev/null
4303 fi
4304 if (echo >conf$$.file) 2>/dev/null; then
4305 if ln -s conf$$.file conf$$ 2>/dev/null; then
4306 as_ln_s='ln -s'
4307 # ... but there are two gotchas:
4308 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4309 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4310 # In both cases, we have to default to `cp -pR'.
4311 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4312 as_ln_s='cp -pR'
4313 elif ln conf$$.file conf$$ 2>/dev/null; then
4314 as_ln_s=ln
4315 else
4316 as_ln_s='cp -pR'
4317 fi
4318 else
4319 as_ln_s='cp -pR'
4320 fi
4321 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4322 rmdir conf$$.dir 2>/dev/null
4323
4324
4325 # as_fn_mkdir_p
4326 # -------------
4327 # Create "$as_dir" as a directory, including parents if necessary.
4328 as_fn_mkdir_p ()
4329 {
4330
4331 case $as_dir in #(
4332 -*) as_dir=./$as_dir;;
4333 esac
4334 test -d "$as_dir" || eval $as_mkdir_p || {
4335 as_dirs=
4336 while :; do
4337 case $as_dir in #(
4338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4339 *) as_qdir=$as_dir;;
4340 esac
4341 as_dirs="'$as_qdir' $as_dirs"
4342 as_dir=`$as_dirname -- "$as_dir" ||
4343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4344 X"$as_dir" : 'X\(//\)[^/]' \| \
4345 X"$as_dir" : 'X\(//\)$' \| \
4346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4347 $as_echo X"$as_dir" |
4348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4349 s//\1/
4350 q
4351 }
4352 /^X\(\/\/\)[^/].*/{
4353 s//\1/
4354 q
4355 }
4356 /^X\(\/\/\)$/{
4357 s//\1/
4358 q
4359 }
4360 /^X\(\/\).*/{
4361 s//\1/
4362 q
4363 }
4364 s/.*/./; q'`
4365 test -d "$as_dir" && break
4366 done
4367 test -z "$as_dirs" || eval "mkdir $as_dirs"
4368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4369
4370
4371 } # as_fn_mkdir_p
4372 if mkdir -p . 2>/dev/null; then
4373 as_mkdir_p='mkdir -p "$as_dir"'
4374 else
4375 test -d ./-p && rmdir ./-p
4376 as_mkdir_p=false
4377 fi
4378
4379
4380 # as_fn_executable_p FILE
4381 # -----------------------
4382 # Test if FILE is an executable regular file.
4383 as_fn_executable_p ()
4384 {
4385 test -f "$1" && test -x "$1"
4386 } # as_fn_executable_p
4387 as_test_x='test -x'
4388 as_executable_p=as_fn_executable_p
4389
4390 # Sed expression to map a string onto a valid CPP name.
4391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4392
4393 # Sed expression to map a string onto a valid variable name.
4394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4395
4396
4397 exec 6>&1
4398 ## ----------------------------------- ##
4399 ## Main body of $CONFIG_STATUS script. ##
4400 ## ----------------------------------- ##
4401 _ASEOF
4402 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4403
4404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4405 # Save the log message, to keep $0 and so on meaningful, and to
4406 # report actual input values of CONFIG_FILES etc. instead of their
4407 # values after options handling.
4408 ac_log="
4409 This file was extended by $as_me, which was
4410 generated by GNU Autoconf 2.69. Invocation command line was
4411
4412 CONFIG_FILES = $CONFIG_FILES
4413 CONFIG_HEADERS = $CONFIG_HEADERS
4414 CONFIG_LINKS = $CONFIG_LINKS
4415 CONFIG_COMMANDS = $CONFIG_COMMANDS
4416 $ $0 $@
4417
4418 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4419 "
4420
4421 _ACEOF
4422
4423 case $ac_config_files in *"
4424 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4425 esac
4426
4427 case $ac_config_headers in *"
4428 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4429 esac
4430
4431
4432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4433 # Files that config.status was made for.
4434 config_files="$ac_config_files"
4435 config_headers="$ac_config_headers"
4436 config_commands="$ac_config_commands"
4437
4438 _ACEOF
4439
4440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4441 ac_cs_usage="\
4442 \`$as_me' instantiates files and other configuration actions
4443 from templates according to the current configuration. Unless the files
4444 and actions are specified as TAGs, all are instantiated by default.
4445
4446 Usage: $0 [OPTION]... [TAG]...
4447
4448 -h, --help print this help, then exit
4449 -V, --version print version number and configuration settings, then exit
4450 --config print configuration, then exit
4451 -q, --quiet, --silent
4452 do not print progress messages
4453 -d, --debug don't remove temporary files
4454 --recheck update $as_me by reconfiguring in the same conditions
4455 --file=FILE[:TEMPLATE]
4456 instantiate the configuration file FILE
4457 --header=FILE[:TEMPLATE]
4458 instantiate the configuration header FILE
4459
4460 Configuration files:
4461 $config_files
4462
4463 Configuration headers:
4464 $config_headers
4465
4466 Configuration commands:
4467 $config_commands
4468
4469 Report bugs to the package provider."
4470
4471 _ACEOF
4472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4473 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4474 ac_cs_version="\\
4475 config.status
4476 configured by $0, generated by GNU Autoconf 2.69,
4477 with options \\"\$ac_cs_config\\"
4478
4479 Copyright (C) 2012 Free Software Foundation, Inc.
4480 This config.status script is free software; the Free Software Foundation
4481 gives unlimited permission to copy, distribute and modify it."
4482
4483 ac_pwd='$ac_pwd'
4484 srcdir='$srcdir'
4485 INSTALL='$INSTALL'
4486 test -n "\$AWK" || AWK=awk
4487 _ACEOF
4488
4489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4490 # The default lists apply if the user does not specify any file.
4491 ac_need_defaults=:
4492 while test $# != 0
4493 do
4494 case $1 in
4495 --*=?*)
4496 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4497 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4498 ac_shift=:
4499 ;;
4500 --*=)
4501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4502 ac_optarg=
4503 ac_shift=:
4504 ;;
4505 *)
4506 ac_option=$1
4507 ac_optarg=$2
4508 ac_shift=shift
4509 ;;
4510 esac
4511
4512 case $ac_option in
4513 # Handling of the options.
4514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4515 ac_cs_recheck=: ;;
4516 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4517 $as_echo "$ac_cs_version"; exit ;;
4518 --config | --confi | --conf | --con | --co | --c )
4519 $as_echo "$ac_cs_config"; exit ;;
4520 --debug | --debu | --deb | --de | --d | -d )
4521 debug=: ;;
4522 --file | --fil | --fi | --f )
4523 $ac_shift
4524 case $ac_optarg in
4525 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4526 '') as_fn_error $? "missing file argument" ;;
4527 esac
4528 as_fn_append CONFIG_FILES " '$ac_optarg'"
4529 ac_need_defaults=false;;
4530 --header | --heade | --head | --hea )
4531 $ac_shift
4532 case $ac_optarg in
4533 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4534 esac
4535 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4536 ac_need_defaults=false;;
4537 --he | --h)
4538 # Conflict between --help and --header
4539 as_fn_error $? "ambiguous option: \`$1'
4540 Try \`$0 --help' for more information.";;
4541 --help | --hel | -h )
4542 $as_echo "$ac_cs_usage"; exit ;;
4543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4545 ac_cs_silent=: ;;
4546
4547 # This is an error.
4548 -*) as_fn_error $? "unrecognized option: \`$1'
4549 Try \`$0 --help' for more information." ;;
4550
4551 *) as_fn_append ac_config_targets " $1"
4552 ac_need_defaults=false ;;
4553
4554 esac
4555 shift
4556 done
4557
4558 ac_configure_extra_args=
4559
4560 if $ac_cs_silent; then
4561 exec 6>/dev/null
4562 ac_configure_extra_args="$ac_configure_extra_args --silent"
4563 fi
4564
4565 _ACEOF
4566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4567 if \$ac_cs_recheck; then
4568 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4569 shift
4570 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4571 CONFIG_SHELL='$SHELL'
4572 export CONFIG_SHELL
4573 exec "\$@"
4574 fi
4575
4576 _ACEOF
4577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4578 exec 5>>config.log
4579 {
4580 echo
4581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4582 ## Running $as_me. ##
4583 _ASBOX
4584 $as_echo "$ac_log"
4585 } >&5
4586
4587 _ACEOF
4588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4589 _ACEOF
4590
4591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4592
4593 # Handling of arguments.
4594 for ac_config_target in $ac_config_targets
4595 do
4596 case $ac_config_target in
4597 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4599 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4600
4601 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4602 esac
4603 done
4604
4605
4606 # If the user did not use the arguments to specify the items to instantiate,
4607 # then the envvar interface is used. Set only those that are not.
4608 # We use the long form for the default assignment because of an extremely
4609 # bizarre bug on SunOS 4.1.3.
4610 if $ac_need_defaults; then
4611 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4612 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4613 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4614 fi
4615
4616 # Have a temporary directory for convenience. Make it in the build tree
4617 # simply because there is no reason against having it here, and in addition,
4618 # creating and moving files from /tmp can sometimes cause problems.
4619 # Hook for its removal unless debugging.
4620 # Note that there is a small window in which the directory will not be cleaned:
4621 # after its creation but before its name has been assigned to `$tmp'.
4622 $debug ||
4623 {
4624 tmp= ac_tmp=
4625 trap 'exit_status=$?
4626 : "${ac_tmp:=$tmp}"
4627 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4628 ' 0
4629 trap 'as_fn_exit 1' 1 2 13 15
4630 }
4631 # Create a (secure) tmp directory for tmp files.
4632
4633 {
4634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4635 test -d "$tmp"
4636 } ||
4637 {
4638 tmp=./conf$$-$RANDOM
4639 (umask 077 && mkdir "$tmp")
4640 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4641 ac_tmp=$tmp
4642
4643 # Set up the scripts for CONFIG_FILES section.
4644 # No need to generate them if there are no CONFIG_FILES.
4645 # This happens for instance with `./config.status config.h'.
4646 if test -n "$CONFIG_FILES"; then
4647
4648
4649 ac_cr=`echo X | tr X '\015'`
4650 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4651 # But we know of no other shell where ac_cr would be empty at this
4652 # point, so we can use a bashism as a fallback.
4653 if test "x$ac_cr" = x; then
4654 eval ac_cr=\$\'\\r\'
4655 fi
4656 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4657 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4658 ac_cs_awk_cr='\\r'
4659 else
4660 ac_cs_awk_cr=$ac_cr
4661 fi
4662
4663 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4664 _ACEOF
4665
4666
4667 {
4668 echo "cat >conf$$subs.awk <<_ACEOF" &&
4669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4670 echo "_ACEOF"
4671 } >conf$$subs.sh ||
4672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4674 ac_delim='%!_!# '
4675 for ac_last_try in false false false false false :; do
4676 . ./conf$$subs.sh ||
4677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4678
4679 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4680 if test $ac_delim_n = $ac_delim_num; then
4681 break
4682 elif $ac_last_try; then
4683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4684 else
4685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4686 fi
4687 done
4688 rm -f conf$$subs.sh
4689
4690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4691 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4692 _ACEOF
4693 sed -n '
4694 h
4695 s/^/S["/; s/!.*/"]=/
4696 p
4697 g
4698 s/^[^!]*!//
4699 :repl
4700 t repl
4701 s/'"$ac_delim"'$//
4702 t delim
4703 :nl
4704 h
4705 s/\(.\{148\}\)..*/\1/
4706 t more1
4707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4708 p
4709 n
4710 b repl
4711 :more1
4712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4713 p
4714 g
4715 s/.\{148\}//
4716 t nl
4717 :delim
4718 h
4719 s/\(.\{148\}\)..*/\1/
4720 t more2
4721 s/["\\]/\\&/g; s/^/"/; s/$/"/
4722 p
4723 b
4724 :more2
4725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4726 p
4727 g
4728 s/.\{148\}//
4729 t delim
4730 ' <conf$$subs.awk | sed '
4731 /^[^""]/{
4732 N
4733 s/\n//
4734 }
4735 ' >>$CONFIG_STATUS || ac_write_fail=1
4736 rm -f conf$$subs.awk
4737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4738 _ACAWK
4739 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4740 for (key in S) S_is_set[key] = 1
4741 FS = "\a"
4742
4743 }
4744 {
4745 line = $ 0
4746 nfields = split(line, field, "@")
4747 substed = 0
4748 len = length(field[1])
4749 for (i = 2; i < nfields; i++) {
4750 key = field[i]
4751 keylen = length(key)
4752 if (S_is_set[key]) {
4753 value = S[key]
4754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4755 len += length(value) + length(field[++i])
4756 substed = 1
4757 } else
4758 len += 1 + keylen
4759 }
4760
4761 print line
4762 }
4763
4764 _ACAWK
4765 _ACEOF
4766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4768 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4769 else
4770 cat
4771 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4772 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4773 _ACEOF
4774
4775 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4776 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4777 # trailing colons and then remove the whole line if VPATH becomes empty
4778 # (actually we leave an empty line to preserve line numbers).
4779 if test "x$srcdir" = x.; then
4780 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4781 h
4782 s///
4783 s/^/:/
4784 s/[ ]*$/:/
4785 s/:\$(srcdir):/:/g
4786 s/:\${srcdir}:/:/g
4787 s/:@srcdir@:/:/g
4788 s/^:*//
4789 s/:*$//
4790 x
4791 s/\(=[ ]*\).*/\1/
4792 G
4793 s/\n//
4794 s/^[^=]*=[ ]*$//
4795 }'
4796 fi
4797
4798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4799 fi # test -n "$CONFIG_FILES"
4800
4801 # Set up the scripts for CONFIG_HEADERS section.
4802 # No need to generate them if there are no CONFIG_HEADERS.
4803 # This happens for instance with `./config.status Makefile'.
4804 if test -n "$CONFIG_HEADERS"; then
4805 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4806 BEGIN {
4807 _ACEOF
4808
4809 # Transform confdefs.h into an awk script `defines.awk', embedded as
4810 # here-document in config.status, that substitutes the proper values into
4811 # config.h.in to produce config.h.
4812
4813 # Create a delimiter string that does not exist in confdefs.h, to ease
4814 # handling of long lines.
4815 ac_delim='%!_!# '
4816 for ac_last_try in false false :; do
4817 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4818 if test -z "$ac_tt"; then
4819 break
4820 elif $ac_last_try; then
4821 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4822 else
4823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4824 fi
4825 done
4826
4827 # For the awk script, D is an array of macro values keyed by name,
4828 # likewise P contains macro parameters if any. Preserve backslash
4829 # newline sequences.
4830
4831 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4832 sed -n '
4833 s/.\{148\}/&'"$ac_delim"'/g
4834 t rset
4835 :rset
4836 s/^[ ]*#[ ]*define[ ][ ]*/ /
4837 t def
4838 d
4839 :def
4840 s/\\$//
4841 t bsnl
4842 s/["\\]/\\&/g
4843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4844 D["\1"]=" \3"/p
4845 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4846 d
4847 :bsnl
4848 s/["\\]/\\&/g
4849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4850 D["\1"]=" \3\\\\\\n"\\/p
4851 t cont
4852 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4853 t cont
4854 d
4855 :cont
4856 n
4857 s/.\{148\}/&'"$ac_delim"'/g
4858 t clear
4859 :clear
4860 s/\\$//
4861 t bsnlc
4862 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4863 d
4864 :bsnlc
4865 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4866 b cont
4867 ' <confdefs.h | sed '
4868 s/'"$ac_delim"'/"\\\
4869 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4870
4871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4872 for (key in D) D_is_set[key] = 1
4873 FS = "\a"
4874 }
4875 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4876 line = \$ 0
4877 split(line, arg, " ")
4878 if (arg[1] == "#") {
4879 defundef = arg[2]
4880 mac1 = arg[3]
4881 } else {
4882 defundef = substr(arg[1], 2)
4883 mac1 = arg[2]
4884 }
4885 split(mac1, mac2, "(") #)
4886 macro = mac2[1]
4887 prefix = substr(line, 1, index(line, defundef) - 1)
4888 if (D_is_set[macro]) {
4889 # Preserve the white space surrounding the "#".
4890 print prefix "define", macro P[macro] D[macro]
4891 next
4892 } else {
4893 # Replace #undef with comments. This is necessary, for example,
4894 # in the case of _POSIX_SOURCE, which is predefined and required
4895 # on some systems where configure will not decide to define it.
4896 if (defundef == "undef") {
4897 print "/*", prefix defundef, macro, "*/"
4898 next
4899 }
4900 }
4901 }
4902 { print }
4903 _ACAWK
4904 _ACEOF
4905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4906 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4907 fi # test -n "$CONFIG_HEADERS"
4908
4909
4910 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
4911 shift
4912 for ac_tag
4913 do
4914 case $ac_tag in
4915 :[FHLC]) ac_mode=$ac_tag; continue;;
4916 esac
4917 case $ac_mode$ac_tag in
4918 :[FHL]*:*);;
4919 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4920 :[FH]-) ac_tag=-:-;;
4921 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4922 esac
4923 ac_save_IFS=$IFS
4924 IFS=:
4925 set x $ac_tag
4926 IFS=$ac_save_IFS
4927 shift
4928 ac_file=$1
4929 shift
4930
4931 case $ac_mode in
4932 :L) ac_source=$1;;
4933 :[FH])
4934 ac_file_inputs=
4935 for ac_f
4936 do
4937 case $ac_f in
4938 -) ac_f="$ac_tmp/stdin";;
4939 *) # Look for the file first in the build tree, then in the source tree
4940 # (if the path is not absolute). The absolute path cannot be DOS-style,
4941 # because $ac_f cannot contain `:'.
4942 test -f "$ac_f" ||
4943 case $ac_f in
4944 [\\/$]*) false;;
4945 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4946 esac ||
4947 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4948 esac
4949 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4950 as_fn_append ac_file_inputs " '$ac_f'"
4951 done
4952
4953 # Let's still pretend it is `configure' which instantiates (i.e., don't
4954 # use $as_me), people would be surprised to read:
4955 # /* config.h. Generated by config.status. */
4956 configure_input='Generated from '`
4957 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4958 `' by configure.'
4959 if test x"$ac_file" != x-; then
4960 configure_input="$ac_file. $configure_input"
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4962 $as_echo "$as_me: creating $ac_file" >&6;}
4963 fi
4964 # Neutralize special characters interpreted by sed in replacement strings.
4965 case $configure_input in #(
4966 *\&* | *\|* | *\\* )
4967 ac_sed_conf_input=`$as_echo "$configure_input" |
4968 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4969 *) ac_sed_conf_input=$configure_input;;
4970 esac
4971
4972 case $ac_tag in
4973 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4975 esac
4976 ;;
4977 esac
4978
4979 ac_dir=`$as_dirname -- "$ac_file" ||
4980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4981 X"$ac_file" : 'X\(//\)[^/]' \| \
4982 X"$ac_file" : 'X\(//\)$' \| \
4983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4984 $as_echo X"$ac_file" |
4985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4986 s//\1/
4987 q
4988 }
4989 /^X\(\/\/\)[^/].*/{
4990 s//\1/
4991 q
4992 }
4993 /^X\(\/\/\)$/{
4994 s//\1/
4995 q
4996 }
4997 /^X\(\/\).*/{
4998 s//\1/
4999 q
5000 }
5001 s/.*/./; q'`
5002 as_dir="$ac_dir"; as_fn_mkdir_p
5003 ac_builddir=.
5004
5005 case "$ac_dir" in
5006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5007 *)
5008 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5009 # A ".." for each directory in $ac_dir_suffix.
5010 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5011 case $ac_top_builddir_sub in
5012 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5013 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5014 esac ;;
5015 esac
5016 ac_abs_top_builddir=$ac_pwd
5017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5018 # for backward compatibility:
5019 ac_top_builddir=$ac_top_build_prefix
5020
5021 case $srcdir in
5022 .) # We are building in place.
5023 ac_srcdir=.
5024 ac_top_srcdir=$ac_top_builddir_sub
5025 ac_abs_top_srcdir=$ac_pwd ;;
5026 [\\/]* | ?:[\\/]* ) # Absolute name.
5027 ac_srcdir=$srcdir$ac_dir_suffix;
5028 ac_top_srcdir=$srcdir
5029 ac_abs_top_srcdir=$srcdir ;;
5030 *) # Relative name.
5031 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5032 ac_top_srcdir=$ac_top_build_prefix$srcdir
5033 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5034 esac
5035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5036
5037
5038 case $ac_mode in
5039 :F)
5040 #
5041 # CONFIG_FILE
5042 #
5043
5044 case $INSTALL in
5045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5046 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5047 esac
5048 _ACEOF
5049
5050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5051 # If the template does not know about datarootdir, expand it.
5052 # FIXME: This hack should be removed a few years after 2.60.
5053 ac_datarootdir_hack=; ac_datarootdir_seen=
5054 ac_sed_dataroot='
5055 /datarootdir/ {
5056 p
5057 q
5058 }
5059 /@datadir@/p
5060 /@docdir@/p
5061 /@infodir@/p
5062 /@localedir@/p
5063 /@mandir@/p'
5064 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5065 *datarootdir*) ac_datarootdir_seen=yes;;
5066 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5068 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5069 _ACEOF
5070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5071 ac_datarootdir_hack='
5072 s&@datadir@&$datadir&g
5073 s&@docdir@&$docdir&g
5074 s&@infodir@&$infodir&g
5075 s&@localedir@&$localedir&g
5076 s&@mandir@&$mandir&g
5077 s&\\\${datarootdir}&$datarootdir&g' ;;
5078 esac
5079 _ACEOF
5080
5081 # Neutralize VPATH when `$srcdir' = `.'.
5082 # Shell code in configure.ac might set extrasub.
5083 # FIXME: do we really want to maintain this feature?
5084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5085 ac_sed_extra="$ac_vpsub
5086 $extrasub
5087 _ACEOF
5088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5089 :t
5090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5091 s|@configure_input@|$ac_sed_conf_input|;t t
5092 s&@top_builddir@&$ac_top_builddir_sub&;t t
5093 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5094 s&@srcdir@&$ac_srcdir&;t t
5095 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5096 s&@top_srcdir@&$ac_top_srcdir&;t t
5097 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5098 s&@builddir@&$ac_builddir&;t t
5099 s&@abs_builddir@&$ac_abs_builddir&;t t
5100 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5101 s&@INSTALL@&$ac_INSTALL&;t t
5102 $ac_datarootdir_hack
5103 "
5104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5105 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5106
5107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5108 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5110 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5112 which seems to be undefined. Please make sure it is defined" >&5
5113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5114 which seems to be undefined. Please make sure it is defined" >&2;}
5115
5116 rm -f "$ac_tmp/stdin"
5117 case $ac_file in
5118 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5119 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5120 esac \
5121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5122 ;;
5123 :H)
5124 #
5125 # CONFIG_HEADER
5126 #
5127 if test x"$ac_file" != x-; then
5128 {
5129 $as_echo "/* $configure_input */" \
5130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5131 } >"$ac_tmp/config.h" \
5132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5133 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5136 else
5137 rm -f "$ac_file"
5138 mv "$ac_tmp/config.h" "$ac_file" \
5139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5140 fi
5141 else
5142 $as_echo "/* $configure_input */" \
5143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5144 || as_fn_error $? "could not create -" "$LINENO" 5
5145 fi
5146 ;;
5147
5148 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5149 $as_echo "$as_me: executing $ac_file commands" >&6;}
5150 ;;
5151 esac
5152
5153
5154 case $ac_file$ac_mode in
5155 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
5156
5157 esac
5158 done # for ac_tag
5159
5160
5161 as_fn_exit 0
5162 _ACEOF
5163 ac_clean_files=$ac_clean_files_save
5164
5165 test $ac_write_fail = 0 ||
5166 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5167
5168
5169 # configure is writing to config.log, and then calls config.status.
5170 # config.status does its own redirection, appending to config.log.
5171 # Unfortunately, on DOS this fails, as config.log is still kept open
5172 # by configure, so config.status won't be able to write to it; its
5173 # output is simply discarded. So we exec the FD to /dev/null,
5174 # effectively closing config.log, so it can be properly (re)opened and
5175 # appended to by config.status. When coming back to configure, we
5176 # need to make the FD available again.
5177 if test "$no_create" != yes; then
5178 ac_cs_success=:
5179 ac_config_status_args=
5180 test "$silent" = yes &&
5181 ac_config_status_args="$ac_config_status_args --quiet"
5182 exec 5>/dev/null
5183 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5184 exec 5>>config.log
5185 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5186 # would make configure fail if this is the last instruction.
5187 $ac_cs_success || as_fn_exit 1
5188 fi
5189 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5191 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5192 fi
5193