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