configure: Detect mingw cross compiler in gentoo.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for Wine 0.9.23.
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 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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='Wine'
561 PACKAGE_TARNAME='wine'
562 PACKAGE_VERSION='0.9.23'
563 PACKAGE_STRING='Wine 0.9.23'
564 PACKAGE_BUGREPORT='wine-devel@winehq.org'
565
566 ac_unique_file="server/atom.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 WIN16_FILES
649 WIN16_INSTALL
650 SET_MAKE
651 CC
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
658 CXX
659 CXXFLAGS
660 ac_ct_CXX
661 CPPBIN
662 TOOLSDIR
663 XMKMF
664 CPP
665 X_CFLAGS
666 X_PRE_LIBS
667 X_LIBS
668 X_EXTRA_LIBS
669 LEX
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 XLEX
673 BISON
674 AS
675 ac_ct_AS
676 LD
677 AR
678 RANLIB
679 STRIP
680 WINDRES
681 LN_S
682 LN
683 GREP
684 EGREP
685 LDCONFIG
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 LINT
690 LINTFLAGS
691 FONTFORGE
692 PKG_CONFIG
693 PRELINK
694 LIBPTHREAD
695 XLIB
696 XFILES
697 OPENGLFILES
698 GLU32FILES
699 OPENGL_LIBS
700 GLUT_LIBS
701 GLUT32FILES
702 NASLIBS
703 XML2LIBS
704 XML2INCL
705 XSLTLIBS
706 XSLTINCL
707 HALINCL
708 CURSESLIBS
709 sane_devel
710 SANELIBS
711 SANEINCL
712 gphoto2_devel
713 gphoto2port_devel
714 GPHOTO2LIBS
715 GPHOTO2INCL
716 ICULIBS
717 RESOLVLIBS
718 LCMSLIBS
719 LDAPLIBS
720 FREETYPELIBS
721 FREETYPEINCL
722 ft_devel
723 ft_devel2
724 FONTSSUBDIRS
725 ARTSCCONFIG
726 ARTSLIBS
727 ARTSINCL
728 ESDCONFIG
729 ESDLIBS
730 ESDINCL
731 ALSALIBS
732 AUDIOIOLIBS
733 EXTRACFLAGS
734 BUILTINFLAG
735 DLLEXT
736 DLLFLAGS
737 LDSHARED
738 LDDLLFLAGS
739 LIBEXT
740 IMPLIBEXT
741 LIBWINE_LDFLAGS
742 DLLTOOL
743 DLLWRAP
744 COREFOUNDATIONLIB
745 IOKITLIB
746 DISKARBITRATIONLIB
747 LDEXECFLAGS
748 COREAUDIO
749 CROSSTEST
750 CROSSCC
751 CROSSWINDRES
752 LDPATH
753 CRTLIBS
754 SOCKETLIBS
755 MAIN_BINARY
756 EXTRA_BINARIES
757 LDD
758 LIBDL
759 LIBPOLL
760 DEPENDENCIES
761 LIBOBJS
762 LTLIBOBJS'
763 ac_subst_files='MAKE_RULES
764 MAKE_DLL_RULES
765 MAKE_IMPLIB_RULES
766 MAKE_TEST_RULES
767 MAKE_PROG_RULES'
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 CPPFLAGS
775 CXX
776 CXXFLAGS
777 CCC
778 XMKMF
779 CPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832   # If the previous option needs an argument, assign it.
833   if test -n "$ac_prev"; then
834     eval $ac_prev=\$ac_option
835     ac_prev=
836     continue
837   fi
838
839   case $ac_option in
840   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841   *)    ac_optarg=yes ;;
842   esac
843
844   # Accept the important Cygnus configure options, so we can diagnose typos.
845
846   case $ac_dashdash$ac_option in
847   --)
848     ac_dashdash=yes ;;
849
850   -bindir | --bindir | --bindi | --bind | --bin | --bi)
851     ac_prev=bindir ;;
852   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853     bindir=$ac_optarg ;;
854
855   -build | --build | --buil | --bui | --bu)
856     ac_prev=build_alias ;;
857   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858     build_alias=$ac_optarg ;;
859
860   -cache-file | --cache-file | --cache-fil | --cache-fi \
861   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862     ac_prev=cache_file ;;
863   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865     cache_file=$ac_optarg ;;
866
867   --config-cache | -C)
868     cache_file=config.cache ;;
869
870   -datadir | --datadir | --datadi | --datad)
871     ac_prev=datadir ;;
872   -datadir=* | --datadir=* | --datadi=* | --datad=*)
873     datadir=$ac_optarg ;;
874
875   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876   | --dataroo | --dataro | --datar)
877     ac_prev=datarootdir ;;
878   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880     datarootdir=$ac_optarg ;;
881
882   -disable-* | --disable-*)
883     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
886       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
887    { (exit 1); exit 1; }; }
888     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
889     eval enable_$ac_feature=no ;;
890
891   -docdir | --docdir | --docdi | --doc | --do)
892     ac_prev=docdir ;;
893   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894     docdir=$ac_optarg ;;
895
896   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897     ac_prev=dvidir ;;
898   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899     dvidir=$ac_optarg ;;
900
901   -enable-* | --enable-*)
902     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903     # Reject names that are not valid shell variable names.
904     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
905       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
906    { (exit 1); exit 1; }; }
907     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
908     eval enable_$ac_feature=\$ac_optarg ;;
909
910   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912   | --exec | --exe | --ex)
913     ac_prev=exec_prefix ;;
914   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916   | --exec=* | --exe=* | --ex=*)
917     exec_prefix=$ac_optarg ;;
918
919   -gas | --gas | --ga | --g)
920     # Obsolete; use --with-gas.
921     with_gas=yes ;;
922
923   -help | --help | --hel | --he | -h)
924     ac_init_help=long ;;
925   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926     ac_init_help=recursive ;;
927   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928     ac_init_help=short ;;
929
930   -host | --host | --hos | --ho)
931     ac_prev=host_alias ;;
932   -host=* | --host=* | --hos=* | --ho=*)
933     host_alias=$ac_optarg ;;
934
935   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936     ac_prev=htmldir ;;
937   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938   | --ht=*)
939     htmldir=$ac_optarg ;;
940
941   -includedir | --includedir | --includedi | --included | --include \
942   | --includ | --inclu | --incl | --inc)
943     ac_prev=includedir ;;
944   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945   | --includ=* | --inclu=* | --incl=* | --inc=*)
946     includedir=$ac_optarg ;;
947
948   -infodir | --infodir | --infodi | --infod | --info | --inf)
949     ac_prev=infodir ;;
950   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951     infodir=$ac_optarg ;;
952
953   -libdir | --libdir | --libdi | --libd)
954     ac_prev=libdir ;;
955   -libdir=* | --libdir=* | --libdi=* | --libd=*)
956     libdir=$ac_optarg ;;
957
958   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959   | --libexe | --libex | --libe)
960     ac_prev=libexecdir ;;
961   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962   | --libexe=* | --libex=* | --libe=*)
963     libexecdir=$ac_optarg ;;
964
965   -localedir | --localedir | --localedi | --localed | --locale)
966     ac_prev=localedir ;;
967   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968     localedir=$ac_optarg ;;
969
970   -localstatedir | --localstatedir | --localstatedi | --localstated \
971   | --localstate | --localstat | --localsta | --localst | --locals)
972     ac_prev=localstatedir ;;
973   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975     localstatedir=$ac_optarg ;;
976
977   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978     ac_prev=mandir ;;
979   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980     mandir=$ac_optarg ;;
981
982   -nfp | --nfp | --nf)
983     # Obsolete; use --without-fp.
984     with_fp=no ;;
985
986   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987   | --no-cr | --no-c | -n)
988     no_create=yes ;;
989
990   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992     no_recursion=yes ;;
993
994   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996   | --oldin | --oldi | --old | --ol | --o)
997     ac_prev=oldincludedir ;;
998   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001     oldincludedir=$ac_optarg ;;
1002
1003   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004     ac_prev=prefix ;;
1005   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006     prefix=$ac_optarg ;;
1007
1008   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009   | --program-pre | --program-pr | --program-p)
1010     ac_prev=program_prefix ;;
1011   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013     program_prefix=$ac_optarg ;;
1014
1015   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016   | --program-suf | --program-su | --program-s)
1017     ac_prev=program_suffix ;;
1018   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020     program_suffix=$ac_optarg ;;
1021
1022   -program-transform-name | --program-transform-name \
1023   | --program-transform-nam | --program-transform-na \
1024   | --program-transform-n | --program-transform- \
1025   | --program-transform | --program-transfor \
1026   | --program-transfo | --program-transf \
1027   | --program-trans | --program-tran \
1028   | --progr-tra | --program-tr | --program-t)
1029     ac_prev=program_transform_name ;;
1030   -program-transform-name=* | --program-transform-name=* \
1031   | --program-transform-nam=* | --program-transform-na=* \
1032   | --program-transform-n=* | --program-transform-=* \
1033   | --program-transform=* | --program-transfor=* \
1034   | --program-transfo=* | --program-transf=* \
1035   | --program-trans=* | --program-tran=* \
1036   | --progr-tra=* | --program-tr=* | --program-t=*)
1037     program_transform_name=$ac_optarg ;;
1038
1039   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040     ac_prev=pdfdir ;;
1041   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042     pdfdir=$ac_optarg ;;
1043
1044   -psdir | --psdir | --psdi | --psd | --ps)
1045     ac_prev=psdir ;;
1046   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047     psdir=$ac_optarg ;;
1048
1049   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050   | -silent | --silent | --silen | --sile | --sil)
1051     silent=yes ;;
1052
1053   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054     ac_prev=sbindir ;;
1055   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056   | --sbi=* | --sb=*)
1057     sbindir=$ac_optarg ;;
1058
1059   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061   | --sharedst | --shareds | --shared | --share | --shar \
1062   | --sha | --sh)
1063     ac_prev=sharedstatedir ;;
1064   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067   | --sha=* | --sh=*)
1068     sharedstatedir=$ac_optarg ;;
1069
1070   -site | --site | --sit)
1071     ac_prev=site ;;
1072   -site=* | --site=* | --sit=*)
1073     site=$ac_optarg ;;
1074
1075   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076     ac_prev=srcdir ;;
1077   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078     srcdir=$ac_optarg ;;
1079
1080   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081   | --syscon | --sysco | --sysc | --sys | --sy)
1082     ac_prev=sysconfdir ;;
1083   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085     sysconfdir=$ac_optarg ;;
1086
1087   -target | --target | --targe | --targ | --tar | --ta | --t)
1088     ac_prev=target_alias ;;
1089   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090     target_alias=$ac_optarg ;;
1091
1092   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093     verbose=yes ;;
1094
1095   -version | --version | --versio | --versi | --vers | -V)
1096     ac_init_version=: ;;
1097
1098   -with-* | --with-*)
1099     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102       { echo "$as_me: error: invalid package name: $ac_package" >&2
1103    { (exit 1); exit 1; }; }
1104     ac_package=`echo $ac_package| sed 's/-/_/g'`
1105     eval with_$ac_package=\$ac_optarg ;;
1106
1107   -without-* | --without-*)
1108     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1111       { echo "$as_me: error: invalid package name: $ac_package" >&2
1112    { (exit 1); exit 1; }; }
1113     ac_package=`echo $ac_package | sed 's/-/_/g'`
1114     eval with_$ac_package=no ;;
1115
1116   --x)
1117     # Obsolete; use --with-x.
1118     with_x=yes ;;
1119
1120   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121   | --x-incl | --x-inc | --x-in | --x-i)
1122     ac_prev=x_includes ;;
1123   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125     x_includes=$ac_optarg ;;
1126
1127   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129     ac_prev=x_libraries ;;
1130   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132     x_libraries=$ac_optarg ;;
1133
1134   -*) { echo "$as_me: error: unrecognized option: $ac_option
1135 Try \`$0 --help' for more information." >&2
1136    { (exit 1); exit 1; }; }
1137     ;;
1138
1139   *=*)
1140     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1143       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1144    { (exit 1); exit 1; }; }
1145     eval $ac_envvar=\$ac_optarg
1146     export $ac_envvar ;;
1147
1148   *)
1149     # FIXME: should be removed in autoconf 3.0.
1150     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154     ;;
1155
1156   esac
1157 done
1158
1159 if test -n "$ac_prev"; then
1160   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161   { echo "$as_me: error: missing argument to $ac_option" >&2
1162    { (exit 1); exit 1; }; }
1163 fi
1164
1165 # Be sure to have absolute directory names.
1166 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167                 datadir sysconfdir sharedstatedir localstatedir includedir \
1168                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169                 libdir localedir mandir
1170 do
1171   eval ac_val=\$$ac_var
1172   case $ac_val in
1173     [\\/$]* | ?:[\\/]* )  continue;;
1174     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175   esac
1176   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1177    { (exit 1); exit 1; }; }
1178 done
1179
1180 # There might be people who depend on the old broken behavior: `$host'
1181 # used to hold the argument of --host etc.
1182 # FIXME: To remove some day.
1183 build=$build_alias
1184 host=$host_alias
1185 target=$target_alias
1186
1187 # FIXME: To remove some day.
1188 if test "x$host_alias" != x; then
1189   if test "x$build_alias" = x; then
1190     cross_compiling=maybe
1191     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1192     If a cross compiler is detected then cross compile mode will be used." >&2
1193   elif test "x$build_alias" != "x$host_alias"; then
1194     cross_compiling=yes
1195   fi
1196 fi
1197
1198 ac_tool_prefix=
1199 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200
1201 test "$silent" = yes && exec 6>/dev/null
1202
1203
1204 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1205 ac_ls_di=`ls -di .` &&
1206 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1207   { echo "$as_me: error: Working directory cannot be determined" >&2
1208    { (exit 1); exit 1; }; }
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210   { echo "$as_me: error: pwd does not report name of working directory" >&2
1211    { (exit 1); exit 1; }; }
1212
1213
1214 # Find the source files, if location was not specified.
1215 if test -z "$srcdir"; then
1216   ac_srcdir_defaulted=yes
1217   # Try the directory containing this script, then the parent directory.
1218   ac_confdir=`$as_dirname -- "$0" ||
1219 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220          X"$0" : 'X\(//\)[^/]' \| \
1221          X"$0" : 'X\(//\)$' \| \
1222          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1223 echo X"$0" |
1224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225             s//\1/
1226             q
1227           }
1228           /^X\(\/\/\)[^/].*/{
1229             s//\1/
1230             q
1231           }
1232           /^X\(\/\/\)$/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\).*/{
1237             s//\1/
1238             q
1239           }
1240           s/.*/./; q'`
1241   srcdir=$ac_confdir
1242   if test ! -r "$srcdir/$ac_unique_file"; then
1243     srcdir=..
1244   fi
1245 else
1246   ac_srcdir_defaulted=no
1247 fi
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1251    { (exit 1); exit 1; }; }
1252 fi
1253 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254 ac_abs_confdir=`(
1255         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1256    { (exit 1); exit 1; }; }
1257         pwd)`
1258 # When building in place, set srcdir=.
1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260   srcdir=.
1261 fi
1262 # Remove unnecessary trailing slashes from srcdir.
1263 # Double slashes in file names in object file debugging info
1264 # mess up M-x gdb in Emacs.
1265 case $srcdir in
1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 esac
1268 for ac_var in $ac_precious_vars; do
1269   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270   eval ac_env_${ac_var}_value=\$${ac_var}
1271   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 done
1274
1275 #
1276 # Report the --help message.
1277 #
1278 if test "$ac_init_help" = "long"; then
1279   # Omit some internal or obsolete options to make the list less imposing.
1280   # This message is too long to be a string in the A/UX 3.1 sh.
1281   cat <<_ACEOF
1282 \`configure' configures Wine 0.9.23 to adapt to many kinds of systems.
1283
1284 Usage: $0 [OPTION]... [VAR=VALUE]...
1285
1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287 VAR=VALUE.  See below for descriptions of some of the useful variables.
1288
1289 Defaults for the options are specified in brackets.
1290
1291 Configuration:
1292   -h, --help              display this help and exit
1293       --help=short        display options specific to this package
1294       --help=recursive    display the short help of all the included packages
1295   -V, --version           display version information and exit
1296   -q, --quiet, --silent   do not print \`checking...' messages
1297       --cache-file=FILE   cache test results in FILE [disabled]
1298   -C, --config-cache      alias for \`--cache-file=config.cache'
1299   -n, --no-create         do not create output files
1300       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1301
1302 Installation directories:
1303   --prefix=PREFIX         install architecture-independent files in PREFIX
1304                           [$ac_default_prefix]
1305   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1306                           [PREFIX]
1307
1308 By default, \`make install' will install all the files in
1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311 for instance \`--prefix=\$HOME'.
1312
1313 For better control, use the options below.
1314
1315 Fine tuning of the installation directories:
1316   --bindir=DIR           user executables [EPREFIX/bin]
1317   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1318   --libexecdir=DIR       program executables [EPREFIX/libexec]
1319   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1320   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1321   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1322   --libdir=DIR           object code libraries [EPREFIX/lib]
1323   --includedir=DIR       C header files [PREFIX/include]
1324   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1325   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1326   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1327   --infodir=DIR          info documentation [DATAROOTDIR/info]
1328   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1329   --mandir=DIR           man documentation [DATAROOTDIR/man]
1330   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1331   --htmldir=DIR          html documentation [DOCDIR]
1332   --dvidir=DIR           dvi documentation [DOCDIR]
1333   --pdfdir=DIR           pdf documentation [DOCDIR]
1334   --psdir=DIR            ps documentation [DOCDIR]
1335 _ACEOF
1336
1337   cat <<\_ACEOF
1338
1339 X features:
1340   --x-includes=DIR    X include files are in DIR
1341   --x-libraries=DIR   X library files are in DIR
1342
1343 System types:
1344   --build=BUILD     configure for building on BUILD [guessed]
1345   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1346 _ACEOF
1347 fi
1348
1349 if test -n "$ac_init_help"; then
1350   case $ac_init_help in
1351      short | recursive ) echo "Configuration of Wine 0.9.23:";;
1352    esac
1353   cat <<\_ACEOF
1354
1355 Optional Features:
1356   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1357   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358   --disable-win16         do not include Win16 support
1359   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1360                           binaries)
1361
1362 Optional Packages:
1363   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1364   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1365   --without-opengl        do not use OpenGL
1366   --without-curses        do not use curses
1367   --with-wine-tools=<dir> use Wine tools from directory <dir>
1368   --with-x                use the X Window System
1369
1370 Some influential environment variables:
1371   CC          C compiler command
1372   CFLAGS      C compiler flags
1373   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1374               nonstandard directory <lib dir>
1375   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376               you have headers in a nonstandard directory <include dir>
1377   CXX         C++ compiler command
1378   CXXFLAGS    C++ compiler flags
1379   XMKMF       Path to xmkmf, Makefile generator for X Window System
1380   CPP         C preprocessor
1381
1382 Use these variables to override the choices made by `configure' or to help
1383 it to find libraries and programs with nonstandard names/locations.
1384
1385 Report bugs to <wine-devel@winehq.org>.
1386 _ACEOF
1387 ac_status=$?
1388 fi
1389
1390 if test "$ac_init_help" = "recursive"; then
1391   # If there are subdirs, report their specific --help.
1392   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393     test -d "$ac_dir" || continue
1394     ac_builddir=.
1395
1396 case "$ac_dir" in
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *)
1399   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1400   # A ".." for each directory in $ac_dir_suffix.
1401   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1402   case $ac_top_builddir_sub in
1403   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405   esac ;;
1406 esac
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1411
1412 case $srcdir in
1413   .)  # We are building in place.
1414     ac_srcdir=.
1415     ac_top_srcdir=$ac_top_builddir_sub
1416     ac_abs_top_srcdir=$ac_pwd ;;
1417   [\\/]* | ?:[\\/]* )  # Absolute name.
1418     ac_srcdir=$srcdir$ac_dir_suffix;
1419     ac_top_srcdir=$srcdir
1420     ac_abs_top_srcdir=$srcdir ;;
1421   *) # Relative name.
1422     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423     ac_top_srcdir=$ac_top_build_prefix$srcdir
1424     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 esac
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427
1428     cd "$ac_dir" || { ac_status=$?; continue; }
1429     # Check for guested configure.
1430     if test -f "$ac_srcdir/configure.gnu"; then
1431       echo &&
1432       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433     elif test -f "$ac_srcdir/configure"; then
1434       echo &&
1435       $SHELL "$ac_srcdir/configure" --help=recursive
1436     else
1437       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438     fi || ac_status=$?
1439     cd "$ac_pwd" || { ac_status=$?; break; }
1440   done
1441 fi
1442
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1445   cat <<\_ACEOF
1446 Wine configure 0.9.23
1447 generated by GNU Autoconf 2.60a
1448
1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454   exit
1455 fi
1456 cat >config.log <<_ACEOF
1457 This file contains any messages produced by compilers while
1458 running configure, to aid debugging if configure makes a mistake.
1459
1460 It was created by Wine $as_me 0.9.23, which was
1461 generated by GNU Autoconf 2.60a.  Invocation command line was
1462
1463   $ $0 $@
1464
1465 _ACEOF
1466 exec 5>>config.log
1467 {
1468 cat <<_ASUNAME
1469 ## --------- ##
1470 ## Platform. ##
1471 ## --------- ##
1472
1473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478
1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1480 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1481
1482 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1483 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1485 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1486 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1487 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1488 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1489
1490 _ASUNAME
1491
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1494 do
1495   IFS=$as_save_IFS
1496   test -z "$as_dir" && as_dir=.
1497   echo "PATH: $as_dir"
1498 done
1499 IFS=$as_save_IFS
1500
1501 } >&5
1502
1503 cat >&5 <<_ACEOF
1504
1505
1506 ## ----------- ##
1507 ## Core tests. ##
1508 ## ----------- ##
1509
1510 _ACEOF
1511
1512
1513 # Keep a trace of the command line.
1514 # Strip out --no-create and --no-recursion so they do not pile up.
1515 # Strip out --silent because we don't want to record it for future runs.
1516 # Also quote any args containing shell meta-characters.
1517 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_configure_args=
1519 ac_configure_args0=
1520 ac_configure_args1=
1521 ac_must_keep_next=false
1522 for ac_pass in 1 2
1523 do
1524   for ac_arg
1525   do
1526     case $ac_arg in
1527     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529     | -silent | --silent | --silen | --sile | --sil)
1530       continue ;;
1531     *\'*)
1532       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1533     esac
1534     case $ac_pass in
1535     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1536     2)
1537       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538       if test $ac_must_keep_next = true; then
1539         ac_must_keep_next=false # Got value, back to normal.
1540       else
1541         case $ac_arg in
1542           *=* | --config-cache | -C | -disable-* | --disable-* \
1543           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545           | -with-* | --with-* | -without-* | --without-* | --x)
1546             case "$ac_configure_args0 " in
1547               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548             esac
1549             ;;
1550           -* ) ac_must_keep_next=true ;;
1551         esac
1552       fi
1553       ac_configure_args="$ac_configure_args '$ac_arg'"
1554       ;;
1555     esac
1556   done
1557 done
1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1560
1561 # When interrupted or exit'd, cleanup temporary files, and complete
1562 # config.log.  We remove comments because anyway the quotes in there
1563 # would cause problems or look ugly.
1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1566 trap 'exit_status=$?
1567   # Save into config.log some information that might help in debugging.
1568   {
1569     echo
1570
1571     cat <<\_ASBOX
1572 ## ---------------- ##
1573 ## Cache variables. ##
1574 ## ---------------- ##
1575 _ASBOX
1576     echo
1577     # The following way of writing the cache mishandles newlines in values,
1578 (
1579   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580     eval ac_val=\$$ac_var
1581     case $ac_val in #(
1582     *${as_nl}*)
1583       case $ac_var in #(
1584       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1586       esac
1587       case $ac_var in #(
1588       _ | IFS | as_nl) ;; #(
1589       *) $as_unset $ac_var ;;
1590       esac ;;
1591     esac
1592   done
1593   (set) 2>&1 |
1594     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595     *${as_nl}ac_space=\ *)
1596       sed -n \
1597         "s/'\''/'\''\\\\'\'''\''/g;
1598           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599       ;; #(
1600     *)
1601       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602       ;;
1603     esac |
1604     sort
1605 )
1606     echo
1607
1608     cat <<\_ASBOX
1609 ## ----------------- ##
1610 ## Output variables. ##
1611 ## ----------------- ##
1612 _ASBOX
1613     echo
1614     for ac_var in $ac_subst_vars
1615     do
1616       eval ac_val=\$$ac_var
1617       case $ac_val in
1618       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619       esac
1620       echo "$ac_var='\''$ac_val'\''"
1621     done | sort
1622     echo
1623
1624     if test -n "$ac_subst_files"; then
1625       cat <<\_ASBOX
1626 ## ------------------- ##
1627 ## File substitutions. ##
1628 ## ------------------- ##
1629 _ASBOX
1630       echo
1631       for ac_var in $ac_subst_files
1632       do
1633         eval ac_val=\$$ac_var
1634         case $ac_val in
1635         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636         esac
1637         echo "$ac_var='\''$ac_val'\''"
1638       done | sort
1639       echo
1640     fi
1641
1642     if test -s confdefs.h; then
1643       cat <<\_ASBOX
1644 ## ----------- ##
1645 ## confdefs.h. ##
1646 ## ----------- ##
1647 _ASBOX
1648       echo
1649       cat confdefs.h
1650       echo
1651     fi
1652     test "$ac_signal" != 0 &&
1653       echo "$as_me: caught signal $ac_signal"
1654     echo "$as_me: exit $exit_status"
1655   } >&5
1656   rm -f core *.core core.conftest.* &&
1657     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1658     exit $exit_status
1659 ' 0
1660 for ac_signal in 1 2 13 15; do
1661   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 done
1663 ac_signal=0
1664
1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1666 rm -f -r conftest* confdefs.h
1667
1668 # Predefined preprocessor variables.
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 _ACEOF
1678
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 _ACEOF
1688
1689
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 _ACEOF
1693
1694
1695 # Let the site file select an alternate cache file if it wants to.
1696 # Prefer explicitly selected file to automatically selected ones.
1697 if test -n "$CONFIG_SITE"; then
1698   set x "$CONFIG_SITE"
1699 elif test "x$prefix" != xNONE; then
1700   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1701 else
1702   set x "$ac_default_prefix/share/config.site" \
1703         "$ac_default_prefix/etc/config.site"
1704 fi
1705 shift
1706 for ac_site_file
1707 do
1708   if test -r "$ac_site_file"; then
1709     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1710 echo "$as_me: loading site script $ac_site_file" >&6;}
1711     sed 's/^/| /' "$ac_site_file" >&5
1712     . "$ac_site_file"
1713   fi
1714 done
1715
1716 if test -r "$cache_file"; then
1717   # Some versions of bash will fail to source /dev/null (special
1718   # files actually), so we avoid doing that.
1719   if test -f "$cache_file"; then
1720     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1721 echo "$as_me: loading cache $cache_file" >&6;}
1722     case $cache_file in
1723       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1724       *)                      . "./$cache_file";;
1725     esac
1726   fi
1727 else
1728   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1729 echo "$as_me: creating cache $cache_file" >&6;}
1730   >$cache_file
1731 fi
1732
1733 # Check that the precious variables saved in the cache have kept the same
1734 # value.
1735 ac_cache_corrupted=false
1736 for ac_var in $ac_precious_vars; do
1737   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738   eval ac_new_set=\$ac_env_${ac_var}_set
1739   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740   eval ac_new_val=\$ac_env_${ac_var}_value
1741   case $ac_old_set,$ac_new_set in
1742     set,)
1743       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745       ac_cache_corrupted=: ;;
1746     ,set)
1747       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1749       ac_cache_corrupted=: ;;
1750     ,);;
1751     *)
1752       if test "x$ac_old_val" != "x$ac_new_val"; then
1753         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1756 echo "$as_me:   former value:  $ac_old_val" >&2;}
1757         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1758 echo "$as_me:   current value: $ac_new_val" >&2;}
1759         ac_cache_corrupted=:
1760       fi;;
1761   esac
1762   # Pass precious variables to config.status.
1763   if test "$ac_new_set" = set; then
1764     case $ac_new_val in
1765     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766     *) ac_arg=$ac_var=$ac_new_val ;;
1767     esac
1768     case " $ac_configure_args " in
1769       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1770       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771     esac
1772   fi
1773 done
1774 if $ac_cache_corrupted; then
1775   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779    { (exit 1); exit 1; }; }
1780 fi
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806 ac_ext=c
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811
1812
1813
1814 ac_config_headers="$ac_config_headers include/config.h"
1815
1816 ac_aux_dir=
1817 for ac_dir in tools "$srcdir"/tools; do
1818   if test -f "$ac_dir/install-sh"; then
1819     ac_aux_dir=$ac_dir
1820     ac_install_sh="$ac_aux_dir/install-sh -c"
1821     break
1822   elif test -f "$ac_dir/install.sh"; then
1823     ac_aux_dir=$ac_dir
1824     ac_install_sh="$ac_aux_dir/install.sh -c"
1825     break
1826   elif test -f "$ac_dir/shtool"; then
1827     ac_aux_dir=$ac_dir
1828     ac_install_sh="$ac_aux_dir/shtool install -c"
1829     break
1830   fi
1831 done
1832 if test -z "$ac_aux_dir"; then
1833   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1834 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1835    { (exit 1); exit 1; }; }
1836 fi
1837
1838 # These three variables are undocumented and unsupported,
1839 # and are intended to be withdrawn in a future Autoconf release.
1840 # They can cause serious problems if a builder's source tree is in a directory
1841 # whose full name contains unusual characters.
1842 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1843 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1844 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1845
1846
1847
1848
1849 # Check whether --enable-win16 was given.
1850 if test "${enable_win16+set}" = set; then
1851   enableval=$enable_win16;
1852 fi
1853
1854 # Check whether --enable-win64 was given.
1855 if test "${enable_win64+set}" = set; then
1856   enableval=$enable_win64;
1857 fi
1858
1859
1860
1861 # Check whether --with-opengl was given.
1862 if test "${with_opengl+set}" = set; then
1863   withval=$with_opengl;
1864 fi
1865
1866
1867 # Check whether --with-curses was given.
1868 if test "${with_curses+set}" = set; then
1869   withval=$with_curses;
1870 fi
1871
1872
1873 # Check whether --with-wine-tools was given.
1874 if test "${with_wine_tools+set}" = set; then
1875   withval=$with_wine_tools;
1876 fi
1877
1878
1879 # Make sure we can run config.sub.
1880 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1881   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1882 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1883    { (exit 1); exit 1; }; }
1884
1885 { echo "$as_me:$LINENO: checking build system type" >&5
1886 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1887 if test "${ac_cv_build+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   ac_build_alias=$build_alias
1891 test "x$ac_build_alias" = x &&
1892   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1893 test "x$ac_build_alias" = x &&
1894   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1895 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1896    { (exit 1); exit 1; }; }
1897 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1898   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1899 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1900    { (exit 1); exit 1; }; }
1901
1902 fi
1903 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1904 echo "${ECHO_T}$ac_cv_build" >&6; }
1905 case $ac_cv_build in
1906 *-*-*) ;;
1907 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1908 echo "$as_me: error: invalid value of canonical build" >&2;}
1909    { (exit 1); exit 1; }; };;
1910 esac
1911 build=$ac_cv_build
1912 ac_save_IFS=$IFS; IFS='-'
1913 set x $ac_cv_build
1914 shift
1915 build_cpu=$1
1916 build_vendor=$2
1917 shift; shift
1918 # Remember, the first character of IFS is used to create $*,
1919 # except with old shells:
1920 build_os=$*
1921 IFS=$ac_save_IFS
1922 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1923
1924
1925 { echo "$as_me:$LINENO: checking host system type" >&5
1926 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1927 if test "${ac_cv_host+set}" = set; then
1928   echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930   if test "x$host_alias" = x; then
1931   ac_cv_host=$ac_cv_build
1932 else
1933   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1934     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1935 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1936    { (exit 1); exit 1; }; }
1937 fi
1938
1939 fi
1940 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941 echo "${ECHO_T}$ac_cv_host" >&6; }
1942 case $ac_cv_host in
1943 *-*-*) ;;
1944 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1945 echo "$as_me: error: invalid value of canonical host" >&2;}
1946    { (exit 1); exit 1; }; };;
1947 esac
1948 host=$ac_cv_host
1949 ac_save_IFS=$IFS; IFS='-'
1950 set x $ac_cv_host
1951 shift
1952 host_cpu=$1
1953 host_vendor=$2
1954 shift; shift
1955 # Remember, the first character of IFS is used to create $*,
1956 # except with old shells:
1957 host_os=$*
1958 IFS=$ac_save_IFS
1959 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1960
1961
1962 case $host in
1963   x86_64*linux*)
1964     if test "x$enable_win64" != "xyes"
1965     then
1966       test -n "$CC" || CC="gcc -m32"
1967       test -n "$LD" || LD="ld -m elf_i386"
1968       test -n "$AS" || AS="as --32"
1969       host_cpu="i386"
1970     fi
1971     ;;
1972 esac
1973
1974 case $host_cpu in
1975   *i[3456789]86*)
1976     if test "x$enable_win16" != "xno"
1977     then
1978       enable_win16="yes"
1979     fi
1980     ;;
1981 esac
1982
1983 WIN16_FILES="\$(WIN16_FILES)"
1984
1985 WIN16_INSTALL="\$(WIN16_INSTALL)"
1986
1987 if test "x$enable_win16" != "xyes"
1988 then
1989   WIN16_FILES=""
1990   WIN16_INSTALL=""
1991 fi
1992
1993
1994 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1995 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1996 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1997 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   cat >conftest.make <<\_ACEOF
2001 SHELL = /bin/sh
2002 all:
2003         @echo '@@@%%%=$(MAKE)=@@@%%%'
2004 _ACEOF
2005 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2007   *@@@%%%=?*=@@@%%%*)
2008     eval ac_cv_prog_make_${ac_make}_set=yes;;
2009   *)
2010     eval ac_cv_prog_make_${ac_make}_set=no;;
2011 esac
2012 rm -f conftest.make
2013 fi
2014 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2015   { echo "$as_me:$LINENO: result: yes" >&5
2016 echo "${ECHO_T}yes" >&6; }
2017   SET_MAKE=
2018 else
2019   { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2021   SET_MAKE="MAKE=${MAKE-make}"
2022 fi
2023
2024 ac_ext=c
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029 if test -n "$ac_tool_prefix"; then
2030   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$CC"; then
2038   ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2047     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050   fi
2051 done
2052 done
2053 IFS=$as_save_IFS
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2061 else
2062   { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2064 fi
2065
2066
2067 fi
2068 if test -z "$ac_cv_prog_CC"; then
2069   ac_ct_CC=$CC
2070   # Extract the first word of "gcc", so it can be a program name with args.
2071 set dummy gcc; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$ac_ct_CC"; then
2078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   for ac_exec_ext in '' $ac_executable_extensions; do
2086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2087     ac_cv_prog_ac_ct_CC="gcc"
2088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089     break 2
2090   fi
2091 done
2092 done
2093 IFS=$as_save_IFS
2094
2095 fi
2096 fi
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6; }
2101 else
2102   { echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6; }
2104 fi
2105
2106   if test "x$ac_ct_CC" = x; then
2107     CC=""
2108   else
2109     case $cross_compiling:$ac_tool_warned in
2110 yes:)
2111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2112 whose name does not start with the host triplet.  If you think this
2113 configuration is useful to you, please write to autoconf@gnu.org." >&5
2114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet.  If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2117 ac_tool_warned=yes ;;
2118 esac
2119     CC=$ac_ct_CC
2120   fi
2121 else
2122   CC="$ac_cv_prog_CC"
2123 fi
2124
2125 if test -z "$CC"; then
2126           if test -n "$ac_tool_prefix"; then
2127     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}cc; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$CC"; then
2135   ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2144     ac_cv_prog_CC="${ac_tool_prefix}cc"
2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150 IFS=$as_save_IFS
2151
2152 fi
2153 fi
2154 CC=$ac_cv_prog_CC
2155 if test -n "$CC"; then
2156   { echo "$as_me:$LINENO: result: $CC" >&5
2157 echo "${ECHO_T}$CC" >&6; }
2158 else
2159   { echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6; }
2161 fi
2162
2163
2164   fi
2165 fi
2166 if test -z "$CC"; then
2167   # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$CC"; then
2175   ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177   ac_prog_rejected=no
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2185     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2186        ac_prog_rejected=yes
2187        continue
2188      fi
2189     ac_cv_prog_CC="cc"
2190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191     break 2
2192   fi
2193 done
2194 done
2195 IFS=$as_save_IFS
2196
2197 if test $ac_prog_rejected = yes; then
2198   # We found a bogon in the path, so make sure we never use it.
2199   set dummy $ac_cv_prog_CC
2200   shift
2201   if test $# != 0; then
2202     # We chose a different compiler from the bogus one.
2203     # However, it has the same basename, so the bogon will be chosen
2204     # first if we set CC to just the basename; use the full file name.
2205     shift
2206     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2207   fi
2208 fi
2209 fi
2210 fi
2211 CC=$ac_cv_prog_CC
2212 if test -n "$CC"; then
2213   { echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6; }
2215 else
2216   { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2218 fi
2219
2220
2221 fi
2222 if test -z "$CC"; then
2223   if test -n "$ac_tool_prefix"; then
2224   for ac_prog in cl.exe
2225   do
2226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2243     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249 IFS=$as_save_IFS
2250
2251 fi
2252 fi
2253 CC=$ac_cv_prog_CC
2254 if test -n "$CC"; then
2255   { echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6; }
2257 else
2258   { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2260 fi
2261
2262
2263     test -n "$CC" && break
2264   done
2265 fi
2266 if test -z "$CC"; then
2267   ac_ct_CC=$CC
2268   for ac_prog in cl.exe
2269 do
2270   # Extract the first word of "$ac_prog", so it can be a program name with args.
2271 set dummy $ac_prog; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   if test -n "$ac_ct_CC"; then
2278   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283   IFS=$as_save_IFS
2284   test -z "$as_dir" && as_dir=.
2285   for ac_exec_ext in '' $ac_executable_extensions; do
2286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2287     ac_cv_prog_ac_ct_CC="$ac_prog"
2288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289     break 2
2290   fi
2291 done
2292 done
2293 IFS=$as_save_IFS
2294
2295 fi
2296 fi
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6; }
2301 else
2302   { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2304 fi
2305
2306
2307   test -n "$ac_ct_CC" && break
2308 done
2309
2310   if test "x$ac_ct_CC" = x; then
2311     CC=""
2312   else
2313     case $cross_compiling:$ac_tool_warned in
2314 yes:)
2315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2316 whose name does not start with the host triplet.  If you think this
2317 configuration is useful to you, please write to autoconf@gnu.org." >&5
2318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet.  If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2321 ac_tool_warned=yes ;;
2322 esac
2323     CC=$ac_ct_CC
2324   fi
2325 fi
2326
2327 fi
2328
2329
2330 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: no acceptable C compiler found in \$PATH
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335
2336 # Provide some information about the compiler.
2337 echo "$as_me:$LINENO: checking for C compiler version" >&5
2338 ac_compiler=`set X $ac_compile; echo $2`
2339 { (ac_try="$ac_compiler --version >&5"
2340 case "(($ac_try" in
2341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342   *) ac_try_echo=$ac_try;;
2343 esac
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345   (eval "$ac_compiler --version >&5") 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }
2349 { (ac_try="$ac_compiler -v >&5"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355   (eval "$ac_compiler -v >&5") 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }
2359 { (ac_try="$ac_compiler -V >&5"
2360 case "(($ac_try" in
2361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362   *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365   (eval "$ac_compiler -V >&5") 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }
2369
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 int
2378 main ()
2379 {
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 ac_clean_files_save=$ac_clean_files
2386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2389 # of exeext.
2390 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2391 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 #
2394 # List of possible output files, starting from the most likely.
2395 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2396 # only as a last resort.  b.out is created by i960 compilers.
2397 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2398 #
2399 # The IRIX 6 linker writes into existing files which may not be
2400 # executable, retaining their permissions.  Remove them first so a
2401 # subsequent execution test works.
2402 ac_rmfiles=
2403 for ac_file in $ac_files
2404 do
2405   case $ac_file in
2406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2407     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2408   esac
2409 done
2410 rm -f $ac_rmfiles
2411
2412 if { (ac_try="$ac_link_default"
2413 case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_link_default") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; then
2422   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2424 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2425 # so that the user can short-circuit this test for compilers unknown to
2426 # Autoconf.
2427 for ac_file in $ac_files ''
2428 do
2429   test -f "$ac_file" || continue
2430   case $ac_file in
2431     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2432         ;;
2433     [ab].out )
2434         # We found the default executable, but exeext='' is most
2435         # certainly right.
2436         break;;
2437     *.* )
2438         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2439         then :; else
2440            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441         fi
2442         # We set ac_cv_exeext here because the later test for it is not
2443         # safe: cross compilers may not add the suffix if given an `-o'
2444         # argument, so we may need to know it at that point already.
2445         # Even if this section looks crufty: it has the advantage of
2446         # actually working.
2447         break;;
2448     * )
2449         break;;
2450   esac
2451 done
2452 test "$ac_cv_exeext" = no && ac_cv_exeext=
2453
2454 else
2455   ac_file=''
2456 fi
2457
2458 { echo "$as_me:$LINENO: result: $ac_file" >&5
2459 echo "${ECHO_T}$ac_file" >&6; }
2460 if test -z "$ac_file"; then
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&2;}
2468    { (exit 77); exit 77; }; }
2469 fi
2470
2471 ac_exeext=$ac_cv_exeext
2472
2473 # Check that the compiler produces executables we can run.  If not, either
2474 # the compiler is broken, or we cross compile.
2475 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2476 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2478 # If not cross compiling, check that we can run a simple program.
2479 if test "$cross_compiling" != yes; then
2480   if { ac_try='./$ac_file'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490     cross_compiling=no
2491   else
2492     if test "$cross_compiling" = maybe; then
2493         cross_compiling=yes
2494     else
2495         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2496 If you meant to cross compile, use \`--host'.
2497 See \`config.log' for more details." >&5
2498 echo "$as_me: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&2;}
2501    { (exit 1); exit 1; }; }
2502     fi
2503   fi
2504 fi
2505 { echo "$as_me:$LINENO: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6; }
2507
2508 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2509 ac_clean_files=$ac_clean_files_save
2510 # Check that the compiler produces executables we can run.  If not, either
2511 # the compiler is broken, or we cross compile.
2512 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2513 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2514 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2515 echo "${ECHO_T}$cross_compiling" >&6; }
2516
2517 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2518 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2519 if { (ac_try="$ac_link"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_link") 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; then
2529   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2530 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2531 # work properly (i.e., refer to `conftest.exe'), while it won't with
2532 # `rm'.
2533 for ac_file in conftest.exe conftest conftest.*; do
2534   test -f "$ac_file" || continue
2535   case $ac_file in
2536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2537     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2538           break;;
2539     * ) break;;
2540   esac
2541 done
2542 else
2543   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&2;}
2547    { (exit 1); exit 1; }; }
2548 fi
2549
2550 rm -f conftest$ac_cv_exeext
2551 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2553
2554 rm -f conftest.$ac_ext
2555 EXEEXT=$ac_cv_exeext
2556 ac_exeext=$EXEEXT
2557 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2559 if test "${ac_cv_objext+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.o conftest.obj
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_compile") 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; then
2588   for ac_file in conftest.o conftest.obj conftest.*; do
2589   test -f "$ac_file" || continue;
2590   case $ac_file in
2591     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2592     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2593        break;;
2594   esac
2595 done
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2601 See \`config.log' for more details." >&5
2602 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&2;}
2604    { (exit 1); exit 1; }; }
2605 fi
2606
2607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2608 fi
2609 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2610 echo "${ECHO_T}$ac_cv_objext" >&6; }
2611 OBJEXT=$ac_cv_objext
2612 ac_objext=$OBJEXT
2613 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2614 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624
2625 int
2626 main ()
2627 {
2628 #ifndef __GNUC__
2629        choke me
2630 #endif
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (ac_try="$ac_compile"
2638 case "(($ac_try" in
2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640   *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643   (eval "$ac_compile") 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2651   { (case "(($ac_try" in
2652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653   *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656   (eval "$ac_try") 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (case "(($ac_try" in
2662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663   *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666   (eval "$ac_try") 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   ac_compiler_gnu=yes
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675         ac_compiler_gnu=no
2676 fi
2677
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2680
2681 fi
2682 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2683 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2684 GCC=`test $ac_compiler_gnu = yes && echo yes`
2685 ac_test_CFLAGS=${CFLAGS+set}
2686 ac_save_CFLAGS=$CFLAGS
2687 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2688 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2689 if test "${ac_cv_prog_cc_g+set}" = set; then
2690   echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692   ac_save_c_werror_flag=$ac_c_werror_flag
2693    ac_c_werror_flag=yes
2694    ac_cv_prog_cc_g=no
2695    CFLAGS="-g"
2696    cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (ac_try="$ac_compile"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compile") 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } &&
2725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2726   { (case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_try") 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_try") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; }; then
2745   ac_cv_prog_cc_g=yes
2746 else
2747   echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750         CFLAGS=""
2751       cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (ac_try="$ac_compile"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_compile") 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2781   { (case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_try") 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest.$ac_objext'
2791   { (case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796   (eval "$ac_try") 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   :
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805         ac_c_werror_flag=$ac_save_c_werror_flag
2806          CFLAGS="-g"
2807          cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h.  */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h.  */
2813
2814 int
2815 main ()
2816 {
2817
2818   ;
2819   return 0;
2820 }
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (ac_try="$ac_compile"
2824 case "(($ac_try" in
2825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826   *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829   (eval "$ac_compile") 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2837   { (case "(($ac_try" in
2838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839   *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842   (eval "$ac_try") 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); }; } &&
2846          { ac_try='test -s conftest.$ac_objext'
2847   { (case "(($ac_try" in
2848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849   *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852   (eval "$ac_try") 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856   ac_cv_prog_cc_g=yes
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861
2862 fi
2863
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 fi
2866
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 fi
2869
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871    ac_c_werror_flag=$ac_save_c_werror_flag
2872 fi
2873 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2875 if test "$ac_test_CFLAGS" = set; then
2876   CFLAGS=$ac_save_CFLAGS
2877 elif test $ac_cv_prog_cc_g = yes; then
2878   if test "$GCC" = yes; then
2879     CFLAGS="-g -O2"
2880   else
2881     CFLAGS="-g"
2882   fi
2883 else
2884   if test "$GCC" = yes; then
2885     CFLAGS="-O2"
2886   else
2887     CFLAGS=
2888   fi
2889 fi
2890 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2891 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2892 if test "${ac_cv_prog_cc_c89+set}" = set; then
2893   echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895   ac_cv_prog_cc_c89=no
2896 ac_save_CC=$CC
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #include <stdarg.h>
2904 #include <stdio.h>
2905 #include <sys/types.h>
2906 #include <sys/stat.h>
2907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2908 struct buf { int x; };
2909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2910 static char *e (p, i)
2911      char **p;
2912      int i;
2913 {
2914   return p[i];
2915 }
2916 static char *f (char * (*g) (char **, int), char **p, ...)
2917 {
2918   char *s;
2919   va_list v;
2920   va_start (v,p);
2921   s = g (p, va_arg (v,int));
2922   va_end (v);
2923   return s;
2924 }
2925
2926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2927    function prototypes and stuff, but not '\xHH' hex character constants.
2928    These don't provoke an error unfortunately, instead are silently treated
2929    as 'x'.  The following induces an error, until -std is added to get
2930    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2931    array size at least.  It's necessary to write '\x00'==0 to get something
2932    that's true only with -std.  */
2933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2934
2935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2936    inside strings and character constants.  */
2937 #define FOO(x) 'x'
2938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2939
2940 int test (int i, double x);
2941 struct s1 {int (*f) (int a);};
2942 struct s2 {int (*f) (double a);};
2943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2944 int argc;
2945 char **argv;
2946 int
2947 main ()
2948 {
2949 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2955         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2956 do
2957   CC="$ac_save_CC $ac_arg"
2958   rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_compile") 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } &&
2972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2973   { (case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_try") 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }; } &&
2982          { ac_try='test -s conftest.$ac_objext'
2983   { (case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988   (eval "$ac_try") 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; }; then
2992   ac_cv_prog_cc_c89=$ac_arg
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997
2998 fi
2999
3000 rm -f core conftest.err conftest.$ac_objext
3001   test "x$ac_cv_prog_cc_c89" != "xno" && break
3002 done
3003 rm -f conftest.$ac_ext
3004 CC=$ac_save_CC
3005
3006 fi
3007 # AC_CACHE_VAL
3008 case "x$ac_cv_prog_cc_c89" in
3009   x)
3010     { echo "$as_me:$LINENO: result: none needed" >&5
3011 echo "${ECHO_T}none needed" >&6; } ;;
3012   xno)
3013     { echo "$as_me:$LINENO: result: unsupported" >&5
3014 echo "${ECHO_T}unsupported" >&6; } ;;
3015   *)
3016     CC="$CC $ac_cv_prog_cc_c89"
3017     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3018 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3019 esac
3020
3021
3022 ac_ext=c
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027
3028 ac_ext=cpp
3029 ac_cpp='$CXXCPP $CPPFLAGS'
3030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3033 if test -z "$CXX"; then
3034   if test -n "$CCC"; then
3035     CXX=$CCC
3036   else
3037     if test -n "$ac_tool_prefix"; then
3038   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3039   do
3040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_CXX+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   if test -n "$CXX"; then
3048   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055   for ac_exec_ext in '' $ac_executable_extensions; do
3056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3057     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CXX=$ac_cv_prog_CXX
3068 if test -n "$CXX"; then
3069   { echo "$as_me:$LINENO: result: $CXX" >&5
3070 echo "${ECHO_T}$CXX" >&6; }
3071 else
3072   { echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6; }
3074 fi
3075
3076
3077     test -n "$CXX" && break
3078   done
3079 fi
3080 if test -z "$CXX"; then
3081   ac_ct_CXX=$CXX
3082   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3083 do
3084   # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   if test -n "$ac_ct_CXX"; then
3092   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099   for ac_exec_ext in '' $ac_executable_extensions; do
3100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3101     ac_cv_prog_ac_ct_CXX="$ac_prog"
3102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3112 if test -n "$ac_ct_CXX"; then
3113   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3114 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3115 else
3116   { echo "$as_me:$LINENO: result: no" >&5
3117 echo "${ECHO_T}no" >&6; }
3118 fi
3119
3120
3121   test -n "$ac_ct_CXX" && break
3122 done
3123
3124   if test "x$ac_ct_CXX" = x; then
3125     CXX="g++"
3126   else
3127     case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3130 whose name does not start with the host triplet.  If you think this
3131 configuration is useful to you, please write to autoconf@gnu.org." >&5
3132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3133 whose name does not start with the host triplet.  If you think this
3134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137     CXX=$ac_ct_CXX
3138   fi
3139 fi
3140
3141   fi
3142 fi
3143 # Provide some information about the compiler.
3144 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3145 ac_compiler=`set X $ac_compile; echo $2`
3146 { (ac_try="$ac_compiler --version >&5"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_compiler --version >&5") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }
3156 { (ac_try="$ac_compiler -v >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compiler -v >&5") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }
3166 { (ac_try="$ac_compiler -V >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler -V >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176
3177 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3178 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3179 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182   cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192 #ifndef __GNUC__
3193        choke me
3194 #endif
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compile") 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } &&
3214          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3215   { (case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_try") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; } &&
3224          { ac_try='test -s conftest.$ac_objext'
3225   { (case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_try") 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_compiler_gnu=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239         ac_compiler_gnu=no
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244
3245 fi
3246 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3247 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3248 GXX=`test $ac_compiler_gnu = yes && echo yes`
3249 ac_test_CXXFLAGS=${CXXFLAGS+set}
3250 ac_save_CXXFLAGS=$CXXFLAGS
3251 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3252 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cxx_g+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3257    ac_cxx_werror_flag=yes
3258    ac_cv_prog_cxx_g=no
3259    CXXFLAGS="-g"
3260    cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266
3267 int
3268 main ()
3269 {
3270
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282   (eval "$ac_compile") 2>conftest.er1
3283   ac_status=$?
3284   grep -v '^ *+' conftest.er1 >conftest.err
3285   rm -f conftest.er1
3286   cat conftest.err >&5
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } &&
3289          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3290   { (case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_try") 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; } &&
3299          { ac_try='test -s conftest.$ac_objext'
3300   { (case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; }; then
3309   ac_cv_prog_cxx_g=yes
3310 else
3311   echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314         CXXFLAGS=""
3315       cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321
3322 int
3323 main ()
3324 {
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_compile") 2>conftest.er1
3338   ac_status=$?
3339   grep -v '^ *+' conftest.er1 >conftest.err
3340   rm -f conftest.er1
3341   cat conftest.err >&5
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } &&
3344          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3345   { (case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_try") 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest.$ac_objext'
3355   { (case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_try") 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; }; then
3364   :
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3370          CXXFLAGS="-g"
3371          cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377
3378 int
3379 main ()
3380 {
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compile") 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } &&
3400          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3401   { (case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406   (eval "$ac_try") 2>&5
3407   ac_status=$?
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); }; } &&
3410          { ac_try='test -s conftest.$ac_objext'
3411   { (case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_try") 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; }; then
3420   ac_cv_prog_cxx_g=yes
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425
3426 fi
3427
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 fi
3433
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3436 fi
3437 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3438 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3439 if test "$ac_test_CXXFLAGS" = set; then
3440   CXXFLAGS=$ac_save_CXXFLAGS
3441 elif test $ac_cv_prog_cxx_g = yes; then
3442   if test "$GXX" = yes; then
3443     CXXFLAGS="-g -O2"
3444   else
3445     CXXFLAGS="-g"
3446   fi
3447 else
3448   if test "$GXX" = yes; then
3449     CXXFLAGS="-O2"
3450   else
3451     CXXFLAGS=
3452   fi
3453 fi
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460 if test -n "$ac_tool_prefix"; then
3461   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3465 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   if test -n "$CPPBIN"; then
3469   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476   for ac_exec_ext in '' $ac_executable_extensions; do
3477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3478     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483 done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CPPBIN=$ac_cv_prog_CPPBIN
3489 if test -n "$CPPBIN"; then
3490   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3491 echo "${ECHO_T}$CPPBIN" >&6; }
3492 else
3493   { echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6; }
3495 fi
3496
3497
3498 fi
3499 if test -z "$ac_cv_prog_CPPBIN"; then
3500   ac_ct_CPPBIN=$CPPBIN
3501   # Extract the first word of "cpp", so it can be a program name with args.
3502 set dummy cpp; ac_word=$2
3503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3505 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   if test -n "$ac_ct_CPPBIN"; then
3509   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516   for ac_exec_ext in '' $ac_executable_extensions; do
3517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3518     ac_cv_prog_ac_ct_CPPBIN="cpp"
3519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523 done
3524 IFS=$as_save_IFS
3525
3526 fi
3527 fi
3528 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3529 if test -n "$ac_ct_CPPBIN"; then
3530   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3531 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3532 else
3533   { echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6; }
3535 fi
3536
3537   if test "x$ac_ct_CPPBIN" = x; then
3538     CPPBIN="cpp"
3539   else
3540     case $cross_compiling:$ac_tool_warned in
3541 yes:)
3542 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3543 whose name does not start with the host triplet.  If you think this
3544 configuration is useful to you, please write to autoconf@gnu.org." >&5
3545 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3546 whose name does not start with the host triplet.  If you think this
3547 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3548 ac_tool_warned=yes ;;
3549 esac
3550     CPPBIN=$ac_ct_CPPBIN
3551   fi
3552 else
3553   CPPBIN="$ac_cv_prog_CPPBIN"
3554 fi
3555
3556
3557 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3558 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3559 if test "${wine_cv_toolsdir+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   if test -z "$with_wine_tools"; then
3563      if test "$cross_compiling" = "yes"; then
3564        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3565 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3566    { (exit 1); exit 1; }; }
3567      else
3568        wine_cv_toolsdir="\$(TOPOBJDIR)"
3569      fi
3570    elif test -d "$with_wine_tools/tools/winebuild"; then
3571      case $with_wine_tools in
3572        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3573        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3574      esac
3575    else
3576      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3577 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3578    { (exit 1); exit 1; }; }
3579    fi
3580 fi
3581 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3582 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3583 TOOLSDIR=$wine_cv_toolsdir
3584
3585
3586
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3593 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3594 # On Suns, sometimes $CPP names a directory.
3595 if test -n "$CPP" && test -d "$CPP"; then
3596   CPP=
3597 fi
3598 if test -z "$CPP"; then
3599   if test "${ac_cv_prog_CPP+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602       # Double quotes because CPP needs to be expanded
3603     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3604     do
3605       ac_preproc_ok=false
3606 for ac_c_preproc_warn_flag in '' yes
3607 do
3608   # Use a header file that comes with gcc, so configuring glibc
3609   # with a fresh cross-compiler works.
3610   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3611   # <limits.h> exists even on freestanding compilers.
3612   # On the NeXT, cc -E runs the code through the compiler's parser,
3613   # not just through cpp. "Syntax error" is here to catch this case.
3614   cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625                      Syntax error
3626 _ACEOF
3627 if { (ac_try="$ac_cpp conftest.$ac_ext"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634   ac_status=$?
3635   grep -v '^ *+' conftest.er1 >conftest.err
3636   rm -f conftest.er1
3637   cat conftest.err >&5
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); } >/dev/null; then
3640   if test -s conftest.err; then
3641     ac_cpp_err=$ac_c_preproc_warn_flag
3642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3643   else
3644     ac_cpp_err=
3645   fi
3646 else
3647   ac_cpp_err=yes
3648 fi
3649 if test -z "$ac_cpp_err"; then
3650   :
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655   # Broken: fails on valid input.
3656 continue
3657 fi
3658
3659 rm -f conftest.err conftest.$ac_ext
3660
3661   # OK, works on sane cases.  Now check whether nonexistent headers
3662   # can be detected and how.
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <ac_nonexistent.h>
3670 _ACEOF
3671 if { (ac_try="$ac_cpp conftest.$ac_ext"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } >/dev/null; then
3684   if test -s conftest.err; then
3685     ac_cpp_err=$ac_c_preproc_warn_flag
3686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3687   else
3688     ac_cpp_err=
3689   fi
3690 else
3691   ac_cpp_err=yes
3692 fi
3693 if test -z "$ac_cpp_err"; then
3694   # Broken: success on invalid input.
3695 continue
3696 else
3697   echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700   # Passes both tests.
3701 ac_preproc_ok=:
3702 break
3703 fi
3704
3705 rm -f conftest.err conftest.$ac_ext
3706
3707 done
3708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709 rm -f conftest.err conftest.$ac_ext
3710 if $ac_preproc_ok; then
3711   break
3712 fi
3713
3714     done
3715     ac_cv_prog_CPP=$CPP
3716
3717 fi
3718   CPP=$ac_cv_prog_CPP
3719 else
3720   ac_cv_prog_CPP=$CPP
3721 fi
3722 { echo "$as_me:$LINENO: result: $CPP" >&5
3723 echo "${ECHO_T}$CPP" >&6; }
3724 ac_preproc_ok=false
3725 for ac_c_preproc_warn_flag in '' yes
3726 do
3727   # Use a header file that comes with gcc, so configuring glibc
3728   # with a fresh cross-compiler works.
3729   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730   # <limits.h> exists even on freestanding compilers.
3731   # On the NeXT, cc -E runs the code through the compiler's parser,
3732   # not just through cpp. "Syntax error" is here to catch this case.
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #ifdef __STDC__
3740 # include <limits.h>
3741 #else
3742 # include <assert.h>
3743 #endif
3744                      Syntax error
3745 _ACEOF
3746 if { (ac_try="$ac_cpp conftest.$ac_ext"
3747 case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3753   ac_status=$?
3754   grep -v '^ *+' conftest.er1 >conftest.err
3755   rm -f conftest.er1
3756   cat conftest.err >&5
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } >/dev/null; then
3759   if test -s conftest.err; then
3760     ac_cpp_err=$ac_c_preproc_warn_flag
3761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3762   else
3763     ac_cpp_err=
3764   fi
3765 else
3766   ac_cpp_err=yes
3767 fi
3768 if test -z "$ac_cpp_err"; then
3769   :
3770 else
3771   echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774   # Broken: fails on valid input.
3775 continue
3776 fi
3777
3778 rm -f conftest.err conftest.$ac_ext
3779
3780   # OK, works on sane cases.  Now check whether nonexistent headers
3781   # can be detected and how.
3782   cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h.  */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h.  */
3788 #include <ac_nonexistent.h>
3789 _ACEOF
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } >/dev/null; then
3803   if test -s conftest.err; then
3804     ac_cpp_err=$ac_c_preproc_warn_flag
3805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3806   else
3807     ac_cpp_err=
3808   fi
3809 else
3810   ac_cpp_err=yes
3811 fi
3812 if test -z "$ac_cpp_err"; then
3813   # Broken: success on invalid input.
3814 continue
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819   # Passes both tests.
3820 ac_preproc_ok=:
3821 break
3822 fi
3823
3824 rm -f conftest.err conftest.$ac_ext
3825
3826 done
3827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3828 rm -f conftest.err conftest.$ac_ext
3829 if $ac_preproc_ok; then
3830   :
3831 else
3832   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3833 See \`config.log' for more details." >&5
3834 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3835 See \`config.log' for more details." >&2;}
3836    { (exit 1); exit 1; }; }
3837 fi
3838
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
3845
3846 { echo "$as_me:$LINENO: checking for X" >&5
3847 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3848
3849
3850 # Check whether --with-x was given.
3851 if test "${with_x+set}" = set; then
3852   withval=$with_x;
3853 fi
3854
3855 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3856 if test "x$with_x" = xno; then
3857   # The user explicitly disabled X.
3858   have_x=disabled
3859 else
3860   case $x_includes,$x_libraries in #(
3861     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3862 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3863    { (exit 1); exit 1; }; };; #(
3864     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   # One or both of the vars are not set, and there is no cached value.
3868 ac_x_includes=no ac_x_libraries=no
3869 rm -f -r conftest.dir
3870 if mkdir conftest.dir; then
3871   cd conftest.dir
3872   cat >Imakefile <<'_ACEOF'
3873 incroot:
3874         @echo incroot='${INCROOT}'
3875 usrlibdir:
3876         @echo usrlibdir='${USRLIBDIR}'
3877 libdir:
3878         @echo libdir='${LIBDIR}'
3879 _ACEOF
3880   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3881     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3882     for ac_var in incroot usrlibdir libdir; do
3883       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3884     done
3885     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3886     for ac_extension in a so sl; do
3887       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3888          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3889         ac_im_usrlibdir=$ac_im_libdir; break
3890       fi
3891     done
3892     # Screen out bogus values from the imake configuration.  They are
3893     # bogus both because they are the default anyway, and because
3894     # using them would break gcc on systems where it needs fixed includes.
3895     case $ac_im_incroot in
3896         /usr/include) ac_x_includes= ;;
3897         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3898     esac
3899     case $ac_im_usrlibdir in
3900         /usr/lib | /lib) ;;
3901         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3902     esac
3903   fi
3904   cd ..
3905   rm -f -r conftest.dir
3906 fi
3907
3908 # Standard set of common directories for X headers.
3909 # Check X11 before X11Rn because it is often a symlink to the current release.
3910 ac_x_header_dirs='
3911 /usr/X11/include
3912 /usr/X11R6/include
3913 /usr/X11R5/include
3914 /usr/X11R4/include
3915
3916 /usr/include/X11
3917 /usr/include/X11R6
3918 /usr/include/X11R5
3919 /usr/include/X11R4
3920
3921 /usr/local/X11/include
3922 /usr/local/X11R6/include
3923 /usr/local/X11R5/include
3924 /usr/local/X11R4/include
3925
3926 /usr/local/include/X11
3927 /usr/local/include/X11R6
3928 /usr/local/include/X11R5
3929 /usr/local/include/X11R4
3930
3931 /usr/X386/include
3932 /usr/x386/include
3933 /usr/XFree86/include/X11
3934
3935 /usr/include
3936 /usr/local/include
3937 /usr/unsupported/include
3938 /usr/athena/include
3939 /usr/local/x11r5/include
3940 /usr/lpp/Xamples/include
3941
3942 /usr/openwin/include
3943 /usr/openwin/share/include'
3944
3945 if test "$ac_x_includes" = no; then
3946   # Guess where to find include files, by looking for Xlib.h.
3947   # First, try using that file with no special directory specified.
3948   cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <X11/Xlib.h>
3955 _ACEOF
3956 if { (ac_try="$ac_cpp conftest.$ac_ext"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } >/dev/null; then
3969   if test -s conftest.err; then
3970     ac_cpp_err=$ac_c_preproc_warn_flag
3971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3972   else
3973     ac_cpp_err=
3974   fi
3975 else
3976   ac_cpp_err=yes
3977 fi
3978 if test -z "$ac_cpp_err"; then
3979   # We can compile using X headers with no special include directory.
3980 ac_x_includes=
3981 else
3982   echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985   for ac_dir in $ac_x_header_dirs; do
3986   if test -r "$ac_dir/X11/Xlib.h"; then
3987     ac_x_includes=$ac_dir
3988     break
3989   fi
3990 done
3991 fi
3992
3993 rm -f conftest.err conftest.$ac_ext
3994 fi # $ac_x_includes = no
3995
3996 if test "$ac_x_libraries" = no; then
3997   # Check for the libraries.
3998   # See if we find them without any special options.
3999   # Don't add to $LIBS permanently.
4000   ac_save_LIBS=$LIBS
4001   LIBS="-lX11 $LIBS"
4002   cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 #include <X11/Xlib.h>
4009 int
4010 main ()
4011 {
4012 XrmInitialize ()
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (ac_try="$ac_link"
4019 case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024   (eval "$ac_link") 2>conftest.er1
4025   ac_status=$?
4026   grep -v '^ *+' conftest.er1 >conftest.err
4027   rm -f conftest.er1
4028   cat conftest.err >&5
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); } &&
4031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4032   { (case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037   (eval "$ac_try") 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); }; } &&
4041          { ac_try='test -s conftest$ac_exeext'
4042   { (case "(($ac_try" in
4043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044   *) ac_try_echo=$ac_try;;
4045 esac
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047   (eval "$ac_try") 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; }; then
4051   LIBS=$ac_save_LIBS
4052 # We can link X programs with no special library path.
4053 ac_x_libraries=
4054 else
4055   echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058         LIBS=$ac_save_LIBS
4059 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4060 do
4061   # Don't even attempt the hair of trying to link an X program!
4062   for ac_extension in a so sl; do
4063     if test -r "$ac_dir/libX11.$ac_extension"; then
4064       ac_x_libraries=$ac_dir
4065       break 2
4066     fi
4067   done
4068 done
4069 fi
4070
4071 rm -f core conftest.err conftest.$ac_objext \
4072       conftest$ac_exeext conftest.$ac_ext
4073 fi # $ac_x_libraries = no
4074
4075 case $ac_x_includes,$ac_x_libraries in #(
4076   no,* | *,no | *\'*)
4077     # Didn't find X, or a directory has "'" in its name.
4078     ac_cv_have_x="have_x=no";; #(
4079   *)
4080     # Record where we found X for the cache.
4081     ac_cv_have_x="have_x=yes\
4082         ac_x_includes='$ac_x_includes'\
4083         ac_x_libraries='$ac_x_libraries'"
4084 esac
4085 fi
4086 ;; #(
4087     *) have_x=yes;;
4088   esac
4089   eval "$ac_cv_have_x"
4090 fi # $with_x != no
4091
4092 if test "$have_x" != yes; then
4093   { echo "$as_me:$LINENO: result: $have_x" >&5
4094 echo "${ECHO_T}$have_x" >&6; }
4095   no_x=yes
4096 else
4097   # If each of the values was on the command line, it overrides each guess.
4098   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4099   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4100   # Update the cache value to reflect the command line values.
4101   ac_cv_have_x="have_x=yes\
4102         ac_x_includes='$x_includes'\
4103         ac_x_libraries='$x_libraries'"
4104   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4105 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4106 fi
4107
4108 if test "$no_x" = yes; then
4109   # Not all programs may use this symbol, but it does not hurt to define it.
4110
4111 cat >>confdefs.h <<\_ACEOF
4112 #define X_DISPLAY_MISSING 1
4113 _ACEOF
4114
4115   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4116 else
4117   if test -n "$x_includes"; then
4118     X_CFLAGS="$X_CFLAGS -I$x_includes"
4119   fi
4120
4121   # It would also be nice to do this for all -L options, not just this one.
4122   if test -n "$x_libraries"; then
4123     X_LIBS="$X_LIBS -L$x_libraries"
4124     # For Solaris; some versions of Sun CC require a space after -R and
4125     # others require no space.  Words are not sufficient . . . .
4126     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4127 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4128     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4129     ac_xsave_c_werror_flag=$ac_c_werror_flag
4130     ac_c_werror_flag=yes
4131     cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137
4138 int
4139 main ()
4140 {
4141
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext conftest$ac_exeext
4147 if { (ac_try="$ac_link"
4148 case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153   (eval "$ac_link") 2>conftest.er1
4154   ac_status=$?
4155   grep -v '^ *+' conftest.er1 >conftest.err
4156   rm -f conftest.er1
4157   cat conftest.err >&5
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); } &&
4160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4161   { (case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_try") 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; } &&
4170          { ac_try='test -s conftest$ac_exeext'
4171   { (case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176   (eval "$ac_try") 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; }; then
4180   { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4182        X_LIBS="$X_LIBS -R$x_libraries"
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187         LIBS="$ac_xsave_LIBS -R $x_libraries"
4188        cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194
4195 int
4196 main ()
4197 {
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (ac_try="$ac_link"
4205 case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210   (eval "$ac_link") 2>conftest.er1
4211   ac_status=$?
4212   grep -v '^ *+' conftest.er1 >conftest.err
4213   rm -f conftest.er1
4214   cat conftest.err >&5
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); } &&
4217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218   { (case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_try") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }; } &&
4227          { ac_try='test -s conftest$ac_exeext'
4228   { (case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_try") 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   { echo "$as_me:$LINENO: result: yes" >&5
4238 echo "${ECHO_T}yes" >&6; }
4239           X_LIBS="$X_LIBS -R $x_libraries"
4240 else
4241   echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244         { echo "$as_me:$LINENO: result: neither works" >&5
4245 echo "${ECHO_T}neither works" >&6; }
4246 fi
4247
4248 rm -f core conftest.err conftest.$ac_objext \
4249       conftest$ac_exeext conftest.$ac_ext
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext \
4253       conftest$ac_exeext conftest.$ac_ext
4254     ac_c_werror_flag=$ac_xsave_c_werror_flag
4255     LIBS=$ac_xsave_LIBS
4256   fi
4257
4258   # Check for system-dependent libraries X programs must link with.
4259   # Do this before checking for the system-independent R6 libraries
4260   # (-lICE), since we may need -lsocket or whatever for X linking.
4261
4262   if test "$ISC" = yes; then
4263     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4264   else
4265     # Martyn Johnson says this is needed for Ultrix, if the X
4266     # libraries were built with DECnet support.  And Karl Berry says
4267     # the Alpha needs dnet_stub (dnet does not exist).
4268     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4269     cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275
4276 /* Override any GCC internal prototype to avoid an error.
4277    Use char because int might match the return type of a GCC
4278    builtin and then its argument prototype would still apply.  */
4279 #ifdef __cplusplus
4280 extern "C"
4281 #endif
4282 char XOpenDisplay ();
4283 int
4284 main ()
4285 {
4286 return XOpenDisplay ();
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (ac_try="$ac_link"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298   (eval "$ac_link") 2>conftest.er1
4299   ac_status=$?
4300   grep -v '^ *+' conftest.er1 >conftest.err
4301   rm -f conftest.er1
4302   cat conftest.err >&5
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } &&
4305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306   { (case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_try") 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; } &&
4315          { ac_try='test -s conftest$ac_exeext'
4316   { (case "(($ac_try" in
4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318   *) ac_try_echo=$ac_try;;
4319 esac
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321   (eval "$ac_try") 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   :
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4331 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4332 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   ac_check_lib_save_LIBS=$LIBS
4336 LIBS="-ldnet  $LIBS"
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343
4344 /* Override any GCC internal prototype to avoid an error.
4345    Use char because int might match the return type of a GCC
4346    builtin and then its argument prototype would still apply.  */
4347 #ifdef __cplusplus
4348 extern "C"
4349 #endif
4350 char dnet_ntoa ();
4351 int
4352 main ()
4353 {
4354 return dnet_ntoa ();
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366   (eval "$ac_link") 2>conftest.er1
4367   ac_status=$?
4368   grep -v '^ *+' conftest.er1 >conftest.err
4369   rm -f conftest.er1
4370   cat conftest.err >&5
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); } &&
4373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4374   { (case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; } &&
4383          { ac_try='test -s conftest$ac_exeext'
4384   { (case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389   (eval "$ac_try") 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; }; then
4393   ac_cv_lib_dnet_dnet_ntoa=yes
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398         ac_cv_lib_dnet_dnet_ntoa=no
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext \
4402       conftest$ac_exeext conftest.$ac_ext
4403 LIBS=$ac_check_lib_save_LIBS
4404 fi
4405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4406 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4407 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4408   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4409 fi
4410
4411     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4412       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4413 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4414 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   ac_check_lib_save_LIBS=$LIBS
4418 LIBS="-ldnet_stub  $LIBS"
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h.  */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h.  */
4425
4426 /* Override any GCC internal prototype to avoid an error.
4427    Use char because int might match the return type of a GCC
4428    builtin and then its argument prototype would still apply.  */
4429 #ifdef __cplusplus
4430 extern "C"
4431 #endif
4432 char dnet_ntoa ();
4433 int
4434 main ()
4435 {
4436 return dnet_ntoa ();
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (ac_try="$ac_link"
4443 case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_link") 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456   { (case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461   (eval "$ac_try") 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; } &&
4465          { ac_try='test -s conftest$ac_exeext'
4466   { (case "(($ac_try" in
4467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468   *) ac_try_echo=$ac_try;;
4469 esac
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471   (eval "$ac_try") 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; }; then
4475   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         ac_cv_lib_dnet_stub_dnet_ntoa=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext \
4484       conftest$ac_exeext conftest.$ac_ext
4485 LIBS=$ac_check_lib_save_LIBS
4486 fi
4487 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4488 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4489 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4490   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4491 fi
4492
4493     fi
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext \
4497       conftest$ac_exeext conftest.$ac_ext
4498     LIBS="$ac_xsave_LIBS"
4499
4500     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4501     # to get the SysV transport functions.
4502     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4503     # needs -lnsl.
4504     # The nsl library prevents programs from opening the X display
4505     # on Irix 5.2, according to T.E. Dickey.
4506     # The functions gethostbyname, getservbyname, and inet_addr are
4507     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4508     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4509 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4510 if test "${ac_cv_func_gethostbyname+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4521 #define gethostbyname innocuous_gethostbyname
4522
4523 /* System header to define __stub macros and hopefully few prototypes,
4524     which can conflict with char gethostbyname (); below.
4525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526     <limits.h> exists even on freestanding compilers.  */
4527
4528 #ifdef __STDC__
4529 # include <limits.h>
4530 #else
4531 # include <assert.h>
4532 #endif
4533
4534 #undef gethostbyname
4535
4536 /* Override any GCC internal prototype to avoid an error.
4537    Use char because int might match the return type of a GCC
4538    builtin and then its argument prototype would still apply.  */
4539 #ifdef __cplusplus
4540 extern "C"
4541 #endif
4542 char gethostbyname ();
4543 /* The GNU C library defines this for functions which it implements
4544     to always fail with ENOSYS.  Some functions are actually named
4545     something starting with __ and the normal name is an alias.  */
4546 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4547 choke me
4548 #endif
4549
4550 int
4551 main ()
4552 {
4553 return gethostbyname ();
4554   ;
4555   return 0;
4556 }
4557 _ACEOF
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (ac_try="$ac_link"
4560 case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565   (eval "$ac_link") 2>conftest.er1
4566   ac_status=$?
4567   grep -v '^ *+' conftest.er1 >conftest.err
4568   rm -f conftest.er1
4569   cat conftest.err >&5
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } &&
4572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573   { (case "(($ac_try" in
4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575   *) ac_try_echo=$ac_try;;
4576 esac
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578   (eval "$ac_try") 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; } &&
4582          { ac_try='test -s conftest$ac_exeext'
4583   { (case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588   (eval "$ac_try") 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   ac_cv_func_gethostbyname=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597         ac_cv_func_gethostbyname=no
4598 fi
4599
4600 rm -f core conftest.err conftest.$ac_objext \
4601       conftest$ac_exeext conftest.$ac_ext
4602 fi
4603 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4604 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4605
4606     if test $ac_cv_func_gethostbyname = no; then
4607       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4608 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4609 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   ac_check_lib_save_LIBS=$LIBS
4613 LIBS="-lnsl  $LIBS"
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620
4621 /* Override any GCC internal prototype to avoid an error.
4622    Use char because int might match the return type of a GCC
4623    builtin and then its argument prototype would still apply.  */
4624 #ifdef __cplusplus
4625 extern "C"
4626 #endif
4627 char gethostbyname ();
4628 int
4629 main ()
4630 {
4631 return gethostbyname ();
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext conftest$ac_exeext
4637 if { (ac_try="$ac_link"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_link") 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651   { (case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656   (eval "$ac_try") 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; } &&
4660          { ac_try='test -s conftest$ac_exeext'
4661   { (case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666   (eval "$ac_try") 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_cv_lib_nsl_gethostbyname=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675         ac_cv_lib_nsl_gethostbyname=no
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext \
4679       conftest$ac_exeext conftest.$ac_ext
4680 LIBS=$ac_check_lib_save_LIBS
4681 fi
4682 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4683 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4684 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4685   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4686 fi
4687
4688       if test $ac_cv_lib_nsl_gethostbyname = no; then
4689         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4690 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4691 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   ac_check_lib_save_LIBS=$LIBS
4695 LIBS="-lbsd  $LIBS"
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702
4703 /* Override any GCC internal prototype to avoid an error.
4704    Use char because int might match the return type of a GCC
4705    builtin and then its argument prototype would still apply.  */
4706 #ifdef __cplusplus
4707 extern "C"
4708 #endif
4709 char gethostbyname ();
4710 int
4711 main ()
4712 {
4713 return gethostbyname ();
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (ac_try="$ac_link"
4720 case "(($ac_try" in
4721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722   *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725   (eval "$ac_link") 2>conftest.er1
4726   ac_status=$?
4727   grep -v '^ *+' conftest.er1 >conftest.err
4728   rm -f conftest.er1
4729   cat conftest.err >&5
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } &&
4732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4733   { (case "(($ac_try" in
4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735   *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738   (eval "$ac_try") 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }; } &&
4742          { ac_try='test -s conftest$ac_exeext'
4743   { (case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748   (eval "$ac_try") 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ac_cv_lib_bsd_gethostbyname=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757         ac_cv_lib_bsd_gethostbyname=no
4758 fi
4759
4760 rm -f core conftest.err conftest.$ac_objext \
4761       conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4763 fi
4764 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4765 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4766 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4767   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4768 fi
4769
4770       fi
4771     fi
4772
4773     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4774     # socket/setsockopt and other routines are undefined under SCO ODT
4775     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4776     # on later versions), says Simon Leinen: it contains gethostby*
4777     # variants that don't use the name server (or something).  -lsocket
4778     # must be given before -lnsl if both are needed.  We assume that
4779     # if connect needs -lnsl, so does gethostbyname.
4780     { echo "$as_me:$LINENO: checking for connect" >&5
4781 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4782 if test "${ac_cv_func_connect+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h.  */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h.  */
4791 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4793 #define connect innocuous_connect
4794
4795 /* System header to define __stub macros and hopefully few prototypes,
4796     which can conflict with char connect (); below.
4797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798     <limits.h> exists even on freestanding compilers.  */
4799
4800 #ifdef __STDC__
4801 # include <limits.h>
4802 #else
4803 # include <assert.h>
4804 #endif
4805
4806 #undef connect
4807
4808 /* Override any GCC internal prototype to avoid an error.
4809    Use char because int might match the return type of a GCC
4810    builtin and then its argument prototype would still apply.  */
4811 #ifdef __cplusplus
4812 extern "C"
4813 #endif
4814 char connect ();
4815 /* The GNU C library defines this for functions which it implements
4816     to always fail with ENOSYS.  Some functions are actually named
4817     something starting with __ and the normal name is an alias.  */
4818 #if defined __stub_connect || defined __stub___connect
4819 choke me
4820 #endif
4821
4822 int
4823 main ()
4824 {
4825 return connect ();
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 rm -f conftest.$ac_objext conftest$ac_exeext
4831 if { (ac_try="$ac_link"
4832 case "(($ac_try" in
4833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834   *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837   (eval "$ac_link") 2>conftest.er1
4838   ac_status=$?
4839   grep -v '^ *+' conftest.er1 >conftest.err
4840   rm -f conftest.er1
4841   cat conftest.err >&5
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } &&
4844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4845   { (case "(($ac_try" in
4846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847   *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850   (eval "$ac_try") 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; } &&
4854          { ac_try='test -s conftest$ac_exeext'
4855   { (case "(($ac_try" in
4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857   *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860   (eval "$ac_try") 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; }; then
4864   ac_cv_func_connect=yes
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869         ac_cv_func_connect=no
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext \
4873       conftest$ac_exeext conftest.$ac_ext
4874 fi
4875 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4876 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4877
4878     if test $ac_cv_func_connect = no; then
4879       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4880 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4881 if test "${ac_cv_lib_socket_connect+set}" = set; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   ac_check_lib_save_LIBS=$LIBS
4885 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h.  */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h.  */
4892
4893 /* Override any GCC internal prototype to avoid an error.
4894    Use char because int might match the return type of a GCC
4895    builtin and then its argument prototype would still apply.  */
4896 #ifdef __cplusplus
4897 extern "C"
4898 #endif
4899 char connect ();
4900 int
4901 main ()
4902 {
4903 return connect ();
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext conftest$ac_exeext
4909 if { (ac_try="$ac_link"
4910 case "(($ac_try" in
4911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912   *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915   (eval "$ac_link") 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4923   { (case "(($ac_try" in
4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925   *) ac_try_echo=$ac_try;;
4926 esac
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928   (eval "$ac_try") 2>&5
4929   ac_status=$?
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); }; } &&
4932          { ac_try='test -s conftest$ac_exeext'
4933   { (case "(($ac_try" in
4934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935   *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938   (eval "$ac_try") 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   ac_cv_lib_socket_connect=yes
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947         ac_cv_lib_socket_connect=no
4948 fi
4949
4950 rm -f core conftest.err conftest.$ac_objext \
4951       conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_check_lib_save_LIBS
4953 fi
4954 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4955 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4956 if test $ac_cv_lib_socket_connect = yes; then
4957   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4958 fi
4959
4960     fi
4961
4962     # Guillermo Gomez says -lposix is necessary on A/UX.
4963     { echo "$as_me:$LINENO: checking for remove" >&5
4964 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4965 if test "${ac_cv_func_remove+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h.  */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h.  */
4974 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4976 #define remove innocuous_remove
4977
4978 /* System header to define __stub macros and hopefully few prototypes,
4979     which can conflict with char remove (); below.
4980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981     <limits.h> exists even on freestanding compilers.  */
4982
4983 #ifdef __STDC__
4984 # include <limits.h>
4985 #else
4986 # include <assert.h>
4987 #endif
4988
4989 #undef remove
4990
4991 /* Override any GCC internal prototype to avoid an error.
4992    Use char because int might match the return type of a GCC
4993    builtin and then its argument prototype would still apply.  */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 char remove ();
4998 /* The GNU C library defines this for functions which it implements
4999     to always fail with ENOSYS.  Some functions are actually named
5000     something starting with __ and the normal name is an alias.  */
5001 #if defined __stub_remove || defined __stub___remove
5002 choke me
5003 #endif
5004
5005 int
5006 main ()
5007 {
5008 return remove ();
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 rm -f conftest.$ac_objext conftest$ac_exeext
5014 if { (ac_try="$ac_link"
5015 case "(($ac_try" in
5016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017   *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020   (eval "$ac_link") 2>conftest.er1
5021   ac_status=$?
5022   grep -v '^ *+' conftest.er1 >conftest.err
5023   rm -f conftest.er1
5024   cat conftest.err >&5
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } &&
5027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5028   { (case "(($ac_try" in
5029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030   *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033   (eval "$ac_try") 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }; } &&
5037          { ac_try='test -s conftest$ac_exeext'
5038   { (case "(($ac_try" in
5039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040   *) ac_try_echo=$ac_try;;
5041 esac
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043   (eval "$ac_try") 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; }; then
5047   ac_cv_func_remove=yes
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052         ac_cv_func_remove=no
5053 fi
5054
5055 rm -f core conftest.err conftest.$ac_objext \
5056       conftest$ac_exeext conftest.$ac_ext
5057 fi
5058 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5059 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5060
5061     if test $ac_cv_func_remove = no; then
5062       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5063 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5064 if test "${ac_cv_lib_posix_remove+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   ac_check_lib_save_LIBS=$LIBS
5068 LIBS="-lposix  $LIBS"
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h.  */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h.  */
5075
5076 /* Override any GCC internal prototype to avoid an error.
5077    Use char because int might match the return type of a GCC
5078    builtin and then its argument prototype would still apply.  */
5079 #ifdef __cplusplus
5080 extern "C"
5081 #endif
5082 char remove ();
5083 int
5084 main ()
5085 {
5086 return remove ();
5087   ;
5088   return 0;
5089 }
5090 _ACEOF
5091 rm -f conftest.$ac_objext conftest$ac_exeext
5092 if { (ac_try="$ac_link"
5093 case "(($ac_try" in
5094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095   *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098   (eval "$ac_link") 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5106   { (case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111   (eval "$ac_try") 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; } &&
5115          { ac_try='test -s conftest$ac_exeext'
5116   { (case "(($ac_try" in
5117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118   *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121   (eval "$ac_try") 2>&5
5122   ac_status=$?
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); }; }; then
5125   ac_cv_lib_posix_remove=yes
5126 else
5127   echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130         ac_cv_lib_posix_remove=no
5131 fi
5132
5133 rm -f core conftest.err conftest.$ac_objext \
5134       conftest$ac_exeext conftest.$ac_ext
5135 LIBS=$ac_check_lib_save_LIBS
5136 fi
5137 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5138 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5139 if test $ac_cv_lib_posix_remove = yes; then
5140   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5141 fi
5142
5143     fi
5144
5145     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5146     { echo "$as_me:$LINENO: checking for shmat" >&5
5147 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5148 if test "${ac_cv_func_shmat+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h.  */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h.  */
5157 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5159 #define shmat innocuous_shmat
5160
5161 /* System header to define __stub macros and hopefully few prototypes,
5162     which can conflict with char shmat (); below.
5163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164     <limits.h> exists even on freestanding compilers.  */
5165
5166 #ifdef __STDC__
5167 # include <limits.h>
5168 #else
5169 # include <assert.h>
5170 #endif
5171
5172 #undef shmat
5173
5174 /* Override any GCC internal prototype to avoid an error.
5175    Use char because int might match the return type of a GCC
5176    builtin and then its argument prototype would still apply.  */
5177 #ifdef __cplusplus
5178 extern "C"
5179 #endif
5180 char shmat ();
5181 /* The GNU C library defines this for functions which it implements
5182     to always fail with ENOSYS.  Some functions are actually named
5183     something starting with __ and the normal name is an alias.  */
5184 #if defined __stub_shmat || defined __stub___shmat
5185 choke me
5186 #endif
5187
5188 int
5189 main ()
5190 {
5191 return shmat ();
5192   ;
5193   return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext conftest$ac_exeext
5197 if { (ac_try="$ac_link"
5198 case "(($ac_try" in
5199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200   *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203   (eval "$ac_link") 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } &&
5210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5211   { (case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216   (eval "$ac_try") 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (case "(($ac_try" in
5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223   *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226   (eval "$ac_try") 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }; }; then
5230   ac_cv_func_shmat=yes
5231 else
5232   echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5234
5235         ac_cv_func_shmat=no
5236 fi
5237
5238 rm -f core conftest.err conftest.$ac_objext \
5239       conftest$ac_exeext conftest.$ac_ext
5240 fi
5241 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5242 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5243
5244     if test $ac_cv_func_shmat = no; then
5245       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5246 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5247 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   ac_check_lib_save_LIBS=$LIBS
5251 LIBS="-lipc  $LIBS"
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258
5259 /* Override any GCC internal prototype to avoid an error.
5260    Use char because int might match the return type of a GCC
5261    builtin and then its argument prototype would still apply.  */
5262 #ifdef __cplusplus
5263 extern "C"
5264 #endif
5265 char shmat ();
5266 int
5267 main ()
5268 {
5269 return shmat ();
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (ac_try="$ac_link"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_link") 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } &&
5288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5289   { (case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_try") 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; } &&
5298          { ac_try='test -s conftest$ac_exeext'
5299   { (case "(($ac_try" in
5300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301   *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304   (eval "$ac_try") 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; }; then
5308   ac_cv_lib_ipc_shmat=yes
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313         ac_cv_lib_ipc_shmat=no
5314 fi
5315
5316 rm -f core conftest.err conftest.$ac_objext \
5317       conftest$ac_exeext conftest.$ac_ext
5318 LIBS=$ac_check_lib_save_LIBS
5319 fi
5320 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5321 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5322 if test $ac_cv_lib_ipc_shmat = yes; then
5323   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5324 fi
5325
5326     fi
5327   fi
5328
5329   # Check for libraries that X11R6 Xt/Xaw programs need.
5330   ac_save_LDFLAGS=$LDFLAGS
5331   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5332   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5333   # check for ICE first), but we must link in the order -lSM -lICE or
5334   # we get undefined symbols.  So assume we have SM if we have ICE.
5335   # These have to be linked with before -lX11, unlike the other
5336   # libraries we check for below, so use a different variable.
5337   # John Interrante, Karl Berry
5338   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5339 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5340 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   ac_check_lib_save_LIBS=$LIBS
5344 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h.  */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h.  */
5351
5352 /* Override any GCC internal prototype to avoid an error.
5353    Use char because int might match the return type of a GCC
5354    builtin and then its argument prototype would still apply.  */
5355 #ifdef __cplusplus
5356 extern "C"
5357 #endif
5358 char IceConnectionNumber ();
5359 int
5360 main ()
5361 {
5362 return IceConnectionNumber ();
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (ac_try="$ac_link"
5369 case "(($ac_try" in
5370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371   *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374   (eval "$ac_link") 2>conftest.er1
5375   ac_status=$?
5376   grep -v '^ *+' conftest.er1 >conftest.err
5377   rm -f conftest.er1
5378   cat conftest.err >&5
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } &&
5381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5382   { (case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_try") 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; } &&
5391          { ac_try='test -s conftest$ac_exeext'
5392   { (case "(($ac_try" in
5393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394   *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397   (eval "$ac_try") 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_cv_lib_ICE_IceConnectionNumber=yes
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406         ac_cv_lib_ICE_IceConnectionNumber=no
5407 fi
5408
5409 rm -f core conftest.err conftest.$ac_objext \
5410       conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5412 fi
5413 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5414 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5415 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5416   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5417 fi
5418
5419   LDFLAGS=$ac_save_LDFLAGS
5420
5421 fi
5422
5423 for ac_prog in flex lex
5424 do
5425   # Extract the first word of "$ac_prog", so it can be a program name with args.
5426 set dummy $ac_prog; ac_word=$2
5427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5429 if test "${ac_cv_prog_LEX+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   if test -n "$LEX"; then
5433   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438   IFS=$as_save_IFS
5439   test -z "$as_dir" && as_dir=.
5440   for ac_exec_ext in '' $ac_executable_extensions; do
5441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5442     ac_cv_prog_LEX="$ac_prog"
5443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444     break 2
5445   fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 LEX=$ac_cv_prog_LEX
5453 if test -n "$LEX"; then
5454   { echo "$as_me:$LINENO: result: $LEX" >&5
5455 echo "${ECHO_T}$LEX" >&6; }
5456 else
5457   { echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6; }
5459 fi
5460
5461
5462   test -n "$LEX" && break
5463 done
5464 test -n "$LEX" || LEX=":"
5465
5466 if test -z "$LEXLIB"
5467 then
5468   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5469 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5470 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lfl  $LIBS"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481
5482 /* Override any GCC internal prototype to avoid an error.
5483    Use char because int might match the return type of a GCC
5484    builtin and then its argument prototype would still apply.  */
5485 #ifdef __cplusplus
5486 extern "C"
5487 #endif
5488 char yywrap ();
5489 int
5490 main ()
5491 {
5492 return yywrap ();
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (ac_try="$ac_link"
5499 case "(($ac_try" in
5500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501   *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504   (eval "$ac_link") 2>conftest.er1
5505   ac_status=$?
5506   grep -v '^ *+' conftest.er1 >conftest.err
5507   rm -f conftest.er1
5508   cat conftest.err >&5
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } &&
5511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512   { (case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_try") 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); }; } &&
5521          { ac_try='test -s conftest$ac_exeext'
5522   { (case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_try") 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; }; then
5531   ac_cv_lib_fl_yywrap=yes
5532 else
5533   echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536         ac_cv_lib_fl_yywrap=no
5537 fi
5538
5539 rm -f core conftest.err conftest.$ac_objext \
5540       conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5542 fi
5543 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5544 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5545 if test $ac_cv_lib_fl_yywrap = yes; then
5546   LEXLIB="-lfl"
5547 else
5548   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5549 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5550 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-ll  $LIBS"
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561
5562 /* Override any GCC internal prototype to avoid an error.
5563    Use char because int might match the return type of a GCC
5564    builtin and then its argument prototype would still apply.  */
5565 #ifdef __cplusplus
5566 extern "C"
5567 #endif
5568 char yywrap ();
5569 int
5570 main ()
5571 {
5572 return yywrap ();
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (ac_try="$ac_link"
5579 case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584   (eval "$ac_link") 2>conftest.er1
5585   ac_status=$?
5586   grep -v '^ *+' conftest.er1 >conftest.err
5587   rm -f conftest.er1
5588   cat conftest.err >&5
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); } &&
5591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5592   { (case "(($ac_try" in
5593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594   *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597   (eval "$ac_try") 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; } &&
5601          { ac_try='test -s conftest$ac_exeext'
5602   { (case "(($ac_try" in
5603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604   *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607   (eval "$ac_try") 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); }; }; then
5611   ac_cv_lib_l_yywrap=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616         ac_cv_lib_l_yywrap=no
5617 fi
5618
5619 rm -f core conftest.err conftest.$ac_objext \
5620       conftest$ac_exeext conftest.$ac_ext
5621 LIBS=$ac_check_lib_save_LIBS
5622 fi
5623 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5624 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5625 if test $ac_cv_lib_l_yywrap = yes; then
5626   LEXLIB="-ll"
5627 fi
5628
5629 fi
5630
5631 fi
5632
5633 if test "x$LEX" != "x:"; then
5634   { echo "$as_me:$LINENO: checking lex output file root" >&5
5635 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5636 if test "${ac_cv_prog_lex_root+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   # The minimal lex program is just a single line: %%.  But some broken lexes
5640 # (Solaris, I think it was) want two %% lines, so accommodate them.
5641 cat >conftest.l <<_ACEOF
5642 %%
5643 %%
5644 _ACEOF
5645 { (ac_try="$LEX conftest.l"
5646 case "(($ac_try" in
5647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648   *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651   (eval "$LEX conftest.l") 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }
5655 if test -f lex.yy.c; then
5656   ac_cv_prog_lex_root=lex.yy
5657 elif test -f lexyy.c; then
5658   ac_cv_prog_lex_root=lexyy
5659 else
5660   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5661 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5662    { (exit 1); exit 1; }; }
5663 fi
5664 fi
5665 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5666 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5667 rm -f conftest.l
5668 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5669
5670 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5671 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5672 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5673   echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675   # POSIX says lex can declare yytext either as a pointer or an array; the
5676 # default is implementation-dependent. Figure out which it is, since
5677 # not all implementations provide the %pointer and %array declarations.
5678 ac_cv_prog_lex_yytext_pointer=no
5679 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5680 ac_save_LIBS=$LIBS
5681 LIBS="$LIBS $LEXLIB"
5682 cat >conftest.$ac_ext <<_ACEOF
5683 `cat $LEX_OUTPUT_ROOT.c`
5684 _ACEOF
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (ac_try="$ac_link"
5687 case "(($ac_try" in
5688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689   *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692   (eval "$ac_link") 2>conftest.er1
5693   ac_status=$?
5694   grep -v '^ *+' conftest.er1 >conftest.err
5695   rm -f conftest.er1
5696   cat conftest.err >&5
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); } &&
5699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5700   { (case "(($ac_try" in
5701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702   *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705   (eval "$ac_try") 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); }; } &&
5709          { ac_try='test -s conftest$ac_exeext'
5710   { (case "(($ac_try" in
5711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712   *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715   (eval "$ac_try") 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; }; then
5719   ac_cv_prog_lex_yytext_pointer=yes
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724
5725 fi
5726
5727 rm -f core conftest.err conftest.$ac_objext \
5728       conftest$ac_exeext conftest.$ac_ext
5729 LIBS=$ac_save_LIBS
5730 rm -f "${LEX_OUTPUT_ROOT}.c"
5731
5732 fi
5733 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5734 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5735 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5736
5737 cat >>confdefs.h <<\_ACEOF
5738 #define YYTEXT_POINTER 1
5739 _ACEOF
5740
5741 fi
5742
5743 fi
5744
5745 for ac_prog in $LEX flex lex
5746 do
5747   # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_XLEX+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   if test -n "$XLEX"; then
5755   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762   for ac_exec_ext in '' $ac_executable_extensions; do
5763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764     ac_cv_prog_XLEX="$ac_prog"
5765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 XLEX=$ac_cv_prog_XLEX
5775 if test -n "$XLEX"; then
5776   { echo "$as_me:$LINENO: result: $XLEX" >&5
5777 echo "${ECHO_T}$XLEX" >&6; }
5778 else
5779   { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5781 fi
5782
5783
5784   test -n "$XLEX" && break
5785 done
5786 test -n "$XLEX" || XLEX="none"
5787
5788 if test "$XLEX" = "none"
5789 then
5790   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5791 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5792    { (exit 1); exit 1; }; }
5793 fi
5794
5795 for ac_prog in bison
5796 do
5797   # Extract the first word of "$ac_prog", so it can be a program name with args.
5798 set dummy $ac_prog; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_BISON+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   if test -n "$BISON"; then
5805   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812   for ac_exec_ext in '' $ac_executable_extensions; do
5813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814     ac_cv_prog_BISON="$ac_prog"
5815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 BISON=$ac_cv_prog_BISON
5825 if test -n "$BISON"; then
5826   { echo "$as_me:$LINENO: result: $BISON" >&5
5827 echo "${ECHO_T}$BISON" >&6; }
5828 else
5829   { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5831 fi
5832
5833
5834   test -n "$BISON" && break
5835 done
5836 test -n "$BISON" || BISON="none"
5837
5838 if test "$BISON" = "none"
5839 then
5840   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5841 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5842    { (exit 1); exit 1; }; }
5843 fi
5844
5845 if test -n "$ac_tool_prefix"; then
5846   for ac_prog in gas as
5847   do
5848     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_AS+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$AS"; then
5856   ac_cv_prog_AS="$AS" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 AS=$ac_cv_prog_AS
5876 if test -n "$AS"; then
5877   { echo "$as_me:$LINENO: result: $AS" >&5
5878 echo "${ECHO_T}$AS" >&6; }
5879 else
5880   { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5882 fi
5883
5884
5885     test -n "$AS" && break
5886   done
5887 fi
5888 if test -z "$AS"; then
5889   ac_ct_AS=$AS
5890   for ac_prog in gas as
5891 do
5892   # Extract the first word of "$ac_prog", so it can be a program name with args.
5893 set dummy $ac_prog; ac_word=$2
5894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   if test -n "$ac_ct_AS"; then
5900   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   for ac_exec_ext in '' $ac_executable_extensions; do
5908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5909     ac_cv_prog_ac_ct_AS="$ac_prog"
5910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5920 if test -n "$ac_ct_AS"; then
5921   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5922 echo "${ECHO_T}$ac_ct_AS" >&6; }
5923 else
5924   { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5926 fi
5927
5928
5929   test -n "$ac_ct_AS" && break
5930 done
5931
5932   if test "x$ac_ct_AS" = x; then
5933     AS="as"
5934   else
5935     case $cross_compiling:$ac_tool_warned in
5936 yes:)
5937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5938 whose name does not start with the host triplet.  If you think this
5939 configuration is useful to you, please write to autoconf@gnu.org." >&5
5940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5941 whose name does not start with the host triplet.  If you think this
5942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5943 ac_tool_warned=yes ;;
5944 esac
5945     AS=$ac_ct_AS
5946   fi
5947 fi
5948
5949 if test -n "$ac_tool_prefix"; then
5950   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}ld; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_prog_LD+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   if test -n "$LD"; then
5958   ac_cv_prog_LD="$LD" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965   for ac_exec_ext in '' $ac_executable_extensions; do
5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_prog_LD="${ac_tool_prefix}ld"
5968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 LD=$ac_cv_prog_LD
5978 if test -n "$LD"; then
5979   { echo "$as_me:$LINENO: result: $LD" >&5
5980 echo "${ECHO_T}$LD" >&6; }
5981 else
5982   { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5984 fi
5985
5986
5987 fi
5988 if test -z "$ac_cv_prog_LD"; then
5989   ac_ct_LD=$LD
5990   # Extract the first word of "ld", so it can be a program name with args.
5991 set dummy ld; ac_word=$2
5992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5994 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   if test -n "$ac_ct_LD"; then
5998   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005   for ac_exec_ext in '' $ac_executable_extensions; do
6006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6007     ac_cv_prog_ac_ct_LD="ld"
6008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012 done
6013 IFS=$as_save_IFS
6014
6015 fi
6016 fi
6017 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6018 if test -n "$ac_ct_LD"; then
6019   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6020 echo "${ECHO_T}$ac_ct_LD" >&6; }
6021 else
6022   { echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6; }
6024 fi
6025
6026   if test "x$ac_ct_LD" = x; then
6027     LD="ld"
6028   else
6029     case $cross_compiling:$ac_tool_warned in
6030 yes:)
6031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6032 whose name does not start with the host triplet.  If you think this
6033 configuration is useful to you, please write to autoconf@gnu.org." >&5
6034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6035 whose name does not start with the host triplet.  If you think this
6036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039     LD=$ac_ct_LD
6040   fi
6041 else
6042   LD="$ac_cv_prog_LD"
6043 fi
6044
6045 if test -n "$ac_tool_prefix"; then
6046   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ar; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_AR+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   if test -n "$AR"; then
6054   ac_cv_prog_AR="$AR" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_prog_AR="${ac_tool_prefix}ar"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 AR=$ac_cv_prog_AR
6074 if test -n "$AR"; then
6075   { echo "$as_me:$LINENO: result: $AR" >&5
6076 echo "${ECHO_T}$AR" >&6; }
6077 else
6078   { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_AR"; then
6085   ac_ct_AR=$AR
6086   # Extract the first word of "ar", so it can be a program name with args.
6087 set dummy ar; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   if test -n "$ac_ct_AR"; then
6094   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101   for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_prog_ac_ct_AR="ar"
6104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114 if test -n "$ac_ct_AR"; then
6115   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6116 echo "${ECHO_T}$ac_ct_AR" >&6; }
6117 else
6118   { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6120 fi
6121
6122   if test "x$ac_ct_AR" = x; then
6123     AR="ar"
6124   else
6125     case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet.  If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&5
6130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet.  If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135     AR=$ac_ct_AR
6136   fi
6137 else
6138   AR="$ac_cv_prog_AR"
6139 fi
6140
6141 if test -n "$ac_tool_prefix"; then
6142   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_RANLIB+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   if test -n "$RANLIB"; then
6150   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157   for ac_exec_ext in '' $ac_executable_extensions; do
6158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 RANLIB=$ac_cv_prog_RANLIB
6170 if test -n "$RANLIB"; then
6171   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6172 echo "${ECHO_T}$RANLIB" >&6; }
6173 else
6174   { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_RANLIB"; then
6181   ac_ct_RANLIB=$RANLIB
6182   # Extract the first word of "ranlib", so it can be a program name with args.
6183 set dummy ranlib; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   if test -n "$ac_ct_RANLIB"; then
6190   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197   for ac_exec_ext in '' $ac_executable_extensions; do
6198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199     ac_cv_prog_ac_ct_RANLIB="ranlib"
6200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6210 if test -n "$ac_ct_RANLIB"; then
6211   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6212 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218   if test "x$ac_ct_RANLIB" = x; then
6219     RANLIB=":"
6220   else
6221     case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet.  If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&5
6226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet.  If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6229 ac_tool_warned=yes ;;
6230 esac
6231     RANLIB=$ac_ct_RANLIB
6232   fi
6233 else
6234   RANLIB="$ac_cv_prog_RANLIB"
6235 fi
6236
6237 if test -n "$ac_tool_prefix"; then
6238   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6239 set dummy ${ac_tool_prefix}strip; ac_word=$2
6240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242 if test "${ac_cv_prog_STRIP+set}" = set; then
6243   echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245   if test -n "$STRIP"; then
6246   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253   for ac_exec_ext in '' $ac_executable_extensions; do
6254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6255     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 STRIP=$ac_cv_prog_STRIP
6266 if test -n "$STRIP"; then
6267   { echo "$as_me:$LINENO: result: $STRIP" >&5
6268 echo "${ECHO_T}$STRIP" >&6; }
6269 else
6270   { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6272 fi
6273
6274
6275 fi
6276 if test -z "$ac_cv_prog_STRIP"; then
6277   ac_ct_STRIP=$STRIP
6278   # Extract the first word of "strip", so it can be a program name with args.
6279 set dummy strip; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   if test -n "$ac_ct_STRIP"; then
6286   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293   for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_prog_ac_ct_STRIP="strip"
6296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6306 if test -n "$ac_ct_STRIP"; then
6307   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6308 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6309 else
6310   { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6312 fi
6313
6314   if test "x$ac_ct_STRIP" = x; then
6315     STRIP="strip"
6316   else
6317     case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet.  If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&5
6322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6323 whose name does not start with the host triplet.  If you think this
6324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327     STRIP=$ac_ct_STRIP
6328   fi
6329 else
6330   STRIP="$ac_cv_prog_STRIP"
6331 fi
6332
6333 if test -n "$ac_tool_prefix"; then
6334   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}windres; ac_word=$2
6336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6338 if test "${ac_cv_prog_WINDRES+set}" = set; then
6339   echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341   if test -n "$WINDRES"; then
6342   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347   IFS=$as_save_IFS
6348   test -z "$as_dir" && as_dir=.
6349   for ac_exec_ext in '' $ac_executable_extensions; do
6350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6351     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353     break 2
6354   fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 WINDRES=$ac_cv_prog_WINDRES
6362 if test -n "$WINDRES"; then
6363   { echo "$as_me:$LINENO: result: $WINDRES" >&5
6364 echo "${ECHO_T}$WINDRES" >&6; }
6365 else
6366   { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6368 fi
6369
6370
6371 fi
6372 if test -z "$ac_cv_prog_WINDRES"; then
6373   ac_ct_WINDRES=$WINDRES
6374   # Extract the first word of "windres", so it can be a program name with args.
6375 set dummy windres; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   if test -n "$ac_ct_WINDRES"; then
6382   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387   IFS=$as_save_IFS
6388   test -z "$as_dir" && as_dir=.
6389   for ac_exec_ext in '' $ac_executable_extensions; do
6390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6391     ac_cv_prog_ac_ct_WINDRES="windres"
6392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393     break 2
6394   fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6402 if test -n "$ac_ct_WINDRES"; then
6403   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6404 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6405 else
6406   { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6408 fi
6409
6410   if test "x$ac_ct_WINDRES" = x; then
6411     WINDRES="false"
6412   else
6413     case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6416 whose name does not start with the host triplet.  If you think this
6417 configuration is useful to you, please write to autoconf@gnu.org." >&5
6418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6419 whose name does not start with the host triplet.  If you think this
6420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423     WINDRES=$ac_ct_WINDRES
6424   fi
6425 else
6426   WINDRES="$ac_cv_prog_WINDRES"
6427 fi
6428
6429 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6430 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6431 LN_S=$as_ln_s
6432 if test "$LN_S" = "ln -s"; then
6433   { echo "$as_me:$LINENO: result: yes" >&5
6434 echo "${ECHO_T}yes" >&6; }
6435 else
6436   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6437 echo "${ECHO_T}no, using $LN_S" >&6; }
6438 fi
6439
6440 { echo "$as_me:$LINENO: checking whether ln works" >&5
6441 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6442 rm -f conf$$ conf$$.file
6443 echo >conf$$.file
6444 if ln conf$$.file conf$$ 2>/dev/null; then
6445   LN=ln
6446
6447   { echo "$as_me:$LINENO: result: yes" >&5
6448 echo "${ECHO_T}yes" >&6; }
6449 else
6450   LN="cp -p"
6451
6452   { echo "$as_me:$LINENO: result: no, using $LN" >&5
6453 echo "${ECHO_T}no, using $LN" >&6; }
6454 fi
6455 rm -f conf$$ conf$$.file
6456 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6457 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6458 if test "${ac_cv_path_GREP+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   # Extract the first word of "grep ggrep" to use in msg output
6462 if test -z "$GREP"; then
6463 set dummy grep ggrep; ac_prog_name=$2
6464 if test "${ac_cv_path_GREP+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   ac_path_GREP_found=false
6468 # Loop through the user's path and test for each of PROGNAME-LIST
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_prog in grep ggrep; do
6475   for ac_exec_ext in '' $ac_executable_extensions; do
6476     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6477     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6478     # Check for GNU ac_path_GREP and select it if it is found.
6479   # Check for GNU $ac_path_GREP
6480 case `"$ac_path_GREP" --version 2>&1` in
6481 *GNU*)
6482   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6483 *)
6484   ac_count=0
6485   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6486   while :
6487   do
6488     cat "conftest.in" "conftest.in" >"conftest.tmp"
6489     mv "conftest.tmp" "conftest.in"
6490     cp "conftest.in" "conftest.nl"
6491     echo 'GREP' >> "conftest.nl"
6492     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6493     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6494     ac_count=`expr $ac_count + 1`
6495     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6496       # Best one so far, save it but keep looking for a better one
6497       ac_cv_path_GREP="$ac_path_GREP"
6498       ac_path_GREP_max=$ac_count
6499     fi
6500     # 10*(2^10) chars as input seems more than enough
6501     test $ac_count -gt 10 && break
6502   done
6503   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6504 esac
6505
6506
6507     $ac_path_GREP_found && break 3
6508   done
6509 done
6510
6511 done
6512 IFS=$as_save_IFS
6513
6514
6515 fi
6516
6517 GREP="$ac_cv_path_GREP"
6518 if test -z "$GREP"; then
6519   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6521    { (exit 1); exit 1; }; }
6522 fi
6523
6524 else
6525   ac_cv_path_GREP=$GREP
6526 fi
6527
6528
6529 fi
6530 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6531 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6532  GREP="$ac_cv_path_GREP"
6533
6534
6535 { echo "$as_me:$LINENO: checking for egrep" >&5
6536 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6537 if test "${ac_cv_path_EGREP+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6541    then ac_cv_path_EGREP="$GREP -E"
6542    else
6543      # Extract the first word of "egrep" to use in msg output
6544 if test -z "$EGREP"; then
6545 set dummy egrep; ac_prog_name=$2
6546 if test "${ac_cv_path_EGREP+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   ac_path_EGREP_found=false
6550 # Loop through the user's path and test for each of PROGNAME-LIST
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556   for ac_prog in egrep; do
6557   for ac_exec_ext in '' $ac_executable_extensions; do
6558     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6559     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6560     # Check for GNU ac_path_EGREP and select it if it is found.
6561   # Check for GNU $ac_path_EGREP
6562 case `"$ac_path_EGREP" --version 2>&1` in
6563 *GNU*)
6564   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6565 *)
6566   ac_count=0
6567   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6568   while :
6569   do
6570     cat "conftest.in" "conftest.in" >"conftest.tmp"
6571     mv "conftest.tmp" "conftest.in"
6572     cp "conftest.in" "conftest.nl"
6573     echo 'EGREP' >> "conftest.nl"
6574     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6575     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6576     ac_count=`expr $ac_count + 1`
6577     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6578       # Best one so far, save it but keep looking for a better one
6579       ac_cv_path_EGREP="$ac_path_EGREP"
6580       ac_path_EGREP_max=$ac_count
6581     fi
6582     # 10*(2^10) chars as input seems more than enough
6583     test $ac_count -gt 10 && break
6584   done
6585   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6586 esac
6587
6588
6589     $ac_path_EGREP_found && break 3
6590   done
6591 done
6592
6593 done
6594 IFS=$as_save_IFS
6595
6596
6597 fi
6598
6599 EGREP="$ac_cv_path_EGREP"
6600 if test -z "$EGREP"; then
6601   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6602 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6603    { (exit 1); exit 1; }; }
6604 fi
6605
6606 else
6607   ac_cv_path_EGREP=$EGREP
6608 fi
6609
6610
6611    fi
6612 fi
6613 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6614 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6615  EGREP="$ac_cv_path_EGREP"
6616
6617
6618 # Extract the first word of "ldconfig", so it can be a program name with args.
6619 set dummy ldconfig; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   case $LDCONFIG in
6626   [\\/]* | ?:[\\/]*)
6627   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6628   ;;
6629   *)
6630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in /sbin /usr/sbin $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6646   ;;
6647 esac
6648 fi
6649 LDCONFIG=$ac_cv_path_LDCONFIG
6650 if test -n "$LDCONFIG"; then
6651   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6652 echo "${ECHO_T}$LDCONFIG" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 # Find a good install program.  We prefer a C program (faster),
6660 # so one script is as good as another.  But avoid the broken or
6661 # incompatible versions:
6662 # SysV /etc/install, /usr/sbin/install
6663 # SunOS /usr/etc/install
6664 # IRIX /sbin/install
6665 # AIX /bin/install
6666 # AmigaOS /C/install, which installs bootblocks on floppy discs
6667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6670 # OS/2's system install, which has a completely different semantic
6671 # ./install, which can be erroneously created by make from ./install.sh.
6672 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6673 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6674 if test -z "$INSTALL"; then
6675 if test "${ac_cv_path_install+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   # Account for people who put trailing slashes in PATH elements.
6684 case $as_dir/ in
6685   ./ | .// | /cC/* | \
6686   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6687   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6688   /usr/ucb/* ) ;;
6689   *)
6690     # OSF1 and SCO ODT 3.0 have their own names for install.
6691     # Don't use installbsd from OSF since it installs stuff as root
6692     # by default.
6693     for ac_prog in ginstall scoinst install; do
6694       for ac_exec_ext in '' $ac_executable_extensions; do
6695         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6696           if test $ac_prog = install &&
6697             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6698             # AIX install.  It has an incompatible calling convention.
6699             :
6700           elif test $ac_prog = install &&
6701             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6702             # program-specific install script used by HP pwplus--don't use.
6703             :
6704           else
6705             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6706             break 3
6707           fi
6708         fi
6709       done
6710     done
6711     ;;
6712 esac
6713 done
6714 IFS=$as_save_IFS
6715
6716
6717 fi
6718   if test "${ac_cv_path_install+set}" = set; then
6719     INSTALL=$ac_cv_path_install
6720   else
6721     # As a last resort, use the slow shell script.  Don't cache a
6722     # value for INSTALL within a source directory, because that will
6723     # break other packages using the cache if that directory is
6724     # removed, or if the value is a relative name.
6725     INSTALL=$ac_install_sh
6726   fi
6727 fi
6728 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6729 echo "${ECHO_T}$INSTALL" >&6; }
6730
6731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6732 # It thinks the first close brace ends the variable substitution.
6733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6734
6735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6736
6737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6738
6739 case "$INSTALL" in
6740   [\\/$]* | ?:[\\/]* ) ;;
6741   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6742 esac
6743
6744 for ac_prog in lclint lint
6745 do
6746   # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_LINT+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   if test -n "$LINT"; then
6754   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761   for ac_exec_ext in '' $ac_executable_extensions; do
6762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763     ac_cv_prog_LINT="$ac_prog"
6764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 LINT=$ac_cv_prog_LINT
6774 if test -n "$LINT"; then
6775   { echo "$as_me:$LINENO: result: $LINT" >&5
6776 echo "${ECHO_T}$LINT" >&6; }
6777 else
6778   { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6780 fi
6781
6782
6783   test -n "$LINT" && break
6784 done
6785
6786 if test "$LINT" = "lint"
6787 then
6788   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6789   fi
6790
6791
6792
6793 for ac_prog in fontforge
6794 do
6795   # Extract the first word of "$ac_prog", so it can be a program name with args.
6796 set dummy $ac_prog; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   if test -n "$FONTFORGE"; then
6803   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810   for ac_exec_ext in '' $ac_executable_extensions; do
6811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6812     ac_cv_prog_FONTFORGE="$ac_prog"
6813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 FONTFORGE=$ac_cv_prog_FONTFORGE
6823 if test -n "$FONTFORGE"; then
6824   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6825 echo "${ECHO_T}$FONTFORGE" >&6; }
6826 else
6827   { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6829 fi
6830
6831
6832   test -n "$FONTFORGE" && break
6833 done
6834 test -n "$FONTFORGE" || FONTFORGE="false"
6835
6836 for ac_prog in pkg-config
6837 do
6838   # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6843   echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845   if test -n "$PKG_CONFIG"; then
6846   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853   for ac_exec_ext in '' $ac_executable_extensions; do
6854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6855     ac_cv_prog_PKG_CONFIG="$ac_prog"
6856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6866 if test -n "$PKG_CONFIG"; then
6867   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6868 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6869 else
6870   { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6872 fi
6873
6874
6875   test -n "$PKG_CONFIG" && break
6876 done
6877 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6878
6879
6880 case $host_cpu in
6881   *i[3456789]86*)
6882     # Extract the first word of "prelink", so it can be a program name with args.
6883 set dummy prelink; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_PRELINK+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $PRELINK in
6890   [\\/]* | ?:[\\/]*)
6891   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6892   ;;
6893   *)
6894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in /sbin /usr/sbin $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899   for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6910   ;;
6911 esac
6912 fi
6913 PRELINK=$ac_cv_path_PRELINK
6914 if test -n "$PRELINK"; then
6915   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6916 echo "${ECHO_T}$PRELINK" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923     ;;
6924 esac
6925
6926
6927
6928 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6929 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6930 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   ac_check_lib_save_LIBS=$LIBS
6934 LIBS="-li386  $LIBS"
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941
6942 /* Override any GCC internal prototype to avoid an error.
6943    Use char because int might match the return type of a GCC
6944    builtin and then its argument prototype would still apply.  */
6945 #ifdef __cplusplus
6946 extern "C"
6947 #endif
6948 char i386_set_ldt ();
6949 int
6950 main ()
6951 {
6952 return i386_set_ldt ();
6953   ;
6954   return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (ac_try="$ac_link"
6959 case "(($ac_try" in
6960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961   *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964   (eval "$ac_link") 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6972   { (case "(($ac_try" in
6973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974   *) ac_try_echo=$ac_try;;
6975 esac
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977   (eval "$ac_try") 2>&5
6978   ac_status=$?
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; } &&
6981          { ac_try='test -s conftest$ac_exeext'
6982   { (case "(($ac_try" in
6983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984   *) ac_try_echo=$ac_try;;
6985 esac
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987   (eval "$ac_try") 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   ac_cv_lib_i386_i386_set_ldt=yes
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996         ac_cv_lib_i386_i386_set_ldt=no
6997 fi
6998
6999 rm -f core conftest.err conftest.$ac_objext \
7000       conftest$ac_exeext conftest.$ac_ext
7001 LIBS=$ac_check_lib_save_LIBS
7002 fi
7003 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7004 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7005 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7006   cat >>confdefs.h <<_ACEOF
7007 #define HAVE_LIBI386 1
7008 _ACEOF
7009
7010   LIBS="-li386 $LIBS"
7011
7012 fi
7013
7014
7015 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7016 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7017 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7018   echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020   ac_check_lib_save_LIBS=$LIBS
7021 LIBS="-lossaudio  $LIBS"
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h.  */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h.  */
7028
7029 /* Override any GCC internal prototype to avoid an error.
7030    Use char because int might match the return type of a GCC
7031    builtin and then its argument prototype would still apply.  */
7032 #ifdef __cplusplus
7033 extern "C"
7034 #endif
7035 char _oss_ioctl ();
7036 int
7037 main ()
7038 {
7039 return _oss_ioctl ();
7040   ;
7041   return 0;
7042 }
7043 _ACEOF
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (ac_try="$ac_link"
7046 case "(($ac_try" in
7047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048   *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051   (eval "$ac_link") 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } &&
7058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7059   { (case "(($ac_try" in
7060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061   *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064   (eval "$ac_try") 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; } &&
7068          { ac_try='test -s conftest$ac_exeext'
7069   { (case "(($ac_try" in
7070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071   *) ac_try_echo=$ac_try;;
7072 esac
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074   (eval "$ac_try") 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }; }; then
7078   ac_cv_lib_ossaudio__oss_ioctl=yes
7079 else
7080   echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083         ac_cv_lib_ossaudio__oss_ioctl=no
7084 fi
7085
7086 rm -f core conftest.err conftest.$ac_objext \
7087       conftest$ac_exeext conftest.$ac_ext
7088 LIBS=$ac_check_lib_save_LIBS
7089 fi
7090 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7091 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7092 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7093   cat >>confdefs.h <<_ACEOF
7094 #define HAVE_LIBOSSAUDIO 1
7095 _ACEOF
7096
7097   LIBS="-lossaudio $LIBS"
7098
7099 fi
7100
7101
7102 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7103 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7104 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   ac_check_lib_save_LIBS=$LIBS
7108 LIBS="-lxpg4  $LIBS"
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115
7116 /* Override any GCC internal prototype to avoid an error.
7117    Use char because int might match the return type of a GCC
7118    builtin and then its argument prototype would still apply.  */
7119 #ifdef __cplusplus
7120 extern "C"
7121 #endif
7122 char _xpg4_setrunelocale ();
7123 int
7124 main ()
7125 {
7126 return _xpg4_setrunelocale ();
7127   ;
7128   return 0;
7129 }
7130 _ACEOF
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (ac_try="$ac_link"
7133 case "(($ac_try" in
7134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135   *) ac_try_echo=$ac_try;;
7136 esac
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138   (eval "$ac_link") 2>conftest.er1
7139   ac_status=$?
7140   grep -v '^ *+' conftest.er1 >conftest.err
7141   rm -f conftest.er1
7142   cat conftest.err >&5
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); } &&
7145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7146   { (case "(($ac_try" in
7147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148   *) ac_try_echo=$ac_try;;
7149 esac
7150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151   (eval "$ac_try") 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); }; } &&
7155          { ac_try='test -s conftest$ac_exeext'
7156   { (case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161   (eval "$ac_try") 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; }; then
7165   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7166 else
7167   echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170         ac_cv_lib_xpg4__xpg4_setrunelocale=no
7171 fi
7172
7173 rm -f core conftest.err conftest.$ac_objext \
7174       conftest$ac_exeext conftest.$ac_ext
7175 LIBS=$ac_check_lib_save_LIBS
7176 fi
7177 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7178 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7179 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7180   cat >>confdefs.h <<_ACEOF
7181 #define HAVE_LIBXPG4 1
7182 _ACEOF
7183
7184   LIBS="-lxpg4 $LIBS"
7185
7186 fi
7187
7188 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7189 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7190 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   ac_check_lib_save_LIBS=$LIBS
7194 LIBS="-lpthread  $LIBS"
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h.  */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h.  */
7201
7202 /* Override any GCC internal prototype to avoid an error.
7203    Use char because int might match the return type of a GCC
7204    builtin and then its argument prototype would still apply.  */
7205 #ifdef __cplusplus
7206 extern "C"
7207 #endif
7208 char pthread_create ();
7209 int
7210 main ()
7211 {
7212 return pthread_create ();
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (ac_try="$ac_link"
7219 case "(($ac_try" in
7220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221   *) ac_try_echo=$ac_try;;
7222 esac
7223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224   (eval "$ac_link") 2>conftest.er1
7225   ac_status=$?
7226   grep -v '^ *+' conftest.er1 >conftest.err
7227   rm -f conftest.er1
7228   cat conftest.err >&5
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); } &&
7231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7232   { (case "(($ac_try" in
7233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234   *) ac_try_echo=$ac_try;;
7235 esac
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237   (eval "$ac_try") 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); }; } &&
7241          { ac_try='test -s conftest$ac_exeext'
7242   { (case "(($ac_try" in
7243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244   *) ac_try_echo=$ac_try;;
7245 esac
7246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7247   (eval "$ac_try") 2>&5
7248   ac_status=$?
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; }; then
7251   ac_cv_lib_pthread_pthread_create=yes
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256         ac_cv_lib_pthread_pthread_create=no
7257 fi
7258
7259 rm -f core conftest.err conftest.$ac_objext \
7260       conftest$ac_exeext conftest.$ac_ext
7261 LIBS=$ac_check_lib_save_LIBS
7262 fi
7263 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7264 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
7265 if test $ac_cv_lib_pthread_pthread_create = yes; then
7266   LIBPTHREAD="-lpthread"
7267
7268 fi
7269
7270
7271 XLIB=""
7272
7273 XFILES=""
7274
7275 OPENGLFILES=""
7276
7277 GLU32FILES=""
7278
7279 OPENGL_LIBS=""
7280
7281
7282
7283 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7284 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7285 if test "${ac_cv_header_stdc+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h.  */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h.  */
7294 #include <stdlib.h>
7295 #include <stdarg.h>
7296 #include <string.h>
7297 #include <float.h>
7298
7299 int
7300 main ()
7301 {
7302
7303   ;
7304   return 0;
7305 }
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7309 case "(($ac_try" in
7310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311   *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314   (eval "$ac_compile") 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } &&
7321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7322   { (case "(($ac_try" in
7323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324   *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327   (eval "$ac_try") 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; } &&
7331          { ac_try='test -s conftest.$ac_objext'
7332   { (case "(($ac_try" in
7333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334   *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337   (eval "$ac_try") 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); }; }; then
7341   ac_cv_header_stdc=yes
7342 else
7343   echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346         ac_cv_header_stdc=no
7347 fi
7348
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350
7351 if test $ac_cv_header_stdc = yes; then
7352   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7353   cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359 #include <string.h>
7360
7361 _ACEOF
7362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7363   $EGREP "memchr" >/dev/null 2>&1; then
7364   :
7365 else
7366   ac_cv_header_stdc=no
7367 fi
7368 rm -f conftest*
7369
7370 fi
7371
7372 if test $ac_cv_header_stdc = yes; then
7373   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7374   cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 #include <stdlib.h>
7381
7382 _ACEOF
7383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384   $EGREP "free" >/dev/null 2>&1; then
7385   :
7386 else
7387   ac_cv_header_stdc=no
7388 fi
7389 rm -f conftest*
7390
7391 fi
7392
7393 if test $ac_cv_header_stdc = yes; then
7394   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7395   if test "$cross_compiling" = yes; then
7396   :
7397 else
7398   cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h.  */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h.  */
7404 #include <ctype.h>
7405 #include <stdlib.h>
7406 #if ((' ' & 0x0FF) == 0x020)
7407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7409 #else
7410 # define ISLOWER(c) \
7411                    (('a' <= (c) && (c) <= 'i') \
7412                      || ('j' <= (c) && (c) <= 'r') \
7413                      || ('s' <= (c) && (c) <= 'z'))
7414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7415 #endif
7416
7417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7418 int
7419 main ()
7420 {
7421   int i;
7422   for (i = 0; i < 256; i++)
7423     if (XOR (islower (i), ISLOWER (i))
7424         || toupper (i) != TOUPPER (i))
7425       return 2;
7426   return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest$ac_exeext
7430 if { (ac_try="$ac_link"
7431 case "(($ac_try" in
7432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433   *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436   (eval "$ac_link") 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7440   { (case "(($ac_try" in
7441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442   *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445   (eval "$ac_try") 2>&5
7446   ac_status=$?
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); }; }; then
7449   :
7450 else
7451   echo "$as_me: program exited with status $ac_status" >&5
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ( exit $ac_status )
7456 ac_cv_header_stdc=no
7457 fi
7458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7459 fi
7460
7461
7462 fi
7463 fi
7464 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7465 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7466 if test $ac_cv_header_stdc = yes; then
7467
7468 cat >>confdefs.h <<\_ACEOF
7469 #define STDC_HEADERS 1
7470 _ACEOF
7471
7472 fi
7473
7474 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7485                   inttypes.h stdint.h unistd.h
7486 do
7487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h.  */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h.  */
7499 $ac_includes_default
7500
7501 #include <$ac_header>
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7505 case "(($ac_try" in
7506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507   *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510   (eval "$ac_compile") 2>conftest.er1
7511   ac_status=$?
7512   grep -v '^ *+' conftest.er1 >conftest.err
7513   rm -f conftest.er1
7514   cat conftest.err >&5
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7518   { (case "(($ac_try" in
7519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520   *) ac_try_echo=$ac_try;;
7521 esac
7522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523   (eval "$ac_try") 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; } &&
7527          { ac_try='test -s conftest.$ac_objext'
7528   { (case "(($ac_try" in
7529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530   *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533   (eval "$ac_try") 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); }; }; then
7537   eval "$as_ac_Header=yes"
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542         eval "$as_ac_Header=no"
7543 fi
7544
7545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 fi
7547 ac_res=`eval echo '${'$as_ac_Header'}'`
7548                { echo "$as_me:$LINENO: result: $ac_res" >&5
7549 echo "${ECHO_T}$ac_res" >&6; }
7550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7551   cat >>confdefs.h <<_ACEOF
7552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7553 _ACEOF
7554
7555 fi
7556
7557 done
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666 for ac_header in \
7667         AudioUnit/AudioUnit.h \
7668         CoreAudio/CoreAudio.h \
7669         IOKit/IOKitLib.h \
7670         alsa/asoundlib.h \
7671         arpa/inet.h \
7672         arpa/nameser.h \
7673         asm/types.h \
7674         capi20.h \
7675         cups/cups.h \
7676         curses.h \
7677         direct.h \
7678         dlfcn.h \
7679         elf.h \
7680         float.h \
7681         fontconfig/fontconfig.h \
7682         getopt.h \
7683         ieeefp.h \
7684         io.h \
7685         jack/jack.h \
7686         jpeglib.h \
7687         lber.h \
7688         lcms.h \
7689         lcms/lcms.h \
7690         ldap.h \
7691         libaudioio.h \
7692         link.h \
7693         linux/cdrom.h \
7694         linux/compiler.h \
7695         linux/hdreg.h \
7696         linux/input.h \
7697         linux/ioctl.h \
7698         linux/joystick.h \
7699         linux/major.h \
7700         linux/param.h \
7701         linux/serial.h \
7702         linux/ucdrom.h \
7703         mach/machine.h \
7704         machine/cpu.h \
7705         machine/limits.h \
7706         machine/soundcard.h \
7707         mntent.h \
7708         ncurses.h \
7709         netdb.h \
7710         netinet/in.h \
7711         netinet/in_systm.h \
7712         netinet/tcp.h \
7713         netinet/tcp_fsm.h \
7714         openssl/err.h \
7715         openssl/ssl.h \
7716         poll.h \
7717         process.h \
7718         pthread.h \
7719         pwd.h \
7720         regex.h \
7721         sched.h \
7722         scsi/scsi.h \
7723         scsi/scsi_ioctl.h \
7724         scsi/sg.h \
7725         soundcard.h \
7726         stdint.h \
7727         strings.h \
7728         sys/asoundlib.h \
7729         sys/cdio.h \
7730         sys/elf32.h \
7731         sys/epoll.h \
7732         sys/errno.h \
7733         sys/event.h \
7734         sys/exec_elf.h \
7735         sys/filio.h \
7736         sys/ioctl.h \
7737         sys/ipc.h \
7738         sys/limits.h \
7739         sys/link.h \
7740         sys/lwp.h \
7741         sys/mman.h \
7742         sys/modem.h \
7743         sys/msg.h \
7744         sys/mtio.h \
7745         sys/param.h \
7746         sys/poll.h \
7747         sys/prctl.h \
7748         sys/ptrace.h \
7749         sys/reg.h \
7750         sys/resource.h \
7751         sys/scsiio.h \
7752         sys/shm.h \
7753         sys/signal.h \
7754         sys/socket.h \
7755         sys/sockio.h \
7756         sys/soundcard.h \
7757         sys/statvfs.h \
7758         sys/strtio.h \
7759         sys/syscall.h \
7760         sys/sysctl.h \
7761         sys/time.h \
7762         sys/times.h \
7763         sys/uio.h \
7764         sys/un.h \
7765         sys/vm86.h \
7766         sys/wait.h \
7767         syscall.h \
7768         termios.h \
7769         unicode/ubidi.h \
7770         unistd.h \
7771         utime.h \
7772         valgrind/memcheck.h
7773
7774 do
7775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 fi
7782 ac_res=`eval echo '${'$as_ac_Header'}'`
7783                { echo "$as_me:$LINENO: result: $ac_res" >&5
7784 echo "${ECHO_T}$ac_res" >&6; }
7785 else
7786   # Is the header compilable?
7787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 $ac_includes_default
7796 #include <$ac_header>
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7800 case "(($ac_try" in
7801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802   *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805   (eval "$ac_compile") 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } &&
7812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813   { (case "(($ac_try" in
7814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815   *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818   (eval "$ac_try") 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; } &&
7822          { ac_try='test -s conftest.$ac_objext'
7823   { (case "(($ac_try" in
7824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825   *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828   (eval "$ac_try") 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_header_compiler=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837         ac_header_compiler=no
7838 fi
7839
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6; }
7843
7844 # Is the header present?
7845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853 #include <$ac_header>
7854 _ACEOF
7855 if { (ac_try="$ac_cpp conftest.$ac_ext"
7856 case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } >/dev/null; then
7868   if test -s conftest.err; then
7869     ac_cpp_err=$ac_c_preproc_warn_flag
7870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7871   else
7872     ac_cpp_err=
7873   fi
7874 else
7875   ac_cpp_err=yes
7876 fi
7877 if test -z "$ac_cpp_err"; then
7878   ac_header_preproc=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883   ac_header_preproc=no
7884 fi
7885
7886 rm -f conftest.err conftest.$ac_ext
7887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888 echo "${ECHO_T}$ac_header_preproc" >&6; }
7889
7890 # So?  What about this header?
7891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7892   yes:no: )
7893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897     ac_header_preproc=yes
7898     ;;
7899   no:yes:* )
7900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7912     ( cat <<\_ASBOX
7913 ## ------------------------------------ ##
7914 ## Report this to wine-devel@winehq.org ##
7915 ## ------------------------------------ ##
7916 _ASBOX
7917      ) | sed "s/^/$as_me: WARNING:     /" >&2
7918     ;;
7919 esac
7920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   eval "$as_ac_Header=\$ac_header_preproc"
7926 fi
7927 ac_res=`eval echo '${'$as_ac_Header'}'`
7928                { echo "$as_me:$LINENO: result: $ac_res" >&5
7929 echo "${ECHO_T}$ac_res" >&6; }
7930
7931 fi
7932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7933   cat >>confdefs.h <<_ACEOF
7934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 _ACEOF
7936
7937 fi
7938
7939 done
7940
7941 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7942 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7943 if test "${ac_cv_header_stat_broken+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 #include <sys/types.h>
7953 #include <sys/stat.h>
7954
7955 #if defined S_ISBLK && defined S_IFDIR
7956 # if S_ISBLK (S_IFDIR)
7957 You lose.
7958 # endif
7959 #endif
7960
7961 #if defined S_ISBLK && defined S_IFCHR
7962 # if S_ISBLK (S_IFCHR)
7963 You lose.
7964 # endif
7965 #endif
7966
7967 #if defined S_ISLNK && defined S_IFREG
7968 # if S_ISLNK (S_IFREG)
7969 You lose.
7970 # endif
7971 #endif
7972
7973 #if defined S_ISSOCK && defined S_IFREG
7974 # if S_ISSOCK (S_IFREG)
7975 You lose.
7976 # endif
7977 #endif
7978
7979 _ACEOF
7980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981   $EGREP "You lose" >/dev/null 2>&1; then
7982   ac_cv_header_stat_broken=yes
7983 else
7984   ac_cv_header_stat_broken=no
7985 fi
7986 rm -f conftest*
7987
7988 fi
7989 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7990 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7991 if test $ac_cv_header_stat_broken = yes; then
7992
7993 cat >>confdefs.h <<\_ACEOF
7994 #define STAT_MACROS_BROKEN 1
7995 _ACEOF
7996
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8006 do
8007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019 #include <sys/types.h>
8020      #if HAVE_SYS_PARAM_H
8021      # include <sys/param.h>
8022      #endif
8023
8024 #include <$ac_header>
8025 _ACEOF
8026 rm -f conftest.$ac_objext
8027 if { (ac_try="$ac_compile"
8028 case "(($ac_try" in
8029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030   *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033   (eval "$ac_compile") 2>conftest.er1
8034   ac_status=$?
8035   grep -v '^ *+' conftest.er1 >conftest.err
8036   rm -f conftest.er1
8037   cat conftest.err >&5
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } &&
8040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041   { (case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046   (eval "$ac_try") 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; } &&
8050          { ac_try='test -s conftest.$ac_objext'
8051   { (case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_try") 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   eval "$as_ac_Header=yes"
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065         eval "$as_ac_Header=no"
8066 fi
8067
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 ac_res=`eval echo '${'$as_ac_Header'}'`
8071                { echo "$as_me:$LINENO: result: $ac_res" >&5
8072 echo "${ECHO_T}$ac_res" >&6; }
8073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074   cat >>confdefs.h <<_ACEOF
8075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076 _ACEOF
8077
8078 fi
8079
8080 done
8081
8082
8083
8084
8085
8086
8087
8088
8089 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8090 do
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 #include <sys/types.h>
8104      #if HAVE_SYS_SOCKET_H
8105      # include <sys/socket.h>
8106      #endif
8107
8108 #include <$ac_header>
8109 _ACEOF
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8112 case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_compile") 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125   { (case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_try") 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; } &&
8134          { ac_try='test -s conftest.$ac_objext'
8135   { (case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_try") 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   eval "$as_ac_Header=yes"
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149         eval "$as_ac_Header=no"
8150 fi
8151
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 ac_res=`eval echo '${'$as_ac_Header'}'`
8155                { echo "$as_me:$LINENO: result: $ac_res" >&5
8156 echo "${ECHO_T}$ac_res" >&6; }
8157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158   cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160 _ACEOF
8161
8162 fi
8163
8164 done
8165
8166
8167
8168 for ac_header in linux/ipx.h
8169 do
8170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 #include <sys/types.h>
8183      #ifdef HAVE_ASM_TYPES_H
8184      # include <asm/types.h>
8185      #endif
8186      #if HAVE_SYS_SOCKET_H
8187      # include <sys/socket.h>
8188      #endif
8189
8190 #include <$ac_header>
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_compile") 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207   { (case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_try") 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; } &&
8216          { ac_try='test -s conftest.$ac_objext'
8217   { (case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_try") 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   eval "$as_ac_Header=yes"
8227 else
8228   echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231         eval "$as_ac_Header=no"
8232 fi
8233
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 fi
8236 ac_res=`eval echo '${'$as_ac_Header'}'`
8237                { echo "$as_me:$LINENO: result: $ac_res" >&5
8238 echo "${ECHO_T}$ac_res" >&6; }
8239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240   cat >>confdefs.h <<_ACEOF
8241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248
8249
8250 for ac_header in resolv.h
8251 do
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h.  */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h.  */
8264 #include <sys/types.h>
8265      #if HAVE_SYS_SOCKET_H
8266      # include <sys/socket.h>
8267      #endif
8268      #if HAVE_NETINET_IN_H
8269      # include <netinet/in.h>
8270      #endif
8271      #if HAVE_ARPA_NAMESER_H
8272      # include <arpa/nameser.h>
8273      #endif
8274
8275 #include <$ac_header>
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8279 case "(($ac_try" in
8280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281   *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284   (eval "$ac_compile") 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292   { (case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_try") 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; } &&
8301          { ac_try='test -s conftest.$ac_objext'
8302   { (case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_try") 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; }; then
8311   eval "$as_ac_Header=yes"
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316         eval "$as_ac_Header=no"
8317 fi
8318
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 ac_res=`eval echo '${'$as_ac_Header'}'`
8322                { echo "$as_me:$LINENO: result: $ac_res" >&5
8323 echo "${ECHO_T}$ac_res" >&6; }
8324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8325   cat >>confdefs.h <<_ACEOF
8326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8327 _ACEOF
8328
8329 fi
8330
8331 done
8332
8333
8334
8335 for ac_header in ucontext.h
8336 do
8337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349 #include <signal.h>
8350
8351 #include <$ac_header>
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_compile") 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368   { (case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_try") 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; } &&
8377          { ac_try='test -s conftest.$ac_objext'
8378   { (case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_try") 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   eval "$as_ac_Header=yes"
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392         eval "$as_ac_Header=no"
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398                { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403 _ACEOF
8404
8405 fi
8406
8407 done
8408
8409
8410
8411 for ac_header in pthread_np.h
8412 do
8413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 #ifdef HAVE_PTHREAD_H
8426 #include <pthread.h>
8427 #endif
8428
8429 #include <$ac_header>
8430 _ACEOF
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_compile") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest.$ac_objext'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   eval "$as_ac_Header=yes"
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470         eval "$as_ac_Header=no"
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 ac_res=`eval echo '${'$as_ac_Header'}'`
8476                { echo "$as_me:$LINENO: result: $ac_res" >&5
8477 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479   cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8482
8483 fi
8484
8485 done
8486
8487
8488
8489 for ac_header in linux/videodev.h
8490 do
8491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503 #ifdef HAVE_SYS_TIME_H
8504 #include <sys/time.h>
8505 #endif
8506 #include <sys/types.h>
8507 #ifdef HAVE_ASM_TYPES_H
8508 #include <asm/types.h>
8509 #endif
8510
8511 #include <$ac_header>
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } &&
8527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528   { (case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_try") 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest.$ac_objext'
8538   { (case "(($ac_try" in
8539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540   *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543   (eval "$ac_try") 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   eval "$as_ac_Header=yes"
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552         eval "$as_ac_Header=no"
8553 fi
8554
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 ac_res=`eval echo '${'$as_ac_Header'}'`
8558                { echo "$as_me:$LINENO: result: $ac_res" >&5
8559 echo "${ECHO_T}$ac_res" >&6; }
8560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561   cat >>confdefs.h <<_ACEOF
8562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8563 _ACEOF
8564
8565 fi
8566
8567 done
8568
8569
8570
8571 for ac_header in linux/capi.h
8572 do
8573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 #define __user
8586
8587 #include <$ac_header>
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (ac_try="$ac_compile"
8591 case "(($ac_try" in
8592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593   *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596   (eval "$ac_compile") 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8604   { (case "(($ac_try" in
8605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606   *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609   (eval "$ac_try") 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; } &&
8613          { ac_try='test -s conftest.$ac_objext'
8614   { (case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_try") 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }; }; then
8623   eval "$as_ac_Header=yes"
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628         eval "$as_ac_Header=no"
8629 fi
8630
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633 ac_res=`eval echo '${'$as_ac_Header'}'`
8634                { echo "$as_me:$LINENO: result: $ac_res" >&5
8635 echo "${ECHO_T}$ac_res" >&6; }
8636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8637   cat >>confdefs.h <<_ACEOF
8638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8639 _ACEOF
8640
8641 fi
8642
8643 done
8644
8645
8646
8647 if test "$have_x" = "yes"
8648 then
8649     XLIB="-lXext -lX11"
8650     ac_save_CPPFLAGS="$CPPFLAGS"
8651     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662 for ac_header in X11/Xlib.h \
8663                       X11/XKBlib.h \
8664                       X11/Xutil.h \
8665                       X11/extensions/shape.h \
8666                       X11/extensions/XInput.h \
8667                       X11/extensions/XShm.h \
8668                       X11/extensions/Xrandr.h \
8669                       X11/extensions/Xrender.h \
8670                       X11/extensions/xf86vmode.h
8671 do
8672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 #ifdef HAVE_X11_XLIB_H
8685 # include <X11/Xlib.h>
8686 #endif
8687 #ifdef HAVE_X11_XUTIL_H
8688 # include <X11/Xutil.h>
8689 #endif
8690
8691 #include <$ac_header>
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_compile") 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } &&
8707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708   { (case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_try") 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; } &&
8717          { ac_try='test -s conftest.$ac_objext'
8718   { (case "(($ac_try" in
8719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720   *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723   (eval "$ac_try") 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; }; then
8727   eval "$as_ac_Header=yes"
8728 else
8729   echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732         eval "$as_ac_Header=no"
8733 fi
8734
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 ac_res=`eval echo '${'$as_ac_Header'}'`
8738                { echo "$as_me:$LINENO: result: $ac_res" >&5
8739 echo "${ECHO_T}$ac_res" >&6; }
8740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8741   cat >>confdefs.h <<_ACEOF
8742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8743 _ACEOF
8744
8745 fi
8746
8747 done
8748
8749
8750                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8751         then
8752               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
8753 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
8754 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   ac_check_lib_save_LIBS=$LIBS
8758 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765
8766 /* Override any GCC internal prototype to avoid an error.
8767    Use char because int might match the return type of a GCC
8768    builtin and then its argument prototype would still apply.  */
8769 #ifdef __cplusplus
8770 extern "C"
8771 #endif
8772 char XkbQueryExtension ();
8773 int
8774 main ()
8775 {
8776 return XkbQueryExtension ();
8777   ;
8778   return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (ac_try="$ac_link"
8783 case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_link") 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8796   { (case "(($ac_try" in
8797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798   *) ac_try_echo=$ac_try;;
8799 esac
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801   (eval "$ac_try") 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; } &&
8805          { ac_try='test -s conftest$ac_exeext'
8806   { (case "(($ac_try" in
8807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808   *) ac_try_echo=$ac_try;;
8809 esac
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811   (eval "$ac_try") 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_lib_X11_XkbQueryExtension=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820         ac_cv_lib_X11_XkbQueryExtension=no
8821 fi
8822
8823 rm -f core conftest.err conftest.$ac_objext \
8824       conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8826 fi
8827 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8828 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8829 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8830
8831 cat >>confdefs.h <<\_ACEOF
8832 #define HAVE_XKB 1
8833 _ACEOF
8834
8835 fi
8836
8837         fi
8838
8839                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8840         then
8841               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8842 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8843 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   ac_check_lib_save_LIBS=$LIBS
8847 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 /* Override any GCC internal prototype to avoid an error.
8856    Use char because int might match the return type of a GCC
8857    builtin and then its argument prototype would still apply.  */
8858 #ifdef __cplusplus
8859 extern "C"
8860 #endif
8861 char XShmQueryExtension ();
8862 int
8863 main ()
8864 {
8865 return XShmQueryExtension ();
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (ac_try="$ac_link"
8872 case "(($ac_try" in
8873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874   *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877   (eval "$ac_link") 2>conftest.er1
8878   ac_status=$?
8879   grep -v '^ *+' conftest.er1 >conftest.err
8880   rm -f conftest.er1
8881   cat conftest.err >&5
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } &&
8884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8885   { (case "(($ac_try" in
8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887   *) ac_try_echo=$ac_try;;
8888 esac
8889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890   (eval "$ac_try") 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; } &&
8894          { ac_try='test -s conftest$ac_exeext'
8895   { (case "(($ac_try" in
8896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897   *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900   (eval "$ac_try") 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_lib_Xext_XShmQueryExtension=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909         ac_cv_lib_Xext_XShmQueryExtension=no
8910 fi
8911
8912 rm -f core conftest.err conftest.$ac_objext \
8913       conftest$ac_exeext conftest.$ac_ext
8914 LIBS=$ac_check_lib_save_LIBS
8915 fi
8916 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8917 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8918 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8919
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_LIBXXSHM 1
8922 _ACEOF
8923
8924 fi
8925
8926         fi
8927
8928                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8929         then
8930               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8931 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8932 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8933   echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935   ac_check_lib_save_LIBS=$LIBS
8936 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943
8944 /* Override any GCC internal prototype to avoid an error.
8945    Use char because int might match the return type of a GCC
8946    builtin and then its argument prototype would still apply.  */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char XShapeQueryExtension ();
8951 int
8952 main ()
8953 {
8954 return XShapeQueryExtension ();
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8961 case "(($ac_try" in
8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963   *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966   (eval "$ac_link") 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974   { (case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_try") 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (case "(($ac_try" in
8985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986   *) ac_try_echo=$ac_try;;
8987 esac
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989   (eval "$ac_try") 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }; }; then
8993   ac_cv_lib_Xext_XShapeQueryExtension=yes
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998         ac_cv_lib_Xext_XShapeQueryExtension=no
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9004 fi
9005 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9006 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9007 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9008
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_LIBXSHAPE 1
9011 _ACEOF
9012
9013 fi
9014
9015         fi
9016
9017                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9018         then
9019                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9020 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9021 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033 /* Override any GCC internal prototype to avoid an error.
9034    Use char because int might match the return type of a GCC
9035    builtin and then its argument prototype would still apply.  */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 char XF86VidModeQueryExtension ();
9040 int
9041 main ()
9042 {
9043 return XF86VidModeQueryExtension ();
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9050 case "(($ac_try" in
9051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052   *) ac_try_echo=$ac_try;;
9053 esac
9054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055   (eval "$ac_link") 2>conftest.er1
9056   ac_status=$?
9057   grep -v '^ *+' conftest.er1 >conftest.err
9058   rm -f conftest.er1
9059   cat conftest.err >&5
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); } &&
9062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9063   { (case "(($ac_try" in
9064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065   *) ac_try_echo=$ac_try;;
9066 esac
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068   (eval "$ac_try") 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; } &&
9072          { ac_try='test -s conftest$ac_exeext'
9073   { (case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078   (eval "$ac_try") 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; }; then
9082   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9083 else
9084   echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9088 fi
9089
9090 rm -f core conftest.err conftest.$ac_objext \
9091       conftest$ac_exeext conftest.$ac_ext
9092 LIBS=$ac_check_lib_save_LIBS
9093 fi
9094 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9095 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9096 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9097
9098 cat >>confdefs.h <<\_ACEOF
9099 #define HAVE_LIBXXF86VM 1
9100 _ACEOF
9101
9102                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9103
9104 fi
9105
9106         fi
9107
9108                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9109         then
9110                 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h.  */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h.  */
9116 #include <X11/Xlib.h>
9117 #include <X11/extensions/Xrandr.h>
9118 int
9119 main ()
9120 {
9121 static typeof(XRRSetScreenConfigAndRate) * func;
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext
9127 if { (ac_try="$ac_compile"
9128 case "(($ac_try" in
9129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130   *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133   (eval "$ac_compile") 2>conftest.er1
9134   ac_status=$?
9135   grep -v '^ *+' conftest.er1 >conftest.err
9136   rm -f conftest.er1
9137   cat conftest.err >&5
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); } &&
9140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9141   { (case "(($ac_try" in
9142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143   *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146   (eval "$ac_try") 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest.$ac_objext'
9151   { (case "(($ac_try" in
9152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153   *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156   (eval "$ac_try") 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; }; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define HAVE_LIBXRANDR 1
9163 _ACEOF
9164
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169
9170 fi
9171
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173         fi
9174
9175                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9176         then
9177               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9178 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9179 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   ac_check_lib_save_LIBS=$LIBS
9183 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h.  */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h.  */
9190
9191 /* Override any GCC internal prototype to avoid an error.
9192    Use char because int might match the return type of a GCC
9193    builtin and then its argument prototype would still apply.  */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 char XRenderSetPictureTransform ();
9198 int
9199 main ()
9200 {
9201 return XRenderSetPictureTransform ();
9202   ;
9203   return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (ac_try="$ac_link"
9208 case "(($ac_try" in
9209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210   *) ac_try_echo=$ac_try;;
9211 esac
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213   (eval "$ac_link") 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221   { (case "(($ac_try" in
9222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223   *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226   (eval "$ac_try") 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); }; } &&
9230          { ac_try='test -s conftest$ac_exeext'
9231   { (case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236   (eval "$ac_try") 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9241 else
9242   echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9246 fi
9247
9248 rm -f core conftest.err conftest.$ac_objext \
9249       conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9251 fi
9252 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9253 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9254 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9255
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9258 _ACEOF
9259
9260 fi
9261
9262         fi
9263
9264         if test "x$with_opengl" != "xno"
9265     then
9266
9267
9268
9269
9270 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9271 do
9272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 #ifdef HAVE_GL_GLX_H
9285 # include <GL/glx.h>
9286 #endif
9287
9288 #include <$ac_header>
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (ac_try="$ac_compile"
9292 case "(($ac_try" in
9293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294   *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297   (eval "$ac_compile") 2>conftest.er1
9298   ac_status=$?
9299   grep -v '^ *+' conftest.er1 >conftest.err
9300   rm -f conftest.er1
9301   cat conftest.err >&5
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } &&
9304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9305   { (case "(($ac_try" in
9306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307   *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310   (eval "$ac_try") 2>&5
9311   ac_status=$?
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); }; } &&
9314          { ac_try='test -s conftest.$ac_objext'
9315   { (case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320   (eval "$ac_try") 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   eval "$as_ac_Header=yes"
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329         eval "$as_ac_Header=no"
9330 fi
9331
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 ac_res=`eval echo '${'$as_ac_Header'}'`
9335                { echo "$as_me:$LINENO: result: $ac_res" >&5
9336 echo "${ECHO_T}$ac_res" >&6; }
9337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9338   cat >>confdefs.h <<_ACEOF
9339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9340 _ACEOF
9341
9342 fi
9343
9344 done
9345
9346         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9347         then
9348                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9349 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9350 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359 #include <GL/gl.h>
9360 int
9361 main ()
9362 {
9363 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9364   ;
9365   return 0;
9366 }
9367 _ACEOF
9368 rm -f conftest.$ac_objext
9369 if { (ac_try="$ac_compile"
9370 case "(($ac_try" in
9371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372   *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375   (eval "$ac_compile") 2>conftest.er1
9376   ac_status=$?
9377   grep -v '^ *+' conftest.er1 >conftest.err
9378   rm -f conftest.er1
9379   cat conftest.err >&5
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } &&
9382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9383   { (case "(($ac_try" in
9384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385   *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388   (eval "$ac_try") 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); }; } &&
9392          { ac_try='test -s conftest.$ac_objext'
9393   { (case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398   (eval "$ac_try") 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   wine_cv_opengl_header_version_OK="yes"
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407         wine_cv_opengl_header_version_OK="no"
9408
9409 fi
9410
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412
9413 fi
9414 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
9415 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
9416
9417             if test "$wine_cv_opengl_header_version_OK" = "yes"
9418             then
9419                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9420 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432
9433 /* Override any GCC internal prototype to avoid an error.
9434    Use char because int might match the return type of a GCC
9435    builtin and then its argument prototype would still apply.  */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 char glXCreateContext ();
9440 int
9441 main ()
9442 {
9443 return glXCreateContext ();
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9450 case "(($ac_try" in
9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452   *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455   (eval "$ac_link") 2>conftest.er1
9456   ac_status=$?
9457   grep -v '^ *+' conftest.er1 >conftest.err
9458   rm -f conftest.er1
9459   cat conftest.err >&5
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } &&
9462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9463   { (case "(($ac_try" in
9464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465   *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468   (eval "$ac_try") 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; } &&
9472          { ac_try='test -s conftest$ac_exeext'
9473   { (case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_try") 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482   ac_cv_lib_GL_glXCreateContext=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487         ac_cv_lib_GL_glXCreateContext=no
9488 fi
9489
9490 rm -f core conftest.err conftest.$ac_objext \
9491       conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9493 fi
9494 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9495 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
9496 if test $ac_cv_lib_GL_glXCreateContext = yes; then
9497   OPENGL_LIBS="-lGL"
9498                              OPENGLFILES='$(OPENGLFILES)'
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define HAVE_OPENGL 1
9502 _ACEOF
9503
9504
9505 fi
9506
9507
9508                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9509 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
9510 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   ac_check_lib_save_LIBS=$LIBS
9514 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9515                  $LIBS"
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522
9523 /* Override any GCC internal prototype to avoid an error.
9524    Use char because int might match the return type of a GCC
9525    builtin and then its argument prototype would still apply.  */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 char gluLookAt ();
9530 int
9531 main ()
9532 {
9533 return gluLookAt ();
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (ac_try="$ac_link"
9540 case "(($ac_try" in
9541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542   *) ac_try_echo=$ac_try;;
9543 esac
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545   (eval "$ac_link") 2>conftest.er1
9546   ac_status=$?
9547   grep -v '^ *+' conftest.er1 >conftest.err
9548   rm -f conftest.er1
9549   cat conftest.err >&5
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); } &&
9552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9553   { (case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558   (eval "$ac_try") 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; } &&
9562          { ac_try='test -s conftest$ac_exeext'
9563   { (case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_try") 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   ac_cv_lib_GLU_gluLookAt=yes
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577         ac_cv_lib_GLU_gluLookAt=no
9578 fi
9579
9580 rm -f core conftest.err conftest.$ac_objext \
9581       conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9583 fi
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9585 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
9586 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9587   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9588                              GLU32FILES='$(GLU32FILES)'
9589
9590 fi
9591
9592              fi
9593
9594                           { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9595 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
9596 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9597   echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599   ac_check_lib_save_LIBS=$LIBS
9600 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607
9608 /* Override any GCC internal prototype to avoid an error.
9609    Use char because int might match the return type of a GCC
9610    builtin and then its argument prototype would still apply.  */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 char glutMainLoop ();
9615 int
9616 main ()
9617 {
9618 return glutMainLoop ();
9619   ;
9620   return 0;
9621 }
9622 _ACEOF
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (ac_try="$ac_link"
9625 case "(($ac_try" in
9626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627   *) ac_try_echo=$ac_try;;
9628 esac
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630   (eval "$ac_link") 2>conftest.er1
9631   ac_status=$?
9632   grep -v '^ *+' conftest.er1 >conftest.err
9633   rm -f conftest.er1
9634   cat conftest.err >&5
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); } &&
9637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9638   { (case "(($ac_try" in
9639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640   *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643   (eval "$ac_try") 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; } &&
9647          { ac_try='test -s conftest$ac_exeext'
9648   { (case "(($ac_try" in
9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650   *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653   (eval "$ac_try") 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; }; then
9657   ac_cv_lib_glut_glutMainLoop=yes
9658 else
9659   echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9661
9662         ac_cv_lib_glut_glutMainLoop=no
9663 fi
9664
9665 rm -f core conftest.err conftest.$ac_objext \
9666       conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$ac_check_lib_save_LIBS
9668 fi
9669 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9670 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
9671 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9672   GLUT_LIBS="-lglut -lXmu -lXi"
9673
9674                         GLUT32FILES='$(GLUT32FILES)'
9675
9676 fi
9677
9678          else
9679              wine_cv_opengl_headers_found="no"
9680          fi
9681     fi
9682         NASLIBS=""
9683
9684
9685 for ac_header in audio/audiolib.h
9686 do
9687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 fi
9694 ac_res=`eval echo '${'$as_ac_Header'}'`
9695                { echo "$as_me:$LINENO: result: $ac_res" >&5
9696 echo "${ECHO_T}$ac_res" >&6; }
9697 else
9698   # Is the header compilable?
9699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707 $ac_includes_default
9708 #include <$ac_header>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9712 case "(($ac_try" in
9713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714   *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717   (eval "$ac_compile") 2>conftest.er1
9718   ac_status=$?
9719   grep -v '^ *+' conftest.er1 >conftest.err
9720   rm -f conftest.er1
9721   cat conftest.err >&5
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); } &&
9724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9725   { (case "(($ac_try" in
9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727   *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730   (eval "$ac_try") 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; } &&
9734          { ac_try='test -s conftest.$ac_objext'
9735   { (case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_try") 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; }; then
9744   ac_header_compiler=yes
9745 else
9746   echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749         ac_header_compiler=no
9750 fi
9751
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9754 echo "${ECHO_T}$ac_header_compiler" >&6; }
9755
9756 # Is the header present?
9757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h.  */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h.  */
9765 #include <$ac_header>
9766 _ACEOF
9767 if { (ac_try="$ac_cpp conftest.$ac_ext"
9768 case "(($ac_try" in
9769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770   *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } >/dev/null; then
9780   if test -s conftest.err; then
9781     ac_cpp_err=$ac_c_preproc_warn_flag
9782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9783   else
9784     ac_cpp_err=
9785   fi
9786 else
9787   ac_cpp_err=yes
9788 fi
9789 if test -z "$ac_cpp_err"; then
9790   ac_header_preproc=yes
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795   ac_header_preproc=no
9796 fi
9797
9798 rm -f conftest.err conftest.$ac_ext
9799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9800 echo "${ECHO_T}$ac_header_preproc" >&6; }
9801
9802 # So?  What about this header?
9803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9804   yes:no: )
9805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9809     ac_header_preproc=yes
9810     ;;
9811   no:yes:* )
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9824     ( cat <<\_ASBOX
9825 ## ------------------------------------ ##
9826 ## Report this to wine-devel@winehq.org ##
9827 ## ------------------------------------ ##
9828 _ASBOX
9829      ) | sed "s/^/$as_me: WARNING:     /" >&2
9830     ;;
9831 esac
9832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   eval "$as_ac_Header=\$ac_header_preproc"
9838 fi
9839 ac_res=`eval echo '${'$as_ac_Header'}'`
9840                { echo "$as_me:$LINENO: result: $ac_res" >&5
9841 echo "${ECHO_T}$ac_res" >&6; }
9842
9843 fi
9844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9845   cat >>confdefs.h <<_ACEOF
9846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9847 _ACEOF
9848
9849 for ac_header in audio/soundlib.h
9850 do
9851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857   cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h.  */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h.  */
9863 #include <audio/audiolib.h>
9864
9865 #include <$ac_header>
9866 _ACEOF
9867 rm -f conftest.$ac_objext
9868 if { (ac_try="$ac_compile"
9869 case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_compile") 2>conftest.er1
9875   ac_status=$?
9876   grep -v '^ *+' conftest.er1 >conftest.err
9877   rm -f conftest.er1
9878   cat conftest.err >&5
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } &&
9881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882   { (case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_try") 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; } &&
9891          { ac_try='test -s conftest.$ac_objext'
9892   { (case "(($ac_try" in
9893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894   *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897   (eval "$ac_try") 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); }; }; then
9901   eval "$as_ac_Header=yes"
9902 else
9903   echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906         eval "$as_ac_Header=no"
9907 fi
9908
9909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9910 fi
9911 ac_res=`eval echo '${'$as_ac_Header'}'`
9912                { echo "$as_me:$LINENO: result: $ac_res" >&5
9913 echo "${ECHO_T}$ac_res" >&6; }
9914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9915   cat >>confdefs.h <<_ACEOF
9916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9917 _ACEOF
9918
9919 fi
9920
9921 done
9922
9923           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9924 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h.  */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h.  */
9936
9937 /* Override any GCC internal prototype to avoid an error.
9938    Use char because int might match the return type of a GCC
9939    builtin and then its argument prototype would still apply.  */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char AuCreateFlow ();
9944 int
9945 main ()
9946 {
9947 return AuCreateFlow ();
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_link") 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } &&
9966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9967   { (case "(($ac_try" in
9968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969   *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972   (eval "$ac_try") 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; } &&
9976          { ac_try='test -s conftest$ac_exeext'
9977   { (case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982   (eval "$ac_try") 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_cv_lib_audio_AuCreateFlow=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991         ac_cv_lib_audio_AuCreateFlow=no
9992 fi
9993
9994 rm -f core conftest.err conftest.$ac_objext \
9995       conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9997 fi
9998 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9999 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10000 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10001
10002 cat >>confdefs.h <<\_ACEOF
10003 #define HAVE_NAS 1
10004 _ACEOF
10005
10006                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10007 fi
10008
10009 fi
10010
10011 done
10012
10013
10014     CPPFLAGS="$ac_save_CPPFLAGS"
10015     XFILES='$(XFILES)'
10016 else
10017     XLIB=""
10018     X_CFLAGS=""
10019     X_LIBS=""
10020 fi
10021
10022
10023 XML2LIBS=""
10024
10025 XML2INCL=""
10026
10027 XSLTLIBS=""
10028
10029 XSLTINCL=""
10030
10031 if test "$PKG_CONFIG" != "false"
10032 then
10033     ac_save_CPPFLAGS="$CPPFLAGS"
10034     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10035     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10036     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10037
10038 for ac_header in libxml/parser.h
10039 do
10040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10045   echo $ECHO_N "(cached) $ECHO_C" >&6
10046 fi
10047 ac_res=`eval echo '${'$as_ac_Header'}'`
10048                { echo "$as_me:$LINENO: result: $ac_res" >&5
10049 echo "${ECHO_T}$ac_res" >&6; }
10050 else
10051   # Is the header compilable?
10052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 $ac_includes_default
10061 #include <$ac_header>
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_compile") 2>conftest.er1
10071   ac_status=$?
10072   grep -v '^ *+' conftest.er1 >conftest.err
10073   rm -f conftest.er1
10074   cat conftest.err >&5
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } &&
10077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10078   { (case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083   (eval "$ac_try") 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; } &&
10087          { ac_try='test -s conftest.$ac_objext'
10088   { (case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_try") 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; }; then
10097   ac_header_compiler=yes
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102         ac_header_compiler=no
10103 fi
10104
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10107 echo "${ECHO_T}$ac_header_compiler" >&6; }
10108
10109 # Is the header present?
10110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 #include <$ac_header>
10119 _ACEOF
10120 if { (ac_try="$ac_cpp conftest.$ac_ext"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } >/dev/null; then
10133   if test -s conftest.err; then
10134     ac_cpp_err=$ac_c_preproc_warn_flag
10135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10136   else
10137     ac_cpp_err=
10138   fi
10139 else
10140   ac_cpp_err=yes
10141 fi
10142 if test -z "$ac_cpp_err"; then
10143   ac_header_preproc=yes
10144 else
10145   echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148   ac_header_preproc=no
10149 fi
10150
10151 rm -f conftest.err conftest.$ac_ext
10152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10153 echo "${ECHO_T}$ac_header_preproc" >&6; }
10154
10155 # So?  What about this header?
10156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10157   yes:no: )
10158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10162     ac_header_preproc=yes
10163     ;;
10164   no:yes:* )
10165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10177     ( cat <<\_ASBOX
10178 ## ------------------------------------ ##
10179 ## Report this to wine-devel@winehq.org ##
10180 ## ------------------------------------ ##
10181 _ASBOX
10182      ) | sed "s/^/$as_me: WARNING:     /" >&2
10183     ;;
10184 esac
10185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188   echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190   eval "$as_ac_Header=\$ac_header_preproc"
10191 fi
10192 ac_res=`eval echo '${'$as_ac_Header'}'`
10193                { echo "$as_me:$LINENO: result: $ac_res" >&5
10194 echo "${ECHO_T}$ac_res" >&6; }
10195
10196 fi
10197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10198   cat >>confdefs.h <<_ACEOF
10199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10200 _ACEOF
10201  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10202 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10204   echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206   ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-lxml2 $ac_xml_libs $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h.  */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h.  */
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216    Use char because int might match the return type of a GCC
10217    builtin and then its argument prototype would still apply.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char xmlParseMemory ();
10222 int
10223 main ()
10224 {
10225 return xmlParseMemory ();
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234   *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237   (eval "$ac_link") 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245   { (case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_try") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest$ac_exeext'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_lib_xml2_xmlParseMemory=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_cv_lib_xml2_xmlParseMemory=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext \
10273       conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10277 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10278 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_LIBXML2 1
10282 _ACEOF
10283
10284              XML2LIBS="$ac_xml_libs"
10285              XML2INCL="$ac_xml_cflags"
10286 fi
10287
10288          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10289 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10290 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   ac_check_lib_save_LIBS=$LIBS
10294 LIBS="-lxml2 $ac_xml_libs $LIBS"
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301
10302 /* Override any GCC internal prototype to avoid an error.
10303    Use char because int might match the return type of a GCC
10304    builtin and then its argument prototype would still apply.  */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char xmlReadMemory ();
10309 int
10310 main ()
10311 {
10312 return xmlReadMemory ();
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324   (eval "$ac_link") 2>conftest.er1
10325   ac_status=$?
10326   grep -v '^ *+' conftest.er1 >conftest.err
10327   rm -f conftest.er1
10328   cat conftest.err >&5
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); } &&
10331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10332   { (case "(($ac_try" in
10333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334   *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337   (eval "$ac_try") 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); }; } &&
10341          { ac_try='test -s conftest$ac_exeext'
10342   { (case "(($ac_try" in
10343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344   *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347   (eval "$ac_try") 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); }; }; then
10351   ac_cv_lib_xml2_xmlReadMemory=yes
10352 else
10353   echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356         ac_cv_lib_xml2_xmlReadMemory=no
10357 fi
10358
10359 rm -f core conftest.err conftest.$ac_objext \
10360       conftest$ac_exeext conftest.$ac_ext
10361 LIBS=$ac_check_lib_save_LIBS
10362 fi
10363 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10364 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10365 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10366
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_XMLREADMEMORY 1
10369 _ACEOF
10370
10371 fi
10372
10373
10374 fi
10375
10376 done
10377
10378     CPPFLAGS="$ac_save_CPPFLAGS"
10379     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10380     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
10381     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10382
10383
10384 for ac_header in libxslt/pattern.h libxslt/transform.h
10385 do
10386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 #ifdef HAVE_LIBXSLT_PATTERN_H
10399 # include <libxslt/pattern.h>
10400 #endif
10401
10402 #include <$ac_header>
10403 _ACEOF
10404 rm -f conftest.$ac_objext
10405 if { (ac_try="$ac_compile"
10406 case "(($ac_try" in
10407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408   *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411   (eval "$ac_compile") 2>conftest.er1
10412   ac_status=$?
10413   grep -v '^ *+' conftest.er1 >conftest.err
10414   rm -f conftest.er1
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10419   { (case "(($ac_try" in
10420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421   *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424   (eval "$ac_try") 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; } &&
10428          { ac_try='test -s conftest.$ac_objext'
10429   { (case "(($ac_try" in
10430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431   *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434   (eval "$ac_try") 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   eval "$as_ac_Header=yes"
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         eval "$as_ac_Header=no"
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 fi
10448 ac_res=`eval echo '${'$as_ac_Header'}'`
10449                { echo "$as_me:$LINENO: result: $ac_res" >&5
10450 echo "${ECHO_T}$ac_res" >&6; }
10451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10452   cat >>confdefs.h <<_ACEOF
10453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10454 _ACEOF
10455  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10456 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
10457 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460   ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lxslt $ac_xslt_libs $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468
10469 /* Override any GCC internal prototype to avoid an error.
10470    Use char because int might match the return type of a GCC
10471    builtin and then its argument prototype would still apply.  */
10472 #ifdef __cplusplus
10473 extern "C"
10474 #endif
10475 char xsltCompilePattern ();
10476 int
10477 main ()
10478 {
10479 return xsltCompilePattern ();
10480   ;
10481   return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488   *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491   (eval "$ac_link") 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } &&
10498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499   { (case "(($ac_try" in
10500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501   *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504   (eval "$ac_try") 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; } &&
10508          { ac_try='test -s conftest$ac_exeext'
10509   { (case "(($ac_try" in
10510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511   *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514   (eval "$ac_try") 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); }; }; then
10518   ac_cv_lib_xslt_xsltCompilePattern=yes
10519 else
10520   echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523         ac_cv_lib_xslt_xsltCompilePattern=no
10524 fi
10525
10526 rm -f core conftest.err conftest.$ac_objext \
10527       conftest$ac_exeext conftest.$ac_ext
10528 LIBS=$ac_check_lib_save_LIBS
10529 fi
10530 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10531 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
10532 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10533
10534 cat >>confdefs.h <<\_ACEOF
10535 #define HAVE_LIBXSLT 1
10536 _ACEOF
10537
10538              XSLTLIBS="$ac_xslt_libs"
10539              XSLTINCL="$ac_xslt_cflags"
10540 fi
10541
10542
10543 fi
10544
10545 done
10546
10547     CPPFLAGS="$ac_save_CPPFLAGS"
10548 fi
10549
10550 HALINCL=""
10551
10552 if test "$PKG_CONFIG" != "false"
10553 then
10554     ac_save_CPPFLAGS="$CPPFLAGS"
10555     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
10556     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
10557     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10558
10559
10560 for ac_header in dbus/dbus.h hal/libhal.h
10561 do
10562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 fi
10569 ac_res=`eval echo '${'$as_ac_Header'}'`
10570                { echo "$as_me:$LINENO: result: $ac_res" >&5
10571 echo "${ECHO_T}$ac_res" >&6; }
10572 else
10573   # Is the header compilable?
10574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 $ac_includes_default
10583 #include <$ac_header>
10584 _ACEOF
10585 rm -f conftest.$ac_objext
10586 if { (ac_try="$ac_compile"
10587 case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_compile") 2>conftest.er1
10593   ac_status=$?
10594   grep -v '^ *+' conftest.er1 >conftest.err
10595   rm -f conftest.er1
10596   cat conftest.err >&5
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); } &&
10599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600   { (case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_try") 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest.$ac_objext'
10610   { (case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615   (eval "$ac_try") 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; }; then
10619   ac_header_compiler=yes
10620 else
10621   echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624         ac_header_compiler=no
10625 fi
10626
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629 echo "${ECHO_T}$ac_header_compiler" >&6; }
10630
10631 # Is the header present?
10632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h.  */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h.  */
10640 #include <$ac_header>
10641 _ACEOF
10642 if { (ac_try="$ac_cpp conftest.$ac_ext"
10643 case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } >/dev/null; then
10655   if test -s conftest.err; then
10656     ac_cpp_err=$ac_c_preproc_warn_flag
10657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658   else
10659     ac_cpp_err=
10660   fi
10661 else
10662   ac_cpp_err=yes
10663 fi
10664 if test -z "$ac_cpp_err"; then
10665   ac_header_preproc=yes
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670   ac_header_preproc=no
10671 fi
10672
10673 rm -f conftest.err conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6; }
10676
10677 # So?  What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679   yes:no: )
10680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684     ac_header_preproc=yes
10685     ;;
10686   no:yes:* )
10687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699     ( cat <<\_ASBOX
10700 ## ------------------------------------ ##
10701 ## Report this to wine-devel@winehq.org ##
10702 ## ------------------------------------ ##
10703 _ASBOX
10704      ) | sed "s/^/$as_me: WARNING:     /" >&2
10705     ;;
10706 esac
10707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   eval "$as_ac_Header=\$ac_header_preproc"
10713 fi
10714 ac_res=`eval echo '${'$as_ac_Header'}'`
10715                { echo "$as_me:$LINENO: result: $ac_res" >&5
10716 echo "${ECHO_T}$ac_res" >&6; }
10717
10718 fi
10719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10720   cat >>confdefs.h <<_ACEOF
10721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722 _ACEOF
10723
10724 fi
10725
10726 done
10727
10728     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10729     then
10730         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
10731 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
10732 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   ac_check_lib_save_LIBS=$LIBS
10736 LIBS="-lhal  $LIBS"
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743
10744 /* Override any GCC internal prototype to avoid an error.
10745    Use char because int might match the return type of a GCC
10746    builtin and then its argument prototype would still apply.  */
10747 #ifdef __cplusplus
10748 extern "C"
10749 #endif
10750 char libhal_ctx_new ();
10751 int
10752 main ()
10753 {
10754 return libhal_ctx_new ();
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_link") 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774   { (case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_try") 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; } &&
10783          { ac_try='test -s conftest$ac_exeext'
10784   { (case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_try") 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   ac_cv_lib_hal_libhal_ctx_new=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_cv_lib_hal_libhal_ctx_new=no
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext \
10802       conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10804 fi
10805 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
10806 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
10807 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
10808   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10809 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
10810 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10811   echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813   ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h.  */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h.  */
10821
10822 /* Override any GCC internal prototype to avoid an error.
10823    Use char because int might match the return type of a GCC
10824    builtin and then its argument prototype would still apply.  */
10825 #ifdef __cplusplus
10826 extern "C"
10827 #endif
10828 char dbus_connection_close ();
10829 int
10830 main ()
10831 {
10832 return dbus_connection_close ();
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_link") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; } &&
10861          { ac_try='test -s conftest$ac_exeext'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   ac_cv_lib_dbus_1_dbus_connection_close=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876         ac_cv_lib_dbus_1_dbus_connection_close=no
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext \
10880       conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10884 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
10885 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
10886
10887 cat >>confdefs.h <<\_ACEOF
10888 #define HAVE_LIBHAL 1
10889 _ACEOF
10890
10891              HALINCL="$ac_hal_cflags"
10892 fi
10893
10894 fi
10895
10896     fi
10897     CPPFLAGS="$ac_save_CPPFLAGS"
10898 fi
10899
10900 CURSESLIBS=""
10901 if test "x$with_curses" != "xno"
10902 then
10903     if test "$ac_cv_header_ncurses_h" = "yes"
10904     then
10905         { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
10906 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
10907 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
10908   echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910   ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-lncurses  $LIBS"
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918
10919 /* Override any GCC internal prototype to avoid an error.
10920    Use char because int might match the return type of a GCC
10921    builtin and then its argument prototype would still apply.  */
10922 #ifdef __cplusplus
10923 extern "C"
10924 #endif
10925 char waddch ();
10926 int
10927 main ()
10928 {
10929 return waddch ();
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_link") 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949   { (case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_try") 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest$ac_exeext'
10959   { (case "(($ac_try" in
10960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961   *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964   (eval "$ac_try") 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; }; then
10968   ac_cv_lib_ncurses_waddch=yes
10969 else
10970   echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10972
10973         ac_cv_lib_ncurses_waddch=no
10974 fi
10975
10976 rm -f core conftest.err conftest.$ac_objext \
10977       conftest$ac_exeext conftest.$ac_ext
10978 LIBS=$ac_check_lib_save_LIBS
10979 fi
10980 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
10981 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
10982 if test $ac_cv_lib_ncurses_waddch = yes; then
10983
10984 cat >>confdefs.h <<\_ACEOF
10985 #define HAVE_LIBNCURSES 1
10986 _ACEOF
10987
10988              CURSESLIBS="-lncurses"
10989 fi
10990
10991     elif test "$ac_cv_header_curses_h" = "yes"
10992     then
10993         { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
10994 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
10995 if test "${ac_cv_lib_curses_waddch+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-lcurses  $LIBS"
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006
11007 /* Override any GCC internal prototype to avoid an error.
11008    Use char because int might match the return type of a GCC
11009    builtin and then its argument prototype would still apply.  */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char waddch ();
11014 int
11015 main ()
11016 {
11017 return waddch ();
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_link") 2>conftest.er1
11030   ac_status=$?
11031   grep -v '^ *+' conftest.er1 >conftest.err
11032   rm -f conftest.er1
11033   cat conftest.err >&5
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); } &&
11036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11037   { (case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042   (eval "$ac_try") 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; } &&
11046          { ac_try='test -s conftest$ac_exeext'
11047   { (case "(($ac_try" in
11048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049   *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052   (eval "$ac_try") 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; }; then
11056   ac_cv_lib_curses_waddch=yes
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061         ac_cv_lib_curses_waddch=no
11062 fi
11063
11064 rm -f core conftest.err conftest.$ac_objext \
11065       conftest$ac_exeext conftest.$ac_ext
11066 LIBS=$ac_check_lib_save_LIBS
11067 fi
11068 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11069 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11070 if test $ac_cv_lib_curses_waddch = yes; then
11071
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_LIBCURSES 1
11074 _ACEOF
11075
11076              CURSESLIBS="-lcurses"
11077 fi
11078
11079     fi
11080     ac_save_LIBS="$LIBS"
11081     LIBS="$LIBS $CURSESLIBS"
11082
11083 for ac_func in mousemask
11084 do
11085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11089   echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091   cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h.  */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h.  */
11097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11099 #define $ac_func innocuous_$ac_func
11100
11101 /* System header to define __stub macros and hopefully few prototypes,
11102     which can conflict with char $ac_func (); below.
11103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11104     <limits.h> exists even on freestanding compilers.  */
11105
11106 #ifdef __STDC__
11107 # include <limits.h>
11108 #else
11109 # include <assert.h>
11110 #endif
11111
11112 #undef $ac_func
11113
11114 /* Override any GCC internal prototype to avoid an error.
11115    Use char because int might match the return type of a GCC
11116    builtin and then its argument prototype would still apply.  */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char $ac_func ();
11121 /* The GNU C library defines this for functions which it implements
11122     to always fail with ENOSYS.  Some functions are actually named
11123     something starting with __ and the normal name is an alias.  */
11124 #if defined __stub_$ac_func || defined __stub___$ac_func
11125 choke me
11126 #endif
11127
11128 int
11129 main ()
11130 {
11131 return $ac_func ();
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (ac_try="$ac_link"
11138 case "(($ac_try" in
11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140   *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143   (eval "$ac_link") 2>conftest.er1
11144   ac_status=$?
11145   grep -v '^ *+' conftest.er1 >conftest.err
11146   rm -f conftest.er1
11147   cat conftest.err >&5
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } &&
11150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11151   { (case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_try") 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; } &&
11160          { ac_try='test -s conftest$ac_exeext'
11161   { (case "(($ac_try" in
11162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163   *) ac_try_echo=$ac_try;;
11164 esac
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166   (eval "$ac_try") 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   eval "$as_ac_var=yes"
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175         eval "$as_ac_var=no"
11176 fi
11177
11178 rm -f core conftest.err conftest.$ac_objext \
11179       conftest$ac_exeext conftest.$ac_ext
11180 fi
11181 ac_res=`eval echo '${'$as_ac_var'}'`
11182                { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11184 if test `eval echo '${'$as_ac_var'}'` = yes; then
11185   cat >>confdefs.h <<_ACEOF
11186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11187 _ACEOF
11188
11189 fi
11190 done
11191
11192     LIBS="$ac_save_LIBS"
11193 fi
11194
11195
11196 # Extract the first word of "sane-config", so it can be a program name with args.
11197 set dummy sane-config; ac_word=$2
11198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11200 if test "${ac_cv_prog_sane_devel+set}" = set; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   if test -n "$sane_devel"; then
11204   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11205 else
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11208 do
11209   IFS=$as_save_IFS
11210   test -z "$as_dir" && as_dir=.
11211   for ac_exec_ext in '' $ac_executable_extensions; do
11212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11213     ac_cv_prog_sane_devel="sane-config"
11214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11215     break 2
11216   fi
11217 done
11218 done
11219 IFS=$as_save_IFS
11220
11221   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11222 fi
11223 fi
11224 sane_devel=$ac_cv_prog_sane_devel
11225 if test -n "$sane_devel"; then
11226   { echo "$as_me:$LINENO: result: $sane_devel" >&5
11227 echo "${ECHO_T}$sane_devel" >&6; }
11228 else
11229   { echo "$as_me:$LINENO: result: no" >&5
11230 echo "${ECHO_T}no" >&6; }
11231 fi
11232
11233
11234 SANELIBS=""
11235
11236 SANEINCL=""
11237
11238 if test "$sane_devel" != "no"
11239 then
11240     SANELIBS="`$sane_devel --libs`"
11241     SANEINCL="`$sane_devel --cflags`"
11242     ac_save_CPPFLAGS="$CPPFLAGS"
11243     ac_save_LIBS="$LIBS"
11244     CPPFLAGS="$CPPFLAGS $SANEINCL"
11245     LIBS="$LIBS $SANELIBS"
11246     if test "${ac_cv_header_sane_sane_h+set}" = set; then
11247   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11248 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11249 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11250   echo $ECHO_N "(cached) $ECHO_C" >&6
11251 fi
11252 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11253 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11254 else
11255   # Is the header compilable?
11256 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11257 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 $ac_includes_default
11265 #include <sane/sane.h>
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271   *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274   (eval "$ac_compile") 2>conftest.er1
11275   ac_status=$?
11276   grep -v '^ *+' conftest.er1 >conftest.err
11277   rm -f conftest.er1
11278   cat conftest.err >&5
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); } &&
11281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11282   { (case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287   (eval "$ac_try") 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; } &&
11291          { ac_try='test -s conftest.$ac_objext'
11292   { (case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_try") 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; }; then
11301   ac_header_compiler=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306         ac_header_compiler=no
11307 fi
11308
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11315 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 #include <sane/sane.h>
11323 _ACEOF
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } >/dev/null; then
11337   if test -s conftest.err; then
11338     ac_cpp_err=$ac_c_preproc_warn_flag
11339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11340   else
11341     ac_cpp_err=
11342   fi
11343 else
11344   ac_cpp_err=yes
11345 fi
11346 if test -z "$ac_cpp_err"; then
11347   ac_header_preproc=yes
11348 else
11349   echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352   ac_header_preproc=no
11353 fi
11354
11355 rm -f conftest.err conftest.$ac_ext
11356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11357 echo "${ECHO_T}$ac_header_preproc" >&6; }
11358
11359 # So?  What about this header?
11360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11361   yes:no: )
11362     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11363 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11365 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11366     ac_header_preproc=yes
11367     ;;
11368   no:yes:* )
11369     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11370 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
11372 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11374 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
11376 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11378 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11380 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
11381     ( cat <<\_ASBOX
11382 ## ------------------------------------ ##
11383 ## Report this to wine-devel@winehq.org ##
11384 ## ------------------------------------ ##
11385 _ASBOX
11386      ) | sed "s/^/$as_me: WARNING:     /" >&2
11387     ;;
11388 esac
11389 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11390 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11391 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   ac_cv_header_sane_sane_h=$ac_header_preproc
11395 fi
11396 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11397 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11398
11399 fi
11400 if test $ac_cv_header_sane_sane_h = yes; then
11401   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11402 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
11403 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406   ac_check_lib_save_LIBS=$LIBS
11407 LIBS="-lsane  $LIBS"
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h.  */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h.  */
11414
11415 /* Override any GCC internal prototype to avoid an error.
11416    Use char because int might match the return type of a GCC
11417    builtin and then its argument prototype would still apply.  */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 char sane_open ();
11422 int
11423 main ()
11424 {
11425 return sane_open ();
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434   *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437   (eval "$ac_link") 2>conftest.er1
11438   ac_status=$?
11439   grep -v '^ *+' conftest.er1 >conftest.err
11440   rm -f conftest.er1
11441   cat conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } &&
11444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11445   { (case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_try") 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; } &&
11454          { ac_try='test -s conftest$ac_exeext'
11455   { (case "(($ac_try" in
11456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457   *) ac_try_echo=$ac_try;;
11458 esac
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460   (eval "$ac_try") 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; }; then
11464   ac_cv_lib_sane_sane_open=yes
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469         ac_cv_lib_sane_sane_open=no
11470 fi
11471
11472 rm -f core conftest.err conftest.$ac_objext \
11473       conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11475 fi
11476 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
11477 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
11478 if test $ac_cv_lib_sane_sane_open = yes; then
11479
11480 cat >>confdefs.h <<\_ACEOF
11481 #define HAVE_SANE 1
11482 _ACEOF
11483
11484 else
11485   SANELIBS=""
11486                                   SANEINCL=""
11487 fi
11488
11489 else
11490   SANELIBS=""
11491                     SANEINCL=""
11492 fi
11493
11494
11495     LIBS="$ac_save_LIBS"
11496     CPPFLAGS="$ac_save_CPPFLAGS"
11497 fi
11498
11499 # Extract the first word of "gphoto2-config", so it can be a program name with args.
11500 set dummy gphoto2-config; ac_word=$2
11501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11503 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
11504   echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506   if test -n "$gphoto2_devel"; then
11507   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
11508 else
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11511 do
11512   IFS=$as_save_IFS
11513   test -z "$as_dir" && as_dir=.
11514   for ac_exec_ext in '' $ac_executable_extensions; do
11515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11516     ac_cv_prog_gphoto2_devel="gphoto2-config"
11517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11518     break 2
11519   fi
11520 done
11521 done
11522 IFS=$as_save_IFS
11523
11524   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
11525 fi
11526 fi
11527 gphoto2_devel=$ac_cv_prog_gphoto2_devel
11528 if test -n "$gphoto2_devel"; then
11529   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
11530 echo "${ECHO_T}$gphoto2_devel" >&6; }
11531 else
11532   { echo "$as_me:$LINENO: result: no" >&5
11533 echo "${ECHO_T}no" >&6; }
11534 fi
11535
11536
11537 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11538 set dummy gphoto2-port-config; ac_word=$2
11539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11541 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   if test -n "$gphoto2port_devel"; then
11545   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11546 else
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11549 do
11550   IFS=$as_save_IFS
11551   test -z "$as_dir" && as_dir=.
11552   for ac_exec_ext in '' $ac_executable_extensions; do
11553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11554     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11556     break 2
11557   fi
11558 done
11559 done
11560 IFS=$as_save_IFS
11561
11562   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11563 fi
11564 fi
11565 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11566 if test -n "$gphoto2port_devel"; then
11567   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11568 echo "${ECHO_T}$gphoto2port_devel" >&6; }
11569 else
11570   { echo "$as_me:$LINENO: result: no" >&5
11571 echo "${ECHO_T}no" >&6; }
11572 fi
11573
11574
11575 GPHOTO2LIBS=""
11576
11577 GPHOTO2INCL=""
11578
11579 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11580 then
11581     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11582     GPHOTO2LIBS=""
11583     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11584     do
11585       case "$i" in
11586         -L/usr/lib|-L/usr/lib64) ;;
11587         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11588       esac
11589     done
11590     ac_save_CPPFLAGS="$CPPFLAGS"
11591     ac_save_LIBS="$LIBS"
11592     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11593     LIBS="$LIBS $GPHOTO2LIBS"
11594     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11595   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11596 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11597 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 fi
11600 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11601 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11602 else
11603   # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11605 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612 $ac_includes_default
11613 #include <gphoto2-camera.h>
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_compile") 2>conftest.er1
11623   ac_status=$?
11624   grep -v '^ *+' conftest.er1 >conftest.err
11625   rm -f conftest.er1
11626   cat conftest.err >&5
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); } &&
11629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11630   { (case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635   (eval "$ac_try") 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; } &&
11639          { ac_try='test -s conftest.$ac_objext'
11640   { (case "(($ac_try" in
11641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642   *) ac_try_echo=$ac_try;;
11643 esac
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645   (eval "$ac_try") 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_header_compiler=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654         ac_header_compiler=no
11655 fi
11656
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11659 echo "${ECHO_T}$ac_header_compiler" >&6; }
11660
11661 # Is the header present?
11662 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11663 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h.  */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h.  */
11670 #include <gphoto2-camera.h>
11671 _ACEOF
11672 if { (ac_try="$ac_cpp conftest.$ac_ext"
11673 case "(($ac_try" in
11674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675   *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11679   ac_status=$?
11680   grep -v '^ *+' conftest.er1 >conftest.err
11681   rm -f conftest.er1
11682   cat conftest.err >&5
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); } >/dev/null; then
11685   if test -s conftest.err; then
11686     ac_cpp_err=$ac_c_preproc_warn_flag
11687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11688   else
11689     ac_cpp_err=
11690   fi
11691 else
11692   ac_cpp_err=yes
11693 fi
11694 if test -z "$ac_cpp_err"; then
11695   ac_header_preproc=yes
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700   ac_header_preproc=no
11701 fi
11702
11703 rm -f conftest.err conftest.$ac_ext
11704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11705 echo "${ECHO_T}$ac_header_preproc" >&6; }
11706
11707 # So?  What about this header?
11708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11709   yes:no: )
11710     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11711 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11712     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11713 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11714     ac_header_preproc=yes
11715     ;;
11716   no:yes:* )
11717     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11718 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11719     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
11720 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
11721     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11722 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11723     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
11724 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11725     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11726 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11727     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11728 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
11729     ( cat <<\_ASBOX
11730 ## ------------------------------------ ##
11731 ## Report this to wine-devel@winehq.org ##
11732 ## ------------------------------------ ##
11733 _ASBOX
11734      ) | sed "s/^/$as_me: WARNING:     /" >&2
11735     ;;
11736 esac
11737 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11738 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11739 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11743 fi
11744 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11745 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11746
11747 fi
11748 if test $ac_cv_header_gphoto2_camera_h = yes; then
11749   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11750 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
11751 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-lgphoto2  $LIBS"
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762
11763 /* Override any GCC internal prototype to avoid an error.
11764    Use char because int might match the return type of a GCC
11765    builtin and then its argument prototype would still apply.  */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 char gp_camera_new ();
11770 int
11771 main ()
11772 {
11773 return gp_camera_new ();
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (ac_try="$ac_link"
11780 case "(($ac_try" in
11781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782   *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785   (eval "$ac_link") 2>conftest.er1
11786   ac_status=$?
11787   grep -v '^ *+' conftest.er1 >conftest.err
11788   rm -f conftest.er1
11789   cat conftest.err >&5
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11793   { (case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_try") 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; } &&
11802          { ac_try='test -s conftest$ac_exeext'
11803   { (case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_try") 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; }; then
11812   ac_cv_lib_gphoto2_gp_camera_new=yes
11813 else
11814   echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11816
11817         ac_cv_lib_gphoto2_gp_camera_new=no
11818 fi
11819
11820 rm -f core conftest.err conftest.$ac_objext \
11821       conftest$ac_exeext conftest.$ac_ext
11822 LIBS=$ac_check_lib_save_LIBS
11823 fi
11824 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11825 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11826 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11827
11828 cat >>confdefs.h <<\_ACEOF
11829 #define HAVE_GPHOTO2 1
11830 _ACEOF
11831
11832 else
11833   GPHOTO2LIBS=""
11834                                   GPHOTO2INCL=""
11835 fi
11836
11837 else
11838   GPHOTO2LIBS=""
11839                     GPHOTO2INCL=""
11840 fi
11841
11842
11843     LIBS="$ac_save_LIBS"
11844     CPPFLAGS="$ac_save_CPPFLAGS"
11845 fi
11846
11847 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
11848 then
11849     saved_libs="$LIBS"
11850     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
11851     do
11852         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
11853         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
11854         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
11855 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
11856         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11857         cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 #include <unicode/ubidi.h>
11864 int
11865 main ()
11866 {
11867 ubidi_open()
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (ac_try="$ac_link"
11874 case "(($ac_try" in
11875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876   *) ac_try_echo=$ac_try;;
11877 esac
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879   (eval "$ac_link") 2>conftest.er1
11880   ac_status=$?
11881   grep -v '^ *+' conftest.er1 >conftest.err
11882   rm -f conftest.er1
11883   cat conftest.err >&5
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } &&
11886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11887   { (case "(($ac_try" in
11888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889   *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892   (eval "$ac_try") 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; } &&
11896          { ac_try='test -s conftest$ac_exeext'
11897   { (case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_try") 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; }; then
11906
11907 cat >>confdefs.h <<\_ACEOF
11908 #define HAVE_ICU 1
11909 _ACEOF
11910
11911                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11912
11913                      { echo "$as_me:$LINENO: result: yes" >&5
11914 echo "${ECHO_T}yes" >&6; }
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919         { echo "$as_me:$LINENO: result: no" >&5
11920 echo "${ECHO_T}no" >&6; }
11921 fi
11922
11923 rm -f core conftest.err conftest.$ac_objext \
11924       conftest$ac_exeext conftest.$ac_ext
11925     done
11926     LIBS="$saved_libs"
11927 fi
11928
11929 RESOLVLIBS=""
11930
11931 if test "$ac_cv_header_resolv_h" = "yes"
11932 then
11933     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11934 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11935 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lresolv  $LIBS"
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h.  */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h.  */
11946
11947 /* Override any GCC internal prototype to avoid an error.
11948    Use char because int might match the return type of a GCC
11949    builtin and then its argument prototype would still apply.  */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char res_query ();
11954 int
11955 main ()
11956 {
11957 return res_query ();
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966   *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969   (eval "$ac_link") 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977   { (case "(($ac_try" in
11978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979   *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982   (eval "$ac_try") 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; } &&
11986          { ac_try='test -s conftest$ac_exeext'
11987   { (case "(($ac_try" in
11988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989   *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992   (eval "$ac_try") 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   ac_cv_lib_resolv_res_query=yes
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001         ac_cv_lib_resolv_res_query=no
12002 fi
12003
12004 rm -f core conftest.err conftest.$ac_objext \
12005       conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12007 fi
12008 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12009 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12010 if test $ac_cv_lib_resolv_res_query = yes; then
12011
12012 cat >>confdefs.h <<\_ACEOF
12013 #define HAVE_RESOLV 1
12014 _ACEOF
12015
12016          RESOLVLIBS="-lresolv"
12017 fi
12018
12019 fi
12020
12021 LCMSLIBS=""
12022
12023 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12024 then
12025     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12026 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12027 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030   ac_check_lib_save_LIBS=$LIBS
12031 LIBS="-llcms  $LIBS"
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038
12039 /* Override any GCC internal prototype to avoid an error.
12040    Use char because int might match the return type of a GCC
12041    builtin and then its argument prototype would still apply.  */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 char cmsOpenProfileFromFile ();
12046 int
12047 main ()
12048 {
12049 return cmsOpenProfileFromFile ();
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061   (eval "$ac_link") 2>conftest.er1
12062   ac_status=$?
12063   grep -v '^ *+' conftest.er1 >conftest.err
12064   rm -f conftest.er1
12065   cat conftest.err >&5
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } &&
12068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12069   { (case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_try") 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; } &&
12078          { ac_try='test -s conftest$ac_exeext'
12079   { (case "(($ac_try" in
12080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081   *) ac_try_echo=$ac_try;;
12082 esac
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084   (eval "$ac_try") 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; }; then
12088   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext \
12097       conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12099 fi
12100 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12101 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12102 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12103
12104 cat >>confdefs.h <<\_ACEOF
12105 #define HAVE_LCMS 1
12106 _ACEOF
12107
12108          LCMSLIBS="-llcms"
12109 fi
12110
12111 fi
12112
12113 LDAPLIBS=""
12114
12115 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12116 then
12117     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12118 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12119 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h.  */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h.  */
12130
12131 /* Override any GCC internal prototype to avoid an error.
12132    Use char because int might match the return type of a GCC
12133    builtin and then its argument prototype would still apply.  */
12134 #ifdef __cplusplus
12135 extern "C"
12136 #endif
12137 char ldap_initialize ();
12138 int
12139 main ()
12140 {
12141 return ldap_initialize ();
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (ac_try="$ac_link"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_link") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161   { (case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_try") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; } &&
12170          { ac_try='test -s conftest$ac_exeext'
12171   { (case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_try") 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   ac_cv_lib_ldap_r_ldap_initialize=yes
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185         ac_cv_lib_ldap_r_ldap_initialize=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext \
12189       conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12191 fi
12192 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12193 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12194 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12195   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12196 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12197 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-llber $LIBPTHREAD $LIBS"
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h.  */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h.  */
12208
12209 /* Override any GCC internal prototype to avoid an error.
12210    Use char because int might match the return type of a GCC
12211    builtin and then its argument prototype would still apply.  */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char ber_init ();
12216 int
12217 main ()
12218 {
12219 return ber_init ();
12220   ;
12221   return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (ac_try="$ac_link"
12226 case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_link") 2>conftest.er1
12232   ac_status=$?
12233   grep -v '^ *+' conftest.er1 >conftest.err
12234   rm -f conftest.er1
12235   cat conftest.err >&5
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } &&
12238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12239   { (case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_try") 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; } &&
12248          { ac_try='test -s conftest$ac_exeext'
12249   { (case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_try") 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; }; then
12258   ac_cv_lib_lber_ber_init=yes
12259 else
12260   echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12262
12263         ac_cv_lib_lber_ber_init=no
12264 fi
12265
12266 rm -f core conftest.err conftest.$ac_objext \
12267       conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12269 fi
12270 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12271 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12272 if test $ac_cv_lib_lber_ber_init = yes; then
12273
12274 cat >>confdefs.h <<\_ACEOF
12275 #define HAVE_LDAP 1
12276 _ACEOF
12277
12278              LDAPLIBS="-lldap_r -llber"
12279 fi
12280
12281 fi
12282
12283     ac_wine_check_funcs_save_LIBS="$LIBS"
12284 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12285
12286
12287
12288
12289 for ac_func in \
12290         ldap_count_references \
12291         ldap_first_reference \
12292         ldap_next_reference \
12293         ldap_parse_reference
12294 do
12295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301   cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12309 #define $ac_func innocuous_$ac_func
12310
12311 /* System header to define __stub macros and hopefully few prototypes,
12312     which can conflict with char $ac_func (); below.
12313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314     <limits.h> exists even on freestanding compilers.  */
12315
12316 #ifdef __STDC__
12317 # include <limits.h>
12318 #else
12319 # include <assert.h>
12320 #endif
12321
12322 #undef $ac_func
12323
12324 /* Override any GCC internal prototype to avoid an error.
12325    Use char because int might match the return type of a GCC
12326    builtin and then its argument prototype would still apply.  */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 char $ac_func ();
12331 /* The GNU C library defines this for functions which it implements
12332     to always fail with ENOSYS.  Some functions are actually named
12333     something starting with __ and the normal name is an alias.  */
12334 #if defined __stub_$ac_func || defined __stub___$ac_func
12335 choke me
12336 #endif
12337
12338 int
12339 main ()
12340 {
12341 return $ac_func ();
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (ac_try="$ac_link"
12348 case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353   (eval "$ac_link") 2>conftest.er1
12354   ac_status=$?
12355   grep -v '^ *+' conftest.er1 >conftest.err
12356   rm -f conftest.er1
12357   cat conftest.err >&5
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } &&
12360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12361   { (case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_try") 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; } &&
12370          { ac_try='test -s conftest$ac_exeext'
12371   { (case "(($ac_try" in
12372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373   *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376   (eval "$ac_try") 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; }; then
12380   eval "$as_ac_var=yes"
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385         eval "$as_ac_var=no"
12386 fi
12387
12388 rm -f core conftest.err conftest.$ac_objext \
12389       conftest$ac_exeext conftest.$ac_ext
12390 fi
12391 ac_res=`eval echo '${'$as_ac_var'}'`
12392                { echo "$as_me:$LINENO: result: $ac_res" >&5
12393 echo "${ECHO_T}$ac_res" >&6; }
12394 if test `eval echo '${'$as_ac_var'}'` = yes; then
12395   cat >>confdefs.h <<_ACEOF
12396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12397 _ACEOF
12398
12399 fi
12400 done
12401
12402 LIBS="$ac_wine_check_funcs_save_LIBS"
12403 fi
12404
12405 FREETYPELIBS=""
12406
12407 FREETYPEINCL=""
12408
12409 # Extract the first word of "freetype-config", so it can be a program name with args.
12410 set dummy freetype-config; ac_word=$2
12411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12413 if test "${ac_cv_prog_ft_devel+set}" = set; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   if test -n "$ft_devel"; then
12417   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12421 do
12422   IFS=$as_save_IFS
12423   test -z "$as_dir" && as_dir=.
12424   for ac_exec_ext in '' $ac_executable_extensions; do
12425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12426     ac_cv_prog_ft_devel="freetype-config"
12427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12428     break 2
12429   fi
12430 done
12431 done
12432 IFS=$as_save_IFS
12433
12434   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12435 fi
12436 fi
12437 ft_devel=$ac_cv_prog_ft_devel
12438 if test -n "$ft_devel"; then
12439   { echo "$as_me:$LINENO: result: $ft_devel" >&5
12440 echo "${ECHO_T}$ft_devel" >&6; }
12441 else
12442   { echo "$as_me:$LINENO: result: no" >&5
12443 echo "${ECHO_T}no" >&6; }
12444 fi
12445
12446
12447 if test "$ft_devel" = "no"
12448 then
12449     # Extract the first word of "freetype2-config", so it can be a program name with args.
12450 set dummy freetype2-config; ac_word=$2
12451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12453 if test "${ac_cv_prog_ft_devel2+set}" = set; then
12454   echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456   if test -n "$ft_devel2"; then
12457   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12458 else
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462   IFS=$as_save_IFS
12463   test -z "$as_dir" && as_dir=.
12464   for ac_exec_ext in '' $ac_executable_extensions; do
12465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12466     ac_cv_prog_ft_devel2="freetype2-config"
12467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12468     break 2
12469   fi
12470 done
12471 done
12472 IFS=$as_save_IFS
12473
12474   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
12475 fi
12476 fi
12477 ft_devel2=$ac_cv_prog_ft_devel2
12478 if test -n "$ft_devel2"; then
12479   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
12480 echo "${ECHO_T}$ft_devel2" >&6; }
12481 else
12482   { echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6; }
12484 fi
12485
12486
12487     if test "$ft_devel2" = "freetype2-config"
12488     then
12489         ft_devel=$ft_devel2
12490     fi
12491 fi
12492
12493 if test "$ft_devel" = "no"
12494 then
12495     wine_cv_msg_freetype=yes
12496 else
12497     FREETYPELIBS=`$ft_devel --libs`
12498     FREETYPEINCL=`$ft_devel --cflags`
12499     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
12500 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
12501 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   ac_check_lib_save_LIBS=$LIBS
12505 LIBS="-lfreetype $FREETYPELIBS $LIBS"
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512
12513 /* Override any GCC internal prototype to avoid an error.
12514    Use char because int might match the return type of a GCC
12515    builtin and then its argument prototype would still apply.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 char FT_Init_FreeType ();
12520 int
12521 main ()
12522 {
12523 return FT_Init_FreeType ();
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_link") 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543   { (case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_try") 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; } &&
12552          { ac_try='test -s conftest$ac_exeext'
12553   { (case "(($ac_try" in
12554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555   *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558   (eval "$ac_try") 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_cv_lib_freetype_FT_Init_FreeType=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567         ac_cv_lib_freetype_FT_Init_FreeType=no
12568 fi
12569
12570 rm -f core conftest.err conftest.$ac_objext \
12571       conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12573 fi
12574 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
12575 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
12576 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
12577   ft_lib=yes
12578 else
12579   ft_lib=no
12580 fi
12581
12582     if test "$ft_lib" = "no"
12583     then
12584         wine_cv_msg_freetype=yes
12585         FREETYPELIBS=""
12586         FREETYPEINCL=""
12587     else
12588         ac_save_CPPFLAGS="$CPPFLAGS"
12589         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601 for ac_header in ft2build.h \
12602                          freetype/freetype.h \
12603                          freetype/ftglyph.h \
12604                          freetype/tttables.h \
12605                          freetype/ftnames.h \
12606                          freetype/ftsnames.h \
12607                          freetype/ttnameid.h \
12608                          freetype/ftoutln.h \
12609                          freetype/ftwinfnt.h \
12610                          freetype/ftmodapi.h \
12611                          freetype/internal/sfnt.h
12612 do
12613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h.  */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h.  */
12625 #if HAVE_FT2BUILD_H
12626                           #include <ft2build.h>
12627                           #endif
12628
12629 #include <$ac_header>
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (ac_try="$ac_compile"
12633 case "(($ac_try" in
12634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635   *) ac_try_echo=$ac_try;;
12636 esac
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638   (eval "$ac_compile") 2>conftest.er1
12639   ac_status=$?
12640   grep -v '^ *+' conftest.er1 >conftest.err
12641   rm -f conftest.er1
12642   cat conftest.err >&5
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); } &&
12645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12646   { (case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_try") 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; } &&
12655          { ac_try='test -s conftest.$ac_objext'
12656   { (case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_try") 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; }; then
12665   eval "$as_ac_Header=yes"
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670         eval "$as_ac_Header=no"
12671 fi
12672
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 fi
12675 ac_res=`eval echo '${'$as_ac_Header'}'`
12676                { echo "$as_me:$LINENO: result: $ac_res" >&5
12677 echo "${ECHO_T}$ac_res" >&6; }
12678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12679   cat >>confdefs.h <<_ACEOF
12680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12681 _ACEOF
12682
12683 fi
12684
12685 done
12686
12687         cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 #include <ft2build.h>
12694                     #include <freetype/fttrigon.h>
12695 _ACEOF
12696 if { (ac_try="$ac_cpp conftest.$ac_ext"
12697 case "(($ac_try" in
12698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699   *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } >/dev/null; then
12709   if test -s conftest.err; then
12710     ac_cpp_err=$ac_c_preproc_warn_flag
12711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12712   else
12713     ac_cpp_err=
12714   fi
12715 else
12716   ac_cpp_err=yes
12717 fi
12718 if test -z "$ac_cpp_err"; then
12719
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_FREETYPE_FTTRIGON_H 1
12722 _ACEOF
12723
12724                     wine_cv_fttrigon=yes
12725 else
12726   echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729   wine_cv_fttrigon=no
12730 fi
12731
12732 rm -f conftest.err conftest.$ac_ext
12733         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12734 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
12735 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738   cat >conftest.$ac_ext <<_ACEOF
12739 /* confdefs.h.  */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h.  */
12744 #include <freetype/ftmodapi.h>
12745
12746 typedef FT_TrueTypeEngineType ac__type_new_;
12747 int
12748 main ()
12749 {
12750 if ((ac__type_new_ *) 0)
12751   return 0;
12752 if (sizeof (ac__type_new_))
12753   return 0;
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext
12759 if { (ac_try="$ac_compile"
12760 case "(($ac_try" in
12761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762   *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765   (eval "$ac_compile") 2>conftest.er1
12766   ac_status=$?
12767   grep -v '^ *+' conftest.er1 >conftest.err
12768   rm -f conftest.er1
12769   cat conftest.err >&5
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } &&
12772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773   { (case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_try") 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; } &&
12782          { ac_try='test -s conftest.$ac_objext'
12783   { (case "(($ac_try" in
12784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785   *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788   (eval "$ac_try") 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; }; then
12792   ac_cv_type_FT_TrueTypeEngineType=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         ac_cv_type_FT_TrueTypeEngineType=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 fi
12802 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12803 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
12804 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12805
12806 cat >>confdefs.h <<_ACEOF
12807 #define HAVE_FT_TRUETYPEENGINETYPE 1
12808 _ACEOF
12809
12810
12811 fi
12812
12813         ac_save_CFLAGS="$CFLAGS"
12814         CFLAGS="$CFLAGS $FREETYPELIBS"
12815
12816 for ac_func in FT_Load_Sfnt_Table
12817 do
12818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12832 #define $ac_func innocuous_$ac_func
12833
12834 /* System header to define __stub macros and hopefully few prototypes,
12835     which can conflict with char $ac_func (); below.
12836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12837     <limits.h> exists even on freestanding compilers.  */
12838
12839 #ifdef __STDC__
12840 # include <limits.h>
12841 #else
12842 # include <assert.h>
12843 #endif
12844
12845 #undef $ac_func
12846
12847 /* Override any GCC internal prototype to avoid an error.
12848    Use char because int might match the return type of a GCC
12849    builtin and then its argument prototype would still apply.  */
12850 #ifdef __cplusplus
12851 extern "C"
12852 #endif
12853 char $ac_func ();
12854 /* The GNU C library defines this for functions which it implements
12855     to always fail with ENOSYS.  Some functions are actually named
12856     something starting with __ and the normal name is an alias.  */
12857 #if defined __stub_$ac_func || defined __stub___$ac_func
12858 choke me
12859 #endif
12860
12861 int
12862 main ()
12863 {
12864 return $ac_func ();
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (ac_try="$ac_link"
12871 case "(($ac_try" in
12872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873   *) ac_try_echo=$ac_try;;
12874 esac
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876   (eval "$ac_link") 2>conftest.er1
12877   ac_status=$?
12878   grep -v '^ *+' conftest.er1 >conftest.err
12879   rm -f conftest.er1
12880   cat conftest.err >&5
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } &&
12883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12884   { (case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_try") 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; } &&
12893          { ac_try='test -s conftest$ac_exeext'
12894   { (case "(($ac_try" in
12895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896   *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899   (eval "$ac_try") 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; }; then
12903   eval "$as_ac_var=yes"
12904 else
12905   echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908         eval "$as_ac_var=no"
12909 fi
12910
12911 rm -f core conftest.err conftest.$ac_objext \
12912       conftest$ac_exeext conftest.$ac_ext
12913 fi
12914 ac_res=`eval echo '${'$as_ac_var'}'`
12915                { echo "$as_me:$LINENO: result: $ac_res" >&5
12916 echo "${ECHO_T}$ac_res" >&6; }
12917 if test `eval echo '${'$as_ac_var'}'` = yes; then
12918   cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12920 _ACEOF
12921
12922 fi
12923 done
12924
12925         CFLAGS="$ac_save_CFLAGS"
12926         CPPFLAGS="$ac_save_CPPFLAGS"
12927                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
12928         then
12929
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_FREETYPE 1
12932 _ACEOF
12933
12934             wine_cv_msg_freetype=no
12935         else
12936             FREETYPELIBS=""
12937             FREETYPEINCL=""
12938             wine_cv_msg_freetype=yes
12939         fi
12940     fi
12941 fi
12942
12943 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
12944 then
12945   FONTSSUBDIRS="fonts"
12946
12947 fi
12948
12949 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
12950 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
12951 if test "${ac_cv_c_ppdev+set}" = set; then
12952   echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954   cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 #include <linux/ppdev.h>
12961 int
12962 main ()
12963 {
12964 ioctl (1,PPCLAIM,0)
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (ac_try="$ac_compile"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976   (eval "$ac_compile") 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } &&
12983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12984   { (case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_try") 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); }; } &&
12993          { ac_try='test -s conftest.$ac_objext'
12994   { (case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_try") 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; }; then
13003   ac_cv_c_ppdev="yes"
13004 else
13005   echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008         ac_cv_c_ppdev="no"
13009 fi
13010
13011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012
13013 fi
13014 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13015 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13016 if test "$ac_cv_c_ppdev" = "yes"
13017 then
13018
13019 cat >>confdefs.h <<\_ACEOF
13020 #define HAVE_PPDEV 1
13021 _ACEOF
13022
13023 fi
13024
13025 { echo "$as_me:$LINENO: checking for va_copy" >&5
13026 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13027 if test "${ac_cv_c_va_copy+set}" = set; then
13028   echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030   cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h.  */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h.  */
13036 #include <stdarg.h>
13037 int
13038 main ()
13039 {
13040 va_list ap1, ap2;
13041     va_copy(ap1,ap2);
13042
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051   *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054   (eval "$ac_link") 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } &&
13061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13062   { (case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_try") 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; } &&
13071          { ac_try='test -s conftest$ac_exeext'
13072   { (case "(($ac_try" in
13073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074   *) ac_try_echo=$ac_try;;
13075 esac
13076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077   (eval "$ac_try") 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); }; }; then
13081   ac_cv_c_va_copy="yes"
13082 else
13083   echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086         ac_cv_c_va_copy="no"
13087 fi
13088
13089 rm -f core conftest.err conftest.$ac_objext \
13090       conftest$ac_exeext conftest.$ac_ext
13091
13092 fi
13093 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13094 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13095 if test "$ac_cv_c_va_copy" = "yes"
13096 then
13097
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_VA_COPY 1
13100 _ACEOF
13101
13102 fi
13103 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13104 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13105 if test "${ac_cv_c___va_copy+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h.  */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h.  */
13114 #include <stdarg.h>
13115 int
13116 main ()
13117 {
13118 va_list ap1, ap2;
13119     __va_copy(ap1,ap2);
13120
13121   ;
13122   return 0;
13123 }
13124 _ACEOF
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_link") 2>conftest.er1
13133   ac_status=$?
13134   grep -v '^ *+' conftest.er1 >conftest.err
13135   rm -f conftest.er1
13136   cat conftest.err >&5
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); } &&
13139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13140   { (case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145   (eval "$ac_try") 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; } &&
13149          { ac_try='test -s conftest$ac_exeext'
13150   { (case "(($ac_try" in
13151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152   *) ac_try_echo=$ac_try;;
13153 esac
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155   (eval "$ac_try") 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; }; then
13159   ac_cv_c___va_copy="yes"
13160 else
13161   echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13163
13164         ac_cv_c___va_copy="no"
13165 fi
13166
13167 rm -f core conftest.err conftest.$ac_objext \
13168       conftest$ac_exeext conftest.$ac_ext
13169
13170 fi
13171 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13172 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13173 if test "$ac_cv_c___va_copy" = "yes"
13174 then
13175
13176 cat >>confdefs.h <<\_ACEOF
13177 #define HAVE___VA_COPY 1
13178 _ACEOF
13179
13180 fi
13181
13182 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13183 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13184 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193 #include <setjmp.h>
13194 int
13195 main ()
13196 {
13197 sigjmp_buf buf;
13198     sigsetjmp( buf, 1 );
13199     siglongjmp( buf, 1 );
13200   ;
13201   return 0;
13202 }
13203 _ACEOF
13204 rm -f conftest.$ac_objext conftest$ac_exeext
13205 if { (ac_try="$ac_link"
13206 case "(($ac_try" in
13207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208   *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211   (eval "$ac_link") 2>conftest.er1
13212   ac_status=$?
13213   grep -v '^ *+' conftest.er1 >conftest.err
13214   rm -f conftest.er1
13215   cat conftest.err >&5
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); } &&
13218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13219   { (case "(($ac_try" in
13220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221   *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224   (eval "$ac_try") 2>&5
13225   ac_status=$?
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); }; } &&
13228          { ac_try='test -s conftest$ac_exeext'
13229   { (case "(($ac_try" in
13230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231   *) ac_try_echo=$ac_try;;
13232 esac
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234   (eval "$ac_try") 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); }; }; then
13238   ac_cv_c_sigsetjmp="yes"
13239 else
13240   echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243         ac_cv_c_sigsetjmp="no"
13244 fi
13245
13246 rm -f core conftest.err conftest.$ac_objext \
13247       conftest$ac_exeext conftest.$ac_ext
13248
13249 fi
13250 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13251 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13252 if test "$ac_cv_c_sigsetjmp" = "yes"
13253 then
13254
13255 cat >>confdefs.h <<\_ACEOF
13256 #define HAVE_SIGSETJMP 1
13257 _ACEOF
13258
13259 fi
13260
13261 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13262 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13263 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13264   echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266   cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 #define _GNU_SOURCE
13273 #include <pthread.h>
13274
13275 typedef pthread_rwlock_t ac__type_new_;
13276 int
13277 main ()
13278 {
13279 if ((ac__type_new_ *) 0)
13280   return 0;
13281 if (sizeof (ac__type_new_))
13282   return 0;
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287 rm -f conftest.$ac_objext
13288 if { (ac_try="$ac_compile"
13289 case "(($ac_try" in
13290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291   *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294   (eval "$ac_compile") 2>conftest.er1
13295   ac_status=$?
13296   grep -v '^ *+' conftest.er1 >conftest.err
13297   rm -f conftest.er1
13298   cat conftest.err >&5
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } &&
13301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13302   { (case "(($ac_try" in
13303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304   *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307   (eval "$ac_try") 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }; } &&
13311          { ac_try='test -s conftest.$ac_objext'
13312   { (case "(($ac_try" in
13313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314   *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317   (eval "$ac_try") 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; }; then
13321   ac_cv_type_pthread_rwlock_t=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326         ac_cv_type_pthread_rwlock_t=no
13327 fi
13328
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 fi
13331 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13332 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13333 if test $ac_cv_type_pthread_rwlock_t = yes; then
13334
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_PTHREAD_RWLOCK_T 1
13337 _ACEOF
13338
13339
13340 fi
13341 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13342 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13343 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13344   echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346   cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h.  */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h.  */
13352 #define _GNU_SOURCE
13353 #include <pthread.h>
13354
13355 typedef pthread_rwlockattr_t ac__type_new_;
13356 int
13357 main ()
13358 {
13359 if ((ac__type_new_ *) 0)
13360   return 0;
13361 if (sizeof (ac__type_new_))
13362   return 0;
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest.$ac_objext
13368 if { (ac_try="$ac_compile"
13369 case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374   (eval "$ac_compile") 2>conftest.er1
13375   ac_status=$?
13376   grep -v '^ *+' conftest.er1 >conftest.err
13377   rm -f conftest.er1
13378   cat conftest.err >&5
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } &&
13381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382   { (case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_try") 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; } &&
13391          { ac_try='test -s conftest.$ac_objext'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_cv_type_pthread_rwlockattr_t=yes
13402 else
13403   echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406         ac_cv_type_pthread_rwlockattr_t=no
13407 fi
13408
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 fi
13411 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13412 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13413 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13414
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_PTHREAD_RWLOCKATTR_T 1
13417 _ACEOF
13418
13419
13420 fi
13421
13422
13423 ac_wine_check_funcs_save_LIBS="$LIBS"
13424 LIBS="$LIBS $LIBPTHREAD"
13425
13426
13427
13428
13429 for ac_func in \
13430         pthread_attr_get_np \
13431         pthread_getattr_np \
13432         pthread_get_stackaddr_np \
13433         pthread_get_stacksize_np
13434 do
13435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13449 #define $ac_func innocuous_$ac_func
13450
13451 /* System header to define __stub macros and hopefully few prototypes,
13452     which can conflict with char $ac_func (); below.
13453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13454     <limits.h> exists even on freestanding compilers.  */
13455
13456 #ifdef __STDC__
13457 # include <limits.h>
13458 #else
13459 # include <assert.h>
13460 #endif
13461
13462 #undef $ac_func
13463
13464 /* Override any GCC internal prototype to avoid an error.
13465    Use char because int might match the return type of a GCC
13466    builtin and then its argument prototype would still apply.  */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 char $ac_func ();
13471 /* The GNU C library defines this for functions which it implements
13472     to always fail with ENOSYS.  Some functions are actually named
13473     something starting with __ and the normal name is an alias.  */
13474 #if defined __stub_$ac_func || defined __stub___$ac_func
13475 choke me
13476 #endif
13477
13478 int
13479 main ()
13480 {
13481 return $ac_func ();
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (ac_try="$ac_link"
13488 case "(($ac_try" in
13489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490   *) ac_try_echo=$ac_try;;
13491 esac
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493   (eval "$ac_link") 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } &&
13500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13501   { (case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_try") 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; } &&
13510          { ac_try='test -s conftest$ac_exeext'
13511   { (case "(($ac_try" in
13512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513   *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516   (eval "$ac_try") 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); }; }; then
13520   eval "$as_ac_var=yes"
13521 else
13522   echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525         eval "$as_ac_var=no"
13526 fi
13527
13528 rm -f core conftest.err conftest.$ac_objext \
13529       conftest$ac_exeext conftest.$ac_ext
13530 fi
13531 ac_res=`eval echo '${'$as_ac_var'}'`
13532                { echo "$as_me:$LINENO: result: $ac_res" >&5
13533 echo "${ECHO_T}$ac_res" >&6; }
13534 if test `eval echo '${'$as_ac_var'}'` = yes; then
13535   cat >>confdefs.h <<_ACEOF
13536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13537 _ACEOF
13538
13539 fi
13540 done
13541
13542 LIBS="$ac_wine_check_funcs_save_LIBS"
13543
13544 # Extract the first word of "artsc-config", so it can be a program name with args.
13545 set dummy artsc-config; ac_word=$2
13546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13548 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
13549   echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551   case $ARTSCCONFIG in
13552   [\\/]* | ?:[\\/]*)
13553   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
13554   ;;
13555   *)
13556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13558 do
13559   IFS=$as_save_IFS
13560   test -z "$as_dir" && as_dir=.
13561   for ac_exec_ext in '' $ac_executable_extensions; do
13562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13563     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
13564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13565     break 2
13566   fi
13567 done
13568 done
13569 IFS=$as_save_IFS
13570
13571   ;;
13572 esac
13573 fi
13574 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
13575 if test -n "$ARTSCCONFIG"; then
13576   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
13577 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
13578 else
13579   { echo "$as_me:$LINENO: result: no" >&5
13580 echo "${ECHO_T}no" >&6; }
13581 fi
13582
13583
13584 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
13585 then
13586     ARTSC_CFLAGS=""
13587     for i in `$ARTSCCONFIG --cflags`
13588     do
13589       case "$i" in
13590         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
13591       esac
13592     done
13593     ARTSC_LIBS=""
13594     for i in `$ARTSCCONFIG --libs`
13595     do
13596       case "$i" in
13597         -L/usr/lib|-L/usr/lib64) ;;
13598         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
13599       esac
13600     done
13601     save_CFLAGS="$CFLAGS"
13602     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
13603     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
13604 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
13605 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   ac_check_lib_save_LIBS=$LIBS
13609 LIBS="-lartsc $ARTSC_LIBS $LIBS"
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h.  */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h.  */
13616
13617 /* Override any GCC internal prototype to avoid an error.
13618    Use char because int might match the return type of a GCC
13619    builtin and then its argument prototype would still apply.  */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 char arts_init ();
13624 int
13625 main ()
13626 {
13627 return arts_init ();
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (ac_try="$ac_link"
13634 case "(($ac_try" in
13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636   *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639   (eval "$ac_link") 2>conftest.er1
13640   ac_status=$?
13641   grep -v '^ *+' conftest.er1 >conftest.err
13642   rm -f conftest.er1
13643   cat conftest.err >&5
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } &&
13646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13647   { (case "(($ac_try" in
13648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649   *) ac_try_echo=$ac_try;;
13650 esac
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652   (eval "$ac_try") 2>&5
13653   ac_status=$?
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); }; } &&
13656          { ac_try='test -s conftest$ac_exeext'
13657   { (case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_try") 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; }; then
13666   ac_cv_lib_artsc_arts_init=yes
13667 else
13668   echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671         ac_cv_lib_artsc_arts_init=no
13672 fi
13673
13674 rm -f core conftest.err conftest.$ac_objext \
13675       conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13677 fi
13678 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
13679 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
13680 if test $ac_cv_lib_artsc_arts_init = yes; then
13681   cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h.  */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h.  */
13687 #include <artsc.h>
13688 int
13689 main ()
13690 {
13691 arts_stream_t stream;
13692   ;
13693   return 0;
13694 }
13695 _ACEOF
13696 rm -f conftest.$ac_objext
13697 if { (ac_try="$ac_compile"
13698 case "(($ac_try" in
13699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700   *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703   (eval "$ac_compile") 2>conftest.er1
13704   ac_status=$?
13705   grep -v '^ *+' conftest.er1 >conftest.err
13706   rm -f conftest.er1
13707   cat conftest.err >&5
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } &&
13710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13711   { (case "(($ac_try" in
13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713   *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716   (eval "$ac_try") 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; } &&
13720          { ac_try='test -s conftest.$ac_objext'
13721   { (case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_try") 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ARTSLIBS=$ARTSC_LIBS
13731
13732             ARTSINCL=$ARTSC_CFLAGS
13733
13734
13735 cat >>confdefs.h <<\_ACEOF
13736 #define HAVE_ARTS 1
13737 _ACEOF
13738
13739 else
13740   echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743
13744 fi
13745
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747 fi
13748
13749     CFLAGS="$save_CFLAGS"
13750 fi
13751
13752 # Extract the first word of "esd-config", so it can be a program name with args.
13753 set dummy esd-config; ac_word=$2
13754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13756 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
13757   echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759   case $ESDCONFIG in
13760   [\\/]* | ?:[\\/]*)
13761   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13762   ;;
13763   *)
13764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13766 do
13767   IFS=$as_save_IFS
13768   test -z "$as_dir" && as_dir=.
13769   for ac_exec_ext in '' $ac_executable_extensions; do
13770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13771     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
13772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13773     break 2
13774   fi
13775 done
13776 done
13777 IFS=$as_save_IFS
13778
13779   ;;
13780 esac
13781 fi
13782 ESDCONFIG=$ac_cv_path_ESDCONFIG
13783 if test -n "$ESDCONFIG"; then
13784   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13785 echo "${ECHO_T}$ESDCONFIG" >&6; }
13786 else
13787   { echo "$as_me:$LINENO: result: no" >&5
13788 echo "${ECHO_T}no" >&6; }
13789 fi
13790
13791
13792 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13793 then
13794     ESD_CFLAGS=""
13795     for i in `$ESDCONFIG --cflags`
13796     do
13797       case "$i" in
13798         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13799       esac
13800     done
13801     ESD_LIBS=`$ESDCONFIG --libs`
13802     save_CFLAGS="$CFLAGS"
13803     CFLAGS="$CFLAGS $ESD_CFLAGS"
13804     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13805 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
13806 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   ac_check_lib_save_LIBS=$LIBS
13810 LIBS="-lesd  $LIBS"
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817
13818 /* Override any GCC internal prototype to avoid an error.
13819    Use char because int might match the return type of a GCC
13820    builtin and then its argument prototype would still apply.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 char esd_open_sound ();
13825 int
13826 main ()
13827 {
13828 return esd_open_sound ();
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext conftest$ac_exeext
13834 if { (ac_try="$ac_link"
13835 case "(($ac_try" in
13836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837   *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840   (eval "$ac_link") 2>conftest.er1
13841   ac_status=$?
13842   grep -v '^ *+' conftest.er1 >conftest.err
13843   rm -f conftest.er1
13844   cat conftest.err >&5
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); } &&
13847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13848   { (case "(($ac_try" in
13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850   *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853   (eval "$ac_try") 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; } &&
13857          { ac_try='test -s conftest$ac_exeext'
13858   { (case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863   (eval "$ac_try") 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; }; then
13867   ac_cv_lib_esd_esd_open_sound=yes
13868 else
13869   echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872         ac_cv_lib_esd_esd_open_sound=no
13873 fi
13874
13875 rm -f core conftest.err conftest.$ac_objext \
13876       conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13878 fi
13879 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13880 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
13881 if test $ac_cv_lib_esd_esd_open_sound = yes; then
13882   ESDLIBS=$ESD_LIBS
13883
13884          ESDINCL=$ESD_CFLAGS
13885
13886
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_ESD 1
13889 _ACEOF
13890
13891 fi
13892
13893     CFLAGS="$save_CFLAGS"
13894 fi
13895
13896 ALSALIBS=""
13897
13898 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
13899 then
13900     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13901 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
13902 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lasound  $LIBS"
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913
13914 /* Override any GCC internal prototype to avoid an error.
13915    Use char because int might match the return type of a GCC
13916    builtin and then its argument prototype would still apply.  */
13917 #ifdef __cplusplus
13918 extern "C"
13919 #endif
13920 char snd_pcm_hw_params_get_access ();
13921 int
13922 main ()
13923 {
13924 return snd_pcm_hw_params_get_access ();
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (ac_try="$ac_link"
13931 case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_link") 2>conftest.er1
13937   ac_status=$?
13938   grep -v '^ *+' conftest.er1 >conftest.err
13939   rm -f conftest.er1
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } &&
13943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944   { (case "(($ac_try" in
13945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946   *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949   (eval "$ac_try") 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; } &&
13953          { ac_try='test -s conftest$ac_exeext'
13954   { (case "(($ac_try" in
13955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956   *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959   (eval "$ac_try") 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }; }; then
13963   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
13964 else
13965   echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext \
13972       conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13974 fi
13975 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
13976 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
13977 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
13978   cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 #ifdef HAVE_ALSA_ASOUNDLIB_H
13985 #include <alsa/asoundlib.h>
13986 #elif defined(HAVE_SYS_ASOUNDLIB_H)
13987 #include <sys/asoundlib.h>
13988 #endif
13989 int
13990 main ()
13991 {
13992 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (ac_try="$ac_compile"
13999 case "(($ac_try" in
14000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001   *) ac_try_echo=$ac_try;;
14002 esac
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004   (eval "$ac_compile") 2>conftest.er1
14005   ac_status=$?
14006   grep -v '^ *+' conftest.er1 >conftest.err
14007   rm -f conftest.er1
14008   cat conftest.err >&5
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); } &&
14011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14012   { (case "(($ac_try" in
14013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014   *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017   (eval "$ac_try") 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; } &&
14021          { ac_try='test -s conftest.$ac_objext'
14022   { (case "(($ac_try" in
14023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024   *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027   (eval "$ac_try") 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031
14032 cat >>confdefs.h <<\_ACEOF
14033 #define HAVE_ALSA 1
14034 _ACEOF
14035
14036                          ALSALIBS="-lasound"
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041
14042 fi
14043
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 fi
14046
14047 fi
14048
14049
14050 AUDIOIOLIBS=""
14051
14052 if test "$ac_cv_header_libaudioio_h" = "yes"
14053 then
14054     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14055 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14056 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   ac_check_lib_save_LIBS=$LIBS
14060 LIBS="-laudioio  $LIBS"
14061 cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067
14068 /* Override any GCC internal prototype to avoid an error.
14069    Use char because int might match the return type of a GCC
14070    builtin and then its argument prototype would still apply.  */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 char AudioIOGetVersion ();
14075 int
14076 main ()
14077 {
14078 return AudioIOGetVersion ();
14079   ;
14080   return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090   (eval "$ac_link") 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098   { (case "(($ac_try" in
14099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100   *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103   (eval "$ac_try") 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; } &&
14107          { ac_try='test -s conftest$ac_exeext'
14108   { (case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_try") 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_cv_lib_audioio_AudioIOGetVersion=yes
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14121
14122         ac_cv_lib_audioio_AudioIOGetVersion=no
14123 fi
14124
14125 rm -f core conftest.err conftest.$ac_objext \
14126       conftest$ac_exeext conftest.$ac_ext
14127 LIBS=$ac_check_lib_save_LIBS
14128 fi
14129 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14130 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14131 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14132   AUDIOIOLIBS="-laudioio"
14133
14134 cat >>confdefs.h <<\_ACEOF
14135 #define HAVE_LIBAUDIOIO 1
14136 _ACEOF
14137
14138 fi
14139
14140 fi
14141
14142
14143 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14144 then
14145     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14146 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14147 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   ac_check_lib_save_LIBS=$LIBS
14151 LIBS="-lcapi20  $LIBS"
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158
14159 /* Override any GCC internal prototype to avoid an error.
14160    Use char because int might match the return type of a GCC
14161    builtin and then its argument prototype would still apply.  */
14162 #ifdef __cplusplus
14163 extern "C"
14164 #endif
14165 char capi20_register ();
14166 int
14167 main ()
14168 {
14169 return capi20_register ();
14170   ;
14171   return 0;
14172 }
14173 _ACEOF
14174 rm -f conftest.$ac_objext conftest$ac_exeext
14175 if { (ac_try="$ac_link"
14176 case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_link") 2>conftest.er1
14182   ac_status=$?
14183   grep -v '^ *+' conftest.er1 >conftest.err
14184   rm -f conftest.er1
14185   cat conftest.err >&5
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); } &&
14188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14189   { (case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_try") 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; } &&
14198          { ac_try='test -s conftest$ac_exeext'
14199   { (case "(($ac_try" in
14200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201   *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204   (eval "$ac_try") 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); }; }; then
14208   ac_cv_lib_capi20_capi20_register=yes
14209 else
14210   echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14212
14213         ac_cv_lib_capi20_capi20_register=no
14214 fi
14215
14216 rm -f core conftest.err conftest.$ac_objext \
14217       conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14219 fi
14220 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14221 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14222 if test $ac_cv_lib_capi20_capi20_register = yes; then
14223
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_CAPI4LINUX 1
14226 _ACEOF
14227
14228 fi
14229
14230 fi
14231
14232
14233 EXTRACFLAGS=""
14234
14235 if test "x${GCC}" = "xyes"
14236 then
14237   EXTRACFLAGS="-Wall -pipe"
14238
14239     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14240 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14241 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   if test "$cross_compiling" = yes; then
14245   ac_cv_c_gcc_strength_bug="yes"
14246 else
14247   cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h.  */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h.  */
14253
14254 int     L[4] = {0,1,2,3};
14255 int main(void) {
14256   static int Array[3];
14257   unsigned int B = 3;
14258   int i;
14259   for(i=0; i<B; i++) Array[i] = i - 3;
14260   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14261   L[i] = 4;
14262
14263   exit( Array[1] != -2 || L[2] != 3);
14264 }
14265 _ACEOF
14266 rm -f conftest$ac_exeext
14267 if { (ac_try="$ac_link"
14268 case "(($ac_try" in
14269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270   *) ac_try_echo=$ac_try;;
14271 esac
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273   (eval "$ac_link") 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14277   { (case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_try") 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; }; then
14286   ac_cv_c_gcc_strength_bug="no"
14287 else
14288   echo "$as_me: program exited with status $ac_status" >&5
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ( exit $ac_status )
14293 ac_cv_c_gcc_strength_bug="yes"
14294 fi
14295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14296 fi
14297
14298
14299 fi
14300 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14301 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14302   if test "$ac_cv_c_gcc_strength_bug" = "yes"
14303   then
14304     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14305   fi
14306
14307
14308   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
14309 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
14310 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
14311   echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313   ac_wine_try_cflags_saved=$CFLAGS
14314 CFLAGS="$CFLAGS -fshort-wchar"
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321
14322 int
14323 main ()
14324 {
14325
14326   ;
14327   return 0;
14328 }
14329 _ACEOF
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (ac_try="$ac_link"
14332 case "(($ac_try" in
14333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334   *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337   (eval "$ac_link") 2>conftest.er1
14338   ac_status=$?
14339   grep -v '^ *+' conftest.er1 >conftest.err
14340   rm -f conftest.er1
14341   cat conftest.err >&5
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); } &&
14344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14345   { (case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_try") 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; } &&
14354          { ac_try='test -s conftest$ac_exeext'
14355   { (case "(($ac_try" in
14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357   *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360   (eval "$ac_try") 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; }; then
14364   ac_cv_cflags__fshort_wchar=yes
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369         ac_cv_cflags__fshort_wchar=no
14370 fi
14371
14372 rm -f core conftest.err conftest.$ac_objext \
14373       conftest$ac_exeext conftest.$ac_ext
14374 CFLAGS=$ac_wine_try_cflags_saved
14375 fi
14376 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
14377 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
14378 if test $ac_cv_cflags__fshort_wchar = yes; then
14379
14380 cat >>confdefs.h <<\_ACEOF
14381 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14382 _ACEOF
14383
14384 fi
14385
14386   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
14387 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
14388 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391   ac_wine_try_cflags_saved=$CFLAGS
14392 CFLAGS="$CFLAGS -fno-strict-aliasing"
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h.  */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h.  */
14399
14400 int
14401 main ()
14402 {
14403
14404   ;
14405   return 0;
14406 }
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_link") 2>conftest.er1
14416   ac_status=$?
14417   grep -v '^ *+' conftest.er1 >conftest.err
14418   rm -f conftest.er1
14419   cat conftest.err >&5
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } &&
14422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14423   { (case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_try") 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; } &&
14432          { ac_try='test -s conftest$ac_exeext'
14433   { (case "(($ac_try" in
14434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435   *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438   (eval "$ac_try") 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; }; then
14442   ac_cv_cflags__fno_strict_aliasing=yes
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447         ac_cv_cflags__fno_strict_aliasing=no
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext \
14451       conftest$ac_exeext conftest.$ac_ext
14452 CFLAGS=$ac_wine_try_cflags_saved
14453 fi
14454 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
14455 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
14456 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
14457   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
14458 fi
14459
14460   { echo "$as_me:$LINENO: checking whether the compiler supports -gstabs+" >&5
14461 echo $ECHO_N "checking whether the compiler supports -gstabs+... $ECHO_C" >&6; }
14462 if test "${ac_cv_cflags__gstabsp+set}" = set; then
14463   echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465   ac_wine_try_cflags_saved=$CFLAGS
14466 CFLAGS="$CFLAGS -gstabs+"
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h.  */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h.  */
14473
14474 int
14475 main ()
14476 {
14477
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (ac_try="$ac_link"
14484 case "(($ac_try" in
14485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486   *) ac_try_echo=$ac_try;;
14487 esac
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489   (eval "$ac_link") 2>conftest.er1
14490   ac_status=$?
14491   grep -v '^ *+' conftest.er1 >conftest.err
14492   rm -f conftest.er1
14493   cat conftest.err >&5
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); } &&
14496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14497   { (case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_try") 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; } &&
14506          { ac_try='test -s conftest$ac_exeext'
14507   { (case "(($ac_try" in
14508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509   *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512   (eval "$ac_try") 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516   ac_cv_cflags__gstabsp=yes
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521         ac_cv_cflags__gstabsp=no
14522 fi
14523
14524 rm -f core conftest.err conftest.$ac_objext \
14525       conftest$ac_exeext conftest.$ac_ext
14526 CFLAGS=$ac_wine_try_cflags_saved
14527 fi
14528 { echo "$as_me:$LINENO: result: $ac_cv_cflags__gstabsp" >&5
14529 echo "${ECHO_T}$ac_cv_cflags__gstabsp" >&6; }
14530 if test $ac_cv_cflags__gstabsp = yes; then
14531   EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14532 fi
14533
14534   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
14535 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
14536 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
14537   echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539   ac_wine_try_cflags_saved=$CFLAGS
14540 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14541 cat >conftest.$ac_ext <<_ACEOF
14542 /* confdefs.h.  */
14543 _ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h.  */
14547
14548 int
14549 main ()
14550 {
14551
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (ac_try="$ac_link"
14558 case "(($ac_try" in
14559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560   *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563   (eval "$ac_link") 2>conftest.er1
14564   ac_status=$?
14565   grep -v '^ *+' conftest.er1 >conftest.err
14566   rm -f conftest.er1
14567   cat conftest.err >&5
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); } &&
14570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14571   { (case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_try") 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; } &&
14580          { ac_try='test -s conftest$ac_exeext'
14581   { (case "(($ac_try" in
14582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583   *) ac_try_echo=$ac_try;;
14584 esac
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586   (eval "$ac_try") 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   ac_cv_cflags__Wdeclaration_after_statement=yes
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595         ac_cv_cflags__Wdeclaration_after_statement=no
14596 fi
14597
14598 rm -f core conftest.err conftest.$ac_objext \
14599       conftest$ac_exeext conftest.$ac_ext
14600 CFLAGS=$ac_wine_try_cflags_saved
14601 fi
14602 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
14603 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
14604 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
14605   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
14606 fi
14607
14608   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
14609 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
14610 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613   ac_wine_try_cflags_saved=$CFLAGS
14614 CFLAGS="$CFLAGS -Wwrite-strings"
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621
14622 int
14623 main ()
14624 {
14625
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (ac_try="$ac_link"
14632 case "(($ac_try" in
14633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634   *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637   (eval "$ac_link") 2>conftest.er1
14638   ac_status=$?
14639   grep -v '^ *+' conftest.er1 >conftest.err
14640   rm -f conftest.er1
14641   cat conftest.err >&5
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); } &&
14644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14645   { (case "(($ac_try" in
14646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647   *) ac_try_echo=$ac_try;;
14648 esac
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650   (eval "$ac_try") 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; } &&
14654          { ac_try='test -s conftest$ac_exeext'
14655   { (case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_try") 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664   ac_cv_cflags__Wwrite_strings=yes
14665 else
14666   echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669         ac_cv_cflags__Wwrite_strings=no
14670 fi
14671
14672 rm -f core conftest.err conftest.$ac_objext \
14673       conftest$ac_exeext conftest.$ac_ext
14674 CFLAGS=$ac_wine_try_cflags_saved
14675 fi
14676 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
14677 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
14678 if test $ac_cv_cflags__Wwrite_strings = yes; then
14679   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14680 fi
14681
14682
14683     saved_CFLAGS="$CFLAGS"
14684   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14685   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
14686 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
14687 if test "${ac_cv_c_string_h_warnings+set}" = set; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 #include <string.h>
14697 int
14698 main ()
14699 {
14700
14701   ;
14702   return 0;
14703 }
14704 _ACEOF
14705 rm -f conftest.$ac_objext
14706 if { (ac_try="$ac_compile"
14707 case "(($ac_try" in
14708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709   *) ac_try_echo=$ac_try;;
14710 esac
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712   (eval "$ac_compile") 2>conftest.er1
14713   ac_status=$?
14714   grep -v '^ *+' conftest.er1 >conftest.err
14715   rm -f conftest.er1
14716   cat conftest.err >&5
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); } &&
14719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14720   { (case "(($ac_try" in
14721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722   *) ac_try_echo=$ac_try;;
14723 esac
14724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725   (eval "$ac_try") 2>&5
14726   ac_status=$?
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); }; } &&
14729          { ac_try='test -s conftest.$ac_objext'
14730   { (case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735   (eval "$ac_try") 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   ac_cv_c_string_h_warnings=no
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744         ac_cv_c_string_h_warnings=yes
14745 fi
14746
14747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748 fi
14749 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
14750 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
14751   CFLAGS="$saved_CFLAGS"
14752   if test "$ac_cv_c_string_h_warnings" = "no"
14753   then
14754     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14755   fi
14756
14757   BUILTINFLAG=""
14758
14759   saved_CFLAGS="$CFLAGS"
14760   CFLAGS="$CFLAGS -Werror"
14761   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
14762 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
14763 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766   cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772
14773 int
14774 main ()
14775 {
14776 int iswlower(unsigned short);
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785   *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788   (eval "$ac_compile") 2>conftest.er1
14789   ac_status=$?
14790   grep -v '^ *+' conftest.er1 >conftest.err
14791   rm -f conftest.er1
14792   cat conftest.err >&5
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } &&
14795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796   { (case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_try") 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; } &&
14805          { ac_try='test -s conftest.$ac_objext'
14806   { (case "(($ac_try" in
14807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808   *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811   (eval "$ac_try") 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815   ac_cv_c_builtin_wchar_ctype=no
14816 else
14817   echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820         ac_cv_c_builtin_wchar_ctype=yes
14821 fi
14822
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 fi
14825 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
14826 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
14827   CFLAGS="$saved_CFLAGS"
14828   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
14829   then
14830     BUILTINFLAG="-fno-builtin"
14831   fi
14832 fi
14833
14834
14835 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
14836 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
14837 if test "${ac_cv_asm_func_def+set}" = set; then
14838   echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14840   cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
14847
14848 int
14849 main ()
14850 {
14851
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (ac_try="$ac_link"
14858 case "(($ac_try" in
14859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860   *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863   (eval "$ac_link") 2>conftest.er1
14864   ac_status=$?
14865   grep -v '^ *+' conftest.er1 >conftest.err
14866   rm -f conftest.er1
14867   cat conftest.err >&5
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); } &&
14870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14871   { (case "(($ac_try" in
14872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873   *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876   (eval "$ac_try") 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; } &&
14880          { ac_try='test -s conftest$ac_exeext'
14881   { (case "(($ac_try" in
14882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883   *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886   (eval "$ac_try") 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); }; }; then
14890   ac_cv_asm_func_def=".def"
14891 else
14892   echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14894
14895         cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h.  */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h.  */
14901 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
14902
14903 int
14904 main ()
14905 {
14906
14907   ;
14908   return 0;
14909 }
14910 _ACEOF
14911 rm -f conftest.$ac_objext conftest$ac_exeext
14912 if { (ac_try="$ac_link"
14913 case "(($ac_try" in
14914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915   *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918   (eval "$ac_link") 2>conftest.er1
14919   ac_status=$?
14920   grep -v '^ *+' conftest.er1 >conftest.err
14921   rm -f conftest.er1
14922   cat conftest.err >&5
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } &&
14925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14926   { (case "(($ac_try" in
14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928   *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931   (eval "$ac_try") 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; } &&
14935          { ac_try='test -s conftest$ac_exeext'
14936   { (case "(($ac_try" in
14937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938   *) ac_try_echo=$ac_try;;
14939 esac
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941   (eval "$ac_try") 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; }; then
14945   ac_cv_asm_func_def=".type @function"
14946 else
14947   echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950         cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
14957
14958 int
14959 main ()
14960 {
14961
14962   ;
14963   return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_link") 2>conftest.er1
14974   ac_status=$?
14975   grep -v '^ *+' conftest.er1 >conftest.err
14976   rm -f conftest.er1
14977   cat conftest.err >&5
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } &&
14980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14981   { (case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_try") 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; } &&
14990          { ac_try='test -s conftest$ac_exeext'
14991   { (case "(($ac_try" in
14992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993   *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996   (eval "$ac_try") 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; }; then
15000   ac_cv_asm_func_def=".type 2"
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005         ac_cv_asm_func_def="unknown"
15006 fi
15007
15008 rm -f core conftest.err conftest.$ac_objext \
15009       conftest$ac_exeext conftest.$ac_ext
15010 fi
15011
15012 rm -f core conftest.err conftest.$ac_objext \
15013       conftest$ac_exeext conftest.$ac_ext
15014 fi
15015
15016 rm -f core conftest.err conftest.$ac_objext \
15017       conftest$ac_exeext conftest.$ac_ext
15018 fi
15019 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15020 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15021
15022
15023
15024 case "$ac_cv_asm_func_def" in
15025   ".def")
15026      cat >>confdefs.h <<\_ACEOF
15027 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15028 _ACEOF
15029  ;;
15030   ".type @function")
15031      cat >>confdefs.h <<\_ACEOF
15032 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15033 _ACEOF
15034  ;;
15035   ".type 2")
15036      cat >>confdefs.h <<\_ACEOF
15037 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15038 _ACEOF
15039  ;;
15040   *)
15041      cat >>confdefs.h <<\_ACEOF
15042 #define __ASM_FUNC(name) ""
15043 _ACEOF
15044  ;;
15045 esac
15046
15047
15048 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15049 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15050 if test "${ac_cv_c_extern_prefix+set}" = set; then
15051   echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053   cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15060 extern int ac_test;
15061 int
15062 main ()
15063 {
15064 if (ac_test) return 1
15065   ;
15066   return 0;
15067 }
15068 _ACEOF
15069 rm -f conftest.$ac_objext conftest$ac_exeext
15070 if { (ac_try="$ac_link"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_link") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } &&
15083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15084   { (case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089   (eval "$ac_try") 2>&5
15090   ac_status=$?
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); }; } &&
15093          { ac_try='test -s conftest$ac_exeext'
15094   { (case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_try") 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103   ac_cv_c_extern_prefix="yes"
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108         ac_cv_c_extern_prefix="no"
15109 fi
15110
15111 rm -f core conftest.err conftest.$ac_objext \
15112       conftest$ac_exeext conftest.$ac_ext
15113 fi
15114 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15115 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15116
15117
15118
15119 if test "$ac_cv_c_extern_prefix" = "yes"
15120 then
15121   cat >>confdefs.h <<\_ACEOF
15122 #define __ASM_NAME(name) "_" name
15123 _ACEOF
15124
15125 else
15126   cat >>confdefs.h <<\_ACEOF
15127 #define __ASM_NAME(name) name
15128 _ACEOF
15129
15130 fi
15131
15132
15133 DLLEXT=""
15134
15135 DLLFLAGS="-D_REENTRANT"
15136
15137 LDSHARED=""
15138
15139 LDDLLFLAGS=""
15140
15141 LIBEXT="so"
15142
15143 IMPLIBEXT="def"
15144
15145 LIBWINE_LDFLAGS=""
15146
15147
15148 case $host_os in
15149   cygwin*|mingw32*)
15150     if test -n "$ac_tool_prefix"; then
15151   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15152 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15155 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15156   echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158   if test -n "$DLLTOOL"; then
15159   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15160 else
15161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15162 for as_dir in $PATH
15163 do
15164   IFS=$as_save_IFS
15165   test -z "$as_dir" && as_dir=.
15166   for ac_exec_ext in '' $ac_executable_extensions; do
15167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15168     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15170     break 2
15171   fi
15172 done
15173 done
15174 IFS=$as_save_IFS
15175
15176 fi
15177 fi
15178 DLLTOOL=$ac_cv_prog_DLLTOOL
15179 if test -n "$DLLTOOL"; then
15180   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15181 echo "${ECHO_T}$DLLTOOL" >&6; }
15182 else
15183   { echo "$as_me:$LINENO: result: no" >&5
15184 echo "${ECHO_T}no" >&6; }
15185 fi
15186
15187
15188 fi
15189 if test -z "$ac_cv_prog_DLLTOOL"; then
15190   ac_ct_DLLTOOL=$DLLTOOL
15191   # Extract the first word of "dlltool", so it can be a program name with args.
15192 set dummy dlltool; ac_word=$2
15193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15195 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15196   echo $ECHO_N "(cached) $ECHO_C" >&6
15197 else
15198   if test -n "$ac_ct_DLLTOOL"; then
15199   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15200 else
15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15203 do
15204   IFS=$as_save_IFS
15205   test -z "$as_dir" && as_dir=.
15206   for ac_exec_ext in '' $ac_executable_extensions; do
15207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15208     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15210     break 2
15211   fi
15212 done
15213 done
15214 IFS=$as_save_IFS
15215
15216 fi
15217 fi
15218 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15219 if test -n "$ac_ct_DLLTOOL"; then
15220   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15221 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15222 else
15223   { echo "$as_me:$LINENO: result: no" >&5
15224 echo "${ECHO_T}no" >&6; }
15225 fi
15226
15227   if test "x$ac_ct_DLLTOOL" = x; then
15228     DLLTOOL="false"
15229   else
15230     case $cross_compiling:$ac_tool_warned in
15231 yes:)
15232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15233 whose name does not start with the host triplet.  If you think this
15234 configuration is useful to you, please write to autoconf@gnu.org." >&5
15235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15236 whose name does not start with the host triplet.  If you think this
15237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15238 ac_tool_warned=yes ;;
15239 esac
15240     DLLTOOL=$ac_ct_DLLTOOL
15241   fi
15242 else
15243   DLLTOOL="$ac_cv_prog_DLLTOOL"
15244 fi
15245
15246     if test -n "$ac_tool_prefix"; then
15247   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15248 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15251 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15252   echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254   if test -n "$DLLWRAP"; then
15255   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15256 else
15257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258 for as_dir in $PATH
15259 do
15260   IFS=$as_save_IFS
15261   test -z "$as_dir" && as_dir=.
15262   for ac_exec_ext in '' $ac_executable_extensions; do
15263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15264     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15266     break 2
15267   fi
15268 done
15269 done
15270 IFS=$as_save_IFS
15271
15272 fi
15273 fi
15274 DLLWRAP=$ac_cv_prog_DLLWRAP
15275 if test -n "$DLLWRAP"; then
15276   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15277 echo "${ECHO_T}$DLLWRAP" >&6; }
15278 else
15279   { echo "$as_me:$LINENO: result: no" >&5
15280 echo "${ECHO_T}no" >&6; }
15281 fi
15282
15283
15284 fi
15285 if test -z "$ac_cv_prog_DLLWRAP"; then
15286   ac_ct_DLLWRAP=$DLLWRAP
15287   # Extract the first word of "dllwrap", so it can be a program name with args.
15288 set dummy dllwrap; ac_word=$2
15289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15291 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   if test -n "$ac_ct_DLLWRAP"; then
15295   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15296 else
15297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15298 for as_dir in $PATH
15299 do
15300   IFS=$as_save_IFS
15301   test -z "$as_dir" && as_dir=.
15302   for ac_exec_ext in '' $ac_executable_extensions; do
15303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15304     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15306     break 2
15307   fi
15308 done
15309 done
15310 IFS=$as_save_IFS
15311
15312 fi
15313 fi
15314 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15315 if test -n "$ac_ct_DLLWRAP"; then
15316   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15317 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15318 else
15319   { echo "$as_me:$LINENO: result: no" >&5
15320 echo "${ECHO_T}no" >&6; }
15321 fi
15322
15323   if test "x$ac_ct_DLLWRAP" = x; then
15324     DLLWRAP="false"
15325   else
15326     case $cross_compiling:$ac_tool_warned in
15327 yes:)
15328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15329 whose name does not start with the host triplet.  If you think this
15330 configuration is useful to you, please write to autoconf@gnu.org." >&5
15331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15332 whose name does not start with the host triplet.  If you think this
15333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15334 ac_tool_warned=yes ;;
15335 esac
15336     DLLWRAP=$ac_ct_DLLWRAP
15337   fi
15338 else
15339   DLLWRAP="$ac_cv_prog_DLLWRAP"
15340 fi
15341
15342     if test "$DLLWRAP" = "false"; then
15343       LIBEXT="a"
15344     else
15345             LIBEXT="dll"
15346     fi
15347     IMPLIBEXT="a"
15348         WIN16_FILES=""
15349     WIN16_INSTALL=""
15350     ;;
15351   darwin*|macosx*)
15352     DLLEXT=".so"
15353     LIBEXT="dylib"
15354     DLLFLAGS="$DLLFLAGS -fPIC"
15355     LDDLLFLAGS="-bundle -multiply_defined suppress"
15356     LIBWINE_LDFLAGS="-multiply_defined suppress"
15357     LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
15358     STRIP="$STRIP -u -r"
15359         COREFOUNDATIONLIB="-framework CoreFoundation"
15360
15361     IOKITLIB="-framework IOKit -framework CoreFoundation"
15362
15363     DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
15364
15365     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
15366
15367     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
15368     then
15369                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
15370
15371     fi
15372     case $host_cpu in
15373       *powerpc*)
15374         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
15375     esac
15376     ;;
15377   *)
15378     DLLFLAGS="$DLLFLAGS -fPIC"
15379     DLLEXT=".so"
15380     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
15381 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
15382 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
15383   echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385   ac_wine_try_cflags_saved=$CFLAGS
15386 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
15387 cat >conftest.$ac_ext <<_ACEOF
15388 void myfunc() {}
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (ac_try="$ac_link"
15392 case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397   (eval "$ac_link") 2>conftest.er1
15398   ac_status=$?
15399   grep -v '^ *+' conftest.er1 >conftest.err
15400   rm -f conftest.er1
15401   cat conftest.err >&5
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } &&
15404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; } &&
15414          { ac_try='test -s conftest$ac_exeext'
15415   { (case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_try") 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; }; then
15424   ac_cv_c_dll_gnuelf="yes"
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429         ac_cv_c_dll_gnuelf="no"
15430 fi
15431
15432 rm -f core conftest.err conftest.$ac_objext \
15433       conftest$ac_exeext conftest.$ac_ext
15434 CFLAGS=$ac_wine_try_cflags_saved
15435 fi
15436 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
15437 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
15438     if test "$ac_cv_c_dll_gnuelf" = "yes"
15439     then
15440       LDSHARED="\$(CC) -shared"
15441       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
15442       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
15443 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
15444 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
15445   echo $ECHO_N "(cached) $ECHO_C" >&6
15446 else
15447   ac_wine_try_cflags_saved=$CFLAGS
15448 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
15449 cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455
15456 int
15457 main ()
15458 {
15459
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (ac_try="$ac_link"
15466 case "(($ac_try" in
15467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468   *) ac_try_echo=$ac_try;;
15469 esac
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471   (eval "$ac_link") 2>conftest.er1
15472   ac_status=$?
15473   grep -v '^ *+' conftest.er1 >conftest.err
15474   rm -f conftest.er1
15475   cat conftest.err >&5
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } &&
15478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15479   { (case "(($ac_try" in
15480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481   *) ac_try_echo=$ac_try;;
15482 esac
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484   (eval "$ac_try") 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; } &&
15488          { ac_try='test -s conftest$ac_exeext'
15489   { (case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_try") 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; }; then
15498   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
15499 else
15500   echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
15504 fi
15505
15506 rm -f core conftest.err conftest.$ac_objext \
15507       conftest$ac_exeext conftest.$ac_ext
15508 CFLAGS=$ac_wine_try_cflags_saved
15509 fi
15510 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
15511 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
15512 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
15513   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
15514 else
15515   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
15516 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
15517 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
15518   echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520   ac_wine_try_cflags_saved=$CFLAGS
15521 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h.  */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h.  */
15528
15529 int
15530 main ()
15531 {
15532
15533   ;
15534   return 0;
15535 }
15536 _ACEOF
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (ac_try="$ac_link"
15539 case "(($ac_try" in
15540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541   *) ac_try_echo=$ac_try;;
15542 esac
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544   (eval "$ac_link") 2>conftest.er1
15545   ac_status=$?
15546   grep -v '^ *+' conftest.er1 >conftest.err
15547   rm -f conftest.er1
15548   cat conftest.err >&5
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); } &&
15551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15552   { (case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_try") 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; } &&
15561          { ac_try='test -s conftest$ac_exeext'
15562   { (case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_try") 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }; }; then
15571   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
15572 else
15573   echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
15577 fi
15578
15579 rm -f core conftest.err conftest.$ac_objext \
15580       conftest$ac_exeext conftest.$ac_ext
15581 CFLAGS=$ac_wine_try_cflags_saved
15582 fi
15583 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
15584 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
15585 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
15586   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
15587 fi
15588
15589 fi
15590
15591
15592       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
15593 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
15594 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597   ac_wine_try_cflags_saved=$CFLAGS
15598 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605
15606 int
15607 main ()
15608 {
15609
15610   ;
15611   return 0;
15612 }
15613 _ACEOF
15614 rm -f conftest.$ac_objext conftest$ac_exeext
15615 if { (ac_try="$ac_link"
15616 case "(($ac_try" in
15617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618   *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621   (eval "$ac_link") 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } &&
15628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15629   { (case "(($ac_try" in
15630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631   *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634   (eval "$ac_try") 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; } &&
15638          { ac_try='test -s conftest$ac_exeext'
15639   { (case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644   (eval "$ac_try") 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; }; then
15648   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
15649 else
15650   echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
15654 fi
15655
15656 rm -f core conftest.err conftest.$ac_objext \
15657       conftest$ac_exeext conftest.$ac_ext
15658 CFLAGS=$ac_wine_try_cflags_saved
15659 fi
15660 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
15661 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
15662 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
15663   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
15664 fi
15665
15666
15667       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
15668 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
15669 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
15670   echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672   ac_wine_try_cflags_saved=$CFLAGS
15673 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
15674 cat >conftest.$ac_ext <<_ACEOF
15675 /* confdefs.h.  */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h.  */
15680
15681 int
15682 main ()
15683 {
15684
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 rm -f conftest.$ac_objext conftest$ac_exeext
15690 if { (ac_try="$ac_link"
15691 case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_link") 2>conftest.er1
15697   ac_status=$?
15698   grep -v '^ *+' conftest.er1 >conftest.err
15699   rm -f conftest.er1
15700   cat conftest.err >&5
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } &&
15703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15704   { (case "(($ac_try" in
15705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706   *) ac_try_echo=$ac_try;;
15707 esac
15708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709   (eval "$ac_try") 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; } &&
15713          { ac_try='test -s conftest$ac_exeext'
15714   { (case "(($ac_try" in
15715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716   *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719   (eval "$ac_try") 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; }; then
15723   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
15729 fi
15730
15731 rm -f core conftest.err conftest.$ac_objext \
15732       conftest$ac_exeext conftest.$ac_ext
15733 CFLAGS=$ac_wine_try_cflags_saved
15734 fi
15735 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
15736 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
15737 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
15738   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
15739 fi
15740
15741
15742       echo '{ global: *; };' >conftest.map
15743       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
15744 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
15745 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   ac_wine_try_cflags_saved=$CFLAGS
15749 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756
15757 int
15758 main ()
15759 {
15760
15761   ;
15762   return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_link") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780   { (case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_try") 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; } &&
15789          { ac_try='test -s conftest$ac_exeext'
15790   { (case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_try") 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext \
15808       conftest$ac_exeext conftest.$ac_ext
15809 CFLAGS=$ac_wine_try_cflags_saved
15810 fi
15811 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
15812 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
15813 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
15814   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
15815 fi
15816
15817       rm -f conftest.map
15818
15819       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
15820 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
15821 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   ac_wine_try_cflags_saved=$CFLAGS
15825 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h.  */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h.  */
15832
15833 int
15834 main ()
15835 {
15836
15837   ;
15838   return 0;
15839 }
15840 _ACEOF
15841 rm -f conftest.$ac_objext conftest$ac_exeext
15842 if { (ac_try="$ac_link"
15843 case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848   (eval "$ac_link") 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15856   { (case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_try") 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; } &&
15865          { ac_try='test -s conftest$ac_exeext'
15866   { (case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871   (eval "$ac_try") 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880         ac_cv_cflags__fPIC__Wl___export_dynamic=no
15881 fi
15882
15883 rm -f core conftest.err conftest.$ac_objext \
15884       conftest$ac_exeext conftest.$ac_ext
15885 CFLAGS=$ac_wine_try_cflags_saved
15886 fi
15887 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
15888 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
15889 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
15890   LDEXECFLAGS="-Wl,--export-dynamic"
15891
15892 fi
15893
15894
15895       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
15896 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
15897 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
15898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15899   echo $ECHO_N "(cached) $ECHO_C" >&6
15900 else
15901   ac_wine_try_cflags_saved=$CFLAGS
15902 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909
15910 int
15911 main ()
15912 {
15913
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922   *) ac_try_echo=$ac_try;;
15923 esac
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925   (eval "$ac_link") 2>conftest.er1
15926   ac_status=$?
15927   grep -v '^ *+' conftest.er1 >conftest.err
15928   rm -f conftest.er1
15929   cat conftest.err >&5
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); } &&
15932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15933   { (case "(($ac_try" in
15934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15935   *) ac_try_echo=$ac_try;;
15936 esac
15937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15938   (eval "$ac_try") 2>&5
15939   ac_status=$?
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); }; } &&
15942          { ac_try='test -s conftest$ac_exeext'
15943   { (case "(($ac_try" in
15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945   *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948   (eval "$ac_try") 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; }; then
15952   eval "$as_ac_var=yes"
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957         eval "$as_ac_var=no"
15958 fi
15959
15960 rm -f core conftest.err conftest.$ac_objext \
15961       conftest$ac_exeext conftest.$ac_ext
15962 CFLAGS=$ac_wine_try_cflags_saved
15963 fi
15964 ac_res=`eval echo '${'$as_ac_var'}'`
15965                { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15967 if test `eval echo '${'$as_ac_var'}'` = yes; then
15968   LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
15969 fi
15970
15971
15972       case $host_cpu in
15973         *i[3456789]86* | x86_64)
15974           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
15975 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
15976 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
15977   echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979   ac_wine_try_cflags_saved=$CFLAGS
15980 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987
15988 int
15989 main ()
15990 {
15991
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_link") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } &&
16010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16011   { (case "(($ac_try" in
16012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013   *) ac_try_echo=$ac_try;;
16014 esac
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016   (eval "$ac_try") 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; } &&
16020          { ac_try='test -s conftest$ac_exeext'
16021   { (case "(($ac_try" in
16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023   *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026   (eval "$ac_try") 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); }; }; then
16030   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
16031 else
16032   echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16034
16035         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
16036 fi
16037
16038 rm -f core conftest.err conftest.$ac_objext \
16039       conftest$ac_exeext conftest.$ac_ext
16040 CFLAGS=$ac_wine_try_cflags_saved
16041 fi
16042 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
16043 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
16044 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
16045   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16046 fi
16047
16048           ;;
16049       esac
16050
16051     else
16052       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16053 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16054 if test "${ac_cv_c_dll_unixware+set}" = set; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   ac_wine_try_cflags_saved=$CFLAGS
16058 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16059 cat >conftest.$ac_ext <<_ACEOF
16060 void myfunc() {}
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (ac_try="$ac_link"
16064 case "(($ac_try" in
16065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066   *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069   (eval "$ac_link") 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } &&
16076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16077   { (case "(($ac_try" in
16078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079   *) ac_try_echo=$ac_try;;
16080 esac
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082   (eval "$ac_try") 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; } &&
16086          { ac_try='test -s conftest$ac_exeext'
16087   { (case "(($ac_try" in
16088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089   *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092   (eval "$ac_try") 2>&5
16093   ac_status=$?
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); }; }; then
16096   ac_cv_c_dll_unixware="yes"
16097 else
16098   echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16100
16101         ac_cv_c_dll_unixware="no"
16102 fi
16103
16104 rm -f core conftest.err conftest.$ac_objext \
16105       conftest$ac_exeext conftest.$ac_ext
16106 CFLAGS=$ac_wine_try_cflags_saved
16107 fi
16108 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16109 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
16110       if test "$ac_cv_c_dll_unixware" = "yes"
16111       then
16112         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16113         LDDLLFLAGS="-Wl,-G,-B,symbolic"
16114
16115       else
16116         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
16117 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
16118 if test "${ac_cv_c_dll_hpux+set}" = set; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   ac_wine_try_cflags_saved=$CFLAGS
16122 CFLAGS="$CFLAGS -shared"
16123 cat >conftest.$ac_ext <<_ACEOF
16124 void myfunc() {}
16125 _ACEOF
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130   *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133   (eval "$ac_link") 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } &&
16140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16141   { (case "(($ac_try" in
16142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143   *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146   (eval "$ac_try") 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; } &&
16150          { ac_try='test -s conftest$ac_exeext'
16151   { (case "(($ac_try" in
16152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153   *) ac_try_echo=$ac_try;;
16154 esac
16155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156   (eval "$ac_try") 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; }; then
16160   ac_cv_c_dll_hpux="yes"
16161 else
16162   echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165         ac_cv_c_dll_hpux="no"
16166 fi
16167
16168 rm -f core conftest.err conftest.$ac_objext \
16169       conftest$ac_exeext conftest.$ac_ext
16170 CFLAGS=$ac_wine_try_cflags_saved
16171 fi
16172 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
16173 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
16174         if test "$ac_cv_c_dll_hpux" = "yes"
16175         then
16176           LIBEXT="sl"
16177           DLLEXT=".sl"
16178           LDDLLFLAGS="-shared -fPIC"
16179           LDSHARED="\$(CC) -shared"
16180         fi
16181       fi
16182     fi
16183
16184         CROSSTEST=""
16185
16186     if test "$cross_compiling" = "no"
16187     then
16188       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
16189 do
16190   # Extract the first word of "$ac_prog", so it can be a program name with args.
16191 set dummy $ac_prog; ac_word=$2
16192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16194 if test "${ac_cv_prog_CROSSCC+set}" = set; then
16195   echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197   if test -n "$CROSSCC"; then
16198   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
16199 else
16200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16201 for as_dir in $PATH
16202 do
16203   IFS=$as_save_IFS
16204   test -z "$as_dir" && as_dir=.
16205   for ac_exec_ext in '' $ac_executable_extensions; do
16206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16207     ac_cv_prog_CROSSCC="$ac_prog"
16208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16209     break 2
16210   fi
16211 done
16212 done
16213 IFS=$as_save_IFS
16214
16215 fi
16216 fi
16217 CROSSCC=$ac_cv_prog_CROSSCC
16218 if test -n "$CROSSCC"; then
16219   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
16220 echo "${ECHO_T}$CROSSCC" >&6; }
16221 else
16222   { echo "$as_me:$LINENO: result: no" >&5
16223 echo "${ECHO_T}no" >&6; }
16224 fi
16225
16226
16227   test -n "$CROSSCC" && break
16228 done
16229 test -n "$CROSSCC" || CROSSCC="false"
16230
16231       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
16232 do
16233   # Extract the first word of "$ac_prog", so it can be a program name with args.
16234 set dummy $ac_prog; ac_word=$2
16235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16237 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   if test -n "$DLLTOOL"; then
16241   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16242 else
16243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16244 for as_dir in $PATH
16245 do
16246   IFS=$as_save_IFS
16247   test -z "$as_dir" && as_dir=.
16248   for ac_exec_ext in '' $ac_executable_extensions; do
16249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16250     ac_cv_prog_DLLTOOL="$ac_prog"
16251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16252     break 2
16253   fi
16254 done
16255 done
16256 IFS=$as_save_IFS
16257
16258 fi
16259 fi
16260 DLLTOOL=$ac_cv_prog_DLLTOOL
16261 if test -n "$DLLTOOL"; then
16262   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16263 echo "${ECHO_T}$DLLTOOL" >&6; }
16264 else
16265   { echo "$as_me:$LINENO: result: no" >&5
16266 echo "${ECHO_T}no" >&6; }
16267 fi
16268
16269
16270   test -n "$DLLTOOL" && break
16271 done
16272 test -n "$DLLTOOL" || DLLTOOL="false"
16273
16274       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
16275 do
16276   # Extract the first word of "$ac_prog", so it can be a program name with args.
16277 set dummy $ac_prog; ac_word=$2
16278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16280 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
16281   echo $ECHO_N "(cached) $ECHO_C" >&6
16282 else
16283   if test -n "$CROSSWINDRES"; then
16284   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
16285 else
16286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16287 for as_dir in $PATH
16288 do
16289   IFS=$as_save_IFS
16290   test -z "$as_dir" && as_dir=.
16291   for ac_exec_ext in '' $ac_executable_extensions; do
16292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16293     ac_cv_prog_CROSSWINDRES="$ac_prog"
16294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16295     break 2
16296   fi
16297 done
16298 done
16299 IFS=$as_save_IFS
16300
16301 fi
16302 fi
16303 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
16304 if test -n "$CROSSWINDRES"; then
16305   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
16306 echo "${ECHO_T}$CROSSWINDRES" >&6; }
16307 else
16308   { echo "$as_me:$LINENO: result: no" >&5
16309 echo "${ECHO_T}no" >&6; }
16310 fi
16311
16312
16313   test -n "$CROSSWINDRES" && break
16314 done
16315 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
16316
16317       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
16318     fi
16319     ;;
16320 esac
16321
16322 if test "$LIBEXT" = "a"; then
16323   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
16324 It is currently not possible to build Wine without shared library
16325 (.so) support to allow transparent switch between .so and .dll files.
16326 If you are using Linux, you will need a newer binutils.
16327 " >&5
16328 echo "$as_me: error: could not find a way to build shared libraries.
16329 It is currently not possible to build Wine without shared library
16330 (.so) support to allow transparent switch between .so and .dll files.
16331 If you are using Linux, you will need a newer binutils.
16332 " >&2;}
16333    { (exit 1); exit 1; }; }
16334 fi
16335
16336 case $build_os in
16337   cygwin*|mingw32*)
16338     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
16339  ;;
16340   darwin*|macosx*)
16341     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
16342  ;;
16343   *)
16344     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
16345  ;;
16346 esac
16347
16348 case $host_os in
16349   mingw32*)
16350     CRTLIBS="-lmsvcrt"
16351
16352     SOCKETLIBS="-lws2_32"
16353
16354     ;;
16355 esac
16356
16357 MAIN_BINARY="wine-pthread"
16358   case $host_cpu in
16359   *i[3456789]86*)
16360     case $host_os in
16361       linux* | k*bsd*-gnu)
16362         MAIN_BINARY="wine-glibc"
16363
16364         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
16365  ;;
16366     esac
16367     ;;
16368 esac
16369
16370
16371 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
16372 then
16373   # Extract the first word of "ldd", so it can be a program name with args.
16374 set dummy ldd; ac_word=$2
16375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16377 if test "${ac_cv_path_LDD+set}" = set; then
16378   echo $ECHO_N "(cached) $ECHO_C" >&6
16379 else
16380   case $LDD in
16381   [\\/]* | ?:[\\/]*)
16382   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
16383   ;;
16384   *)
16385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16386 as_dummy="/sbin:/usr/sbin:$PATH"
16387 for as_dir in $as_dummy
16388 do
16389   IFS=$as_save_IFS
16390   test -z "$as_dir" && as_dir=.
16391   for ac_exec_ext in '' $ac_executable_extensions; do
16392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16393     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
16394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16395     break 2
16396   fi
16397 done
16398 done
16399 IFS=$as_save_IFS
16400
16401   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
16402   ;;
16403 esac
16404 fi
16405 LDD=$ac_cv_path_LDD
16406 if test -n "$LDD"; then
16407   { echo "$as_me:$LINENO: result: $LDD" >&5
16408 echo "${ECHO_T}$LDD" >&6; }
16409 else
16410   { echo "$as_me:$LINENO: result: no" >&5
16411 echo "${ECHO_T}no" >&6; }
16412 fi
16413
16414
16415 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
16416 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
16417 if test "${ac_cv_lib_soname_X11+set}" = set; then
16418   echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420   ac_get_soname_save_LIBS=$LIBS
16421 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
16422   cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428
16429 /* Override any GCC internal prototype to avoid an error.
16430    Use char because int might match the return type of a GCC
16431    builtin and then its argument prototype would still apply.  */
16432 #ifdef __cplusplus
16433 extern "C"
16434 #endif
16435 char XCreateWindow ();
16436 int
16437 main ()
16438 {
16439 return XCreateWindow ();
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (ac_try="$ac_link"
16446 case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_link") 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } &&
16458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459   { (case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_try") 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); }; } &&
16468          { ac_try='test -s conftest$ac_exeext'
16469   { (case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_try") 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   case "$LIBEXT" in
16479     dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep libX11\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16480     so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^        ]*\).*$/\1/"';2,$d'` ;;
16481   esac
16482   if test "x$ac_cv_lib_soname_X11" = "x"
16483   then
16484      ac_cv_lib_soname_X11="libX11.$LIBEXT"
16485   fi
16486 else
16487   echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490         ac_cv_lib_soname_X11="libX11.$LIBEXT"
16491 fi
16492
16493 rm -f core conftest.err conftest.$ac_objext \
16494       conftest$ac_exeext conftest.$ac_ext
16495   LIBS=$ac_get_soname_save_LIBS
16496 fi
16497 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
16498 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
16499 if test "${ac_cv_lib_soname_X11+set}" = set; then
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
16503 _ACEOF
16504
16505 fi
16506
16507   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
16508 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
16509 if test "${ac_cv_lib_soname_Xext+set}" = set; then
16510   echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512   ac_get_soname_save_LIBS=$LIBS
16513 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
16514   cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520
16521 /* Override any GCC internal prototype to avoid an error.
16522    Use char because int might match the return type of a GCC
16523    builtin and then its argument prototype would still apply.  */
16524 #ifdef __cplusplus
16525 extern "C"
16526 #endif
16527 char XextCreateExtension ();
16528 int
16529 main ()
16530 {
16531 return XextCreateExtension ();
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext conftest$ac_exeext
16537 if { (ac_try="$ac_link"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_link") 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } &&
16550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551   { (case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_try") 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; } &&
16560          { ac_try='test -s conftest$ac_exeext'
16561   { (case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_try") 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; }; then
16570   case "$LIBEXT" in
16571     dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep libXext\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16572     so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^     ]*\).*$/\1/"';2,$d'` ;;
16573   esac
16574   if test "x$ac_cv_lib_soname_Xext" = "x"
16575   then
16576      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
16577   fi
16578 else
16579   echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
16583 fi
16584
16585 rm -f core conftest.err conftest.$ac_objext \
16586       conftest$ac_exeext conftest.$ac_ext
16587   LIBS=$ac_get_soname_save_LIBS
16588 fi
16589 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
16590 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
16591 if test "${ac_cv_lib_soname_Xext+set}" = set; then
16592
16593 cat >>confdefs.h <<_ACEOF
16594 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
16595 _ACEOF
16596
16597 fi
16598
16599   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
16600 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
16601 if test "${ac_cv_lib_soname_Xi+set}" = set; then
16602   echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604   ac_get_soname_save_LIBS=$LIBS
16605 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16606   cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h.  */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h.  */
16612
16613 /* Override any GCC internal prototype to avoid an error.
16614    Use char because int might match the return type of a GCC
16615    builtin and then its argument prototype would still apply.  */
16616 #ifdef __cplusplus
16617 extern "C"
16618 #endif
16619 char XOpenDevice ();
16620 int
16621 main ()
16622 {
16623 return XOpenDevice ();
16624   ;
16625   return 0;
16626 }
16627 _ACEOF
16628 rm -f conftest.$ac_objext conftest$ac_exeext
16629 if { (ac_try="$ac_link"
16630 case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_link") 2>conftest.er1
16636   ac_status=$?
16637   grep -v '^ *+' conftest.er1 >conftest.err
16638   rm -f conftest.er1
16639   cat conftest.err >&5
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); } &&
16642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16643   { (case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_try") 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); }; } &&
16652          { ac_try='test -s conftest$ac_exeext'
16653   { (case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_try") 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   case "$LIBEXT" in
16663     dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep libXi\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16664     so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^   ]*\).*$/\1/"';2,$d'` ;;
16665   esac
16666   if test "x$ac_cv_lib_soname_Xi" = "x"
16667   then
16668      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
16669   fi
16670 else
16671   echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16673
16674         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
16675 fi
16676
16677 rm -f core conftest.err conftest.$ac_objext \
16678       conftest$ac_exeext conftest.$ac_ext
16679   LIBS=$ac_get_soname_save_LIBS
16680 fi
16681 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
16682 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
16683 if test "${ac_cv_lib_soname_Xi+set}" = set; then
16684
16685 cat >>confdefs.h <<_ACEOF
16686 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
16687 _ACEOF
16688
16689 fi
16690
16691   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
16692 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
16693 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16694   echo $ECHO_N "(cached) $ECHO_C" >&6
16695 else
16696   ac_get_soname_save_LIBS=$LIBS
16697 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16698   cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h.  */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h.  */
16704
16705 /* Override any GCC internal prototype to avoid an error.
16706    Use char because int might match the return type of a GCC
16707    builtin and then its argument prototype would still apply.  */
16708 #ifdef __cplusplus
16709 extern "C"
16710 #endif
16711 char XRenderQueryExtension ();
16712 int
16713 main ()
16714 {
16715 return XRenderQueryExtension ();
16716   ;
16717   return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext conftest$ac_exeext
16721 if { (ac_try="$ac_link"
16722 case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_link") 2>conftest.er1
16728   ac_status=$?
16729   grep -v '^ *+' conftest.er1 >conftest.err
16730   rm -f conftest.er1
16731   cat conftest.err >&5
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); } &&
16734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16735   { (case "(($ac_try" in
16736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737   *) ac_try_echo=$ac_try;;
16738 esac
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740   (eval "$ac_try") 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; } &&
16744          { ac_try='test -s conftest$ac_exeext'
16745   { (case "(($ac_try" in
16746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747   *) ac_try_echo=$ac_try;;
16748 esac
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750   (eval "$ac_try") 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   case "$LIBEXT" in
16755     dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep libXrender\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16756     so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^    ]*\).*$/\1/"';2,$d'` ;;
16757   esac
16758   if test "x$ac_cv_lib_soname_Xrender" = "x"
16759   then
16760      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16761   fi
16762 else
16763   echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16767 fi
16768
16769 rm -f core conftest.err conftest.$ac_objext \
16770       conftest$ac_exeext conftest.$ac_ext
16771   LIBS=$ac_get_soname_save_LIBS
16772 fi
16773 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
16774 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
16775 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16776
16777 cat >>confdefs.h <<_ACEOF
16778 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
16779 _ACEOF
16780
16781 fi
16782
16783   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
16784 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
16785 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788   ac_get_soname_save_LIBS=$LIBS
16789 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16790   cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h.  */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h.  */
16796
16797 /* Override any GCC internal prototype to avoid an error.
16798    Use char because int might match the return type of a GCC
16799    builtin and then its argument prototype would still apply.  */
16800 #ifdef __cplusplus
16801 extern "C"
16802 #endif
16803 char XRRQueryExtension ();
16804 int
16805 main ()
16806 {
16807 return XRRQueryExtension ();
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (ac_try="$ac_link"
16814 case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_link") 2>conftest.er1
16820   ac_status=$?
16821   grep -v '^ *+' conftest.er1 >conftest.err
16822   rm -f conftest.er1
16823   cat conftest.err >&5
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } &&
16826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16827   { (case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_try") 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; } &&
16836          { ac_try='test -s conftest$ac_exeext'
16837   { (case "(($ac_try" in
16838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839   *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842   (eval "$ac_try") 2>&5
16843   ac_status=$?
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); }; }; then
16846   case "$LIBEXT" in
16847     dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep libXrandr\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16848     so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^       ]*\).*$/\1/"';2,$d'` ;;
16849   esac
16850   if test "x$ac_cv_lib_soname_Xrandr" = "x"
16851   then
16852      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16853   fi
16854 else
16855   echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16857
16858         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16859 fi
16860
16861 rm -f core conftest.err conftest.$ac_objext \
16862       conftest$ac_exeext conftest.$ac_ext
16863   LIBS=$ac_get_soname_save_LIBS
16864 fi
16865 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
16866 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
16867 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16868
16869 cat >>confdefs.h <<_ACEOF
16870 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
16871 _ACEOF
16872
16873 fi
16874
16875   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
16876 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
16877 if test "${ac_cv_lib_soname_freetype+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   ac_get_soname_save_LIBS=$LIBS
16881 LIBS="-lfreetype $X_LIBS $LIBS"
16882   cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888
16889 /* Override any GCC internal prototype to avoid an error.
16890    Use char because int might match the return type of a GCC
16891    builtin and then its argument prototype would still apply.  */
16892 #ifdef __cplusplus
16893 extern "C"
16894 #endif
16895 char FT_Init_FreeType ();
16896 int
16897 main ()
16898 {
16899 return FT_Init_FreeType ();
16900   ;
16901   return 0;
16902 }
16903 _ACEOF
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (ac_try="$ac_link"
16906 case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_link") 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919   { (case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_try") 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; } &&
16928          { ac_try='test -s conftest$ac_exeext'
16929   { (case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_try") 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); }; }; then
16938   case "$LIBEXT" in
16939     dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep libfreetype\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16940     so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^         ]*\).*$/\1/"';2,$d'` ;;
16941   esac
16942   if test "x$ac_cv_lib_soname_freetype" = "x"
16943   then
16944      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
16945   fi
16946 else
16947   echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
16951 fi
16952
16953 rm -f core conftest.err conftest.$ac_objext \
16954       conftest$ac_exeext conftest.$ac_ext
16955   LIBS=$ac_get_soname_save_LIBS
16956 fi
16957 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
16958 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
16959 if test "${ac_cv_lib_soname_freetype+set}" = set; then
16960
16961 cat >>confdefs.h <<_ACEOF
16962 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
16963 _ACEOF
16964
16965 fi
16966
16967   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
16968 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
16969 if test "${ac_cv_lib_soname_GL+set}" = set; then
16970   echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972   ac_get_soname_save_LIBS=$LIBS
16973 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
16974   cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h.  */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h.  */
16980
16981 /* Override any GCC internal prototype to avoid an error.
16982    Use char because int might match the return type of a GCC
16983    builtin and then its argument prototype would still apply.  */
16984 #ifdef __cplusplus
16985 extern "C"
16986 #endif
16987 char glXQueryExtension ();
16988 int
16989 main ()
16990 {
16991 return glXQueryExtension ();
16992   ;
16993   return 0;
16994 }
16995 _ACEOF
16996 rm -f conftest.$ac_objext conftest$ac_exeext
16997 if { (ac_try="$ac_link"
16998 case "(($ac_try" in
16999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000   *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003   (eval "$ac_link") 2>conftest.er1
17004   ac_status=$?
17005   grep -v '^ *+' conftest.er1 >conftest.err
17006   rm -f conftest.er1
17007   cat conftest.err >&5
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); } &&
17010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17011   { (case "(($ac_try" in
17012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013   *) ac_try_echo=$ac_try;;
17014 esac
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016   (eval "$ac_try") 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); }; } &&
17020          { ac_try='test -s conftest$ac_exeext'
17021   { (case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_try") 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; }; then
17030   case "$LIBEXT" in
17031     dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep libGL\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17032     so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17033   esac
17034   if test "x$ac_cv_lib_soname_GL" = "x"
17035   then
17036      ac_cv_lib_soname_GL="libGL.$LIBEXT"
17037   fi
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042         ac_cv_lib_soname_GL="libGL.$LIBEXT"
17043 fi
17044
17045 rm -f core conftest.err conftest.$ac_objext \
17046       conftest$ac_exeext conftest.$ac_ext
17047   LIBS=$ac_get_soname_save_LIBS
17048 fi
17049 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17050 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
17051 if test "${ac_cv_lib_soname_GL+set}" = set; then
17052
17053 cat >>confdefs.h <<_ACEOF
17054 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17055 _ACEOF
17056
17057 fi
17058
17059   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
17060 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
17061 if test "${ac_cv_lib_soname_hal+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064   ac_get_soname_save_LIBS=$LIBS
17065 LIBS="-lhal  $LIBS"
17066   cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072
17073 /* Override any GCC internal prototype to avoid an error.
17074    Use char because int might match the return type of a GCC
17075    builtin and then its argument prototype would still apply.  */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char libhal_ctx_new ();
17080 int
17081 main ()
17082 {
17083 return libhal_ctx_new ();
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_link") 2>conftest.er1
17096   ac_status=$?
17097   grep -v '^ *+' conftest.er1 >conftest.err
17098   rm -f conftest.er1
17099   cat conftest.err >&5
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } &&
17102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17103   { (case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_try") 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; } &&
17112          { ac_try='test -s conftest$ac_exeext'
17113   { (case "(($ac_try" in
17114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115   *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118   (eval "$ac_try") 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; }; then
17122   case "$LIBEXT" in
17123     dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep libhal\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17124     so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^        ]*\).*$/\1/"';2,$d'` ;;
17125   esac
17126   if test "x$ac_cv_lib_soname_hal" = "x"
17127   then
17128      ac_cv_lib_soname_hal="libhal.$LIBEXT"
17129   fi
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134         ac_cv_lib_soname_hal="libhal.$LIBEXT"
17135 fi
17136
17137 rm -f core conftest.err conftest.$ac_objext \
17138       conftest$ac_exeext conftest.$ac_ext
17139   LIBS=$ac_get_soname_save_LIBS
17140 fi
17141 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
17142 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
17143 if test "${ac_cv_lib_soname_hal+set}" = set; then
17144
17145 cat >>confdefs.h <<_ACEOF
17146 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
17147 _ACEOF
17148
17149 fi
17150
17151   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
17152 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
17153 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156   ac_get_soname_save_LIBS=$LIBS
17157 LIBS="-ltxc_dxtn  $LIBS"
17158   cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164
17165 /* Override any GCC internal prototype to avoid an error.
17166    Use char because int might match the return type of a GCC
17167    builtin and then its argument prototype would still apply.  */
17168 #ifdef __cplusplus
17169 extern "C"
17170 #endif
17171 char fetch_2d_texel_rgba_dxt1 ();
17172 int
17173 main ()
17174 {
17175 return fetch_2d_texel_rgba_dxt1 ();
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_link") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } &&
17194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195   { (case "(($ac_try" in
17196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197   *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200   (eval "$ac_try") 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); }; } &&
17204          { ac_try='test -s conftest$ac_exeext'
17205   { (case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_try") 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); }; }; then
17214   case "$LIBEXT" in
17215     dylib) ac_cv_lib_soname_txc_dxtn=`otool -L conftest$ac_exeext | grep libtxc_dxtn\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libtxc_dxtn\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17216     so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^         ]*\).*$/\1/"';2,$d'` ;;
17217   esac
17218   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
17219   then
17220      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
17221   fi
17222 else
17223   echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
17227 fi
17228
17229 rm -f core conftest.err conftest.$ac_objext \
17230       conftest$ac_exeext conftest.$ac_ext
17231   LIBS=$ac_get_soname_save_LIBS
17232 fi
17233 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
17234 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
17235 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17236
17237 cat >>confdefs.h <<_ACEOF
17238 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
17239 _ACEOF
17240
17241 fi
17242
17243   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
17244 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
17245 if test "${ac_cv_lib_soname_cups+set}" = set; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   ac_get_soname_save_LIBS=$LIBS
17249 LIBS="-lcups  $LIBS"
17250   cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h.  */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h.  */
17256
17257 /* Override any GCC internal prototype to avoid an error.
17258    Use char because int might match the return type of a GCC
17259    builtin and then its argument prototype would still apply.  */
17260 #ifdef __cplusplus
17261 extern "C"
17262 #endif
17263 char cupsGetDefault ();
17264 int
17265 main ()
17266 {
17267 return cupsGetDefault ();
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_link") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } &&
17286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17287   { (case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292   (eval "$ac_try") 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); }; } &&
17296          { ac_try='test -s conftest$ac_exeext'
17297   { (case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302   (eval "$ac_try") 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; }; then
17306   case "$LIBEXT" in
17307     dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep libcups\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17308     so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17309   esac
17310   if test "x$ac_cv_lib_soname_cups" = "x"
17311   then
17312      ac_cv_lib_soname_cups="libcups.$LIBEXT"
17313   fi
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318         ac_cv_lib_soname_cups="libcups.$LIBEXT"
17319 fi
17320
17321 rm -f core conftest.err conftest.$ac_objext \
17322       conftest$ac_exeext conftest.$ac_ext
17323   LIBS=$ac_get_soname_save_LIBS
17324 fi
17325 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
17326 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
17327 if test "${ac_cv_lib_soname_cups+set}" = set; then
17328
17329 cat >>confdefs.h <<_ACEOF
17330 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
17331 _ACEOF
17332
17333 fi
17334
17335   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
17336 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
17337 if test "${ac_cv_lib_soname_jack+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   ac_get_soname_save_LIBS=$LIBS
17341 LIBS="-ljack  $LIBS"
17342   cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h.  */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h.  */
17348
17349 /* Override any GCC internal prototype to avoid an error.
17350    Use char because int might match the return type of a GCC
17351    builtin and then its argument prototype would still apply.  */
17352 #ifdef __cplusplus
17353 extern "C"
17354 #endif
17355 char jack_client_new ();
17356 int
17357 main ()
17358 {
17359 return jack_client_new ();
17360   ;
17361   return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_link") 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } &&
17378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17379   { (case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_try") 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; } &&
17388          { ac_try='test -s conftest$ac_exeext'
17389   { (case "(($ac_try" in
17390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391   *) ac_try_echo=$ac_try;;
17392 esac
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394   (eval "$ac_try") 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); }; }; then
17398   case "$LIBEXT" in
17399     dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep libjack\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjack\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17400     so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17401   esac
17402   if test "x$ac_cv_lib_soname_jack" = "x"
17403   then
17404      ac_cv_lib_soname_jack="libjack.$LIBEXT"
17405   fi
17406 else
17407   echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410         ac_cv_lib_soname_jack="libjack.$LIBEXT"
17411 fi
17412
17413 rm -f core conftest.err conftest.$ac_objext \
17414       conftest$ac_exeext conftest.$ac_ext
17415   LIBS=$ac_get_soname_save_LIBS
17416 fi
17417 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
17418 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
17419 if test "${ac_cv_lib_soname_jack+set}" = set; then
17420
17421 cat >>confdefs.h <<_ACEOF
17422 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
17423 _ACEOF
17424
17425 fi
17426
17427   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
17428 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
17429 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   ac_get_soname_save_LIBS=$LIBS
17433 LIBS="-lfontconfig  $LIBS"
17434   cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h.  */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h.  */
17440
17441 /* Override any GCC internal prototype to avoid an error.
17442    Use char because int might match the return type of a GCC
17443    builtin and then its argument prototype would still apply.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char FcInit ();
17448 int
17449 main ()
17450 {
17451 return FcInit ();
17452   ;
17453   return 0;
17454 }
17455 _ACEOF
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (ac_try="$ac_link"
17458 case "(($ac_try" in
17459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460   *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463   (eval "$ac_link") 2>conftest.er1
17464   ac_status=$?
17465   grep -v '^ *+' conftest.er1 >conftest.err
17466   rm -f conftest.er1
17467   cat conftest.err >&5
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } &&
17470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17471   { (case "(($ac_try" in
17472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473   *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476   (eval "$ac_try") 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; } &&
17480          { ac_try='test -s conftest$ac_exeext'
17481   { (case "(($ac_try" in
17482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483   *) ac_try_echo=$ac_try;;
17484 esac
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486   (eval "$ac_try") 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }; }; then
17490   case "$LIBEXT" in
17491     dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep libfontconfig\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17492     so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17493   esac
17494   if test "x$ac_cv_lib_soname_fontconfig" = "x"
17495   then
17496      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
17497   fi
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
17503 fi
17504
17505 rm -f core conftest.err conftest.$ac_objext \
17506       conftest$ac_exeext conftest.$ac_ext
17507   LIBS=$ac_get_soname_save_LIBS
17508 fi
17509 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
17510 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
17511 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17512
17513 cat >>confdefs.h <<_ACEOF
17514 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
17515 _ACEOF
17516
17517 fi
17518
17519   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
17520 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
17521 if test "${ac_cv_lib_soname_ssl+set}" = set; then
17522   echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524   ac_get_soname_save_LIBS=$LIBS
17525 LIBS="-lssl  $LIBS"
17526   cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h.  */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h.  */
17532
17533 /* Override any GCC internal prototype to avoid an error.
17534    Use char because int might match the return type of a GCC
17535    builtin and then its argument prototype would still apply.  */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 char SSL_library_init ();
17540 int
17541 main ()
17542 {
17543 return SSL_library_init ();
17544   ;
17545   return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552   *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555   (eval "$ac_link") 2>conftest.er1
17556   ac_status=$?
17557   grep -v '^ *+' conftest.er1 >conftest.err
17558   rm -f conftest.er1
17559   cat conftest.err >&5
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); } &&
17562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17563   { (case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568   (eval "$ac_try") 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }; } &&
17572          { ac_try='test -s conftest$ac_exeext'
17573   { (case "(($ac_try" in
17574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575   *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578   (eval "$ac_try") 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; }; then
17582   case "$LIBEXT" in
17583     dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep libssl\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17584     so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^        ]*\).*$/\1/"';2,$d'` ;;
17585   esac
17586   if test "x$ac_cv_lib_soname_ssl" = "x"
17587   then
17588      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
17589   fi
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
17595 fi
17596
17597 rm -f core conftest.err conftest.$ac_objext \
17598       conftest$ac_exeext conftest.$ac_ext
17599   LIBS=$ac_get_soname_save_LIBS
17600 fi
17601 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
17602 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
17603 if test "${ac_cv_lib_soname_ssl+set}" = set; then
17604
17605 cat >>confdefs.h <<_ACEOF
17606 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
17607 _ACEOF
17608
17609 fi
17610
17611   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
17612 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
17613 if test "${ac_cv_lib_soname_crypto+set}" = set; then
17614   echo $ECHO_N "(cached) $ECHO_C" >&6
17615 else
17616   ac_get_soname_save_LIBS=$LIBS
17617 LIBS="-lcrypto  $LIBS"
17618   cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624
17625 /* Override any GCC internal prototype to avoid an error.
17626    Use char because int might match the return type of a GCC
17627    builtin and then its argument prototype would still apply.  */
17628 #ifdef __cplusplus
17629 extern "C"
17630 #endif
17631 char BIO_new_socket ();
17632 int
17633 main ()
17634 {
17635 return BIO_new_socket ();
17636   ;
17637   return 0;
17638 }
17639 _ACEOF
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (ac_try="$ac_link"
17642 case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_link") 2>conftest.er1
17648   ac_status=$?
17649   grep -v '^ *+' conftest.er1 >conftest.err
17650   rm -f conftest.er1
17651   cat conftest.err >&5
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } &&
17654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17655   { (case "(($ac_try" in
17656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657   *) ac_try_echo=$ac_try;;
17658 esac
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660   (eval "$ac_try") 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; } &&
17664          { ac_try='test -s conftest$ac_exeext'
17665   { (case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_try") 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   case "$LIBEXT" in
17675     dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep libcrypto\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17676     so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17677   esac
17678   if test "x$ac_cv_lib_soname_crypto" = "x"
17679   then
17680      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
17681   fi
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext \
17690       conftest$ac_exeext conftest.$ac_ext
17691   LIBS=$ac_get_soname_save_LIBS
17692 fi
17693 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
17694 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
17695 if test "${ac_cv_lib_soname_crypto+set}" = set; then
17696
17697 cat >>confdefs.h <<_ACEOF
17698 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
17699 _ACEOF
17700
17701 fi
17702
17703   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
17704 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
17705 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17706   echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708   ac_get_soname_save_LIBS=$LIBS
17709 LIBS="-lncurses  $LIBS"
17710   cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h.  */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h.  */
17716
17717 /* Override any GCC internal prototype to avoid an error.
17718    Use char because int might match the return type of a GCC
17719    builtin and then its argument prototype would still apply.  */
17720 #ifdef __cplusplus
17721 extern "C"
17722 #endif
17723 char waddch ();
17724 int
17725 main ()
17726 {
17727 return waddch ();
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_link") 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } &&
17746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17747   { (case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_try") 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; } &&
17756          { ac_try='test -s conftest$ac_exeext'
17757   { (case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_try") 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   case "$LIBEXT" in
17767     dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep libncurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17768     so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^    ]*\).*$/\1/"';2,$d'` ;;
17769   esac
17770   if test "x$ac_cv_lib_soname_ncurses" = "x"
17771   then
17772      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
17773   fi
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
17779 fi
17780
17781 rm -f core conftest.err conftest.$ac_objext \
17782       conftest$ac_exeext conftest.$ac_ext
17783   LIBS=$ac_get_soname_save_LIBS
17784 fi
17785 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
17786 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
17787 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17788
17789 cat >>confdefs.h <<_ACEOF
17790 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
17791 _ACEOF
17792
17793 fi
17794
17795   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
17796 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
17797 if test "${ac_cv_lib_soname_curses+set}" = set; then
17798   echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800   ac_get_soname_save_LIBS=$LIBS
17801 LIBS="-lcurses  $LIBS"
17802   cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808
17809 /* Override any GCC internal prototype to avoid an error.
17810    Use char because int might match the return type of a GCC
17811    builtin and then its argument prototype would still apply.  */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char waddch ();
17816 int
17817 main ()
17818 {
17819 return waddch ();
17820   ;
17821   return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_link") 2>conftest.er1
17832   ac_status=$?
17833   grep -v '^ *+' conftest.er1 >conftest.err
17834   rm -f conftest.er1
17835   cat conftest.err >&5
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); } &&
17838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17839   { (case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844   (eval "$ac_try") 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; } &&
17848          { ac_try='test -s conftest$ac_exeext'
17849   { (case "(($ac_try" in
17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851   *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854   (eval "$ac_try") 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; }; then
17858   case "$LIBEXT" in
17859     dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep libcurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17860     so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17861   esac
17862   if test "x$ac_cv_lib_soname_curses" = "x"
17863   then
17864      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
17865   fi
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
17871 fi
17872
17873 rm -f core conftest.err conftest.$ac_objext \
17874       conftest$ac_exeext conftest.$ac_ext
17875   LIBS=$ac_get_soname_save_LIBS
17876 fi
17877 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
17878 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
17879 if test "${ac_cv_lib_soname_curses+set}" = set; then
17880
17881 cat >>confdefs.h <<_ACEOF
17882 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
17883 _ACEOF
17884
17885 fi
17886
17887   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
17888 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
17889 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892   ac_get_soname_save_LIBS=$LIBS
17893 LIBS="-ljpeg  $LIBS"
17894   cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900
17901 /* Override any GCC internal prototype to avoid an error.
17902    Use char because int might match the return type of a GCC
17903    builtin and then its argument prototype would still apply.  */
17904 #ifdef __cplusplus
17905 extern "C"
17906 #endif
17907 char jpeg_start_decompress ();
17908 int
17909 main ()
17910 {
17911 return jpeg_start_decompress ();
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (ac_try="$ac_link"
17918 case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_link") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } &&
17930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17931   { (case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_try") 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; } &&
17940          { ac_try='test -s conftest$ac_exeext'
17941   { (case "(($ac_try" in
17942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943   *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946   (eval "$ac_try") 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; }; then
17950   case "$LIBEXT" in
17951     dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep libjpeg\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17952     so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17953   esac
17954   if test "x$ac_cv_lib_soname_jpeg" = "x"
17955   then
17956      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
17957   fi
17958 else
17959   echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
17963 fi
17964
17965 rm -f core conftest.err conftest.$ac_objext \
17966       conftest$ac_exeext conftest.$ac_ext
17967   LIBS=$ac_get_soname_save_LIBS
17968 fi
17969 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
17970 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
17971 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
17972
17973 cat >>confdefs.h <<_ACEOF
17974 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
17975 _ACEOF
17976
17977 fi
17978
17979   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
17980 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
17981 if test "${ac_cv_lib_soname_capi20+set}" = set; then
17982   echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984   ac_get_soname_save_LIBS=$LIBS
17985 LIBS="-lcapi20  $LIBS"
17986   cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h.  */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h.  */
17992
17993 /* Override any GCC internal prototype to avoid an error.
17994    Use char because int might match the return type of a GCC
17995    builtin and then its argument prototype would still apply.  */
17996 #ifdef __cplusplus
17997 extern "C"
17998 #endif
17999 char capi20_isinstalled ();
18000 int
18001 main ()
18002 {
18003 return capi20_isinstalled ();
18004   ;
18005   return 0;
18006 }
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012   *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015   (eval "$ac_link") 2>conftest.er1
18016   ac_status=$?
18017   grep -v '^ *+' conftest.er1 >conftest.err
18018   rm -f conftest.er1
18019   cat conftest.err >&5
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); } &&
18022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023   { (case "(($ac_try" in
18024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025   *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028   (eval "$ac_try") 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; } &&
18032          { ac_try='test -s conftest$ac_exeext'
18033   { (case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038   (eval "$ac_try") 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); }; }; then
18042   case "$LIBEXT" in
18043     dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep libcapi20\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18044     so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^       ]*\).*$/\1/"';2,$d'` ;;
18045   esac
18046   if test "x$ac_cv_lib_soname_capi20" = "x"
18047   then
18048      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
18049   fi
18050 else
18051   echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
18055 fi
18056
18057 rm -f core conftest.err conftest.$ac_objext \
18058       conftest$ac_exeext conftest.$ac_ext
18059   LIBS=$ac_get_soname_save_LIBS
18060 fi
18061 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
18062 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
18063 if test "${ac_cv_lib_soname_capi20+set}" = set; then
18064
18065 cat >>confdefs.h <<_ACEOF
18066 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
18067 _ACEOF
18068
18069 fi
18070
18071 fi
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144 for ac_func in \
18145         _pclose \
18146         _popen \
18147         _snprintf \
18148         _spawnvp \
18149         _stricmp \
18150         _strnicmp \
18151         _vsnprintf \
18152         asctime_r \
18153         chsize \
18154         clone \
18155         connect \
18156         dlopen \
18157         epoll_create \
18158         ffs \
18159         finite \
18160         fork \
18161         fpclass \
18162         fstatfs \
18163         fstatvfs \
18164         ftruncate \
18165         futimes \
18166         futimesat \
18167         getaddrinfo \
18168         gethostbyname \
18169         getnameinfo \
18170         getnetbyname \
18171         getopt_long \
18172         getpagesize \
18173         getprotobyname \
18174         getprotobynumber \
18175         getpwuid \
18176         getservbyport \
18177         gettid \
18178         gettimeofday \
18179         getuid \
18180         inet_aton \
18181         inet_network \
18182         kqueue \
18183         lstat \
18184         memmove \
18185         mmap \
18186         pclose \
18187         poll \
18188         popen \
18189         prctl \
18190         pread \
18191         pwrite \
18192         readlink \
18193         rfork \
18194         sched_yield \
18195         select \
18196         sendmsg \
18197         setrlimit \
18198         settimeofday \
18199         sigaltstack \
18200         sigprocmask \
18201         snprintf \
18202         spawnvp \
18203         statfs \
18204         statvfs \
18205         strcasecmp \
18206         strerror \
18207         strncasecmp \
18208         tcgetattr \
18209         timegm \
18210         usleep \
18211         vsnprintf \
18212         wait4 \
18213         waitpid \
18214
18215 do
18216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18220   echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222   cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h.  */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h.  */
18228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18230 #define $ac_func innocuous_$ac_func
18231
18232 /* System header to define __stub macros and hopefully few prototypes,
18233     which can conflict with char $ac_func (); below.
18234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18235     <limits.h> exists even on freestanding compilers.  */
18236
18237 #ifdef __STDC__
18238 # include <limits.h>
18239 #else
18240 # include <assert.h>
18241 #endif
18242
18243 #undef $ac_func
18244
18245 /* Override any GCC internal prototype to avoid an error.
18246    Use char because int might match the return type of a GCC
18247    builtin and then its argument prototype would still apply.  */
18248 #ifdef __cplusplus
18249 extern "C"
18250 #endif
18251 char $ac_func ();
18252 /* The GNU C library defines this for functions which it implements
18253     to always fail with ENOSYS.  Some functions are actually named
18254     something starting with __ and the normal name is an alias.  */
18255 #if defined __stub_$ac_func || defined __stub___$ac_func
18256 choke me
18257 #endif
18258
18259 int
18260 main ()
18261 {
18262 return $ac_func ();
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (ac_try="$ac_link"
18269 case "(($ac_try" in
18270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271   *) ac_try_echo=$ac_try;;
18272 esac
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274   (eval "$ac_link") 2>conftest.er1
18275   ac_status=$?
18276   grep -v '^ *+' conftest.er1 >conftest.err
18277   rm -f conftest.er1
18278   cat conftest.err >&5
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); } &&
18281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18282   { (case "(($ac_try" in
18283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284   *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287   (eval "$ac_try") 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }; } &&
18291          { ac_try='test -s conftest$ac_exeext'
18292   { (case "(($ac_try" in
18293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294   *) ac_try_echo=$ac_try;;
18295 esac
18296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18297   (eval "$ac_try") 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); }; }; then
18301   eval "$as_ac_var=yes"
18302 else
18303   echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306         eval "$as_ac_var=no"
18307 fi
18308
18309 rm -f core conftest.err conftest.$ac_objext \
18310       conftest$ac_exeext conftest.$ac_ext
18311 fi
18312 ac_res=`eval echo '${'$as_ac_var'}'`
18313                { echo "$as_me:$LINENO: result: $ac_res" >&5
18314 echo "${ECHO_T}$ac_res" >&6; }
18315 if test `eval echo '${'$as_ac_var'}'` = yes; then
18316   cat >>confdefs.h <<_ACEOF
18317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18318 _ACEOF
18319
18320 fi
18321 done
18322
18323
18324 if test "$ac_cv_func_dlopen" = no
18325 then
18326     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18327 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   ac_check_lib_save_LIBS=$LIBS
18332 LIBS="-ldl  $LIBS"
18333 cat >conftest.$ac_ext <<_ACEOF
18334 /* confdefs.h.  */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h.  */
18339
18340 /* Override any GCC internal prototype to avoid an error.
18341    Use char because int might match the return type of a GCC
18342    builtin and then its argument prototype would still apply.  */
18343 #ifdef __cplusplus
18344 extern "C"
18345 #endif
18346 char dlopen ();
18347 int
18348 main ()
18349 {
18350 return dlopen ();
18351   ;
18352   return 0;
18353 }
18354 _ACEOF
18355 rm -f conftest.$ac_objext conftest$ac_exeext
18356 if { (ac_try="$ac_link"
18357 case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_link") 2>conftest.er1
18363   ac_status=$?
18364   grep -v '^ *+' conftest.er1 >conftest.err
18365   rm -f conftest.er1
18366   cat conftest.err >&5
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); } &&
18369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370   { (case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_try") 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; } &&
18379          { ac_try='test -s conftest$ac_exeext'
18380   { (case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385   (eval "$ac_try") 2>&5
18386   ac_status=$?
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); }; }; then
18389   ac_cv_lib_dl_dlopen=yes
18390 else
18391   echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394         ac_cv_lib_dl_dlopen=no
18395 fi
18396
18397 rm -f core conftest.err conftest.$ac_objext \
18398       conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18400 fi
18401 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18402 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18403 if test $ac_cv_lib_dl_dlopen = yes; then
18404   cat >>confdefs.h <<\_ACEOF
18405 #define HAVE_DLOPEN 1
18406 _ACEOF
18407  LIBDL="-ldl"
18408
18409 fi
18410
18411 fi
18412 ac_wine_check_funcs_save_LIBS="$LIBS"
18413 LIBS="$LIBS $LIBDL"
18414
18415 for ac_func in dladdr
18416 do
18417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18431 #define $ac_func innocuous_$ac_func
18432
18433 /* System header to define __stub macros and hopefully few prototypes,
18434     which can conflict with char $ac_func (); below.
18435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18436     <limits.h> exists even on freestanding compilers.  */
18437
18438 #ifdef __STDC__
18439 # include <limits.h>
18440 #else
18441 # include <assert.h>
18442 #endif
18443
18444 #undef $ac_func
18445
18446 /* Override any GCC internal prototype to avoid an error.
18447    Use char because int might match the return type of a GCC
18448    builtin and then its argument prototype would still apply.  */
18449 #ifdef __cplusplus
18450 extern "C"
18451 #endif
18452 char $ac_func ();
18453 /* The GNU C library defines this for functions which it implements
18454     to always fail with ENOSYS.  Some functions are actually named
18455     something starting with __ and the normal name is an alias.  */
18456 #if defined __stub_$ac_func || defined __stub___$ac_func
18457 choke me
18458 #endif
18459
18460 int
18461 main ()
18462 {
18463 return $ac_func ();
18464   ;
18465   return 0;
18466 }
18467 _ACEOF
18468 rm -f conftest.$ac_objext conftest$ac_exeext
18469 if { (ac_try="$ac_link"
18470 case "(($ac_try" in
18471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472   *) ac_try_echo=$ac_try;;
18473 esac
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475   (eval "$ac_link") 2>conftest.er1
18476   ac_status=$?
18477   grep -v '^ *+' conftest.er1 >conftest.err
18478   rm -f conftest.er1
18479   cat conftest.err >&5
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); } &&
18482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18483   { (case "(($ac_try" in
18484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485   *) ac_try_echo=$ac_try;;
18486 esac
18487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18488   (eval "$ac_try") 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; } &&
18492          { ac_try='test -s conftest$ac_exeext'
18493   { (case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498   (eval "$ac_try") 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; }; then
18502   eval "$as_ac_var=yes"
18503 else
18504   echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507         eval "$as_ac_var=no"
18508 fi
18509
18510 rm -f core conftest.err conftest.$ac_objext \
18511       conftest$ac_exeext conftest.$ac_ext
18512 fi
18513 ac_res=`eval echo '${'$as_ac_var'}'`
18514                { echo "$as_me:$LINENO: result: $ac_res" >&5
18515 echo "${ECHO_T}$ac_res" >&6; }
18516 if test `eval echo '${'$as_ac_var'}'` = yes; then
18517   cat >>confdefs.h <<_ACEOF
18518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18519 _ACEOF
18520
18521 fi
18522 done
18523
18524 LIBS="$ac_wine_check_funcs_save_LIBS"
18525
18526 if test "$ac_cv_func_poll" = no
18527 then
18528     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
18529 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
18530 if test "${ac_cv_lib_poll_poll+set}" = set; then
18531   echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533   ac_check_lib_save_LIBS=$LIBS
18534 LIBS="-lpoll  $LIBS"
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h.  */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h.  */
18541
18542 /* Override any GCC internal prototype to avoid an error.
18543    Use char because int might match the return type of a GCC
18544    builtin and then its argument prototype would still apply.  */
18545 #ifdef __cplusplus
18546 extern "C"
18547 #endif
18548 char poll ();
18549 int
18550 main ()
18551 {
18552 return poll ();
18553   ;
18554   return 0;
18555 }
18556 _ACEOF
18557 rm -f conftest.$ac_objext conftest$ac_exeext
18558 if { (ac_try="$ac_link"
18559 case "(($ac_try" in
18560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561   *) ac_try_echo=$ac_try;;
18562 esac
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564   (eval "$ac_link") 2>conftest.er1
18565   ac_status=$?
18566   grep -v '^ *+' conftest.er1 >conftest.err
18567   rm -f conftest.er1
18568   cat conftest.err >&5
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); } &&
18571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572   { (case "(($ac_try" in
18573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574   *) ac_try_echo=$ac_try;;
18575 esac
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577   (eval "$ac_try") 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; } &&
18581          { ac_try='test -s conftest$ac_exeext'
18582   { (case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_try") 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; }; then
18591   ac_cv_lib_poll_poll=yes
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596         ac_cv_lib_poll_poll=no
18597 fi
18598
18599 rm -f core conftest.err conftest.$ac_objext \
18600       conftest$ac_exeext conftest.$ac_ext
18601 LIBS=$ac_check_lib_save_LIBS
18602 fi
18603 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18604 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
18605 if test $ac_cv_lib_poll_poll = yes; then
18606   cat >>confdefs.h <<\_ACEOF
18607 #define HAVE_POLL 1
18608 _ACEOF
18609  LIBPOLL="-lpoll"
18610
18611 fi
18612
18613 fi
18614
18615 if test "$ac_cv_func_gethostbyname" = no
18616 then
18617
18618 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18619 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18621   echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623   ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-lnsl  $LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631
18632 /* Override any GCC internal prototype to avoid an error.
18633    Use char because int might match the return type of a GCC
18634    builtin and then its argument prototype would still apply.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 char gethostbyname ();
18639 int
18640 main ()
18641 {
18642 return gethostbyname ();
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_link") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } &&
18661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662   { (case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_try") 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; } &&
18671          { ac_try='test -s conftest$ac_exeext'
18672   { (case "(($ac_try" in
18673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674   *) ac_try_echo=$ac_try;;
18675 esac
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677   (eval "$ac_try") 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; }; then
18681   ac_cv_lib_nsl_gethostbyname=yes
18682 else
18683   echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686         ac_cv_lib_nsl_gethostbyname=no
18687 fi
18688
18689 rm -f core conftest.err conftest.$ac_objext \
18690       conftest$ac_exeext conftest.$ac_ext
18691 LIBS=$ac_check_lib_save_LIBS
18692 fi
18693 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18694 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18695 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18696   cat >>confdefs.h <<_ACEOF
18697 #define HAVE_LIBNSL 1
18698 _ACEOF
18699
18700   LIBS="-lnsl $LIBS"
18701
18702 fi
18703
18704 fi
18705
18706 if test "$ac_cv_func_connect" = no
18707 then
18708
18709 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18710 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
18711 if test "${ac_cv_lib_socket_connect+set}" = set; then
18712   echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714   ac_check_lib_save_LIBS=$LIBS
18715 LIBS="-lsocket  $LIBS"
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722
18723 /* Override any GCC internal prototype to avoid an error.
18724    Use char because int might match the return type of a GCC
18725    builtin and then its argument prototype would still apply.  */
18726 #ifdef __cplusplus
18727 extern "C"
18728 #endif
18729 char connect ();
18730 int
18731 main ()
18732 {
18733 return connect ();
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_link") 2>conftest.er1
18746   ac_status=$?
18747   grep -v '^ *+' conftest.er1 >conftest.err
18748   rm -f conftest.er1
18749   cat conftest.err >&5
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); } &&
18752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18753   { (case "(($ac_try" in
18754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755   *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758   (eval "$ac_try") 2>&5
18759   ac_status=$?
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); }; } &&
18762          { ac_try='test -s conftest$ac_exeext'
18763   { (case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_try") 2>&5
18769   ac_status=$?
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); }; }; then
18772   ac_cv_lib_socket_connect=yes
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777         ac_cv_lib_socket_connect=no
18778 fi
18779
18780 rm -f core conftest.err conftest.$ac_objext \
18781       conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18783 fi
18784 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18785 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
18786 if test $ac_cv_lib_socket_connect = yes; then
18787   cat >>confdefs.h <<_ACEOF
18788 #define HAVE_LIBSOCKET 1
18789 _ACEOF
18790
18791   LIBS="-lsocket $LIBS"
18792
18793 fi
18794
18795 fi
18796
18797 if test "$ac_cv_func_inet_aton" = no
18798 then
18799
18800 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18801 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18802 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   ac_check_lib_save_LIBS=$LIBS
18806 LIBS="-lresolv  $LIBS"
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813
18814 /* Override any GCC internal prototype to avoid an error.
18815    Use char because int might match the return type of a GCC
18816    builtin and then its argument prototype would still apply.  */
18817 #ifdef __cplusplus
18818 extern "C"
18819 #endif
18820 char inet_aton ();
18821 int
18822 main ()
18823 {
18824 return inet_aton ();
18825   ;
18826   return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833   *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836   (eval "$ac_link") 2>conftest.er1
18837   ac_status=$?
18838   grep -v '^ *+' conftest.er1 >conftest.err
18839   rm -f conftest.er1
18840   cat conftest.err >&5
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); } &&
18843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18844   { (case "(($ac_try" in
18845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846   *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849   (eval "$ac_try") 2>&5
18850   ac_status=$?
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); }; } &&
18853          { ac_try='test -s conftest$ac_exeext'
18854   { (case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_try") 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; }; then
18863   ac_cv_lib_resolv_inet_aton=yes
18864 else
18865   echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868         ac_cv_lib_resolv_inet_aton=no
18869 fi
18870
18871 rm -f core conftest.err conftest.$ac_objext \
18872       conftest$ac_exeext conftest.$ac_ext
18873 LIBS=$ac_check_lib_save_LIBS
18874 fi
18875 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18876 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18877 if test $ac_cv_lib_resolv_inet_aton = yes; then
18878   cat >>confdefs.h <<_ACEOF
18879 #define HAVE_LIBRESOLV 1
18880 _ACEOF
18881
18882   LIBS="-lresolv $LIBS"
18883
18884 fi
18885
18886 fi
18887
18888
18889 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18890 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18891 if test "${ac_cv_c_const+set}" = set; then
18892   echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894   cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h.  */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h.  */
18900
18901 int
18902 main ()
18903 {
18904 /* FIXME: Include the comments suggested by Paul. */
18905 #ifndef __cplusplus
18906   /* Ultrix mips cc rejects this.  */
18907   typedef int charset[2];
18908   const charset x;
18909   /* SunOS 4.1.1 cc rejects this.  */
18910   char const *const *ccp;
18911   char **p;
18912   /* NEC SVR4.0.2 mips cc rejects this.  */
18913   struct point {int x, y;};
18914   static struct point const zero = {0,0};
18915   /* AIX XL C 1.02.0.0 rejects this.
18916      It does not let you subtract one const X* pointer from another in
18917      an arm of an if-expression whose if-part is not a constant
18918      expression */
18919   const char *g = "string";
18920   ccp = &g + (g ? g-g : 0);
18921   /* HPUX 7.0 cc rejects these. */
18922   ++ccp;
18923   p = (char**) ccp;
18924   ccp = (char const *const *) p;
18925   { /* SCO 3.2v4 cc rejects this.  */
18926     char *t;
18927     char const *s = 0 ? (char *) 0 : (char const *) 0;
18928
18929     *t++ = 0;
18930     if (s) return 0;
18931   }
18932   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18933     int x[] = {25, 17};
18934     const int *foo = &x[0];
18935     ++foo;
18936   }
18937   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18938     typedef const int *iptr;
18939     iptr p = 0;
18940     ++p;
18941   }
18942   { /* AIX XL C 1.02.0.0 rejects this saying
18943        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18944     struct s { int j; const int *ap[3]; };
18945     struct s *b; b->j = 5;
18946   }
18947   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18948     const int foo = 10;
18949     if (!foo) return 0;
18950   }
18951   return !x[0] && !zero.x;
18952 #endif
18953
18954   ;
18955   return 0;
18956 }
18957 _ACEOF
18958 rm -f conftest.$ac_objext
18959 if { (ac_try="$ac_compile"
18960 case "(($ac_try" in
18961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962   *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965   (eval "$ac_compile") 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } &&
18972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18973   { (case "(($ac_try" in
18974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975   *) ac_try_echo=$ac_try;;
18976 esac
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978   (eval "$ac_try") 2>&5
18979   ac_status=$?
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; } &&
18982          { ac_try='test -s conftest.$ac_objext'
18983   { (case "(($ac_try" in
18984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985   *) ac_try_echo=$ac_try;;
18986 esac
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988   (eval "$ac_try") 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }; }; then
18992   ac_cv_c_const=yes
18993 else
18994   echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997         ac_cv_c_const=no
18998 fi
18999
19000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 fi
19002 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19003 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19004 if test $ac_cv_c_const = no; then
19005
19006 cat >>confdefs.h <<\_ACEOF
19007 #define const
19008 _ACEOF
19009
19010 fi
19011
19012 { echo "$as_me:$LINENO: checking for inline" >&5
19013 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19014 if test "${ac_cv_c_inline+set}" = set; then
19015   echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017   ac_cv_c_inline=no
19018 for ac_kw in inline __inline__ __inline; do
19019   cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025 #ifndef __cplusplus
19026 typedef int foo_t;
19027 static $ac_kw foo_t static_foo () {return 0; }
19028 $ac_kw foo_t foo () {return 0; }
19029 #endif
19030
19031 _ACEOF
19032 rm -f conftest.$ac_objext
19033 if { (ac_try="$ac_compile"
19034 case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_compile") 2>conftest.er1
19040   ac_status=$?
19041   grep -v '^ *+' conftest.er1 >conftest.err
19042   rm -f conftest.er1
19043   cat conftest.err >&5
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); } &&
19046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19047   { (case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_try") 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; } &&
19056          { ac_try='test -s conftest.$ac_objext'
19057   { (case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062   (eval "$ac_try") 2>&5
19063   ac_status=$?
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); }; }; then
19066   ac_cv_c_inline=$ac_kw
19067 else
19068   echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071
19072 fi
19073
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075   test "$ac_cv_c_inline" != no && break
19076 done
19077
19078 fi
19079 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19080 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19081
19082
19083 case $ac_cv_c_inline in
19084   inline | yes) ;;
19085   *)
19086     case $ac_cv_c_inline in
19087       no) ac_val=;;
19088       *) ac_val=$ac_cv_c_inline;;
19089     esac
19090     cat >>confdefs.h <<_ACEOF
19091 #ifndef __cplusplus
19092 #define inline $ac_val
19093 #endif
19094 _ACEOF
19095     ;;
19096 esac
19097
19098 { echo "$as_me:$LINENO: checking for mode_t" >&5
19099 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19100 if test "${ac_cv_type_mode_t+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103   cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h.  */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h.  */
19109 $ac_includes_default
19110 typedef mode_t ac__type_new_;
19111 int
19112 main ()
19113 {
19114 if ((ac__type_new_ *) 0)
19115   return 0;
19116 if (sizeof (ac__type_new_))
19117   return 0;
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest.$ac_objext
19123 if { (ac_try="$ac_compile"
19124 case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129   (eval "$ac_compile") 2>conftest.er1
19130   ac_status=$?
19131   grep -v '^ *+' conftest.er1 >conftest.err
19132   rm -f conftest.er1
19133   cat conftest.err >&5
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); } &&
19136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19137   { (case "(($ac_try" in
19138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139   *) ac_try_echo=$ac_try;;
19140 esac
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142   (eval "$ac_try") 2>&5
19143   ac_status=$?
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); }; } &&
19146          { ac_try='test -s conftest.$ac_objext'
19147   { (case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152   (eval "$ac_try") 2>&5
19153   ac_status=$?
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); }; }; then
19156   ac_cv_type_mode_t=yes
19157 else
19158   echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161         ac_cv_type_mode_t=no
19162 fi
19163
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165 fi
19166 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19167 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19168 if test $ac_cv_type_mode_t = yes; then
19169
19170 cat >>confdefs.h <<_ACEOF
19171 #define HAVE_MODE_T 1
19172 _ACEOF
19173
19174
19175 fi
19176 { echo "$as_me:$LINENO: checking for off_t" >&5
19177 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19178 if test "${ac_cv_type_off_t+set}" = set; then
19179   echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181   cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 $ac_includes_default
19188 typedef off_t ac__type_new_;
19189 int
19190 main ()
19191 {
19192 if ((ac__type_new_ *) 0)
19193   return 0;
19194 if (sizeof (ac__type_new_))
19195   return 0;
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest.$ac_objext
19201 if { (ac_try="$ac_compile"
19202 case "(($ac_try" in
19203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204   *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207   (eval "$ac_compile") 2>conftest.er1
19208   ac_status=$?
19209   grep -v '^ *+' conftest.er1 >conftest.err
19210   rm -f conftest.er1
19211   cat conftest.err >&5
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } &&
19214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19215   { (case "(($ac_try" in
19216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217   *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220   (eval "$ac_try") 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; } &&
19224          { ac_try='test -s conftest.$ac_objext'
19225   { (case "(($ac_try" in
19226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227   *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230   (eval "$ac_try") 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); }; }; then
19234   ac_cv_type_off_t=yes
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239         ac_cv_type_off_t=no
19240 fi
19241
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243 fi
19244 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19245 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19246 if test $ac_cv_type_off_t = yes; then
19247
19248 cat >>confdefs.h <<_ACEOF
19249 #define HAVE_OFF_T 1
19250 _ACEOF
19251
19252
19253 fi
19254 { echo "$as_me:$LINENO: checking for pid_t" >&5
19255 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19256 if test "${ac_cv_type_pid_t+set}" = set; then
19257   echo $ECHO_N "(cached) $ECHO_C" >&6
19258 else
19259   cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265 $ac_includes_default
19266 typedef pid_t ac__type_new_;
19267 int
19268 main ()
19269 {
19270 if ((ac__type_new_ *) 0)
19271   return 0;
19272 if (sizeof (ac__type_new_))
19273   return 0;
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext
19279 if { (ac_try="$ac_compile"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_compile") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest.$ac_objext'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_type_pid_t=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_type_pid_t=no
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321 fi
19322 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19323 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19324 if test $ac_cv_type_pid_t = yes; then
19325
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_PID_T 1
19328 _ACEOF
19329
19330
19331 fi
19332 { echo "$as_me:$LINENO: checking for size_t" >&5
19333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19334 if test "${ac_cv_type_size_t+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343 $ac_includes_default
19344 typedef size_t ac__type_new_;
19345 int
19346 main ()
19347 {
19348 if ((ac__type_new_ *) 0)
19349   return 0;
19350 if (sizeof (ac__type_new_))
19351   return 0;
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (ac_try="$ac_compile"
19358 case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363   (eval "$ac_compile") 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } &&
19370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19371   { (case "(($ac_try" in
19372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373   *) ac_try_echo=$ac_try;;
19374 esac
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376   (eval "$ac_try") 2>&5
19377   ac_status=$?
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); }; } &&
19380          { ac_try='test -s conftest.$ac_objext'
19381   { (case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386   (eval "$ac_try") 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ac_cv_type_size_t=yes
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395         ac_cv_type_size_t=no
19396 fi
19397
19398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19399 fi
19400 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19401 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19402 if test $ac_cv_type_size_t = yes; then
19403
19404 cat >>confdefs.h <<_ACEOF
19405 #define HAVE_SIZE_T 1
19406 _ACEOF
19407
19408
19409 fi
19410 { echo "$as_me:$LINENO: checking for ssize_t" >&5
19411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
19412 if test "${ac_cv_type_ssize_t+set}" = set; then
19413   echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415   cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421 $ac_includes_default
19422 typedef ssize_t ac__type_new_;
19423 int
19424 main ()
19425 {
19426 if ((ac__type_new_ *) 0)
19427   return 0;
19428 if (sizeof (ac__type_new_))
19429   return 0;
19430   ;
19431   return 0;
19432 }
19433 _ACEOF
19434 rm -f conftest.$ac_objext
19435 if { (ac_try="$ac_compile"
19436 case "(($ac_try" in
19437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438   *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441   (eval "$ac_compile") 2>conftest.er1
19442   ac_status=$?
19443   grep -v '^ *+' conftest.er1 >conftest.err
19444   rm -f conftest.er1
19445   cat conftest.err >&5
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); } &&
19448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19449   { (case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_try") 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; } &&
19458          { ac_try='test -s conftest.$ac_objext'
19459   { (case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464   (eval "$ac_try") 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; }; then
19468   ac_cv_type_ssize_t=yes
19469 else
19470   echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473         ac_cv_type_ssize_t=no
19474 fi
19475
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 fi
19478 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19479 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
19480 if test $ac_cv_type_ssize_t = yes; then
19481
19482 cat >>confdefs.h <<_ACEOF
19483 #define HAVE_SSIZE_T 1
19484 _ACEOF
19485
19486
19487 fi
19488 { echo "$as_me:$LINENO: checking for long long" >&5
19489 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19490 if test "${ac_cv_type_long_long+set}" = set; then
19491   echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493   cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h.  */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h.  */
19499 $ac_includes_default
19500 typedef long long ac__type_new_;
19501 int
19502 main ()
19503 {
19504 if ((ac__type_new_ *) 0)
19505   return 0;
19506 if (sizeof (ac__type_new_))
19507   return 0;
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext
19513 if { (ac_try="$ac_compile"
19514 case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519   (eval "$ac_compile") 2>conftest.er1
19520   ac_status=$?
19521   grep -v '^ *+' conftest.er1 >conftest.err
19522   rm -f conftest.er1
19523   cat conftest.err >&5
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } &&
19526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527   { (case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_try") 2>&5
19533   ac_status=$?
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); }; } &&
19536          { ac_try='test -s conftest.$ac_objext'
19537   { (case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542   (eval "$ac_try") 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); }; }; then
19546   ac_cv_type_long_long=yes
19547 else
19548   echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551         ac_cv_type_long_long=no
19552 fi
19553
19554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19555 fi
19556 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19557 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19558 if test $ac_cv_type_long_long = yes; then
19559
19560 cat >>confdefs.h <<_ACEOF
19561 #define HAVE_LONG_LONG 1
19562 _ACEOF
19563
19564
19565 fi
19566 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
19567 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
19568 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571   cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h.  */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h.  */
19577 $ac_includes_default
19578 typedef fsblkcnt_t ac__type_new_;
19579 int
19580 main ()
19581 {
19582 if ((ac__type_new_ *) 0)
19583   return 0;
19584 if (sizeof (ac__type_new_))
19585   return 0;
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (ac_try="$ac_compile"
19592 case "(($ac_try" in
19593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594   *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597   (eval "$ac_compile") 2>conftest.er1
19598   ac_status=$?
19599   grep -v '^ *+' conftest.er1 >conftest.err
19600   rm -f conftest.er1
19601   cat conftest.err >&5
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } &&
19604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19605   { (case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_try") 2>&5
19611   ac_status=$?
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); }; } &&
19614          { ac_try='test -s conftest.$ac_objext'
19615   { (case "(($ac_try" in
19616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617   *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620   (eval "$ac_try") 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; }; then
19624   ac_cv_type_fsblkcnt_t=yes
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629         ac_cv_type_fsblkcnt_t=no
19630 fi
19631
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19633 fi
19634 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
19635 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
19636 if test $ac_cv_type_fsblkcnt_t = yes; then
19637
19638 cat >>confdefs.h <<_ACEOF
19639 #define HAVE_FSBLKCNT_T 1
19640 _ACEOF
19641
19642
19643 fi
19644 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
19645 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
19646 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655 $ac_includes_default
19656 typedef fsfilcnt_t ac__type_new_;
19657 int
19658 main ()
19659 {
19660 if ((ac__type_new_ *) 0)
19661   return 0;
19662 if (sizeof (ac__type_new_))
19663   return 0;
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext
19669 if { (ac_try="$ac_compile"
19670 case "(($ac_try" in
19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672   *) ac_try_echo=$ac_try;;
19673 esac
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675   (eval "$ac_compile") 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } &&
19682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19683   { (case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_try") 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; } &&
19692          { ac_try='test -s conftest.$ac_objext'
19693   { (case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_try") 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; }; then
19702   ac_cv_type_fsfilcnt_t=yes
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19706
19707         ac_cv_type_fsfilcnt_t=no
19708 fi
19709
19710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19711 fi
19712 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
19713 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
19714 if test $ac_cv_type_fsfilcnt_t = yes; then
19715
19716 cat >>confdefs.h <<_ACEOF
19717 #define HAVE_FSFILCNT_T 1
19718 _ACEOF
19719
19720
19721 fi
19722
19723 { echo "$as_me:$LINENO: checking for sigset_t" >&5
19724 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
19725 if test "${ac_cv_type_sigset_t+set}" = set; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728   cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734 #include <signal.h>
19735
19736 typedef sigset_t ac__type_new_;
19737 int
19738 main ()
19739 {
19740 if ((ac__type_new_ *) 0)
19741   return 0;
19742 if (sizeof (ac__type_new_))
19743   return 0;
19744   ;
19745   return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext
19749 if { (ac_try="$ac_compile"
19750 case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_compile") 2>conftest.er1
19756   ac_status=$?
19757   grep -v '^ *+' conftest.er1 >conftest.err
19758   rm -f conftest.er1
19759   cat conftest.err >&5
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } &&
19762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763   { (case "(($ac_try" in
19764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765   *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768   (eval "$ac_try") 2>&5
19769   ac_status=$?
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); }; } &&
19772          { ac_try='test -s conftest.$ac_objext'
19773   { (case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_try") 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; }; then
19782   ac_cv_type_sigset_t=yes
19783 else
19784   echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787         ac_cv_type_sigset_t=no
19788 fi
19789
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 fi
19792 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
19793 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
19794 if test $ac_cv_type_sigset_t = yes; then
19795
19796 cat >>confdefs.h <<_ACEOF
19797 #define HAVE_SIGSET_T 1
19798 _ACEOF
19799
19800
19801 fi
19802
19803 { echo "$as_me:$LINENO: checking for request_sense" >&5
19804 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
19805 if test "${ac_cv_type_request_sense+set}" = set; then
19806   echo $ECHO_N "(cached) $ECHO_C" >&6
19807 else
19808   cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h.  */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h.  */
19814 #include <linux/cdrom.h>
19815
19816 typedef request_sense ac__type_new_;
19817 int
19818 main ()
19819 {
19820 if ((ac__type_new_ *) 0)
19821   return 0;
19822 if (sizeof (ac__type_new_))
19823   return 0;
19824   ;
19825   return 0;
19826 }
19827 _ACEOF
19828 rm -f conftest.$ac_objext
19829 if { (ac_try="$ac_compile"
19830 case "(($ac_try" in
19831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832   *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835   (eval "$ac_compile") 2>conftest.er1
19836   ac_status=$?
19837   grep -v '^ *+' conftest.er1 >conftest.err
19838   rm -f conftest.er1
19839   cat conftest.err >&5
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); } &&
19842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19843   { (case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_try") 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); }; } &&
19852          { ac_try='test -s conftest.$ac_objext'
19853   { (case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_try") 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; }; then
19862   ac_cv_type_request_sense=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867         ac_cv_type_request_sense=no
19868 fi
19869
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 fi
19872 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
19873 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
19874 if test $ac_cv_type_request_sense = yes; then
19875
19876 cat >>confdefs.h <<_ACEOF
19877 #define HAVE_REQUEST_SENSE 1
19878 _ACEOF
19879
19880
19881 fi
19882
19883
19884 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
19885 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
19886 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
19887   echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889   cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h.  */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h.  */
19895 #ifdef HAVE_LINUX_INPUT_H
19896 #include <linux/input.h>
19897 #endif
19898
19899 int
19900 main ()
19901 {
19902 static struct ff_effect ac_aggr;
19903 if (ac_aggr.direction)
19904 return 0;
19905   ;
19906   return 0;
19907 }
19908 _ACEOF
19909 rm -f conftest.$ac_objext
19910 if { (ac_try="$ac_compile"
19911 case "(($ac_try" in
19912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913   *) ac_try_echo=$ac_try;;
19914 esac
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916   (eval "$ac_compile") 2>conftest.er1
19917   ac_status=$?
19918   grep -v '^ *+' conftest.er1 >conftest.err
19919   rm -f conftest.er1
19920   cat conftest.err >&5
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19924   { (case "(($ac_try" in
19925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926   *) ac_try_echo=$ac_try;;
19927 esac
19928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19929   (eval "$ac_try") 2>&5
19930   ac_status=$?
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); }; } &&
19933          { ac_try='test -s conftest.$ac_objext'
19934   { (case "(($ac_try" in
19935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936   *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939   (eval "$ac_try") 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; }; then
19943   ac_cv_member_struct_ff_effect_direction=yes
19944 else
19945   echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948         cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #ifdef HAVE_LINUX_INPUT_H
19955 #include <linux/input.h>
19956 #endif
19957
19958 int
19959 main ()
19960 {
19961 static struct ff_effect ac_aggr;
19962 if (sizeof ac_aggr.direction)
19963 return 0;
19964   ;
19965   return 0;
19966 }
19967 _ACEOF
19968 rm -f conftest.$ac_objext
19969 if { (ac_try="$ac_compile"
19970 case "(($ac_try" in
19971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972   *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975   (eval "$ac_compile") 2>conftest.er1
19976   ac_status=$?
19977   grep -v '^ *+' conftest.er1 >conftest.err
19978   rm -f conftest.er1
19979   cat conftest.err >&5
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); } &&
19982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19983   { (case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988   (eval "$ac_try") 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; } &&
19992          { ac_try='test -s conftest.$ac_objext'
19993   { (case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_try") 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; }; then
20002   ac_cv_member_struct_ff_effect_direction=yes
20003 else
20004   echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20006
20007         ac_cv_member_struct_ff_effect_direction=no
20008 fi
20009
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011 fi
20012
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 fi
20015 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20016 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20017 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20018
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20021 _ACEOF
20022
20023
20024 fi
20025
20026
20027 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20028 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20029 if test "${wine_cv_have_sigaddset+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h.  */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h.  */
20038 #include <signal.h>
20039 int
20040 main ()
20041 {
20042 sigset_t set; sigaddset(&set,SIGTERM);
20043   ;
20044   return 0;
20045 }
20046 _ACEOF
20047 rm -f conftest.$ac_objext conftest$ac_exeext
20048 if { (ac_try="$ac_link"
20049 case "(($ac_try" in
20050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051   *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054   (eval "$ac_link") 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20062   { (case "(($ac_try" in
20063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064   *) ac_try_echo=$ac_try;;
20065 esac
20066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067   (eval "$ac_try") 2>&5
20068   ac_status=$?
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); }; } &&
20071          { ac_try='test -s conftest$ac_exeext'
20072   { (case "(($ac_try" in
20073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074   *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077   (eval "$ac_try") 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); }; }; then
20081   wine_cv_have_sigaddset=yes
20082 else
20083   echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086         wine_cv_have_sigaddset=no
20087 fi
20088
20089 rm -f core conftest.err conftest.$ac_objext \
20090       conftest$ac_exeext conftest.$ac_ext
20091 fi
20092 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20093 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20094 if test "$wine_cv_have_sigaddset" = "yes"
20095 then
20096
20097 cat >>confdefs.h <<\_ACEOF
20098 #define HAVE_SIGADDSET 1
20099 _ACEOF
20100
20101 fi
20102
20103
20104 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20105 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20106 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   cat >conftest.$ac_ext <<_ACEOF
20110 /* confdefs.h.  */
20111 _ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h.  */
20115
20116 #include <netdb.h>
20117
20118 int
20119 main ()
20120 {
20121
20122     char *name=NULL;
20123     struct hostent he;
20124     struct hostent *result;
20125     char *buf=NULL;
20126     int bufsize=0;
20127     int res,errnr;
20128     char *addr=NULL;
20129     int addrlen=0;
20130     int addrtype=0;
20131     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20132     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20133
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_link") 2>conftest.er1
20146   ac_status=$?
20147   grep -v '^ *+' conftest.er1 >conftest.err
20148   rm -f conftest.er1
20149   cat conftest.err >&5
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); } &&
20152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20153   { (case "(($ac_try" in
20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155   *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158   (eval "$ac_try") 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; } &&
20162          { ac_try='test -s conftest$ac_exeext'
20163   { (case "(($ac_try" in
20164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165   *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168   (eval "$ac_try") 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); }; }; then
20172   wine_cv_linux_gethostbyname_r_6=yes
20173 else
20174   echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177         wine_cv_linux_gethostbyname_r_6=no
20178
20179 fi
20180
20181 rm -f core conftest.err conftest.$ac_objext \
20182       conftest$ac_exeext conftest.$ac_ext
20183
20184 fi
20185 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20186 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20187    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20188    then
20189
20190 cat >>confdefs.h <<\_ACEOF
20191 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20192 _ACEOF
20193
20194    fi
20195
20196 if test "$ac_cv_header_linux_joystick_h" = "yes"
20197 then
20198    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20199 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20200 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20201   echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203   cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209
20210         #include <sys/ioctl.h>
20211         #include <linux/joystick.h>
20212
20213         struct js_event blub;
20214         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20215         #error "no 2.2 header"
20216         #endif
20217
20218 int
20219 main ()
20220 {
20221 /*empty*/
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext
20227 if { (ac_try="$ac_compile"
20228 case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_compile") 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } &&
20240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20241   { (case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_try") 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; } &&
20250          { ac_try='test -s conftest.$ac_objext'
20251   { (case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256   (eval "$ac_try") 2>&5
20257   ac_status=$?
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); }; }; then
20260   wine_cv_linux_joystick_22_api=yes
20261 else
20262   echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20264
20265         wine_cv_linux_joystick_22_api=no
20266 fi
20267
20268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20269
20270 fi
20271 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20272 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20273    if test "$wine_cv_linux_joystick_22_api" = "yes"
20274    then
20275
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_LINUX_22_JOYSTICK_API 1
20278 _ACEOF
20279
20280    fi
20281 fi
20282
20283
20284 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20285 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20286 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295 #include <sys/types.h>
20296 #ifdef HAVE_SYS_PARAM_H
20297 # include <sys/param.h>
20298 #endif
20299 #ifdef HAVE_SYS_MOUNT_H
20300 # include <sys/mount.h>
20301 #endif
20302 #ifdef HAVE_SYS_VFS_H
20303 # include <sys/vfs.h>
20304 #endif
20305 #ifdef HAVE_SYS_STATFS_H
20306 # include <sys/statfs.h>
20307 #endif
20308
20309 int
20310 main ()
20311 {
20312 static struct statfs ac_aggr;
20313 if (ac_aggr.f_bfree)
20314 return 0;
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_compile") 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20334   { (case "(($ac_try" in
20335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336   *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339   (eval "$ac_try") 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; } &&
20343          { ac_try='test -s conftest.$ac_objext'
20344   { (case "(($ac_try" in
20345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346   *) ac_try_echo=$ac_try;;
20347 esac
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349   (eval "$ac_try") 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; }; then
20353   ac_cv_member_struct_statfs_f_bfree=yes
20354 else
20355   echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358         cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364 #include <sys/types.h>
20365 #ifdef HAVE_SYS_PARAM_H
20366 # include <sys/param.h>
20367 #endif
20368 #ifdef HAVE_SYS_MOUNT_H
20369 # include <sys/mount.h>
20370 #endif
20371 #ifdef HAVE_SYS_VFS_H
20372 # include <sys/vfs.h>
20373 #endif
20374 #ifdef HAVE_SYS_STATFS_H
20375 # include <sys/statfs.h>
20376 #endif
20377
20378 int
20379 main ()
20380 {
20381 static struct statfs ac_aggr;
20382 if (sizeof ac_aggr.f_bfree)
20383 return 0;
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392   *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395   (eval "$ac_compile") 2>conftest.er1
20396   ac_status=$?
20397   grep -v '^ *+' conftest.er1 >conftest.err
20398   rm -f conftest.er1
20399   cat conftest.err >&5
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } &&
20402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403   { (case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_try") 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; } &&
20412          { ac_try='test -s conftest.$ac_objext'
20413   { (case "(($ac_try" in
20414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415   *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418   (eval "$ac_try") 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; }; then
20422   ac_cv_member_struct_statfs_f_bfree=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_cv_member_struct_statfs_f_bfree=no
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 fi
20432
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 fi
20435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20436 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
20437 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
20438
20439 cat >>confdefs.h <<_ACEOF
20440 #define HAVE_STRUCT_STATFS_F_BFREE 1
20441 _ACEOF
20442
20443
20444 fi
20445 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20446 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
20447 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
20448   echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450   cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 #include <sys/types.h>
20457 #ifdef HAVE_SYS_PARAM_H
20458 # include <sys/param.h>
20459 #endif
20460 #ifdef HAVE_SYS_MOUNT_H
20461 # include <sys/mount.h>
20462 #endif
20463 #ifdef HAVE_SYS_VFS_H
20464 # include <sys/vfs.h>
20465 #endif
20466 #ifdef HAVE_SYS_STATFS_H
20467 # include <sys/statfs.h>
20468 #endif
20469
20470 int
20471 main ()
20472 {
20473 static struct statfs ac_aggr;
20474 if (ac_aggr.f_bavail)
20475 return 0;
20476   ;
20477   return 0;
20478 }
20479 _ACEOF
20480 rm -f conftest.$ac_objext
20481 if { (ac_try="$ac_compile"
20482 case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_compile") 2>conftest.er1
20488   ac_status=$?
20489   grep -v '^ *+' conftest.er1 >conftest.err
20490   rm -f conftest.er1
20491   cat conftest.err >&5
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); } &&
20494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20495   { (case "(($ac_try" in
20496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497   *) ac_try_echo=$ac_try;;
20498 esac
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500   (eval "$ac_try") 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; } &&
20504          { ac_try='test -s conftest.$ac_objext'
20505   { (case "(($ac_try" in
20506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507   *) ac_try_echo=$ac_try;;
20508 esac
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510   (eval "$ac_try") 2>&5
20511   ac_status=$?
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); }; }; then
20514   ac_cv_member_struct_statfs_f_bavail=yes
20515 else
20516   echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519         cat >conftest.$ac_ext <<_ACEOF
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 #include <sys/types.h>
20526 #ifdef HAVE_SYS_PARAM_H
20527 # include <sys/param.h>
20528 #endif
20529 #ifdef HAVE_SYS_MOUNT_H
20530 # include <sys/mount.h>
20531 #endif
20532 #ifdef HAVE_SYS_VFS_H
20533 # include <sys/vfs.h>
20534 #endif
20535 #ifdef HAVE_SYS_STATFS_H
20536 # include <sys/statfs.h>
20537 #endif
20538
20539 int
20540 main ()
20541 {
20542 static struct statfs ac_aggr;
20543 if (sizeof ac_aggr.f_bavail)
20544 return 0;
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext
20550 if { (ac_try="$ac_compile"
20551 case "(($ac_try" in
20552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553   *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556   (eval "$ac_compile") 2>conftest.er1
20557   ac_status=$?
20558   grep -v '^ *+' conftest.er1 >conftest.err
20559   rm -f conftest.er1
20560   cat conftest.err >&5
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } &&
20563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564   { (case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_try") 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; } &&
20573          { ac_try='test -s conftest.$ac_objext'
20574   { (case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_try") 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   ac_cv_member_struct_statfs_f_bavail=yes
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588         ac_cv_member_struct_statfs_f_bavail=no
20589 fi
20590
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 fi
20596 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
20597 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
20598 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
20602 _ACEOF
20603
20604
20605 fi
20606 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
20607 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
20608 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
20609   echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611   cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h.  */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h.  */
20617 #include <sys/types.h>
20618 #ifdef HAVE_SYS_PARAM_H
20619 # include <sys/param.h>
20620 #endif
20621 #ifdef HAVE_SYS_MOUNT_H
20622 # include <sys/mount.h>
20623 #endif
20624 #ifdef HAVE_SYS_VFS_H
20625 # include <sys/vfs.h>
20626 #endif
20627 #ifdef HAVE_SYS_STATFS_H
20628 # include <sys/statfs.h>
20629 #endif
20630
20631 int
20632 main ()
20633 {
20634 static struct statfs ac_aggr;
20635 if (ac_aggr.f_frsize)
20636 return 0;
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648   (eval "$ac_compile") 2>conftest.er1
20649   ac_status=$?
20650   grep -v '^ *+' conftest.er1 >conftest.err
20651   rm -f conftest.er1
20652   cat conftest.err >&5
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); } &&
20655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20656   { (case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661   (eval "$ac_try") 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; } &&
20665          { ac_try='test -s conftest.$ac_objext'
20666   { (case "(($ac_try" in
20667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668   *) ac_try_echo=$ac_try;;
20669 esac
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671   (eval "$ac_try") 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; }; then
20675   ac_cv_member_struct_statfs_f_frsize=yes
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680         cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 #include <sys/types.h>
20687 #ifdef HAVE_SYS_PARAM_H
20688 # include <sys/param.h>
20689 #endif
20690 #ifdef HAVE_SYS_MOUNT_H
20691 # include <sys/mount.h>
20692 #endif
20693 #ifdef HAVE_SYS_VFS_H
20694 # include <sys/vfs.h>
20695 #endif
20696 #ifdef HAVE_SYS_STATFS_H
20697 # include <sys/statfs.h>
20698 #endif
20699
20700 int
20701 main ()
20702 {
20703 static struct statfs ac_aggr;
20704 if (sizeof ac_aggr.f_frsize)
20705 return 0;
20706   ;
20707   return 0;
20708 }
20709 _ACEOF
20710 rm -f conftest.$ac_objext
20711 if { (ac_try="$ac_compile"
20712 case "(($ac_try" in
20713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714   *) ac_try_echo=$ac_try;;
20715 esac
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717   (eval "$ac_compile") 2>conftest.er1
20718   ac_status=$?
20719   grep -v '^ *+' conftest.er1 >conftest.err
20720   rm -f conftest.er1
20721   cat conftest.err >&5
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); } &&
20724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20725   { (case "(($ac_try" in
20726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727   *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730   (eval "$ac_try") 2>&5
20731   ac_status=$?
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); }; } &&
20734          { ac_try='test -s conftest.$ac_objext'
20735   { (case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_try") 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); }; }; then
20744   ac_cv_member_struct_statfs_f_frsize=yes
20745 else
20746   echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20748
20749         ac_cv_member_struct_statfs_f_frsize=no
20750 fi
20751
20752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 fi
20754
20755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20756 fi
20757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
20758 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
20759 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
20760
20761 cat >>confdefs.h <<_ACEOF
20762 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
20763 _ACEOF
20764
20765
20766 fi
20767 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
20768 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
20769 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
20770   echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772   cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778 #include <sys/types.h>
20779 #ifdef HAVE_SYS_PARAM_H
20780 # include <sys/param.h>
20781 #endif
20782 #ifdef HAVE_SYS_MOUNT_H
20783 # include <sys/mount.h>
20784 #endif
20785 #ifdef HAVE_SYS_VFS_H
20786 # include <sys/vfs.h>
20787 #endif
20788 #ifdef HAVE_SYS_STATFS_H
20789 # include <sys/statfs.h>
20790 #endif
20791
20792 int
20793 main ()
20794 {
20795 static struct statfs ac_aggr;
20796 if (ac_aggr.f_ffree)
20797 return 0;
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (ac_try="$ac_compile"
20804 case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_compile") 2>conftest.er1
20810   ac_status=$?
20811   grep -v '^ *+' conftest.er1 >conftest.err
20812   rm -f conftest.er1
20813   cat conftest.err >&5
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } &&
20816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20817   { (case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_try") 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; } &&
20826          { ac_try='test -s conftest.$ac_objext'
20827   { (case "(($ac_try" in
20828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829   *) ac_try_echo=$ac_try;;
20830 esac
20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832   (eval "$ac_try") 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   ac_cv_member_struct_statfs_f_ffree=yes
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841         cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 #include <sys/types.h>
20848 #ifdef HAVE_SYS_PARAM_H
20849 # include <sys/param.h>
20850 #endif
20851 #ifdef HAVE_SYS_MOUNT_H
20852 # include <sys/mount.h>
20853 #endif
20854 #ifdef HAVE_SYS_VFS_H
20855 # include <sys/vfs.h>
20856 #endif
20857 #ifdef HAVE_SYS_STATFS_H
20858 # include <sys/statfs.h>
20859 #endif
20860
20861 int
20862 main ()
20863 {
20864 static struct statfs ac_aggr;
20865 if (sizeof ac_aggr.f_ffree)
20866 return 0;
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_compile") 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } &&
20885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20886   { (case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_try") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; } &&
20895          { ac_try='test -s conftest.$ac_objext'
20896   { (case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_try") 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); }; }; then
20905   ac_cv_member_struct_statfs_f_ffree=yes
20906 else
20907   echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910         ac_cv_member_struct_statfs_f_ffree=no
20911 fi
20912
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914 fi
20915
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 fi
20918 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
20919 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
20920 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define HAVE_STRUCT_STATFS_F_FFREE 1
20924 _ACEOF
20925
20926
20927 fi
20928 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
20929 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
20930 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933   cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h.  */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h.  */
20939 #include <sys/types.h>
20940 #ifdef HAVE_SYS_PARAM_H
20941 # include <sys/param.h>
20942 #endif
20943 #ifdef HAVE_SYS_MOUNT_H
20944 # include <sys/mount.h>
20945 #endif
20946 #ifdef HAVE_SYS_VFS_H
20947 # include <sys/vfs.h>
20948 #endif
20949 #ifdef HAVE_SYS_STATFS_H
20950 # include <sys/statfs.h>
20951 #endif
20952
20953 int
20954 main ()
20955 {
20956 static struct statfs ac_aggr;
20957 if (ac_aggr.f_favail)
20958 return 0;
20959   ;
20960   return 0;
20961 }
20962 _ACEOF
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967   *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970   (eval "$ac_compile") 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20978   { (case "(($ac_try" in
20979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980   *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983   (eval "$ac_try") 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; } &&
20987          { ac_try='test -s conftest.$ac_objext'
20988   { (case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_try") 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ac_cv_member_struct_statfs_f_favail=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002         cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 #include <sys/types.h>
21009 #ifdef HAVE_SYS_PARAM_H
21010 # include <sys/param.h>
21011 #endif
21012 #ifdef HAVE_SYS_MOUNT_H
21013 # include <sys/mount.h>
21014 #endif
21015 #ifdef HAVE_SYS_VFS_H
21016 # include <sys/vfs.h>
21017 #endif
21018 #ifdef HAVE_SYS_STATFS_H
21019 # include <sys/statfs.h>
21020 #endif
21021
21022 int
21023 main ()
21024 {
21025 static struct statfs ac_aggr;
21026 if (sizeof ac_aggr.f_favail)
21027 return 0;
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest.$ac_objext
21033 if { (ac_try="$ac_compile"
21034 case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_compile") 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } &&
21046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21047   { (case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_try") 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); }; } &&
21056          { ac_try='test -s conftest.$ac_objext'
21057   { (case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062   (eval "$ac_try") 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; }; then
21066   ac_cv_member_struct_statfs_f_favail=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071         ac_cv_member_struct_statfs_f_favail=no
21072 fi
21073
21074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21075 fi
21076
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078 fi
21079 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21080 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21081 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21082
21083 cat >>confdefs.h <<_ACEOF
21084 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21085 _ACEOF
21086
21087
21088 fi
21089 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21090 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21091 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21092   echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094   cat >conftest.$ac_ext <<_ACEOF
21095 /* confdefs.h.  */
21096 _ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h.  */
21100 #include <sys/types.h>
21101 #ifdef HAVE_SYS_PARAM_H
21102 # include <sys/param.h>
21103 #endif
21104 #ifdef HAVE_SYS_MOUNT_H
21105 # include <sys/mount.h>
21106 #endif
21107 #ifdef HAVE_SYS_VFS_H
21108 # include <sys/vfs.h>
21109 #endif
21110 #ifdef HAVE_SYS_STATFS_H
21111 # include <sys/statfs.h>
21112 #endif
21113
21114 int
21115 main ()
21116 {
21117 static struct statfs ac_aggr;
21118 if (ac_aggr.f_namelen)
21119 return 0;
21120   ;
21121   return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_compile") 2>conftest.er1
21132   ac_status=$?
21133   grep -v '^ *+' conftest.er1 >conftest.err
21134   rm -f conftest.er1
21135   cat conftest.err >&5
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } &&
21138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21139   { (case "(($ac_try" in
21140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141   *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144   (eval "$ac_try") 2>&5
21145   ac_status=$?
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); }; } &&
21148          { ac_try='test -s conftest.$ac_objext'
21149   { (case "(($ac_try" in
21150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151   *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154   (eval "$ac_try") 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); }; }; then
21158   ac_cv_member_struct_statfs_f_namelen=yes
21159 else
21160   echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21162
21163         cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169 #include <sys/types.h>
21170 #ifdef HAVE_SYS_PARAM_H
21171 # include <sys/param.h>
21172 #endif
21173 #ifdef HAVE_SYS_MOUNT_H
21174 # include <sys/mount.h>
21175 #endif
21176 #ifdef HAVE_SYS_VFS_H
21177 # include <sys/vfs.h>
21178 #endif
21179 #ifdef HAVE_SYS_STATFS_H
21180 # include <sys/statfs.h>
21181 #endif
21182
21183 int
21184 main ()
21185 {
21186 static struct statfs ac_aggr;
21187 if (sizeof ac_aggr.f_namelen)
21188 return 0;
21189   ;
21190   return 0;
21191 }
21192 _ACEOF
21193 rm -f conftest.$ac_objext
21194 if { (ac_try="$ac_compile"
21195 case "(($ac_try" in
21196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197   *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200   (eval "$ac_compile") 2>conftest.er1
21201   ac_status=$?
21202   grep -v '^ *+' conftest.er1 >conftest.err
21203   rm -f conftest.er1
21204   cat conftest.err >&5
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); } &&
21207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21208   { (case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_try") 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; } &&
21217          { ac_try='test -s conftest.$ac_objext'
21218   { (case "(($ac_try" in
21219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220   *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223   (eval "$ac_try") 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); }; }; then
21227   ac_cv_member_struct_statfs_f_namelen=yes
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232         ac_cv_member_struct_statfs_f_namelen=no
21233 fi
21234
21235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21236 fi
21237
21238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239 fi
21240 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21241 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21242 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21243
21244 cat >>confdefs.h <<_ACEOF
21245 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21246 _ACEOF
21247
21248
21249 fi
21250
21251
21252 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21253 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21254 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21255   echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257   cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h.  */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h.  */
21263 #ifdef HAVE_SYS_STATVFS_H
21264 #include <sys/statvfs.h>
21265 #endif
21266
21267 int
21268 main ()
21269 {
21270 static struct statvfs ac_aggr;
21271 if (ac_aggr.f_blocks)
21272 return 0;
21273   ;
21274   return 0;
21275 }
21276 _ACEOF
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_compile") 2>conftest.er1
21285   ac_status=$?
21286   grep -v '^ *+' conftest.er1 >conftest.err
21287   rm -f conftest.er1
21288   cat conftest.err >&5
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); } &&
21291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21292   { (case "(($ac_try" in
21293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294   *) ac_try_echo=$ac_try;;
21295 esac
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297   (eval "$ac_try") 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; } &&
21301          { ac_try='test -s conftest.$ac_objext'
21302   { (case "(($ac_try" in
21303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304   *) ac_try_echo=$ac_try;;
21305 esac
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307   (eval "$ac_try") 2>&5
21308   ac_status=$?
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); }; }; then
21311   ac_cv_member_struct_statvfs_f_blocks=yes
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316         cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 #ifdef HAVE_SYS_STATVFS_H
21323 #include <sys/statvfs.h>
21324 #endif
21325
21326 int
21327 main ()
21328 {
21329 static struct statvfs ac_aggr;
21330 if (sizeof ac_aggr.f_blocks)
21331 return 0;
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 rm -f conftest.$ac_objext
21337 if { (ac_try="$ac_compile"
21338 case "(($ac_try" in
21339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340   *) ac_try_echo=$ac_try;;
21341 esac
21342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21343   (eval "$ac_compile") 2>conftest.er1
21344   ac_status=$?
21345   grep -v '^ *+' conftest.er1 >conftest.err
21346   rm -f conftest.er1
21347   cat conftest.err >&5
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); } &&
21350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21351   { (case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356   (eval "$ac_try") 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); }; } &&
21360          { ac_try='test -s conftest.$ac_objext'
21361   { (case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_try") 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; }; then
21370   ac_cv_member_struct_statvfs_f_blocks=yes
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375         ac_cv_member_struct_statvfs_f_blocks=no
21376 fi
21377
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 fi
21380
21381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21382 fi
21383 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21384 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
21385 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21386
21387 cat >>confdefs.h <<_ACEOF
21388 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21389 _ACEOF
21390
21391
21392 fi
21393
21394
21395 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21396 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
21397 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
21398   echo $ECHO_N "(cached) $ECHO_C" >&6
21399 else
21400   cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h.  */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h.  */
21406 #include <sys/types.h>
21407 #ifdef HAVE_SYS_SOCKET_H
21408 # include <sys/socket.h>
21409 #endif
21410 #ifdef HAVE_SYS_UN_H
21411 # include <sys/un.h>
21412 #endif
21413
21414 int
21415 main ()
21416 {
21417 static struct msghdr ac_aggr;
21418 if (ac_aggr.msg_accrights)
21419 return 0;
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 rm -f conftest.$ac_objext
21425 if { (ac_try="$ac_compile"
21426 case "(($ac_try" in
21427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428   *) ac_try_echo=$ac_try;;
21429 esac
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431   (eval "$ac_compile") 2>conftest.er1
21432   ac_status=$?
21433   grep -v '^ *+' conftest.er1 >conftest.err
21434   rm -f conftest.er1
21435   cat conftest.err >&5
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } &&
21438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21439   { (case "(($ac_try" in
21440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441   *) ac_try_echo=$ac_try;;
21442 esac
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444   (eval "$ac_try") 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; } &&
21448          { ac_try='test -s conftest.$ac_objext'
21449   { (case "(($ac_try" in
21450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451   *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454   (eval "$ac_try") 2>&5
21455   ac_status=$?
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); }; }; then
21458   ac_cv_member_struct_msghdr_msg_accrights=yes
21459 else
21460   echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463         cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469 #include <sys/types.h>
21470 #ifdef HAVE_SYS_SOCKET_H
21471 # include <sys/socket.h>
21472 #endif
21473 #ifdef HAVE_SYS_UN_H
21474 # include <sys/un.h>
21475 #endif
21476
21477 int
21478 main ()
21479 {
21480 static struct msghdr ac_aggr;
21481 if (sizeof ac_aggr.msg_accrights)
21482 return 0;
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext
21488 if { (ac_try="$ac_compile"
21489 case "(($ac_try" in
21490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491   *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494   (eval "$ac_compile") 2>conftest.er1
21495   ac_status=$?
21496   grep -v '^ *+' conftest.er1 >conftest.err
21497   rm -f conftest.er1
21498   cat conftest.err >&5
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); } &&
21501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21502   { (case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_try") 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; } &&
21511          { ac_try='test -s conftest.$ac_objext'
21512   { (case "(($ac_try" in
21513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514   *) ac_try_echo=$ac_try;;
21515 esac
21516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21517   (eval "$ac_try") 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); }; }; then
21521   ac_cv_member_struct_msghdr_msg_accrights=yes
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526         ac_cv_member_struct_msghdr_msg_accrights=no
21527 fi
21528
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 fi
21531
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 fi
21534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
21535 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
21536 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
21537
21538 cat >>confdefs.h <<_ACEOF
21539 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
21540 _ACEOF
21541
21542
21543 fi
21544 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
21545 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
21546 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
21547   echo $ECHO_N "(cached) $ECHO_C" >&6
21548 else
21549   cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 #include <sys/types.h>
21556 #ifdef HAVE_SYS_SOCKET_H
21557 # include <sys/socket.h>
21558 #endif
21559 #ifdef HAVE_SYS_UN_H
21560 # include <sys/un.h>
21561 #endif
21562
21563 int
21564 main ()
21565 {
21566 static struct sockaddr ac_aggr;
21567 if (ac_aggr.sa_len)
21568 return 0;
21569   ;
21570   return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577   *) ac_try_echo=$ac_try;;
21578 esac
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580   (eval "$ac_compile") 2>conftest.er1
21581   ac_status=$?
21582   grep -v '^ *+' conftest.er1 >conftest.err
21583   rm -f conftest.er1
21584   cat conftest.err >&5
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } &&
21587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21588   { (case "(($ac_try" in
21589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590   *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593   (eval "$ac_try") 2>&5
21594   ac_status=$?
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); }; } &&
21597          { ac_try='test -s conftest.$ac_objext'
21598   { (case "(($ac_try" in
21599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600   *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603   (eval "$ac_try") 2>&5
21604   ac_status=$?
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); }; }; then
21607   ac_cv_member_struct_sockaddr_sa_len=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618 #include <sys/types.h>
21619 #ifdef HAVE_SYS_SOCKET_H
21620 # include <sys/socket.h>
21621 #endif
21622 #ifdef HAVE_SYS_UN_H
21623 # include <sys/un.h>
21624 #endif
21625
21626 int
21627 main ()
21628 {
21629 static struct sockaddr ac_aggr;
21630 if (sizeof ac_aggr.sa_len)
21631 return 0;
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (ac_try="$ac_compile"
21638 case "(($ac_try" in
21639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640   *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643   (eval "$ac_compile") 2>conftest.er1
21644   ac_status=$?
21645   grep -v '^ *+' conftest.er1 >conftest.err
21646   rm -f conftest.er1
21647   cat conftest.err >&5
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); } &&
21650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21651   { (case "(($ac_try" in
21652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653   *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656   (eval "$ac_try") 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); }; } &&
21660          { ac_try='test -s conftest.$ac_objext'
21661   { (case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_try") 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; }; then
21670   ac_cv_member_struct_sockaddr_sa_len=yes
21671 else
21672   echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675         ac_cv_member_struct_sockaddr_sa_len=no
21676 fi
21677
21678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 fi
21680
21681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21682 fi
21683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
21684 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
21685 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
21686
21687 cat >>confdefs.h <<_ACEOF
21688 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
21689 _ACEOF
21690
21691
21692 fi
21693 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
21694 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
21695 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
21696   echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21698   cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 #include <sys/types.h>
21705 #ifdef HAVE_SYS_SOCKET_H
21706 # include <sys/socket.h>
21707 #endif
21708 #ifdef HAVE_SYS_UN_H
21709 # include <sys/un.h>
21710 #endif
21711
21712 int
21713 main ()
21714 {
21715 static struct sockaddr_un ac_aggr;
21716 if (ac_aggr.sun_len)
21717 return 0;
21718   ;
21719   return 0;
21720 }
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726   *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729   (eval "$ac_compile") 2>conftest.er1
21730   ac_status=$?
21731   grep -v '^ *+' conftest.er1 >conftest.err
21732   rm -f conftest.er1
21733   cat conftest.err >&5
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } &&
21736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21737   { (case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_try") 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); }; } &&
21746          { ac_try='test -s conftest.$ac_objext'
21747   { (case "(($ac_try" in
21748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749   *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752   (eval "$ac_try") 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); }; }; then
21756   ac_cv_member_struct_sockaddr_un_sun_len=yes
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761         cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 #include <sys/types.h>
21768 #ifdef HAVE_SYS_SOCKET_H
21769 # include <sys/socket.h>
21770 #endif
21771 #ifdef HAVE_SYS_UN_H
21772 # include <sys/un.h>
21773 #endif
21774
21775 int
21776 main ()
21777 {
21778 static struct sockaddr_un ac_aggr;
21779 if (sizeof ac_aggr.sun_len)
21780 return 0;
21781   ;
21782   return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest.$ac_objext
21786 if { (ac_try="$ac_compile"
21787 case "(($ac_try" in
21788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789   *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792   (eval "$ac_compile") 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } &&
21799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21800   { (case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_try") 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); }; } &&
21809          { ac_try='test -s conftest.$ac_objext'
21810   { (case "(($ac_try" in
21811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21812   *) ac_try_echo=$ac_try;;
21813 esac
21814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21815   (eval "$ac_try") 2>&5
21816   ac_status=$?
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); }; }; then
21819   ac_cv_member_struct_sockaddr_un_sun_len=yes
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824         ac_cv_member_struct_sockaddr_un_sun_len=no
21825 fi
21826
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 fi
21832 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
21833 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
21834 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
21835
21836 cat >>confdefs.h <<_ACEOF
21837 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
21838 _ACEOF
21839
21840
21841 fi
21842
21843
21844 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
21845 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
21846 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
21847   echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849   cat >conftest.$ac_ext <<_ACEOF
21850 /* confdefs.h.  */
21851 _ACEOF
21852 cat confdefs.h >>conftest.$ac_ext
21853 cat >>conftest.$ac_ext <<_ACEOF
21854 /* end confdefs.h.  */
21855 #include <sys/types.h>
21856 #ifdef HAVE_SCSI_SG_H
21857 #include <scsi/sg.h>
21858 #endif
21859
21860 int
21861 main ()
21862 {
21863 static scsireq_t ac_aggr;
21864 if (ac_aggr.cmd)
21865 return 0;
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_compile") 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } &&
21884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21885   { (case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890   (eval "$ac_try") 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; } &&
21894          { ac_try='test -s conftest.$ac_objext'
21895   { (case "(($ac_try" in
21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900   (eval "$ac_try") 2>&5
21901   ac_status=$?
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); }; }; then
21904   ac_cv_member_scsireq_t_cmd=yes
21905 else
21906   echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909         cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h.  */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h.  */
21915 #include <sys/types.h>
21916 #ifdef HAVE_SCSI_SG_H
21917 #include <scsi/sg.h>
21918 #endif
21919
21920 int
21921 main ()
21922 {
21923 static scsireq_t ac_aggr;
21924 if (sizeof ac_aggr.cmd)
21925 return 0;
21926   ;
21927   return 0;
21928 }
21929 _ACEOF
21930 rm -f conftest.$ac_objext
21931 if { (ac_try="$ac_compile"
21932 case "(($ac_try" in
21933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934   *) ac_try_echo=$ac_try;;
21935 esac
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937   (eval "$ac_compile") 2>conftest.er1
21938   ac_status=$?
21939   grep -v '^ *+' conftest.er1 >conftest.err
21940   rm -f conftest.er1
21941   cat conftest.err >&5
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); } &&
21944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21945   { (case "(($ac_try" in
21946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947   *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950   (eval "$ac_try") 2>&5
21951   ac_status=$?
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); }; } &&
21954          { ac_try='test -s conftest.$ac_objext'
21955   { (case "(($ac_try" in
21956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957   *) ac_try_echo=$ac_try;;
21958 esac
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960   (eval "$ac_try") 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; }; then
21964   ac_cv_member_scsireq_t_cmd=yes
21965 else
21966   echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969         ac_cv_member_scsireq_t_cmd=no
21970 fi
21971
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 fi
21974
21975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21976 fi
21977 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
21978 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
21979 if test $ac_cv_member_scsireq_t_cmd = yes; then
21980
21981 cat >>confdefs.h <<_ACEOF
21982 #define HAVE_SCSIREQ_T_CMD 1
21983 _ACEOF
21984
21985
21986 fi
21987 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
21988 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
21989 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
21990   echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992   cat >conftest.$ac_ext <<_ACEOF
21993 /* confdefs.h.  */
21994 _ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h.  */
21998 #include <sys/types.h>
21999 #ifdef HAVE_SCSI_SG_H
22000 #include <scsi/sg.h>
22001 #endif
22002
22003 int
22004 main ()
22005 {
22006 static sg_io_hdr_t ac_aggr;
22007 if (ac_aggr.interface_id)
22008 return 0;
22009   ;
22010   return 0;
22011 }
22012 _ACEOF
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020   (eval "$ac_compile") 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } &&
22027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22028   { (case "(($ac_try" in
22029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030   *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033   (eval "$ac_try") 2>&5
22034   ac_status=$?
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); }; } &&
22037          { ac_try='test -s conftest.$ac_objext'
22038   { (case "(($ac_try" in
22039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040   *) ac_try_echo=$ac_try;;
22041 esac
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043   (eval "$ac_try") 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047   ac_cv_member_sg_io_hdr_t_interface_id=yes
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052         cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h.  */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h.  */
22058 #include <sys/types.h>
22059 #ifdef HAVE_SCSI_SG_H
22060 #include <scsi/sg.h>
22061 #endif
22062
22063 int
22064 main ()
22065 {
22066 static sg_io_hdr_t ac_aggr;
22067 if (sizeof ac_aggr.interface_id)
22068 return 0;
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 rm -f conftest.$ac_objext
22074 if { (ac_try="$ac_compile"
22075 case "(($ac_try" in
22076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077   *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080   (eval "$ac_compile") 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } &&
22087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22088   { (case "(($ac_try" in
22089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090   *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093   (eval "$ac_try") 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; } &&
22097          { ac_try='test -s conftest.$ac_objext'
22098   { (case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_try") 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); }; }; then
22107   ac_cv_member_sg_io_hdr_t_interface_id=yes
22108 else
22109   echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112         ac_cv_member_sg_io_hdr_t_interface_id=no
22113 fi
22114
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 fi
22117
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 fi
22120 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22121 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22122 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22123
22124 cat >>confdefs.h <<_ACEOF
22125 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22126 _ACEOF
22127
22128
22129 fi
22130
22131
22132 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22133 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22134 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 #include <signal.h>
22144
22145 int
22146 main ()
22147 {
22148 static siginfo_t ac_aggr;
22149 if (ac_aggr.si_fd)
22150 return 0;
22151   ;
22152   return 0;
22153 }
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159   *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162   (eval "$ac_compile") 2>conftest.er1
22163   ac_status=$?
22164   grep -v '^ *+' conftest.er1 >conftest.err
22165   rm -f conftest.er1
22166   cat conftest.err >&5
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); } &&
22169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22170   { (case "(($ac_try" in
22171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172   *) ac_try_echo=$ac_try;;
22173 esac
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175   (eval "$ac_try") 2>&5
22176   ac_status=$?
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); }; } &&
22179          { ac_try='test -s conftest.$ac_objext'
22180   { (case "(($ac_try" in
22181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182   *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185   (eval "$ac_try") 2>&5
22186   ac_status=$?
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); }; }; then
22189   ac_cv_member_siginfo_t_si_fd=yes
22190 else
22191   echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22193
22194         cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h.  */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h.  */
22200 #include <signal.h>
22201
22202 int
22203 main ()
22204 {
22205 static siginfo_t ac_aggr;
22206 if (sizeof ac_aggr.si_fd)
22207 return 0;
22208   ;
22209   return 0;
22210 }
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (ac_try="$ac_compile"
22214 case "(($ac_try" in
22215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216   *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219   (eval "$ac_compile") 2>conftest.er1
22220   ac_status=$?
22221   grep -v '^ *+' conftest.er1 >conftest.err
22222   rm -f conftest.er1
22223   cat conftest.err >&5
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); } &&
22226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22227   { (case "(($ac_try" in
22228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229   *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232   (eval "$ac_try") 2>&5
22233   ac_status=$?
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); }; } &&
22236          { ac_try='test -s conftest.$ac_objext'
22237   { (case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242   (eval "$ac_try") 2>&5
22243   ac_status=$?
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); }; }; then
22246   ac_cv_member_siginfo_t_si_fd=yes
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251         ac_cv_member_siginfo_t_si_fd=no
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 fi
22256
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 fi
22259 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22260 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22261 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22262
22263 cat >>confdefs.h <<_ACEOF
22264 #define HAVE_SIGINFO_T_SI_FD 1
22265 _ACEOF
22266
22267
22268 fi
22269
22270
22271 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22272 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22273 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 #include <sys/types.h>
22283 #ifdef HAVE_SYS_MTIO_H
22284 #include <sys/mtio.h>
22285 #endif
22286
22287 int
22288 main ()
22289 {
22290 static struct mtget ac_aggr;
22291 if (ac_aggr.mt_blksiz)
22292 return 0;
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_compile") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } &&
22311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22312   { (case "(($ac_try" in
22313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314   *) ac_try_echo=$ac_try;;
22315 esac
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317   (eval "$ac_try") 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; } &&
22321          { ac_try='test -s conftest.$ac_objext'
22322   { (case "(($ac_try" in
22323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324   *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327   (eval "$ac_try") 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); }; }; then
22331   ac_cv_member_struct_mtget_mt_blksiz=yes
22332 else
22333   echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22335
22336         cat >conftest.$ac_ext <<_ACEOF
22337 /* confdefs.h.  */
22338 _ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h.  */
22342 #include <sys/types.h>
22343 #ifdef HAVE_SYS_MTIO_H
22344 #include <sys/mtio.h>
22345 #endif
22346
22347 int
22348 main ()
22349 {
22350 static struct mtget ac_aggr;
22351 if (sizeof ac_aggr.mt_blksiz)
22352 return 0;
22353   ;
22354   return 0;
22355 }
22356 _ACEOF
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361   *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364   (eval "$ac_compile") 2>conftest.er1
22365   ac_status=$?
22366   grep -v '^ *+' conftest.er1 >conftest.err
22367   rm -f conftest.er1
22368   cat conftest.err >&5
22369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370   (exit $ac_status); } &&
22371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22372   { (case "(($ac_try" in
22373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374   *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377   (eval "$ac_try") 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; } &&
22381          { ac_try='test -s conftest.$ac_objext'
22382   { (case "(($ac_try" in
22383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384   *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387   (eval "$ac_try") 2>&5
22388   ac_status=$?
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); }; }; then
22391   ac_cv_member_struct_mtget_mt_blksiz=yes
22392 else
22393   echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22395
22396         ac_cv_member_struct_mtget_mt_blksiz=no
22397 fi
22398
22399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400 fi
22401
22402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22403 fi
22404 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22405 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
22406 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22407
22408 cat >>confdefs.h <<_ACEOF
22409 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22410 _ACEOF
22411
22412
22413 fi
22414 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22415 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
22416 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22417   echo $ECHO_N "(cached) $ECHO_C" >&6
22418 else
22419   cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425 #include <sys/types.h>
22426 #ifdef HAVE_SYS_MTIO_H
22427 #include <sys/mtio.h>
22428 #endif
22429
22430 int
22431 main ()
22432 {
22433 static struct mtget ac_aggr;
22434 if (ac_aggr.mt_gstat)
22435 return 0;
22436   ;
22437   return 0;
22438 }
22439 _ACEOF
22440 rm -f conftest.$ac_objext
22441 if { (ac_try="$ac_compile"
22442 case "(($ac_try" in
22443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22444   *) ac_try_echo=$ac_try;;
22445 esac
22446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447   (eval "$ac_compile") 2>conftest.er1
22448   ac_status=$?
22449   grep -v '^ *+' conftest.er1 >conftest.err
22450   rm -f conftest.er1
22451   cat conftest.err >&5
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); } &&
22454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22455   { (case "(($ac_try" in
22456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457   *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460   (eval "$ac_try") 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; } &&
22464          { ac_try='test -s conftest.$ac_objext'
22465   { (case "(($ac_try" in
22466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467   *) ac_try_echo=$ac_try;;
22468 esac
22469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470   (eval "$ac_try") 2>&5
22471   ac_status=$?
22472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); }; }; then
22474   ac_cv_member_struct_mtget_mt_gstat=yes
22475 else
22476   echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479         cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 #include <sys/types.h>
22486 #ifdef HAVE_SYS_MTIO_H
22487 #include <sys/mtio.h>
22488 #endif
22489
22490 int
22491 main ()
22492 {
22493 static struct mtget ac_aggr;
22494 if (sizeof ac_aggr.mt_gstat)
22495 return 0;
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504   *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507   (eval "$ac_compile") 2>conftest.er1
22508   ac_status=$?
22509   grep -v '^ *+' conftest.er1 >conftest.err
22510   rm -f conftest.er1
22511   cat conftest.err >&5
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); } &&
22514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22515   { (case "(($ac_try" in
22516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517   *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520   (eval "$ac_try") 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; } &&
22524          { ac_try='test -s conftest.$ac_objext'
22525   { (case "(($ac_try" in
22526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527   *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530   (eval "$ac_try") 2>&5
22531   ac_status=$?
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); }; }; then
22534   ac_cv_member_struct_mtget_mt_gstat=yes
22535 else
22536   echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22538
22539         ac_cv_member_struct_mtget_mt_gstat=no
22540 fi
22541
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543 fi
22544
22545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546 fi
22547 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
22548 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
22549 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
22553 _ACEOF
22554
22555
22556 fi
22557 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
22558 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
22559 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
22560   echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562   cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568 #include <sys/types.h>
22569 #ifdef HAVE_SYS_MTIO_H
22570 #include <sys/mtio.h>
22571 #endif
22572
22573 int
22574 main ()
22575 {
22576 static struct mtget ac_aggr;
22577 if (ac_aggr.mt_blkno)
22578 return 0;
22579   ;
22580   return 0;
22581 }
22582 _ACEOF
22583 rm -f conftest.$ac_objext
22584 if { (ac_try="$ac_compile"
22585 case "(($ac_try" in
22586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587   *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590   (eval "$ac_compile") 2>conftest.er1
22591   ac_status=$?
22592   grep -v '^ *+' conftest.er1 >conftest.err
22593   rm -f conftest.er1
22594   cat conftest.err >&5
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); } &&
22597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22598   { (case "(($ac_try" in
22599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600   *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603   (eval "$ac_try") 2>&5
22604   ac_status=$?
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); }; } &&
22607          { ac_try='test -s conftest.$ac_objext'
22608   { (case "(($ac_try" in
22609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610   *) ac_try_echo=$ac_try;;
22611 esac
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613   (eval "$ac_try") 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; }; then
22617   ac_cv_member_struct_mtget_mt_blkno=yes
22618 else
22619   echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22621
22622         cat >conftest.$ac_ext <<_ACEOF
22623 /* confdefs.h.  */
22624 _ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h.  */
22628 #include <sys/types.h>
22629 #ifdef HAVE_SYS_MTIO_H
22630 #include <sys/mtio.h>
22631 #endif
22632
22633 int
22634 main ()
22635 {
22636 static struct mtget ac_aggr;
22637 if (sizeof ac_aggr.mt_blkno)
22638 return 0;
22639   ;
22640   return 0;
22641 }
22642 _ACEOF
22643 rm -f conftest.$ac_objext
22644 if { (ac_try="$ac_compile"
22645 case "(($ac_try" in
22646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647   *) ac_try_echo=$ac_try;;
22648 esac
22649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650   (eval "$ac_compile") 2>conftest.er1
22651   ac_status=$?
22652   grep -v '^ *+' conftest.er1 >conftest.err
22653   rm -f conftest.er1
22654   cat conftest.err >&5
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } &&
22657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22658   { (case "(($ac_try" in
22659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660   *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663   (eval "$ac_try") 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; } &&
22667          { ac_try='test -s conftest.$ac_objext'
22668   { (case "(($ac_try" in
22669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670   *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673   (eval "$ac_try") 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }; then
22677   ac_cv_member_struct_mtget_mt_blkno=yes
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682         ac_cv_member_struct_mtget_mt_blkno=no
22683 fi
22684
22685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 fi
22687
22688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 fi
22690 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
22691 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
22692 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
22693
22694 cat >>confdefs.h <<_ACEOF
22695 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
22696 _ACEOF
22697
22698
22699 fi
22700
22701
22702 { echo "$as_me:$LINENO: checking for struct option.name" >&5
22703 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
22704 if test "${ac_cv_member_struct_option_name+set}" = set; then
22705   echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707   cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h.  */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h.  */
22713 #ifdef HAVE_GETOPT_H
22714 #include <getopt.h>
22715 #endif
22716
22717 int
22718 main ()
22719 {
22720 static struct option ac_aggr;
22721 if (ac_aggr.name)
22722 return 0;
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest.$ac_objext
22728 if { (ac_try="$ac_compile"
22729 case "(($ac_try" in
22730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731   *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734   (eval "$ac_compile") 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } &&
22741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22742   { (case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_try") 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); }; } &&
22751          { ac_try='test -s conftest.$ac_objext'
22752   { (case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_try") 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   ac_cv_member_struct_option_name=yes
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766         cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h.  */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h.  */
22772 #ifdef HAVE_GETOPT_H
22773 #include <getopt.h>
22774 #endif
22775
22776 int
22777 main ()
22778 {
22779 static struct option ac_aggr;
22780 if (sizeof ac_aggr.name)
22781 return 0;
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790   *) ac_try_echo=$ac_try;;
22791 esac
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793   (eval "$ac_compile") 2>conftest.er1
22794   ac_status=$?
22795   grep -v '^ *+' conftest.er1 >conftest.err
22796   rm -f conftest.er1
22797   cat conftest.err >&5
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); } &&
22800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22801   { (case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_try") 2>&5
22807   ac_status=$?
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); }; } &&
22810          { ac_try='test -s conftest.$ac_objext'
22811   { (case "(($ac_try" in
22812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813   *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816   (eval "$ac_try") 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; }; then
22820   ac_cv_member_struct_option_name=yes
22821 else
22822   echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22824
22825         ac_cv_member_struct_option_name=no
22826 fi
22827
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 fi
22830
22831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 fi
22833 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
22834 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
22835 if test $ac_cv_member_struct_option_name = yes; then
22836
22837 cat >>confdefs.h <<_ACEOF
22838 #define HAVE_STRUCT_OPTION_NAME 1
22839 _ACEOF
22840
22841
22842 fi
22843
22844
22845 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22846 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22847 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22848   echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 $ac_includes_default
22857 int
22858 main ()
22859 {
22860 static struct stat ac_aggr;
22861 if (ac_aggr.st_blocks)
22862 return 0;
22863   ;
22864   return 0;
22865 }
22866 _ACEOF
22867 rm -f conftest.$ac_objext
22868 if { (ac_try="$ac_compile"
22869 case "(($ac_try" in
22870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871   *) ac_try_echo=$ac_try;;
22872 esac
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874   (eval "$ac_compile") 2>conftest.er1
22875   ac_status=$?
22876   grep -v '^ *+' conftest.er1 >conftest.err
22877   rm -f conftest.er1
22878   cat conftest.err >&5
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); } &&
22881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22882   { (case "(($ac_try" in
22883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884   *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887   (eval "$ac_try") 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); }; } &&
22891          { ac_try='test -s conftest.$ac_objext'
22892   { (case "(($ac_try" in
22893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894   *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897   (eval "$ac_try") 2>&5
22898   ac_status=$?
22899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); }; }; then
22901   ac_cv_member_struct_stat_st_blocks=yes
22902 else
22903   echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22905
22906         cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h.  */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h.  */
22912 $ac_includes_default
22913 int
22914 main ()
22915 {
22916 static struct stat ac_aggr;
22917 if (sizeof ac_aggr.st_blocks)
22918 return 0;
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 rm -f conftest.$ac_objext
22924 if { (ac_try="$ac_compile"
22925 case "(($ac_try" in
22926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927   *) ac_try_echo=$ac_try;;
22928 esac
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930   (eval "$ac_compile") 2>conftest.er1
22931   ac_status=$?
22932   grep -v '^ *+' conftest.er1 >conftest.err
22933   rm -f conftest.er1
22934   cat conftest.err >&5
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); } &&
22937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22938   { (case "(($ac_try" in
22939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940   *) ac_try_echo=$ac_try;;
22941 esac
22942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22943   (eval "$ac_try") 2>&5
22944   ac_status=$?
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); }; } &&
22947          { ac_try='test -s conftest.$ac_objext'
22948   { (case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_try") 2>&5
22954   ac_status=$?
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); }; }; then
22957   ac_cv_member_struct_stat_st_blocks=yes
22958 else
22959   echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22961
22962         ac_cv_member_struct_stat_st_blocks=no
22963 fi
22964
22965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22966 fi
22967
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 fi
22970 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22971 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22972 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22973
22974 cat >>confdefs.h <<_ACEOF
22975 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22976 _ACEOF
22977
22978
22979 fi
22980
22981
22982 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
22983 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
22984 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
22985   echo $ECHO_N "(cached) $ECHO_C" >&6
22986 else
22987   cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h.  */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h.  */
22993 #ifdef HAVE_SYS_TYPES_H
22994 #include <sys/types.h>
22995 #endif
22996 #ifdef HAVE_NETINET_IN_H
22997 #include <netinet/in.h>
22998 #endif
22999
23000 int
23001 main ()
23002 {
23003 static struct sockaddr_in6 ac_aggr;
23004 if (ac_aggr.sin6_scope_id)
23005 return 0;
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_compile") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } &&
23024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23025   { (case "(($ac_try" in
23026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027   *) ac_try_echo=$ac_try;;
23028 esac
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030   (eval "$ac_try") 2>&5
23031   ac_status=$?
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); }; } &&
23034          { ac_try='test -s conftest.$ac_objext'
23035   { (case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_try") 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; }; then
23044   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049         cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055 #ifdef HAVE_SYS_TYPES_H
23056 #include <sys/types.h>
23057 #endif
23058 #ifdef HAVE_NETINET_IN_H
23059 #include <netinet/in.h>
23060 #endif
23061
23062 int
23063 main ()
23064 {
23065 static struct sockaddr_in6 ac_aggr;
23066 if (sizeof ac_aggr.sin6_scope_id)
23067 return 0;
23068   ;
23069   return 0;
23070 }
23071 _ACEOF
23072 rm -f conftest.$ac_objext
23073 if { (ac_try="$ac_compile"
23074 case "(($ac_try" in
23075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076   *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079   (eval "$ac_compile") 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } &&
23086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23087   { (case "(($ac_try" in
23088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089   *) ac_try_echo=$ac_try;;
23090 esac
23091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092   (eval "$ac_try") 2>&5
23093   ac_status=$?
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); }; } &&
23096          { ac_try='test -s conftest.$ac_objext'
23097   { (case "(($ac_try" in
23098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099   *) ac_try_echo=$ac_try;;
23100 esac
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102   (eval "$ac_try") 2>&5
23103   ac_status=$?
23104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105   (exit $ac_status); }; }; then
23106   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23107 else
23108   echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23110
23111         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23112 fi
23113
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 fi
23116
23117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23118 fi
23119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23120 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23121 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23122
23123 cat >>confdefs.h <<_ACEOF
23124 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23125 _ACEOF
23126
23127
23128 fi
23129
23130
23131 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23132 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23133 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23134   echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136   cat >conftest.$ac_ext <<_ACEOF
23137 /* confdefs.h.  */
23138 _ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h.  */
23142 #ifdef HAVE_SYS_TYPES_H
23143 #include <sys/types.h>
23144 #endif
23145 #ifdef HAVE_NETINET_IN_H
23146 # include <netinet/in.h>
23147 #endif
23148 #ifdef HAVE_ARPA_NAMESER_H
23149 # include <arpa/nameser.h>
23150 #endif
23151
23152 int
23153 main ()
23154 {
23155 static ns_msg ac_aggr;
23156 if (ac_aggr._msg_ptr)
23157 return 0;
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext
23163 if { (ac_try="$ac_compile"
23164 case "(($ac_try" in
23165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23166   *) ac_try_echo=$ac_try;;
23167 esac
23168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23169   (eval "$ac_compile") 2>conftest.er1
23170   ac_status=$?
23171   grep -v '^ *+' conftest.er1 >conftest.err
23172   rm -f conftest.er1
23173   cat conftest.err >&5
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); } &&
23176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23177   { (case "(($ac_try" in
23178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179   *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182   (eval "$ac_try") 2>&5
23183   ac_status=$?
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); }; } &&
23186          { ac_try='test -s conftest.$ac_objext'
23187   { (case "(($ac_try" in
23188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189   *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192   (eval "$ac_try") 2>&5
23193   ac_status=$?
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); }; }; then
23196   ac_cv_member_ns_msg__msg_ptr=yes
23197 else
23198   echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23200
23201         cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h.  */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h.  */
23207 #ifdef HAVE_SYS_TYPES_H
23208 #include <sys/types.h>
23209 #endif
23210 #ifdef HAVE_NETINET_IN_H
23211 # include <netinet/in.h>
23212 #endif
23213 #ifdef HAVE_ARPA_NAMESER_H
23214 # include <arpa/nameser.h>
23215 #endif
23216
23217 int
23218 main ()
23219 {
23220 static ns_msg ac_aggr;
23221 if (sizeof ac_aggr._msg_ptr)
23222 return 0;
23223   ;
23224   return 0;
23225 }
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231   *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234   (eval "$ac_compile") 2>conftest.er1
23235   ac_status=$?
23236   grep -v '^ *+' conftest.er1 >conftest.err
23237   rm -f conftest.er1
23238   cat conftest.err >&5
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); } &&
23241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23242   { (case "(($ac_try" in
23243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244   *) ac_try_echo=$ac_try;;
23245 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247   (eval "$ac_try") 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; } &&
23251          { ac_try='test -s conftest.$ac_objext'
23252   { (case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257   (eval "$ac_try") 2>&5
23258   ac_status=$?
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); }; }; then
23261   ac_cv_member_ns_msg__msg_ptr=yes
23262 else
23263   echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23265
23266         ac_cv_member_ns_msg__msg_ptr=no
23267 fi
23268
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270 fi
23271
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 fi
23274 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23275 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23276 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23277
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_NS_MSG__MSG_PTR 1
23280 _ACEOF
23281
23282
23283 fi
23284
23285
23286 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23287 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23288 if test "${ac_cv_have_timezone+set}" = set; then
23289   echo $ECHO_N "(cached) $ECHO_C" >&6
23290 else
23291   cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297 #include <time.h>
23298 int
23299 main ()
23300 {
23301 timezone = 1
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310   *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313   (eval "$ac_link") 2>conftest.er1
23314   ac_status=$?
23315   grep -v '^ *+' conftest.er1 >conftest.err
23316   rm -f conftest.er1
23317   cat conftest.err >&5
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); } &&
23320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23321   { (case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_try") 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; } &&
23330          { ac_try='test -s conftest$ac_exeext'
23331   { (case "(($ac_try" in
23332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333   *) ac_try_echo=$ac_try;;
23334 esac
23335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23336   (eval "$ac_try") 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; }; then
23340   ac_cv_have_timezone="yes"
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345         ac_cv_have_timezone="no"
23346 fi
23347
23348 rm -f core conftest.err conftest.$ac_objext \
23349       conftest$ac_exeext conftest.$ac_ext
23350 fi
23351 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23352 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
23353 if test "$ac_cv_have_timezone" = "yes"
23354 then
23355
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_TIMEZONE 1
23358 _ACEOF
23359
23360 fi
23361 { echo "$as_me:$LINENO: checking for daylight variable" >&5
23362 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
23363 if test "${ac_cv_have_daylight+set}" = set; then
23364   echo $ECHO_N "(cached) $ECHO_C" >&6
23365 else
23366   cat >conftest.$ac_ext <<_ACEOF
23367 /* confdefs.h.  */
23368 _ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h.  */
23372 #include <time.h>
23373 int
23374 main ()
23375 {
23376 daylight = 1
23377   ;
23378   return 0;
23379 }
23380 _ACEOF
23381 rm -f conftest.$ac_objext conftest$ac_exeext
23382 if { (ac_try="$ac_link"
23383 case "(($ac_try" in
23384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385   *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388   (eval "$ac_link") 2>conftest.er1
23389   ac_status=$?
23390   grep -v '^ *+' conftest.er1 >conftest.err
23391   rm -f conftest.er1
23392   cat conftest.err >&5
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); } &&
23395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23396   { (case "(($ac_try" in
23397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398   *) ac_try_echo=$ac_try;;
23399 esac
23400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401   (eval "$ac_try") 2>&5
23402   ac_status=$?
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); }; } &&
23405          { ac_try='test -s conftest$ac_exeext'
23406   { (case "(($ac_try" in
23407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408   *) ac_try_echo=$ac_try;;
23409 esac
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411   (eval "$ac_try") 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; }; then
23415   ac_cv_have_daylight="yes"
23416 else
23417   echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420         ac_cv_have_daylight="no"
23421 fi
23422
23423 rm -f core conftest.err conftest.$ac_objext \
23424       conftest$ac_exeext conftest.$ac_ext
23425 fi
23426 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23427 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
23428 if test "$ac_cv_have_daylight" = "yes"
23429 then
23430
23431 cat >>confdefs.h <<\_ACEOF
23432 #define HAVE_DAYLIGHT 1
23433 _ACEOF
23434
23435 fi
23436
23437
23438 case $host_cpu in
23439   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23440 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
23441 if test "${ac_cv_cpp_def___i386__+set}" = set; then
23442   echo $ECHO_N "(cached) $ECHO_C" >&6
23443 else
23444   cat >conftest.$ac_ext <<_ACEOF
23445 /* confdefs.h.  */
23446 _ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h.  */
23450 #ifndef __i386__
23451 yes
23452 #endif
23453 _ACEOF
23454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23455   $EGREP "yes" >/dev/null 2>&1; then
23456   ac_cv_cpp_def___i386__=yes
23457 else
23458   ac_cv_cpp_def___i386__=no
23459 fi
23460 rm -f conftest*
23461
23462 fi
23463 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
23464 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
23465 if test $ac_cv_cpp_def___i386__ = yes; then
23466   CFLAGS="$CFLAGS -D__i386__"
23467   LINTFLAGS="$LINTFLAGS -D__i386__"
23468 fi
23469  ;;
23470   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
23471 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
23472 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
23473   echo $ECHO_N "(cached) $ECHO_C" >&6
23474 else
23475   cat >conftest.$ac_ext <<_ACEOF
23476 /* confdefs.h.  */
23477 _ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h.  */
23481 #ifndef __x86_64__
23482 yes
23483 #endif
23484 _ACEOF
23485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23486   $EGREP "yes" >/dev/null 2>&1; then
23487   ac_cv_cpp_def___x86_64__=yes
23488 else
23489   ac_cv_cpp_def___x86_64__=no
23490 fi
23491 rm -f conftest*
23492
23493 fi
23494 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
23495 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
23496 if test $ac_cv_cpp_def___x86_64__ = yes; then
23497   CFLAGS="$CFLAGS -D__x86_64__"
23498   LINTFLAGS="$LINTFLAGS -D__x86_64__"
23499 fi
23500
23501                     { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
23502 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
23503 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
23504   echo $ECHO_N "(cached) $ECHO_C" >&6
23505 else
23506   cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 #ifndef _WIN64
23513 yes
23514 #endif
23515 _ACEOF
23516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517   $EGREP "yes" >/dev/null 2>&1; then
23518   ac_cv_cpp_def__WIN64=yes
23519 else
23520   ac_cv_cpp_def__WIN64=no
23521 fi
23522 rm -f conftest*
23523
23524 fi
23525 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
23526 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
23527 if test $ac_cv_cpp_def__WIN64 = yes; then
23528   CFLAGS="$CFLAGS -D_WIN64"
23529   LINTFLAGS="$LINTFLAGS -D_WIN64"
23530 fi
23531  ;;
23532   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
23533 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
23534 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
23535   echo $ECHO_N "(cached) $ECHO_C" >&6
23536 else
23537   cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543 #ifndef __ALPHA__
23544 yes
23545 #endif
23546 _ACEOF
23547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23548   $EGREP "yes" >/dev/null 2>&1; then
23549   ac_cv_cpp_def___ALPHA__=yes
23550 else
23551   ac_cv_cpp_def___ALPHA__=no
23552 fi
23553 rm -f conftest*
23554
23555 fi
23556 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
23557 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
23558 if test $ac_cv_cpp_def___ALPHA__ = yes; then
23559   CFLAGS="$CFLAGS -D__ALPHA__"
23560   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
23561 fi
23562  ;;
23563   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
23564 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
23565 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568   cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 #ifndef __sparc__
23575 yes
23576 #endif
23577 _ACEOF
23578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23579   $EGREP "yes" >/dev/null 2>&1; then
23580   ac_cv_cpp_def___sparc__=yes
23581 else
23582   ac_cv_cpp_def___sparc__=no
23583 fi
23584 rm -f conftest*
23585
23586 fi
23587 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
23588 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
23589 if test $ac_cv_cpp_def___sparc__ = yes; then
23590   CFLAGS="$CFLAGS -D__sparc__"
23591   LINTFLAGS="$LINTFLAGS -D__sparc__"
23592 fi
23593  ;;
23594   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
23595 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
23596 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599   cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605 #ifndef __powerpc__
23606 yes
23607 #endif
23608 _ACEOF
23609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23610   $EGREP "yes" >/dev/null 2>&1; then
23611   ac_cv_cpp_def___powerpc__=yes
23612 else
23613   ac_cv_cpp_def___powerpc__=no
23614 fi
23615 rm -f conftest*
23616
23617 fi
23618 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
23619 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
23620 if test $ac_cv_cpp_def___powerpc__ = yes; then
23621   CFLAGS="$CFLAGS -D__powerpc__"
23622   LINTFLAGS="$LINTFLAGS -D__powerpc__"
23623 fi
23624  ;;
23625 esac
23626
23627 case $host_vendor in
23628   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
23629 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
23630 if test "${ac_cv_cpp_def___sun__+set}" = set; then
23631   echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633   cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h.  */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h.  */
23639 #ifndef __sun__
23640 yes
23641 #endif
23642 _ACEOF
23643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23644   $EGREP "yes" >/dev/null 2>&1; then
23645   ac_cv_cpp_def___sun__=yes
23646 else
23647   ac_cv_cpp_def___sun__=no
23648 fi
23649 rm -f conftest*
23650
23651 fi
23652 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
23653 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
23654 if test $ac_cv_cpp_def___sun__ = yes; then
23655   CFLAGS="$CFLAGS -D__sun__"
23656   LINTFLAGS="$LINTFLAGS -D__sun__"
23657 fi
23658  ;;
23659 esac
23660
23661
23662 DEPENDENCIES="### Dependencies:
23663
23664 .INIT: Makefile
23665 .BEGIN: Makefile
23666 Makefile: dummy
23667         -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
23668
23669 \$(ALL_OBJS): \$(IDL_SRCS:.idl=.h)
23670 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
23671 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
23672
23673
23674
23675
23676
23677 ac_config_commands="$ac_config_commands include/stamp-h"
23678
23679
23680 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
23681
23682 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
23683
23684 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
23685
23686 ac_config_commands="$ac_config_commands dlls/user/resources"
23687
23688 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
23689
23690 ac_config_commands="$ac_config_commands include/wine"
23691
23692
23693 MAKE_RULES=Make.rules
23694
23695
23696 MAKE_DLL_RULES=dlls/Makedll.rules
23697
23698
23699 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
23700
23701
23702 MAKE_TEST_RULES=dlls/Maketest.rules
23703
23704
23705 MAKE_PROG_RULES=programs/Makeprog.rules
23706
23707
23708 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/clusapi/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel32/Makefile dlls/kernel32/tests/Makefile dlls/localspl/Makefile dlls/localspl/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/mscoree/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/nddeapi/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/resutils/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/svrapi/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wintrust/tests/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmd/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
23709
23710
23711 cat >confcache <<\_ACEOF
23712 # This file is a shell script that caches the results of configure
23713 # tests run on this system so they can be shared between configure
23714 # scripts and configure runs, see configure's option --config-cache.
23715 # It is not useful on other systems.  If it contains results you don't
23716 # want to keep, you may remove or edit it.
23717 #
23718 # config.status only pays attention to the cache file if you give it
23719 # the --recheck option to rerun configure.
23720 #
23721 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23722 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23723 # following values.
23724
23725 _ACEOF
23726
23727 # The following way of writing the cache mishandles newlines in values,
23728 # but we know of no workaround that is simple, portable, and efficient.
23729 # So, we kill variables containing newlines.
23730 # Ultrix sh set writes to stderr and can't be redirected directly,
23731 # and sets the high bit in the cache file unless we assign to the vars.
23732 (
23733   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23734     eval ac_val=\$$ac_var
23735     case $ac_val in #(
23736     *${as_nl}*)
23737       case $ac_var in #(
23738       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23739 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23740       esac
23741       case $ac_var in #(
23742       _ | IFS | as_nl) ;; #(
23743       *) $as_unset $ac_var ;;
23744       esac ;;
23745     esac
23746   done
23747
23748   (set) 2>&1 |
23749     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23750     *${as_nl}ac_space=\ *)
23751       # `set' does not quote correctly, so add quotes (double-quote
23752       # substitution turns \\\\ into \\, and sed turns \\ into \).
23753       sed -n \
23754         "s/'/'\\\\''/g;
23755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23756       ;; #(
23757     *)
23758       # `set' quotes correctly as required by POSIX, so do not add quotes.
23759       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23760       ;;
23761     esac |
23762     sort
23763 ) |
23764   sed '
23765      /^ac_cv_env_/b end
23766      t clear
23767      :clear
23768      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23769      t end
23770      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23771      :end' >>confcache
23772 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23773   if test -w "$cache_file"; then
23774     test "x$cache_file" != "x/dev/null" &&
23775       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23776 echo "$as_me: updating cache $cache_file" >&6;}
23777     cat confcache >$cache_file
23778   else
23779     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23780 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23781   fi
23782 fi
23783 rm -f confcache
23784
23785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23786 # Let make expand exec_prefix.
23787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23788
23789 DEFS=-DHAVE_CONFIG_H
23790
23791 ac_libobjs=
23792 ac_ltlibobjs=
23793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23794   # 1. Remove the extension, and $U if already installed.
23795   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23796   ac_i=`echo "$ac_i" | sed "$ac_script"`
23797   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23798   #    will be set to the directory where LIBOBJS objects are built.
23799   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23800   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23801 done
23802 LIBOBJS=$ac_libobjs
23803
23804 LTLIBOBJS=$ac_ltlibobjs
23805
23806
23807
23808 : ${CONFIG_STATUS=./config.status}
23809 ac_clean_files_save=$ac_clean_files
23810 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23811 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23812 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23813 cat >$CONFIG_STATUS <<_ACEOF
23814 #! $SHELL
23815 # Generated by $as_me.
23816 # Run this file to recreate the current configuration.
23817 # Compiler output produced by configure, useful for debugging
23818 # configure, is in config.log if it exists.
23819
23820 debug=false
23821 ac_cs_recheck=false
23822 ac_cs_silent=false
23823 SHELL=\${CONFIG_SHELL-$SHELL}
23824 _ACEOF
23825
23826 cat >>$CONFIG_STATUS <<\_ACEOF
23827 ## --------------------- ##
23828 ## M4sh Initialization.  ##
23829 ## --------------------- ##
23830
23831 # Be Bourne compatible
23832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23833   emulate sh
23834   NULLCMD=:
23835   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23836   # is contrary to our usage.  Disable this feature.
23837   alias -g '${1+"$@"}'='"$@"'
23838   setopt NO_GLOB_SUBST
23839 else
23840   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23841 fi
23842 BIN_SH=xpg4; export BIN_SH # for Tru64
23843 DUALCASE=1; export DUALCASE # for MKS sh
23844
23845
23846 # PATH needs CR
23847 # Avoid depending upon Character Ranges.
23848 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23849 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23850 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23851 as_cr_digits='0123456789'
23852 as_cr_alnum=$as_cr_Letters$as_cr_digits
23853
23854 # The user is always right.
23855 if test "${PATH_SEPARATOR+set}" != set; then
23856   echo "#! /bin/sh" >conf$$.sh
23857   echo  "exit 0"   >>conf$$.sh
23858   chmod +x conf$$.sh
23859   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23860     PATH_SEPARATOR=';'
23861   else
23862     PATH_SEPARATOR=:
23863   fi
23864   rm -f conf$$.sh
23865 fi
23866
23867 # Support unset when possible.
23868 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23869   as_unset=unset
23870 else
23871   as_unset=false
23872 fi
23873
23874
23875 # IFS
23876 # We need space, tab and new line, in precisely that order.  Quoting is
23877 # there to prevent editors from complaining about space-tab.
23878 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23879 # splitting by setting IFS to empty value.)
23880 as_nl='
23881 '
23882 IFS=" ""        $as_nl"
23883
23884 # Find who we are.  Look in the path if we contain no directory separator.
23885 case $0 in
23886   *[\\/]* ) as_myself=$0 ;;
23887   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23888 for as_dir in $PATH
23889 do
23890   IFS=$as_save_IFS
23891   test -z "$as_dir" && as_dir=.
23892   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23893 done
23894 IFS=$as_save_IFS
23895
23896      ;;
23897 esac
23898 # We did not find ourselves, most probably we were run as `sh COMMAND'
23899 # in which case we are not to be found in the path.
23900 if test "x$as_myself" = x; then
23901   as_myself=$0
23902 fi
23903 if test ! -f "$as_myself"; then
23904   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23905   { (exit 1); exit 1; }
23906 fi
23907
23908 # Work around bugs in pre-3.0 UWIN ksh.
23909 for as_var in ENV MAIL MAILPATH
23910 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23911 done
23912 PS1='$ '
23913 PS2='> '
23914 PS4='+ '
23915
23916 # NLS nuisances.
23917 for as_var in \
23918   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23919   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23920   LC_TELEPHONE LC_TIME
23921 do
23922   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23923     eval $as_var=C; export $as_var
23924   else
23925     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23926   fi
23927 done
23928
23929 # Required to use basename.
23930 if expr a : '\(a\)' >/dev/null 2>&1 &&
23931    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23932   as_expr=expr
23933 else
23934   as_expr=false
23935 fi
23936
23937 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23938   as_basename=basename
23939 else
23940   as_basename=false
23941 fi
23942
23943
23944 # Name of the executable.
23945 as_me=`$as_basename -- "$0" ||
23946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23947          X"$0" : 'X\(//\)$' \| \
23948          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23949 echo X/"$0" |
23950     sed '/^.*\/\([^/][^/]*\)\/*$/{
23951             s//\1/
23952             q
23953           }
23954           /^X\/\(\/\/\)$/{
23955             s//\1/
23956             q
23957           }
23958           /^X\/\(\/\).*/{
23959             s//\1/
23960             q
23961           }
23962           s/.*/./; q'`
23963
23964 # CDPATH.
23965 $as_unset CDPATH
23966
23967
23968
23969   as_lineno_1=$LINENO
23970   as_lineno_2=$LINENO
23971   test "x$as_lineno_1" != "x$as_lineno_2" &&
23972   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23973
23974   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23975   # uniformly replaced by the line number.  The first 'sed' inserts a
23976   # line-number line after each line using $LINENO; the second 'sed'
23977   # does the real work.  The second script uses 'N' to pair each
23978   # line-number line with the line containing $LINENO, and appends
23979   # trailing '-' during substitution so that $LINENO is not a special
23980   # case at line end.
23981   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23982   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23983   # E. McMahon (1931-1989) for sed's syntax.  :-)
23984   sed -n '
23985     p
23986     /[$]LINENO/=
23987   ' <$as_myself |
23988     sed '
23989       s/[$]LINENO.*/&-/
23990       t lineno
23991       b
23992       :lineno
23993       N
23994       :loop
23995       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23996       t loop
23997       s/-\n.*//
23998     ' >$as_me.lineno &&
23999   chmod +x "$as_me.lineno" ||
24000     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24001    { (exit 1); exit 1; }; }
24002
24003   # Don't try to exec as it changes $[0], causing all sort of problems
24004   # (the dirname of $[0] is not the place where we might find the
24005   # original and so on.  Autoconf is especially sensitive to this).
24006   . "./$as_me.lineno"
24007   # Exit status is that of the last command.
24008   exit
24009 }
24010
24011
24012 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24013   as_dirname=dirname
24014 else
24015   as_dirname=false
24016 fi
24017
24018 ECHO_C= ECHO_N= ECHO_T=
24019 case `echo -n x` in
24020 -n*)
24021   case `echo 'x\c'` in
24022   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24023   *)   ECHO_C='\c';;
24024   esac;;
24025 *)
24026   ECHO_N='-n';;
24027 esac
24028
24029 if expr a : '\(a\)' >/dev/null 2>&1 &&
24030    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24031   as_expr=expr
24032 else
24033   as_expr=false
24034 fi
24035
24036 rm -f conf$$ conf$$.exe conf$$.file
24037 if test -d conf$$.dir; then
24038   rm -f conf$$.dir/conf$$.file
24039 else
24040   rm -f conf$$.dir
24041   mkdir conf$$.dir
24042 fi
24043 echo >conf$$.file
24044 if ln -s conf$$.file conf$$ 2>/dev/null; then
24045   as_ln_s='ln -s'
24046   # ... but there are two gotchas:
24047   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24048   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24049   # In both cases, we have to default to `cp -p'.
24050   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24051     as_ln_s='cp -p'
24052 elif ln conf$$.file conf$$ 2>/dev/null; then
24053   as_ln_s=ln
24054 else
24055   as_ln_s='cp -p'
24056 fi
24057 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24058 rmdir conf$$.dir 2>/dev/null
24059
24060 if mkdir -p . 2>/dev/null; then
24061   as_mkdir_p=:
24062 else
24063   test -d ./-p && rmdir ./-p
24064   as_mkdir_p=false
24065 fi
24066
24067 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
24068 # systems may use methods other than mode bits to determine executability.
24069 cat >conf$$.file <<_ASEOF
24070 #! /bin/sh
24071 exit 0
24072 _ASEOF
24073 chmod +x conf$$.file
24074 if test -x conf$$.file >/dev/null 2>&1; then
24075   as_executable_p="test -x"
24076 else
24077   as_executable_p=:
24078 fi
24079 rm -f conf$$.file
24080
24081 # Sed expression to map a string onto a valid CPP name.
24082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24083
24084 # Sed expression to map a string onto a valid variable name.
24085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24086
24087
24088 exec 6>&1
24089
24090 # Save the log message, to keep $[0] and so on meaningful, and to
24091 # report actual input values of CONFIG_FILES etc. instead of their
24092 # values after options handling.
24093 ac_log="
24094 This file was extended by Wine $as_me 0.9.23, which was
24095 generated by GNU Autoconf 2.60a.  Invocation command line was
24096
24097   CONFIG_FILES    = $CONFIG_FILES
24098   CONFIG_HEADERS  = $CONFIG_HEADERS
24099   CONFIG_LINKS    = $CONFIG_LINKS
24100   CONFIG_COMMANDS = $CONFIG_COMMANDS
24101   $ $0 $@
24102
24103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24104 "
24105
24106 _ACEOF
24107
24108 cat >>$CONFIG_STATUS <<_ACEOF
24109 # Files that config.status was made for.
24110 config_files="$ac_config_files"
24111 config_headers="$ac_config_headers"
24112 config_commands="$ac_config_commands"
24113
24114 _ACEOF
24115
24116 cat >>$CONFIG_STATUS <<\_ACEOF
24117 ac_cs_usage="\
24118 \`$as_me' instantiates files from templates according to the
24119 current configuration.
24120
24121 Usage: $0 [OPTIONS] [FILE]...
24122
24123   -h, --help       print this help, then exit
24124   -V, --version    print version number and configuration settings, then exit
24125   -q, --quiet      do not print progress messages
24126   -d, --debug      don't remove temporary files
24127       --recheck    update $as_me by reconfiguring in the same conditions
24128   --file=FILE[:TEMPLATE]
24129                    instantiate the configuration file FILE
24130   --header=FILE[:TEMPLATE]
24131                    instantiate the configuration header FILE
24132
24133 Configuration files:
24134 $config_files
24135
24136 Configuration headers:
24137 $config_headers
24138
24139 Configuration commands:
24140 $config_commands
24141
24142 Report bugs to <bug-autoconf@gnu.org>."
24143
24144 _ACEOF
24145 cat >>$CONFIG_STATUS <<_ACEOF
24146 ac_cs_version="\\
24147 Wine config.status 0.9.23
24148 configured by $0, generated by GNU Autoconf 2.60a,
24149   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24150
24151 Copyright (C) 2006 Free Software Foundation, Inc.
24152 This config.status script is free software; the Free Software Foundation
24153 gives unlimited permission to copy, distribute and modify it."
24154
24155 ac_pwd='$ac_pwd'
24156 srcdir='$srcdir'
24157 INSTALL='$INSTALL'
24158 _ACEOF
24159
24160 cat >>$CONFIG_STATUS <<\_ACEOF
24161 # If no file are specified by the user, then we need to provide default
24162 # value.  By we need to know if files were specified by the user.
24163 ac_need_defaults=:
24164 while test $# != 0
24165 do
24166   case $1 in
24167   --*=*)
24168     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24169     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24170     ac_shift=:
24171     ;;
24172   *)
24173     ac_option=$1
24174     ac_optarg=$2
24175     ac_shift=shift
24176     ;;
24177   esac
24178
24179   case $ac_option in
24180   # Handling of the options.
24181   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24182     ac_cs_recheck=: ;;
24183   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24184     echo "$ac_cs_version"; exit ;;
24185   --debug | --debu | --deb | --de | --d | -d )
24186     debug=: ;;
24187   --file | --fil | --fi | --f )
24188     $ac_shift
24189     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24190     ac_need_defaults=false;;
24191   --header | --heade | --head | --hea )
24192     $ac_shift
24193     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24194     ac_need_defaults=false;;
24195   --he | --h)
24196     # Conflict between --help and --header
24197     { echo "$as_me: error: ambiguous option: $1
24198 Try \`$0 --help' for more information." >&2
24199    { (exit 1); exit 1; }; };;
24200   --help | --hel | -h )
24201     echo "$ac_cs_usage"; exit ;;
24202   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24203   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24204     ac_cs_silent=: ;;
24205
24206   # This is an error.
24207   -*) { echo "$as_me: error: unrecognized option: $1
24208 Try \`$0 --help' for more information." >&2
24209    { (exit 1); exit 1; }; } ;;
24210
24211   *) ac_config_targets="$ac_config_targets $1"
24212      ac_need_defaults=false ;;
24213
24214   esac
24215   shift
24216 done
24217
24218 ac_configure_extra_args=
24219
24220 if $ac_cs_silent; then
24221   exec 6>/dev/null
24222   ac_configure_extra_args="$ac_configure_extra_args --silent"
24223 fi
24224
24225 _ACEOF
24226 cat >>$CONFIG_STATUS <<_ACEOF
24227 if \$ac_cs_recheck; then
24228   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24229   CONFIG_SHELL=$SHELL
24230   export CONFIG_SHELL
24231   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24232 fi
24233
24234 _ACEOF
24235 cat >>$CONFIG_STATUS <<\_ACEOF
24236 exec 5>>config.log
24237 {
24238   echo
24239   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24240 ## Running $as_me. ##
24241 _ASBOX
24242   echo "$ac_log"
24243 } >&5
24244
24245 _ACEOF
24246 cat >>$CONFIG_STATUS <<_ACEOF
24247 _ACEOF
24248
24249 cat >>$CONFIG_STATUS <<\_ACEOF
24250
24251 # Handling of arguments.
24252 for ac_config_target in $ac_config_targets
24253 do
24254   case $ac_config_target in
24255     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24256     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
24257     "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24258     "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24259     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
24260     "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24261     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24262     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24263     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24264     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24265     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24266     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24267     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24268     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24269     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24270     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24271     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24272     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24273     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24274     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24275     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24276     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24277     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24278     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24279     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24280     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24281     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24282     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24283     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24284     "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
24285     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24286     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24287     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24288     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24289     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24290     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24291     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24292     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24293     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24294     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24295     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24296     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24297     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24298     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24299     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24300     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24301     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24302     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24303     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24304     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24305     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24306     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24307     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24308     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24309     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24310     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24311     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24312     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24313     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24314     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24315     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24316     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24317     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24318     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24319     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24320     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24321     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24322     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24323     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24324     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24325     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24326     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24327     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24328     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24329     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24330     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24331     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24332     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24333     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24334     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24335     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24336     "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24337     "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24338     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24339     "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24340     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24341     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
24342     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
24343     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
24344     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
24345     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24346     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24347     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24348     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24349     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24350     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
24351     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
24352     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
24353     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
24354     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24355     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24356     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24357     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
24358     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
24359     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
24360     "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
24361     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24362     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24363     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24364     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24365     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24366     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24367     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24368     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24369     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24370     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24371     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24372     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24373     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24374     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24375     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24376     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24377     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24378     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24379     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24380     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24381     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
24382     "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
24383     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24384     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24385     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24386     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24387     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24388     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24389     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24390     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24391     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24392     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24393     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24394     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24395     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24396     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24397     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24398     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24399     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24400     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24401     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24402     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24403     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24404     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
24405     "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
24406     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24407     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24408     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24409     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24410     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24411     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24412     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24413     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24414     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24415     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24416     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24417     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24418     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24419     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24420     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24421     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24422     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24423     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24424     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24425     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24426     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24427     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
24428     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
24429     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24430     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24431     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
24432     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
24433     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
24434     "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
24435     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24436     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24437     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24438     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24439     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24440     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24441     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24442     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24443     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24444     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24445     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24446     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24447     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24448     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24449     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24450     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24451     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24452     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24453     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24454     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24455     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24456     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24457     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24458     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24459     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24460     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24461     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24462     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24463     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24464     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24465     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
24466     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
24467     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24468     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24469     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24470     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24471     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24472     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24473     "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
24474     "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
24475     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
24476     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
24477     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
24478     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
24479     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
24480     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
24481     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
24482     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
24483     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
24484     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
24485     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
24486     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
24487     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
24488     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
24489     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
24490     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
24491     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
24492     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
24493     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
24494     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
24495     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
24496     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
24497     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
24498     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
24499     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
24500     "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
24501     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
24502     "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
24503     "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
24504     "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
24505     "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
24506     "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
24507     "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
24508     "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
24509     "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
24510     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
24511     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
24512     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
24513     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
24514     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
24515     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
24516     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
24517     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
24518     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
24519     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
24520     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
24521     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
24522     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
24523     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
24524     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
24525     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24526     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
24527     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
24528     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
24529     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
24530     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
24531     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
24532     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
24533     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
24534     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
24535     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
24536     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
24537     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
24538     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
24539     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
24540     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
24541     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
24542     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
24543     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
24544     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
24545     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
24546     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
24547     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
24548     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
24549     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
24550     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
24551     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
24552     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
24553     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
24554     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
24555     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
24556     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
24557     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
24558     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
24559     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
24560     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
24561     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
24562     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
24563     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
24564     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
24565     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
24566     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
24567     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
24568     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
24569     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24570     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
24571     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
24572     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
24573     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
24574     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
24575     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
24576
24577   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24578 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24579    { (exit 1); exit 1; }; };;
24580   esac
24581 done
24582
24583
24584 # If the user did not use the arguments to specify the items to instantiate,
24585 # then the envvar interface is used.  Set only those that are not.
24586 # We use the long form for the default assignment because of an extremely
24587 # bizarre bug on SunOS 4.1.3.
24588 if $ac_need_defaults; then
24589   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24590   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24591   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24592 fi
24593
24594 # Have a temporary directory for convenience.  Make it in the build tree
24595 # simply because there is no reason against having it here, and in addition,
24596 # creating and moving files from /tmp can sometimes cause problems.
24597 # Hook for its removal unless debugging.
24598 # Note that there is a small window in which the directory will not be cleaned:
24599 # after its creation but before its name has been assigned to `$tmp'.
24600 $debug ||
24601 {
24602   tmp=
24603   trap 'exit_status=$?
24604   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24605 ' 0
24606   trap '{ (exit 1); exit 1; }' 1 2 13 15
24607 }
24608 # Create a (secure) tmp directory for tmp files.
24609
24610 {
24611   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24612   test -n "$tmp" && test -d "$tmp"
24613 }  ||
24614 {
24615   tmp=./conf$$-$RANDOM
24616   (umask 077 && mkdir "$tmp")
24617 } ||
24618 {
24619    echo "$me: cannot create a temporary directory in ." >&2
24620    { (exit 1); exit 1; }
24621 }
24622
24623 #
24624 # Set up the sed scripts for CONFIG_FILES section.
24625 #
24626
24627 # No need to generate the scripts if there are no CONFIG_FILES.
24628 # This happens for instance when ./config.status config.h
24629 if test -n "$CONFIG_FILES"; then
24630
24631 _ACEOF
24632
24633 # Create sed commands to just substitute file output variables.
24634
24635 # Remaining file output variables are in a fragment that also has non-file
24636 # output varibles.
24637
24638
24639
24640 ac_delim='%!_!# '
24641 for ac_last_try in false false false false false :; do
24642   cat >conf$$subs.sed <<_ACEOF
24643 SHELL!$SHELL$ac_delim
24644 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24645 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24646 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24647 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24648 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24649 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24650 exec_prefix!$exec_prefix$ac_delim
24651 prefix!$prefix$ac_delim
24652 program_transform_name!$program_transform_name$ac_delim
24653 bindir!$bindir$ac_delim
24654 sbindir!$sbindir$ac_delim
24655 libexecdir!$libexecdir$ac_delim
24656 datarootdir!$datarootdir$ac_delim
24657 datadir!$datadir$ac_delim
24658 sysconfdir!$sysconfdir$ac_delim
24659 sharedstatedir!$sharedstatedir$ac_delim
24660 localstatedir!$localstatedir$ac_delim
24661 includedir!$includedir$ac_delim
24662 oldincludedir!$oldincludedir$ac_delim
24663 docdir!$docdir$ac_delim
24664 infodir!$infodir$ac_delim
24665 htmldir!$htmldir$ac_delim
24666 dvidir!$dvidir$ac_delim
24667 pdfdir!$pdfdir$ac_delim
24668 psdir!$psdir$ac_delim
24669 libdir!$libdir$ac_delim
24670 localedir!$localedir$ac_delim
24671 mandir!$mandir$ac_delim
24672 DEFS!$DEFS$ac_delim
24673 ECHO_C!$ECHO_C$ac_delim
24674 ECHO_N!$ECHO_N$ac_delim
24675 ECHO_T!$ECHO_T$ac_delim
24676 LIBS!$LIBS$ac_delim
24677 build_alias!$build_alias$ac_delim
24678 host_alias!$host_alias$ac_delim
24679 target_alias!$target_alias$ac_delim
24680 build!$build$ac_delim
24681 build_cpu!$build_cpu$ac_delim
24682 build_vendor!$build_vendor$ac_delim
24683 build_os!$build_os$ac_delim
24684 host!$host$ac_delim
24685 host_cpu!$host_cpu$ac_delim
24686 host_vendor!$host_vendor$ac_delim
24687 host_os!$host_os$ac_delim
24688 WIN16_FILES!$WIN16_FILES$ac_delim
24689 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
24690 SET_MAKE!$SET_MAKE$ac_delim
24691 CC!$CC$ac_delim
24692 CFLAGS!$CFLAGS$ac_delim
24693 LDFLAGS!$LDFLAGS$ac_delim
24694 CPPFLAGS!$CPPFLAGS$ac_delim
24695 ac_ct_CC!$ac_ct_CC$ac_delim
24696 EXEEXT!$EXEEXT$ac_delim
24697 OBJEXT!$OBJEXT$ac_delim
24698 CXX!$CXX$ac_delim
24699 CXXFLAGS!$CXXFLAGS$ac_delim
24700 ac_ct_CXX!$ac_ct_CXX$ac_delim
24701 CPPBIN!$CPPBIN$ac_delim
24702 TOOLSDIR!$TOOLSDIR$ac_delim
24703 XMKMF!$XMKMF$ac_delim
24704 CPP!$CPP$ac_delim
24705 X_CFLAGS!$X_CFLAGS$ac_delim
24706 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
24707 X_LIBS!$X_LIBS$ac_delim
24708 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
24709 LEX!$LEX$ac_delim
24710 LEXLIB!$LEXLIB$ac_delim
24711 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
24712 XLEX!$XLEX$ac_delim
24713 BISON!$BISON$ac_delim
24714 AS!$AS$ac_delim
24715 ac_ct_AS!$ac_ct_AS$ac_delim
24716 LD!$LD$ac_delim
24717 AR!$AR$ac_delim
24718 RANLIB!$RANLIB$ac_delim
24719 STRIP!$STRIP$ac_delim
24720 WINDRES!$WINDRES$ac_delim
24721 LN_S!$LN_S$ac_delim
24722 LN!$LN$ac_delim
24723 GREP!$GREP$ac_delim
24724 EGREP!$EGREP$ac_delim
24725 _ACEOF
24726
24727   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
24728     break
24729   elif $ac_last_try; then
24730     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24731 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24732    { (exit 1); exit 1; }; }
24733   else
24734     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24735   fi
24736 done
24737
24738 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24739 if test -n "$ac_eof"; then
24740   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24741   ac_eof=`expr $ac_eof + 1`
24742 fi
24743
24744 cat >>$CONFIG_STATUS <<_ACEOF
24745 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24747 /^[      ]*@MAKE_RULES@[         ]*$/{
24748 r $MAKE_RULES
24749 d
24750 }
24751 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
24752 r $MAKE_DLL_RULES
24753 d
24754 }
24755 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
24756 r $MAKE_IMPLIB_RULES
24757 d
24758 }
24759 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
24760 r $MAKE_TEST_RULES
24761 d
24762 }
24763 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
24764 r $MAKE_PROG_RULES
24765 d
24766 }
24767 _ACEOF
24768 sed '
24769 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24770 s/^/s,@/; s/!/@,|#_!!_#|/
24771 :n
24772 t n
24773 s/'"$ac_delim"'$/,g/; t
24774 s/$/\\/; p
24775 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24776 ' >>$CONFIG_STATUS <conf$$subs.sed
24777 rm -f conf$$subs.sed
24778 cat >>$CONFIG_STATUS <<_ACEOF
24779 CEOF$ac_eof
24780 _ACEOF
24781
24782
24783 ac_delim='%!_!# '
24784 for ac_last_try in false false false false false :; do
24785   cat >conf$$subs.sed <<_ACEOF
24786 LDCONFIG!$LDCONFIG$ac_delim
24787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24789 INSTALL_DATA!$INSTALL_DATA$ac_delim
24790 LINT!$LINT$ac_delim
24791 LINTFLAGS!$LINTFLAGS$ac_delim
24792 FONTFORGE!$FONTFORGE$ac_delim
24793 PKG_CONFIG!$PKG_CONFIG$ac_delim
24794 PRELINK!$PRELINK$ac_delim
24795 LIBPTHREAD!$LIBPTHREAD$ac_delim
24796 XLIB!$XLIB$ac_delim
24797 XFILES!$XFILES$ac_delim
24798 OPENGLFILES!$OPENGLFILES$ac_delim
24799 GLU32FILES!$GLU32FILES$ac_delim
24800 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
24801 GLUT_LIBS!$GLUT_LIBS$ac_delim
24802 GLUT32FILES!$GLUT32FILES$ac_delim
24803 NASLIBS!$NASLIBS$ac_delim
24804 XML2LIBS!$XML2LIBS$ac_delim
24805 XML2INCL!$XML2INCL$ac_delim
24806 XSLTLIBS!$XSLTLIBS$ac_delim
24807 XSLTINCL!$XSLTINCL$ac_delim
24808 HALINCL!$HALINCL$ac_delim
24809 CURSESLIBS!$CURSESLIBS$ac_delim
24810 sane_devel!$sane_devel$ac_delim
24811 SANELIBS!$SANELIBS$ac_delim
24812 SANEINCL!$SANEINCL$ac_delim
24813 gphoto2_devel!$gphoto2_devel$ac_delim
24814 gphoto2port_devel!$gphoto2port_devel$ac_delim
24815 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
24816 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
24817 ICULIBS!$ICULIBS$ac_delim
24818 RESOLVLIBS!$RESOLVLIBS$ac_delim
24819 LCMSLIBS!$LCMSLIBS$ac_delim
24820 LDAPLIBS!$LDAPLIBS$ac_delim
24821 FREETYPELIBS!$FREETYPELIBS$ac_delim
24822 FREETYPEINCL!$FREETYPEINCL$ac_delim
24823 ft_devel!$ft_devel$ac_delim
24824 ft_devel2!$ft_devel2$ac_delim
24825 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
24826 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
24827 ARTSLIBS!$ARTSLIBS$ac_delim
24828 ARTSINCL!$ARTSINCL$ac_delim
24829 ESDCONFIG!$ESDCONFIG$ac_delim
24830 ESDLIBS!$ESDLIBS$ac_delim
24831 ESDINCL!$ESDINCL$ac_delim
24832 ALSALIBS!$ALSALIBS$ac_delim
24833 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
24834 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
24835 BUILTINFLAG!$BUILTINFLAG$ac_delim
24836 DLLEXT!$DLLEXT$ac_delim
24837 DLLFLAGS!$DLLFLAGS$ac_delim
24838 LDSHARED!$LDSHARED$ac_delim
24839 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
24840 LIBEXT!$LIBEXT$ac_delim
24841 IMPLIBEXT!$IMPLIBEXT$ac_delim
24842 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
24843 DLLTOOL!$DLLTOOL$ac_delim
24844 DLLWRAP!$DLLWRAP$ac_delim
24845 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
24846 IOKITLIB!$IOKITLIB$ac_delim
24847 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
24848 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
24849 COREAUDIO!$COREAUDIO$ac_delim
24850 CROSSTEST!$CROSSTEST$ac_delim
24851 CROSSCC!$CROSSCC$ac_delim
24852 CROSSWINDRES!$CROSSWINDRES$ac_delim
24853 LDPATH!$LDPATH$ac_delim
24854 CRTLIBS!$CRTLIBS$ac_delim
24855 SOCKETLIBS!$SOCKETLIBS$ac_delim
24856 MAIN_BINARY!$MAIN_BINARY$ac_delim
24857 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
24858 LDD!$LDD$ac_delim
24859 LIBDL!$LIBDL$ac_delim
24860 LIBPOLL!$LIBPOLL$ac_delim
24861 DEPENDENCIES!$DEPENDENCIES$ac_delim
24862 LIBOBJS!$LIBOBJS$ac_delim
24863 LTLIBOBJS!$LTLIBOBJS$ac_delim
24864 _ACEOF
24865
24866   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
24867     break
24868   elif $ac_last_try; then
24869     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24870 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24871    { (exit 1); exit 1; }; }
24872   else
24873     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24874   fi
24875 done
24876
24877 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24878 if test -n "$ac_eof"; then
24879   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24880   ac_eof=`expr $ac_eof + 1`
24881 fi
24882
24883 cat >>$CONFIG_STATUS <<_ACEOF
24884 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24886 _ACEOF
24887 sed '
24888 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24889 s/^/s,@/; s/!/@,|#_!!_#|/
24890 :n
24891 t n
24892 s/'"$ac_delim"'$/,g/; t
24893 s/$/\\/; p
24894 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24895 ' >>$CONFIG_STATUS <conf$$subs.sed
24896 rm -f conf$$subs.sed
24897 cat >>$CONFIG_STATUS <<_ACEOF
24898 :end
24899 s/|#_!!_#|//g
24900 CEOF$ac_eof
24901 _ACEOF
24902
24903
24904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24906 # trailing colons and then remove the whole line if VPATH becomes empty
24907 # (actually we leave an empty line to preserve line numbers).
24908 if test "x$srcdir" = x.; then
24909   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24910 s/:*\$(srcdir):*/:/
24911 s/:*\${srcdir}:*/:/
24912 s/:*@srcdir@:*/:/
24913 s/^\([^=]*=[     ]*\):*/\1/
24914 s/:*$//
24915 s/^[^=]*=[       ]*$//
24916 }'
24917 fi
24918
24919 cat >>$CONFIG_STATUS <<\_ACEOF
24920 fi # test -n "$CONFIG_FILES"
24921
24922
24923 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24924 do
24925   case $ac_tag in
24926   :[FHLC]) ac_mode=$ac_tag; continue;;
24927   esac
24928   case $ac_mode$ac_tag in
24929   :[FHL]*:*);;
24930   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24931 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24932    { (exit 1); exit 1; }; };;
24933   :[FH]-) ac_tag=-:-;;
24934   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24935   esac
24936   ac_save_IFS=$IFS
24937   IFS=:
24938   set x $ac_tag
24939   IFS=$ac_save_IFS
24940   shift
24941   ac_file=$1
24942   shift
24943
24944   case $ac_mode in
24945   :L) ac_source=$1;;
24946   :[FH])
24947     ac_file_inputs=
24948     for ac_f
24949     do
24950       case $ac_f in
24951       -) ac_f="$tmp/stdin";;
24952       *) # Look for the file first in the build tree, then in the source tree
24953          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24954          # because $ac_f cannot contain `:'.
24955          test -f "$ac_f" ||
24956            case $ac_f in
24957            [\\/$]*) false;;
24958            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24959            esac ||
24960            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24961 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24962    { (exit 1); exit 1; }; };;
24963       esac
24964       ac_file_inputs="$ac_file_inputs $ac_f"
24965     done
24966
24967     # Let's still pretend it is `configure' which instantiates (i.e., don't
24968     # use $as_me), people would be surprised to read:
24969     #    /* config.h.  Generated by config.status.  */
24970     configure_input="Generated from "`IFS=:
24971           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24972     if test x"$ac_file" != x-; then
24973       configure_input="$ac_file.  $configure_input"
24974       { echo "$as_me:$LINENO: creating $ac_file" >&5
24975 echo "$as_me: creating $ac_file" >&6;}
24976     fi
24977
24978     case $ac_tag in
24979     *:-:* | *:-) cat >"$tmp/stdin";;
24980     esac
24981     ;;
24982   esac
24983
24984   ac_dir=`$as_dirname -- "$ac_file" ||
24985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24986          X"$ac_file" : 'X\(//\)[^/]' \| \
24987          X"$ac_file" : 'X\(//\)$' \| \
24988          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24989 echo X"$ac_file" |
24990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24991             s//\1/
24992             q
24993           }
24994           /^X\(\/\/\)[^/].*/{
24995             s//\1/
24996             q
24997           }
24998           /^X\(\/\/\)$/{
24999             s//\1/
25000             q
25001           }
25002           /^X\(\/\).*/{
25003             s//\1/
25004             q
25005           }
25006           s/.*/./; q'`
25007   { as_dir="$ac_dir"
25008   case $as_dir in #(
25009   -*) as_dir=./$as_dir;;
25010   esac
25011   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25012     as_dirs=
25013     while :; do
25014       case $as_dir in #(
25015       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25016       *) as_qdir=$as_dir;;
25017       esac
25018       as_dirs="'$as_qdir' $as_dirs"
25019       as_dir=`$as_dirname -- "$as_dir" ||
25020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25021          X"$as_dir" : 'X\(//\)[^/]' \| \
25022          X"$as_dir" : 'X\(//\)$' \| \
25023          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25024 echo X"$as_dir" |
25025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25026             s//\1/
25027             q
25028           }
25029           /^X\(\/\/\)[^/].*/{
25030             s//\1/
25031             q
25032           }
25033           /^X\(\/\/\)$/{
25034             s//\1/
25035             q
25036           }
25037           /^X\(\/\).*/{
25038             s//\1/
25039             q
25040           }
25041           s/.*/./; q'`
25042       test -d "$as_dir" && break
25043     done
25044     test -z "$as_dirs" || eval "mkdir $as_dirs"
25045   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25046 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25047    { (exit 1); exit 1; }; }; }
25048   ac_builddir=.
25049
25050 case "$ac_dir" in
25051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25052 *)
25053   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25054   # A ".." for each directory in $ac_dir_suffix.
25055   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25056   case $ac_top_builddir_sub in
25057   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25058   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25059   esac ;;
25060 esac
25061 ac_abs_top_builddir=$ac_pwd
25062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25063 # for backward compatibility:
25064 ac_top_builddir=$ac_top_build_prefix
25065
25066 case $srcdir in
25067   .)  # We are building in place.
25068     ac_srcdir=.
25069     ac_top_srcdir=$ac_top_builddir_sub
25070     ac_abs_top_srcdir=$ac_pwd ;;
25071   [\\/]* | ?:[\\/]* )  # Absolute name.
25072     ac_srcdir=$srcdir$ac_dir_suffix;
25073     ac_top_srcdir=$srcdir
25074     ac_abs_top_srcdir=$srcdir ;;
25075   *) # Relative name.
25076     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25077     ac_top_srcdir=$ac_top_build_prefix$srcdir
25078     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25079 esac
25080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25081
25082
25083   case $ac_mode in
25084   :F)
25085   #
25086   # CONFIG_FILE
25087   #
25088
25089   case $INSTALL in
25090   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25091   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25092   esac
25093 _ACEOF
25094
25095 cat >>$CONFIG_STATUS <<\_ACEOF
25096 # If the template does not know about datarootdir, expand it.
25097 # FIXME: This hack should be removed a few years after 2.60.
25098 ac_datarootdir_hack=; ac_datarootdir_seen=
25099
25100 case `sed -n '/datarootdir/ {
25101   p
25102   q
25103 }
25104 /@datadir@/p
25105 /@docdir@/p
25106 /@infodir@/p
25107 /@localedir@/p
25108 /@mandir@/p
25109 ' $ac_file_inputs` in
25110 *datarootdir*) ac_datarootdir_seen=yes;;
25111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25112   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25113 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25114 _ACEOF
25115 cat >>$CONFIG_STATUS <<_ACEOF
25116   ac_datarootdir_hack='
25117   s&@datadir@&$datadir&g
25118   s&@docdir@&$docdir&g
25119   s&@infodir@&$infodir&g
25120   s&@localedir@&$localedir&g
25121   s&@mandir@&$mandir&g
25122     s&\\\${datarootdir}&$datarootdir&g' ;;
25123 esac
25124 _ACEOF
25125
25126 # Neutralize VPATH when `$srcdir' = `.'.
25127 # Shell code in configure.ac might set extrasub.
25128 # FIXME: do we really want to maintain this feature?
25129 cat >>$CONFIG_STATUS <<_ACEOF
25130   sed "$ac_vpsub
25131 $extrasub
25132 _ACEOF
25133 cat >>$CONFIG_STATUS <<\_ACEOF
25134 :t
25135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25136 s&@configure_input@&$configure_input&;t t
25137 s&@top_builddir@&$ac_top_builddir_sub&;t t
25138 s&@srcdir@&$ac_srcdir&;t t
25139 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25140 s&@top_srcdir@&$ac_top_srcdir&;t t
25141 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25142 s&@builddir@&$ac_builddir&;t t
25143 s&@abs_builddir@&$ac_abs_builddir&;t t
25144 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25145 s&@INSTALL@&$ac_INSTALL&;t t
25146 $ac_datarootdir_hack
25147 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25148
25149 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25150   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25151   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25152   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25153 which seems to be undefined.  Please make sure it is defined." >&5
25154 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25155 which seems to be undefined.  Please make sure it is defined." >&2;}
25156
25157   rm -f "$tmp/stdin"
25158   case $ac_file in
25159   -) cat "$tmp/out"; rm -f "$tmp/out";;
25160   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25161   esac
25162  ;;
25163   :H)
25164   #
25165   # CONFIG_HEADER
25166   #
25167 _ACEOF
25168
25169 # Transform confdefs.h into a sed script `conftest.defines', that
25170 # substitutes the proper values into config.h.in to produce config.h.
25171 rm -f conftest.defines conftest.tail
25172 # First, append a space to every undef/define line, to ease matching.
25173 echo 's/$/ /' >conftest.defines
25174 # Then, protect against being on the right side of a sed subst, or in
25175 # an unquoted here document, in config.status.  If some macros were
25176 # called several times there might be several #defines for the same
25177 # symbol, which is useless.  But do not sort them, since the last
25178 # AC_DEFINE must be honored.
25179 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25180 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25181 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25182 # PARAMS is the parameter list in the macro definition--in most cases, it's
25183 # just an empty string.
25184 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25185 ac_dB='\\)[      (].*,\\1define\\2'
25186 ac_dC=' '
25187 ac_dD=' ,'
25188
25189 uniq confdefs.h |
25190   sed -n '
25191         t rset
25192         :rset
25193         s/^[     ]*#[    ]*define[       ][      ]*//
25194         t ok
25195         d
25196         :ok
25197         s/[\\&,]/\\&/g
25198         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25199         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25200   ' >>conftest.defines
25201
25202 # Remove the space that was appended to ease matching.
25203 # Then replace #undef with comments.  This is necessary, for
25204 # example, in the case of _POSIX_SOURCE, which is predefined and required
25205 # on some systems where configure will not decide to define it.
25206 # (The regexp can be short, since the line contains either #define or #undef.)
25207 echo 's/ $//
25208 s,^[     #]*u.*,/* & */,' >>conftest.defines
25209
25210 # Break up conftest.defines:
25211 ac_max_sed_lines=50
25212
25213 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25214 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25215 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25216 # et cetera.
25217 ac_in='$ac_file_inputs'
25218 ac_out='"$tmp/out1"'
25219 ac_nxt='"$tmp/out2"'
25220
25221 while :
25222 do
25223   # Write a here document:
25224     cat >>$CONFIG_STATUS <<_ACEOF
25225     # First, check the format of the line:
25226     cat >"\$tmp/defines.sed" <<\\CEOF
25227 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25228 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25229 b
25230 :def
25231 _ACEOF
25232   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25233   echo 'CEOF
25234     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25235   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25236   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25237   grep . conftest.tail >/dev/null || break
25238   rm -f conftest.defines
25239   mv conftest.tail conftest.defines
25240 done
25241 rm -f conftest.defines conftest.tail
25242
25243 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25244 cat >>$CONFIG_STATUS <<\_ACEOF
25245   if test x"$ac_file" != x-; then
25246     echo "/* $configure_input  */" >"$tmp/config.h"
25247     cat "$ac_result" >>"$tmp/config.h"
25248     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25249       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25250 echo "$as_me: $ac_file is unchanged" >&6;}
25251     else
25252       rm -f $ac_file
25253       mv "$tmp/config.h" $ac_file
25254     fi
25255   else
25256     echo "/* $configure_input  */"
25257     cat "$ac_result"
25258   fi
25259   rm -f "$tmp/out12"
25260  ;;
25261
25262   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25263 echo "$as_me: executing $ac_file commands" >&6;}
25264  ;;
25265   esac
25266
25267
25268   case $ac_file$ac_mode in
25269     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
25270     "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25271 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25272     "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25273 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25274     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
25275 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
25276     "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25277 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25278     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25279 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25280     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25281 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25282
25283   esac
25284 done # for ac_tag
25285
25286
25287 { (exit 0); exit 0; }
25288 _ACEOF
25289 chmod +x $CONFIG_STATUS
25290 ac_clean_files=$ac_clean_files_save
25291
25292
25293 # configure is writing to config.log, and then calls config.status.
25294 # config.status does its own redirection, appending to config.log.
25295 # Unfortunately, on DOS this fails, as config.log is still kept open
25296 # by configure, so config.status won't be able to write to it; its
25297 # output is simply discarded.  So we exec the FD to /dev/null,
25298 # effectively closing config.log, so it can be properly (re)opened and
25299 # appended to by config.status.  When coming back to configure, we
25300 # need to make the FD available again.
25301 if test "$no_create" != yes; then
25302   ac_cs_success=:
25303   ac_config_status_args=
25304   test "$silent" = yes &&
25305     ac_config_status_args="$ac_config_status_args --quiet"
25306   exec 5>/dev/null
25307   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25308   exec 5>>config.log
25309   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25310   # would make configure fail if this is the last instruction.
25311   $ac_cs_success || { (exit 1); exit 1; }
25312 fi
25313
25314
25315
25316 if test "$no_create" = "yes"
25317 then
25318   exit 0
25319 fi
25320
25321 if test "$verbose" = "yes"
25322 then
25323     if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
25324   then
25325     echo >&2
25326     { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
25327 echo "$as_me: libcapi20 development files not found." >&6;}
25328     { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
25329 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
25330   fi
25331
25332     if test "$ac_cv_header_cups_cups_h" != "yes"
25333   then
25334     echo >&2
25335     { echo "$as_me:$LINENO: libcups development files not found." >&5
25336 echo "$as_me: libcups development files not found." >&6;}
25337     { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
25338 echo "$as_me: Wine will be built without CUPS support." >&6;}
25339   fi
25340
25341
25342     if test "$ac_cv_header_gphoto2_camera_h" != "yes"
25343   then
25344     echo >&2
25345     { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
25346 echo "$as_me: libgphoto2 development files not found." >&6;}
25347     if test "$ac_cv_header_sane_sane_h" = "yes"
25348     then
25349       { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
25350 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
25351     else
25352       { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
25353 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
25354     fi
25355   fi
25356
25357       if test "$ac_cv_header_hal_libhal_h" != "yes"
25358   then
25359     echo >&2
25360     { echo "$as_me:$LINENO: libhal development files not found." >&5
25361 echo "$as_me: libhal development files not found." >&6;}
25362     { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
25363 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
25364   fi
25365
25366     if test "$ac_cv_header_unicode_ubidi_h" != "yes"
25367   then
25368     echo >&2
25369     { echo "$as_me:$LINENO: libicu development files not found." >&5
25370 echo "$as_me: libicu development files not found." >&6;}
25371     { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
25372 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
25373   fi
25374
25375     if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
25376   then
25377     echo >&2
25378     { echo "$as_me:$LINENO: liblcms development files not found." >&5
25379 echo "$as_me: liblcms development files not found." >&6;}
25380     { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
25381 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
25382   fi
25383
25384     if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
25385   then
25386     echo >&2
25387     { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
25388 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
25389     { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
25390 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
25391   fi
25392
25393     if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
25394   then
25395     echo >&2
25396     { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
25397 echo "$as_me: lib(n)curses development files not found." >&6;}
25398     { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
25399 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
25400   fi
25401
25402     if test "$ac_cv_header_sane_sane_h" != "yes"
25403   then
25404     echo >&2
25405     { echo "$as_me:$LINENO: libsane development files not found." >&5
25406 echo "$as_me: libsane development files not found." >&6;}
25407     { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
25408 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
25409   fi
25410
25411       if test "$have_x" = "yes"
25412   then
25413         if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
25414     then
25415       echo >&2
25416       { echo "$as_me:$LINENO: libxext development files not found." >&5
25417 echo "$as_me: libxext development files not found." >&6;}
25418       { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
25419 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
25420     fi
25421
25422         if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
25423     then
25424       echo >&2
25425       { echo "$as_me:$LINENO: libXrandr development files not found." >&5
25426 echo "$as_me: libXrandr development files not found." >&6;}
25427       { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
25428 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
25429     fi
25430
25431         if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
25432     then
25433       echo >&2
25434       { echo "$as_me:$LINENO: libXrender development files not found." >&5
25435 echo "$as_me: libXrender development files not found." >&6;}
25436       { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
25437 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
25438     fi
25439
25440         if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
25441     then
25442       echo >&2
25443       { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
25444 echo "$as_me: libXxf86vm development files not found." >&6;}
25445       { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
25446 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
25447     fi
25448   fi
25449
25450     if test "$ac_cv_header_libxml_parser_h" != "yes"
25451   then
25452     echo >&2
25453     { echo "$as_me:$LINENO: libxml2 development files not found." >&5
25454 echo "$as_me: libxml2 development files not found." >&6;}
25455     { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
25456 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
25457   fi
25458
25459     if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
25460   then
25461     echo >&2
25462     { echo "$as_me:$LINENO: libxslt development files not found." >&5
25463 echo "$as_me: libxslt development files not found." >&6;}
25464     { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
25465 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
25466   fi
25467 fi
25468
25469
25470 if test "$have_x" = "no"
25471 then
25472   echo >&2
25473   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25474 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25475   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25476 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25477   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25478 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25479   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
25480 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
25481 fi
25482
25483 if test -z "$OPENGLFILES"
25484 then
25485   echo >&2
25486   { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
25487 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
25488   { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
25489 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
25490   if test "$wine_cv_opengl_headers_found" = "no"
25491   then
25492     { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
25493 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
25494   fi
25495   if test "$wine_cv_opengl_header_version_OK" = "no"
25496   then
25497     { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25498 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25499   elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
25500   then
25501      if test -f /usr/X11R6/lib/libGL.a
25502      then
25503         { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
25504 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
25505 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
25506 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
25507      else
25508         { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
25509 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
25510      fi
25511   fi
25512 fi
25513
25514 if test "$wine_cv_msg_freetype" = "yes"
25515 then
25516   echo >&2
25517   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25518 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25519   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25520 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25521   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25522 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25523   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25524 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
25525 fi
25526
25527 if test -z "$FONTSSUBDIRS"
25528 then
25529   echo >&2
25530   if test "$FONTFORGE" = "false"
25531   then
25532     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25533 echo "$as_me: WARNING: FontForge is missing." >&2;}
25534   else
25535     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25536 echo "$as_me: WARNING: FreeType is missing." >&2;}
25537   fi
25538   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25539 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
25540 fi
25541
25542 if test -z "$ALSALIBS" -a \
25543         -z "$ARTSC_LIBS" -a \
25544         -z "$AUDIOIOLIBS" -a \
25545         -z "$NASLIBS" -a \
25546         -z "$ESD_LIBS" -a \
25547         -z "$ac_cv_lib_soname_jack" -a \
25548         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25549         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25550         "$ac_cv_header_soundcard_h" != "yes"
25551 then
25552   echo >&2
25553   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25554 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25555   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25556 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25557   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25558 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
25559 fi
25560
25561 echo
25562 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
25563 echo
25564