Debian Codegraph @

configure

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