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